/* HomeFixit Spares shop. Same family as the dashboard and homefixit.co.ke: warm canvas, Geist with Instrument Serif
   accents, black ink and HomeFixit orange. No inline styles (strict CSP); light and dark follow the phone. */
@font-face { font-family: "Geist"; src: url(/fonts/geist.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(/fonts/geist-mono.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url(/fonts/instrument-serif.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url(/fonts/instrument-serif-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --canvas: #f2f1ed; --surface: #ffffff; --surface-2: #f8f7f4; --sunken: #ebeae5;
  --ink: #0b0b0a; --ink-2: #3a3935; --ink-3: #66655f; --ink-4: #a6a59e;
  --line: rgba(11, 11, 10, .08); --line-2: rgba(11, 11, 10, .14);
  --accent: #e4520c; --accent-text: #b83f06; --accent-soft: rgba(228, 82, 12, .1);
  --ok: #157f3b; --ok-soft: rgba(21, 127, 59, .1); --warn: #9a5806; --warn-soft: rgba(217, 119, 6, .13); --bad: #c0262d; --bad-soft: rgba(192, 38, 45, .09);
  --wa: #1da851;
  --t-fridge: #dfeaf6; --t-washing-machine: #e7e2f4; --t-cooker: #f6e3d6; --t-microwave: #efe9da; --t-tv: #e1e4e9;
  --t-ac: #dcefe8; --t-water-dispenser: #dcecf6; --t-dishwasher: #e4eef0; --t-tumble-dryer: #f1e6e2; --t-outdoor: #e3ecd9; --t-gym-equipment: #efe0e2; --t-other: #ebe9e3;
  --shadow-1: 0 1px 2px rgba(20, 18, 10, .04), 0 2px 8px -2px rgba(20, 18, 10, .05);
  --shadow-2: 0 2px 4px rgba(20, 18, 10, .05), 0 22px 44px -18px rgba(20, 18, 10, .2);
  --shadow-3: 0 2px 6px rgba(20, 18, 10, .06), 0 36px 90px -24px rgba(20, 18, 10, .36);
  --scrim: rgba(11, 11, 10, .36);
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
  --serif: "Instrument Serif", Georgia, serif;
  --ease: cubic-bezier(.2, .8, .2, 1); --spring: cubic-bezier(.32, .72, 0, 1);
  --r: 24px; --wrap: 1280px; --gut: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #0b0b0a; --surface: #151514; --surface-2: #1a1a19; --sunken: #20201e;
    --ink: #f4f3ef; --ink-2: #d6d5ce; --ink-3: #a3a29b; --ink-4: #66655f;
    --line: rgba(255, 255, 255, .08); --line-2: rgba(255, 255, 255, .14);
    --accent: #ff7a3d; --accent-text: #ff9a66; --accent-soft: rgba(255, 122, 61, .14);
    --ok: #4ade80; --ok-soft: rgba(74, 222, 128, .12); --warn: #fbbf24; --warn-soft: rgba(251, 191, 36, .13); --bad: #ff6b6b; --bad-soft: rgba(255, 107, 107, .12);
    --t-fridge: #17202b; --t-washing-machine: #1e1b29; --t-cooker: #2a1d16; --t-microwave: #24211a; --t-tv: #1c1e22;
    --t-ac: #15231f; --t-water-dispenser: #152129; --t-dishwasher: #16222a; --t-tumble-dryer: #261c19; --t-outdoor: #1a2316; --t-gym-equipment: #281a1d; --t-other: #1e1d1b;
    --shadow-1: 0 0 0 1px rgba(255, 255, 255, .03), 0 2px 8px -2px rgba(0, 0, 0, .5);
    --shadow-2: 0 0 0 1px rgba(255, 255, 255, .04), 0 22px 44px -18px rgba(0, 0, 0, .7);
    --shadow-3: 0 0 0 1px rgba(255, 255, 255, .05), 0 36px 90px -24px rgba(0, 0, 0, .85);
    --scrim: rgba(0, 0, 0, .62);
    color-scheme: dark;
  }
}
@media (min-width: 760px) { :root { --gut: 28px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 430 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11"; overflow-x: clip; -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.035em; line-height: 1.05; font-weight: 680; }
h1 em, h2 em, .ft-big em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.015em; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--accent-soft); }
.i { width: 19px; height: 19px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i.sm { width: 15px; height: 15px; } .i.lg { width: 23px; height: 23px; } .i.xl { width: 34px; height: 34px; stroke-width: 1.5; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 12px; background: var(--ink); color: var(--canvas); }
.skip:focus { top: 12px; }
.eyebrow { font: 500 11.5px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.muted { color: var(--ink-3); } .small { font-size: 14px; }
main { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }

/* buttons */
.btn { --h: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: var(--h); padding: 0 20px; border-radius: 999px;
  border: 1px solid transparent; background: var(--sunken); color: var(--ink); font-weight: 600; font-size: 15px; white-space: nowrap; position: relative;
  transition: background-color .2s var(--ease), color .2s, border-color .2s, transform .12s var(--ease), box-shadow .2s; user-select: none; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--ink); color: var(--canvas); }
.btn.primary:hover { background: color-mix(in oklab, var(--ink), var(--canvas) 16%); }
.btn.ghost { background: transparent; border-color: var(--line-2); }
.btn.ghost:hover { background: var(--surface); }
.btn.light { background: #f4f3ef; color: #0b0b0a; }
.btn.outline-light { background: transparent; color: #f4f3ef; border-color: rgba(255, 255, 255, .25); }
.btn.outline-light:hover { border-color: rgba(255, 255, 255, .5); }
.btn.lg { --h: 54px; padding: 0 26px; font-size: 16px; }
.btn.block { width: 100%; }
.btn.grow { flex: 1; }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading > * { opacity: 0; }
.btn.is-loading::after { content: ""; position: absolute; inset: 0; margin: auto; width: 19px; height: 19px; border-radius: 50%; border: 2.2px solid var(--canvas); border-right-color: transparent; animation: spin .7s linear infinite; }
.btn.added { background: var(--ok); color: #fff; }
.input, .select, .textarea { width: 100%; min-width: 0; height: 52px; padding: 0 16px; border-radius: 15px; border: 1px solid transparent; background: var(--sunken); font-size: 16px; outline: none;
  transition: background-color .18s, border-color .18s, box-shadow .18s; }
.input::placeholder, .textarea::placeholder { color: var(--ink-4); }
.input:focus, .select:focus, .textarea:focus { background: var(--surface); border-color: var(--ink); box-shadow: 0 0 0 4px var(--accent-soft); }
.input.invalid, .select.invalid, .textarea.invalid { border-color: var(--bad); box-shadow: 0 0 0 4px var(--bad-soft); }
.textarea { height: auto; min-height: 92px; padding: 14px 16px; resize: vertical; }
.select { appearance: none; padding-right: 44px; cursor: pointer; background-repeat: no-repeat; background-position: right 16px center; background-size: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2366655f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
.field { display: grid; gap: 7px; }
.field > span { font-size: 14px; font-weight: 600; color: var(--ink-2); display: flex; justify-content: space-between; }
.field > span i { font-style: normal; font-weight: 450; color: var(--ink-3); }
.tag { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--surface); color: var(--ink-2); border: 1px solid var(--line); }
.tag.sale { background: var(--accent); color: #fff; border-color: transparent; }
a.tag:hover { border-color: var(--line-2); }

/* header: a floating pill */
.hdr { position: sticky; top: 0; z-index: 40; padding: calc(10px + env(safe-area-inset-top)) var(--gut) 10px; }
.hdr-in { max-width: var(--wrap); margin: 0 auto; display: flex; align-items: center; gap: 12px; height: 62px; padding: 0 8px 0 14px; border-radius: 22px;
  background: color-mix(in oklab, var(--surface) 88%, transparent); border: 1px solid var(--line); box-shadow: var(--shadow-1);
  backdrop-filter: saturate(170%) blur(18px); -webkit-backdrop-filter: saturate(170%) blur(18px); transition: box-shadow .3s var(--ease); }
.hdr.scrolled .hdr-in { box-shadow: var(--shadow-2); }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 680; font-size: 16.5px; letter-spacing: -.03em; white-space: nowrap; }
.logo .mark { position: relative; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--ink); color: var(--canvas); }
.logo .mark .i { width: 18px; height: 18px; stroke-width: 2.2; }
.logo .mark::after { content: ""; position: absolute; right: -3px; bottom: -3px; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); border: 2.5px solid var(--surface); }
.logo .word em { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.12em; color: var(--accent-text); letter-spacing: -.01em; }
.links { display: none; flex: 1; justify-content: center; gap: 2px; }
.links a { padding: 9px 13px; border-radius: 12px; font-size: 14.5px; font-weight: 550; color: var(--ink-2); transition: background-color .2s, color .2s; }
.links a:hover { background: var(--surface-2); color: var(--ink); }
.tools { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.tool { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; border-radius: 14px; border: 0; background: transparent; color: var(--ink-2); font-weight: 550; font-size: 14.5px; }
.tool:hover { background: var(--surface-2); color: var(--ink); }
.tool span, .tool kbd, .tool.wide { display: none; }
.tool kbd { font: 500 11px var(--mono); border: 1px solid var(--line-2); border-radius: 6px; padding: 1px 6px; color: var(--ink-3); }
.bag-btn { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 8px 0 16px; border-radius: 16px; border: 0; background: var(--ink); color: var(--canvas); font-weight: 600; font-size: 15px; }
.bag-btn .i { width: 18px; height: 18px; }
.bag-n { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 11px; background: var(--canvas); color: var(--ink); font-size: 13.5px; font-weight: 700; transition: transform .3s var(--spring); }
.bag-n.bump { animation: bump .5s var(--spring); }
.bag-n.has { background: var(--accent); color: #fff; }
@media (min-width: 700px) { .tool span, .tool kbd { display: inline; } .tool.wide { display: inline-flex; } }
@media (min-width: 1120px) { .links { display: flex; } .hdr-in { padding-left: 18px; } }
@media (max-width: 389px) { .logo .word { font-size: 15px; } .bag-btn span { display: none; } .bag-btn { padding-left: 12px; } }

/* hero */
.hero { display: grid; gap: 22px; padding: 18px 0 8px; align-items: center; }
.hero h1 { font-size: clamp(44px, 10.5vw, 96px); letter-spacing: -.055em; line-height: .95; margin: 14px 0 18px; }
.hero h1 em { color: var(--accent-text); }
.lede { font-size: clamp(16.5px, 2vw, 19px); color: var(--ink-2); max-width: 54ch; margin: 0 0 24px; line-height: 1.5; }
.hero-search { position: relative; display: flex; align-items: center; gap: 8px; max-width: 580px; height: 64px; padding: 0 8px 0 20px; border-radius: 20px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-2); transition: border-color .2s, box-shadow .2s; }
.hero-search:focus-within { border-color: var(--ink); box-shadow: var(--shadow-2), 0 0 0 4px var(--accent-soft); }
.hero-search > .i { color: var(--ink-3); }
.hero-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-size: 16.5px; }
.hero-search .btn { --h: 48px; border-radius: 14px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip-link { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  font-size: 14px; font-weight: 550; color: var(--ink-2); transition: border-color .2s, color .2s, transform .15s; }
.chip-link:hover { border-color: var(--line-2); color: var(--ink); transform: translateY(-1px); }
.hero-art { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; grid-template-rows: 1fr 1fr; gap: 10px; height: 300px; }
.hero-art .tile { overflow: hidden; border-radius: 22px; background: var(--sunken); }
.hero-art .tile img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); animation: drift 18s ease-in-out infinite alternate; }
.hero-art .t1 { grid-row: span 2; }
.hero-art .t4 { display: none; }
.hero-art .t2 img { animation-delay: -6s; } .hero-art .t3 img { animation-delay: -12s; }
.hero-badge { position: absolute; left: 14px; bottom: 14px; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 12px; border-radius: 16px;
  background: color-mix(in oklab, var(--surface) 90%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow-2); font-size: 13px; line-height: 1.3; }
.hero-badge b { display: block; font-weight: 650; font-size: 13.5px; }
.hero-badge span { color: var(--ink-3); }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .5); animation: ring 2s var(--ease) infinite; flex: none; }
@media (min-width: 960px) {
  .hero { grid-template-columns: 1.05fr 1fr; gap: 40px; padding: 36px 0 20px; min-height: min(640px, calc(100vh - 100px)); }
  .hero-art { height: 560px; grid-template-columns: 1fr 1fr; grid-template-rows: 1.2fr 1fr; gap: 12px; }
  .hero-art .t1 { grid-row: auto; grid-column: span 2; }
  .hero-art .t4 { display: none; }
  .hero-badge { left: 20px; bottom: 20px; }
}

.marquee { overflow: hidden; margin: 28px calc(-1 * var(--gut)) 0; padding: 16px 0; border-block: 1px solid var(--line); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-in { display: flex; width: max-content; gap: 28px; align-items: center; animation: marquee 32s linear infinite; font-size: clamp(18px, 2.4vw, 26px); font-weight: 600; letter-spacing: -.03em; color: var(--ink-2); }
.marquee-in i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* sections */
.sec { padding: 52px 0 0; }
.sec.tight { padding-top: 18px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.sec-head h2, .help-band h2, .d-card h2 { font-size: clamp(32px, 5vw, 52px); margin-top: 8px; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; color: var(--ink-2); white-space: nowrap; padding: 8px 2px; }
.more .i { transition: transform .25s var(--ease); }
.more:hover { color: var(--ink); } .more:hover .i { transform: translateX(3px); }

.cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 760px) { .cats { grid-template-columns: repeat(4, 1fr); gap: 14px; } }
.cat { position: relative; display: grid; align-content: end; gap: 2px; min-height: 168px; padding: 18px; border-radius: var(--r); overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.cat:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.cat-ic { position: absolute; top: 18px; left: 18px; color: var(--ink); opacity: .85; transition: transform .5s var(--spring); }
.cat:hover .cat-ic { transform: scale(1.1) rotate(-6deg); }
.cat b { font-size: 18px; font-weight: 650; letter-spacing: -.025em; }
.cat > span:not(.cat-ic):not(.cat-go) { font-size: 13.5px; color: var(--ink-3); }
.cat-go { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); box-shadow: var(--shadow-1);
  transition: transform .35s var(--spring); }
.cat:hover .cat-go { transform: rotate(45deg); }
.tone-fridge { background: var(--t-fridge); } .tone-washing-machine { background: var(--t-washing-machine); } .tone-cooker { background: var(--t-cooker); }
.tone-microwave { background: var(--t-microwave); } .tone-tv { background: var(--t-tv); } .tone-ac { background: var(--t-ac); }
.tone-water-dispenser { background: var(--t-water-dispenser); } .tone-other { background: var(--t-other); }
.tone-dishwasher { background: var(--t-dishwasher); } .tone-tumble-dryer { background: var(--t-tumble-dryer); }
.tone-outdoor { background: var(--t-outdoor); } .tone-gym-equipment { background: var(--t-gym-equipment); }

/* product cards */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } }
.pc { display: flex; flex-direction: column; min-width: 0; background: var(--surface); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-1);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.pc:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.pc-img { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden; color: var(--ink-3); }
.pc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.pc:hover .pc-img img { transform: scale(1.05); }
.pc-img .tag { position: absolute; top: 10px; left: 10px; }
.pc-ic { display: grid; place-items: center; width: 100%; height: 100%; color: var(--ink); opacity: .55; }
.pc-body { display: flex; flex-direction: column; gap: 3px; padding: 14px 14px 16px; flex: 1; }
.pc-brand { font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.pc-name { font-size: 16px; font-weight: 620; letter-spacing: -.02em; line-height: 1.25; }
.pc-name a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-name a::after { content: ""; position: absolute; inset: 0; }
.pc { position: relative; }
.pc-fits { font-size: 13px; color: var(--ink-3); }
.pc-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; }
.pc-price { font-weight: 700; font-size: 17px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; }
.pc-price s { font-size: 12.5px; font-weight: 450; color: var(--ink-4); }
.add { position: relative; z-index: 2; flex: none; width: 42px; height: 42px; border-radius: 14px; border: 0; display: grid; place-items: center; background: var(--ink); color: var(--canvas);
  transition: transform .2s var(--spring), background-color .2s; }
.add:hover { transform: scale(1.08); }
.add:active { transform: scale(.92); }
.add.added { background: var(--ok); color: #fff; }
.pc-stock { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 550; margin-top: 6px; }
.pc-stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pc-stock.in { color: var(--ok); } .pc-stock.few { color: var(--warn); } .pc-stock.out { color: var(--ink-3); }
@media (max-width: 420px) { .pc-body { padding: 12px 12px 14px; } .pc-name { font-size: 15px; } .pc-price { font-size: 15.5px; } .add { width: 38px; height: 38px; border-radius: 12px; } }

/* how it works */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { padding: 22px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.steps .n { font: 500 12px var(--mono); color: var(--accent-text); letter-spacing: .08em; }
.steps b { display: block; font-size: 19px; font-weight: 650; letter-spacing: -.025em; margin: 30px 0 6px; }
.steps p { margin: 0; color: var(--ink-3); font-size: 15px; }

.why { display: grid; gap: 1px; margin-top: 52px; border-radius: var(--r); overflow: hidden; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 760px) { .why { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .why { grid-template-columns: repeat(4, 1fr); } }
.why-item { display: grid; gap: 4px; padding: 22px; background: var(--surface); font-size: 14.5px; }
.why-item b { font-size: 16px; font-weight: 640; letter-spacing: -.02em; }
.why-item span:last-child { color: var(--ink-3); }
.why-item a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.why-ic { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: var(--sunken); margin-bottom: 10px; }

.help-band { position: relative; display: grid; gap: 22px; align-items: center; padding: 34px 26px; border-radius: 30px; background: #0b0b0a; color: #f4f3ef; overflow: hidden; isolation: isolate; }
.help-band::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .6; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 11px); }
.help-band .eyebrow { color: rgba(244, 243, 239, .6); }
.help-band p { color: rgba(244, 243, 239, .72); margin: 10px 0 0; max-width: 52ch; }
@media (min-width: 900px) { .help-band { grid-template-columns: 1fr auto; padding: 48px 44px; } }

/* listing */
.page-top { padding: 14px 0 6px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ink-3); }
.crumbs a:hover { color: var(--ink); }
.crumbs span[aria-current] { color: var(--ink-2); font-weight: 550; }
.page-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-top: 14px; }
.page-title h1 { font-size: clamp(38px, 7vw, 68px); letter-spacing: -.05em; }
.page-title .count { font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.filters { display: grid; gap: 12px; padding: 18px 0 6px; }
.f-search { position: relative; display: flex; align-items: center; }
.f-search .i { position: absolute; left: 16px; color: var(--ink-3); }
.f-search input { width: 100%; height: 54px; padding: 0 16px 0 46px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-1); font-size: 16px; outline: none; }
.f-search input:focus { border-color: var(--ink); box-shadow: 0 0 0 4px var(--accent-soft); }
.f-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.f-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gut)); padding: 2px var(--gut); flex: 1 1 100%; }
.f-chips::-webkit-scrollbar { display: none; }
.fchip, .bchip { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14.5px; font-weight: 550;
  color: var(--ink-2); white-space: nowrap; transition: background-color .2s, color .2s, border-color .2s; }
.fchip:hover, .bchip:hover { border-color: var(--line-2); color: var(--ink); }
.fchip.on, .bchip.on { background: var(--ink); color: var(--canvas); border-color: var(--ink); }
.f-tools { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.toggle { display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 550; }
.toggle i { position: relative; width: 34px; height: 20px; border-radius: 999px; background: var(--line-2); transition: background-color .25s; }
.toggle i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .3s var(--spring); }
.toggle.on i { background: var(--ok); } .toggle.on i::after { transform: translateX(14px); }
.sort select { height: 42px; padding: 0 40px 0 14px; border-radius: 999px; border: 1px solid var(--line); background-color: var(--surface); font-size: 14px; font-weight: 550; appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2366655f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 15px; }
.f-brands { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.f-brands .eyebrow { margin-right: 6px; }
.bchip { height: 34px; font-size: 13.5px; padding: 0 13px; }
@media (min-width: 900px) { .f-chips { flex: 1 1 auto; margin: 0; padding: 2px; } }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 26px; }
.pager .pg { font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.empty-card { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 48px 22px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.empty-card h3 { font-size: 24px; }
.empty-card p { margin: 0 0 6px; color: var(--ink-3); max-width: 44ch; }
.empty-ic { width: 70px; height: 70px; border-radius: 22px; display: grid; place-items: center; background: var(--sunken); color: var(--ink-2); }
.row-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

/* product page */
.pdp { display: grid; gap: 20px; padding: 16px 0 0; }
@media (min-width: 960px) { .pdp { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 44px; align-items: start; } .buy { position: sticky; top: 100px; } }
.gallery { display: grid; gap: 10px; min-width: 0; }
.g-main { position: relative; display: flex; aspect-ratio: 1 / 1; border-radius: 28px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; color: var(--ink-3); }
.g-main::-webkit-scrollbar { display: none; }
.g-main img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: center; }
.g-main .pc-ic { flex: 1; }
@media (min-width: 960px) { .g-main { aspect-ratio: 4 / 3.4; } }
.g-thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.g-thumbs button { flex: none; width: 76px; height: 76px; padding: 0; border-radius: 16px; overflow: hidden; border: 2px solid transparent; background: var(--sunken); opacity: .6; transition: opacity .2s, border-color .2s; }
.g-thumbs button.on, .g-thumbs button:hover { opacity: 1; border-color: var(--ink); }
.g-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.buy { display: grid; gap: 16px; align-content: start; min-width: 0; }
.buy-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.buy h1 { font-size: clamp(34px, 5vw, 54px); letter-spacing: -.045em; line-height: 1; }
.sku { margin: -6px 0 0; font-size: 14px; color: var(--ink-3); }
.sku span { font-family: var(--mono); color: var(--ink-2); }
.price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.price-row .price { font-size: 34px; font-weight: 720; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.price-row s { color: var(--ink-4); font-size: 17px; }
.stock { display: flex; align-items: center; gap: 9px; margin: 0; font-weight: 600; font-size: 15px; }
.stock i { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.stock.in { color: var(--ok); } .stock.in i { animation: ring 2.2s var(--ease) infinite; }
.stock.few { color: var(--warn); } .stock.out { color: var(--ink-3); }
.buy-row { display: flex; gap: 10px; }
.qty { display: flex; align-items: center; height: 54px; padding: 4px; border-radius: 999px; background: var(--sunken); }
.qty button { width: 46px; height: 46px; border: 0; border-radius: 50%; display: grid; place-items: center; background: transparent; color: var(--ink-2); transition: background-color .15s; }
.qty button:hover { background: var(--surface); color: var(--ink); }
.qty input { width: 38px; text-align: center; border: 0; background: transparent; font-weight: 700; font-size: 16px; outline: none; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.perks { list-style: none; margin: 4px 0 0; padding: 0; display: grid; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.perks li { display: flex; gap: 14px; padding: 15px 16px; font-size: 14px; color: var(--ink-3); line-height: 1.45; }
.perks li + li { border-top: 1px solid var(--line); }
.perks li > .i { margin-top: 2px; color: var(--ink); }
.perks b { display: block; color: var(--ink); font-weight: 620; font-size: 15px; }
.notify { display: grid; gap: 12px; padding: 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.notify p { margin: 0; color: var(--ink-3); font-size: 14.5px; } .notify p b { display: block; color: var(--ink); font-size: 16px; }
.notify-row { display: flex; gap: 8px; }
.details { display: grid; gap: 14px; padding-top: 34px; }
@media (min-width: 960px) { .details { grid-template-columns: 1fr 1fr; } }
.d-card { padding: 24px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.d-card h2 { font-size: 26px; margin: 0 0 14px; }
.models { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.models span { font: 500 13.5px var(--mono); padding: 7px 12px; border-radius: 11px; background: var(--sunken); }
.d-card a { text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }
.desc { color: var(--ink-2); font-size: 15.5px; line-height: 1.6; }
.sticky-buy { position: fixed; z-index: 30; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 18px;
  border-radius: 22px; background: color-mix(in oklab, var(--surface) 90%, transparent); border: 1px solid var(--line); box-shadow: var(--shadow-3);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); transform: translateY(140%); transition: transform .45s var(--spring); }
.sticky-buy.show { transform: none; }
.sticky-buy div { flex: 1; line-height: 1.25; }
.sticky-buy b { display: block; font-size: 17px; font-weight: 700; }
.sticky-buy span { font-size: 12.5px; color: var(--ok); font-weight: 600; }
@media (min-width: 960px) { .sticky-buy { display: none; } }
.pdp-page .ft { padding-bottom: 100px; }
@media (min-width: 960px) { .pdp-page .ft { padding-bottom: 24px; } }

/* footer */
.ft { padding: 64px var(--gut) calc(18px + env(safe-area-inset-bottom)); }
.ft-card { max-width: var(--wrap); margin: 0 auto; padding: 34px 24px 22px; border-radius: 32px; background: #0b0b0a; color: #f4f3ef; }
.ft-top { display: grid; gap: 30px; }
@media (min-width: 900px) { .ft-top { grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; } .ft-card { padding: 48px 44px 26px; } }
.ft-big { font-size: clamp(28px, 4vw, 42px); font-weight: 650; letter-spacing: -.04em; line-height: 1.05; margin: 0 0 12px; }
.ft-big em { color: #ff9a66; }
.ft-sub { color: rgba(244, 243, 239, .62); margin: 0 0 20px; max-width: 46ch; }
.ft-cta { display: flex; flex-wrap: wrap; gap: 8px; }
.ft-col { display: grid; gap: 10px; align-content: start; font-size: 15px; }
.ft-col h4 { font: 500 11.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(244, 243, 239, .45); margin-bottom: 4px; }
.ft-col a { color: rgba(244, 243, 239, .8); transition: color .2s; }
.ft-col a:hover { color: #fff; }
.ft-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 34px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; color: rgba(244, 243, 239, .45); }

/* bag drawer, search and dialogs */
dialog { padding: 0; border: 0; background: transparent; color: inherit; max-width: none; max-height: none; }
dialog::backdrop { background: var(--scrim); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: fade-in .3s var(--ease); }
dialog.closing::backdrop { animation: fade-out .25s var(--ease) forwards; }
.bag { position: fixed; inset: 0 0 0 auto; width: min(460px, 100vw); height: 100%; margin: 0; }
.bag-box { height: 100%; display: flex; flex-direction: column; background: var(--canvas); box-shadow: var(--shadow-3); animation: in-right .5s var(--spring) both; }
.bag.closing .bag-box { animation: out-right .3s var(--ease) forwards; }
.bag-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 22px 10px; }
.bag-head h2 { font-size: 28px; }
.bag-head h2 span { font: 500 13px var(--mono); color: var(--ink-3); letter-spacing: 0; margin-left: 6px; }
.x-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; display: grid; place-items: center; color: var(--ink-2); transition: background-color .2s, transform .15s; }
.x-btn:hover { background: var(--surface); } .x-btn:active { transform: scale(.94); }
.bag-body { flex: 1; overflow: auto; padding: 8px 22px 22px; overscroll-behavior: contain; }
.lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.line { display: grid; grid-template-columns: 76px 1fr; gap: 14px; padding: 12px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); animation: rise .4s var(--ease) both; }
.line-img { width: 76px; height: 76px; border-radius: 14px; overflow: hidden; background: var(--sunken); display: grid; place-items: center; color: var(--ink-3); }
.line-img img { width: 100%; height: 100%; object-fit: cover; }
.line-main { min-width: 0; display: grid; gap: 4px; align-content: start; }
.line-name { font-weight: 620; font-size: 15px; line-height: 1.3; }
.line-price { font-size: 14px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.line-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }
.line-row .qty { height: 38px; padding: 3px; }
.line-row .qty button { width: 32px; height: 32px; }
.line-row .qty .n { min-width: 26px; text-align: center; font-weight: 700; font-size: 14.5px; }
.line-total { font-weight: 700; font-variant-numeric: tabular-nums; }
.line-warn { font-size: 12.5px; font-weight: 600; color: var(--bad); }
.rm { border: 0; background: transparent; color: var(--ink-3); font-size: 13px; font-weight: 550; padding: 4px 0; text-decoration: underline; text-underline-offset: 3px; }
.rm:hover { color: var(--bad); }
.bag-foot { padding: 16px 22px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); display: grid; gap: 12px; }
.sum-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; color: var(--ink-3); }
.sum-row b { font-size: 22px; color: var(--ink); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.bag-note { font-size: 13px; color: var(--ink-3); text-align: center; margin: -2px 0 0; }
.bag-empty { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 60px 10px; }
.bag-empty h3 { font-size: 24px; } .bag-empty p { color: var(--ink-3); margin: 0 0 8px; }
@media (max-width: 559px) {
  .bag { inset: auto 0 0 0; width: 100vw; height: calc(100% - 28px - env(safe-area-inset-top)); }
  .bag-box { border-radius: 28px 28px 0 0; animation: in-up .55s var(--spring) both; }
  .bag.closing .bag-box { animation: out-down .3s var(--ease) forwards; }
  .bag-box::before { content: ""; width: 40px; height: 5px; border-radius: 999px; background: var(--line-2); margin: 10px auto 0; }
  .bag-head { padding-top: 10px; }
}

.find { width: min(720px, calc(100vw - 20px)); margin: 10px auto auto; }
@media (min-width: 760px) { .find { margin-top: 10vh; } }
.find-box { border-radius: 26px; background: var(--surface); box-shadow: var(--shadow-3); border: 1px solid var(--line); overflow: hidden; animation: pop .35s var(--spring) both; }
.find.closing .find-box { animation: pop-out .2s var(--ease) forwards; }
.find-in { display: flex; align-items: center; gap: 12px; padding: 0 12px 0 20px; border-bottom: 1px solid var(--line); }
.find-in .i { color: var(--ink-3); }
.find-in input { flex: 1; min-width: 0; height: 66px; border: 0; outline: 0; background: transparent; font-size: 18px; }
.find-list { max-height: min(60vh, 520px); overflow: auto; padding: 10px; }
.find-list .grp { font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-4); padding: 10px 10px 6px; }
.find-list a { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 16px; transition: background-color .15s; }
.find-list a.sel, .find-list a:hover { background: var(--surface-2); }
.find-list .th { width: 52px; height: 52px; flex: none; border-radius: 14px; overflow: hidden; display: grid; place-items: center; background: var(--sunken); color: var(--ink-3); }
.find-list .th img { width: 100%; height: 100%; object-fit: cover; }
.find-list .tx { flex: 1; min-width: 0; line-height: 1.3; }
.find-list .tx b { display: block; font-weight: 620; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.find-list .tx span { font-size: 13px; color: var(--ink-3); }
.find-list .pr { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.find-list .all { justify-content: center; font-weight: 600; color: var(--ink-2); }
.find-empty { padding: 30px 14px; text-align: center; color: var(--ink-3); }
.find-empty a { display: inline-flex; color: var(--ink); text-decoration: underline; padding: 0; }

/* checkout */
.co-loading { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 80px 0; color: var(--ink-3); }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--line-2); border-top-color: var(--ink); animation: spin .8s linear infinite; }
.checkout { padding: 6px 0 0; }
.co { display: grid; gap: 18px; }
@media (min-width: 1000px) { .co { grid-template-columns: minmax(0, 1fr) 420px; gap: 28px; align-items: start; } .co-sum { position: sticky; top: 100px; } }
.co-main { display: grid; gap: 14px; min-width: 0; }
.co-title { padding: 6px 0 4px; }
.co-title h1 { font-size: clamp(44px, 8vw, 76px); letter-spacing: -.055em; margin-top: 8px; }
.co-card { padding: 22px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); display: grid; gap: 14px; animation: rise .5s var(--ease) both; }
.co-card:nth-child(3) { animation-delay: .05s; } .co-card:nth-child(4) { animation-delay: .1s; } .co-card:nth-child(5) { animation-delay: .15s; }
.co-h { display: flex; align-items: center; gap: 12px; }
.co-h .n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--canvas); font-size: 14px; font-weight: 700; flex: none; }
.co-h h2 { font-size: 21px; letter-spacing: -.03em; }
.two { display: grid; gap: 12px; }
@media (min-width: 640px) { .two { grid-template-columns: 1fr 1fr; } }
.opts { display: grid; gap: 10px; }
@media (min-width: 640px) { .opts { grid-template-columns: 1fr 1fr; } }
.opt { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; border: 1.5px solid var(--line-2); background: var(--surface-2); text-align: left; transition: border-color .2s, background-color .2s, transform .12s; }
.opt:active { transform: scale(.985); }
.opt .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--sunken); flex: none; transition: background-color .2s, color .2s; }
.opt b { display: block; font-size: 16px; font-weight: 640; }
.opt span:not(.ic) { font-size: 13.5px; color: var(--ink-3); }
.opt.on { border-color: var(--ink); background: var(--surface); box-shadow: 0 0 0 3px var(--accent-soft); }
.opt.on .ic { background: var(--ink); color: var(--canvas); }
.opt:disabled { opacity: .5; cursor: not-allowed; }
.pin { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--sunken); font-size: 14px; }
.pin.on { background: var(--ok-soft); color: var(--ok); }
.pin .tx { display: flex; align-items: center; gap: 10px; font-weight: 550; }
.pin .tx span { display: block; font-weight: 450; font-size: 13px; color: var(--ink-3); }
.pin.on .tx span { color: inherit; opacity: .8; }
.pin button { flex: none; }
.pay-info { display: flex; gap: 14px; padding: 16px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); font-size: 14.5px; color: var(--ink-3); line-height: 1.5; }
.pay-info .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); flex: none; }
.pay-info.prepay .ic { background: var(--warn-soft); color: var(--warn); }
.pay-info b { display: block; color: var(--ink); font-size: 16px; font-weight: 640; }
.co-sum { padding: 22px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2); display: grid; gap: 14px; }
.co-sum h2 { font-size: 22px; }
.co-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.co-lines li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; }
.co-lines .th { position: relative; width: 56px; height: 56px; border-radius: 14px; background: var(--sunken); overflow: visible; flex: none; display: grid; place-items: center; color: var(--ink-3); }
.co-lines .th img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.co-lines .th b { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--ink); color: var(--canvas); font-size: 11.5px; display: grid; place-items: center; }
.co-lines .nm { flex: 1; min-width: 0; font-weight: 550; line-height: 1.3; }
.co-lines .nm span { display: block; font-size: 12.5px; color: var(--bad); font-weight: 600; }
.co-lines .am { font-weight: 650; font-variant-numeric: tabular-nums; }
.co-sum hr { border: 0; height: 1px; background: var(--line); margin: 0; }
.totals { display: grid; gap: 8px; font-size: 15px; }
.totals div { display: flex; justify-content: space-between; color: var(--ink-3); }
.totals div span:last-child { color: var(--ink); font-variant-numeric: tabular-nums; }
.totals .grand { font-size: 17px; font-weight: 650; color: var(--ink); padding-top: 6px; }
.totals .grand span:last-child { font-size: 28px; font-weight: 720; letter-spacing: -.04em; }
.totals .disc span:last-child { color: var(--ok); }
.promo { display: flex; gap: 8px; }
.promo .input { height: 46px; text-transform: uppercase; }
.promo-msg { font-size: 13px; margin-top: -6px; }
.promo-msg.ok { color: var(--ok); } .promo-msg.bad { color: var(--bad); }
.form-msg:empty { display: none; }
.form-msg { display: flex; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--bad-soft); color: var(--bad); font-size: 14px; line-height: 1.45; animation: rise .3s var(--ease) both; }
.place-note { font-size: 13px; color: var(--ink-3); text-align: center; margin: -4px 0 0; }
form.shake, .shake { animation: shake .42s ease both; }

/* thank you */
.done { max-width: 640px; margin: 20px auto 0; padding: 40px 24px; border-radius: 32px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2); text-align: center; position: relative; overflow: hidden; animation: pop .6s var(--spring) both; }
.done .check { position: relative; width: 92px; height: 92px; margin: 0 auto 18px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; animation: pop .6s var(--spring) .1s both; }
.done .check .i { width: 44px; height: 44px; stroke-width: 2.6; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .5s var(--ease) .45s forwards; }
.done .confetti { position: absolute; inset: 0; pointer-events: none; }
.done .confetti i { position: absolute; top: 120px; left: 50%; width: 8px; height: 8px; border-radius: 3px; opacity: 0; animation: burst 1.3s var(--ease) .35s both; }
.done h1 { font-size: clamp(40px, 8vw, 64px); letter-spacing: -.05em; margin: 10px 0; }
.done .meta { color: var(--ink-3); margin: 0 auto 24px; max-width: 42ch; }
.next { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 10px; text-align: left; }
.next li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); font-size: 14.5px; color: var(--ink-3); line-height: 1.45; }
.next li b { display: block; color: var(--ink); font-size: 15.5px; font-weight: 620; }
.next .n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--canvas); font-size: 13px; font-weight: 700; flex: none; }
.done .row-btns .btn { flex: 1 1 200px; }

/* tracking */
.track { display: grid; gap: 16px; padding-top: 16px; max-width: 760px; }
.track-form { display: grid; gap: 14px; padding: 22px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.track-form p { margin: 0; }
.track-card { padding: 24px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2); display: grid; gap: 18px; animation: rise .5s var(--ease) both; }
.track-card .top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.track-card h2 { font-size: 30px; letter-spacing: -.04em; }
.state { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 999px; font-size: 13.5px; font-weight: 650; background: var(--accent-soft); color: var(--accent-text); }
.state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.state.delivered { background: var(--ok-soft); color: var(--ok); } .state.cancelled { background: var(--sunken); color: var(--ink-3); }
.bar-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.bar-steps div { display: grid; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.bar-steps i { display: block; height: 6px; border-radius: 999px; background: var(--sunken); overflow: hidden; }
.bar-steps i::after { content: ""; display: block; height: 100%; width: 0; background: var(--ink); border-radius: inherit; transition: width .8s var(--spring); }
.bar-steps .done-s { color: var(--ink); } .bar-steps .done-s i::after { width: 100%; }
.tl { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tl li { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; }
.tl li span:last-child { font: 500 12.5px var(--mono); color: var(--ink-3); }

/* toasts */
.toasts { position: fixed; z-index: 90; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: grid; gap: 8px; width: min(440px, calc(100vw - 24px)); pointer-events: none; }
.pdp-page .toasts { bottom: calc(96px + env(safe-area-inset-bottom)); }
@media (min-width: 960px) { .toasts, .pdp-page .toasts { left: auto; right: 24px; bottom: 24px; transform: none; } }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; border-radius: 20px; background: var(--ink); color: var(--canvas); box-shadow: var(--shadow-3); animation: toast-in .45s var(--spring) both; font-size: 14.5px; }
.toast.out { animation: toast-out .3s var(--ease) forwards; }
.toast .th { width: 44px; height: 44px; border-radius: 13px; overflow: hidden; background: color-mix(in oklab, var(--canvas) 14%, transparent); flex: none; display: grid; place-items: center; }
.toast .th img { width: 100%; height: 100%; object-fit: cover; }
.toast .tx { flex: 1; min-width: 0; line-height: 1.3; }
.toast .tx b { display: block; font-weight: 620; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toast .tx span { font-size: 12.5px; opacity: .65; }
.toast .btn { --h: 38px; padding: 0 14px; font-size: 13.5px; background: var(--canvas); color: var(--ink); }
.toast.error { background: var(--bad); color: #fff; padding: 14px 16px; }

/* not found */
.nf { padding: 60px 0 20px; max-width: 760px; }
.nf h1 { font-size: clamp(44px, 9vw, 84px); letter-spacing: -.055em; margin: 14px 0; }

/* motion */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes pop-out { to { opacity: 0; transform: translateY(8px) scale(.97); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes in-right { from { transform: translateX(100%); } to { transform: none; } }
@keyframes out-right { to { transform: translateX(100%); } }
@keyframes in-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes out-down { to { transform: translateY(100%); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(18px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(10px) scale(.97); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bump { 40% { transform: scale(1.3); } }
@keyframes ring { 0% { box-shadow: 0 0 0 0 color-mix(in oklab, currentColor 45%, transparent); } 80%, 100% { box-shadow: 0 0 0 8px transparent; } }
@keyframes drift { from { transform: scale(1.04) translate(0, 0); } to { transform: scale(1.12) translate(-2%, -2%); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes burst { 0% { opacity: 1; transform: translate(-50%, 0) rotate(0); } 100% { opacity: 0; transform: translate(calc(-50% + var(--x)), var(--y)) rotate(var(--r)); } }
@keyframes shake { 15%, 55% { transform: translateX(-7px); } 35%, 75% { transform: translateX(7px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
/* phones: keep the header inside the screen */
@media (max-width: 479px) {
  .hdr-in { gap: 6px; padding: 0 6px 0 10px; height: 58px; }
  .logo { gap: 8px; font-size: 15.5px; min-width: 0; }
  .logo .mark { width: 34px; height: 34px; }
  .tools { gap: 2px; }
  .tool { padding: 0 10px; }
  .bag-btn { padding: 0 6px 0 12px; height: 44px; gap: 6px; }
  .bag-btn span { display: none; }
  .bag-n { min-width: 28px; height: 28px; }
}
.hero > *, .pdp > *, .co > *, .sec-head > * { min-width: 0; } .hero-search input { width: 100%; }
.filters { grid-template-columns: minmax(0, 1fr); } .filters > *, .f-chips { min-width: 0; } @media (max-width: 899px) { .f-chips { max-width: calc(100% + 2 * var(--gut)); } }

/* =====================================================================
   Polish pass: page transitions, intro motion, micro-interactions, phone fit
   ===================================================================== */

/* --- page-to-page transitions (Chrome, Edge, Safari) --- */
@view-transition { navigation: auto; }
.hdr { view-transition-name: site-header; }
::view-transition-old(root) { animation: vt-out .2s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .42s var(--ease) both; }
::view-transition-group(part-photo) { animation-duration: .55s; animation-timing-function: var(--spring); z-index: 50; }
::view-transition-image-pair(part-photo) { border-radius: 24px; overflow: clip; }
::view-transition-old(part-photo), ::view-transition-new(part-photo) { width: 100%; height: 100%; object-fit: cover; animation-duration: .3s; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* --- headings: the serif accent never splits across lines --- */
h1 em, h2 em, .ft-big em { white-space: nowrap; }

/* --- hero intro runs on its own, no waiting for scripts --- */
.intro > * { animation: intro .9s var(--ease) both; }
.intro > :nth-child(1) { animation-delay: .04s; } .intro > :nth-child(2) { animation-delay: .1s; } .intro > :nth-child(3) { animation-delay: .22s; }
.intro > :nth-child(4) { animation-delay: .3s; } .intro > :nth-child(5) { animation-delay: .36s; } .intro > :nth-child(6) { animation-delay: .42s; }
.hero h1 em { display: inline-block; animation: intro 1s var(--ease) .2s both; }
.hero-art .tile { animation: tile-in 1.2s var(--spring) both; }
.hero-art .t1 { animation-delay: .12s; } .hero-art .t2 { animation-delay: .24s; } .hero-art .t3 { animation-delay: .34s; }
.hero-badge { animation: intro .8s var(--ease) .75s both; }
@keyframes intro { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes tile-in { from { opacity: 0; clip-path: inset(14% 14% 14% 14% round 22px); transform: scale(.97); } to { opacity: 1; clip-path: inset(0 round 22px); transform: none; } }
.hero-hint { margin: 12px 4px 0; font-size: 13.5px; color: var(--ink-3); }
.hero-hint b { font: 500 12.5px var(--mono); color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; }

/* search button: words on wide screens, an arrow on phones */
.hero-search .btn .arrow { display: none; }
@media (max-width: 559px) {
  .hero-search { height: 60px; padding-left: 16px; }
  .hero-search .btn { width: 48px; padding: 0; }
  .hero-search .btn span { display: none; }
  .hero-search .btn .arrow { display: block; }
}
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* phones: chips scroll sideways instead of wrapping into rows */
@media (max-width: 759px) {
  .hero-chips, .f-brands { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: calc(-1 * var(--gut)); margin-right: calc(-1 * var(--gut));
    padding: 2px var(--gut); scroll-padding-inline: var(--gut); scroll-snap-type: x proximity; }
  .hero-chips::-webkit-scrollbar, .f-brands::-webkit-scrollbar { display: none; }
  .chip-link, .bchip, .fchip { flex: none; scroll-snap-align: start; }
  .f-brands .eyebrow { flex: none; align-self: center; }
}

/* --- header gets a little tighter once you scroll --- */
.hdr-in { transition: height .35s var(--ease), box-shadow .3s var(--ease), background-color .3s; }
.hdr.scrolled .hdr-in { height: 56px; background: color-mix(in oklab, var(--surface) 94%, transparent); }
@media (max-width: 479px) { .hdr.scrolled .hdr-in { height: 52px; } }
.logo .mark .i { transition: transform .5s var(--spring); }
.logo:hover .mark .i { transform: rotate(-18deg); }
.bag-btn { transition: transform .2s var(--spring), box-shadow .25s; }
.bag-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-2); }
.bag-btn:active { transform: scale(.97); }

/* --- images fade in as they arrive (only once scripts run, so nothing hides without them) --- */
html:not(.no-js) .pc-img img:not(.loaded), html:not(.no-js) .g-main img:not(#pdp-photo):not(.loaded) { opacity: 0; }
.pc-img img, .g-main img { transition: opacity .6s var(--ease), transform .7s var(--ease); }

/* --- product cards --- */
.pc:focus-within { box-shadow: var(--shadow-2), 0 0 0 3px var(--accent-soft); }
.add .i { transition: transform .35s var(--spring); }
.add:hover .i { transform: rotate(90deg); }
.add.added .i { transform: none; }
.pc-ic .i, .ph-empty .i { width: 56px; height: 56px; stroke-width: 1.25; }
.pc-img .pc-ic { opacity: .5; transition: transform .6s var(--spring), opacity .3s; }
.pc:hover .pc-img .pc-ic { transform: scale(1.08) rotate(-4deg); opacity: .65; }

/* the part flies into the bag */
.fly { position: fixed; z-index: 120; left: 0; top: 0; width: 46px; height: 46px; pointer-events: none; }
.fly-in { width: 100%; height: 100%; border-radius: 14px; overflow: hidden; background: var(--accent); box-shadow: var(--shadow-3); border: 2px solid var(--surface); }
.fly-in img { width: 100%; height: 100%; object-fit: cover; }

/* --- part page --- */
.g-main.empty { aspect-ratio: 4 / 3; }
.ph-empty { flex: 1; display: grid; place-content: center; justify-items: center; gap: 8px; color: var(--ink-2); text-align: center; padding: 20px; }
.ph-empty .i { opacity: .55; margin-bottom: 6px; }
.ph-empty b { font-size: 17px; font-weight: 620; }
.ph-empty a { font-size: 14px; color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; }
.buy > * { animation: intro .7s var(--ease) both; }
.buy > :nth-child(2) { animation-delay: .04s; } .buy > :nth-child(3) { animation-delay: .08s; } .buy > :nth-child(4) { animation-delay: .12s; }
.buy > :nth-child(5) { animation-delay: .16s; } .buy > :nth-child(6) { animation-delay: .2s; } .buy > :nth-child(n+7) { animation-delay: .24s; }
.sticky-buy { opacity: 0; visibility: hidden; transition: transform .45s var(--spring), opacity .3s var(--ease), visibility 0s .45s; }
.sticky-buy.show { opacity: 1; visibility: visible; transition: transform .45s var(--spring), opacity .3s var(--ease), visibility 0s; }
.g-thumbs button { transition: opacity .2s, border-color .2s, transform .2s var(--spring); }
.g-thumbs button:active { transform: scale(.94); }
.models span { transition: background-color .2s, color .2s; }
.models span:hover { background: var(--ink); color: var(--canvas); }

/* --- bag drawer --- */
.lines .line { animation: none; }
.lines.enter .line { animation: rise .45s var(--ease) both; }
.lines.enter .line:nth-child(2) { animation-delay: .05s; } .lines.enter .line:nth-child(3) { animation-delay: .1s; } .lines.enter .line:nth-child(n+4) { animation-delay: .14s; }
.line-row .qty .n.bump, .tick { animation: bump .4s var(--spring); display: inline-block; }
.bag-empty .empty-ic { animation: float 3.2s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-6px); } }

/* --- checkout: delivery fields open and close smoothly --- */
.collapse { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .45s var(--spring), opacity .3s var(--ease), margin .45s var(--spring); }
.collapse.closed { grid-template-rows: 0fr; opacity: 0; margin-top: -14px; pointer-events: none; }
.collapse > .clip { min-height: 0; overflow: hidden; display: grid; gap: 14px; padding: 4px; margin: -4px; }
.pickup-note:not([hidden]) { animation: rise .4s var(--ease) both; }
.pay-info { animation: rise .4s var(--ease) both; }
.opt .ic { transition: background-color .25s, color .25s, transform .35s var(--spring); }
.opt.on .ic { transform: scale(1.06); }
.totals .grand span:last-child { display: inline-block; }
#place .i { transition: transform .25s var(--ease); }
#place:hover .i { transform: translateX(3px); }

/* --- search results ripple in --- */
.find-list > a, .find-list > .grp { animation: rise .35s var(--ease) both; }
.find-list > :nth-child(2) { animation-delay: .03s; } .find-list > :nth-child(3) { animation-delay: .06s; } .find-list > :nth-child(4) { animation-delay: .09s; }
.find-list > :nth-child(5) { animation-delay: .12s; } .find-list > :nth-child(6) { animation-delay: .15s; } .find-list > :nth-child(n+7) { animation-delay: .18s; }

/* --- tracking steps fill in --- */
.bar-steps .done-s i::after { width: 100%; transform-origin: left; animation: grow-x .9s var(--spring) both; }
.bar-steps .done-s:nth-child(2) i::after { animation-delay: .12s; } .bar-steps .done-s:nth-child(3) i::after { animation-delay: .24s; } .bar-steps .done-s:nth-child(4) i::after { animation-delay: .36s; }
@keyframes grow-x { from { transform: scaleX(0); } to { transform: none; } }

/* --- links and buttons --- */
.btn.light:hover { background: #fff; }
.btn.outline-light:hover { background: rgba(255, 255, 255, .06); }
.ft-col a, .crumbs a, .why-item a, .d-card a { background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px; transition: background-size .35s var(--ease), color .2s; }
.ft-col a:hover, .crumbs a:hover { background-size: 100% 1px; }
.ft-col a { justify-self: start; padding-bottom: 1px; }
.marquee:hover .marquee-in { animation-play-state: paused; }
.chip-link .i { transition: transform .35s var(--spring); }
.chip-link:hover .i { transform: scale(1.15) rotate(-8deg); }
.cat:active, .pc:active { transform: scale(.985); }

/* --- phones: tighter sections --- */
@media (max-width: 559px) {
  .sec { padding-top: 40px; }
  .sec-head { margin-bottom: 16px; }
  .cat { min-height: 132px; padding: 16px; }
  .cat-ic { top: 16px; left: 16px; }
  .cat-ic .i { width: 28px; height: 28px; }
  .cat b { font-size: 16px; }
  .cat-go { width: 30px; height: 30px; top: 12px; right: 12px; }
  .steps li { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; padding: 18px; }
  .steps .n { grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); }
  .steps b { margin: 4px 0 4px; font-size: 17px; }
  .steps p { font-size: 14.5px; }
  .why-item { grid-template-columns: auto 1fr; column-gap: 14px; padding: 18px; }
  .why-ic { grid-row: span 2; margin: 0; }
  .marquee-in { font-size: 17px; gap: 20px; }
  .help-band { padding: 28px 22px; }
  .help-band .btn { width: 100%; }
  .page-title h1 { font-size: 40px; }
}

/* --- no-prices mode: the stock label sits where the price was --- */
.pc-row .pc-stock { margin-top: 0; }
.sticky-buy div { min-width: 0; }
.sticky-buy b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quote-note { margin: 4px 0 14px; font-size: 14px; line-height: 1.5; color: var(--ink-3); }
/* the "share your location" box: on phones the button drops under the text instead of squeezing it */
@media (max-width: 479px) {
  .pin { flex-direction: column; align-items: stretch; }
  .pin button { width: 100%; }
}

/* --- phone hero: a slim row of three photos and a real WhatsApp button, instead of a tall collage --- */
.hero-badge { color: inherit; text-decoration: none; }
.hero-badge .arrow { display: none; }
@media (max-width: 759px) {
  .hero { gap: 18px; }
  .hero-art { grid-template-columns: repeat(3, 1fr); grid-template-rows: auto; height: auto; gap: 8px; }
  .hero-art .tile { aspect-ratio: 1; border-radius: 18px; }
  .hero-art .t1 { grid-row: auto; }
  .hero-badge { position: static; grid-column: 1 / -1; padding: 14px 16px; border-radius: 18px; gap: 12px; }
  .hero-badge div { flex: 1; }
  .hero-badge b { font-size: 15px; }
  .hero-badge .arrow { display: block; color: var(--ink-3); transition: transform .25s var(--ease); }
  .hero-badge:active { transform: scale(.98); }
  .marquee { margin-top: 18px; padding: 12px 0; }
}

/* shelves on the home page: jump links land below the floating header */
.shelf { scroll-margin-top: 96px; }
.shelf + .shelf { margin-top: 8px; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* --- home: a short header, then straight into the parts --- */
.home .hero { display: block; min-height: 0; padding: 22px 0 6px; }
.home .hero h1 { font-size: clamp(36px, 6vw, 64px); margin: 10px 0 12px; }
.home .hero .lede { margin-bottom: 18px; }
.home .hero-search { max-width: 720px; }
.home .hero-chips { margin-top: 16px; }
.chip-link .n { margin-left: 2px; font-size: 12px; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.home .shelf:first-of-type { padding-top: 12px; }
.home .hero h1 { margin-bottom: 16px; }
.shelf.sec { padding-top: 28px; padding-bottom: 8px; }
.shelf .sec-head { margin-bottom: 14px; }
.shelf .sec-head h2 { font-size: clamp(26px, 3.2vw, 38px); }

.photo-credit { margin: 10px 4px 0; font-size: 12px; line-height: 1.4; color: var(--ink-3); }
.photo-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* =====================================================================================================
   Premium layer: an apple.com-style glass header, a sticky shelf bar with a gliding highlight,
   framed product cards and a floating bag button on phones. Overrides the earlier header and card rules.
   ===================================================================================================== */
:root { --hdr-h: 52px; --ease-out: cubic-bezier(.22, 1, .36, 1); --tile: #f4f4f2; }
@media (prefers-color-scheme: dark) { :root { --tile: #1d1d1c; } }
html { scroll-padding-top: calc(var(--hdr-h) + 64px); }
a, button { touch-action: manipulation; }

/* --- header: one thin sheet of frosted glass across the top --- */
.hdr { padding: env(safe-area-inset-top) 0 0; background: color-mix(in oklab, var(--canvas) 74%, transparent);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent; transition: border-color .35s var(--ease), background-color .35s var(--ease); }
.hdr.scrolled { border-bottom-color: var(--line); background: color-mix(in oklab, var(--canvas) 70%, transparent); }
.hdr-in, .hdr.scrolled .hdr-in { height: var(--hdr-h); padding: 0 var(--gut); gap: 4px; border: 0; border-radius: 0; background: none;
  box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.logo { font-size: 15.5px; gap: 9px; }
.logo .mark { width: 30px; height: 30px; border-radius: 9px; }
.logo .mark .i { width: 16px; height: 16px; }
.logo .mark::after { width: 9px; height: 9px; right: -2px; bottom: -2px; border-width: 2px; }
.links a { padding: 6px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 500; color: var(--ink-3); background: none; transition: color .25s; }
.links a:hover { background: none; color: var(--ink); }
.tool { height: 36px; padding: 0 10px; border-radius: 999px; font-size: 13.5px; font-weight: 500; transition: background-color .25s, color .25s; }
.tool:hover { background: var(--line); }
.tool .i { width: 18px; height: 18px; }
.bag-btn, .bag-btn:hover { position: relative; height: 36px; padding: 0 10px; gap: 6px; border-radius: 999px; background: transparent; color: var(--ink);
  font-size: 13.5px; font-weight: 550; box-shadow: none; transform: none; }
.bag-btn:hover { background: var(--line); }
.bag-btn:active { transform: scale(.94); }
.bag-btn span { display: none; }
.hdr .bag-n { position: absolute; top: 1px; left: 21px; min-width: 17px; height: 17px; padding: 0 5px; border-radius: 999px; font: 650 10.5px/17px var(--sans);
  background: var(--accent); color: #fff; transform: scale(0); transition: transform .4s var(--spring); }
.hdr .bag-n.has { transform: scale(1); }
@media (min-width: 700px) { .bag-btn span { display: inline; } .hdr .bag-n { left: 22px; } }

/* --- home: compact title, then straight into the shelves --- */
.home .hero { padding: 26px 0 2px; }
.home .hero h1 { font-size: clamp(34px, 7.4vw, 64px); letter-spacing: -.05em; margin: 8px 0 16px; }
.hero-search input { font-size: 16px; } /* 16px stops phones zooming in on focus */

/* --- shelf bar: sticks under the header; a dark pill glides to the shelf you are looking at --- */
.shelfbar { position: sticky; top: calc(var(--hdr-h) + env(safe-area-inset-top)); z-index: 35; margin: 10px calc(-1 * var(--gut)) 0; padding: 8px 0;
  background: color-mix(in oklab, var(--canvas) 74%, transparent); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  transition: box-shadow .3s var(--ease); }
.shelfbar.stuck { box-shadow: 0 1px 0 var(--line); }
.shelfbar-in { position: relative; display: flex; align-items: center; gap: 4px; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut);
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.shelfbar-in::-webkit-scrollbar { display: none; }
.sb-pill { position: relative; z-index: 1; flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px;
  border-radius: 999px; font-size: 14px; font-weight: 560; line-height: 1; white-space: nowrap; color: var(--ink-2); transition: color .35s var(--ease); }
.sb-pill .i { width: 15px; height: 15px; }
.sb-pill .n { font-size: 11.5px; font-weight: 600; color: var(--ink-4); font-variant-numeric: tabular-nums; transition: color .35s var(--ease); }
.sb-pill:not(.on):hover { color: var(--ink); }
.sb-pill:active { transform: scale(.96); }
.sb-pill.on { color: var(--canvas); }
.sb-pill.on .n { color: color-mix(in oklab, var(--canvas) 62%, transparent); }
.sb-glider { position: absolute; z-index: 0; top: 50%; left: 0; width: 0; height: 36px; margin-top: -18px; border-radius: 999px; background: var(--ink);
  box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .45); transition: transform .55s var(--spring), width .55s var(--spring); }
.shelfbar-in:not(.ready) .sb-glider { transition: none; }
html.no-js .sb-pill.on { background: var(--ink); }
html.no-js .sb-glider { display: none; }

/* shelf headings: name on the left, count on the right */
.shelf { scroll-margin-top: 0; } /* the page's scroll padding already clears the header and bar */
.shelf.sec { padding-top: 30px; }
.shelf-head { align-items: baseline; margin-bottom: 14px; }
.shelf-head h2 { font-size: clamp(24px, 3vw, 34px); margin: 0; }
.shelf-head .count { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* --- product cards: the photo sits in a rounded frame inside the card --- */
.grid { gap: 10px; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1040px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.pc { padding: 6px; border: 0; border-radius: 22px; background: var(--surface); box-shadow: 0 1px 2px rgba(20, 18, 10, .05), 0 0 0 1px var(--line);
  transition: transform .5s var(--spring), box-shadow .5s var(--spring); }
.pc:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.pc:active { transform: scale(.98); transition-duration: .15s; }
.pc-img { border-radius: 17px; aspect-ratio: 4 / 3; }
.pc-img:has(img) { background: var(--tile); }
.pc:hover .pc-img img { transform: scale(1.035); }
.pc-body { gap: 2px; padding: 10px 6px 4px 8px; }
.pc-brand { font: 600 11px var(--sans); letter-spacing: .01em; text-transform: none; color: var(--ink-3); }
.pc-name { font-size: 14.5px; font-weight: 600; letter-spacing: -.012em; line-height: 1.3; min-height: 2.6em; }
.pc-fits { font-size: 12px; }
.pc-row { padding-top: 8px; }
.pc-stock { font-size: 12px; font-weight: 500; }
.add { width: 34px; height: 34px; border-radius: 999px; background: var(--sunken); color: var(--ink);
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .35s var(--spring); }
.add:hover { transform: none; background: var(--ink); color: var(--canvas); }
.add:active { transform: scale(.86); }
.add .i { width: 17px; height: 17px; }
.add.added { background: var(--ok); color: #fff; }
.pc.out .pc-img img { filter: grayscale(.7); opacity: .65; }
@media (max-width: 420px) {
  .pc { border-radius: 20px; padding: 5px; }
  .pc-img { border-radius: 15px; }
  .pc-body { padding: 9px 4px 3px 6px; }
  .pc-name { font-size: 14px; }
  .add { width: 32px; height: 32px; border-radius: 999px; }
}
/* cards ease up into place as they scroll into view (a few at a time); skipped for reduced motion */
html.cards-anim .pc:not(.in) { opacity: 0; transform: translateY(16px) scale(.985); }
html.cards-anim .pc.in:not(.now) { animation: card-in .75s var(--ease-out) var(--d, 0ms) both; }
@keyframes card-in { from { opacity: 0; transform: translateY(16px) scale(.985); } }

/* --- floating bag button on phones, once something is in the bag --- */
.bag-dock { position: fixed; z-index: 45; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 16px 0 18px; border: 0; border-radius: 999px; background: var(--ink); color: var(--canvas); font-size: 15px; font-weight: 600;
  box-shadow: var(--shadow-3); opacity: 0; pointer-events: none; transform: translate(-50%, 150%);
  transition: transform .6s var(--spring), opacity .3s var(--ease); }
.bag-dock b { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; }
.bag-dock .i.sm { opacity: .55; }
body.has-bag .bag-dock { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
body.has-bag .bag-dock:active { transform: translate(-50%, 0) scale(.96); }
body.pdp-page .bag-dock, body.co-page .bag-dock { display: none; }
@media (min-width: 900px) { .bag-dock { display: none; } }
@media (max-width: 899px) { body.has-bag:not(.pdp-page):not(.co-page) .ft { margin-bottom: 76px; } }

/* --- touch feedback --- */
.btn:active { transform: scale(.97); }
@media (prefers-reduced-motion: reduce) {
  .sb-glider, .bag-dock, .pc, .add { transition: none; }
}

/* on phones the "added" message sits above the floating bag button */
@media (max-width: 899px) { body.has-bag:not(.pdp-page):not(.co-page) .toasts { bottom: calc(80px + env(safe-area-inset-bottom)); } }
/* photos sit on light frames; soften them a touch in dark mode */
@media (prefers-color-scheme: dark) { .pc-img img, .g-main img { filter: brightness(.9) contrast(1.02); } .pc.out .pc-img img { filter: grayscale(.7) brightness(.8); } }

/* part descriptions: short headed blocks with bullet lists */
.desc-block + .desc-block { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.desc-block h3 { margin: 0 0 6px; font-size: 13px; font-weight: 650; letter-spacing: .02em; text-transform: uppercase; color: var(--ink-3); }
.desc-block p { margin: 0; }
.desc-block p + p { margin-top: 8px; }
.desc-block ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.desc-block li { position: relative; padding-left: 20px; }
.desc-block li::before { content: ""; position: absolute; left: 3px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.ts-box:empty { display: none; }

/* The card's add button stays a small circle, but on touch screens it takes a 44px fingertip tap. */
@media (pointer: coarse) { .pc .add::after { content: ''; position: absolute; inset: -6px; border-radius: 999px; } }

/* Call to order, on every page */
.callbar { text-align: center; font-size: 13px; padding: 7px var(--gut); background: var(--ink); color: var(--surface-2, #fff); }
.callbar a { display: inline-flex; align-items: center; gap: 6px; color: inherit; font-weight: 640; text-decoration: underline; text-underline-offset: 3px; }
.callbar svg { width: 15px; height: 15px; }
@media (min-width: 640px) { .opts { grid-template-columns: 1fr 1fr 1fr; } }
.sticky-buy .btn.ghost { padding-inline: 14px; }
