/* ==========================================================================
   Nuvo — design tokens
   Layout: lavender-tinted canvas, white "device" cards with soft blue
   shadows, pill controls, one confident cobalt for every action.
   ========================================================================== */
:root {
  --bg: #eef1fa;
  --bg-glow: #dde3f8;
  --surface: #ffffff;
  --surface-2: #f4f6fc;
  --media: #f1f4fc;
  --line: #e3e7f2;
  --ink: #141726;
  --ink-2: #474d66;
  --muted: #868ca4;
  --primary: #2f6be4;
  --primary-hover: #2459c9;
  --primary-soft: #eaf0fd;
  --on-primary: #ffffff;
  --star: #f2b01e;
  --sale: #e5484d;
  --ok: #1d9a68;
  --ok-soft: #e4f6ee;
  --err: #d93d42;
  --shadow: 0 1px 2px rgba(30, 40, 90, .04), 0 8px 24px -12px rgba(40, 60, 140, .18);
  --shadow-lg: 0 24px 60px -24px rgba(40, 60, 140, .35);
  --hero-a: #2134a8;
  --hero-b: #5367df;
  --hero-c: #93a2f2;

  --f-display: 'Outfit', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --f-body: 'Outfit', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;

  --r-sm: 12px;
  --r: 18px;
  --r-lg: 24px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --tabbar-h: 68px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c0f1d; --bg-glow: #18204a; --surface: #151a2d; --surface-2: #1c2238; --media: #1a2036;
    --line: #262d48; --ink: #eef0fa; --ink-2: #b8bdd6; --muted: #8b91ad;
    --primary: #5b8cff; --primary-hover: #77a0ff; --primary-soft: #1d2a52; --on-primary: #0b1020;
    --ok: #3cc98f; --ok-soft: #12352a; --sale: #ff6b6f; --err: #ff6b6f;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -14px rgba(0, 0, 0, .6);
    --shadow-lg: 0 24px 60px -24px rgba(0, 0, 0, .7);
    --hero-a: #18257a; --hero-b: #3d4fc4; --hero-c: #6c7ee6;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c0f1d; --bg-glow: #18204a; --surface: #151a2d; --surface-2: #1c2238; --media: #1a2036;
  --line: #262d48; --ink: #eef0fa; --ink-2: #b8bdd6; --muted: #8b91ad;
  --primary: #5b8cff; --primary-hover: #77a0ff; --primary-soft: #1d2a52; --on-primary: #0b1020;
  --ok: #3cc98f; --ok-soft: #12352a; --sale: #ff6b6f; --err: #ff6b6f;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -14px rgba(0, 0, 0, .6);
  --shadow-lg: 0 24px 60px -24px rgba(0, 0, 0, .7);
  --hero-a: #18257a; --hero-b: #3d4fc4; --hero-c: #6c7ee6;
  color-scheme: dark;
}

/* --- base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0;
  font: 400 15px/1.5 var(--f-body);
  color: var(--ink);
  background: var(--bg);
  background-image: radial-gradient(1200px 520px at 50% -180px, var(--bg-glow), transparent 70%);
  background-repeat: no-repeat;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--surface); }
h1, h2, h3 { font-family: var(--f-display); font-weight: 500; line-height: 1.2; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
img, svg { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--primary); color: var(--on-primary); padding: 8px 14px; border-radius: 999px; }
.skip:focus { top: 12px; }
.muted { color: var(--muted); font-weight: 400; }
.ic { width: 20px; height: 20px; flex: none; }
.ic.flip { transform: scaleX(-1); }
@media (max-width: 959px) { .desk { display: none !important; } }
.wrap { max-width: 1240px; margin-inline: auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
main { outline: none; }
.section { padding-block: 14px; }

/* --- buttons & controls ------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px; border-radius: 999px; font-weight: 400; font-size: 16px;
  transition: background .2s, color .2s, border-color .2s, transform .1s, box-shadow .2s; white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn .ic { width: 18px; height: 18px; }
.btn.primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--primary) 70%, transparent); }
.btn.primary:hover { background: var(--primary-hover); }
.btn.outline { border: 1.5px solid var(--primary); color: var(--primary); background: var(--surface); }
.btn.outline:hover { background: var(--primary-soft); }
.btn.ghost { border: 1px solid var(--line); background: var(--surface); }
.btn.white { background: #fff; color: #141726; }
.btn.danger { background: var(--err); color: #fff; }
.btn.sm { height: 36px; padding: 0 18px; font-size: 14px; }
.btn.lg { height: 54px; font-size: 17px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .7; cursor: progress; }

.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; flex: none;
  border-radius: 50%; background: var(--surface); border: 1px solid var(--line); color: var(--ink);
  transition: background .2s, border-color .2s, color .2s;
}
.icon-btn:hover { border-color: color-mix(in srgb, var(--primary) 35%, var(--line)); }
.icon-btn.sm { width: 34px; height: 34px; }
.icon-btn.sm .ic { width: 17px; height: 17px; }
.icon-btn.ghost { border-color: transparent; background: transparent; color: var(--muted); }
.icon-btn.ghost:hover { color: var(--err); }
.icon-btn.wish-btn.on, .wish.on { color: var(--sale); }
.icon-btn.wish-btn.on .ic, .wish.on .ic { fill: currentColor; }
.badge-dot {
  position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--primary); color: var(--on-primary); font-size: 11px; font-weight: 600; line-height: 18px; text-align: center;
  border: 2px solid var(--surface); box-sizing: content-box;
}
.badge-dot:empty { display: none; }
.link-btn { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-size: 14px; }
.link-btn .ic { width: 16px; height: 16px; }
.pop { animation: pop .35s ease; }
@keyframes pop { 40% { transform: scale(1.25); } }

/* --- header ---------------------------------------------------------------- */
.site-head {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  transition: box-shadow .2s;
}
.site-head.scrolled { box-shadow: 0 1px 0 var(--line); }
.head-row { display: flex; align-items: center; gap: 10px; padding-block: 12px; }
.logo { display: inline-flex; align-items: center; gap: 8px; }
.logo-mark { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: var(--on-primary); flex: none; }
.logo-mark .ic { width: 20px; height: 20px; fill: currentColor; stroke-width: 1.2; }
.logo-word { display: none; font: 600 24px/1 var(--f-display); letter-spacing: -.04em; }
.search { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; height: 42px; padding: 0 6px 0 14px; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; transition: border-color .2s, box-shadow .2s; }
.search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.search > .ic { color: var(--muted); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; height: 100%; font-size: 15px; }
.search input::placeholder { color: var(--muted); }
.search input::-webkit-search-cancel-button { display: none; }
.search-cam { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--ink-2); }
.search-cam:hover { background: var(--primary-soft); color: var(--primary); }
.head-actions { display: flex; gap: 8px; }
.suggest { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 70; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 6px; }
.sg-item { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 6px 10px 6px 6px; border-radius: 12px; }
.sg-item:hover, .sg-item.on { background: var(--surface-2); }
.sg-item b { display: block; font-weight: 500; font-size: 14px; }
.sg-item small { color: var(--muted); font-size: 12px; }
.sg-item em { font-style: normal; font-size: 14px; font-variant-numeric: tabular-nums; }
.sg-art { width: 44px; height: 44px; border-radius: 10px; background: var(--media); padding: 2px; }
.sg-all { width: 100%; text-align: left; padding: 10px; color: var(--primary); font-size: 14px; border-top: 1px solid var(--line); margin-top: 4px; }
.sg-none { padding: 14px; color: var(--muted); font-size: 14px; }
.cat-nav { display: flex; gap: 4px; padding-bottom: 10px; overflow-x: auto; scrollbar-width: none; }
.cat-nav a { padding: 7px 14px; border-radius: 999px; font-size: 14px; color: var(--ink-2); white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.cat-nav a:hover { color: var(--ink); background: var(--surface); }
.cat-nav a.on { background: var(--surface); color: var(--primary); box-shadow: var(--shadow); }
.cat-nav a.hot { color: var(--sale); }
.cat-nav a .ic { width: 15px; height: 15px; fill: currentColor; }

/* mobile sub-page header (mirrors the app screens) */
.m-head { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 10px; padding: 12px var(--gutter-r) 8px var(--gutter); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.m-head h1 { font-size: 18px; text-align: center; font-weight: 400; }
.m-head-r { display: flex; gap: 8px; justify-content: flex-end; min-width: 42px; }
body.sub-page .site-head, body.pdp-page .site-head { display: none; }

/* --- tab bar (mobile) ------------------------------------------------------ */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 8px max(8px, env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px));
  background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}
.tabbar a { position: relative; display: grid; justify-items: center; gap: 3px; font-size: 11px; color: var(--muted); padding-top: 6px; }
.tabbar a .ic { width: 23px; height: 23px; }
.tabbar a.on { color: var(--primary); }
.tabbar a.on::before { content: ""; position: absolute; top: -9px; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--primary); }
.tabbar a.on .ic { fill: color-mix(in srgb, var(--primary) 18%, transparent); }
.tabbar .badge-dot { top: 0; right: calc(50% - 22px); }
body.pdp-page .tabbar { display: none; }

/* --- section headings ------------------------------------------------------ */
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sec-head h2 { font-size: 20px; }
.sec-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sec-actions { display: flex; align-items: center; gap: 8px; }
.see-all { color: var(--primary); font-size: 15px; white-space: nowrap; }
.eyebrow { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.countdown { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 7px; border-radius: 999px; background: color-mix(in srgb, var(--sale) 12%, var(--surface)); color: var(--sale); font-size: 13px; }
.countdown .ic { width: 14px; height: 14px; fill: currentColor; }
.countdown b { font-weight: 600; font-variant-numeric: tabular-nums; }

/* --- hero ------------------------------------------------------------------ */
.hero-wrap { display: grid; gap: 16px; padding-top: 4px; }
.hero { position: relative; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); min-width: 0; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; outline: none; }
.slides::-webkit-scrollbar { display: none; }
.slide {
  flex: 0 0 100%; scroll-snap-align: start; position: relative; display: grid; grid-template-columns: 1.15fr 1fr; align-items: center;
  min-height: 168px; padding: 18px 0 30px 18px; color: #fff; overflow: hidden;
}
.slide::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 90% at 85% 40%, rgba(255,255,255,.22), transparent 60%); pointer-events: none; }
.tone-indigo { background: linear-gradient(118deg, var(--hero-a) 0%, var(--hero-b) 58%, var(--hero-c) 100%); }
.tone-ocean { background: linear-gradient(118deg, #0d3d8a 0%, #2d73d6 60%, #79b4f2 100%); }
.tone-dusk { background: linear-gradient(118deg, #1b1f4f 0%, #3c3f9c 55%, #7a74d8 100%); }
.slide-copy { position: relative; z-index: 1; display: grid; gap: 6px; justify-items: start; }
.slide h2 { font-size: 24px; font-weight: 500; }
.slide-sub { font-size: 13px; font-weight: 300; opacity: .9; line-height: 1.35; margin-bottom: 8px; }
.slide-art { position: relative; z-index: 1; align-self: stretch; margin: -10px -24px -30px -10px; display: grid; place-items: center; }
.slide-art svg { width: 100%; height: 100%; max-height: 220px; filter: drop-shadow(0 18px 24px rgba(0, 0, 30, .3)); }
.dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; z-index: 2; }
.dots button { width: 6px; height: 6px; border-radius: 999px; background: rgba(255,255,255,.45); transition: width .3s, background .3s; }
.dots button.on { width: 18px; background: #fff; }
.hero-side { display: none; }
.side-card { position: relative; display: grid; grid-template-columns: 1fr 120px; align-items: center; gap: 8px; border-radius: var(--r); padding: 20px; overflow: hidden; box-shadow: var(--shadow); transition: transform .25s; }
.side-card:hover { transform: translateY(-2px); }
.side-card h3 { font-size: 22px; margin: 2px 0 2px; }
.side-card p:not(.eyebrow) { color: var(--ink-2); font-size: 14px; }
.side-card .eyebrow { color: var(--primary); opacity: 1; }
.side-card .link { display: inline-flex; align-items: center; gap: 2px; margin-top: 10px; color: var(--primary); font-size: 14px; }
.side-card .link .ic { width: 16px; height: 16px; }
.tone-sky { background: linear-gradient(140deg, var(--surface) 30%, color-mix(in srgb, #9fb8e2 35%, var(--surface))); }
.tone-mist { background: linear-gradient(140deg, var(--surface) 30%, color-mix(in srgb, #c9c2e8 40%, var(--surface))); }
.side-art svg { width: 100%; height: auto; }

/* --- perks ------------------------------------------------------------------ */
.perks { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-block: 14px 4px; }
.perks::-webkit-scrollbar { display: none; }
.perk { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; background: var(--surface); border-radius: 999px; border: 1px solid var(--line); }
.perk > .ic { width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); }
.perk b { display: block; font-weight: 500; font-size: 14px; line-height: 1.2; }
.perk span { font-size: 12px; color: var(--muted); }

/* --- categories ------------------------------------------------------------ */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cat-tile {
  display: grid; justify-items: center; gap: 4px; padding: 12px 8px 12px; background: var(--surface); border-radius: var(--r-sm);
  font-size: 14px; color: var(--ink); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.cat-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.cat-art { width: 64px; height: 64px; display: grid; place-items: center; }
.cat-art svg { width: 100%; height: 100%; }
.more-dots { width: 42px; height: 42px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; }
.more-dots .ic { width: 20px; height: 20px; fill: currentColor; }
.cat-grid > :nth-child(n+6):not(.more) { display: none; }

/* --- product cards --------------------------------------------------------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.card { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); }
.product-card { position: relative; display: flex; flex-direction: column; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.pc-media { display: block; aspect-ratio: 1; background: radial-gradient(80% 70% at 50% 40%, var(--surface), var(--media)); padding: 10px 6px 0; }
.pc-media svg { width: 100%; height: 100%; transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.product-card:hover .pc-media svg { transform: scale(1.04); }
.wish { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--surface) 85%, transparent); color: var(--ink); backdrop-filter: blur(6px); }
.wish .ic { width: 18px; height: 18px; }
.badge { position: absolute; top: 12px; left: 12px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.badge.sale { background: var(--sale); color: #fff; }
.pc-body { display: flex; flex-direction: column; gap: 4px; padding: 10px 14px 14px; flex: 1; }
.pc-swatches { display: flex; gap: 4px; }
.pc-swatches i { width: 10px; height: 10px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.pc-title { font-size: 15px; font-weight: 500; }
.pc-tag { font-size: 13px; color: var(--muted); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; margin-top: auto; padding-top: 6px; }
.price { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-variant-numeric: tabular-nums; }
.price .now { font-weight: 500; font-size: 16px; }
.price .was { color: var(--muted); font-size: 13px; }
.price.lg .now { font-size: 24px; }
.price.lg .was { font-size: 16px; }
.add-mini { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; border: 1.5px solid var(--primary); color: var(--primary); transition: background .2s, color .2s; }
.add-mini:hover { background: var(--primary); color: var(--on-primary); }
.add-mini .ic { width: 16px; height: 16px; }
.stock-bar { height: 5px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin-top: 8px; }
.stock-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ff9a3d, var(--sale)); }
.stock-txt { font-size: 12px; color: var(--muted); }
.stock-txt b { color: var(--ink); font-weight: 500; }

.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 46%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px var(--gutter-r) 18px var(--gutter); margin: -4px calc(var(--gutter-r) * -1) -18px calc(var(--gutter) * -1); scroll-padding-left: var(--gutter); }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.product-card.compact .pc-title { font-size: 14px; }

/* --- editorial promo ------------------------------------------------------- */
.editorial { display: grid; gap: 8px; border-radius: var(--r-lg); padding: 24px 22px 0; overflow: hidden; color: #fff; background: linear-gradient(135deg, #111633 0%, #232c6b 55%, #3e4cb0 100%); position: relative; }
.editorial::before { content: ""; position: absolute; inset: auto -10% -40% 30%; height: 80%; background: radial-gradient(closest-side, rgba(140, 160, 255, .45), transparent); pointer-events: none; }
.ed-copy { position: relative; display: grid; gap: 10px; justify-items: start; max-width: 46ch; }
.ed-copy h2 { font-size: 26px; }
.ed-copy p:not(.eyebrow) { color: rgba(255,255,255,.75); font-weight: 300; }
.ed-art { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; align-items: end; margin-inline: -10px; }
.ed-art svg { width: 100%; height: auto; filter: drop-shadow(0 20px 30px rgba(0,0,0,.35)); }
.code-chip { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px dashed currentColor; font-weight: 500; letter-spacing: .06em; font-size: 14px; }
.code-chip .ic { width: 17px; height: 17px; opacity: .8; }
.editorial .code-chip { color: #fff; background: rgba(255,255,255,.08); }
.editorial .code-chip:hover { background: rgba(255,255,255,.16); }

/* --- shop -------------------------------------------------------------------- */
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 14px; flex-wrap: wrap; }
.crumbs .ic { width: 14px; height: 14px; }
.crumbs a:hover { color: var(--primary); }
.crumbs span { color: var(--ink-2); }
.shop-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.shop-head h1 { font-size: 24px; }
.shop-head p { font-size: 14px; }
.select { position: relative; display: inline-flex; align-items: center; }
.select select { appearance: none; -webkit-appearance: none; height: 40px; padding: 0 38px 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; cursor: pointer; }
.select .ic { position: absolute; right: 12px; width: 16px; height: 16px; pointer-events: none; color: var(--muted); }
.select.block, .select.block select { width: 100%; }
.select.block select { height: 48px; border-radius: 14px; font-size: 15px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 16px; margin-inline: calc(var(--gutter) * -1) calc(var(--gutter-r) * -1); padding-inline: var(--gutter) var(--gutter-r); }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; color: var(--ink-2); transition: all .2s; }
.chip .ic { width: 15px; height: 15px; color: var(--sale); fill: currentColor; }
.chip:hover { border-color: color-mix(in srgb, var(--primary) 40%, var(--line)); }
.chip.on { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }

/* --- product detail ------------------------------------------------------------ */
.pdp { padding-top: 4px; }
.pdp-grid { display: grid; gap: 22px; }
.gallery { display: grid; gap: 14px; min-width: 0; }
.stage { aspect-ratio: 1.15; max-height: 380px; width: 100%; display: grid; place-items: center; }
.stage svg { width: 100%; height: 100%; animation: fadeUp .45s cubic-bezier(.2,.8,.2,1); }
@keyframes fadeUp { from { opacity: .3; transform: translateY(8px) scale(.98); } }
.seg { display: inline-flex; justify-self: center; padding: 4px; gap: 2px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.seg button { height: 32px; padding: 0 14px; border-radius: 999px; font-size: 13px; color: var(--ink-2); }
.seg button.on { background: var(--primary-soft); color: var(--primary); }
.seg.wide { display: flex; }
.seg.wide button { flex: 1; height: 38px; font-size: 14px; }
.thumbs { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.thumb { width: 70px; height: 64px; border-radius: 12px; background: var(--surface); border: 1.5px solid var(--line); padding: 4px; transition: border-color .2s, box-shadow .2s; }
.thumb svg { width: 100%; height: 100%; }
.thumb.on { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.info { display: grid; gap: 18px; align-content: start; min-width: 0; }
.info h1 { font-size: 26px; font-weight: 500; }
.meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; margin-top: -10px; }
.brand { color: var(--primary); }
.meta .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--line); }
.rating { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); }
.rating .star { width: 18px; height: 18px; color: var(--star); }
.rating b { font-weight: 400; }
.rating .chev { width: 15px; height: 15px; color: var(--muted); }
.rating-link:hover .rating { color: var(--primary); }
.price-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.save { display: inline-block; margin-top: 4px; font-size: 13px; color: var(--ok); background: var(--ok-soft); padding: 2px 10px; border-radius: 999px; }
.qty { display: inline-flex; align-items: center; gap: 14px; }
.qty output { min-width: 14px; text-align: center; font-variant-numeric: tabular-nums; font-size: 16px; }
.qty-btn { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: var(--muted); background: var(--surface); transition: all .2s; }
.qty-btn.primary { border: 1.5px solid var(--primary); color: var(--primary); }
.qty-btn:hover:not(:disabled) { background: var(--primary-soft); }
.qty-btn:disabled { opacity: .4; cursor: not-allowed; }
.qty-btn .ic { width: 16px; height: 16px; }
.qty.sm { gap: 10px; }
.qty.sm .qty-btn { width: 26px; height: 26px; }
.qty.sm .qty-btn .ic { width: 14px; height: 14px; }
.opt-group { display: grid; gap: 12px; }
.opt-label { font-size: 16px; font-weight: 400; display: flex; gap: 8px; align-items: baseline; }
.opt-label .muted { font-size: 14px; }
.opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.opts.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.opt {
  display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px 0 6px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); font-size: 14px; color: var(--ink-2); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: all .2s;
}
.opt.center { justify-content: center; padding: 0 12px; }
.opt:hover { border-color: color-mix(in srgb, var(--primary) 40%, var(--line)); }
.opt.on { border: 1.5px solid var(--primary); color: var(--primary); background: var(--primary-soft); }
.sw { width: 32px; height: 32px; border-radius: 50%; flex: none; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--sw) 55%, #fff), var(--sw) 60%, color-mix(in srgb, var(--sw) 80%, #000)); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.opts.compact { display: flex; flex-wrap: wrap; gap: 8px; }
.opts.compact .opt { height: 36px; font-size: 13px; }
.opts.compact .sw { width: 24px; height: 24px; }
.highlights { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.highlights li { display: flex; align-items: center; gap: 12px; color: var(--ink-2); font-size: 15px; }
.highlights span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--muted); flex: none; }
.highlights .ic { width: 17px; height: 17px; }
.buy-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.assurances { list-style: none; margin: 0; padding: 16px; display: grid; gap: 12px; background: var(--surface); border-radius: var(--r); border: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.assurances li { display: flex; align-items: center; gap: 12px; }
.assurances .ic { color: var(--primary); }
.assurances b { color: var(--ink); font-weight: 500; }
.pdp-more { display: grid; gap: 14px; margin-top: 28px; }
.pdp-more .card { padding: 20px; }
.pdp-more h2 { font-size: 18px; margin-bottom: 12px; }
.prose p { color: var(--ink-2); max-width: 65ch; }
.specs { margin: 0; display: grid; }
.specs div { display: grid; grid-template-columns: minmax(100px, 40%) 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.specs div:first-child { border-top: 0; padding-top: 0; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; }
.rv-score { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.rv-score > b { font: 500 40px/1 var(--f-display); }
.rv-score div { color: var(--star); letter-spacing: 2px; display: grid; }
.rv-score span { letter-spacing: 0; font-size: 13px; }
.rv-bars { display: grid; gap: 6px; }
.rv-bars div { display: grid; grid-template-columns: 12px 1fr; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); }
.rv-bars i { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.rv-bars b { display: block; height: 100%; background: var(--star); border-radius: inherit; }

/* mobile: sticky buy bar like the app reference */
body.pdp-page { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
body.pdp-page .buy-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  padding: 12px var(--gutter-r) calc(12px + env(safe-area-inset-bottom, 0px)) var(--gutter);
  background: linear-gradient(to top, var(--bg) 70%, color-mix(in srgb, var(--bg) 0%, transparent));
}

/* --- cart ------------------------------------------------------------------ */
.page-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.page-head h1 { font-size: 30px; }
.page-head h1 .muted { font-size: 18px; margin-left: 6px; }
.cart-grid { display: grid; gap: 16px; align-items: start; }
.lines { display: grid; gap: 12px; min-width: 0; }
.line { display: grid; grid-template-columns: 96px 1fr; grid-template-areas: "art info" "act act" "edit edit"; gap: 4px 14px; padding: 14px; }
.line-art { grid-area: art; width: 96px; height: 96px; display: block; }
.line-art svg { width: 100%; height: 100%; }
.line-info { grid-area: info; min-width: 0; align-self: center; }
.line-info h3 { font-size: 16px; font-weight: 500; }
.line-info .brand { font-size: 13px; margin: 2px 0 4px; }
.line-info .sm { font-size: 12px; }
.line-price { margin-top: 8px; font-weight: 500; font-variant-numeric: tabular-nums; }
.line-price .muted { font-weight: 400; font-size: 13px; }
.line-actions { grid-area: act; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 8px; }
.line-edit { grid-area: edit; display: grid; gap: 10px; padding-top: 12px; margin-top: 8px; border-top: 1px dashed var(--line); }
.ship-meter { padding: 12px 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); font-size: 14px; display: grid; gap: 8px; }
.ship-meter b { color: var(--primary); font-weight: 500; }
.ship-meter i { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; display: block; }
.ship-meter i b { display: block; height: 100%; background: var(--primary); border-radius: inherit; transition: width .4s; }
.ship-meter.ok { display: flex; align-items: center; gap: 10px; background: var(--ok-soft); border-color: transparent; color: var(--ok); }
.summary { padding: 18px; display: grid; gap: 14px; position: relative; }
.summary h2 { font-size: 18px; }
.promo { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 6px 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.promo:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.promo > .ic { color: var(--muted); }
.promo input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; text-transform: uppercase; letter-spacing: .04em; }
.promo input::placeholder { text-transform: none; letter-spacing: 0; color: var(--muted); }
.promo button { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.promo button:hover { background: var(--primary-soft); color: var(--primary); }
.promo-msg { font-size: 13px; margin-top: -6px; padding-left: 16px; }
.promo-msg.ok { color: var(--ok); }
.promo-msg.err { color: var(--err); }
.applied { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; background: var(--ok-soft); color: var(--ok); font-size: 14px; }
.applied span { flex: 1; }
.applied .ic { width: 18px; height: 18px; }
.totals { margin: 0; display: grid; gap: 12px; }
.totals div { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; }
.totals dt { color: var(--ink-2); }
.totals dd { margin: 0; font-variant-numeric: tabular-nums; }
.totals .disc dd { color: var(--ok); }
.totals .free { color: var(--ok); }
.totals .grand { padding-top: 12px; border-top: 1px solid var(--line); font-size: 17px; }
.totals .grand dt { color: var(--ink); }
.totals .grand dd { font-weight: 500; }
.totals .vat { font-size: 12px; margin-top: -6px; }
.totals .vat dt, .totals .vat dd { color: var(--muted); }
.fine { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: var(--muted); text-align: center; }
.fine .ic { width: 14px; height: 14px; }

/* --- checkout -------------------------------------------------------------- */
.steps { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 16px; font-size: 13px; color: var(--muted); counter-reset: s; overflow-x: auto; scrollbar-width: none; }
.steps li { counter-increment: s; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.steps li::before { content: counter(s); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); font-size: 12px; }
.steps li + li::after { order: -1; content: ""; width: 18px; height: 1px; background: var(--line); }
.steps li.on { color: var(--ink); }
.steps li.on::before { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.steps li.done::before { content: "✓"; background: var(--primary-soft); color: var(--primary); border-color: transparent; }
.co-main { display: grid; gap: 14px; min-width: 0; }
fieldset.card { border: 0; margin: 0; padding: 18px; min-width: 0; }
legend { float: left; width: 100%; font: 500 17px/1.2 var(--f-display); margin-bottom: 14px; padding: 0; }
legend + * { clear: both; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; color: var(--ink-2); }
.field input { height: 48px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); outline: none; transition: border-color .2s, box-shadow .2s, background .2s; width: 100%; font-size: 15px; }
.field input:focus { border-color: var(--primary); background: var(--surface); box-shadow: 0 0 0 4px var(--primary-soft); }
.field input[aria-invalid="true"] { border-color: var(--err); }
.field input::placeholder { color: var(--muted); opacity: .7; }
.err { font-size: 12px; color: var(--err); min-height: 0; }
.err:empty { display: none; }
.radios { display: grid; gap: 10px; }
.radio { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); cursor: pointer; transition: border-color .2s, background .2s; }
.radio:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.radio input { accent-color: var(--primary); width: 18px; height: 18px; margin: 0; }
.radio span { flex: 1; display: grid; }
.radio b { font-weight: 500; }
.radio small { color: var(--muted); font-size: 13px; }
.radio em { font-style: normal; font-size: 14px; font-variant-numeric: tabular-nums; }
.demo-note { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-2); padding: 10px 14px; border-radius: 12px; background: var(--primary-soft); margin-bottom: 14px; clear: both; }
.demo-note .ic { color: var(--primary); width: 17px; height: 17px; margin-top: 2px; }
.mini-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.mini-lines li { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; font-size: 14px; font-variant-numeric: tabular-nums; }
.mini-art { position: relative; width: 56px; height: 56px; border-radius: 14px; background: var(--media); padding: 3px; }
.mini-art svg { width: 100%; height: 100%; }
.mini-art i { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; border-radius: 999px; background: var(--ink-2); color: var(--surface); font: 600 11px/20px var(--f-body); text-align: center; font-style: normal; }
.mini-name { min-width: 0; display: grid; }
.mini-name b { font-weight: 500; }
.mini-name small { color: var(--muted); font-size: 12px; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }

/* --- confirmation / account / empty ---------------------------------------- */
.confirm-card { max-width: 640px; margin: 10px auto; padding: 28px 20px; display: grid; gap: 16px; justify-items: center; text-align: center; }
.confirm-card h1 { font-size: 24px; max-width: 22ch; }
.ok-badge { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); }
.ok-badge .ic { width: 30px; height: 30px; stroke-width: 2.2; }
.confirm-meta { display: grid; grid-template-columns: 1fr; gap: 10px; width: 100%; }
.confirm-meta div { padding: 12px; border-radius: 14px; background: var(--surface-2); display: grid; gap: 2px; }
.confirm-meta span { font-size: 12px; color: var(--muted); }
.confirm-meta b { font-weight: 500; }
.confirm-card .mini-lines { width: 100%; text-align: left; }
.confirm-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.acc-grid { display: grid; gap: 14px; }
.acc-grid .card { padding: 20px; display: grid; gap: 14px; align-content: start; }
.acc-grid h2 { font-size: 18px; }
.acc-grid .mt { margin-top: 8px; }
.orders { list-style: none; margin: 0; padding: 0; display: grid; }
.orders a { display: grid; grid-template-columns: 52px 1fr auto 18px; grid-template-areas: "art info total ch" "art status total ch"; gap: 0 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.orders li:first-child a { border-top: 0; }
.o-art { grid-area: art; width: 52px; height: 52px; border-radius: 12px; background: var(--media); padding: 2px; }
.o-art svg { width: 100%; height: 100%; }
.o-info { grid-area: info; display: grid; min-width: 0; }
.o-info b { font-weight: 500; }
.o-info small { color: var(--muted); font-size: 12px; }
.o-status { grid-area: status; justify-self: start; font-size: 12px; color: var(--primary); }
.o-total { grid-area: total; font-variant-numeric: tabular-nums; }
.orders .ic { grid-area: ch; width: 16px; height: 16px; color: var(--muted); }
.codes { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.codes li { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.codes .code-chip { color: var(--primary); }
.codes small { color: var(--muted); font-size: 13px; }
.empty { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 56px 16px; }
.empty-ic { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); box-shadow: var(--shadow); color: var(--primary); margin-bottom: 6px; }
.empty-ic .ic { width: 30px; height: 30px; }
.empty h2 { font-size: 20px; }
.empty p { color: var(--muted); max-width: 40ch; margin-bottom: 8px; }

/* --- footer ------------------------------------------------------------------ */
.site-foot { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--line); background: var(--surface); font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-bottom: 24px; }
.foot-brand { grid-column: 1 / -1; display: grid; gap: 10px; max-width: 34ch; color: var(--muted); }
.foot-brand .logo-word { display: inline; color: var(--ink); }
.site-foot h3 { font-size: 14px; margin-bottom: 10px; }
.site-foot a:not(.logo) { display: block; color: var(--muted); padding: 3px 0; }
.site-foot a:hover { color: var(--primary); }
.site-foot p { color: var(--muted); }
.site-foot .tel { color: var(--ink); font-weight: 500; margin-top: 4px; font-variant-numeric: tabular-nums; user-select: all; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-block: 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
body.pdp-page .site-foot, body.sub-page .site-foot { display: none; }

/* --- toast & dialog ---------------------------------------------------------- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + 16px + env(safe-area-inset-bottom, 0px)); z-index: 90;
  display: flex; align-items: center; gap: 10px; max-width: calc(100% - 32px); width: max-content;
  padding: 12px 16px; border-radius: 16px; background: var(--ink); color: var(--bg); font-size: 14px;
  box-shadow: var(--shadow-lg); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: all .3s cubic-bezier(.2,.8,.2,1);
}
.toast.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.toast .ic { width: 18px; height: 18px; color: var(--ok); flex: none; }
.toast a { color: var(--primary); font-weight: 500; white-space: nowrap; margin-left: 4px; filter: brightness(1.25); }
body.pdp-page .toast { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
#dialog { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.dlg-back { position: absolute; inset: 0; background: rgba(10, 14, 30, .45); backdrop-filter: blur(3px); }
.dlg { position: relative; width: min(400px, 100%); background: var(--surface); border-radius: var(--r-lg); padding: 24px; display: grid; gap: 10px; box-shadow: var(--shadow-lg); animation: fadeUp .25s ease; }
.dlg h2 { font-size: 20px; }
.dlg p { color: var(--ink-2); }
.dlg-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }

/* ==========================================================================
   Tablet & desktop
   ========================================================================== */
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .rail { grid-auto-columns: 31%; }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .cat-grid > :nth-child(n+6):not(.more) { display: grid; }
  .slide { min-height: 240px; padding: 28px 0 40px 32px; }
  .slide h2 { font-size: 34px; }
  .slide-sub { font-size: 15px; }
  .confirm-meta { grid-template-columns: repeat(3, 1fr); }
  .editorial { grid-template-columns: 1fr 1fr; align-items: center; padding: 32px 0 0 36px; }
  .ed-art { align-self: end; }
}

@media (min-width: 960px) {
  body { padding-bottom: 0; font-size: 15px; }
  .tabbar, .m-head { display: none; }
  body.sub-page .site-head, body.pdp-page .site-head { display: block; }
  body.pdp-page .site-foot, body.sub-page .site-foot { display: block; }
  body.pdp-page { padding-bottom: 0; }
  .toast, body.pdp-page .toast { bottom: 28px; }
  .section { padding-block: 22px; }

  .head-row { gap: 24px; padding-block: 14px 12px; }
  .logo-word { display: inline; }
  .logo-mark { width: 38px; height: 38px; }
  .search { max-width: 560px; margin-inline: auto; height: 46px; }

  .hero-wrap { grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); padding-top: 8px; }
  .hero { border-radius: var(--r-lg); }
  .slide { min-height: 380px; padding: 48px 0 48px 56px; grid-template-columns: 1fr 1.05fr; }
  .slide h2 { font-size: 52px; letter-spacing: -.025em; }
  .slide-sub { font-size: 18px; margin-bottom: 14px; }
  .slide .btn.sm { height: 46px; padding: 0 26px; font-size: 15px; }
  .slide-art svg { max-height: 360px; }
  .hero-side { display: grid; gap: 16px; }
  .perks { display: grid; grid-template-columns: repeat(4, 1fr); padding-top: 18px; }
  .perk { border-radius: var(--r); padding: 14px 16px; background: transparent; border-color: transparent; }

  .sec-head h2 { font-size: 26px; }
  .cat-grid { grid-template-columns: repeat(8, 1fr); gap: 16px; }
  .cat-tile { padding: 18px 10px 14px; border-radius: var(--r); }
  .cat-art { width: 84px; height: 84px; }

  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
  .rail { grid-auto-columns: calc((100% - 60px) / 4); gap: 20px; margin: -4px -4px -18px; padding: 4px 4px 18px; scroll-padding-left: 4px; }
  .pc-body { padding: 12px 18px 18px; }
  .pc-title { font-size: 16px; }
  .editorial { padding: 48px 0 0 56px; grid-template-columns: 1fr 1.1fr; }
  .ed-copy h2 { font-size: 38px; }

  .shop-head h1 { font-size: 34px; }

  .pdp-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
  .gallery { position: sticky; top: 130px; background: var(--surface); border-radius: var(--r-lg); padding: 32px; box-shadow: var(--shadow); }
  .stage { max-height: 480px; aspect-ratio: 1.05; }
  .thumb { width: 84px; height: 76px; }
  .info { gap: 22px; padding-top: 8px; }
  .info h1 { font-size: 40px; letter-spacing: -.02em; }
  .price.lg .now { font-size: 30px; }
  body.pdp-page .buy-bar { position: static; padding: 0; background: none; }
  .buy-bar .btn { height: 54px; font-size: 17px; }
  .pdp-more { grid-template-columns: 1.3fr 1fr 1fr; margin-top: 48px; }
  .pdp-more .card { padding: 26px; }

  .cart-grid { grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; }
  .summary { position: sticky; top: 130px; padding: 24px; }
  .line { grid-template-columns: 120px 1fr auto; grid-template-areas: "art info act" "edit edit edit"; padding: 18px 22px 18px 18px; gap: 0 22px; }
  .line-art { width: 120px; height: 120px; }
  .line-actions { flex-direction: column; align-items: flex-end; justify-content: space-between; padding: 4px 0; align-self: stretch; }
  .line-info h3 { font-size: 18px; }
  .acc-grid { grid-template-columns: 1.6fr 1fr; }
  .foot-grid { grid-template-columns: 2fr 1fr 1fr 1fr; padding-bottom: 40px; }
  .foot-brand { grid-column: auto; }
  .confirm-card { padding: 44px; margin-top: 20px; }
  .confirm-card h1 { font-size: 30px; }
}

@media (min-width: 1200px) {
  .slide h2 { font-size: 60px; }
}

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

/* --- polish ---------------------------------------------------------------- */
#view:focus, #view:focus-visible { outline: none; }
.tabbar .badge-dot { top: -4px; }
@media (min-width: 960px) { .side-card { grid-template-columns: 1fr 160px; } }

/* --- back-end driven additions ------------------------------------------- */
.boot, .boot-error { min-height: 70vh; display: grid; place-items: center; align-content: center; gap: 14px; text-align: center; padding: 24px; }
.boot-error h1 { font-size: 22px; }
.boot-error p { color: var(--muted); }
.spinner.big { width: 34px; height: 34px; border-width: 3px; color: var(--primary); }
.photo { width: 100%; height: 100%; object-fit: contain; display: block; }
.pc-media .photo, .stage .photo { object-fit: contain; }
.logo-img { height: 40px; width: auto; max-width: 180px; object-fit: contain; }
.foot-brand .logo-word { display: inline; }
.pc-oos, .oos { color: var(--sale); font-size: 13px; font-weight: 500; }
.add-mini:disabled { opacity: .35; cursor: not-allowed; }
.add-mini:disabled:hover { background: none; color: var(--primary); }
.chips.sub { margin-top: -6px; }
.chips.sub .chip { height: 32px; font-size: 13px; }

/* desktop sub-menus */
.nav-item { position: relative; display: inline-flex; align-items: center; }
.nav-item > a { padding-right: 4px !important; }
.sub-toggle { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); margin-right: 6px; }
.sub-toggle .ic { width: 14px; height: 14px; transition: transform .2s; }
.sub-menu {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 60; min-width: 200px; padding: 6px; display: grid;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: all .18s;
}
.sub-menu a { border-radius: 10px !important; }
.nav-item:hover .sub-menu, .nav-item:focus-within .sub-menu, .nav-item.open .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav-item.open .sub-toggle .ic { transform: rotate(180deg); }
.cat-nav { overflow: visible; }

/* checkout: payments */
.form-error { padding: 12px 16px; border-radius: 14px; background: color-mix(in srgb, var(--err) 10%, var(--surface)); color: var(--err); font-size: 14px; }
.pay-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.pay-opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); cursor: pointer; transition: border-color .2s, background .2s; }
.pay-opt:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.pay-opt input { accent-color: var(--primary); width: 18px; height: 18px; margin: 0; flex: none; }
.pay-opt span:last-child { display: grid; min-width: 0; }
.pay-opt b { font-weight: 500; }
.pay-opt small { color: var(--muted); font-size: 12px; }
.pay-logo { width: 38px; height: 38px; border-radius: 11px; flex: none; display: grid; place-items: center; object-fit: contain; background: var(--pc, var(--primary)); color: #fff; font: 600 17px/1 var(--f-display); }
img.pay-logo { background: var(--surface); border: 1px solid var(--line); }
.pay-detail { display: grid; gap: 12px; margin-top: 14px; }
.pay-detail:empty { display: none; }
.pay-help { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--primary-soft); color: var(--ink-2); font-size: 14px; text-align: left; }
.pay-help .ic { color: var(--primary); width: 18px; height: 18px; margin-top: 2px; }
.pay-account { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border: 1px dashed var(--line); border-radius: 14px; }
.pay-account span { display: grid; }
.pay-account small { font-size: 12px; color: var(--muted); }
.pay-account b { font: 500 18px/1.3 var(--f-display); letter-spacing: .02em; font-variant-numeric: tabular-nums; user-select: all; }
.field small.muted { font-size: 12px; }
@media (min-width: 640px) { .pay-grid { grid-template-columns: 1fr 1fr; } }

/* confirmation / account */
.ok-badge.wait { background: color-mix(in srgb, var(--star) 18%, var(--surface)); color: #b7791f; }
.confirm-meta b small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.status-pill, .o-status { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 12px; background: var(--primary-soft); color: var(--primary); }
.s-pending { background: color-mix(in srgb, var(--star) 16%, var(--surface)); color: #a3670f; }
.s-processing { background: var(--primary-soft); color: var(--primary); }
.s-shipped { background: color-mix(in srgb, #7c5cff 14%, var(--surface)); color: #6a4be0; }
.s-delivered { background: var(--ok-soft); color: var(--ok); }
.s-cancelled, .s-refunded { background: color-mix(in srgb, var(--err) 10%, var(--surface)); color: var(--err); }
.lookup { display: grid; gap: 10px; }
.lookup .btn { justify-self: start; }
.contact { font-size: 14px; }
.totals dt small { font-size: 12px; }
