/* Layout: one dark shop counter. Warning bar on top, sticky header, product grid that is 2 across on a phone and 4-5 across on a computer. Colours follow the Portland Vape gift card. */
:root {
  color-scheme: dark;
  --bg: #0B0B11;
  --surface: #14141D;
  --surface-2: #1C1C28;
  --line: #2B2B3C;
  --text: #FFFFFF;
  --muted: #ABABBE;
  --faint: #7D7D90;
  --photo: #FFFFFF;
  --ok: #86E3A9;
  --low: #FFB36B;
  --ask: #C9C9D6;
  --out: #7D7D90;
  --g1: #FF5A1F; --g2: #F0367A; --g3: #9B3DF5; --g4: #2F6BFF;
  --grad: linear-gradient(90deg, var(--g1), var(--g2), var(--g3), var(--g4));
  --grad-text: linear-gradient(90deg, #FF6A2B, #F0367A 40%, #A66BFF 72%, #4F86FF);
  --font: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --r: 14px;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: #000; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid #A66BFF; outline-offset: 2px; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
[hidden] { display: none !important; }
.stick { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 25; }
.warn { background: #000; border-bottom: 1px solid var(--line); }
.warn p { margin: 0; padding-block: 9px; font-size: 12.5px; line-height: 1.4; text-align: center; }
.warn b { font-weight: 800; }
.gradtext { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 20px; border-radius: 12px; border: 0; background: #FFFFFF; color: #0B0B11; font-weight: 800; letter-spacing: 0.04em; font-size: 15px; text-transform: uppercase; }
.btn[disabled] { opacity: 0.45; cursor: default; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-grad { color: var(--text); border: 2px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; }
.link { background: none; border: 0; padding: 0; color: var(--text); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.wordmark { font-weight: 800; letter-spacing: 0.06em; white-space: nowrap; }
.rule { display: flex; align-items: center; gap: 12px; }
.rule i { width: 36px; height: 2px; display: block; }
.rule i:first-child { background: linear-gradient(90deg, var(--g1), var(--g2)); }
.rule i:last-child { background: linear-gradient(90deg, var(--g3), var(--g4)); }
.rule span { font-size: 12px; font-weight: 600; letter-spacing: 0.42em; }

/* Entry screens */
.entry { min-height: calc(100% - 44px); display: flex; align-items: center; background: radial-gradient(circle at 0% 10%, rgba(255, 90, 31, 0.34), rgba(255, 90, 31, 0) 44%), radial-gradient(circle at 100% 60%, rgba(47, 107, 255, 0.34), rgba(47, 107, 255, 0) 46%), radial-gradient(circle at 92% 22%, rgba(155, 61, 245, 0.26), rgba(155, 61, 245, 0) 36%), var(--bg); }
.entry .wrap { width: 100%; padding-block: 40px; }
.entry-card { max-width: 440px; display: flex; flex-direction: column; gap: 22px; }
.entry h1 { margin: 0; font-size: clamp(32px, 7vw, 42px); line-height: 1.06; font-weight: 800; text-wrap: balance; }
.entry p { margin: 0; color: #D2D2DE; font-size: 16px; }
.entry .actions { display: flex; flex-direction: column; gap: 10px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.input { height: 54px; width: 100%; border: 1px solid #3A3A4E; border-radius: 12px; padding: 0 16px; font-size: 18px; background: var(--surface-2); color: var(--text); }
.input.code { letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700; }
.err { color: #FF8F8F; font-size: 14px; font-weight: 600; min-height: 20px; }
.note { font-size: 14px; color: var(--muted); }

/* Header */
.top { background: rgba(11, 11, 17, 0.96); border-bottom: 1px solid #1E1E2A; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 10px; }
.top .wordmark { font-size: 17px; background: none; border: 0; padding: 0; color: var(--text); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; padding: 7px 10px; border-radius: 9px; border: 2px solid transparent; background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--grad) border-box; white-space: nowrap; }
.top-right { display: flex; align-items: center; gap: 8px; }
.cart-btn { white-space: nowrap; }
@media (max-width: 440px) { .pill-long { display: none; } .top .wordmark { font-size: 15px; } }
.cart-btn { height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: 14px; }

/* Shop */
main { padding-block: 18px 120px; }
.shop-head { display: flex; flex-direction: column; gap: 14px; }
.shop-head h1 { margin: 0; font-size: 26px; font-weight: 800; line-height: 1.15; }
.brandbanner { margin: 16px 0 2px; border-radius: var(--r); overflow: hidden; background: #FFFFFF; }
.brandbanner img { display: block; width: 100%; height: auto; aspect-ratio: 1116 / 336; }
.openline { margin: -6px 0 0; font-size: 14px; font-weight: 600; color: var(--muted); }
.openline b { color: var(--text); }
.search { position: relative; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.search input { padding-left: 44px; font-size: 16px; height: 50px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 40px; padding: 0 15px; border-radius: 20px; border: 1px solid #3A3A4E; background: transparent; font-weight: 700; font-size: 13.5px; white-space: nowrap; }
.chip[aria-pressed="true"] { background: #FFFFFF; color: #0B0B11; border-color: #FFFFFF; }
.section { display: flex; flex-direction: column; gap: 12px; margin-top: 26px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.section-head h2 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.section-head span { font-size: 12.5px; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(196px, calc(50% - 6px)), 1fr)); gap: 12px; }
.card { display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 1px solid #262636; border-radius: var(--r); overflow: hidden; text-align: left; padding: 0; color: var(--text); }
button.card:hover { border-color: #46465E; }
.ph { position: relative; aspect-ratio: 1 / 1; max-width: 100%; background: var(--photo); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ph img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ph.tint img { width: 86%; height: 86%; mix-blend-mode: multiply; }
.ph .ph-name { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 14px; font-weight: 800; color: #0B0B11; font-size: 17px; line-height: 1.2; }
.ph .ph-tag { position: absolute; right: 8px; bottom: 8px; font-size: 10px; font-weight: 700; letter-spacing: 0.04em; padding: 3px 7px; border-radius: 6px; background: rgba(11, 11, 17, 0.72); color: #FFFFFF; }
.ph.blank { background: radial-gradient(circle at 0% 0%, rgba(255, 90, 31, 0.9), rgba(255, 90, 31, 0) 60%), radial-gradient(circle at 100% 100%, rgba(47, 107, 255, 0.9), rgba(47, 107, 255, 0) 60%), #2A1440; }
.ph.blank .ph-name { color: #FFFFFF; }
.badge { position: absolute; left: 8px; top: 8px; font-size: 10px; font-weight: 800; letter-spacing: 0.06em; padding: 5px 8px; border-radius: 8px; background: rgba(11, 11, 17, 0.88); text-transform: uppercase; }
.s-ok { color: var(--ok); } .s-low { color: var(--low); } .s-ask { color: var(--ask); } .s-out { color: var(--out); }
.card-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.card-title { font-size: 14.5px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.card-sub { font-size: 12.5px; color: var(--muted); }
.price { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.price b { font-size: 15px; font-weight: 800; }
.price s { font-size: 12.5px; color: var(--faint); }
.card-foot { margin-top: auto; padding-top: 8px; }
.add { width: 100%; height: 44px; border-radius: 10px; font-size: 13px; font-weight: 800; letter-spacing: 0.06em; }
.stepper { display: flex; align-items: center; justify-content: space-between; height: 44px; background: #FFFFFF; color: #0B0B11; border-radius: 10px; padding: 0 2px; }
.stepper button { width: 44px; height: 44px; border: 0; background: transparent; color: #0B0B11; font-size: 22px; font-weight: 800; line-height: 1; }
.stepper span { font-weight: 800; font-variant-numeric: tabular-nums; }
.soldout { height: 44px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 10px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; color: var(--faint); text-transform: uppercase; }
.empty { padding: 28px 0; color: var(--muted); }

/* Product line view */
.back { display: inline-flex; align-items: center; gap: 6px; height: 44px; background: none; border: 0; padding: 0; font-weight: 600; font-size: 15px; }
.hero { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin: 4px 0 16px; }
.hero .ph { width: 132px; flex: none; border-radius: var(--r); }
.hero-text { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.hero h1 { margin: 0; font-size: 28px; line-height: 1.1; font-weight: 800; text-wrap: balance; }
.hero .price b { font-size: 20px; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }

/* Order */
.order { max-width: 640px; }
.order h1 { margin: 6px 0 14px; font-size: 26px; font-weight: 800; }
.lines { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.oline { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--surface); }
.oline + .oline { border-top: 1px solid var(--line); }
.oline .ph { width: 52px; border-radius: 10px; flex: none; }
.oline .ph .ph-name { font-size: 9px; padding: 4px; }
.oline-text { flex: 1; min-width: 0; }
.oline-text b { display: block; font-size: 14px; line-height: 1.3; }
.oline-text span { font-size: 12.5px; color: var(--muted); }
.qty { display: flex; align-items: center; border: 1px solid #3A3A4E; border-radius: 22px; flex: none; }
.qty button { width: 38px; height: 44px; border: 0; background: none; font-size: 20px; font-weight: 700; }
.qty span { min-width: 18px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.oline-total { width: 64px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.block { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.seg.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.seg button { height: 48px; border-radius: 12px; border: 1px solid #3A3A4E; background: transparent; font-weight: 700; font-size: 14px; }
.seg button[aria-pressed="true"] { background: #FFFFFF; color: #0B0B11; border-color: #FFFFFF; }
.totals { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; gap: 9px; font-variant-numeric: tabular-nums; }
.totals div { display: flex; justify-content: space-between; gap: 12px; }
.totals .muted { color: var(--muted); }
.totals hr { border: 0; height: 1px; background: var(--line); margin: 2px 0; width: 100%; }
.totals .big { font-size: 18px; font-weight: 800; }
.sendbox { border: 2px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.sendbox h2 { margin: 0; font-size: 18px; font-weight: 800; }
.sendbox p { margin: 0; color: #D2D2DE; }
.ref { font-size: 22px; font-weight: 800; letter-spacing: 0.06em; }
pre.ordertext { margin: 0; white-space: pre-wrap; word-break: break-word; background: #0E0E16; border: 1px solid var(--line); border-radius: 10px; padding: 12px; font-family: var(--font); font-size: 13.5px; line-height: 1.5; max-height: 260px; overflow: auto; }
.orderbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: rgba(11, 11, 17, 0.96); border-top: 1px solid #24242F; padding-bottom: env(safe-area-inset-bottom, 0px); }
.orderbar .wrap { padding-block: 10px; }
.orderbar .btn { width: 100%; justify-content: space-between; text-transform: none; letter-spacing: 0.02em; }
footer { margin-top: 40px; padding-top: 18px; border-top: 1px solid #1E1E2A; color: var(--muted); font-size: 13px; display: flex; flex-direction: column; gap: 4px; }
@media (prefers-reduced-motion: no-preference) { .card, .chip, .btn { transition: border-color 0.15s, background-color 0.15s, opacity 0.15s; } }

/* Live ordering */
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 9px; border-radius: 8px; background: var(--surface-2); }
.st-new { color: #FFB36B; } .st-packing { color: #8FB3FF; } .st-ready { color: #86E3A9; } .st-picked_up { color: var(--muted); } .st-cancelled { color: #FF8F8F; }
.mine { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.ocard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.ocard.ready { border: 2px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; }
.ocard-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.ocard-ref { font-size: 20px; font-weight: 800; letter-spacing: 0.04em; }
.ocard ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.ocard .when { font-size: 14px; color: #D2D2DE; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.steps span { height: 6px; border-radius: 3px; background: var(--surface-2); }
.steps span.on { background: var(--grad); }
.banner-order { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); width: 100%; text-align: left; color: var(--text); }
.banner-order b { font-size: 14px; }
.msg { padding: 12px 14px; border-radius: 12px; background: #2A1414; border: 1px solid #5A2A2A; color: #FFD2D2; font-size: 14px; font-weight: 600; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
