/* ============================================================
   DRESSENSE v2: a familiar shopping-app layout, finished like a
   premium label. Quiet neutrals carry the photos; one deep accent
   colour marks every action. Three palettes for review.
   layout idea: Myntra-style structure (search, story circles,
   banner carousel, dense product grid), with more air and calmer type.
   ============================================================ */
/* Noir: black, white and warm greys, with a champagne note on "Like new" badges. */
:root {
  --bg: #FFFFFF;
  --surface: #F4F4F3;
  --ink: #121212;
  --muted: #5C5C5C;
  --line: #E4E4E2;
  --accent: #161616;        /* every primary action */
  --accent-hover: #333333;
  --on-accent: #FFFFFF;
  --accent-soft: #EEEEEC;
  --ring2: #B8955A;         /* champagne: story rings */
  --champ-bg: #F2EADC;      /* "Like new" badge */
  --champ-ink: #6A4E22;
  --ok: #0B6B3A;            /* WhatsApp + success */
  --warn: #8A5A00;          /* awaiting confirmation */
  --warn-bg: #FBF1DC;
  --danger: #A12A2A;
  --danger-bg: #FBE9E7;
  --tone1: #EEEEEC; --tone2: #F2EADC; --tone3: #E8E8E6;
}

:root {
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 3.2vw, 40px);
  --max: 1320px;
  --r-lg: 22px; --r-md: 16px; --r-sm: 10px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.5 var(--sans); padding-bottom: 72px; }
img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ic { width: 22px; height: 22px; flex: none; }
.link { font-size: 15px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.link:hover { color: var(--accent); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px;
  border-radius: 999px; font-weight: 600; font-size: 15px; transition: background-color .2s, transform .2s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn-solid { background: var(--accent); color: var(--on-accent); }
.btn-solid:hover { background: var(--accent-hover); }
.btn-light { background: #fff; color: var(--accent); }
.btn-ghost { border: 1px solid var(--ink); }
.btn-ghost:hover { background: var(--surface); }
.btn-block { width: 100%; }
.btn-wa { background: var(--ok); color: #fff; }
.btn-wa:hover { background: #095A31; }
.round {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--bg); transition: background-color .2s, border-color .2s;
}
.round:hover { border-color: var(--ink); }
.round .ic { width: 20px; height: 20px; }
.pill { align-self: flex-start; display: inline-flex; padding: 5px 12px; border-radius: 999px; border: 1px solid currentColor; font-size: 13px; font-weight: 600; }

/* Announcement bar */
.announce { height: 36px; overflow: hidden; background: var(--accent); color: var(--on-accent); font-size: 13px; font-weight: 500; text-align: center; }
.announce li { height: 36px; line-height: 36px; padding: 0 var(--gutter); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Header */
.hdr { position: sticky; top: 0; z-index: 100; background: var(--bg); transition: box-shadow .3s; }
.hdr.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 8px 24px -16px rgba(0, 0, 0, .25); }
.hdr-top {
  max-width: var(--max); margin: 0 auto; padding: 14px var(--gutter);
  display: grid; grid-template-columns: auto auto minmax(220px, 1fr) auto; grid-template-areas: "logo cats search actions";
  align-items: center; gap: 28px;
}
.logo { grid-area: logo; font-family: var(--serif); font-size: 34px; line-height: 1; letter-spacing: -.01em; color: var(--ink); }
.hdr-cats { grid-area: cats; display: flex; gap: 22px; }
.hdr-cats a { position: relative; font-size: 15px; font-weight: 500; padding: 12px 0; }
.hdr-cats a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.hdr-cats a:hover::after, .hdr-cats a:focus-visible::after { transform: scaleX(1); }
.hdr-cats-hl { color: var(--accent); }
.search {
  grid-area: search; position: relative; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px;
  border-radius: 999px; background: var(--surface); border: 1px solid transparent; transition: border-color .2s, background-color .2s;
}
.search:focus-within { background: var(--bg); border-color: var(--ink); }
.search .ic { color: var(--muted); width: 20px; height: 20px; }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; font: 400 15px var(--sans); color: var(--ink); outline: none; }
.search input::placeholder { color: var(--muted); }
.hdr-actions { grid-area: actions; display: flex; gap: 6px; }
.act { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 56px; height: 52px; font-size: 12px; font-weight: 500; border-radius: 12px; }
.act:hover { background: var(--surface); }
.bag-count {
  position: absolute; top: 2px; right: 8px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 700; display: grid; place-items: center; line-height: 1;
}

/* Story circles */
.stories { max-width: var(--max); margin: 8px auto 0; padding: 0 var(--gutter); }
.stories-list { display: flex; justify-content: space-between; gap: 16px; overflow-x: auto; padding: 8px 2px 4px; scrollbar-width: none; }
.stories-list::-webkit-scrollbar { display: none; }
.story { flex: none; }
.story a { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 92px; font-size: 13px; font-weight: 500; text-align: center; }
.story-ring { position: relative; width: 84px; height: 84px; border-radius: 50%; padding: 3px; background: var(--line); }
.story.is-fresh .story-ring { background: conic-gradient(from var(--spin, 0deg), var(--accent), var(--ring2), var(--accent)); }
.story-ring img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 3px solid var(--bg); transition: transform .5s var(--ease); }
.story a:hover .story-ring img { transform: scale(1.07); }
.story-new { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); padding: 1px 7px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 10px; font-weight: 700; border: 2px solid var(--bg); }

/* Hero carousel */
.hero { max-width: var(--max); margin: 20px auto 0; padding: 0 var(--gutter); }
.hero-viewport { position: relative; height: clamp(400px, 38vw, 520px); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.slide { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); visibility: hidden; }
.slide.is-active, .slide.is-entering { visibility: visible; }
.slide.is-entering { z-index: 2; }
.slide[data-tone="1"] { --tone: var(--tone1); }
.slide[data-tone="2"] { --tone: var(--tone2); }
.slide[data-tone="3"] { --tone: var(--tone3); }
.slide-copy { background: var(--tone); padding: clamp(28px, 4.4vw, 72px); display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.slide-title { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 4.3vw, 64px); line-height: 1.02; letter-spacing: -.01em; max-width: 13ch; }
.slide-copy p { font-size: 17px; color: var(--muted); max-width: 34ch; }
.slide-copy .btn { align-self: flex-start; margin-top: 6px; }
.slide-img { overflow: hidden; }
.slide-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-ctrl { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.hero-dots { display: flex; gap: 4px; margin-right: auto; }
.dot { width: 56px; height: 44px; display: grid; align-items: center; }
.dot i { position: relative; display: block; height: 3px; border-radius: 2px; background: var(--line); overflow: hidden; }
.dot i::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleX(var(--p, 0)); transform-origin: left; }

/* Trust strip */
.trust { max-width: var(--max); margin: 28px auto 0; padding: 0 var(--gutter); }
.trust ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.trust li { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--r-md); background: var(--surface); }
.trust .ic { color: var(--accent); width: 26px; height: 26px; }
.trust b { display: block; font-size: 15px; font-weight: 600; }
.trust span { display: block; font-size: 13px; color: var(--muted); }

/* Sections */
.sec { max-width: var(--max); margin: clamp(56px, 7vw, 96px) auto 0; padding: 0 var(--gutter); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 20px; }
.sec-title { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 3.6vw, 52px); line-height: 1.02; letter-spacing: -.01em; }
.sec-sub { margin-top: 6px; font-size: 15px; color: var(--muted); max-width: 60ch; }
.sec-pad { max-width: var(--max); margin-left: auto; margin-right: auto; padding: 0 var(--gutter); }

/* Filter chips */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.chip { height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; font-weight: 500; transition: background-color .2s, color .2s, border-color .2s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* Product grid + card */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 20px; }
.card-media { position: relative; aspect-ratio: 3 / 4; border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
.card-img, .card-img img { display: block; width: 100%; height: 100%; }
.card-img img { object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card-img img { transform: scale(1.05); }
.badges { position: absolute; left: 10px; top: 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; pointer-events: none; }
.badge { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.3; }
.badge-new { background: var(--champ-bg); color: var(--champ-ink); }
.badge-one { background: rgba(255, 255, 255, .94); color: var(--ink); }
.badge-hold { background: var(--bg); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.badge-sold { background: var(--ink); color: var(--bg); }
.heart {
  position: absolute; right: 8px; top: 8px; z-index: 2; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255, 255, 255, .94); color: var(--ink);
}
.heart .ic { width: 21px; height: 21px; }
.heart[aria-pressed="true"] { color: var(--accent); --heart-fill: var(--accent); }
.burst { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: var(--accent); pointer-events: none; }
.card-actions {
  position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; gap: 8px;
  transform: translateY(calc(100% + 14px)); transition: transform .45s var(--ease);
}
.card:hover .card-actions, .card:focus-within .card-actions { transform: translateY(0); }
.card-actions button { flex: 1; height: 44px; border-radius: 999px; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.card-actions .ic { width: 18px; height: 18px; }
.btn-quick { background: rgba(255, 255, 255, .95); color: var(--ink); }
.btn-add { background: var(--accent); color: var(--on-accent); }
.btn-add:hover { background: var(--accent-hover); }
.card-body { padding-top: 12px; }
.card-brand { font-size: 15px; font-weight: 650; }
.card-name { font-size: 14px; font-weight: 400; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-name a:hover { color: var(--ink); text-decoration: underline; }
.card-size { font-size: 13px; color: var(--muted); }
.card-price { margin-top: 6px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; font-variant-numeric: tabular-nums; }
.card-price strong { font-size: 16px; font-weight: 650; }
.card-price s { font-size: 13px; color: var(--muted); }
.card-off { font-size: 13px; font-weight: 600; color: var(--accent); }
.card.is-sold .card-img img { filter: grayscale(1); opacity: .55; }
.card.is-sold .card-actions, .card.is-hold .btn-add { display: none; }

/* Shop by price */
.prices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.prices a {
  display: flex; flex-direction: column; gap: 2px; padding: 22px 24px 20px; border-radius: var(--r-md); background: var(--accent-soft);
  transition: transform .4s var(--ease), background-color .3s;
}
.prices a:hover { transform: translateY(-4px); background: var(--tone2); }
.prices span { font-size: 14px; color: var(--muted); }
.prices strong { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 3.6vw, 52px); line-height: 1.05; }
.prices em { font-style: normal; font-size: 13px; color: var(--muted); }

/* Brands marquee */
.brands { margin-top: clamp(56px, 7vw, 96px); }
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 20px 0; }
.marquee-track { display: flex; align-items: center; gap: 64px; width: max-content; padding-left: 64px; }
.marquee-track li { color: var(--ink); white-space: nowrap; line-height: 1; }
.marquee-track li:nth-child(odd) { font-family: var(--serif); font-style: italic; font-size: 40px; }
.marquee-track li:nth-child(even) { font-weight: 700; font-size: 24px; letter-spacing: .06em; text-transform: uppercase; }

/* How it works */
.how-steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 12px; }
.how-line { position: absolute; left: 12.5%; right: 12.5%; top: 27px; height: 2px; background: var(--line); }
.how-fill { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(var(--fill, 1)); }
.step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.step-ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--line); background: var(--bg); color: var(--muted); transition: background-color .35s, color .35s, border-color .35s; }
.step.is-on .step-ic { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.step h3 { margin-top: 14px; font-size: 17px; font-weight: 600; }
.step p { margin-top: 4px; font-size: 14px; color: var(--muted); max-width: 26ch; }

/* WhatsApp band */
.wa {
  max-width: calc(var(--max) - 2 * var(--gutter)); margin: clamp(56px, 7vw, 96px) var(--gutter) 0; padding: clamp(28px, 4vw, 48px);
  border-radius: var(--r-lg); background: var(--accent); color: var(--on-accent);
  display: flex; align-items: center; justify-content: space-between; gap: 20px 40px; flex-wrap: wrap;
}
@media (min-width: 1400px) { .wa { margin-left: auto; margin-right: auto; } }
.wa h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3vw, 42px); line-height: 1.05; }
.wa p { margin-top: 8px; max-width: 52ch; opacity: .88; }

/* Footer */
.ftr {
  max-width: var(--max); margin: clamp(56px, 7vw, 96px) auto 0; padding: 40px var(--gutter) 40px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; font-size: 14px; color: var(--muted);
}
.ftr .logo { font-size: 30px; }
.ftr-brand p + p { margin-top: 10px; max-width: 34ch; }
.ftr h3 { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.ftr nav { display: flex; flex-direction: column; gap: 4px; }
.ftr nav a { padding: 4px 0; }
.ftr nav a:hover { color: var(--ink); text-decoration: underline; }

/* Mobile tab bar */
.tabbar { display: none; }

/* Overlays: quick view + bag */
.overlay { position: fixed; inset: 0; z-index: 400; }
.scrim { position: absolute; inset: 0; background: rgba(12, 14, 13, .5); }
.qv {
  position: absolute; left: 50%; top: 50%; width: min(980px, calc(100vw - 32px)); height: min(640px, calc(100vh - 48px));
  transform: translate(-50%, -50%); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: rgba(255, 255, 255, var(--qv-a, 1)); border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, calc(.45 * var(--qv-a, 1)));
}
.qv-close { position: absolute; right: 14px; top: 14px; z-index: 3; }
.qv-img { position: relative; background: var(--surface); min-height: 0; }
.qv-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.qv-body { padding: 36px 32px 28px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.qv-brand { font-size: 15px; font-weight: 650; }
.qv-name { font-family: var(--serif); font-weight: 400; font-size: 36px; line-height: 1.05; }
.qv-price { display: flex; align-items: baseline; gap: 10px; font-variant-numeric: tabular-nums; }
.qv-price strong { font-size: 24px; font-weight: 650; }
.qv-price s { color: var(--muted); }
.qv-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.qv-tags span { padding: 6px 12px; border-radius: 999px; background: var(--surface); font-size: 13px; font-weight: 500; }
.qv-measure { border-top: 1px solid var(--line); }
.qv-measure div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.qv-measure dt { color: var(--muted); display: flex; align-items: center; gap: 8px; }
.qv-measure dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.qv-note { font-size: 14px; color: var(--muted); }
.qv-actions { display: flex; gap: 10px; margin-top: auto; padding-top: 6px; }
.qv-actions .btn { flex: 1; }

.drawer {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); background: var(--bg);
  display: flex; flex-direction: column; box-shadow: -20px 0 60px -20px rgba(0, 0, 0, .35);
}
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 20px 24px; display: flex; flex-direction: column; }
.bag-list li { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.bag-list img { width: 76px; height: 100px; object-fit: cover; border-radius: var(--r-sm); }
.bag-list b { display: block; font-size: 15px; }
.bag-list span { display: block; font-size: 14px; color: var(--muted); }
.bag-list strong { font-variant-numeric: tabular-nums; }
.bag-remove { margin-top: 8px; font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; min-height: 32px; }
.bag-sum { margin-top: 18px; display: grid; gap: 8px; font-size: 15px; }
.bag-sum div { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
.bag-sum .bag-total { padding-top: 10px; border-top: 1px solid var(--line); font-weight: 650; font-size: 17px; }
.bag-note { margin: 18px 0; display: flex; gap: 12px; padding: 14px; border-radius: 14px; background: var(--accent-soft); font-size: 14px; }
.bag-note .ic { color: var(--accent); }
.bag-empty { margin: auto 0; text-align: center; padding: 40px 10px; color: var(--muted); }
.bag-empty h3 { font-family: var(--serif); font-weight: 400; font-size: 30px; color: var(--ink); margin-bottom: 8px; }
.placed { margin: auto 0; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px 6px; }
.placed svg.tick { width: 84px; height: 84px; }
.placed h3 { font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.05; }
.placed p { color: var(--muted); max-width: 34ch; }
.placed .order-no { font-weight: 650; color: var(--ink); }

.toast {
  position: fixed; z-index: 500; left: 50%; bottom: 76px; transform: translate(-50%, 16px); max-width: calc(100vw - 32px);
  padding: 12px 18px; border-radius: 12px; background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 500;
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Responsive */
@media (max-width: 1180px) {
  .hdr-cats { display: none; }
  .hdr-top { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "logo search actions"; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .trust ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  body { padding-bottom: 150px; }
  .hdr-top { grid-template-columns: 1fr; grid-template-areas: "logo" "search"; gap: 10px; padding-top: 10px; padding-bottom: 10px; }
  .logo { font-size: 30px; }
  .hdr-actions { display: none; }
  .search { height: 44px; }
  .stories-list { justify-content: flex-start; gap: 12px; }
  .story a { width: 74px; font-size: 12px; }
  .story-ring { width: 68px; height: 68px; }
  .hero-viewport { height: 600px; }
  .slide { grid-template-columns: 1fr; grid-template-rows: 300px 1fr; }
  .slide-img { grid-row: 1; }
  .slide-copy { grid-row: 2; padding: 22px 20px 24px; gap: 12px; justify-content: flex-start; }
  .slide-title { font-size: 34px; }
  .slide-copy p { font-size: 15px; }
  .trust li { padding: 12px; gap: 10px; align-items: flex-start; }
  .trust .ic { width: 22px; height: 22px; }
  .trust b { font-size: 14px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding: 0 var(--gutter); scrollbar-width: none; }
  .chip { flex: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .card-actions { left: auto; right: 8px; bottom: 8px; transform: none; }
  .card-actions button { flex: none; width: 44px; padding: 0; }
  .card-actions button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .prices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .marquee-track li:nth-child(odd) { font-size: 30px; }
  .marquee-track li:nth-child(even) { font-size: 18px; }
  .how-steps { grid-template-columns: 1fr; gap: 22px; }
  .how-line { left: 27px; right: auto; top: 28px; bottom: 28px; width: 2px; height: auto; }
  .how-fill { transform-origin: top; transform: scaleY(var(--fill, 1)); }
  .step { flex-direction: row; flex-wrap: wrap; align-items: flex-start; text-align: left; column-gap: 16px; }
  .step-ic { flex: none; }
  .step h3 { margin-top: 0; flex: 1; padding-top: 14px; }
  .step p { flex-basis: 100%; padding-left: 72px; margin-top: -6px; }
  .ftr { grid-template-columns: 1fr 1fr; }
  .ftr-brand { grid-column: 1 / -1; }
  .toast { bottom: 140px; }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
  }
  .tab { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 54px; font-size: 11px; font-weight: 500; color: var(--muted); }
  .tab[aria-current="page"] { color: var(--accent); }
  .tab .bag-count { right: calc(50% - 22px); top: 4px; }
  .tab-ind { position: absolute; z-index: 0; top: 9px; left: 0; width: 56px; height: 30px; border-radius: 999px; background: var(--accent-soft); }
  .qv { left: 0; right: 0; top: auto; bottom: 0; width: 100%; height: auto; max-height: 92vh; transform: none; grid-template-columns: 1fr; grid-template-rows: 44vh auto; border-radius: var(--r-lg) var(--r-lg) 0 0; overflow-y: auto; }
  .qv-body { padding: 22px 20px 28px; overflow: visible; }
  .qv-name { font-size: 30px; }
}
@media (hover: none) and (min-width: 761px) {
  .card-actions { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
