/* ============================================================
   SLAR 3D — site styles
   Built on the "SLAR 3D Studio" design system (tokens below).
   ============================================================ */

:root {
  /* brand constants */
  --olive: #56700b;
  --olive-bright: #7d9c1c;
  --signal: #c8302b;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: clamp(0.82rem, 0.8rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --step-1: clamp(1.15rem, 1.05rem + 0.45vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.25rem + 1.2vw, 2.25rem);
  --step-3: clamp(2.1rem, 1.5rem + 2.8vw, 4rem);
  --step-4: clamp(2.9rem, 1.7rem + 6vw, 8rem);

  --gutter: clamp(1.15rem, 4vw, 3.5rem);
  --max: 1400px;
  /* motion (Emil Kowalski curves): ease-out for UI, drawer curve for sheets */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --ease: var(--ease-out);
  --dur-1: 150ms; --dur-2: 220ms; --dur-3: 320ms;
  --header-h: 72px;
}

/* ---------- Tokens: SLAR 3D Studio design system ---------- */
:root {
  --paper: #f5f5f0; --surface-c: #ffffff; --mist: #ebede4; --stone: #d7dacd;
  --ink: #111309; --graphite: #575a4c; --on-ink: #ffffff;
  --brand: #56700b; --brand-hover: #4a610a; --brand-tint: #e9eedb; --on-brand: #ffffff;
  --moss: #b6c088; --night: #111309; --on-night: #f1f2e8; --focus: #6a8a10;
  --danger: #b42318; --danger-tint: #fde7e5; --warn: #8a4f06; --warn-tint: #fff3dc;
  --placeholder: #66695b;
  --shadow-1: 0 1px 2px rgba(17,19,9,0.06);
  --shadow-2: 0 1px 0 rgba(17,19,9,0.06), 0 12px 30px -18px rgba(17,19,9,0.28);
  --shadow-3: 0 30px 70px -24px rgba(17,19,9,0.38);

  --bg: var(--paper); --fg: var(--ink); --muted: var(--graphite); --line: rgba(17,19,9,0.1);
  --surface: var(--surface-c); --surface-2: var(--mist); --surface-fg: var(--ink);
  --accent: var(--ink); --accent-hover: #2a2d22; --accent-fg: var(--on-ink);
  --strong: var(--brand); --strong-fg: var(--on-brand);
  --band-bg: var(--surface-c); --band-fg: var(--ink); --band-muted: var(--graphite); --band-deep: #eef0e8; --band-line: var(--stone);
  --alt-bg: var(--mist); --alt-fg: var(--ink); --alt-muted: #55584a; --alt-line: rgba(17,19,9,0.12);
  --cta-bg: var(--brand); --cta-fg: #ffffff;
  --hi: var(--brand);
  --glow: rgba(125,156,28,0.32);
  --logo-1: var(--brand); --logo-2: var(--ink);
  --art-fill: #1d2111; --art-fill-2: #000000; --art-accent: #56700b; --art-stroke: #b6c088;
  --nav-bg: rgba(245,245,240,0.84);
  --topbar-bg: var(--ink); --topbar-fg: #f1f2e8;
  --r-lg: 22px; --r-md: 14px; --r-sm: 10px; --r-btn: 999px;
  --d-wdth: 100; --d-weight: 700; --d-case: none; --d-track: -0.035em; --d-lh: 1;
  color-scheme: light;
}


/* ============================================================
   Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font); font-size: var(--step-0); line-height: 1.55;
  font-variation-settings: "wdth" 100; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; caret-color: var(--brand); accent-color: var(--brand);
}
html { scrollbar-color: var(--stone) transparent; }
::selection { background: #d6e0b1; color: var(--ink); }
p, li, dd, blockquote, figcaption { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; }
::placeholder { color: var(--placeholder); opacity: 1; }
.tnum { font-variant-numeric: tabular-nums; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
:focus:not(:focus-visible) { outline: none; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.logo { display: block; width: 100%; height: auto; }

.display {
  margin: 0; font-weight: var(--d-weight);
  font-variation-settings: "wdth" var(--d-wdth);
  text-transform: var(--d-case); letter-spacing: var(--d-track); line-height: var(--d-lh);
  text-wrap: balance;
}
.h2 { font-size: var(--step-3); }
.lede { font-size: var(--step-1); line-height: 1.45; max-width: 36ch; margin: 0; }

/* Buttons */
.btn {
  --b-bg: var(--accent); --b-fg: var(--accent-fg); --b-ring: transparent;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 52px; padding: 0 1.6em; border: 0; border-radius: var(--r-btn); cursor: pointer;
  background: var(--b-bg); color: var(--b-fg); box-shadow: inset 0 0 0 1.5px var(--b-ring);
  font-weight: 700; font-size: 1rem; text-decoration: none; white-space: nowrap;
  font-variation-settings: "wdth" 108; -webkit-tap-highlight-color: transparent; user-select: none;
  transition: background-color var(--dur-1) var(--ease-out), box-shadow var(--dur-1) var(--ease-out), opacity var(--dur-1), transform 160ms var(--ease-out);
}
@media (hover: hover) { .btn:hover { --b-bg: var(--accent-hover); } }
.btn:active, .icon-btn:active, .chip:active, .pill:active span, .qty button:active, .cart__qty button:active { transform: scale(0.97); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
.btn[disabled]:active { transform: none; }
.btn.is-busy { cursor: progress; color: transparent !important; }
.btn.is-busy > * { visibility: hidden; }
.btn.is-busy::after {
  content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--b-fg); border-right-color: transparent; animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn svg, .icon-btn svg { flex: none; }
.btn svg { width: 18px; height: 18px; }
.btn--olive { --b-bg: var(--brand); --b-fg: var(--on-brand); }
.btn--olive:hover { --b-bg: var(--brand-hover); }
.btn--strong { --b-bg: var(--strong); --b-fg: var(--strong-fg); }
.btn--strong:hover { --b-bg: var(--strong); filter: brightness(0.94); }
.btn--ghost { --b-bg: transparent; --b-fg: currentColor; --b-ring: var(--line); }
.btn--ghost:hover { --b-bg: transparent; --b-ring: currentColor; }
.btn--black { --b-bg: var(--strong); --b-fg: var(--strong-fg); }
.btn--black:hover { --b-bg: var(--strong); filter: brightness(0.94); }

/* ============================================================
   Top bar + style switcher
   ============================================================ */
.topbar {
  display: flex; align-items: center; justify-content: center; gap: 1rem; position: relative;
  min-height: 40px; padding: 0.35rem var(--gutter);
  background: var(--topbar-bg); color: var(--topbar-fg); font-size: var(--step--1); font-weight: 500;
}
.topbar__msg { margin: 0; text-align: center; }


/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color 0.3s, background-color 0.4s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; gap: 2rem; height: var(--header-h); }
.nav__logo { display: block; width: 150px; flex: none; }
.nav__links { display: flex; gap: 0.25rem; list-style: none; margin: 0 auto; padding: 0; }
.nav__links a {
  display: block; padding: 0.5rem 0.85rem; border-radius: var(--r-btn);
  text-decoration: none; font-weight: 500; font-size: 0.95rem; color: var(--muted); transition: color 0.2s, background-color 0.2s;
}
.nav__links a:hover { color: var(--fg); background: var(--surface-2); }
.nav__actions { display: flex; align-items: center; gap: 0.35rem; }
.icon-btn {
  position: relative; width: 44px; height: 44px; display: grid; place-items: center; flex: none;
  background: transparent; border: 0; border-radius: 50%; cursor: pointer; color: inherit; transition: background-color 0.2s;
}
@media (hover: hover) { .icon-btn:hover { background: var(--surface-2); } }
.icon-btn { transition: background-color var(--dur-1), transform 160ms var(--ease-out); -webkit-tap-highlight-color: transparent; }
.icon-btn > svg { width: 20px; height: 20px; }
.cart-count {
  position: absolute; top: 4px; right: 3px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px;
  background: var(--strong); color: var(--strong-fg); font-size: 12px; font-weight: 700; display: grid; place-items: center;
  font-variant-numeric: tabular-nums; box-shadow: 0 0 0 2px var(--bg);
}
.cart-count:empty, .cart-count[data-n="0"] { display: none; }
.nav__cta { min-height: 42px; padding: 0 1.2em; font-size: 0.92rem; margin-left: 0.4rem; }
.nav__menu { display: none; }

.drawer {
  position: fixed; inset: 0; z-index: 60; background: var(--bg); color: var(--fg);
  padding: 1rem var(--gutter) 2rem; display: flex; flex-direction: column;
  transform: translateY(-100%); visibility: hidden; transition: transform 0.4s var(--ease-drawer), visibility 0s 0.4s;
}
.drawer.is-open { transform: none; visibility: visible; transition: transform 0.4s var(--ease-drawer); }
.drawer__top { display: flex; justify-content: space-between; align-items: center; height: 52px; }
.drawer__top .logo { width: 130px; }
.drawer ul { list-style: none; padding: 0; margin: 2rem 0 auto; }
.drawer li a {
  display: block; padding: 0.55rem 0; text-decoration: none; border-bottom: 1px solid var(--line);
  font-size: clamp(1.7rem, 8vw, 2.2rem); font-weight: var(--d-weight); font-variation-settings: "wdth" var(--d-wdth);
  text-transform: var(--d-case); letter-spacing: var(--d-track);
}
.drawer__foot { display: grid; gap: 0.6rem; }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; overflow: hidden; padding-block: clamp(1rem, 3vh, 2.5rem) 0; }
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 2rem;
  min-height: min(calc(100svh - 150px), 720px);
}
.hero__copy { display: grid; gap: clamp(1rem, 2.6vh, 1.8rem); align-content: center; position: relative; z-index: 2; }
.hero__title { font-size: clamp(2.2rem, min(0.4rem + 4.7vw, 11vh), 5.6rem); white-space: nowrap; }
.hero__title { font-size: clamp(2.8rem, min(1.2rem + 5vw, 10vh), 6.8rem); }
.hero__title .line { display: block; }
.hero__title .w { display: inline-block; }
.hero__price { display: flex; align-items: baseline; gap: 0.8rem; flex-wrap: wrap; }
.hero__price strong { font-size: var(--step-2); font-weight: 800; font-variation-settings: "wdth" var(--d-wdth); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

.stage { position: relative; aspect-ratio: 1.12 / 1; width: 100%; max-height: min(620px, calc(100svh - 280px)); margin: 0 auto 1rem; }
.stage__floor {
  position: absolute; left: 22%; right: 22%; bottom: 12%; height: 7%; border-radius: 50%; pointer-events: none;
  background: rgba(17,19,9,0.14); filter: blur(16px);
}
.stage canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; cursor: grab; touch-action: pan-y; }
.stage canvas:active { cursor: grabbing; }
.stage__fallback { position: absolute; inset: 15% 5%; object-fit: contain; width: 90%; height: 70%; }
.stage__hint {
  position: absolute; left: 50%; bottom: 2%; transform: translateX(-50%); margin: 0;
  display: flex; align-items: center; gap: 0.5rem; color: var(--muted); font-size: var(--step--1); white-space: nowrap; pointer-events: none;
}
.stage__hint svg { width: 18px; height: 18px; }
.stage__loading { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: var(--muted); font-size: var(--step--1); }

.fitchips { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
.chip {
  border: 0; cursor: pointer; border-radius: var(--r-btn); min-height: 40px; padding: 0 1rem;
  background: var(--surface-2); color: var(--muted); font-weight: 600; font-size: 0.9rem;
  transition: background-color var(--dur-1), color var(--dur-1), transform 160ms var(--ease-out);
}
@media (hover: hover) { .chip:hover { color: var(--fg); } }
.chip[aria-pressed="true"] { background: var(--strong); color: var(--strong-fg); }

.hero__facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); margin: clamp(1.5rem, 4vw, 3rem) 0 0; }
.hero__facts div { padding: 1.4rem 0; }
.hero__facts div + div { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.hero__facts dt { color: var(--muted); font-size: var(--step--1); }
.hero__facts dd {
  margin: 0.2rem 0 0; font-size: var(--step-2); font-weight: 800; font-variation-settings: "wdth" var(--d-wdth);
  letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums;
}

/* ============================================================
   Featured product (band)
   ============================================================ */
.product { background: var(--band-bg); color: var(--band-fg); padding-block: clamp(3.5rem, 8vw, 7rem); }
.product__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.gallery__main {
  position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 5 / 4; display: grid; place-items: center;
  background: radial-gradient(120% 90% at 50% 30%, color-mix(in srgb, var(--band-deep) 40%, var(--band-bg)) 0%, var(--band-deep) 100%);
}
.gallery__main img { width: 100%; height: 100%; object-fit: cover; transition: opacity var(--dur-3) var(--ease-out); }
.gallery__main, .thumb, .fit__visual, .review img, .cta__img, .pcard__media, .cart__line img, .sum__line img {
  outline: 1px solid rgba(17,19,9,0.08); outline-offset: -1px;
}
.gallery__main img.is-cutout { object-fit: contain; padding: 8% 6%; filter: drop-shadow(0 30px 40px rgba(0,0,0,0.4)); }
.gallery__thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.6rem; margin-top: 0.8rem; }
.thumb {
  border: 0; padding: 0; cursor: pointer; border-radius: var(--r-sm); overflow: hidden; aspect-ratio: 1;
  background: var(--band-deep); opacity: 0.6; transition: opacity 0.2s;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-cutout img { object-fit: contain; padding: 10%; }
.thumb:hover { opacity: 0.9; }
.thumb[aria-current="true"] { opacity: 1; outline: 2px solid var(--band-fg); outline-offset: -2px; }

.buy { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 1.5rem; }
.buy__title { font-size: var(--step-3); }
.buy__price { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.buy__price strong { font-size: var(--step-2); font-weight: 800; font-variation-settings: "wdth" var(--d-wdth); }
.buy__price span { color: var(--band-muted); font-size: var(--step--1); }
.buy > p { margin: 0; max-width: 46ch; color: var(--band-muted); }
.option { border: 0; padding: 0; margin: 0; }
.option legend { font-weight: 700; margin-bottom: 0.6rem; padding: 0; }
.option__row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0 1.05rem;
  border-radius: var(--r-btn); font-weight: 600; font-size: 0.93rem;
  box-shadow: inset 0 0 0 1.5px var(--band-line);
  transition: background-color var(--dur-1), box-shadow var(--dur-1), color var(--dur-1), transform 160ms var(--ease-out);
}
@media (hover: hover) { .pill:hover span { box-shadow: inset 0 0 0 1.5px var(--band-fg); } }
.pill input:checked + span { background: var(--band-fg); color: var(--band-bg); box-shadow: inset 0 0 0 1.5px var(--band-fg); }
.pill input:focus-visible + span { outline: 2px solid var(--band-fg); outline-offset: 2px; }
.swatch { width: 16px; height: 16px; border-radius: 50%; background: #111; box-shadow: 0 0 0 1.5px rgba(127,127,127,0.6); }
.swatch--red { background: linear-gradient(180deg, #111 55%, var(--signal) 55%); }
.buy__row { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; border-radius: var(--r-btn); box-shadow: inset 0 0 0 1.5px var(--band-line); }
.qty button { width: 48px; height: 52px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; border-radius: 50%; transition: transform 160ms var(--ease-out), opacity var(--dur-1); }
.qty button svg { width: 18px; height: 18px; }
.qty button[disabled] { opacity: 0.35; cursor: not-allowed; }
.qty output { min-width: 1.6rem; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.buy__row .btn { flex: 1; min-width: 200px; }
.product .btn--black { --b-bg: var(--band-fg); --b-fg: var(--band-bg); }
.product .btn--black { --b-bg: #101209; --b-fg: #fff; }
.buy__notes { list-style: none; padding: 1.2rem 0 0; margin: 0; border-top: 1px solid var(--band-line); display: grid; gap: 0.55rem; font-size: 0.95rem; }
.buy__notes li { display: flex; gap: 0.7rem; align-items: flex-start; }
.buy__notes svg { flex: none; width: 20px; height: 20px; margin-top: 2px; }

/* ============================================================
   Fit finder
   ============================================================ */
.fit { padding-block: clamp(4rem, 9vw, 8rem); }
.fit__head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.fit__head > p { max-width: 40ch; margin: 0; color: var(--muted); }
.fit__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.bikes { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.bike {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1rem; width: 100%;
  padding: 1.4rem 0; border: 0; border-bottom: 1px solid var(--line); background: none; cursor: pointer; text-align: left;
  color: var(--muted); transition: color 0.25s, padding 0.35s var(--ease);
}
.bike__name {
  font-size: clamp(1.6rem, 1rem + 2.6vw, 3.1rem); font-weight: var(--d-weight); font-variation-settings: "wdth" var(--d-wdth);
  text-transform: var(--d-case); letter-spacing: var(--d-track); line-height: 1;
}
.bike__name small {
  display: block; margin-bottom: 0.45rem; color: var(--muted); font-size: var(--step--1); font-weight: 500;
  font-variation-settings: "wdth" 100; text-transform: none; letter-spacing: 0;
}
.bike__tag { font-size: var(--step--1); font-weight: 600; padding: 0.35rem 0.8rem; border-radius: var(--r-btn); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
.bike:hover, .bike[aria-selected="true"] { color: var(--fg); }
.bike[aria-selected="true"] { padding-left: 0.6rem; }
.bike[aria-selected="true"] .bike__tag { background: var(--strong); color: var(--strong-fg); box-shadow: none; }
.fit__visual { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; background: var(--surface); }
.fit__visual img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.04); transition: opacity 0.5s var(--ease), transform 0.9s var(--ease);
}
.fit__visual img.is-active { opacity: 1; transform: none; }
.fit__caption {
  position: absolute; left: 1rem; right: 1rem; bottom: 1rem; padding: 1rem 1.2rem; border-radius: var(--r-md);
  background: rgba(0,0,0,0.62); color: #f1f2e8; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: flex; justify-content: space-between; gap: 1rem; align-items: center; font-size: 0.95rem;
}
.fit__caption strong { display: block; font-variation-settings: "wdth" 115; }
.fit__caption .muted { color: #b9bcab; }
.fit__caption .btn { --b-bg: #f1f2e8; --b-fg: #000; min-height: 44px; font-size: 0.9rem; flex: none; }

/* ============================================================
   Specs (alt band)
   ============================================================ */
.specs { background: var(--alt-bg); color: var(--alt-fg); padding-block: clamp(4rem, 9vw, 8rem); overflow: hidden; }
.specs__head { max-width: 900px; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.specs__head > p, .specs__lede { max-width: 50ch; margin: 1.3rem 0 0; font-size: var(--step-1); line-height: 1.45; }
.anatomy { position: relative; display: grid; grid-template-columns: 1fr minmax(0, 1.25fr) 1fr; gap: 2rem; align-items: center; }
.anatomy__img img { width: 100%; filter: drop-shadow(0 40px 40px rgba(0,0,0,0.25)); }
.callouts { list-style: none; margin: 0; padding: 0; display: grid; gap: 2.4rem; }
.callout { border-top: 2px solid var(--alt-fg); padding-top: 0.9rem; }
.callout b {
  display: block; margin-bottom: 0.45rem; font-size: var(--step-2); font-weight: 800; font-variation-settings: "wdth" var(--d-wdth);
  letter-spacing: -0.02em; line-height: 1;
}
.callout span { display: block; max-width: 30ch; font-size: 0.97rem; color: var(--alt-muted); }
.spec-table { margin: clamp(3rem, 7vw, 5.5rem) 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(2rem, 5vw, 5rem); }
.spec-table div { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--alt-line); }
.spec-table dt { color: var(--alt-muted); }
.spec-table dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }

/* ============================================================
   Reviews
   ============================================================ */
.reviews { padding-block: clamp(4rem, 9vw, 8rem); }
.reviews__head { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 2rem; align-items: end; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.rating { display: flex; gap: 1rem; align-items: center; justify-self: end; }
.rating__stars { display: flex; gap: 2px; color: var(--hi); }
.rating__stars svg { width: 20px; height: 20px; fill: currentColor; }
.rating p { margin: 0; color: var(--muted); font-size: 0.95rem; max-width: 22ch; }
.wall { columns: 3 300px; column-gap: 1rem; }
.review {
  break-inside: avoid; margin: 0 0 1rem; border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface); color: var(--surface-fg); display: flex; flex-direction: column;
}
.review { box-shadow: 0 1px 0 var(--line), 0 12px 30px -18px rgba(16,18,9,0.25); }
.review img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; }
.review--tall img { aspect-ratio: 4 / 5; }
.review figcaption { padding: 1.3rem 1.4rem 1.5rem; display: grid; gap: 0.9rem; position: relative; }
.review blockquote { margin: 0; font-size: 1.05rem; line-height: 1.45; }
.review cite { font-style: normal; font-size: var(--step--1); color: var(--muted); display: flex; align-items: center; gap: 0.5rem; }
.review cite svg { width: 15px; height: 15px; color: var(--hi); flex: none; }
.review--quote { background: var(--cta-bg) !important; color: var(--cta-fg); }
.review--quote blockquote { font-size: var(--step-1); font-weight: 600; font-variation-settings: "wdth" 106; line-height: 1.3; }
.review--quote cite { color: inherit; opacity: 0.85; }
.review--quote cite svg { color: inherit; }


/* ============================================================
   Custom solutions
   ============================================================ */
.custom { background: var(--surface); color: var(--surface-fg); padding-block: clamp(4rem, 9vw, 8rem); border-radius: clamp(24px, 4vw, 44px) clamp(24px, 4vw, 44px) 0 0; }
.custom { background: #101209; color: #f1f2e8; --muted: #9a9d8c; --line: rgba(241,242,232,0.14); --surface-2: #23261a; --hi: #b6c088; }
.custom__head { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2rem; align-items: end; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.custom__head > p { margin: 0; color: var(--muted); max-width: 44ch; font-size: var(--step-1); line-height: 1.45; }
.ideas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.idea { display: grid; grid-template-rows: auto 1fr; gap: 1.1rem; }
.idea__art { aspect-ratio: 16 / 11; border-radius: var(--r-lg); background: #1b1e12; box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; color: var(--art-stroke); }
.idea__art { --art-fill: #1d2111; --art-fill-2: #000; --art-accent: #56700b; color: #b6c088; }
.idea__art svg { width: 78%; height: auto; }
.idea h3 { margin: 0 0 0.45rem; font-size: var(--step-1); font-weight: 800; font-variation-settings: "wdth" 115; letter-spacing: -0.01em; }
.idea p { margin: 0; color: var(--muted); font-size: 0.97rem; max-width: 40ch; }
.idea--open .idea__art { background: var(--olive); box-shadow: none; color: #f1f2e8; --art-fill: #3d500a; }

.process { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 6vw, 6rem); margin-top: clamp(4rem, 8vw, 6rem); align-items: start; }
.process h3.display { font-size: var(--step-2) !important; }
.steps { list-style: none; margin: 2rem 0 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1.2rem 0; border-top: 1px solid var(--line); }
.steps li::before { content: counter(step); font-weight: 800; font-variation-settings: "wdth" var(--d-wdth); font-size: 1.6rem; line-height: 1; color: var(--hi); }
.steps b { display: block; margin-bottom: 0.2rem; }
.steps span { color: var(--muted); font-size: 0.97rem; }

.request { border-radius: var(--r-lg); padding: clamp(1.4rem, 3vw, 2.3rem); display: grid; gap: 1.1rem; background: rgba(127,127,127,0.08); box-shadow: inset 0 0 0 1px var(--line); }
.request h3 { margin: 0; font-size: var(--step-2); font-weight: var(--d-weight); font-variation-settings: "wdth" var(--d-wdth); text-transform: var(--d-case); letter-spacing: var(--d-track); line-height: 1; }
.request > p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: 0.9rem; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; border: 0; border-radius: var(--r-md); background: var(--surface-2); color: inherit;
  padding: 0.95rem 1rem; font-size: 1rem; min-height: 50px; box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow var(--dur-1) var(--ease-out);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--placeholder); opacity: 1; }
.custom .field input::placeholder, .custom .field textarea::placeholder { color: #a3a694; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--hi); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.dropzone {
  position: relative; display: flex; align-items: center; gap: 0.9rem; padding: 1rem; border-radius: var(--r-md); cursor: pointer;
  box-shadow: inset 0 0 0 1.5px var(--line); color: var(--muted); font-size: 0.93rem; transition: box-shadow 0.2s, color 0.2s;
}
.dropzone:hover { box-shadow: inset 0 0 0 1.5px var(--hi); color: inherit; }
.dropzone svg { width: 22px; height: 22px; flex: none; color: var(--hi); }
.dropzone input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.form-msg { font-size: 0.93rem; color: var(--hi); min-height: 1.4em; margin: 0; }
.custom .btn--olive { --b-bg: var(--olive); --b-fg: #f1f2e8; }
.custom .btn--olive:hover { --b-bg: #67850f; }

/* ============================================================
   Closing CTA
   ============================================================ */
.cta { background: var(--cta-bg); color: var(--cta-fg); padding-block: clamp(4rem, 9vw, 7rem); }
.cta__grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.cta__copy { display: grid; gap: 1.5rem; }
.cta__title { font-size: var(--step-4); }
.cta__copy > p { margin: 0; max-width: 36ch; font-size: var(--step-1); line-height: 1.45; }
.cta__row { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.cta .btn--black { --b-bg: var(--cta-fg); --b-fg: var(--cta-bg); }
.cta .btn--ghost { --b-ring: color-mix(in srgb, var(--cta-fg) 45%, transparent); }
.cta__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-lg); transform: rotate(2.5deg); box-shadow: 0 30px 60px rgba(0,0,0,0.35); }

/* ============================================================
   Footer
   ============================================================ */
.footer { padding-block: clamp(3.5rem, 7vw, 5.5rem) calc(2rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.footer__top { display: grid; grid-template-columns: 1.3fr repeat(3, 0.7fr); gap: 2rem; }
.footer h4 { margin: 0 0 1rem; font-size: 0.95rem; font-weight: 700; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.footer ul a { text-decoration: none; color: var(--muted); transition: color 0.2s; }
.footer ul a:hover { color: var(--fg); }
.news p { color: var(--muted); margin: 0 0 1rem; max-width: 36ch; }
.news form { display: flex; gap: 0.5rem; max-width: 420px; }
.news input { flex: 1; min-width: 0; border: 0; border-radius: var(--r-btn); background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); padding: 0 1.2rem; min-height: 52px; }
.news input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--hi); }
.socials { display: flex; gap: 0.5rem; margin-top: 1.4rem; }
.socials a { width: 44px; height: 44px; border-radius: var(--r-btn); display: grid; place-items: center; background: var(--surface-2); transition: background-color 0.2s, color 0.2s; }
.socials a:hover { background: var(--strong); color: var(--strong-fg); }
.socials svg { width: 20px; height: 20px; }
.footer__mark { margin-top: clamp(3rem, 7vw, 5rem); }
.footer__base { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; color: var(--muted); font-size: var(--step--1); }

/* ============================================================
   Toast + mobile buy bar
   ============================================================ */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 80;
  transform: translate(-50%, calc(100% + 40px)); visibility: hidden;
  background: var(--fg); color: var(--bg); border-radius: var(--r-md); padding: 0.95rem 1.2rem;
  display: flex; gap: 0.8rem; align-items: center; max-width: min(92vw, 520px);
  box-shadow: 0 16px 40px -12px rgba(17,19,9,0.45); opacity: 0; font-size: 0.95rem;
  transition: transform var(--dur-3) var(--ease-out), opacity var(--dur-2) var(--ease-out), visibility 0s var(--dur-3);
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition: transform var(--dur-3) var(--ease-out), opacity var(--dur-2) var(--ease-out); }
.toast.is-error svg { color: #f08a80; }
.toast svg { width: 22px; height: 22px; color: var(--olive-bright); flex: none; }
body.has-buybar .toast { bottom: calc(96px + env(safe-area-inset-bottom)); }

.buybar { display: none; }
@media (max-width: 760px) {
  .buybar {
    position: fixed; left: 0.6rem; right: 0.6rem; bottom: calc(0.6rem + env(safe-area-inset-bottom)); z-index: 45;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 0.6rem 0.6rem 0.6rem 1rem; border-radius: calc(var(--r-md) + 6px);
    background: var(--nav-bg); color: var(--fg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.35), inset 0 0 0 1px var(--line);
    transform: translateY(150%); transition: transform 0.45s var(--ease);
  }
  .buybar.is-on { transform: none; }
  .buybar strong { display: block; font-size: 0.95rem; }
  .buybar span { font-size: 0.82rem; color: var(--muted); }
  .buybar .btn { min-height: 46px; padding: 0 1.2em; }
}

/* ============================================================
   Account menu + sign-in dialog
   ============================================================ */
.acct { position: relative; }
.acct__avatar {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; overflow: hidden;
  background: var(--strong); color: var(--strong-fg); font-weight: 800; font-size: 0.85rem;
}
.acct__avatar img { width: 100%; height: 100%; object-fit: cover; }
.acct__btn.is-signed > svg { display: none; }
.acct__menu {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 70; min-width: 250px; padding: 0.5rem;
  background: var(--surface); color: var(--surface-fg); border-radius: var(--r-md);
  box-shadow: 0 20px 50px rgba(0,0,0,0.35), inset 0 0 0 1px var(--line);
}
.acct__who { margin: 0 0 0.35rem; padding: 0.7rem 0.8rem 0.8rem; border-bottom: 1px solid var(--line); display: grid; gap: 0.1rem; }
.acct__who span { color: var(--muted); font-size: 0.88rem; overflow-wrap: anywhere; }
.acct__item { display: block; width: 100%; text-align: left; border: 0; background: none; cursor: pointer; padding: 0.7rem 0.8rem; border-radius: var(--r-sm); font-size: 0.95rem; }
.acct__item:hover { background: var(--surface-2); }

.auth {
  width: min(440px, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); overflow: auto;
  border: 0; border-radius: var(--r-lg); padding: clamp(1.5rem, 4vw, 2.2rem);
  background: var(--surface); color: var(--surface-fg); box-shadow: 0 40px 90px rgba(0,0,0,0.5);
}
.auth::backdrop { background: rgba(0,0,0,0.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.auth[open], .search[open] { animation: authIn var(--dur-2) var(--ease-out); }
@keyframes authIn { from { opacity: 0; transform: translateY(8px) scale(0.97); } }
.auth__close { position: absolute; top: 0.9rem; right: 0.9rem; }
.auth__step { display: grid; gap: 1.1rem; }
.auth__title { margin: 0; padding-right: 2.5rem; font-size: var(--step-2); font-weight: var(--d-weight); font-variation-settings: "wdth" var(--d-wdth); text-transform: var(--d-case); letter-spacing: var(--d-track); line-height: 1; }
.auth__sub { margin: 0; color: var(--muted); }
.auth__sub strong { color: var(--surface-fg); overflow-wrap: anywhere; }
.auth__google { width: 100%; --b-bg: #ffffff; --b-fg: #1f1f1f; --b-ring: rgba(0,0,0,0.14); }
.auth__google:hover { --b-bg: #f4f4f4; }
.auth__google svg { width: 20px; height: 20px; }
.auth__google.is-off { opacity: 0.45; pointer-events: none; }
.auth__or { display: flex; align-items: center; gap: 0.8rem; color: var(--muted); font-size: 0.88rem; }
.auth__or::before, .auth__or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth form { display: grid; gap: 0.9rem; }
.auth__submit { width: 100%; }
.auth .btn--olive { --b-bg: var(--olive); --b-fg: #f1f2e8; }
.auth .btn--olive:hover { --b-bg: #67850f; }
.auth__submit[disabled] { opacity: 0.6; cursor: progress; }
.auth__code { caret-color: var(--brand); }
.auth__code { font-size: 1.6rem !important; letter-spacing: 0.5em; text-align: center; font-variant-numeric: tabular-nums; font-weight: 700; }
.auth__msg { margin: 0; min-height: 1.3em; font-size: 0.92rem; color: var(--danger); }
.auth__msg:empty { min-height: 0; }
.auth__msg.is-ok { color: var(--olive-bright); }
.auth__fine { margin: 0; font-size: 0.85rem; color: var(--muted); }
.auth__links { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.auth__link { border: 0; background: none; padding: 0.7rem 0; min-height: 44px; cursor: pointer; color: inherit; font-weight: 600; font-size: 0.92rem; text-decoration: underline; text-underline-offset: 3px; }
.auth__link[disabled] { color: var(--muted); cursor: default; text-decoration: none; }

/* ============================================================
   Motion: React Bits islands (assets/js/reactbits.js)
   ============================================================ */
.js .hero__copy > :not(.hero__title) { opacity: 0; transform: translateY(10px); }
.js .is-ready .hero__copy > :not(.hero__title) { opacity: 1; transform: none; transition: opacity 0.8s 0.35s, transform 0.8s 0.35s var(--ease); }

/* BlurText renders a <p> of word spans inside our headings */
.rb-blur { margin: 0 !important; max-width: none !important; font: inherit !important; color: inherit !important; letter-spacing: inherit; line-height: inherit !important; }
.hero__title .rb-blur { flex-wrap: nowrap !important; white-space: nowrap; }
/* before React mounts, keep the plain text looking the same */
.js [data-rb="blur"][data-rb-load]:not([data-rb-mounted]) { opacity: 0; animation: rbFallback 0.6s 2.5s forwards; }
@keyframes rbFallback { to { opacity: 1; } }

/* ShinyText in the top bar */
[data-rb="shiny"] { display: inline-block; }

/* SpotlightCard wraps a card's content; the card keeps its own surface */
[data-rb="spotlight"] > .spotlight-card {
  padding: 0; border-radius: inherit; background: transparent; box-shadow: none;
  height: 100%; display: flex; flex-direction: column;
}
.rb-spot__inner { display: contents; }

/* Magnet wrapper around the hero CTA */
.rb-magnet { display: inline-flex; }
.rb-magnet .btn { pointer-events: auto; }

/* LogoLoop strip */
.fits { border-block: 1px solid var(--line); padding-block: 1.1rem; background: var(--bg); overflow: hidden; }
.fits__list { list-style: none; margin: 0; padding: 0 var(--gutter); display: flex; gap: 2.75rem; overflow: hidden; white-space: nowrap; }
.fits__list li, .rb-loop__item { display: inline-flex; align-items: baseline; gap: 0.5rem; font-size: 1rem; color: var(--muted); }
.fits__list b, .rb-loop__item b { color: var(--fg); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.015em; }
.rb-loop__item::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); align-self: center; margin-right: 0.35rem; }
.fits .logoloop__item { opacity: 1 !important; filter: none !important; }

@media (prefers-reduced-motion: reduce) {
  .js .hero__copy > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  .js [data-rb="blur"]:not([data-rb-mounted]) { opacity: 1; animation: none; }
  .auth[open], .search[open], .chat { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .btn.is-busy::after { animation-duration: 1.4s !important; animation-iteration-count: infinite !important; }
  .fit__visual img { transition: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__menu { display: grid; }
  .nav__actions { margin-left: auto; }
  .nav__cta { display: none; }
  .anatomy { grid-template-columns: 1fr 1fr; }
  .anatomy__img { grid-column: 1 / -1; grid-row: 1; max-width: 620px; justify-self: center; }
  .ideas { grid-template-columns: 1fr 1fr; }
  .idea--open { grid-column: 1 / -1; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .news { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; min-height: 0; gap: 0.5rem; }
  .stage { max-width: 560px; aspect-ratio: 1 / 0.86; max-height: none; }
  .product__grid, .fit__grid, .process, .custom__head, .reviews__head, .cta__grid { grid-template-columns: 1fr; }
  .rating { justify-self: start; }
  .buy { position: static; }
  .fit__visual { aspect-ratio: 4 / 3.4; order: -1; }
  .spec-table { grid-template-columns: 1fr; }
  .cta__img { max-width: 420px; transform: rotate(1.5deg); }
}
@media (max-width: 620px) {
  :root { --header-h: 62px; }
  .nav__logo { width: 118px; }
  .nav__actions { gap: 0; }
  .hero__actions .btn { flex: 1 1 auto; }
  .hero__facts div + div { padding-left: 0.9rem; }
  .hero__facts dd { font-size: 1.1rem; }
  .hero__facts dt { font-size: 0.8125rem; }
  .gallery__thumbs { gap: 0.4rem; }
  .anatomy { grid-template-columns: 1fr; }
  .callouts { gap: 1.6rem; }
  .ideas { grid-template-columns: 1fr; }
  .idea { min-height: 0; }
  .field-row { grid-template-columns: 1fr; }
  .fit__caption { flex-direction: column; align-items: flex-start; }
  .bike__tag { display: none; }
  .wall {
    columns: auto; display: flex; gap: 0.8rem; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 0.5rem; scrollbar-width: none;
  }
  .wall::-webkit-scrollbar { display: none; }
  .review { flex: 0 0 82%; scroll-snap-align: start; margin: 0; }
  .review--quote { justify-content: flex-end; }
  .footer { padding-bottom: calc(6rem + env(safe-area-inset-bottom)); }
}

/* ---------- More React Bits (round 2) ---------- */
/* RotatingText: bike name under the hero headline */
.hero__fit { margin: -0.4rem 0 0; font-size: var(--step-2); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; white-space: nowrap; }
.lede__bike, .rb-rotate { color: var(--brand); font-weight: 700; }
.rb-rotate { display: inline-flex; overflow: hidden; vertical-align: bottom; padding-bottom: 0.08em; }
.rb-rotate .text-rotate-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* CircularText seal on the 3D stage */
.stage__seal { position: absolute; top: 4%; left: 2%; z-index: 2; width: 124px; height: 124px; }
.stage__seal:not([data-rb-mounted]) { display: none; }
.rb-seal { background: var(--surface); box-shadow: var(--shadow-2); }
.rb-seal .circular-text__center { display: grid; place-items: center; }
.rb-seal b { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.02em; color: var(--brand); }
@media (max-width: 900px) { .stage__seal { transform: scale(0.75); transform-origin: top left; top: 0; left: 0; } }

/* Counter in the quantity stepper */
.qty output[data-rb-mounted] { display: inline-grid; place-items: center; min-width: 1.6rem; }

/* ScrollReveal lead paragraph */
.specs__lede .scroll-reveal { margin: 0; }
.specs__lede .rb-reveal { font: inherit !important; line-height: inherit !important; }

/* AnimatedContent + GlareHover wrappers keep the original layout */
.rb-rise, .rb-rise__inner { width: 100%; }
.cta__media { width: 100%; }
.gallery__main > .glare-hover { width: 100% !important; height: 100% !important; border: 0 !important; border-radius: inherit; display: block; }
.gallery__main .rb-glare__inner { width: 100%; height: 100%; display: grid; place-items: center; }
.rb-spark, .rb-spark__inner { display: inline-flex; flex: 1; min-width: 200px; }
.rb-spark .btn { width: 100%; }
.request .rb-spark { display: flex; }

/* ============================================================
   Commerce pages (shop, product, checkout, account, admin)
   ============================================================ */
.page { min-height: 60vh; }
.crumbs { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; font-size: var(--step--1); color: var(--muted); margin-bottom: 1.25rem; }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--fg); text-decoration: underline; }
.crumbs--tight { padding-top: 1.5rem; margin-bottom: 0; }
.page-head { padding-block: clamp(2rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 2.5rem); }
.page-head--center { text-align: center; padding-block: clamp(4rem, 12vw, 9rem); }
.page-head--center .page-head__lede { margin-inline: auto; }
.page-head__title { font-size: var(--step-4); }
.page-head__lede { font-size: var(--step-1); max-width: 46ch; margin: 1rem 0 0; color: var(--muted); }
.badge { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--brand-tint); color: var(--brand); }
.badge--ink { background: var(--ink); color: var(--on-ink); }

/* Shop grid */
.shop { padding-bottom: clamp(4rem, 9vw, 7rem); }
.shop__bar { display: flex; justify-content: space-between; align-items: center; padding-bottom: 1rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.shop__bar p { margin: 0; }
.grid-products { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: clamp(1rem, 2.5vw, 1.75rem); }
.pcard { display: grid; gap: 0.6rem; text-decoration: none; color: inherit; }
.pcard__media { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-2); display: grid; place-items: center; }
.pcard__media img { width: 84%; height: auto; transition: transform 0.5s var(--ease-out); }
.pcard__media img.is-photo { width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) { .pcard:hover .pcard__media img { transform: scale(1.03); } }
.pcard__media .badge { position: absolute; top: 12px; left: 12px; z-index: 1; }
.pcard__row { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; margin-top: 0.4rem; }
.pcard__row strong { font-size: 1rem; }
.pcard__price { font-weight: 700; font-variant-numeric: tabular-nums; }
.pcard__meta { color: var(--muted); font-size: 0.9rem; }
.pcard--custom .pcard__media { background: var(--night); color: var(--on-night); }
.pcard__custom { display: grid; gap: 0.6rem; justify-items: center; text-align: center; padding: 2rem; }
.pcard__custom svg { width: 44px; height: 44px; color: var(--moss); }
.pcard__custom b { font-size: 1.25rem; letter-spacing: -0.015em; }
.pcard__custom span { color: #a3a695; font-size: 0.92rem; }

/* Product page extras */
.page-product .product { padding-top: clamp(1.5rem, 4vw, 3rem); }
.viewer { padding-block: clamp(4rem, 9vw, 7rem); }
.viewer__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.viewer__copy { display: grid; gap: 1.4rem; }
.fitchips--start { justify-content: flex-start; }
.stage--product { aspect-ratio: 1.3 / 1; max-height: 560px; }
.faq { padding-block: clamp(4rem, 9vw, 7rem); border-top: 1px solid var(--line); }
.faq__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); }
.faq__list details { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.faq__list summary { cursor: pointer; font-weight: 700; font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; background: var(--muted);
  -webkit-mask: var(--i-chevron) center / contain no-repeat; mask: var(--i-chevron) center / contain no-repeat;
  transition: transform var(--dur-2) var(--ease-out);
}
.faq__list details[open] summary::after { transform: rotate(180deg); }
:root { --i-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
.faq__list p { margin: 0.75rem 0 0; color: var(--muted); max-width: 60ch; }

/* Cart drawer */
.cart { position: fixed; inset: 0; z-index: 75; visibility: hidden; transition: visibility 0s 0.32s; }
.cart.is-open { visibility: visible; transition: none; }
.cart__scrim { position: absolute; inset: 0; background: rgba(17,19,9,0.45); opacity: 0; transition: opacity var(--dur-3) var(--ease-out); }
.cart.is-open .cart__scrim { opacity: 1; }
.cart__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--paper); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform 0.4s var(--ease-drawer); box-shadow: var(--shadow-3);
}
.cart.is-open .cart__panel { transform: none; }
.cart__head { display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--line); }
.cart__title { margin: 0; font-size: 1.35rem; letter-spacing: -0.02em; }
.cart__body { flex: 1; overflow: auto; padding: 0.5rem 1.25rem; }
.cart__empty { display: grid; gap: 0.6rem; justify-items: center; text-align: center; padding: 3rem 1rem; color: var(--muted); }
.cart__empty strong { color: var(--fg); font-size: 1.1rem; }
.cart__empty p { margin: 0 0 0.6rem; max-width: 30ch; }
.cart__line { display: grid; grid-template-columns: 72px 1fr auto; gap: 0.9rem; padding: 1rem 0; align-items: start; }
.cart__line + .cart__line { box-shadow: 0 -1px 0 var(--line); }
.cart__side strong { font-variant-numeric: tabular-nums; }
.cart__line img { width: 72px; height: 72px; object-fit: contain; background: var(--surface); border-radius: var(--r-sm); padding: 6px; }
.cart__info { display: grid; gap: 0.15rem; }
.cart__info span { color: var(--muted); font-size: 0.9rem; }
.cart__qty { display: inline-flex; align-items: center; gap: 0.25rem; margin-top: 0.5rem; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--stone); width: max-content; }
.cart__qty button { width: 40px; height: 40px; border: 0; background: none; cursor: pointer; border-radius: 50%; display: grid; place-items: center; transition: transform 160ms var(--ease-out), opacity var(--dur-1); }
.cart__qty button svg { width: 16px; height: 16px; }
.cart__qty button[disabled] { opacity: 0.35; cursor: not-allowed; }
.cart__qty output { min-width: 1.2rem; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.cart__side { display: grid; justify-items: end; gap: 0.5rem; }
.cart__remove { border: 0; background: none; cursor: pointer; color: var(--muted); width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--r-sm); margin-right: -10px; transition: color var(--dur-1), background-color var(--dur-1); }
@media (hover: hover) { .cart__remove:hover { color: var(--danger); background: var(--mist); } }
.cart__remove svg { width: 18px; height: 18px; }
.cart__foot { padding: 1.1rem 1.25rem calc(1.1rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: 0.6rem; background: var(--surface); }
.cart__row { display: flex; justify-content: space-between; font-size: 1.05rem; }
.cart__note { margin: 0; color: var(--muted); font-size: 0.88rem; }
.cart__checkout { width: 100%; min-height: 54px; }

/* Search dialog */
.search { width: min(640px, calc(100vw - 1.5rem)); max-height: min(80vh, 640px); margin-top: 10vh; padding: 0; border: 0; border-radius: var(--r-lg); background: var(--surface); color: var(--fg); box-shadow: var(--shadow-3); overflow: hidden; }
.search::backdrop { background: rgba(17,19,9,0.45); backdrop-filter: blur(4px); }
.search__bar { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 0.75rem 0.75rem 1.25rem; border-bottom: 1px solid var(--line); }
.search__bar > svg { width: 22px; height: 22px; color: var(--muted); flex: none; }
.search__bar input { flex: 1; border: 0; background: none; font-size: 1.15rem; min-height: 44px; outline: none; }
.search__results { overflow: auto; max-height: calc(min(80vh, 640px) - 70px); padding: 0.5rem; }
.search__results ul { list-style: none; margin: 0; padding: 0; }
.search__results a { display: flex; gap: 0.9rem; align-items: center; padding: 0.65rem 0.75rem; border-radius: var(--r-md); text-decoration: none; }
.search__results a:hover, .search__results a:focus-visible { background: var(--mist); }
.search__results img, .search__icon { width: 48px; height: 48px; border-radius: 10px; object-fit: contain; background: var(--paper); flex: none; display: grid; place-items: center; }
.search__icon svg { width: 20px; height: 20px; color: var(--brand); }
.search__results strong { display: block; } .search__results small { color: var(--muted); }
.search__hint { margin: 0; padding: 1rem 0.75rem; color: var(--muted); }

/* Chat */
.chat-fab {
  position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: 70; display: inline-flex; align-items: center; gap: 0.5rem;
  height: 52px; padding: 0 1.1rem 0 0.95rem; border: 0; border-radius: 999px; cursor: pointer; background: var(--ink); color: var(--on-ink);
  font-weight: 700; box-shadow: 0 12px 32px -12px rgba(17,19,9,0.55); transition: transform 160ms var(--ease-out);
}
.chat-fab:active { transform: scale(0.97); }
.chat-fab svg { width: 22px; height: 22px; }
body.has-buybar .chat-fab { bottom: calc(5.5rem + env(safe-area-inset-bottom)); }
.chat {
  position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: 72; width: min(380px, calc(100vw - 2rem)); height: min(560px, calc(100dvh - 2rem));
  display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-3); overflow: hidden;
  animation: chatIn var(--dur-3) var(--ease-out); transform-origin: bottom right;
}
@keyframes chatIn { from { opacity: 0; transform: scale(0.96) translateY(6px); } }
.chat__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.9rem 0.75rem 0.9rem 1.1rem; background: var(--ink); color: var(--on-ink); }
.chat__head strong { display: block; } .chat__head span { font-size: 0.82rem; opacity: 0.75; }
.chat__head .icon-btn:hover { background: rgba(255,255,255,0.1); }
.chat__log { flex: 1; overflow: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.6rem; }
.chat__msg { max-width: 85%; padding: 0.65rem 0.9rem; border-radius: 16px; font-size: 0.95rem; line-height: 1.45; white-space: pre-wrap; }
.chat__msg--bot { background: var(--mist); border-bottom-left-radius: 4px; align-self: flex-start; }
.chat__msg--me { background: var(--brand); color: var(--on-brand); border-bottom-right-radius: 4px; align-self: flex-end; }
.chat__msg a { color: inherit; font-weight: 700; }
.chat__msg.is-typing { color: var(--muted); }
.chat__chips { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0 1rem 0.75rem; }
.chat__chips button { border: 0; cursor: pointer; border-radius: 999px; padding: 0.45rem 0.8rem; font-size: 0.85rem; font-weight: 600; background: var(--brand-tint); color: var(--brand); }
.chat__form { display: flex; gap: 0.5rem; padding: 0.75rem; border-top: 1px solid var(--line); }
.chat__form input { flex: 1; min-width: 0; border: 0; border-radius: 999px; background: var(--mist); padding: 0 1rem; min-height: 44px; font-size: 16px; }
.chat__form input:focus { outline: 2px solid var(--focus); }
.chat__send { background: var(--ink); color: var(--on-ink); }
.chat__send:hover { background: #2a2d22; }
.chat__fine { margin: 0; padding: 0 1rem 0.75rem; font-size: 0.75rem; color: var(--muted); }

/* Checkout */
.checkout, .account, .admin { padding-bottom: clamp(4rem, 9vw, 7rem); }
.checkout__title, .account__title { font-size: var(--step-3); margin: 1rem 0 1.75rem; }
.checkout__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.8fr); gap: 1.25rem clamp(1.25rem, 3vw, 2.5rem); align-items: start; }
.co-main { display: grid; gap: 1rem; min-width: 0; }
.co-sum { position: sticky; top: calc(var(--header-h) + 1rem); }
.co-card, .co-sum__inner, .empty-card { background: var(--surface); border-radius: var(--r-lg); padding: clamp(1.25rem, 3vw, 1.75rem); box-shadow: var(--shadow-1), 0 0 0 1px var(--line); }
.co-sum__inner { background: var(--surface); }
.co-card__title { display: flex; align-items: baseline; justify-content: space-between; gap: 0.7rem; margin: 0 0 1rem; font-size: 1.15rem; letter-spacing: -0.015em; }
.co-card__title .muted { font-size: 0.9rem; font-weight: 500; letter-spacing: 0; }
.co-note { margin: 0; color: var(--muted); font-size: 0.95rem; max-width: 60ch; }
.co-who { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.7rem; }
.co-who__avatar { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex: none; display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 700; }
.co-who__avatar img { width: 100%; height: 100%; object-fit: cover; }
.co-who div { display: grid; min-width: 0; } .co-who div span { color: var(--muted); font-size: 0.92rem; overflow-wrap: anywhere; }
.co-signin { margin-top: 1rem; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field-grid .span-2 { grid-column: span 2; }
.page .field input, .page .field select { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--stone); }
.page .field input:hover, .page .field select:hover { box-shadow: inset 0 0 0 1.5px #b9bdac; }
.page .field input:focus, .page .field select:focus { box-shadow: inset 0 0 0 2px var(--focus); }
.field select { appearance: none; -webkit-appearance: none; padding-right: 2.5rem; cursor: pointer;
  background-image: var(--i-chevron) !important; background-repeat: no-repeat !important; background-position: right 0.9rem center !important; background-size: 18px !important; }
.field__help { font-size: 0.85rem; color: var(--muted); }
.field__opt { font-weight: 500; color: var(--muted); font-size: 0.85rem; margin-left: 0.25rem; }
.field__err { font-size: 0.875rem; color: var(--danger); font-weight: 500; }
.field__err:empty { display: none; }
.field.is-error input, .field.is-error select { box-shadow: inset 0 0 0 2px var(--danger) !important; }
.field.is-error .field__help { display: none; }
.co-error { margin: 0 0 1.1rem; padding: 0.9rem 1rem; border-radius: var(--r-md); background: var(--danger-tint); color: #7a1a12; outline: none; }
.co-error:focus-visible { box-shadow: 0 0 0 2px var(--danger); }
.co-error strong { display: flex; align-items: center; gap: 0.5rem; }
.co-error strong svg { width: 18px; height: 18px; flex: none; }
.co-error ul { margin: 0.4rem 0 0; padding-left: 1.9rem; font-size: 0.93rem; }
.co-error a { color: inherit; text-underline-offset: 3px; }
.co-ship { display: flex; gap: 0.75rem; align-items: flex-start; margin: 1.25rem 0 0; padding: 0.9rem 1rem; border-radius: var(--r-md); background: var(--paper); font-size: 0.92rem; color: var(--muted); }
.co-ship svg { width: 20px; height: 20px; flex: none; color: var(--brand); margin-top: 1px; }
.co-ship strong { color: var(--fg); margin-right: 0.3rem; }
.co-methods { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.9rem 0 1.1rem; padding: 0; }
.co-methods li { padding: 0.3rem 0.7rem; border-radius: 999px; font-size: 0.82rem; font-weight: 600; color: var(--graphite); box-shadow: inset 0 0 0 1px var(--stone); }
.co-alert { display: flex; gap: 0.6rem; align-items: flex-start; margin: 0 0 1rem; padding: 0.85rem 1rem; border-radius: var(--r-md); background: var(--danger-tint); color: #7a1a12; font-size: 0.95rem; }
.co-alert svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.co-alert--info { background: var(--brand-tint); color: #3a4d08; }
.co-pay { width: 100%; }
.co-pay > span { display: inline-flex; align-items: center; gap: 0.55rem; }
.co-pay svg { width: 18px; height: 18px; }
.co-secure { display: flex; gap: 0.5rem; align-items: flex-start; margin: 0.9rem 0 0; font-size: 0.85rem; color: var(--muted); }
.co-secure svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--brand); }
.co-secure a { color: inherit; text-underline-offset: 2px; }
.sum__lines { list-style: none; margin: 0 0 0.75rem; padding: 0; }
.sum__line { display: grid; grid-template-columns: 60px 1fr auto; gap: 0.9rem; padding: 0.75rem 0; align-items: center; }
.sum__line + .sum__line { box-shadow: 0 -1px 0 var(--line); }
.sum__line--noimg { grid-template-columns: 1fr auto; }
.sum__thumb { position: relative; width: 60px; height: 60px; }
.sum__thumb img, .sum__line > img { width: 60px; height: 60px; object-fit: contain; background: var(--paper); border-radius: var(--r-sm); padding: 5px; }
.sum__qty { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; background: var(--graphite); color: #fff; font-size: 12px; box-shadow: 0 0 0 2px var(--surface); font-variant-numeric: tabular-nums; }
.sum__line div { display: grid; gap: 0.1rem; min-width: 0; } .sum__line span { color: var(--muted); font-size: 0.88rem; }
.sum__row { display: flex; justify-content: space-between; padding: 0.35rem 0; color: var(--muted); }
.sum__row--total { color: var(--fg); font-weight: 800; font-size: 1.25rem; box-shadow: 0 -1px 0 var(--line); margin-top: 0.4rem; padding-top: 0.9rem; }
.sum__tax { margin: 0.25rem 0 0; font-size: 0.85rem; color: var(--muted); }
.co-edit { display: inline-flex; align-items: center; gap: 0.45rem; margin-top: 1rem; min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer; color: var(--muted); font-weight: 600; font-size: 0.92rem; }
.co-edit svg { width: 16px; height: 16px; }
@media (hover: hover) { .co-edit:hover { color: var(--fg); } }
.co-mobsum { display: none; }
.skel { display: block; border-radius: var(--r-lg); background: linear-gradient(90deg, #ebede4 0%, #f3f4ee 50%, #ebede4 100%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.empty-card { display: grid; gap: 1rem; justify-items: center; text-align: center; padding: clamp(2rem, 6vw, 4rem); max-width: 640px; margin-inline: auto; }
.empty-card h2 { margin: 0; font-size: var(--step-2); letter-spacing: -0.02em; }
.empty-card p { margin: 0; max-width: 46ch; }
.ok-mark { width: 56px; height: 56px; border-radius: 50%; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; }
.ok-mark svg { width: 28px; height: 28px; }
.ok-mark--muted { background: var(--mist); color: var(--graphite); }
.co-done { max-width: 620px; margin: 0 auto; padding: clamp(2rem, 5vw, 3rem); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-1), 0 0 0 1px var(--line); display: grid; gap: 0.9rem; justify-items: start; outline: none; }
.co-done h2 { margin: 0; font-size: var(--step-2); letter-spacing: -0.02em; line-height: 1.1; }
.co-done p { margin: 0; }
.co-done__ref { color: var(--muted); font-size: 0.95rem; }
.co-next { list-style: none; margin: 0.75rem 0 0.5rem; padding: 0; display: grid; gap: 0; width: 100%; }
.co-next li { position: relative; display: grid; grid-template-columns: 36px 1fr; gap: 0.8rem; padding-bottom: 1rem; }
.co-next li:not(:last-child)::before { content: ""; position: absolute; left: 17px; top: 36px; bottom: 0; width: 2px; background: var(--stone); }
.co-next li > span { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--mist); color: var(--graphite); }
.co-next li.is-done > span { background: var(--brand); color: #fff; }
.co-next svg { width: 18px; height: 18px; }
.co-next div { display: grid; padding-top: 0.35rem; } .co-next small { color: var(--muted); font-size: 0.88rem; }
.co-done__actions { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.5rem; }
.form-msg.is-error { color: #f08a80; }

/* Account */
.account__head { margin-bottom: 1.5rem; } .account__head .account__title { margin-bottom: 0.4rem; } .account__head p { margin: 0; display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }
.account__head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.olist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.ocard { display: flex; gap: 1rem; align-items: center; padding: 0.9rem 1.1rem 0.9rem 0.9rem; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-1), 0 0 0 1px var(--line); text-decoration: none; transition: box-shadow var(--dur-2) var(--ease-out); }
@media (hover: hover) { .ocard:hover { box-shadow: var(--shadow-2), 0 0 0 1px var(--stone); } }
.ocard__img { width: 64px; height: 64px; flex: none; object-fit: contain; padding: 6px; border-radius: var(--r-md); background: var(--paper); }
.ocard__main { display: grid; gap: 0.2rem; min-width: 0; flex: 1; }
.ocard__main .muted { font-size: 0.9rem; }
.ocard__side { display: flex; align-items: center; gap: 1rem; }
.ocard__side svg { width: 18px; height: 18px; color: var(--muted); }
.status { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: var(--mist); color: var(--graphite); white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status--paid, .status--packed { background: var(--warn-tint); color: var(--warn); }
.status--shipped { background: var(--brand-tint); color: #47600a; }
.status--delivered { background: #e3efe0; color: #2f6a26; }
.status--cancelled, .status--failed { background: var(--danger-tint); color: var(--danger); }
.back { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; margin: 0.5rem 0 0; text-decoration: none; color: var(--muted); font-weight: 600; }
.back svg { width: 18px; height: 18px; transition: transform var(--dur-1) var(--ease-out); }
@media (hover: hover) { .back:hover { color: var(--fg); } .back:hover svg { transform: translateX(-2px); } }
.odetail { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 1.25rem; align-items: start; }
.odetail .co-sum { position: static; background: var(--surface); border-radius: var(--r-lg); padding: clamp(1.25rem, 3vw, 1.75rem); box-shadow: var(--shadow-1), 0 0 0 1px var(--line); }
.track { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.track li { display: grid; justify-items: center; text-align: center; gap: 0.35rem; position: relative; color: var(--muted); }
.track li::before { content: ""; position: absolute; top: 10px; left: -50%; right: 50%; height: 3px; background: var(--stone); z-index: 0; }
.track li:first-child::before { display: none; }
.track li.is-done::before { background: var(--brand); }
.track__dot { position: relative; z-index: 1; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 3px var(--stone); }
.track li.is-done .track__dot { background: var(--brand); box-shadow: none; }
.track li.is-now .track__dot { box-shadow: 0 0 0 6px var(--brand-tint); }
.track li.is-done { color: var(--fg); }
.track strong { font-size: 0.9rem; } .track small { font-size: 0.8125rem; color: var(--muted); min-height: 1em; font-variant-numeric: tabular-nums; }
.tracking { margin: 0; padding: 1.1rem 1.25rem; border-radius: var(--r-md); background: var(--brand-tint); display: grid; gap: 0.8rem; }
.tracking > div:first-child { display: grid; gap: 0.15rem; }
.tracking strong { font-size: 1.4rem; letter-spacing: 0.06em; font-variant-numeric: tabular-nums; }
.tracking__actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.tracking__help { margin: 0; font-size: 0.85rem; color: var(--graphite); }
.tracking--wait { display: flex; gap: 0.7rem; align-items: flex-start; color: var(--graphite); }
.tracking--wait svg { width: 20px; height: 20px; flex: none; color: var(--brand); margin-top: 2px; }
.addr { margin: 0 0 1rem; line-height: 1.6; }
@media print {
  .topbar, .nav, .footer, .chat-fab, .chat, .toast, .cart, .back, .crumbs, .tracking__actions, #printBtn, .odetail .muted:last-child { display: none !important; }
  body { background: #fff; } .odetail { grid-template-columns: 1fr; } .co-card, .odetail .co-sum { box-shadow: none; padding: 0; }
}

.btn--sm { min-height: 40px; padding: 0 1em; font-size: 0.88rem; }
.btn--sm svg { width: 16px; height: 16px; }
.btn--lg { min-height: 56px; font-size: 1.05rem; }

@media (max-width: 900px) {
  .viewer__grid, .faq__grid, .odetail { grid-template-columns: 1fr; }
  .checkout__grid { grid-template-columns: minmax(0, 1fr); }
  .checkout__grid > .co-sum { display: none; }
  .co-mobsum { display: block; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-1), 0 0 0 1px var(--line); }
  .co-mobsum summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 56px; padding: 0 1.1rem; cursor: pointer; font-weight: 600; }
  .co-mobsum summary::-webkit-details-marker { display: none; }
  .co-mobsum summary > span { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--brand); }
  .co-mobsum summary svg { width: 18px; height: 18px; transition: transform var(--dur-2) var(--ease-out); }
  .co-mobsum[open] summary > span svg:last-child { transform: rotate(180deg); }
  .co-mobsum summary b { font-size: 1.1rem; }
  .co-mobsum__body { padding: 0 1.1rem 1.1rem; }
  .co-mobsum__body .co-card__title { display: none; }
}
@media (max-width: 620px) {
  .field-grid { grid-template-columns: 1fr; } .field-grid .span-2 { grid-column: auto; }
  .chat { right: 0.5rem; left: 0.5rem; width: auto; bottom: calc(0.5rem + env(safe-area-inset-bottom)); height: calc(100dvh - 5rem); }
  .chat-fab span { display: none; } .chat-fab { width: 52px; padding: 0; justify-content: center; }
  .track strong { font-size: 0.78rem; }
  .ocard { flex-wrap: wrap; } .ocard__side { width: 100%; justify-content: space-between; padding-left: calc(64px + 1rem); } .ocard__side svg { display: none; }
  .track strong { font-size: 0.8rem; }
}

/* ============================================================
   Policy pages
   ============================================================ */
.legal { padding-bottom: clamp(4rem, 9vw, 7rem); }
.legal__head { padding-block: clamp(1.5rem, 4vw, 3rem) clamp(1.5rem, 4vw, 2.5rem); max-width: 60rem; }
.legal__title { font-size: var(--step-3); }
.legal__lede { font-size: var(--step-1); line-height: 1.45; color: var(--muted); max-width: 46ch; margin: 1rem 0 0; }
.legal__date { margin: 1rem 0 0; font-size: 0.875rem; color: var(--muted); }
.legal__grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: start; }
.legal__nav { position: sticky; top: calc(var(--header-h) + 1.5rem); display: grid; gap: 2px; }
.legal__nav a { display: flex; align-items: center; min-height: 40px; padding: 0 0.8rem; border-radius: var(--r-sm); text-decoration: none; color: var(--muted); font-weight: 600; font-size: 0.95rem; transition: background-color var(--dur-1), color var(--dur-1); }
@media (hover: hover) { .legal__nav a:hover { background: var(--mist); color: var(--fg); } }
.legal__nav a[aria-current="page"] { background: var(--surface); color: var(--fg); box-shadow: var(--shadow-1), 0 0 0 1px var(--line); }
.legal__body { max-width: 60ch; }
.legal__body h2 { margin: 2.25rem 0 0.5rem; font-size: 1.25rem; letter-spacing: -0.015em; }
.legal__body h2:first-child, .legal__body .contact-grid + h2 { margin-top: 0; }
.legal__body .contact-grid + h2 { margin-top: 2.5rem; }
.legal__body p, .legal__body li { color: #34372b; }
.legal__body p { margin: 0 0 0.75rem; }
.legal__body ul { padding-left: 1.2rem; margin: 0 0 0.75rem; display: grid; gap: 0.4rem; }
.legal__body a { color: var(--brand); font-weight: 600; text-underline-offset: 3px; }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.contact-card { display: grid; gap: 0.3rem; padding: 1.1rem 1.2rem; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-1), 0 0 0 1px var(--line); text-decoration: none; color: inherit !important; font-weight: 400 !important; transition: box-shadow var(--dur-2) var(--ease-out), transform 160ms var(--ease-out); }
@media (hover: hover) { .contact-card:hover { box-shadow: var(--shadow-2), 0 0 0 1px var(--stone); } }
.contact-card:active { transform: scale(0.98); }
.contact-card svg { width: 22px; height: 22px; color: var(--brand); margin-bottom: 0.4rem; }
.contact-card strong { font-size: 1rem; }
.contact-card span { color: var(--muted); font-size: 0.92rem; }
.footer__legal { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer__legal a { color: inherit; text-decoration: none; } .footer__legal a:hover { color: var(--fg); text-decoration: underline; }
.page-checkout .chat-fab { display: none; }
@media (max-width: 900px) {
  .legal__grid { grid-template-columns: minmax(0, 1fr); }
  .legal__nav { position: static; display: flex; overflow-x: auto; gap: 0.4rem; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 0.25rem; }
  .legal__nav a { flex: none; box-shadow: inset 0 0 0 1px var(--line); border-radius: 999px; }
}
@media (max-width: 620px) { .contact-grid { grid-template-columns: 1fr; } }
