/* ==========================================================================
   CellMart design system
   One source of truth for every page. Pages may only use these classes.
   --------------------------------------------------------------------------
   Rules
   - Radii: controls 12px · cards 20px · media wells 14px · pills 999px
   - Buttons and form controls share one height scale: 36 / 44 / 52
   - Every list-picker is .select (one component, two sizes)
   - Every single-choice card list is .option
   - Text colours: --ink, --ink-2, --muted only
   ========================================================================== */

@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("fonts/inter-latin-700-normal.woff2") format("woff2"); }

:root {
  /* colour */
  --brand: #2049a0;
  --brand-hover: #1a3d88;
  --brand-press: #163474;
  --brand-tint: #eef2fa;
  --ink: #1d1d1f;
  --ink-2: #424245;
  --muted: #636366;
  --bg: #f6f5f8;
  --card: #ffffff;
  --well: #f6f5f8;
  --line: #e5e5ea;
  --line-strong: #d2d2d7;
  --success: #1b7f3b;  --success-bg: #e8f5ec;
  --warn: #9a5b00;     --warn-bg: #fff4e5;
  --danger: #c42b1c;   --danger-bg: #fdedec;
  --dark: #000000;
  --dark-2: #1d1d1f;
  --on-dark: #f5f5f7;
  --on-dark-2: #a1a1a6;

  /* shape */
  --r-control: 12px;
  --r-card: 20px;
  --r-media: 14px;
  --r-pill: 999px;
  --shadow-card: 0 1px 2px rgba(0,0,0,.04), 0 6px 20px rgba(0,0,0,.05);
  --shadow-hover: 0 2px 4px rgba(0,0,0,.05), 0 12px 32px rgba(0,0,0,.08);
  --shadow-pop: 0 0 0 1px rgba(0,0,0,.06), 0 12px 40px rgba(0,0,0,.16);
  --focus: 0 0 0 4px rgba(32,73,160,.22);

  /* layout */
  --container: 1200px;
  --gutter: 16px;
  --header-h: 112px;            /* mobile: bar 56 + search 56 */
  --section: 48px;
  --ease: cubic-bezier(.25,.1,.25,1);
}
@media (min-width: 768px) { :root { --gutter: 24px; --section: 72px; } }
@media (min-width: 1100px) { :root { --header-h: 64px; --section: 88px; } }

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.5 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01";
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
.t-display { font-size: 40px; line-height: 1.05; font-weight: 700; letter-spacing: -0.032em; }
.t-h1      { font-size: 32px; line-height: 1.1;  font-weight: 700; letter-spacing: -0.026em; }
.t-h2      { font-size: 24px; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
.t-h3      { font-size: 19px; line-height: 1.25; font-weight: 600; letter-spacing: -0.012em; }
.t-lead    { font-size: 17px; line-height: 1.5;  color: var(--ink-2); }
.t-body    { font-size: 16px; line-height: 1.5; }
.t-ui      { font-size: 15px; line-height: 1.4;  font-weight: 500; }
.t-small   { font-size: 13px; line-height: 1.45; color: var(--muted); }
.t-eyebrow { font-size: 12px; line-height: 1.3;  font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.t-muted   { color: var(--muted); }
.t-strong  { font-weight: 600; }
@media (min-width: 768px) {
  .t-display { font-size: 64px; }
  .t-h1 { font-size: 48px; }
  .t-h2 { font-size: 32px; }
  .t-h3 { font-size: 21px; }
  .t-lead { font-size: 19px; }
}
.link { color: var(--brand); font-weight: 500; display: inline-flex; align-items: center; gap: 2px; }
.link:hover { color: var(--brand-hover); text-decoration: underline; text-underline-offset: 3px; }
.link svg { width: 14px; height: 14px; }
button.link { background: none; border: 0; padding: 0; font-size: inherit; cursor: pointer; }

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: calc(720px + var(--gutter) * 2); }
.stack > * + * { margin-top: var(--stack, 16px); }
.section { margin-top: var(--section); }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
@media (min-width: 768px) { .section__head { margin-bottom: 28px; } }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); }
@media (min-width: 768px) { .grid { gap: 20px; grid-template-columns: repeat(var(--cols-md, var(--cols, 2)), minmax(0, 1fr)); } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(var(--cols-lg, var(--cols-md, var(--cols, 2))), minmax(0, 1fr)); } }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
        margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 16px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail--sm { grid-auto-columns: 40%; }
@media (min-width: 768px) { .rail.rail--sm { grid-auto-columns: 22%; } }
@media (min-width: 1100px) { .rail.rail--sm { grid-template-columns: repeat(var(--cols-md, 4), minmax(0,1fr)); } }
@media (min-width: 768px) { .rail { grid-auto-columns: 40%; gap: 20px; } }
@media (min-width: 1100px) { .rail { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0,1fr)); overflow: visible; margin: 0; padding: 0; } }
.split { display: grid; gap: 24px; }
@media (min-width: 1000px) { .split { grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; } .split--pdp { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; } }
.sticky-side { position: sticky; top: calc(var(--header-h) + 24px); }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.page { padding-top: 24px; padding-bottom: 8px; }
@media (min-width: 768px) { .page { padding-top: 40px; } }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.8); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0,0,0,.06); }
.header__bar { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; height: 56px; }
.header__logo { justify-self: center; display: flex; }
.header__logo img { height: 18px; width: auto; }
.header__nav { display: none; }
.header__search { padding-bottom: 12px; }
.header__actions { display: flex; justify-content: flex-end; }
.header .header__account { display: none; }
@media (min-width: 1100px) {
  .header__bar { grid-template-columns: auto 1fr auto auto; gap: 40px; height: 64px; }
  .header .header__menu { display: none; }
  .header__logo { justify-self: start; }
  .header__logo img { height: 20px; }
  .header__nav { display: flex; gap: 24px; justify-self: center; }
  .header__nav a { font-size: 14px; font-weight: 500; color: var(--ink-2); white-space: nowrap; transition: color .15s; }
  .header__nav a:hover, .header__nav a[aria-current="page"] { color: var(--ink); }
  .header__search { padding: 0; width: 260px; }
  .header__search .search { height: 36px; }
  .header__actions { gap: 4px; }
  .header .header__account { display: inline-flex; }
}
.icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: none; border-radius: var(--r-control); color: var(--ink); position: relative; transition: background-color .15s; }
.icon-btn:hover { background: rgba(0,0,0,.05); }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn__count { position: absolute; top: 6px; right: 5px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: var(--r-pill); background: var(--brand); color: #fff; font-size: 10.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.search { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: var(--r-control); background: rgba(118,118,128,.12); }
.search svg { width: 17px; height: 17px; color: var(--muted); flex: none; }
.search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 15px; }
.search input::placeholder { color: var(--muted); }
.search:focus-within { box-shadow: var(--focus); background: #fff; }

.drawer { position: fixed; inset: var(--header-h) 0 0; z-index: 49; background: rgba(255,255,255,.96); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); padding: 8px var(--gutter) 32px; overflow-y: auto; }
.drawer a { display: flex; align-items: center; justify-content: space-between; height: 56px; border-bottom: 1px solid var(--line); font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.drawer a svg { width: 18px; height: 18px; color: var(--muted); }

/* --------------------------------------------------------------------------
   Buttons — one radius, three heights, four variants
   -------------------------------------------------------------------------- */
.btn { --h: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--h); padding: 0 20px; border-radius: var(--r-control);
       border: 1px solid transparent; font-size: 15px; font-weight: 600; letter-spacing: -0.005em; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s, transform .1s; user-select: none; }
.btn:active { transform: scale(.98); }
.btn svg { width: 18px; height: 18px; }
.btn--sm { --h: 36px; padding: 0 14px; font-size: 14px; }
.btn--lg { --h: 52px; padding: 0 28px; font-size: 16px; }
.btn--block { display: flex; width: 100%; }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-hover); }
.btn--primary:active { background: var(--brand-press); }
.btn--secondary { background: var(--card); color: var(--ink); border-color: var(--line-strong); }
.btn--secondary:hover { border-color: #b7b7bd; background: #fafafa; }
.btn--light { background: #fff; color: var(--ink); }               /* on dark surfaces */
.btn--light:hover { background: #e8e8ed; }
.btn--ghost-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.24); }
.btn--ghost-light:hover { background: rgba(255,255,255,.2); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

/* --------------------------------------------------------------------------
   Form controls — .input and .select__trigger are the same box
   -------------------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field__hint { font-size: 13px; color: var(--muted); }
.field__error { font-size: 13px; color: var(--danger); }
.fields { display: grid; gap: 14px; }
.fields--2 { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }

.input, .select__trigger {
  --h: 48px; height: var(--h); width: 100%; padding: 0 14px; border-radius: var(--r-control); background: var(--card);
  border: 1px solid var(--line-strong); font-size: 16px; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: #8e8e93; }
.input:hover, .select__trigger:hover { border-color: #b7b7bd; }
.input:focus, .select.is-open .select__trigger, .select__trigger:focus-visible { outline: none; border-color: var(--brand); box-shadow: var(--focus); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.input--code { text-align: center; letter-spacing: .5em; font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.input-row { display: flex; gap: 8px; }
.input-row .input { flex: 1; }
.input-row .btn { --h: 48px; }

/* Select — the only dropdown on the site */
.select { position: relative; }
.select__trigger { display: flex; align-items: center; gap: 10px; text-align: left; cursor: pointer; }
.select__label { font-size: 13px; color: var(--muted); font-weight: 500; white-space: nowrap; }
.select__value { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.select__chevron { width: 16px; height: 16px; color: var(--muted); flex: none; transition: transform .2s var(--ease); }
.select.is-open .select__chevron { transform: rotate(180deg); }
.select--sm .select__trigger { --h: 36px; padding: 0 12px; font-size: 14px; font-weight: 500; gap: 6px; }
.select--sm .select__value { flex: 0 1 auto; }
.select--sm { display: inline-block; }
.select--sm .select__trigger { width: auto; }
.select__menu {
  position: absolute; z-index: 60; top: calc(100% + 6px); left: 0; min-width: 100%; max-height: 320px; overflow-y: auto; padding: 6px;
  background: var(--card); border-radius: 14px; box-shadow: var(--shadow-pop); display: none; transform-origin: top;
}
@keyframes cm-pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
.select--align-end .select__menu, .select--flip .select__menu { left: auto; right: 0; }
.select.is-up .select__menu { top: auto; bottom: calc(100% + 6px); transform-origin: bottom; }
.select.is-open .select__menu { display: block; animation: cm-pop .14s var(--ease); }
.select__option { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 10px 8px 12px; border-radius: 9px; cursor: pointer; font-size: 15px; white-space: nowrap; }
.select__option-main { flex: 1; display: flex; align-items: center; gap: 10px; }
.select__option-meta { font-size: 13px; color: var(--muted); }
.select__check { width: 16px; height: 16px; color: var(--brand); visibility: hidden; flex: none; }
.select__option[aria-selected="true"] { font-weight: 600; }
.select__option[aria-selected="true"] .select__check { visibility: visible; }
.select__option.is-active { background: var(--bg); }
.select__option[aria-disabled="true"] { color: #aeaeb2; cursor: default; }
.select__option[aria-disabled="true"] .select__option-meta { color: #aeaeb2; }
.swatch { width: 18px; height: 18px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.14); }

/* Option card — every single-choice list (delivery, payment, condition) */
.options { display: grid; gap: 10px; }
.options--2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.option { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px; min-height: 64px; border-radius: var(--r-control); background: var(--card);
          border: 1px solid var(--line-strong); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.option:hover { border-color: #b7b7bd; }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option__radio { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #aeaeb2; flex: none; transition: border .15s; }
.option__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.option__title { font-size: 15px; font-weight: 600; }
.option__desc { font-size: 13px; color: var(--muted); }
.option__meta { font-size: 15px; font-weight: 600; white-space: nowrap; }
.option__meta--free { color: var(--success); }
.option:has(input:checked) { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.option:has(input:checked) .option__radio { border: 6px solid var(--brand); }
.option:has(input:focus-visible) { box-shadow: inset 0 0 0 1px var(--brand), var(--focus); }
.option--compact { min-height: 0; padding: 12px 14px; align-items: flex-start; }
.option--compact .option__radio { display: none; }

/* Chips — navigation toggles (category tabs). Not dropdowns. */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter); }
.chips::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .chips { margin: 0; padding: 2px 0; flex-wrap: wrap; } }
.chip { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: var(--r-pill); background: var(--card); border: 1px solid var(--line-strong);
        font-size: 14px; font-weight: 500; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s; }
.chip:hover { border-color: #b7b7bd; }
.chip[aria-current="page"], .chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Badge */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: var(--r-pill); font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge svg { width: 14px; height: 14px; }
.badge--neutral { background: #ebebf0; color: var(--ink-2); }
.badge--brand { background: var(--brand-tint); color: var(--brand); }
.badge--success { background: var(--success-bg); color: var(--success); }
.badge--warn { background: var(--warn-bg); color: var(--warn); }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }

/* Notice */
.notice { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--r-control); font-size: 14px; }
.notice svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.notice--info { background: var(--brand-tint); color: var(--brand); }
.notice--warn { background: var(--warn-bg); color: var(--warn); }
.notice--danger { background: var(--danger-bg); color: var(--danger); }
.notice--success { background: var(--success-bg); color: var(--success); }

/* --------------------------------------------------------------------------
   Surfaces
   -------------------------------------------------------------------------- */
.card { background: var(--card); border-radius: var(--r-card); box-shadow: var(--card-shadow, var(--shadow-card)); }
.card--pad { padding: 20px; }
@media (min-width: 768px) { .card--pad { padding: 28px; } }
.card--link { display: block; transition: box-shadow .2s var(--ease), transform .2s var(--ease); }
.card--link:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.card__rows > * + * { border-top: 1px solid var(--line); }
.well { background: var(--well); border-radius: var(--r-media); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.band { background: var(--dark-2); color: var(--on-dark); border-radius: var(--r-card); overflow: hidden; }

/* --------------------------------------------------------------------------
   Commerce components
   -------------------------------------------------------------------------- */
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.price__now { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.price__was { font-size: 13px; color: var(--muted); text-decoration: line-through; font-variant-numeric: tabular-nums; }
.price--lg .price__now { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.price--lg .price__was { font-size: 15px; }
.installment { font-size: 13px; color: var(--muted); }
.installment b { color: var(--ink-2); font-weight: 600; }

.pcard { display: flex; flex-direction: column; height: 100%; padding: 12px; }
@media (min-width: 768px) { .pcard { padding: 16px; } }
.pcard__media { position: relative; aspect-ratio: 1; }
.pcard__media svg { width: 78%; height: 78%; }
.well > img, .gallery__main > img, .gallery__thumb > img, .hero__art > img { width: 100%; height: 100%; object-fit: contain; }
.pcard__media > img { width: 86%; height: 86%; }
.pcard__badge { position: absolute; top: 10px; left: 10px; }
.pcard__body { display: flex; flex-direction: column; gap: 4px; padding: 14px 4px 4px; flex: 1; }
.pcard__brand { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.pcard__name { font-size: 15px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.pcard__swatches { display: flex; gap: 5px; margin-top: 2px; }
.pcard__swatches .swatch { width: 12px; height: 12px; }
.pcard__foot { margin-top: auto; padding-top: 10px; display: flex; flex-direction: column; gap: 2px; }
.pcard.is-soldout .pcard__media svg { opacity: .55; }
@media (min-width: 768px) { .pcard__name { font-size: 16px; } }

.tile { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; padding: 12px 12px 16px; }
.tile .t-small, .tile__title { padding: 0 4px; }
.tile__media { height: 120px; }
.tile__media svg { height: 82%; width: auto; }
.tile__title { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
@media (min-width: 768px) { .tile { padding: 16px 16px 22px; } .tile__media { height: 180px; } .tile__title { font-size: 19px; } }

.promo { display: grid; grid-template-columns: minmax(0,1fr) 112px; align-items: center; gap: 16px; padding: 20px; min-height: 152px; }
.promo__media { height: 112px; display: flex; align-items: center; justify-content: center; }
.promo__media svg { height: 100%; width: auto; }
.promo__media { width: 112px; justify-self: end; }
.promo__media > img { width: 88%; height: 88%; object-fit: contain; }
@media (min-width: 768px) { .promo { grid-template-columns: minmax(0,1fr) 136px; padding: 24px 28px; min-height: 184px; } .promo__media { height: 136px; } }

.feature { display: flex; flex-direction: column; gap: 10px; padding: 20px; }
.feature__icon { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-tint); color: var(--brand); display: flex; align-items: center; justify-content: center; }
.feature__icon svg { width: 22px; height: 22px; }

.service { display: flex; gap: 14px; align-items: flex-start; }
.service__icon { width: 40px; height: 40px; border-radius: 12px; background: var(--card); box-shadow: var(--shadow-card); display: flex; align-items: center; justify-content: center; flex: none; }
.service__icon svg { width: 20px; height: 20px; }

.row { display: flex; align-items: center; gap: 14px; padding: 16px 0; }
.row__icon { width: 20px; height: 20px; flex: none; color: var(--ink-2); }
.row__body { flex: 1; min-width: 0; }
.row__title { font-size: 15px; font-weight: 600; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.crumbs svg { width: 12px; height: 12px; }
.page-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
@media (min-width: 768px) { .page-head { margin-bottom: 32px; gap: 12px; } }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0 16px; }
.toolbar__filters { display: flex; flex-wrap: wrap; gap: 8px; }
.toolbar__meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.toolbar__filters .select__menu, .toolbar__meta .select__menu { min-width: 220px; }

.qty { display: inline-flex; align-items: center; height: 36px; border: 1px solid var(--line-strong); border-radius: var(--r-control); }
.qty button { width: 36px; height: 34px; border: 0; background: none; display: flex; align-items: center; justify-content: center; color: var(--ink-2); border-radius: var(--r-control); }
.qty button:hover { background: var(--bg); }
.qty button svg { width: 14px; height: 14px; }
.qty span { min-width: 28px; text-align: center; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }

.line { display: grid; grid-template-columns: 88px 1fr; gap: 16px; padding: 20px 0; }
.line__media { width: 88px; height: 88px; }
.line__media svg { width: 70%; height: 70%; }
.line__top { display: flex; justify-content: space-between; gap: 12px; }
.line__actions { display: flex; align-items: center; gap: 16px; margin-top: 12px; }
@media (min-width: 768px) { .line { grid-template-columns: 120px 1fr; gap: 24px; padding: 24px 0; } .line__media { width: 120px; height: 120px; } }

.summary { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.summary__row { display: flex; justify-content: space-between; gap: 12px; }
.summary__row span:first-child { color: var(--muted); }
.summary__row span:last-child { font-variant-numeric: tabular-nums; }
.summary__total { display: flex; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--line); font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.mini { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; }
.mini__media { width: 56px; height: 56px; }
.mini__media svg { width: 72%; height: 72%; }

.step { position: relative; }
.step__head { display: flex; align-items: center; gap: 14px; padding: 18px 20px; }
.step__num { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; background: #ebebf0; color: var(--muted); flex: none; }
.step__num svg { width: 14px; height: 14px; }
.step__title { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.step__summary { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.step__titles { flex: 1; min-width: 0; }
.step__edit { font-size: 14px; }
.step__body { padding: 0 20px 22px; display: none; }
.step.is-active .step__num { background: var(--brand); color: #fff; }
.step.is-done .step__num { background: var(--ink); color: #fff; }
.step.is-active .step__body { display: block; }
.step.is-pending .step__title { color: var(--muted); }
.step__edit { display: none; }
.step.is-done .step__edit { display: inline-flex; }
.step:not(.is-done) .step__summary { display: none; }
@media (min-width: 768px) { .step__head { padding: 22px 28px; } .step__body { padding: 0 28px 28px 70px; } }

.accordion > details { border-top: 1px solid var(--line); }
.accordion > details:first-child { border-top: 0; }
.accordion summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0; font-size: 16px; font-weight: 600; cursor: pointer; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary svg { width: 18px; height: 18px; color: var(--muted); transition: transform .2s var(--ease); }
.accordion details[open] summary svg { transform: rotate(45deg); }
.accordion__body { padding-bottom: 20px; }
.specs { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; font-size: 15px; }
.specs dt, .specs dd { padding: 11px 0; border-top: 1px solid var(--line); }
.specs dt { color: var(--muted); }
.specs dt:first-of-type, .specs dd:first-of-type { border-top: 0; }

.table-wrap { overflow-x: auto; }
.ctable { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 15px; table-layout: fixed; }
.ctable th, .ctable td { padding: 14px 16px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.ctable thead th { border-top: 0; vertical-align: bottom; }
.ctable__media { height: 180px; }
.ctable__media svg { height: 86%; width: auto; }
.ctable tbody th { color: var(--muted); font-weight: 500; width: 180px; }
.ctable__group td, .ctable__group th { padding-top: 28px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border-top: 0; }

/* Gallery */
.gallery { display: flex; flex-direction: column; gap: 12px; }
.gallery__main { aspect-ratio: 1; border-radius: var(--r-card); background: var(--well); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.gallery__main svg { width: 74%; height: 74%; }
.gallery__thumbs { display: flex; gap: 10px; justify-content: center; }
.gallery__thumb { width: 64px; height: 64px; border-radius: var(--r-media); background: var(--well); border: 1px solid var(--line); overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 6px; cursor: pointer; transition: border-color .15s; }
.gallery__thumb svg { width: 100%; height: 100%; }
.gallery__thumb[aria-pressed="true"] { border: 2px solid var(--brand); padding: 5px; }
@media (min-width: 1000px) { .gallery { position: sticky; top: calc(var(--header-h) + 24px); } .gallery__main { aspect-ratio: 1 / 1.02; } }

.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; gap: 14px; padding: 12px var(--gutter) max(12px, env(safe-area-inset-bottom));
          background: rgba(255,255,255,.86); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-top: 1px solid rgba(0,0,0,.08);
          transform: translateY(110%); visibility: hidden; transition: transform .28s var(--ease), visibility 0s .28s; }
.buybar.is-shown { transform: none; visibility: visible; transition: transform .28s var(--ease); }
.buybar__info { flex: 1; min-width: 0; }
.buybar__name { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar__price { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
@media (min-width: 1000px) { .buybar { display: none; } }

/* Hero */
.hero { background: var(--bg); color: var(--ink); overflow: hidden; }
.hero__track { display: grid; }
.hero__slide { grid-area: 1 / 1; display: grid; gap: 28px; align-items: center; padding: 40px 0 8px; opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility 0s .5s; }
.hero__slide.is-active { opacity: 1; visibility: visible; transition: opacity .5s var(--ease); }
.hero__copy { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.hero__copy .t-eyebrow { color: var(--brand); }
.hero__copy p { max-width: 460px; }
.hero__ctas { display: flex; gap: 10px; margin-top: 6px; }
.hero__art { height: 320px; display: flex; align-items: center; justify-content: center; }
.hero__art svg { height: 92%; width: auto; }
.hero__controls { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 20px 0 32px; }
.hero__dots { display: flex; gap: 8px; }
.hero__dot { width: 8px; height: 8px; border-radius: var(--r-pill); border: 0; padding: 0; background: rgba(0,0,0,.2); transition: width .3s var(--ease), background-color .3s; }
.hero__dot[aria-selected="true"] { width: 24px; background: var(--ink); }
.hero__arrow { display: none; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(0,0,0,.06); color: var(--ink); align-items: center; justify-content: center; }
.hero__arrow:hover { background: rgba(0,0,0,.1); }
.hero__arrow svg { width: 16px; height: 16px; }
@media (min-width: 900px) {
  .hero__slide { grid-template-columns: 1fr 1fr; padding: 72px 0 0; gap: 48px; }
  .hero__copy { align-items: flex-start; text-align: left; gap: 18px; }
  .hero__art { height: 480px; }
  .hero__arrow { display: inline-flex; }
  .hero__controls { padding: 24px 0 48px; }
}

/* Footer */
.footer { margin-top: var(--section); background: var(--card); border-top: 1px solid var(--line); padding: 40px 0 32px; font-size: 13px; color: var(--muted); }
.footer__logo img { height: 16px; width: auto; }
.footer__cols { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 28px 16px; margin: 28px 0; }
.footer__cols h3 { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 12px; }
.footer__cols li + li { margin-top: 9px; }
.footer__cols a:hover { color: var(--ink); }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 20px; border-top: 1px solid var(--line); }
@media (min-width: 768px) { .footer { padding: 56px 0 40px; } .footer__cols { grid-template-columns: repeat(4, minmax(0,1fr)); margin: 36px 0; } }

/* Toast */
.toast { position: fixed; z-index: 70; left: 50%; bottom: 24px; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; border-radius: 16px; background: rgba(29,29,31,.94); color: #fff;
         font-size: 14px; font-weight: 500; box-shadow: 0 12px 40px rgba(0,0,0,.25); transform: translate(-50%, 24px); opacity: 0; visibility: hidden; transition: transform .32s var(--ease), opacity .2s, visibility 0s .32s; width: max-content; max-width: calc(100vw - 32px); }
.toast.is-shown { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition: transform .32s var(--ease), opacity .2s; }
.toast svg { width: 18px; height: 18px; color: #6fd08c; flex: none; }
.toast .btn { --h: 32px; padding: 0 12px; font-size: 13px; }
.has-buybar .toast { bottom: 96px; }

/* Empty state */
.empty { text-align: center; padding: 56px 24px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty__icon { width: 56px; height: 56px; border-radius: 16px; background: var(--bg); display: flex; align-items: center; justify-content: center; color: var(--muted); margin-bottom: 6px; }
.empty__icon svg { width: 26px; height: 26px; }

/* Success mark */
.mark { width: 64px; height: 64px; border-radius: 50%; background: var(--success-bg); color: var(--success); display: flex; align-items: center; justify-content: center; }
.mark svg { width: 30px; height: 30px; }

/* Styleguide only */
.sg-swatch { height: 64px; border-radius: var(--r-media); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }

/* Utilities (spacing only — no colours or radii here) */
.mt-4 { margin-top: 4px; } .mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-20 { margin-top: 20px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-40 { margin-top: 40px; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.flex { display: flex; } .col { display: flex; flex-direction: column; } .center { align-items: center; } .between { justify-content: space-between; } .wrap { flex-wrap: wrap; } .grow { flex: 1; min-width: 0; }
.text-center { text-align: center; }
.hide-lg { } @media (min-width: 1000px) { .hide-lg { display: none !important; } }
.show-lg { display: none !important; } @media (min-width: 1000px) { .show-lg { display: revert !important; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .header, .buybar, .drawer { background: #fff; backdrop-filter: none; }
}

/* Category tiles: odd last tile spans the row on two-column phones */
@media (max-width: 767px) { .tiles > :last-child:nth-child(odd) { grid-column: 1 / -1; } .tiles > :last-child:nth-child(odd) .tile__media { height: 140px; } }

/* Showcase tiles (photo-led, 2-up) */
.showcase { position: relative; display: flex; flex-direction: column; border-radius: var(--r-card); overflow: hidden; min-height: 420px; isolation: isolate; transition: transform .3s var(--ease); }
.showcase:hover { transform: translateY(-2px); }
.showcase__copy { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 32px 24px 0; }
.showcase__copy .link { margin-top: 4px; }
.showcase__media { flex: 1; display: flex; align-items: flex-end; justify-content: center; min-height: 0; }
.showcase__media img { width: 100%; height: 100%; object-fit: cover; }
.showcase--dark { background: #000; color: #f5f5f7; }
.showcase--dark .t-body { color: #a1a1a6; }
.showcase--dark .link { color: #6f9bff; }
.showcase--dark .showcase__media img { object-fit: contain; object-position: center bottom; max-height: 300px; }
.showcase--photo { background: var(--card); }
.showcase--photo .showcase__copy { padding-bottom: 24px; }
.showcase--photo .showcase__media { align-items: stretch; }
.showcase--photo .showcase__media img { object-position: center 60%; }
@media (min-width: 768px) { .showcase { min-height: 500px; } .showcase__copy { padding-top: 44px; } }

/* Trade-in card */
.tradein { display: grid; align-items: center; background: var(--card); border-radius: var(--r-card); overflow: hidden; }
.tradein__copy { display: flex; flex-direction: column; gap: 12px; padding: 32px 24px 8px; max-width: 560px; }
.tradein__media { display: flex; justify-content: center; align-items: flex-end; }
.tradein__media img { width: 100%; max-width: 520px; height: auto; display: block; }
@media (min-width: 900px) { .tradein { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } .tradein__copy { padding: 48px 0 48px 48px; } .tradein__media { align-self: end; padding-top: 24px; } }

/* Hero — dark stage so product cut-outs stand apart from the light page */
.hero { background: #000; color: #f5f5f7; }
.hero .t-lead { color: #a1a1a6; }
.hero .t-small { color: #86868b; }
.hero__copy .t-eyebrow { color: #6f9bff; }
.hero__art img { filter: drop-shadow(0 30px 60px rgba(0,0,0,.6)); }
.hero__dot { background: rgba(255,255,255,.3); }
.hero__dot[aria-selected="true"] { background: #f5f5f7; }
.hero__arrow { background: rgba(255,255,255,.12); color: #f5f5f7; }
.hero__arrow:hover { background: rgba(255,255,255,.2); }

/* Floating bag bar — appears once something is in the bag and stays pinned to the bottom */
.bagbar { position: fixed; z-index: 60; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); display: flex; justify-content: center; pointer-events: none; animation: cm-bag-in .4s var(--ease) both; }
.bagbar[hidden] { display: none; }
.bagbar__inner { pointer-events: auto; width: 100%; max-width: 680px; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; border-radius: 22px;
  background: rgba(255,255,255,.9); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 18px 50px rgba(0,0,0,.18), 0 4px 12px rgba(0,0,0,.06); }
.bagbar__thumbs { display: flex; flex: none; }
.bagbar__thumb { width: 52px; height: 52px; border-radius: 14px; background: var(--well); display: inline-flex; align-items: center; justify-content: center; overflow: hidden; box-shadow: 0 0 0 2px #fff; }
.bagbar__thumb + .bagbar__thumb { margin-left: -18px; }
.bagbar__thumb img, .bagbar__thumb svg { width: 86%; height: 86%; object-fit: contain; }
.bagbar__info { flex: 1; min-width: 0; }
.bagbar__title { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bagbar__title span { overflow: hidden; text-overflow: ellipsis; }
.bagbar__title--added { color: var(--success); }
.bagbar__title--added svg { width: 18px; height: 18px; flex: none; stroke-width: 2.4; }
.bagbar__meta { font-size: 13px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bagbar__meta b { color: var(--ink); font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
.bagbar .btn { --h: 48px; flex: none; }
.bagbar__view { display: none; }
.bagbar__go { padding: 0 16px 0 20px; }
.bagbar__go svg { width: 16px; height: 16px; margin-left: -2px; }
.bagbar.is-pop .bagbar__inner { animation: cm-bag-pop .5s var(--ease); }
@media (min-width: 600px) { .bagbar { bottom: max(20px, env(safe-area-inset-bottom)); } .bagbar__inner { padding: 12px 12px 12px 14px; gap: 14px; } .bagbar__view { display: inline-flex; } .bagbar__title { font-size: 16px; } }
@keyframes cm-bag-in { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes cm-bag-pop { 0% { transform: scale(1); } 35% { transform: scale(1.03); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .bagbar, .bagbar.is-pop .bagbar__inner { animation: none; } }
body.has-bagbar { padding-bottom: 96px; }
body.has-bagbar .toast { bottom: 108px; }
/* On product pages the sticky buy bar sits at the very bottom on phones; lift the bag bar above it */
@media (max-width: 999px) { body.buybar-on .bagbar { bottom: calc(80px + env(safe-area-inset-bottom)); } body.has-bagbar.has-buybar { padding-bottom: 176px; } }
@media (max-width: 599px) {
  .bagbar__inner { gap: 10px; padding: 8px 8px 8px 10px; border-radius: 20px; }
  .bagbar__thumb { width: 44px; height: 44px; border-radius: 12px; }
  .bagbar__thumb + .bagbar__thumb { margin-left: -16px; }
  .bagbar__title { font-size: 14px; }
  .bagbar .btn { --h: 46px; }
  .bagbar__go { padding: 0 12px 0 16px; }
}
