/* FUN HQ storefront — the brand system.

   ONE locked palette, sampled pixel-exact from the neon-sign logo (store/assets):
   sign navy #0C2A44 · neon red #FF2C2C · lime #62FF21 · azure #0A93FF ·
   slogan gold #F9B50B / yellow #FDE016. Neon values are for fills, rings and
   glows; the text-carrying variants below were chosen to pass WCAG AA
   (e.g. white on neon red is 3.7:1, so buttons use --red #D92420 at 4.97:1).

   The only switch is light / dark. No saved choice = follow the OS; the header
   toggle pins it via html[data-mode]. Components never hardcode a hex — they go
   through these tokens. Product photos sit in a white "well" in both modes
   because supplier photography ships on white.

   Mobile-first: base styles are the phone layout; 640 / 900px widen it. */

:root {
  /* brand — exact logo values */
  --navy: #0C2A44;
  --neon-red: #FF2C2C;
  --neon-green: #62FF21;
  --neon-blue: #0A93FF;
  --gold: #F9B50B;
  --yellow: #FDE016;
  --on-neon: #0C2A44;         /* navy text on lime / gold / yellow / azure */

  /* action */
  --red: #D92420;             /* white text 4.97:1 */
  --red-hover: #B81B18;
  --on-red: #FFFFFF;

  /* surfaces — light */
  --paper: #F6F8FB;
  --card: #FFFFFF;
  --ink: #0C2A44;
  --muted: #4F6178;           /* 5.96:1 on paper */
  --line: rgba(12, 42, 68, 0.12);
  --field: #8594A8;           /* input borders, 3:1 */
  --link: #0066D6;            /* 5.1:1 on paper */
  --text-red: #D11F1C;
  --text-green: #1B7A2E;
  --focus: #0066D6;
  --well: #FFFFFF;
  --tint-blue: color-mix(in srgb, var(--neon-blue) 10%, var(--card));
  --tint-gold: color-mix(in srgb, var(--gold) 18%, var(--card));
  --tint-ink: color-mix(in srgb, var(--ink) 6%, var(--card));
  --shadow-sm: 0 1px 2px rgba(12, 42, 68, 0.06), 0 3px 10px rgba(12, 42, 68, 0.06);
  --shadow: 0 14px 36px rgba(12, 42, 68, 0.16);

  /* chrome — header, footer, heroes, feature bands: the sign itself, both modes */
  --chrome: var(--navy);
  --chrome-hi: #163D61;
  --on-chrome: #FFFFFF;
  --chrome-text: #D7E2EE;
  --chrome-muted: #A9BCD0;
  --chrome-link: #4DB0FF;
  --chrome-line: rgba(255, 255, 255, 0.14);
  --chrome-hover: rgba(255, 255, 255, 0.1);
  --chrome-border: rgba(255, 255, 255, 0.5);
  --chrome-red: #FF7A75;       /* red text on navy */

  /* controls that sit on the white photo well keep light-mode colors in both modes */
  --well-ink: #4F6178;
  --well-red: #D11F1C;
  --well-line: rgba(12, 42, 68, 0.12);
  --well-glass: rgba(255, 255, 255, 0.92);

  /* type, space, shape */
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Baloo 2", "Arial Rounded MT Bold", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 32px);
  --max: 1200px;
  --section: clamp(40px, 7vw, 72px);
  --radius: 16px;
  --tap: 44px;
  --head-h: 60px;

  color-scheme: light;
}

/* dark — the logo's neon-on-navy world */
:root[data-mode="dark"] {
  --paper: #07192B; --card: #0F2740; --ink: #EAF1F8; --muted: #9DB0C6;
  --line: rgba(234, 241, 248, 0.14); --field: #5A7190; --link: #4DB0FF;
  --text-red: #FF5A55; --text-green: #62FF21; --focus: #0A93FF;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 3px 10px rgba(0, 0, 0, 0.25);
  --shadow: 0 14px 36px rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-mode="light"]) {
    --paper: #07192B; --card: #0F2740; --ink: #EAF1F8; --muted: #9DB0C6;
    --line: rgba(234, 241, 248, 0.14); --field: #5A7190; --link: #4DB0FF;
    --text-red: #FF5A55; --text-green: #62FF21; --focus: #0A93FF;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 3px 10px rgba(0, 0, 0, 0.25);
    --shadow: 0 14px 36px rgba(0, 0, 0, 0.55);
    color-scheme: dark;
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html.no-scroll { overflow: hidden; } /* html only: overflow on body breaks the sticky header */
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--paper); color: var(--ink);
  font: 400 16px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
main { flex: 1 0 auto; padding-bottom: var(--section); }
main:focus { outline: none; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.1; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--link); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  background: var(--card); color: var(--ink); padding: 12px 16px; border-radius: 12px;
  font-weight: 700; box-shadow: var(--shadow); text-decoration: none;
}
.skip-link:focus { top: 12px; }
.i { flex: none; display: block; }
.kicker { display: inline-block; font: 800 12.5px/1.2 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; }
.micro { font-size: 13px; color: var(--muted); }
.linkish {
  background: none; border: 0; padding: 0; color: var(--link);
  font-weight: 600; font-size: 14px; text-decoration: underline; text-underline-offset: 3px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border: 2px solid transparent; border-radius: 999px;
  font: 800 16px/1.1 var(--font-body); text-align: center; text-decoration: none; white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 14.5px; }
.btn-block { width: 100%; }
.btn-gold { background: var(--gold); color: var(--on-neon); }
.btn-gold:hover { background: var(--yellow); }
.btn-red { background: var(--red); color: var(--on-red); }
.btn-red:hover { background: var(--red-hover); }
.btn-outline { background: var(--card); color: var(--ink); border-color: color-mix(in srgb, var(--ink) 22%, transparent); }
.btn-outline:hover { border-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--on-chrome); border-color: var(--chrome-border); }
.btn-ghost:hover { border-color: var(--on-chrome); background: var(--chrome-hover); }
.btn:disabled { background: var(--tint-ink); color: var(--muted); border-color: transparent; cursor: not-allowed; }
.btn.done { background: var(--neon-green); color: var(--on-neon); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- header ---------- */
.store-head { position: sticky; top: 0; z-index: 40; background: var(--chrome); color: var(--on-chrome); border-bottom: 1px solid var(--chrome-line); }
.head-in { display: flex; flex-wrap: wrap; align-items: center; column-gap: 4px; min-height: var(--head-h); padding-block: 8px; }
.logo { display: flex; align-items: center; flex: none; min-height: var(--tap); margin-right: auto; border-radius: 8px; }
.logo img { display: block; height: 36px; width: auto; }
.icon-btn {
  position: relative; flex: none; display: grid; place-items: center;
  width: var(--tap); height: var(--tap); padding: 0; border: 0; border-radius: 12px;
  background: transparent; color: var(--on-chrome); text-decoration: none;
}
.icon-btn:hover { background: var(--chrome-hover); }
.menu-btn { margin-left: -10px; margin-right: 2px; }
.head-actions { display: flex; align-items: center; gap: 2px; margin-right: -10px; }
.cnt {
  position: absolute; top: 2px; right: 0; min-width: 19px; height: 19px; padding: 0 5px;
  display: grid; place-items: center; border-radius: 999px;
  background: var(--gold); color: var(--on-neon); font: 800 11.5px/1 var(--font-body);
  font-variant-numeric: tabular-nums; box-shadow: 0 0 0 2px var(--chrome);
}
.search { position: relative; display: none; flex: 1 1 100%; order: 10; padding-block: 4px 6px; }
.store-head.search-open .search { display: block; }
.search .i { position: absolute; left: 14px; top: 50%; translate: 0 -50%; color: var(--well-ink); pointer-events: none; }
.search input {
  width: 100%; height: var(--tap); padding: 0 16px 0 44px;
  border: 0; border-radius: 999px; background: var(--well); color: var(--navy); color-scheme: light;
  font-size: 16px; /* 16px keeps iOS from zooming on focus */
}
.search input::placeholder { color: var(--well-ink); }
.search input::-webkit-search-cancel-button { cursor: pointer; }
.mode-btn .i-sun { display: none; }
:root[data-mode="dark"] .mode-btn .i-sun { display: block; }
:root[data-mode="dark"] .mode-btn .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-mode="light"]) .mode-btn .i-sun { display: block; }
  :root:not([data-mode="light"]) .mode-btn .i-moon { display: none; }
}
.mode-btn { display: none; }
@media (min-width: 480px) { .mode-btn { display: grid; } }
@media (min-width: 640px) {
  :root { --head-h: 68px; }
  .head-in { flex-wrap: nowrap; column-gap: 10px; }
  .logo { margin-right: 0; }
  .logo img { height: 42px; }
  .search { display: block; order: 0; flex: 1 1 auto; padding: 0; min-width: 0; }
  .search-btn { display: none; }
}
@media (min-width: 900px) {
  :root { --head-h: 76px; }
  .menu-btn { display: none; }
  .head-in { column-gap: 20px; }
  .logo img { height: 46px; }
  .search { max-width: 580px; margin-inline: auto; }
}

/* ---------- main nav (desktop) ---------- */
.shop-nav { display: none; background: var(--card); border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .shop-nav { display: block; } }
.nav-in { display: flex; gap: 2px; }
.nav-in a {
  position: relative; display: inline-flex; align-items: center; min-height: 50px; padding: 0 14px;
  color: var(--ink); font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap;
}
.nav-in a:hover { color: var(--link); }
.nav-in a[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px;
  border-radius: 3px 3px 0 0; background: var(--neon-red);
}
.nav-in .nav-split { margin-left: auto; }

/* ---------- overlay, drawers, sheet, modal ---------- */
.overlay { position: fixed; inset: 0; z-index: 60; background: rgba(3, 12, 22, 0.58); }
.drawer {
  position: fixed; top: 0; bottom: 0; right: 0; z-index: 70;
  width: min(420px, 100%); display: flex; flex-direction: column;
  background: var(--card); color: var(--ink); box-shadow: var(--shadow);
}
.drawer.left { right: auto; left: 0; width: min(360px, 88%); }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: var(--head-h); padding: 8px 8px 8px 20px; border-bottom: 1px solid var(--line);
}
.drawer-head h2 { font-size: 21px; }
.drawer-head.plain { border: 0; padding: 0; min-height: 0; margin-bottom: 6px; }
.drawer-logo { display: flex; background: var(--navy); border-radius: 10px; padding: 4px 6px; }
.drawer-logo img { height: 34px; width: auto; }
.drawer-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 12px 20px 20px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 16px 20px max(18px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px; }
.x-btn {
  display: grid; place-items: center; width: var(--tap); height: var(--tap); flex: none;
  border: 0; border-radius: 12px; background: transparent; color: var(--muted);
}
.x-btn:hover { background: var(--tint-ink); color: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .drawer:not([hidden]) { animation: in-right 0.22s ease-out; }
  .drawer.left:not([hidden]) { animation-name: in-left; }
  .overlay:not([hidden]) { animation: fade 0.2s ease-out; }
  @keyframes in-right { from { translate: 40px 0; opacity: 0; } }
  @keyframes in-left { from { translate: -40px 0; opacity: 0; } }
  @keyframes in-up { from { translate: 0 40px; opacity: 0; } }
  @keyframes fade { from { opacity: 0; } }
}

/* menu drawer */
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px;
  border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 700; font-size: 17px; text-decoration: none;
}
.menu-list a .i { color: var(--muted); }
.menu-list a[aria-current="page"] { color: var(--text-red); }
.menu-h { margin: 24px 0 12px; font: 800 12.5px/1.2 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px;
  border: 1.5px solid var(--line); border-radius: 999px; background: var(--card);
  color: var(--ink); font-weight: 700; font-size: 14.5px; text-decoration: none;
}
.pill:hover { border-color: var(--ink); }
.seg { display: inline-flex; padding: 3px; gap: 3px; border-radius: 999px; background: var(--tint-ink); }
.seg button {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px;
  border: 0; border-radius: 999px; background: transparent; color: var(--ink); font-weight: 700; font-size: 14.5px;
}
.seg button[aria-checked="true"] { background: var(--ink); color: var(--paper); box-shadow: var(--shadow-sm); }

/* bag drawer */
.lines { display: flex; flex-direction: column; gap: 18px; padding-top: 18px; }
.line { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.line .thumb { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; display: grid; place-items: center; background: var(--well); border: 1px solid var(--line); font-size: 30px; text-decoration: none; }
.line .thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.l-name { color: var(--ink); font-weight: 700; font-size: 15px; line-height: 1.3; text-decoration: none; }
.l-name:hover { text-decoration: underline; }
.l-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.l-out { color: var(--text-red); font-weight: 600; }
.line.is-out .thumb, .line.is-out .l-price { opacity: 0.5; }
.l-ctl { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; }
.qty button { display: grid; place-items: center; width: 40px; height: 38px; border: 0; background: none; color: var(--ink); border-radius: 999px; }
.qty button:disabled { color: var(--muted); opacity: 0.5; cursor: not-allowed; }
.qty output { min-width: 22px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.l-price { font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.subtotal { display: flex; justify-content: space-between; font: 800 19px/1.2 var(--font-display); }
.cart-note { font-size: 14px; color: var(--text-red); background: color-mix(in srgb, var(--neon-red) 8%, var(--card)); border-radius: 10px; padding: 10px 12px; }
.bag-note { padding: 40px 12px; text-align: center; color: var(--muted); }
.bag-empty { text-align: center; padding: 48px 12px; display: flex; flex-direction: column; align-items: center; gap: 14px; color: var(--muted); }
.bag-empty .e { font-size: 52px; line-height: 1; }
.bag-empty b { color: var(--ink); font-size: 17px; }

/* personalizer — centered modal, bottom sheet on phones */
.modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: end center; }
.modal .box {
  width: 100%; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--card); color: var(--ink); border-radius: 22px 22px 0 0;
  padding: 20px 20px max(20px, env(safe-area-inset-bottom)); box-shadow: var(--shadow);
}
@media (prefers-reduced-motion: no-preference) { .modal:not([hidden]) .box { animation: in-up 0.22s ease-out; } }
@media (min-width: 640px) {
  .modal { place-items: center; padding: 20px; }
  .modal .box { width: min(520px, 100%); border-radius: 22px; padding: 24px; }
}
.p-label { display: block; margin-top: 18px; font-weight: 800; font-size: 14.5px; }
.swatches { display: flex; gap: 12px; margin-top: 10px; }
.sw { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--card); box-shadow: 0 0 0 1.5px var(--line); }
.sw[aria-checked="true"] { box-shadow: 0 0 0 3px var(--ink); }
.p-name {
  width: 100%; margin-top: 8px; height: 48px; padding: 0 14px; border: 1.5px solid var(--field);
  border-radius: 12px; background: var(--card); color: var(--ink); font-size: 16px;
}
.p-hint { margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--text-red); }
.check { display: flex; align-items: center; gap: 10px; min-height: var(--tap); margin-top: 8px; font-weight: 600; }
.check input { width: 20px; height: 20px; accent-color: var(--red); }
.p-preview { display: flex; align-items: center; gap: 14px; margin: 10px 0 18px; padding: 16px; border-radius: 16px; }
.p-preview .pe { width: 64px; height: 64px; display: grid; place-items: center; font-size: 40px; background: var(--well); border-radius: 12px; overflow: hidden; }
.p-preview .pe img { width: 100%; height: 100%; object-fit: contain; }
.p-tag { background: var(--card); color: var(--ink); border-radius: 8px; padding: 5px 12px; font: 800 15px var(--font-display); box-shadow: var(--shadow-sm); }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); translate: -50% 12px; z-index: 90;
  display: flex; align-items: center; gap: 14px; width: max-content; max-width: calc(100% - 32px);
  padding: 10px 10px 10px 18px; border-radius: 999px; background: var(--navy); color: var(--on-chrome);
  font-weight: 700; font-size: 15px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transition: opacity 0.2s, translate 0.2s, visibility 0.2s;
}
.toast.show { opacity: 1; visibility: visible; translate: -50% 0; }
.toast span { padding-block: 6px; }
.toast:not(:has(button)) { padding-right: 18px; }
.toast button { min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--gold); color: var(--on-neon); font-weight: 800; font-size: 14px; }
:root[data-mode="dark"] .toast { box-shadow: 0 0 0 1px var(--chrome-line), var(--shadow); }
@media (prefers-color-scheme: dark) { :root:not([data-mode="light"]) .toast { box-shadow: 0 0 0 1px var(--chrome-line), var(--shadow); } }

/* ---------- sections ---------- */
.section { padding-top: var(--section); }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 20px; margin-bottom: 22px; }
.sec-head h2 { font-size: clamp(25px, 3.6vw, 34px); }
.sec-lede { color: var(--muted); margin-top: 8px; max-width: 60ch; }
.sec-head .status + h2 { margin-top: 10px; }
.more-link { display: inline-flex; align-items: center; gap: 4px; min-height: var(--tap); font-weight: 700; text-decoration: none; white-space: nowrap; }
.more-link:hover { text-decoration: underline; }
.more-link .i { width: 18px; height: 18px; }
.center-cta { display: flex; justify-content: center; margin-top: 28px; }

/* ---------- home hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--chrome); color: var(--on-chrome); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(55% 60% at 50% 38%, rgba(10, 147, 255, 0.2), transparent 70%),
    radial-gradient(38% 50% at 8% 100%, rgba(255, 44, 44, 0.16), transparent 70%),
    radial-gradient(38% 50% at 92% 100%, rgba(98, 255, 33, 0.12), transparent 70%),
    linear-gradient(180deg, var(--chrome-hi), var(--chrome) 70%);
}
.hero-in { display: flex; flex-direction: column; align-items: center; text-align: center; padding-block: clamp(40px, 9vw, 96px) clamp(44px, 9vw, 100px); }
.hero h1 { width: 100%; display: flex; justify-content: center; }
.hero-slogan {
  display: block; width: min(640px, 100%); height: auto;
  filter: drop-shadow(0 0 10px rgba(249, 181, 11, 0.55)) drop-shadow(0 0 2px rgba(253, 224, 22, 0.5));
}
.hero .sub { max-width: 36em; margin-top: clamp(16px, 3vw, 24px); color: var(--chrome-text); font-size: clamp(16px, 2.3vw, 19px); }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
@media (max-width: 479px) { .hero-ctas { width: 100%; flex-direction: column; } .hero-ctas .btn { width: 100%; } }

/* ---------- page hero (subpages) ---------- */
.page-hero { --accent: var(--gold); --accent-text: var(--gold); position: relative; isolation: isolate; overflow: hidden; background: var(--chrome); color: var(--on-chrome); }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(50% 90% at 88% 20%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    linear-gradient(180deg, var(--chrome-hi), var(--chrome) 80%);
}
.page-hero[data-accent="red"] { --accent: var(--neon-red); --accent-text: var(--chrome-red); }
.page-hero[data-accent="green"] { --accent: var(--neon-green); --accent-text: var(--neon-green); }
.page-hero[data-accent="blue"] { --accent: var(--neon-blue); --accent-text: var(--chrome-link); }
.page-hero .wrap { padding-block: clamp(32px, 6vw, 60px); }
.page-hero .kicker { color: var(--accent-text); text-shadow: 0 0 14px color-mix(in srgb, var(--accent) 50%, transparent); }
.page-hero h1 { margin-top: 10px; max-width: 22ch; font-size: clamp(31px, 5.4vw, 50px); }
.page-hero .sub { margin-top: 14px; max-width: 58ch; color: var(--chrome-text); font-size: clamp(16px, 2vw, 18.5px); }

/* ---------- shop by age: little neon signs ---------- */
/* one swipeable row at every width, so hiding unstocked bands never changes its height */
.ages {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
  margin-inline: calc(-1 * var(--gutter)); padding: 10px var(--gutter) 14px;
}
.ages::-webkit-scrollbar { display: none; }
.ages .age-c { scroll-snap-align: start; }
.age-c {
  --c: var(--gold);
  width: 100px; aspect-ratio: 1; flex: none; border-radius: 50%;
  display: grid; place-content: center; text-align: center; text-decoration: none;
  background: var(--navy); color: var(--on-chrome);
  box-shadow: inset 0 0 0 3px var(--c), 0 0 18px -6px var(--c), var(--shadow-sm);
  transition: transform 0.15s, box-shadow 0.15s;
}
.age-c b { font: 800 27px/1 var(--font-display); color: var(--c); text-shadow: 0 0 12px color-mix(in srgb, var(--c) 55%, transparent); }
.age-c small { display: block; margin-top: 4px; font: 700 11.5px/1.15 var(--font-body); color: var(--chrome-text); }
.age-c:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 3px var(--c), 0 0 26px -4px var(--c), var(--shadow); }
@media (min-width: 900px) { .age-c { width: 122px; } .age-c b { font-size: 32px; } .age-c small { font-size: 12.5px; } }

/* ---------- shop by character ---------- */
.chars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .chars { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; } }
.char {
  display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  transition: transform 0.15s, box-shadow 0.15s;
}
.char .well { position: relative; aspect-ratio: 4 / 3; overflow: hidden; display: grid; place-items: center; background: var(--well); font-size: 56px; }
.char .well img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 8%; } /* photos never resize the frame */
.char .cap { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px 14px; border-top: 1px solid var(--line); }
.char b { font: 800 18px/1.2 var(--font-display); }
.char span { color: var(--muted); font-size: 13.5px; }
@media (hover: hover) { .char:hover { transform: translateY(-3px); box-shadow: var(--shadow); } }

/* ---------- product grid + card ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(auto-fill, minmax(clamp(200px, 22vw, 250px), 1fr)); gap: 18px; } }
@media (max-width: 639px) { .grid.cap-6 > :nth-child(n + 7) { display: none; } }
.pcard {
  position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s;
}
@media (hover: hover) { .pcard:not(.skeleton):hover { box-shadow: var(--shadow); } .pcard:hover .art img { transform: scale(1.04); } }
.pcard .art { aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; background: var(--well); border-bottom: 1px solid var(--line); }
.pcard .art img { width: 100%; height: 100%; object-fit: contain; padding: 9%; transition: transform 0.25s; }
.pcard .art .emoji { font-size: clamp(52px, 13vw, 76px); }
.pcard .meta { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px 12px 14px; }
@media (min-width: 640px) { .pcard .meta { padding: 14px 16px 16px; gap: 7px; } }
.p-title { text-wrap: pretty; font: 600 15px/1.3 var(--font-body); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.p-title a { color: inherit; text-decoration: none; }
.p-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* whole card is the link */
.p-title a:focus-visible { outline: none; }
.pcard:has(.p-title a:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-top: auto; padding-top: 2px; }
.price { font: 800 19px/1.1 var(--font-display); }
.was { color: var(--muted); font-size: 14px; }
.card-ctas { position: relative; z-index: 2; width: 100%; display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.card-ctas .btn { width: 100%; min-height: 44px; padding: 0 10px; font-size: 15px; }
.heart {
  position: absolute; top: 8px; right: 8px; z-index: 3; width: 40px; height: 40px;
  display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--well-line); background: var(--well-glass); color: var(--well-ink);
}
.heart[aria-pressed="true"] { color: var(--well-red); }
.heart[aria-pressed="true"] .i { fill: currentColor; }
.heart:hover { color: var(--well-red); }
.badge {
  position: absolute; top: 10px; left: 10px; z-index: 2; max-width: calc(100% - 62px);
  padding: 5px 8px; border-radius: 8px; font: 800 10.5px/1.15 var(--font-body);
  letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.badge.new { background: var(--neon-green); color: var(--on-neon); }
.badge.exclusive { background: var(--navy); color: var(--yellow); }
.badge.leaving { background: var(--gold); color: var(--on-neon); }
.badge.bestseller { background: var(--neon-blue); color: var(--on-neon); }
.agechip { font: 700 12px/1 var(--font-body); padding: 5px 8px; border-radius: 6px; background: var(--tint-blue); color: var(--link); white-space: nowrap; }
/* loading placeholders */
.pcard.skeleton .art { background: var(--tint-ink); }
.char.skeleton .well { background: var(--tint-ink); }
.char.skeleton .cap { gap: 4px; }
.char.skeleton .cap .sk:first-child { height: 22px; }
.char.skeleton .cap .sk:last-child { height: 18px; }
.sk { display: block; width: 100%; height: 12px; border-radius: 6px; background: var(--tint-ink); }
.sk.w40 { width: 40%; } .sk.w60 { width: 60%; }
.sk.sk-btn { height: 44px; border-radius: 999px; margin-top: 10px; }
@media (prefers-reduced-motion: no-preference) {
  .skeleton .art, .skeleton .well, .sk { animation: pulse 1.3s ease-in-out infinite; }
  @keyframes pulse { 50% { opacity: 0.5; } }
}

/* ---------- empty / error states ---------- */
.state-panel { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 48px 16px; text-align: center; }
.state-panel .e { font-size: 52px; line-height: 1; }
.state-panel h2 { font-size: clamp(22px, 3vw, 28px); }
.state-panel p { color: var(--muted); max-width: 46ch; }
.state-panel .btn-row { justify-content: center; margin-top: 8px; }

/* ---------- feature band (navy sign) ---------- */
.band {
  --glow: var(--gold);
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; gap: 16px; align-items: center; justify-items: start;
  padding: clamp(26px, 5vw, 44px); border-radius: 24px;
  background: var(--chrome); color: var(--on-chrome);
}
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 120% at 0% 0%, color-mix(in srgb, var(--glow) 24%, transparent), transparent 65%); }
.band .band-art { font-size: 54px; line-height: 1; }
.band h2 { font-size: clamp(25px, 3.8vw, 36px); }
.band p { margin-top: 10px; max-width: 54ch; color: var(--chrome-text); }
@media (min-width: 760px) { .band { grid-template-columns: auto minmax(0, 1fr) auto; gap: 28px; } }
:root[data-mode="dark"] .band { box-shadow: inset 0 0 0 1px var(--chrome-line); }
@media (prefers-color-scheme: dark) { :root:not([data-mode="light"]) .band { box-shadow: inset 0 0 0 1px var(--chrome-line); } }

/* ---------- tiles & facts ---------- */
.tiles { display: grid; gap: 14px; }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } }
.tile, .fact { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.tile { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 22px; }
.tile h3 { font-size: 21px; }
.tile p { color: var(--muted); flex: 1; }
.sign-ico {
  --c: var(--gold);
  display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 14px;
  background: var(--navy); color: var(--c); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c) 70%, transparent), 0 0 16px -6px var(--c);
}
.status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--tint-gold); color: var(--ink); font: 800 12px/1.2 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; }
.facts { display: grid; gap: 14px; }
@media (min-width: 760px) { .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
.fact { display: flex; gap: 14px; align-items: flex-start; padding: 20px; }
.fact h3 { font-size: 19px; }
.fact p { color: var(--muted); margin-top: 4px; }
.notice { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; max-width: 720px; padding: clamp(22px, 4vw, 34px); background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-sm); }
.notice h2 { font-size: clamp(24px, 3.4vw, 30px); }
.notice p { color: var(--muted); }
.notice .btn-row { margin-top: 6px; }

/* ---------- breadcrumbs ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding-top: 18px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); display: inline-flex; min-height: 32px; align-items: center; }
.crumbs a:hover { color: var(--ink); }

/* ---------- shop ---------- */
.shop-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 20px; padding-top: 10px; margin-bottom: 16px; }
.shop-head h1 { font-size: clamp(28px, 4.4vw, 40px); }
.count { color: var(--muted); font-size: 15px; margin-top: 4px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; min-width: 0; }
.toolbar-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap); padding: 0 16px;
  border: 1.5px solid var(--field); border-radius: 999px; background: var(--card); color: var(--ink); font-weight: 700; font-size: 15px;
}
.toolbar-btn .n { min-width: 20px; height: 20px; padding: 0 6px; display: grid; place-items: center; border-radius: 999px; background: var(--navy); color: var(--on-chrome); font-size: 12px; }
.select-wrap { position: relative; display: inline-flex; min-width: 0; max-width: 100%; }
.select-wrap::after {
  content: ""; position: absolute; right: 17px; top: 50%; width: 8px; height: 8px; pointer-events: none;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg);
}
.select {
  appearance: none; max-width: 100%; height: var(--tap); padding: 0 42px 0 16px; border: 1.5px solid var(--field); border-radius: 999px;
  background: var(--card); color: var(--ink); font-weight: 700; font-size: 16px;
}
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; }
.chip-x {
  display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 10px 0 14px;
  border: 0; border-radius: 999px; background: var(--navy); color: var(--on-chrome); font-weight: 700; font-size: 14px;
}
:root[data-mode="dark"] .chip-x { background: var(--tint-blue); box-shadow: inset 0 0 0 1px var(--line); }
@media (prefers-color-scheme: dark) { :root:not([data-mode="light"]) .chip-x { background: var(--tint-blue); box-shadow: inset 0 0 0 1px var(--line); } }
.chip-x .i { width: 16px; height: 16px; opacity: 0.8; }
.shop-layout { display: grid; gap: 24px; }
.shop-layout.no-facets { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) {
  .shop-layout { grid-template-columns: 236px minmax(0, 1fr); gap: 36px; align-items: start; }
  .toolbar .filters-open { display: none; }
}
.facet { padding-block: 16px; border-bottom: 1px solid var(--line); }
.facet:first-child { padding-top: 4px; }
.facet h3 { margin-bottom: 12px; font: 800 12.5px/1.2 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.opts-v { display: flex; flex-wrap: wrap; gap: 8px; }
.fbtn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px;
  border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink);
  font-weight: 700; font-size: 14.5px;
}
.fbtn:hover { border-color: var(--ink); }
.fbtn .n { color: var(--muted); font-weight: 600; font-size: 13px; }
.fbtn[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--on-chrome); }
.fbtn[aria-pressed="true"] .n { color: var(--chrome-muted); }
:root[data-mode="dark"] .fbtn[aria-pressed="true"] { border-color: var(--neon-blue); }
@media (prefers-color-scheme: dark) { :root:not([data-mode="light"]) .fbtn[aria-pressed="true"] { border-color: var(--neon-blue); } }
.facets .clear { margin-top: 16px; }
.sheet-head, .sheet-foot { display: none; }
@media (min-width: 900px) {
  .facets { position: sticky; top: calc(var(--head-h) + 16px); max-height: calc(100vh - var(--head-h) - 32px); overflow-y: auto; padding-right: 4px; }
}
@media (max-width: 899px) {
  .facets {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: none; flex-direction: column;
    max-height: 88dvh; background: var(--card); color: var(--ink); border-radius: 22px 22px 0 0; box-shadow: var(--shadow);
  }
  .facets.is-open { display: flex; }
  .sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 20px; border-bottom: 1px solid var(--line); }
  .sheet-head h2 { font-size: 21px; }
  .sheet-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 4px 20px 16px; }
  .sheet-foot { display: block; padding: 14px 20px max(16px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
}
@media (max-width: 899px) and (prefers-reduced-motion: no-preference) { .facets.is-open { animation: in-up 0.22s ease-out; } }

/* ---------- product page ---------- */
.pdp { display: grid; gap: 24px; padding-top: 14px; }
@media (min-width: 900px) {
  .pdp { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 52px; align-items: start; }
  .gallery { position: sticky; top: calc(var(--head-h) + 20px); }
}
.g-main { position: relative; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; border-radius: 20px; background: var(--well); border: 1px solid var(--line); }
.g-main img { width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.g-main .emoji { font-size: clamp(110px, 30vw, 180px); }
.g-main .badge { top: 14px; left: 14px; }
.g-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding: 3px; }
.g-thumbs button { flex: none; width: 72px; height: 72px; padding: 4px; border-radius: 12px; border: 2px solid var(--line); background: var(--well); }
.g-thumbs button img { width: 100%; height: 100%; object-fit: contain; }
.g-thumbs button[aria-pressed="true"] { border-color: var(--ink); }
.buy h1 { font-size: clamp(27px, 3.8vw, 38px); }
.buy .meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px; }
.buy .meta-row a { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 700; font-size: 15px; }
.buy .price-row { margin-top: 18px; }
.buy .price { font-size: 34px; }
.buy .cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.buy .cta-row .btn-add { flex: 1 1 220px; min-height: 54px; font-size: 17px; }
.buy .cta-row .btn-outline { min-height: 54px; }
.save-btn[aria-pressed="true"] { color: var(--text-red); border-color: currentColor; }
.save-btn[aria-pressed="true"] .i { fill: currentColor; }
.stock { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-weight: 700; color: var(--text-green); }
.stock.out { color: var(--text-red); }
.desc { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.desc h2 { font-size: 20px; margin-bottom: 10px; }
.desc p + p { margin-top: 10px; }
.desc ul { margin: 0; padding-left: 20px; }
.desc li + li { margin-top: 6px; }
.desc li::marker { color: var(--neon-blue); }

/* ---------- gift finder ---------- */
.gf { max-width: 780px; }
.gf-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--tap); }
.gf-step { color: var(--muted); font-weight: 700; font-size: 14.5px; }
.g-dots { display: flex; gap: 6px; }
.g-dots i { width: 28px; height: 6px; border-radius: 3px; background: var(--line); }
.g-dots i.on { background: var(--neon-blue); }
.gift-q { margin: 10px 0 20px; font: 800 clamp(24px, 3.6vw, 32px)/1.15 var(--font-display); }
.gift-q:focus { outline: none; } /* focused only so screen readers announce each new question */
.opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px) { .opts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } }
.opt-b {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 96px; padding: 14px 10px; border: 2px solid var(--line); border-radius: 16px;
  background: var(--card); color: var(--ink); font-weight: 700; font-size: 16px; line-height: 1.25;
}
.opt-b:hover { border-color: var(--neon-blue); }
.opt-b .e { font-size: 30px; line-height: 1; }
.opt-b small { color: var(--muted); font-weight: 600; font-size: 13px; }
.g-results { display: flex; flex-direction: column; gap: 12px; }
.g-note { color: var(--muted); margin: -10px 0 18px; }
.g-hit { position: relative; display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 6px 14px; align-items: center; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); }
.g-hit .thumb { grid-row: span 2; width: 84px; height: 84px; display: grid; place-items: center; overflow: hidden; border-radius: 12px; background: var(--well); font-size: 38px; border: 1px solid var(--line); }
.g-hit .thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.g-hit h3 { font: 700 16px/1.3 var(--font-body); }
.g-hit h3 a { color: inherit; text-decoration: none; }
.g-hit h3 a::after { content: ""; position: absolute; inset: 0; }
.g-hit .why { color: var(--muted); font-size: 14px; }
.g-hit .btn { position: relative; z-index: 1; grid-column: 1 / -1; }
@media (min-width: 560px) {
  .g-hit { grid-template-columns: 96px minmax(0, 1fr) auto; }
  .g-hit .thumb { width: 96px; height: 96px; }
  .g-hit .btn { grid-column: 3; grid-row: 1 / span 2; }
}
.gf-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 22px; }
.back-btn { display: inline-flex; align-items: center; gap: 4px; min-height: var(--tap); padding: 0 12px 0 6px; border: 0; border-radius: 999px; background: none; color: var(--link); font-weight: 700; }
.back-btn:hover { background: var(--tint-blue); }

/* ---------- 404 ---------- */
.err-hero { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding-block: clamp(56px, 12vw, 110px) 0; }
.err-hero .e { font-size: 76px; line-height: 1; }
.err-hero h1 { font-size: clamp(30px, 5vw, 46px); }
.err-hero p { color: var(--muted); max-width: 44ch; }
.err-hero .btn-row { justify-content: center; margin-top: 10px; }

/* ---------- footer ---------- */
.store-foot { background: var(--chrome); color: var(--chrome-muted); font-size: 15px; }
.foot-grid { display: grid; gap: 30px; padding-block: 44px 30px; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 48px; } }
.foot-logo { display: inline-flex; border-radius: 8px; }
.foot-logo img { height: 46px; width: auto; }
.foot-mode { margin-top: 24px; }
.seg-chrome { background: var(--chrome-hover); }
.seg-chrome button { color: var(--chrome-muted); }
.seg-chrome button:hover { color: var(--on-chrome); }
.seg-chrome button[aria-checked="true"] { background: var(--on-chrome); color: var(--navy); }
.foot-slogan { margin-top: 14px; color: var(--gold); font: 700 19px/1.3 var(--font-display); text-shadow: 0 0 16px rgba(249, 181, 11, 0.35); }
.foot-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (min-width: 560px) { .foot-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.foot-h { margin-bottom: 10px; color: var(--on-chrome); font: 800 12.5px/1.2 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; }
.foot-cols a { display: inline-flex; align-items: center; min-height: 40px; color: var(--chrome-muted); text-decoration: none; }
.foot-cols a:hover { color: var(--on-chrome); text-decoration: underline; }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-block: 18px 28px; border-top: 1px solid var(--chrome-line); font-size: 14px; }
.foot-legal a { display: inline-block; padding-block: 12px; margin-block: -12px; color: var(--chrome-link); font-weight: 700; }
.store-head :focus-visible, .hero :focus-visible, .page-hero :focus-visible, .band :focus-visible,
.toast :focus-visible, .store-foot :focus-visible { outline-color: var(--chrome-link); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
