/* Storefront styles. Brand colors come from Settings and arrive as --brand / --button on :root. */
:root {
  --brand: #1F3FD1;
  --brand-ink: #ffffff;
  --button: #FFC738;
  --button-ink: #15192A;
  --ink: #15192A;
  --ink-2: #4A5163;
  --ink-3: #6E7487;
  --line: #E2E5EC;
  --line-2: #CDD1DB;
  --surface: #F4F5F8;
  --paper: #ffffff;
  --good: #13784A;
  --warn: #B24A00;
  --bad: #B42318;
  --star: #E8A100;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(21, 25, 42, .06), 0 8px 24px rgba(21, 25, 42, .08);
  --font: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.5; color: var(--ink); background: var(--paper); font-feature-settings: "tnum" 0; }
img { max-width: 100%; display: block; }
a { color: inherit; }
a:hover { color: var(--brand); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem); font-weight: 650; }
h2 { font-size: 1.375rem; font-weight: 650; }
h3 { font-size: 1.0625rem; font-weight: 600; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, white); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--ink-3); }
.small { font-size: .875rem; }
.price, .num { font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }

/* Test mode strip */
.testbar { background: #FFF4D6; color: #6B4A00; font-size: .8125rem; text-align: center; padding: 6px 12px; border-bottom: 1px solid #F1DE9F; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header .bar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 1.25rem; letter-spacing: -.02em; }
.logo img { max-height: 40px; width: auto; }
.search { position: relative; max-width: 640px; width: 100%; justify-self: center; }
.search input { width: 100%; height: 46px; border: 1.5px solid var(--line-2); border-radius: 999px; padding: 0 52px 0 20px; background: var(--surface); transition: border-color .15s, background .15s; }
.search input:focus { outline: none; border-color: var(--brand); background: var(--paper); }
.search button { position: absolute; right: 5px; top: 5px; height: 36px; width: 42px; border: 0; border-radius: 999px; background: var(--brand); color: var(--brand-ink); cursor: pointer; display: grid; place-items: center; }
.search-results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px; display: none; max-height: 70vh; overflow: auto; }
.search-results.open { display: block; }
.search-results a { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding: 8px; border-radius: var(--radius-sm); text-decoration: none; }
.search-results a:hover, .search-results a.active { background: var(--surface); color: var(--ink); }
.search-results img, .search-results .ph { width: 48px; height: 48px; object-fit: contain; background: var(--surface); border-radius: 6px; }
.search-results .t { font-weight: 550; font-size: .9375rem; }
.search-results .s { font-size: .8125rem; color: var(--ink-3); }
.search-results .empty { padding: 14px; color: var(--ink-3); font-size: .9375rem; }
.search-results .all { display: block; text-align: center; padding: 10px; font-weight: 600; color: var(--brand); }
.head-actions { display: flex; align-items: center; gap: 6px; }
.head-link { display: flex; flex-direction: column; text-decoration: none; padding: 6px 10px; border-radius: 8px; font-size: .8125rem; line-height: 1.2; color: var(--ink-2); }
.head-link b { font-size: .9375rem; color: var(--ink); font-weight: 600; }
.head-link:hover { background: var(--surface); color: var(--ink-2); }
.cart-btn { position: relative; display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 999px; border: 0; background: var(--ink); color: #fff; cursor: pointer; font-weight: 600; text-decoration: none; }
.cart-btn:hover { color: #fff; background: #000; }
.cart-btn .count { min-width: 22px; height: 22px; border-radius: 999px; background: var(--button); color: var(--button-ink); font-size: .8125rem; display: grid; place-items: center; padding: 0 6px; font-variant-numeric: tabular-nums; }
.cart-btn.bump .count { animation: bump .45s ease; }
@keyframes bump { 30% { transform: scale(1.35); } 100% { transform: scale(1); } }
.subnav { border-top: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.subnav a { padding: 10px 12px; font-size: .9375rem; text-decoration: none; white-space: nowrap; color: var(--ink-2); border-bottom: 2px solid transparent; }
.subnav a:hover, .subnav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }

@media (max-width: 760px) {
  .site-header .bar { grid-template-columns: auto auto; height: auto; padding-top: 10px; padding-bottom: 10px; gap: 10px 12px; }
  .search { grid-column: 1 / -1; grid-row: 2; max-width: none; }
  .head-actions { justify-self: end; }
  .head-link.hide-sm { display: none; }
}

/* ---------- Buttons & fields ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 600; font-size: 1rem; cursor: pointer; text-decoration: none; transition: filter .15s, background .15s, transform .05s; }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-busy { opacity: .6; cursor: not-allowed; }
.btn-cart { background: var(--button); color: var(--button-ink); }
.btn-cart:hover { filter: brightness(.95); color: var(--button-ink); }
.btn-buy { background: var(--brand); color: var(--brand-ink); }
.btn-buy:hover { filter: brightness(1.1); color: var(--brand-ink); }
.btn-ghost { background: var(--paper); border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-block { width: 100%; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: .875rem; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--brand); cursor: pointer; font-size: .875rem; text-decoration: underline; text-underline-offset: 2px; }
.linkbtn:hover { text-decoration-thickness: 2px; }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: .875rem; font-weight: 600; margin-bottom: 6px; }
.input, .field input, .field select, .field textarea { width: 100%; min-height: 46px; padding: 10px 14px; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); background: var(--paper); }
.field textarea { min-height: 120px; resize: vertical; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: .9375rem; }
.alert-bad { background: #FDECEA; color: var(--bad); border: 1px solid #F5C2BC; }
.alert-good { background: #E7F5EE; color: var(--good); border: 1px solid #B7E0CB; }
.alert-info { background: var(--surface); border: 1px solid var(--line); }
.flash { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; box-shadow: var(--shadow); font-size: .9375rem; max-width: calc(100vw - 32px); }

/* ---------- Stars ---------- */
.stars { --pct: 0%; display: inline-block; position: relative; font-size: 1rem; line-height: 1; letter-spacing: 1px; color: var(--line-2); }
.stars::before { content: "★★★★★"; }
.stars::after { content: "★★★★★"; position: absolute; left: 0; top: 0; width: var(--pct); overflow: hidden; color: var(--star); }
.rating { display: inline-flex; align-items: center; gap: 6px; font-size: .875rem; color: var(--ink-2); text-decoration: none; }
.rating .n { color: var(--brand); }

/* ---------- Product grid ---------- */
.section { padding: 40px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-head h2 { margin: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 28px 20px; }
.card { position: relative; display: flex; flex-direction: column; text-decoration: none; }
.card .img { aspect-ratio: 1; background: var(--surface); border-radius: var(--radius); overflow: hidden; display: grid; place-items: center; margin-bottom: 12px; }
.card .img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; padding: 8%; transition: transform .3s ease; }
.card:hover .img img { transform: scale(1.04); }
.card .t { font-weight: 550; line-height: 1.3; margin-bottom: 4px; }
.card:hover .t { color: var(--brand); }
.card .s { font-size: .875rem; color: var(--ink-3); margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.card .p { font-size: 1.125rem; font-weight: 650; margin-top: 4px; }
.card .p s { font-size: .875rem; font-weight: 400; color: var(--ink-3); margin-left: 6px; }
.card .tag { position: absolute; top: 10px; left: 10px; background: var(--paper); border-radius: 999px; padding: 3px 10px; font-size: .75rem; font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.card .tag.out { color: var(--ink-3); }
.card .tag.sale { color: var(--bad); }
.ph { background: linear-gradient(135deg, var(--surface), #e9ebf0); width: 100%; height: 100%; }

@media (max-width: 600px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .card .img { border-radius: 8px; margin-bottom: 8px; }
  .card .t { font-size: .9375rem; }
  .card .s { display: none; }
  .card .p { font-size: 1.0625rem; }
  .card .tag { top: 6px; left: 6px; font-size: .6875rem; padding: 2px 8px; }
  .section { padding: 28px 0; }
  .section-head { flex-wrap: wrap; }
  .wrap { padding: 0 14px; }
}

/* ---------- Home hero: a real product you can buy from the first screen ---------- */
.hero { background: var(--brand); color: var(--brand-ink); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; min-height: 440px; padding-top: 40px; padding-bottom: 40px; }
.hero h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.5rem); font-weight: 700; letter-spacing: -.025em; line-height: 1.02; margin-bottom: 16px; }
.hero .sub { font-size: 1.125rem; opacity: .85; margin-bottom: 28px; max-width: 34ch; }
.hero-buy { background: var(--paper); color: var(--ink); border-radius: 16px; padding: 18px; display: grid; grid-template-columns: 140px 1fr; gap: 18px; align-items: center; max-width: 520px; box-shadow: 0 20px 40px rgba(0,0,0,.18); }
.hero-buy .img { aspect-ratio: 1; background: var(--surface); border-radius: 10px; display: grid; place-items: center; overflow: hidden; }
.hero-buy .img img { object-fit: contain; width: 100%; height: 100%; padding: 8%; mix-blend-mode: multiply; }
.hero-buy h3 { margin-bottom: 4px; }
.hero-buy .p { font-size: 1.25rem; font-weight: 700; margin: 6px 0 12px; }
.hero-art { position: relative; aspect-ratio: 1; max-height: 420px; justify-self: end; width: 100%; }
.hero-art .disc { position: absolute; inset: 6%; border-radius: 50%; background: color-mix(in srgb, var(--brand-ink) 10%, transparent); }
.hero-art img { position: relative; width: 100%; height: 100%; object-fit: contain; border-radius: 28px; filter: drop-shadow(0 30px 40px rgba(0,0,0,.25)); }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; }
  .hero-art { display: none; }
  .hero-buy { grid-template-columns: 96px 1fr; }
}

.promises { border-bottom: 1px solid var(--line); }
.promises ul { list-style: none; margin: 0; padding: 18px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.promises li { display: flex; gap: 12px; align-items: center; font-size: .9375rem; color: var(--ink-2); }
.promises svg { flex: none; color: var(--brand); }
.promises b { color: var(--ink); display: block; }
@media (max-width: 700px) { .promises ul { grid-template-columns: 1fr; gap: 10px; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line-2); text-decoration: none; font-size: .9375rem; font-weight: 500; }
.chip:hover, .chip[aria-current="page"] { border-color: var(--ink); color: var(--ink); }
.chip[aria-current="page"] { background: var(--ink); color: #fff; }

/* ---------- Product page ---------- */
.crumbs { font-size: .875rem; color: var(--ink-3); padding: 16px 0 6px; }
.crumbs a { color: var(--ink-3); }
.pdp { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) 320px; gap: 36px; align-items: start; padding: 10px 0 40px; }
.gallery { display: grid; grid-template-columns: 64px 1fr; gap: 12px; position: sticky; top: 140px; }
.thumbs { display: flex; flex-direction: column; gap: 8px; }
.thumbs button { width: 64px; height: 64px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--surface); padding: 4px; cursor: pointer; }
.thumbs button[aria-current="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.stage { aspect-ratio: 1; background: var(--surface); border-radius: 14px; overflow: hidden; position: relative; cursor: zoom-in; }
.track { width: 100%; height: 100%; }
.slide { display: none; width: 100%; height: 100%; }
.slide.on { display: block; }
.stage img { width: 100%; height: 100%; object-fit: contain; padding: 6%; mix-blend-mode: multiply; transition: transform .2s ease; transform-origin: var(--zx, 50%) var(--zy, 50%); }
.stage.zoom .slide.on img { transform: scale(2); }
.dots { display: none; }
.info h1 { margin-bottom: 6px; }
.info .sub { color: var(--ink-2); font-size: 1.0625rem; margin-bottom: 10px; }
.info .rating { margin-bottom: 14px; }
.info hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.big-price { font-size: 2rem; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.big-price sup { font-size: .5em; vertical-align: .9em; margin-right: 1px; font-weight: 600; }
.was { color: var(--ink-3); font-size: .9375rem; margin-top: 6px; }
.was .off { color: var(--bad); font-weight: 600; margin-left: 4px; }
.opt { margin: 18px 0; }
.opt-label { font-size: .9375rem; margin-bottom: 8px; }
.opt-label b { font-weight: 600; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatches button { min-width: 48px; min-height: 42px; padding: 6px 14px; border-radius: 8px; border: 1.5px solid var(--line-2); background: var(--paper); cursor: pointer; font-weight: 500; }
.swatches button[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.swatches button.oos { color: var(--ink-3); border-style: dashed; background: repeating-linear-gradient(135deg, transparent 0 6px, var(--surface) 6px 7px); }
.bullets { padding-left: 18px; margin: 0; }
.bullets li { margin-bottom: 6px; }

.buybox { border: 1px solid var(--line-2); border-radius: 14px; padding: 20px; position: sticky; top: 140px; }
.buybox .big-price { font-size: 1.75rem; margin-bottom: 12px; }
.promise { font-size: .9375rem; margin-bottom: 6px; }
.promise b { font-weight: 650; }
.countdown { color: var(--good); font-weight: 600; }
.stock { font-size: 1.0625rem; font-weight: 650; margin: 14px 0 12px; }
.stock.in { color: var(--good); }
.stock.low { color: var(--warn); }
.stock.out { color: var(--bad); }
.qty { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.qty select { min-height: 40px; border-radius: 8px; border: 1.5px solid var(--line-2); background: var(--surface); padding: 0 12px; font-weight: 600; }
.buybox .btn { width: 100%; margin-bottom: 10px; }
.facts { margin: 12px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: .8125rem; }
.facts dt { color: var(--ink-3); }
.facts dd { margin: 0; }
.secure { display: flex; align-items: center; gap: 6px; font-size: .8125rem; color: var(--ink-3); margin-top: 6px; }

@media (max-width: 1100px) {
  .pdp { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .buybox { grid-column: 2; position: static; }
  .info { grid-column: 2; grid-row: 1; }
  .gallery { grid-row: 1 / span 2; }
}
@media (max-width: 760px) {
  .crumbs { display: none; }
  .pdp { grid-template-columns: 1fr; gap: 16px; padding-top: 0; }
  .gallery, .info, .buybox { grid-column: 1; grid-row: auto; position: static; }
  .gallery { grid-template-columns: 1fr; margin: 0 -14px; }
  .thumbs { display: none; }
  .stage { border-radius: 0; cursor: default; aspect-ratio: 1; }
  .track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .track::-webkit-scrollbar { display: none; }
  .slide { display: block; flex: 0 0 100%; scroll-snap-align: center; }
  .dots { display: flex; justify-content: center; gap: 6px; position: absolute; bottom: 10px; left: 0; right: 0; }
  .dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); }
  .dots i.on { background: var(--ink); width: 18px; border-radius: 99px; }
  .info .sub { font-size: 1rem; }
  .info .mini-specs { display: none; }
  .info hr { margin: 12px 0; }
  .buybox { border: 0; padding: 0; border-radius: 0; }
  .buybox > .big-price { display: none; }
  .swatches button { min-height: 46px; min-width: 56px; }
  .qty select { min-height: 46px; }
}

/* Sticky buy bar for phones: always one thumb away from buying */
.buybar { display: none; }
@media (max-width: 760px) {
  .buybar { display: grid; grid-template-columns: auto 1fr 1fr; gap: 8px; align-items: center; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--paper); border-top: 1px solid var(--line); padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); transform: translateY(110%); transition: transform .2s ease; box-shadow: 0 -6px 20px rgba(21,25,42,.08); }
  .buybar.show { transform: none; }
  .buybar .bp { font-weight: 700; font-size: 1.125rem; padding-right: 4px; }
  .buybar .btn { min-height: 46px; padding: 0 10px; font-size: .9375rem; }
  body.has-buybar { padding-bottom: 76px; }
}

.detail { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 48px; padding: 32px 0; border-top: 1px solid var(--line); }
.prose { max-width: 68ch; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: .4em; }
.specs { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.specs th, .specs td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { width: 40%; color: var(--ink-2); font-weight: 500; background: var(--surface); }
@media (max-width: 860px) { .detail { grid-template-columns: 1fr; gap: 24px; } }

.together { border-top: 1px solid var(--line); padding: 32px 0; }
.bundle { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.bundle .item { width: 120px; text-align: center; font-size: .8125rem; }
.bundle .item .img { aspect-ratio: 1; background: var(--surface); border-radius: 10px; margin-bottom: 6px; display: grid; place-items: center; overflow: hidden; }
.bundle .item img { object-fit: contain; width: 100%; height: 100%; padding: 8%; mix-blend-mode: multiply; }
.bundle .plus { font-size: 1.5rem; color: var(--ink-3); }
.bundle .total { margin-left: 12px; }
.bundle .total .p { font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; }
.bundle label { display: flex; gap: 6px; justify-content: center; align-items: flex-start; text-align: left; cursor: pointer; }
@media (max-width: 600px) {
  .bundle { display: grid; gap: 0; }
  .bundle .plus { display: none; }
  .bundle .item { width: auto; display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; text-align: left; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .9375rem; }
  .bundle .item .img { margin: 0; }
  .bundle label { justify-content: flex-start; }
  .bundle label input { width: 20px; height: 20px; margin-top: 2px; }
  .bundle .total { margin: 14px 0 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .bundle .total .p { margin: 0; }
}

/* Reviews */
.reviews { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 48px; padding: 32px 0 56px; border-top: 1px solid var(--line); }
.summary .avg { display: flex; align-items: center; gap: 10px; font-size: 1.125rem; font-weight: 600; margin-bottom: 4px; }
.summary .avg .stars { font-size: 1.25rem; }
.bars { margin: 16px 0 24px; }
.bars div { display: grid; grid-template-columns: 50px 1fr 40px; gap: 10px; align-items: center; font-size: .875rem; margin-bottom: 8px; color: var(--ink-2); }
.bars .track { height: 18px; border-radius: 4px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.bars .fill { height: 100%; background: var(--star); }
.review { padding: 18px 0; border-bottom: 1px solid var(--line); }
.review .who { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-weight: 550; }
.review .avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-size: .875rem; color: var(--ink-2); font-weight: 600; }
.review .head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; }
.review .head b { font-weight: 650; }
.verified { color: var(--warn); font-size: .8125rem; font-weight: 600; }
.review .photos { display: flex; gap: 8px; margin-top: 10px; }
.review .photos img { width: 88px; height: 88px; object-fit: cover; border-radius: 8px; }
.review .reply { background: var(--surface); border-radius: 8px; padding: 10px 14px; margin-top: 10px; font-size: .9375rem; }
@media (max-width: 860px) { .reviews { grid-template-columns: 1fr; gap: 16px; } }

/* ---------- Cart drawer ---------- */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(21, 25, 42, .45); z-index: 60; opacity: 0; pointer-events: none; transition: opacity .2s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); background: var(--paper); z-index: 61; transform: translateX(100%); transition: transform .25s cubic-bezier(.2, .8, .2, 1); display: flex; flex-direction: column; }
.drawer-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
.drawer-open .drawer { transform: none; }
.drawer header { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer header h2 { margin: 0; font-size: 1.125rem; }
.icon-btn { width: 38px; height: 38px; border-radius: 999px; border: 0; background: var(--surface); cursor: pointer; display: grid; place-items: center; }
.icon-btn:hover { background: var(--line); }
.drawer .body { flex: 1; overflow: auto; padding: 8px 20px; }
.drawer footer { border-top: 1px solid var(--line); padding: 16px 20px 20px; background: var(--paper); }
.added { display: flex; align-items: center; gap: 8px; color: var(--good); font-weight: 600; font-size: .9375rem; padding: 12px 0 4px; }
.freebar { margin: 10px 0 6px; font-size: .875rem; }
.freebar .track { height: 6px; background: var(--surface); border-radius: 99px; overflow: hidden; margin-top: 6px; }
.freebar .fill { height: 100%; background: var(--good); border-radius: 99px; transition: width .3s; }
.line { display: grid; grid-template-columns: 72px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.line .img { width: 72px; height: 72px; background: var(--surface); border-radius: 8px; overflow: hidden; display: grid; place-items: center; }
.line .img img { width: 100%; height: 100%; object-fit: contain; padding: 6%; mix-blend-mode: multiply; }
.line .t { font-weight: 550; line-height: 1.3; text-decoration: none; display: block; }
.line .v { font-size: .8125rem; color: var(--ink-3); }
.line .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.line .lp { font-weight: 650; }
.line .acts { display: flex; gap: 12px; margin-top: 8px; }
.line .warn { color: var(--warn); font-size: .8125rem; font-weight: 600; margin-top: 4px; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line-2); border-radius: 999px; height: 34px; }
.stepper button { width: 32px; height: 100%; border: 0; background: none; cursor: pointer; font-size: 1.125rem; color: var(--ink-2); border-radius: 999px; }
.stepper button:hover { background: var(--surface); }
.stepper span { min-width: 26px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.sum-row { display: flex; justify-content: space-between; margin-bottom: 6px; }
.sum-row.total { font-size: 1.125rem; font-weight: 700; margin: 10px 0 14px; }
.empty-state { text-align: center; padding: 48px 12px; color: var(--ink-2); }
.empty-state svg { color: var(--line-2); margin: 0 auto 12px; }

/* Cart page */
.cart-page { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; padding: 24px 0 56px; align-items: start; }
.cart-page .panel { border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; }
.cart-page .side { border: 1px solid var(--line-2); border-radius: 14px; padding: 20px; position: sticky; top: 140px; }
.cart-page .line { grid-template-columns: 120px 1fr; }
.cart-page .line .img { width: 120px; height: 120px; }
@media (max-width: 860px) { .cart-page { grid-template-columns: 1fr; } .cart-page .side { position: static; } .cart-page .line { grid-template-columns: 84px 1fr; } .cart-page .line .img { width: 84px; height: 84px; } }

/* ---------- Simple pages ---------- */
.page-narrow { max-width: 720px; margin: 0 auto; padding: 32px 20px 64px; }
.page-mid { max-width: 960px; margin: 0 auto; padding: 32px 20px 64px; }
.box { border: 1px solid var(--line); border-radius: 14px; padding: 24px; }

/* Order status page */
.progress { list-style: none; padding: 0; margin: 24px 0; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.progress::before { content: ""; position: absolute; top: 13px; left: 12.5%; right: 12.5%; height: 3px; background: var(--line); }
.progress::after { content: ""; position: absolute; top: 13px; left: 12.5%; height: 3px; background: var(--good); width: var(--w, 0%); }
.progress li { position: relative; text-align: center; font-size: .875rem; color: var(--ink-3); }
.progress li i { display: grid; place-items: center; width: 28px; height: 28px; margin: 0 auto 8px; border-radius: 50%; background: var(--paper); border: 3px solid var(--line); position: relative; z-index: 1; }
.progress li.done { color: var(--ink); font-weight: 600; }
.progress li.done i { background: var(--good); border-color: var(--good); color: #fff; }
.progress li small { display: block; font-weight: 400; color: var(--ink-3); }
.order-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; margin: 24px 0; }
.order-grid h3 { font-size: .9375rem; color: var(--ink-2); font-weight: 600; margin-bottom: 6px; }
@media (max-width: 700px) { .order-grid { grid-template-columns: 1fr; } }
.thanks { display: flex; gap: 14px; align-items: flex-start; }
.thanks .check { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--good); color: #fff; display: grid; place-items: center; }

/* Review form */
.star-pick { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.star-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-pick label { font-size: 2.25rem; line-height: 1; color: var(--line-2); cursor: pointer; transition: color .1s; }
.star-pick input:checked ~ label, .star-pick label:hover, .star-pick label:hover ~ label { color: var(--star); }
.star-pick input:focus-visible + label { outline: 3px solid var(--brand); border-radius: 4px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 40px 0 28px; margin-top: 40px; font-size: .9375rem; color: var(--ink-2); }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; margin-bottom: 28px; }
.site-footer h3 { font-size: .9375rem; color: var(--ink); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .legal { border-top: 1px solid var(--line); padding-top: 18px; font-size: .8125rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }

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

/* Phones: the category row tucks away once you scroll, keeping search and cart on screen. */
@media (max-width: 760px) {
  .site-header.compact .subnav { display: none; }
  .head-link { padding: 4px 6px; }
}

/* ---------- Checkout (phone first) ---------- */
.checkout-body { background: var(--surface); }
.co-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.co-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.co-secure { display: flex; align-items: center; gap: 6px; font-size: .875rem; color: var(--ink-2); font-weight: 600; }
.co { display: grid; grid-template-columns: 1fr; gap: 0; padding-top: 16px; padding-bottom: 120px; }
.co-title { font-size: 1.375rem; margin: 4px 0 14px; }
.co-title .muted { font-weight: 400; font-size: 1rem; }
.co-step, .co-express { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 18px 16px; margin-bottom: 12px; }
.co-express { padding: 16px; }
.co-step h2 { display: flex; align-items: center; gap: 10px; font-size: 1.0625rem; margin-bottom: 14px; }
.co-step h2 .n { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font-size: .8125rem; display: grid; place-items: center; flex: none; }
.co-el + .co-el { margin-top: 12px; }
.co-or { display: flex; align-items: center; gap: 12px; margin-top: 14px; color: var(--ink-3); font-size: .875rem; }
.co-or::before, .co-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.co-row3 { display: grid; grid-template-columns: 1fr; gap: 0 12px; }
.co-fields .field input, .co-fields .field select { font-size: 16px; } /* 16px stops iPhone zooming into fields */
.co-saved { margin-bottom: 14px; }
.co-saved .chips { margin-top: 6px; }
.co-saved .chip { font-size: .875rem; padding: 8px 12px; background: var(--paper); cursor: pointer; }
.co-saved .chip[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); background: var(--paper); color: var(--ink); }
.co-methods { display: grid; gap: 10px; }
.co-method { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center; padding: 14px; border: 1.5px solid var(--line-2); border-radius: 10px; cursor: pointer; min-height: 64px; }
.co-method:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); background: color-mix(in srgb, var(--surface) 50%, white); }
.co-method input { width: 20px; height: 20px; accent-color: var(--ink); margin: 0; }
.co-method .when { font-weight: 650; color: var(--good); }
.co-method .name { font-size: .875rem; color: var(--ink-2); }
.co-method .cost { font-weight: 650; text-align: right; }
.co-method .cost s { display: block; font-weight: 400; font-size: .8125rem; color: var(--ink-3); }
.co-promo { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.co-promo summary { cursor: pointer; color: var(--brand); font-weight: 600; font-size: .9375rem; padding: 6px 0; }
.co-promo-row { display: flex; gap: 8px; margin-top: 10px; }
.co-promo-row .input { text-transform: uppercase; font-size: 16px; }
.co-promo p:empty { display: none; }
.co-review .line { grid-template-columns: 64px 1fr; padding: 12px 0; }
.co-review .line .img { width: 64px; height: 64px; }
.co-review .line .stepper { height: 38px; }
.co-review .line .stepper button { width: 38px; }
.co-review .unavailable { font-size: .875rem; color: var(--warn); margin-top: 8px; }
.co-place { min-height: 52px; font-size: 1.0625rem; }
.co-place-inline { padding: 4px 2px 20px; }
.co-legal { margin: 10px 0 0; }
.co-side { display: none; }
.co-summary .sum-row { font-size: .9375rem; }
.co-summary .sum-row.total { font-size: 1.1875rem; color: var(--bad); border-top: 1px solid var(--line); padding-top: 12px; }
.co-summary .save { color: var(--good); }
.co-totals-inline { margin-top: 12px; }
.co-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; background: var(--paper); border-top: 1px solid var(--line); padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgba(21,25,42,.08); }
.co-bar > div { display: flex; flex-direction: column; line-height: 1.2; }
.co-bar b { font-size: 1.1875rem; }
.co-bar .co-place { min-height: 48px; }
.co .busy-note { font-size: .875rem; color: var(--ink-2); margin-top: 8px; }

@media (min-width: 600px) {
  .co-row3 { grid-template-columns: 1.4fr 1fr 1fr; }
  .co-step { padding: 22px 24px; }
}
@media (min-width: 960px) {
  .co { grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; padding-bottom: 60px; align-items: start; }
  .co-side { display: block; position: sticky; top: 20px; }
  .co-summary { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
  .co-sum-title { font-size: 1.0625rem; margin: 18px 0 10px; padding-top: 16px; border-top: 1px solid var(--line); }
  .co-bar { display: none; }
  .co-place-inline .co-legal { display: none; }
  .co-place-inline { display: none; }
}
