/* Hallmark · shape: flavor station (shop with a working order sheet) · genre: playful · theme: custom · job: buy · idea: "Every flavor is a syrup bottle in its own color, and ordering fills the bottles at Ragg's counter" · vibe: "Texas snow cone stand, bright, quick, friendly" · brand: Ragg's Supply (spec 2026-12-03)
 * paper: oklch(1 0 0) with lavender bands oklch(0.92 0.03 280) (logo ground #e4e5fa) · accent: oklch(0.42 0.27 268) Ragg's blue #2308cf (site links, logo palms) + sun red #ff010c (site menu, logo sun) · display: Lilita One (echoes the logo's chunky rounded letters) · body: Open Sans (Ragg's own body face, found in their CSS) · hero: the order sheet itself on quick order; a pour of flavor bottles on home · nav: lavender logo band, slab menu bar with a red rule (Ragg's menu has a red border today) · footer: navy slab with store hours and every policy link · imagery: Ragg's own photos (block ice, flavor station) and color-coded syrup bottles · signature: syrup bottles that fill with the flavor's color as you raise the quantity
 * axes: light/rounded-heavy/chromatic-blue · posture: full-palette · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R3 V4 · weakest: R (reveal count), the user asked for section animations, so every section gets one soft rise, off under reduced motion and visible without scripting */
/* waive 14 (capped container): the owner's own rule (global CLAUDE.md) asks for full-width pages with side gutters only */
/* waive 62 (content with scripting off): the order sheet, cart and search are interactive by nature; a noscript note gives the phone number instead */
/* waive 24b (cursor dot and flake margins): negative half-size offsets that centre a 10px and 6px dot on the pointer, geometry rather than spacing */
/* waive 1 (.shelf__title): a small label in the body face, not a display head */
/* waive 19 (dash in Karen K's review): a real customer review, quoted exactly as agreed with the client brief */
/* answered 58 (word count on home): a shop home carries real reviews in full and FAQ facts; every section is one idea */
/* answered F4: one hot button per screen (Add all to cart / Checkout); the demo toolbar's pressed state and dialog submits are not page actions */
/* answered F7: pill radius stays on badges and the search field because they read as controls on Ragg's sign-style header */
/* answered: Open Sans is on Hallmark's banned-default list, kept because it is Ragg's own body face (pre-flight: their Divi CSS) */

/* ---------- Tokens ---------- */
@font-face { font-family: "Lilita One"; src: url("../fonts/lilita-one.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("../fonts/open-sans-var.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Open Sans Fallback"; src: local("Arial"); size-adjust: 105%; ascent-override: 101%; descent-override: 28%; line-gap-override: 0%; }

:root {
  --color-paper: #fcfcff;
  --color-paper-2: #e4e5fa;   /* logo ground */
  --color-paper-3: #f4f4fd;
  --color-ink: #14104a;
  --color-ink-2: #46437a;
  --color-muted: #5f5c8c;
  --color-line: #d4d3f0;
  --color-blue: #2308cf;      /* Ragg's blue */
  --color-blue-2: #3d27e0;
  --color-navy: #0c009c;      /* logo letter shadow */
  --color-red: #ff010c;       /* sun red */
  --color-red-text: #d3000a;
  --color-pink: #e8178a;
  --color-sky: #0084d8;
  --color-sky-text: #006bb0;
  --color-ok: #0b7a3b;
  --color-ok-bg: #e3f6ea;
  --color-warn-bg: #fff3d6;
  --color-white: #fefeff;
  --color-shadow: rgba(20, 16, 74, 0.14);
  --color-scrim: rgba(20, 16, 74, 0.45);
  --color-focus: #0084d8;
  --color-red-deep: #b80009;
  --color-pink-text: #b0125f;
  --color-pink-bg: #fff0f6;
  --color-pink-line: #ffd2e6;
  --color-sky-bg: #e8f3ff;
  --color-sky-line: #c7e2fb;
  --color-ok-line: #bfe8cd;
  --color-warn-text: #7a5200;
  --color-warn-line: #f4dc9c;
  --color-glass-1: rgba(255, 255, 255, 0.12);
  --color-glass-2: rgba(255, 255, 255, 0.2);
  --color-edge: rgba(20, 16, 74, 0.3);
  --color-brand-southern: #0084d8;
  --color-brand-parasol: #ffa400;
  --color-brand-drafft: #6b2fa3;
  --color-brand-specialty: #8db600;

  /* Flavor swatches: each product's color from data/products.json (a product attribute in WooCommerce) */
  --flavor-coconut-blue: #1fb6e8;
  --flavor-tiger-blood: #ff4b2b;
  --flavor-strawberry: #e8193c;
  --flavor-cherry: #c8102e;
  --flavor-blue-raspberry: #1d6fe0;
  --flavor-banana: #f7d417;
  --flavor-watermelon: #ff5a76;
  --flavor-mango: #ffa400;
  --flavor-wedding-cake: #f4ece0;
  --flavor-grape: #6b2fa3;
  --flavor-pink-cotton-candy: #ff8fc8;
  --flavor-pineapple: #ffd23f;
  --flavor-peach: #ffab76;
  --flavor-barbie: #ff3fa4;
  --flavor-root-beer: #6e3b1f;
  --flavor-pink-bubble-gum: #ff69b4;
  --flavor-pink-lemonade: #ff9eb5;
  --flavor-blue-hawaiian: #00a6d6;
  --flavor-pina-colada-yellow: #ffe680;
  --flavor-tamarind: #a0522d;
  --flavor-lychee: #f9d5d3;
  --flavor-mangonada: #ff7b1c;
  --flavor-horchata: #efe3c8;
  --flavor-pina-colada-white: #fff8e7;
  --flavor-lime: #7ed321;
  --flavor-cherry-ragg-s-dye-free: #f6d6dc;
  --flavor-lemonade: #fbf3c4;
  --flavor-all-natural-shaved-ice-syrup: #9ccc65;
  --flavor-pineapple-upside-down-cake: #f9b233;
  --flavor-peach-jubilee-refrigerated: #ff9a5a;
  --flavor-dr-pepper-syrup: #7b1e2e;
  --flavor-dill-pickle: #8db600;
  --flavor-sour-squirt: #c6e83a;
  --color-ice: #8fd3ff;

  --font-display: "Lilita One", "Arial Rounded MT Bold", ui-rounded, sans-serif;
  --font-body: "Open Sans", "Open Sans Fallback", ui-sans-serif, sans-serif;

  --text-sm: 0.875rem;
  --text-md: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.75rem;
  --text-3xl: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
  --text-4xl: clamp(2.5rem, 1.6rem + 4.2vw, 5rem);

  --space-2xs: 4px; --space-xs: 8px; --space-sm: 12px; --space-md: 16px; --space-lg: 24px; --space-xl: 32px; --space-2xl: 48px; --space-3xl: 72px;
  --gutter: clamp(16px, 3.2vw, 56px);
  --radius-card: 20px; --radius-input: 12px; --radius-pill: 999px;
  --shadow-hard: 0 4px 0 var(--color-navy);
  --shadow-hard-sm: 0 3px 0 var(--color-navy);
  --shadow-soft: 0 10px 30px -12px var(--color-shadow);
  --demo-h: 44px;
  --header-h: 0px;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-padding-top: calc(var(--demo-h) + var(--header-h) + var(--space-md)); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--color-paper); color: var(--color-ink); font-family: var(--font-body); font-size: var(--text-md); line-height: 1.55; -webkit-font-smoothing: antialiased; }
::selection { background: var(--color-paper-2); color: var(--color-ink); }
:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
a { color: var(--color-blue); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--color-navy); }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 400; font-synthesis: none; overflow-wrap: break-word; min-width: 0; text-wrap: balance; line-height: 1.05; color: var(--color-blue); }
h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
p { margin: 0; text-wrap: pretty; }
img { max-width: 100%; height: auto; display: block; }
svg { display: block; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.wrap { padding-inline: var(--gutter); }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--color-ink); color: var(--color-white); padding: var(--space-sm) var(--space-md); border-radius: var(--radius-input); }
.skip:focus { top: 8px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 48px; padding: 0 var(--space-lg); border-radius: var(--radius-pill); border: 2px solid var(--color-navy); background: var(--color-white); color: var(--color-navy); font-weight: 700; text-decoration: none; line-height: 1.1; box-shadow: var(--shadow-hard-sm); transition: transform .16s var(--ease-out), box-shadow .16s var(--ease-out), background-color .16s, color .16s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--color-navy); color: var(--color-navy); }
.btn:active { transform: translateY(3px); box-shadow: 0 0 0 var(--color-navy); }
.btn:focus-visible { outline-offset: 4px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn--primary { background: var(--color-blue); color: var(--color-white); }
.btn--primary:hover { background: var(--color-blue-2); color: var(--color-white); }
.btn--hot { background: var(--color-red-text); color: var(--color-white); }
.btn--hot:hover { background: var(--color-red-deep); color: var(--color-white); }
.btn--quiet { border-color: transparent; box-shadow: none; background: transparent; color: var(--color-blue); padding: 0 var(--space-sm); }
.btn--quiet:hover { background: var(--color-paper-2); box-shadow: none; transform: none; }
.btn--sm { min-height: 44px; padding: 0 var(--space-md); font-size: var(--text-sm); }
.btn--block { width: 100%; }
.btn.is-busy { pointer-events: none; opacity: .8; }

.icon-btn { position: relative; display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: var(--radius-pill); border: 0; background: transparent; color: var(--color-navy); text-decoration: none; transition: background-color .16s, transform .16s var(--ease-out); }
.icon-btn:hover { background: var(--color-white); color: var(--color-navy); }
.icon-btn:active { transform: scale(.92); }
.icon-btn svg { width: 26px; height: 26px; }
.count { position: absolute; top: 2px; right: 0; min-width: 22px; height: 22px; padding: 0 var(--space-xs); border-radius: var(--radius-pill); background: var(--color-red-text); color: var(--color-white); font-size: 13px; font-weight: 700; display: grid; place-items: center; line-height: 1; }
.count:empty, .count[data-n="0"] { display: none; }
.count.bump { animation: bump .45s var(--ease-spring); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }

/* ---------- Demo toolbar ---------- */
.demo { position: sticky; top: 0; z-index: 70; background: var(--color-ink); color: var(--color-white); font-size: var(--text-sm); }
.demo__in { display: flex; align-items: center; gap: var(--space-sm); min-height: var(--demo-h); padding: var(--space-2xs) var(--gutter); flex-wrap: wrap; }
.demo__label { font-weight: 600; margin-right: auto; }
.demo__label span { opacity: .75; font-weight: 400; }
.demo__modes { display: inline-flex; background: var(--color-glass-1); border-radius: var(--radius-pill); padding: var(--space-2xs); }
.demo__modes button { white-space: nowrap; border: 0; background: transparent; color: var(--color-white); min-height: 36px; padding: 0 var(--space-sm); border-radius: var(--radius-pill); font-weight: 600; font-size: 13px; }
.demo__modes button[aria-pressed="true"] { background: var(--color-white); color: var(--color-ink); }
.demo__modes button:hover:not([aria-pressed="true"]) { background: var(--color-glass-2); }
.demo__hide { border: 0; background: transparent; color: var(--color-white); min-height: 36px; padding: 0 var(--space-sm); border-radius: var(--radius-pill); text-decoration: underline; font-size: 13px; }
.demo__pill { position: fixed; z-index: 70; left: 12px; bottom: 12px; border: 2px solid var(--color-white); background: var(--color-ink); color: var(--color-white); border-radius: var(--radius-pill); min-height: 44px; padding: 0 var(--space-md); font-weight: 600; font-size: 13px; box-shadow: var(--shadow-soft); }
html.demo-collapsed .demo { display: none; }
html.demo-collapsed { --demo-h: 0px; }
@media (max-width: 559px) {
  .demo__in { flex-wrap: nowrap; gap: var(--space-xs); padding-block: var(--space-2xs); }
  .demo__label { display: none; }
  .demo__modes { flex: 1; }
  .demo__modes button { flex: 1; padding: 0 var(--space-xs); font-size: 12.5px; }
  .demo__modes .long { display: none; }
}
@media (min-width: 560px) { .demo__modes .short { display: none; } }

/* ---------- Top bar ---------- */
.topbar { background: var(--color-navy); color: var(--color-white); font-size: var(--text-sm); }
.topbar__in { display: flex; gap: var(--space-xs) var(--space-lg); align-items: center; flex-wrap: wrap; min-height: 40px; padding: var(--space-2xs) var(--gutter); }
.topbar a { color: var(--color-white); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; min-height: 32px; }
.topbar a:hover { text-decoration: underline; }
.topbar__hours, .topbar__ship { opacity: .9; }
@media (max-width: 759px) { .topbar__hours { display: none; } .topbar__ship .long { display: none; } .topbar__in { flex-wrap: nowrap; gap: var(--space-md); overflow: hidden; white-space: nowrap; } }
@media (min-width: 760px) { .topbar__ship .short { display: none; } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: var(--demo-h); z-index: 60; background: var(--color-paper-2); border-bottom: 4px solid var(--color-red); }
.site-header__in { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "menu logo actions" "search search search"; align-items: center; gap: var(--space-xs) var(--space-sm); padding: var(--space-xs) var(--gutter) var(--space-sm); }
.menu-btn { grid-area: menu; }
.logo { grid-area: logo; display: block; justify-self: start; line-height: 0; border-radius: 8px; }
.logo img { width: clamp(150px, 42vw, 290px); height: auto; }
.header-actions { grid-area: actions; display: flex; align-items: center; gap: 2px; }
.wholesale-link { display: none; }
.site-search { grid-area: search; position: relative; }
@media (min-width: 900px) {
  .site-header__in { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "logo search actions"; gap: var(--space-md); padding-block: var(--space-sm); }
  .menu-btn { display: none; }
  .wholesale-link { display: inline-flex; margin-right: var(--space-xs); }
}

/* search */
.search-box { display: flex; align-items: center; background: var(--color-white); border: 2px solid var(--color-navy); border-radius: var(--radius-pill); box-shadow: var(--shadow-hard-sm); padding-left: var(--space-md); min-height: 50px; }
.search-box:focus-within { box-shadow: 0 0 0 4px var(--color-sky), var(--shadow-hard-sm); }
.search-box svg { width: 22px; height: 22px; color: var(--color-muted); flex: none; }
.search-box input { flex: 1; min-width: 0; border: 0; background: transparent; padding: var(--space-sm) var(--space-sm); font-size: var(--text-md); outline: none; }
.search-box button { border: 0; background: var(--color-blue); color: var(--color-white); border-radius: var(--radius-pill); min-height: 42px; margin: 2px; padding: 0 var(--space-md); font-weight: 700; }
.search-box button:hover { background: var(--color-blue-2); }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 80; background: var(--color-white); border: 2px solid var(--color-navy); border-radius: var(--radius-card); box-shadow: var(--shadow-soft); padding: var(--space-xs); margin: 0; list-style: none; max-height: min(70vh, 460px); overflow: auto; transform-origin: top center; animation: drop .18s var(--ease-out); }
@keyframes drop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.suggest li { display: flex; align-items: center; gap: var(--space-sm); min-height: 48px; padding: var(--space-xs) var(--space-sm); border-radius: 12px; cursor: pointer; }
.suggest li[aria-selected="true"], .suggest li:hover { background: var(--color-paper-2); }
.suggest .kind { margin-left: auto; font-size: var(--text-sm); color: var(--color-muted); }
.suggest .dot { width: 14px; height: 22px; border-radius: 4px 4px 6px 6px; flex: none; box-shadow: inset 0 0 0 2px var(--color-edge); }
.suggest .head { font-size: var(--text-sm); color: var(--color-muted); padding: var(--space-xs) var(--space-sm) 2px; min-height: 0; cursor: default; }
.suggest .head:hover { background: none; }
.suggest mark { background: none; color: var(--color-blue); font-weight: 700; }

/* ---------- Nav ---------- */
.nav { background: var(--color-white); border-bottom: 1px solid var(--color-line); }
.nav__list { list-style: none; margin: 0; padding: 0 var(--gutter); display: none; }
@media (min-width: 900px) {
  .nav__list { display: flex; gap: 2px; flex-wrap: wrap; }
  .nav__item { position: relative; }
  .nav__link { display: inline-flex; align-items: center; gap: var(--space-2xs); min-height: 48px; padding: 0 var(--space-sm); font-weight: 700; color: var(--color-ink); text-decoration: none; border: 0; background: none; border-radius: 10px; }
  .nav__link:hover, .nav__link[aria-expanded="true"] { color: var(--color-blue); background: var(--color-paper-3); }
  .nav__link svg { width: 14px; height: 14px; transition: transform .2s var(--ease-out); }
  .nav__link[aria-expanded="true"] svg { transform: rotate(180deg); }
  .mega { position: absolute; left: 0; top: 100%; z-index: 65; width: 760px; max-width: calc(100% + 400px); background: var(--color-white); border: 2px solid var(--color-navy); border-radius: var(--radius-card); box-shadow: var(--shadow-hard), var(--shadow-soft); padding: 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-md); animation: drop .2s var(--ease-out); }
  .mega h3 { font-size: var(--text-lg); margin-bottom: var(--space-xs); }
  .mega ul { list-style: none; margin: 0; padding: 0; }
  .mega a { display: flex; align-items: center; gap: var(--space-xs); min-height: 40px; color: var(--color-ink); text-decoration: none; font-weight: 600; border-radius: 8px; padding: 0 var(--space-xs); }
  .mega a:hover { background: var(--color-paper-3); color: var(--color-blue); }
  .mega .chip-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
}

/* mobile drawer (also used for cart) */
.drawer { position: fixed; inset: 0; z-index: 90; display: flex; overflow: hidden; visibility: hidden; pointer-events: none; }
.drawer.is-open { visibility: visible; pointer-events: auto; }
.drawer__scrim { position: absolute; inset: 0; background: var(--color-scrim); opacity: 0; transition: opacity .25s; border: 0; padding: 0; cursor: default; }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer__panel { position: relative; background: var(--color-white); width: 92%; max-width: 420px; height: 100%; display: flex; flex-direction: column; box-shadow: var(--shadow-soft); transform: translateX(-102%); transition: transform .3s var(--ease-out); }
.drawer--right { justify-content: flex-end; }
.drawer--right .drawer__panel { transform: translateX(102%); }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); padding: var(--space-md) var(--space-md); border-bottom: 1px solid var(--color-line); background: var(--color-paper-2); }
.drawer__head h2 { font-size: var(--text-xl); }
.drawer__body { flex: 1; overflow: auto; padding: var(--space-md); }
.drawer__foot { border-top: 1px solid var(--color-line); padding: var(--space-md); display: grid; gap: var(--space-sm); background: var(--color-paper-3); }
.mnav { list-style: none; margin: 0; padding: 0; }
.mnav > li { border-bottom: 1px solid var(--color-line); }
.mnav a, .mnav summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 var(--space-2xs); font-weight: 700; color: var(--color-ink); text-decoration: none; cursor: pointer; list-style: none; }
.mnav summary::-webkit-details-marker { display: none; }
.mnav details[open] summary svg { transform: rotate(180deg); }
.mnav summary svg { width: 16px; height: 16px; transition: transform .2s; }
.mnav details ul { list-style: none; margin: 0 0 var(--space-sm); padding: 0 0 0 var(--space-sm); }
.mnav details a { min-height: 44px; font-weight: 600; color: var(--color-ink-2); }

/* ---------- Common bits ---------- */
.crumbs { font-size: var(--text-sm); color: var(--color-muted); padding: var(--space-md) var(--gutter) 0; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.crumbs li + li::before { content: "/"; margin-right: var(--space-xs); color: var(--color-line); }
.crumbs a { color: var(--color-muted); }
.tag { display: inline-flex; align-items: center; min-height: 24px; padding: 0 var(--space-xs); border-radius: var(--radius-pill); font-size: 13px; font-weight: 600; background: var(--color-paper-3); color: var(--color-ink-2); border: 1px solid var(--color-line); }
.tag--sf { background: var(--color-sky-bg); color: var(--color-sky-text); border-color: var(--color-sky-line); }
.tag--df { background: var(--color-pink-bg); color: var(--color-pink-text); border-color: var(--color-pink-line); }
.tag--an { background: var(--color-ok-bg); color: var(--color-ok); border-color: var(--color-ok-line); }
.tag--local { background: var(--color-warn-bg); color: var(--color-warn-text); border-color: var(--color-warn-line); }
.tag--pop { background: var(--color-blue); color: var(--color-white); border-color: var(--color-blue); }
.badge-ws { display: inline-flex; align-items: center; gap: var(--space-2xs); min-height: 22px; padding: 0 var(--space-xs); border-radius: 6px; background: var(--color-ok); color: var(--color-white); font-size: 12px; font-weight: 700; }

/* bottle */
.bottle { width: 34px; height: 56px; flex: none; overflow: visible; }
.bottle .glass { fill: var(--color-white); stroke: var(--color-ink); stroke-width: 2; }
.bottle .cap { fill: var(--color-ink); }
.bottle .syrup { fill: var(--c, var(--color-sky)); transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(var(--fill, .42)); transition: transform .5s var(--ease-spring); }
.bottle .shine { fill: var(--color-white); opacity: .55; }
.bottle.is-bump { animation: wobble .5s var(--ease-spring); }
@keyframes wobble { 0% { transform: rotate(0); } 30% { transform: rotate(-8deg); } 60% { transform: rotate(6deg); } 100% { transform: rotate(0); } }

/* price */
.price { display: grid; gap: 1px; line-height: 1.2; }
.price__main { font-weight: 700; font-size: var(--text-lg); font-variant-numeric: tabular-nums; color: var(--color-ink); }
.price__was { font-size: var(--text-sm); color: var(--color-muted); text-decoration: line-through; font-variant-numeric: tabular-nums; }
.price__note { font-size: 13px; color: var(--color-muted); }
.price__note a { color: var(--color-blue); font-weight: 600; }
.price--ws .price__main { color: var(--color-ok); }
.price__row { display: flex; align-items: center; gap: var(--space-xs); flex-wrap: wrap; }
.price.is-flip .price__main { animation: flip .35s var(--ease-out); }
@keyframes flip { from { opacity: 0; transform: translateY(6px); } }

/* stepper */
.stepper { display: inline-grid; grid-template-columns: 44px 52px 44px; align-items: center; border: 2px solid var(--color-navy); border-radius: var(--radius-pill); background: var(--color-white); overflow: hidden; }
.stepper button { height: 44px; border: 0; background: transparent; font-size: 22px; font-weight: 700; color: var(--color-navy); display: grid; place-items: center; transition: background-color .12s, transform .12s; }
.stepper button:hover { background: var(--color-paper-2); }
.stepper button:active { transform: scale(.88); }
.stepper button:disabled { color: var(--color-line); cursor: not-allowed; background: transparent; }
.stepper input { width: 52px; height: 44px; border: 0; border-inline: 1px solid var(--color-line); text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; background: transparent; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus-visible { outline-offset: -3px; }
.stepper.has-qty { border-color: var(--color-blue); box-shadow: 0 0 0 3px var(--color-paper-2); }

/* heart */
.heart { width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center; color: var(--color-muted); transition: background-color .15s, color .15s; }
.heart:hover { background: var(--color-pink-bg); color: var(--color-pink-text); }
.heart svg { width: 24px; height: 24px; fill: transparent; stroke: currentColor; stroke-width: 2; transition: fill .2s; }
.heart[aria-pressed="true"] { color: var(--color-pink); }
.heart[aria-pressed="true"] svg { fill: currentColor; }
.heart.pop svg { animation: pop .45s var(--ease-spring); }
@keyframes pop { 0% { transform: scale(1); } 45% { transform: scale(1.35); } 100% { transform: scale(1); } }

/* select / inputs */
.select, .field input, .field select, .field textarea { min-height: 44px; border: 2px solid var(--color-line); border-radius: var(--radius-input); background: var(--color-white); padding: 0 var(--space-sm); width: 100%; transition: border-color .15s; }
.select:hover, .field input:hover, .field select:hover { border-color: var(--color-muted); }
.select:focus-visible, .field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--color-blue); box-shadow: 0 0 0 3px var(--color-paper-2); }
.field { display: grid; gap: var(--space-xs); }
/* Dropdowns: our own chevron, inset from the right exactly as far as the text is from the left (2px border + 16px). */
.select, .field select { -webkit-appearance: none; appearance: none; padding: 0 calc(var(--space-md) + var(--space-sm) + var(--space-sm)) 0 var(--space-md); color: var(--color-ink); cursor: pointer; text-overflow: ellipsis; }
.select-wrap { position: relative; display: block; min-width: 0; }
.select-key { font-size: var(--text-sm); font-weight: 600; color: var(--color-muted); }
.has-key .select-key { position: absolute; left: calc(var(--space-md) + 2px); top: 50%; transform: translateY(-50%); pointer-events: none; }
.has-key .select { padding-left: calc(var(--space-md) + var(--space-xl) + var(--space-xs)); font-weight: 700; }
.select-wrap::after { content: ""; position: absolute; right: calc(var(--space-md) + 2px); top: 50%; width: 12px; height: 8px; margin-top: calc(var(--space-2xs) * -1); background: var(--color-navy); clip-path: polygon(0 0, 50% 55%, 100% 0, 100% 45%, 50% 100%, 0 45%); pointer-events: none; }
.size-fixed { display: flex; align-items: center; min-height: 44px; padding: 0 var(--space-md); border: 2px solid var(--color-paper-3); border-radius: var(--radius-input); background: var(--color-paper-3); color: var(--color-ink-2); }
.field label { font-weight: 600; font-size: var(--text-sm); }
.field .hint { font-size: 13px; color: var(--color-muted); }
.field textarea { padding: var(--space-sm) var(--space-sm); min-height: 90px; }
.field input:user-invalid { border-color: var(--color-red-text); }
.field .err { font-size: 13px; color: var(--color-red-text); }

/* ---------- Quick order ---------- */
.qo-head { padding: var(--space-md) var(--gutter) 20px; display: grid; gap: var(--space-md); background: var(--color-paper-2); }
.qo-head__actions .btn { min-height: 44px; padding: 0 var(--space-md); font-size: var(--text-sm); }
.crumbs + .qo-head, .qo-band { background: var(--color-paper-2); }
.qo-band .crumbs { padding-bottom: 0; }

/* Top 10 shelf: tap a bottle to add one */
.shelf { display: grid; gap: var(--space-xs); min-width: 0; }
.shelf__title { font-family: var(--font-body); font-weight: 700; line-height: 1.4; font-size: var(--text-sm); color: var(--color-ink-2); }
.shelf__row { display: flex; gap: var(--space-2xs); overflow-x: auto; scrollbar-width: none; padding: var(--space-xs) 2px 0; border-bottom: 6px solid var(--color-navy); border-radius: 0 0 4px 4px; scroll-snap-type: x proximity; }
.shelf__row::-webkit-scrollbar { display: none; }
.shelf__btn { position: relative; flex: none; width: 66px; display: grid; justify-items: center; gap: var(--space-2xs); padding: var(--space-2xs) 2px var(--space-xs); border: 0; background: transparent; border-radius: 12px; scroll-snap-align: start; transition: transform .2s var(--ease-spring); }
.shelf__btn .bottle { width: 40px; height: 66px; }
.shelf__btn span { font-size: 12px; font-weight: 700; line-height: 1.15; text-align: center; color: var(--color-ink); }
.shelf__btn:hover { transform: translateY(-6px) rotate(-3deg); }
.shelf__btn:active { transform: translateY(2px) scale(.95); }
.shelf__btn .q { position: absolute; top: 0; right: 6px; min-width: 22px; height: 22px; padding: 0 var(--space-2xs); border-radius: 11px; background: var(--color-blue); color: var(--color-white); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.shelf__btn .q:empty { display: none; }
.shelf__hint { font-size: 13px; color: var(--color-muted); }
.qo-head__text { display: grid; gap: var(--space-xs); }
.qo-head__text p { color: var(--color-ink-2); font-size: var(--text-lg); }
.qo-head__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
@media (min-width: 1100px) {
  .qo-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: end; padding-top: var(--space-md); gap: var(--space-xl); }
}

.qo-tools { background: var(--color-white); border-block: 1px solid var(--color-line); padding: var(--space-sm) var(--gutter); display: grid; gap: var(--space-sm); }
.qo-tools > * { min-width: 0; }
.qo-tools__row { display: flex; gap: var(--space-sm); align-items: center; flex-wrap: wrap; }
.qo-tools__row .filter-search { flex: 1 1 260px; }
@media (max-width: 899px) { .qo-tools__row .filters-btn { flex: 1 1 0; } html.js .qo-tools__row .sort-wrap { display: none; } }
@media (min-width: 900px) { .sheet--filters .fgroup.fgroup--sort, html.js .sheet--filters .fgroup.fgroup--sort { display: none; } }
html:not(.js) .fgroup--sort { display: none; }
.view-toggle[aria-pressed="true"] { background: var(--color-paper-2); }
.filter-search { flex: 1; min-width: 0; display: flex; align-items: center; border: 2px solid var(--color-line); border-radius: var(--radius-pill); padding-left: var(--space-md); min-height: 46px; background: var(--color-white); }
.filter-search:focus-within { border-color: var(--color-blue); box-shadow: 0 0 0 3px var(--color-paper-2); }
.filter-search svg { width: 20px; height: 20px; color: var(--color-muted); flex: none; }
.filter-search input { border: 0; outline: 0; flex: 1; min-width: 0; padding: var(--space-xs) var(--space-sm); background: transparent; }
.filters-btn .n { background: var(--color-red-text); color: var(--color-white); border-radius: var(--radius-pill); min-width: 22px; height: 22px; display: inline-grid; place-items: center; font-size: 12px; }
.filters-btn .n:empty { display: none; }
.result-count { font-size: var(--text-sm); color: var(--color-muted); white-space: nowrap; }

@media (min-width: 900px) {
  .qo-tools { position: sticky; top: calc(var(--demo-h) + var(--header-h)); z-index: 40; }
  html[data-page="quick-order"] { scroll-padding-top: calc(var(--demo-h) + var(--header-h) + var(--tools-h, 120px) + var(--space-sm)); }
}

/* Filter panel: bottom sheet on phones, inline bar on desktop */
.sheet { position: fixed; inset: 0; z-index: 90; display: flex; align-items: flex-end; overflow: hidden; visibility: hidden; pointer-events: none; }
.sheet.is-open { visibility: visible; pointer-events: auto; }
.sheet__scrim { position: absolute; inset: 0; background: var(--color-scrim); opacity: 0; transition: opacity .25s; border: 0; }
.sheet.is-open .sheet__scrim { opacity: 1; }
.sheet__panel { position: relative; width: 100%; max-height: 86vh; display: flex; flex-direction: column; background: var(--color-white); border-radius: 24px 24px 0 0; transform: translateY(104%); transition: transform .32s var(--ease-out); box-shadow: var(--shadow-soft); }
.sheet.is-open .sheet__panel { transform: none; }
.sheet__grab { width: 44px; height: 5px; border-radius: 3px; background: var(--color-line); margin: var(--space-sm) auto 0; }
.sheet__head { display: flex; justify-content: space-between; align-items: center; padding: var(--space-xs) var(--space-md); }
.sheet__body { overflow: auto; padding: var(--space-2xs) var(--space-md) var(--space-md); display: grid; gap: var(--space-md); }
.sheet__foot { display: flex; gap: var(--space-sm); padding: var(--space-sm) var(--space-md) calc(var(--space-sm) + env(safe-area-inset-bottom)); border-top: 1px solid var(--color-line); }
.sheet__foot .btn { flex: 1; }
.fgroup { border: 0; margin: 0; padding: 0; display: grid; gap: var(--space-xs); }
.fgroup legend { font-weight: 700; margin-bottom: var(--space-xs); padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 44px; padding: 0 var(--space-md); border-radius: var(--radius-pill); border: 2px solid var(--color-line); background: var(--color-white); font-weight: 600; font-size: var(--text-sm); transition: background-color .15s, border-color .15s, color .15s; }
.chip:hover span { border-color: var(--color-muted); }
.chip input:checked + span { background: var(--color-blue); border-color: var(--color-blue); color: var(--color-white); }
.chip input:focus-visible + span { outline: 3px solid var(--color-focus); outline-offset: 2px; }

@media (min-width: 900px) {
  .filters-btn { display: none; }
  .sheet.sheet--filters { position: static; visibility: visible; pointer-events: auto; display: block; }
  .sheet--filters .sheet__scrim, .sheet--filters .sheet__grab, .sheet--filters .sheet__head, .sheet--filters .sheet__foot { display: none; }
  .sheet--filters .sheet__panel { transform: none; box-shadow: none; border-radius: 0; max-height: none; background: transparent; transition: none; }
  .sheet--filters .sheet__body { padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); overflow: visible; }
  .sheet--filters .fgroup { display: flex; align-items: center; gap: var(--space-xs); }
  .sheet--filters .fgroup legend { float: left; margin: 0 var(--space-2xs) 0 0; font-size: var(--text-sm); color: var(--color-muted); font-weight: 600; }
  .sheet--filters .chip span { min-height: 38px; padding: 0 var(--space-sm); }
}

/* Filter dropdowns (wide screens, with scripting). Without scripting the chips stay inline. */
.fgroup__dd { display: none; }
@media (min-width: 900px) {
  html.js .qo-tools { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); }
  html.js .qo-tools > .qo-tools__row:first-child { display: contents; }
  html.js .qo-tools .filter-search { flex: 1 1 220px; order: 0; }
  html.js .qo-tools .sheet--filters { order: 1; overflow: visible; }
  html.js .qo-tools .sort-wrap { order: 2; }
  html.js .qo-tools .view-toggle { order: 3; }
  html.js .qo-tools > .qo-tools__row:last-child { order: 4; flex: 1 1 100%; }
  html.js .sheet--filters .sheet__body { gap: var(--space-sm); flex-wrap: nowrap; }
  html.js .sheet--filters .fgroup { position: relative; display: block; }
  html.js .sheet--filters .fgroup legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  html.js .fgroup__dd { display: block; }
  html.js .fgroup__btn { display: flex; align-items: center; gap: var(--space-xs); min-height: 46px; min-width: 150px; text-align: left; font-weight: 700; white-space: nowrap; }
  html.js .fgroup__btn .select-key { position: static; }
  .fgroup__val { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  html.js .fgroup__btn.is-set { border-color: var(--color-blue); background: var(--color-paper-3); color: var(--color-blue); }
  html.js .sheet--filters .chips { display: none; position: absolute; z-index: 45; top: calc(100% + var(--space-xs)); left: 0; min-width: 100%; width: max-content; flex-direction: column; gap: 2px; padding: var(--space-xs); background: var(--color-white); border: 2px solid var(--color-navy); border-radius: var(--radius-input); box-shadow: var(--shadow-soft); }
  html.js .fgroup.is-open .chips { display: flex; }
  html.js .fgroup.is-open .fgroup__btn { border-color: var(--color-blue); }
  html.js .sheet--filters .chips .chip span { width: 100%; min-height: 40px; gap: var(--space-sm); padding: 0 var(--space-md) 0 var(--space-sm); border: 0; border-radius: 8px; font-size: var(--text-md); }
  html.js .sheet--filters .chips .chip span::before { content: ""; flex: none; width: 18px; height: 18px; border: 2px solid var(--color-muted); border-radius: 4px; background: var(--color-white); }
  html.js .sheet--filters .chips .chip input[type="radio"] + span::before { border-radius: 50%; }
  html.js .sheet--filters .chips .chip:hover span { background: var(--color-paper-3); }
  html.js .sheet--filters .chips .chip input:checked + span { background: var(--color-paper-3); color: var(--color-blue); }
  html.js .sheet--filters .chips .chip input:checked + span::before { border-color: var(--color-blue); background: var(--color-blue); box-shadow: inset 0 0 0 3px var(--color-white); }
  html.js .sheet--filters .chips .chip input:focus-visible + span { outline-offset: -2px; }
  .qo-clear { margin-left: auto; }
}
@media (min-width: 900px) and (max-width: 1199.98px) {
  html.js .qo-tools .filter-search { flex-basis: calc(100% - 180px); }
  html.js .qo-tools .view-toggle { order: 1; }
  html.js .qo-tools .sheet--filters { order: 2; }
  html.js .qo-tools .sort-wrap { order: 3; }
  html.js .fgroup__btn { min-width: 0; }
}
.az { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.az::-webkit-scrollbar { display: none; }
.az button { min-width: 34px; min-height: 36px; border: 0; border-radius: 8px; background: transparent; font-weight: 700; font-size: var(--text-sm); color: var(--color-blue); flex: none; }
.az button:hover { background: var(--color-paper-2); }
.az button:disabled { color: var(--color-line); cursor: default; background: transparent; }

.qo-layout { display: grid; gap: var(--space-lg); padding: var(--space-md) var(--gutter) 120px; }
@media (min-width: 1200px) {
  .qo-layout { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; padding-bottom: var(--space-2xl); }
}

.qo-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-sm); }
.qo-list:empty { min-height: 150vh; }
.shelf__row:empty { min-height: 112px; }
.qo-thead { display: none; }
.qo-row { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-areas: "b name heart" "b meta meta" "size size size" "price price step"; gap: var(--space-xs) var(--space-sm); align-items: center; padding: var(--space-md); border: 2px solid var(--color-line); border-radius: var(--radius-card); background: var(--color-white); transition: border-color .2s, box-shadow .2s, transform .2s var(--ease-out); }
.qo-list > li { content-visibility: auto; contain-intrinsic-size: auto 220px; }
@media (min-width: 760px) { .qo-list > li { contain-intrinsic-size: auto 84px; } }
.qo-row:hover { border-color: color-mix(in srgb, var(--c) 55%, var(--color-line)); }
.qo-row.has-qty { border-color: var(--color-blue); box-shadow: inset 6px 0 0 var(--c, var(--color-blue)); }
.qo-row .bottle { grid-area: b; align-self: start; }
.qo-row__name { grid-area: name; min-width: 0; }
.qo-row__name a { font-family: var(--font-display); font-size: var(--text-xl); color: var(--color-ink); text-decoration: none; line-height: 1.1; }
.qo-row__name a:hover { color: var(--color-blue); }
.qo-row__meta { grid-area: meta; display: flex; flex-wrap: wrap; gap: var(--space-xs); align-items: center; font-size: var(--text-sm); color: var(--color-ink-2); }
.qo-row__size { grid-area: size; }
.qo-row__price { grid-area: price; }
.qo-row .stepper { grid-area: step; justify-self: end; }
.qo-row .heart { grid-area: heart; justify-self: end; align-self: start; margin: calc(var(--space-xs) * -1) calc(var(--space-xs) * -1) 0 0; }
.qo-tip { margin-top: var(--space-md); padding: var(--space-sm) var(--space-md); border: 1px solid var(--color-sky-line); background: var(--color-sky-bg); border-radius: var(--radius-input); color: var(--color-ink); font-size: var(--text-sm); line-height: 1.5; }
.qo-tip[hidden] { display: none; }
.qo-row__line { font-size: var(--text-sm); color: var(--color-ink-2); }

/* Compact list: on by default for wholesale customers who reorder fast */
.qo-compact .qo-list { gap: var(--space-xs); }
.qo-compact .qo-list > li { contain-intrinsic-size: auto 136px; }
.qo-compact .qo-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name heart" "price price" "size step"; padding: var(--space-xs) var(--space-sm) var(--space-xs) var(--space-md); gap: var(--space-2xs) var(--space-sm); box-shadow: inset 6px 0 0 var(--c); border-radius: 14px; }
.qo-compact .qo-row.has-qty { box-shadow: inset 6px 0 0 var(--c), 0 0 0 1px var(--color-blue); }
.qo-compact .qo-row .bottle { display: none; }
.qo-compact .qo-row__name { display: flex; align-items: baseline; gap: var(--space-xs); flex-wrap: wrap; }
.qo-compact .qo-row__name a { font-size: var(--text-lg); }
.qo-compact .qo-row__meta { display: none; }
.qo-compact .qo-row__name .compact-line { font-size: 13px; color: var(--color-muted); }
.qo-compact .stepper { grid-template-columns: 40px 44px 40px; }
.qo-compact .stepper button, .qo-compact .stepper input { height: 40px; }
.qo-compact .stepper input { width: 44px; }
.qo-compact .select, .qo-compact .size-fixed { min-height: 40px; }
.qo-compact .qo-row .heart { margin: 0; width: 40px; height: 40px; }
.qo-compact .price__main { font-size: var(--text-md); }
.qo-compact .price--ws { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: var(--space-xs); }
.qo-compact .price__note { font-size: 12px; }
.qo-compact .price .price__note a { font-weight: 600; }
.compact-line { display: none; }
.qo-compact .compact-line { display: inline; }
@media (min-width: 760px) {
  .qo-compact .qo-list > li { contain-intrinsic-size: auto 56px; }
  .qo-compact .qo-row { grid-template-columns: minmax(0, 2.4fr) minmax(0, 1.3fr) minmax(0, 1.5fr) auto 40px; grid-template-areas: "name size price step heart"; padding: var(--space-2xs) var(--space-sm) var(--space-2xs) var(--space-lg); gap: var(--space-md); min-height: 56px; }
  .qo-compact .qo-thead { grid-template-columns: minmax(0, 2.4fr) minmax(0, 1.3fr) minmax(0, 1.5fr) 124px 40px; padding-left: var(--space-lg); }
  .qo-compact .qo-thead > span:first-child { display: none; }
  .qo-compact .price__note { flex-basis: 100%; }
}
.qo-letter { font-family: var(--font-display); color: var(--color-blue); font-size: var(--text-xl); padding: var(--space-xs) var(--space-2xs) 0; list-style: none; }
.qo-empty { padding: var(--space-xl); text-align: center; border: 2px dashed var(--color-line); border-radius: var(--radius-card); display: grid; gap: var(--space-sm); justify-items: center; }

@media (min-width: 760px) {
  .qo-row { grid-template-columns: 40px minmax(0, 2.2fr) minmax(0, 1.3fr) minmax(0, 1.5fr) auto 44px; grid-template-areas: "b name size price step heart" "b meta size price step heart"; padding: var(--space-sm) var(--space-md); gap: 2px var(--space-md); }
  .qo-row .heart { align-self: center; margin: 0; }
  .qo-row .bottle { align-self: center; }
  .qo-thead { display: grid; grid-template-columns: 40px minmax(0, 2.2fr) minmax(0, 1.3fr) minmax(0, 1.5fr) 140px 44px; gap: var(--space-md); padding: 0 var(--space-md) var(--space-2xs); font-size: var(--text-sm); color: var(--color-muted); font-weight: 600; }
}

/* summary aside + mobile selection bar */
.qo-aside { display: none; }
@media (min-width: 1200px) {
  .qo-aside { display: block; position: sticky; top: calc(var(--demo-h) + var(--header-h) + var(--tools-h, 120px) + 12px); }
}
.summary { border: 2px solid var(--color-navy); border-radius: var(--radius-card); box-shadow: var(--shadow-hard); background: var(--color-white); overflow: hidden; }
.summary__head { background: var(--color-paper-2); padding: var(--space-md) var(--space-md); }
.summary__head h2 { font-size: var(--text-xl); }
.summary__body { padding: var(--space-md) var(--space-md); display: grid; gap: var(--space-md); }
.summary__lines { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-xs); max-height: 240px; overflow: auto; }
.mini-shelf { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 2px var(--space-2xs); min-height: 64px; padding: var(--space-2xs) var(--space-2xs) 0; border-bottom: 5px solid var(--color-navy); border-radius: 0 0 4px 4px; }
.mini-shelf .bottle { width: 24px; height: 40px; animation: land .45s var(--ease-spring) both; }
.mini-shelf p { font-size: 13px; color: var(--color-muted); align-self: center; padding-bottom: var(--space-xs); }
@keyframes land { from { opacity: 0; transform: translateY(-18px); } }
.summary__lines li { display: grid; grid-template-columns: 14px minmax(0,1fr) auto; gap: var(--space-xs); align-items: center; font-size: var(--text-sm); }
.summary__lines .sw { width: 12px; height: 18px; border-radius: 3px 3px 5px 5px; box-shadow: inset 0 0 0 1.5px var(--color-edge); }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; }
.summary__total strong { font-family: var(--font-display); font-weight: 400; font-size: var(--text-3xl); color: var(--color-blue); font-variant-numeric: tabular-nums; }
.summary__small { font-size: 13px; color: var(--color-muted); }
.save-note { font-size: var(--text-sm); padding: var(--space-sm) var(--space-sm); border-radius: 12px; background: var(--color-ok-bg); color: var(--color-ok); font-weight: 600; }
.nudge { font-size: var(--text-sm); padding: var(--space-sm); border-radius: 12px; background: var(--color-paper-3); border: 1px dashed var(--color-line); }
.nudge strong { color: var(--color-ok); }

.boxmeter { display: grid; gap: var(--space-xs); }
.boxmeter__bar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: var(--space-2xs); }
.boxmeter__bar span { height: 12px; border-radius: 4px; background: var(--color-paper-2); position: relative; overflow: hidden; }
.boxmeter__bar span i { position: absolute; inset: 0; background: var(--color-sky); transform-origin: left center; transform: scaleX(var(--f, 0)); transition: transform .45s var(--ease-out); }
.boxmeter__text { font-size: 13px; color: var(--color-ink-2); }

.selbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: var(--space-sm) var(--gutter) calc(var(--space-sm) + env(safe-area-inset-bottom)); background: var(--color-ink); color: var(--color-white); display: flex; align-items: center; gap: var(--space-sm); box-shadow: 0 -8px 24px -12px var(--color-shadow); transform: translateY(0); transition: transform .3s var(--ease-out); }
.selbar__text { flex: 1; min-width: 0; line-height: 1.25; }
.selbar__text strong { font-family: var(--font-display); font-weight: 400; font-size: var(--text-xl); font-variant-numeric: tabular-nums; }
.selbar__text small { display: block; opacity: .85; font-size: 13px; }
.selbar .btn { border-color: var(--color-white); box-shadow: 0 3px 0 var(--color-white); }
.selbar .btn:hover { box-shadow: 0 5px 0 var(--color-white); }
.selbar .btn:active { box-shadow: 0 0 0 var(--color-white); }
@media (min-width: 1200px) { .selbar { display: none; } }

/* ---------- Cart drawer ---------- */
.cart-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-sm); }
.cart-line { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: var(--space-sm) var(--space-sm); align-items: center; padding-bottom: var(--space-sm); border-bottom: 1px solid var(--color-line); }
.cart-line__name { font-weight: 700; line-height: 1.25; }
.cart-line__name small { display: block; font-weight: 400; color: var(--color-muted); }
.cart-line .stepper { grid-template-columns: 40px 44px 40px; }
.cart-line .stepper button, .cart-line .stepper input { height: 40px; }
.cart-line__end { display: grid; justify-items: end; gap: var(--space-xs); }
.cart-line__remove { border: 0; background: none; color: var(--color-red-text); font-size: 13px; text-decoration: underline; min-height: 32px; }
.cart-empty { text-align: center; display: grid; gap: var(--space-md); justify-items: center; padding: 28px var(--space-xs); color: var(--color-ink-2); }
.forgot { margin-top: var(--space-md); padding: var(--space-md); border-radius: 16px; background: var(--color-paper-3); display: grid; gap: var(--space-sm); }
.forgot h3 { font-size: var(--text-lg); }
.forgot p { font-size: 13px; color: var(--color-ink-2); }
.forgot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-xs); }
.forgot li { display: flex; align-items: center; gap: var(--space-sm); }
.forgot li span { flex: 1; font-weight: 600; font-size: var(--text-sm); }
.cart-total { display: flex; justify-content: space-between; font-weight: 700; font-size: var(--text-lg); }

/* ---------- Dialog ---------- */
dialog.modal { border: 2px solid var(--color-navy); border-radius: var(--radius-card); padding: 0; width: calc(100% - 24px); max-width: 560px; max-height: calc(100vh - 32px); box-shadow: var(--shadow-hard), var(--shadow-soft); color: var(--color-ink); }
dialog.modal::backdrop { background: var(--color-scrim); }
dialog.modal[open] { animation: rise .25s var(--ease-out); }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.modal__head { display: flex; justify-content: space-between; align-items: center; padding: var(--space-md) var(--space-md); background: var(--color-paper-2); }
.modal__body { padding: var(--space-md); display: grid; gap: var(--space-md); }
.modal__body .grid2 { display: grid; gap: var(--space-md); }
@media (min-width: 560px) { .modal__body .grid2 { grid-template-columns: 1fr 1fr; } }
.choice-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-xs); }
.choice-list button { width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: var(--space-sm); min-height: 56px; padding: var(--space-xs) var(--space-md); border: 2px solid var(--color-line); border-radius: 14px; background: var(--color-white); font-weight: 700; }
.choice-list button:hover { border-color: var(--color-blue); background: var(--color-paper-3); }
.choice-list small { font-weight: 400; color: var(--color-muted); }

/* ---------- Toast ---------- */
.toasts { position: fixed; z-index: 95; left: 50%; bottom: 96px; transform: translateX(-50%); display: grid; gap: var(--space-xs); width: calc(100% - 24px); max-width: 440px; pointer-events: none; }
.toast { pointer-events: auto; background: var(--color-ink); color: var(--color-white); padding: var(--space-sm) var(--space-md); border-radius: 14px; box-shadow: var(--shadow-soft); display: flex; gap: var(--space-sm); align-items: center; justify-content: space-between; animation: rise .25s var(--ease-out); }
.toast button { border: 0; background: transparent; color: var(--color-white); text-decoration: underline; font-weight: 700; min-height: 36px; }
@media (min-width: 1200px) { .toasts { bottom: 24px; } }

/* fly-to-cart particle */
.fly { position: fixed; z-index: 99; width: 18px; height: 28px; border-radius: 5px 5px 8px 8px; pointer-events: none; box-shadow: inset 0 0 0 2px var(--color-edge); }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-navy); color: var(--color-white); margin-top: var(--space-2xl); }
.site-footer a { color: var(--color-white); }
.footer__in { padding: 40px var(--gutter) var(--space-lg); display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.footer__in h2 { color: var(--color-white); font-size: var(--text-xl); margin-bottom: var(--space-sm); }
.footer__in ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.footer__in li a { display: inline-flex; min-height: 36px; align-items: center; text-decoration: none; }
.footer__in li a:hover { text-decoration: underline; }
.footer__badge { width: 180px; height: auto; }
.footer__legal { border-top: 1px solid var(--color-glass-2); padding: var(--space-md) var(--gutter) 96px; font-size: 13px; display: flex; flex-wrap: wrap; gap: var(--space-xs) 20px; opacity: .9; }
@media (min-width: 1200px) { .footer__legal { padding-bottom: var(--space-md); } }

/* ---------- Home ---------- */
.ico { width: 18px; height: 18px; flex: none; }
.btn--lg { min-height: 56px; padding: 0 var(--space-xl); font-size: var(--text-lg); }

.welcome { display: grid; gap: var(--space-sm); padding: var(--space-md) var(--gutter); background: var(--color-ink); color: var(--color-white); }
.welcome h2 { color: var(--color-white); font-size: var(--text-2xl); }
.welcome__text { display: grid; gap: var(--space-2xs); }
.welcome__text p, .welcome__last { font-size: var(--text-sm); opacity: .92; display: flex; gap: var(--space-xs); align-items: center; flex-wrap: wrap; }
.welcome__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.welcome .btn--hot { border-color: var(--color-white); box-shadow: 0 3px 0 var(--color-white); }
.welcome .btn--quiet { color: var(--color-white); text-decoration: underline; }
.welcome .btn--quiet:hover { background: var(--color-glass-2); color: var(--color-white); }
@media (min-width: 1100px) { .welcome { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--space-lg); } }

.hero { display: grid; gap: var(--space-xl); padding: var(--space-lg) var(--gutter) var(--space-2xl); background: var(--color-paper-2); }
.hero__text { display: grid; gap: var(--space-md); align-content: center; }
.hero h1 { font-size: var(--text-4xl); line-height: .98; text-shadow: 3px 3px 0 var(--color-white); }
.hero__sub { font-size: var(--text-lg); color: var(--color-ink-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.hero__quick { display: flex; gap: var(--space-sm); align-items: center; padding: var(--space-sm) var(--space-md); border: 2px dashed var(--color-navy); border-radius: var(--radius-card); background: var(--color-white); color: var(--color-ink); text-decoration: none; font-size: var(--text-sm); transition: border-color .16s, transform .16s var(--ease-out); }
.hero__quick svg { width: 28px; height: 28px; color: var(--color-red-text); flex: none; }
.hero__quick strong { color: var(--color-blue); }
.hero__quick:hover { border-style: solid; border-color: var(--color-blue); color: var(--color-ink); transform: translateY(-2px); }
.hero__shelf { margin: 0; display: grid; gap: var(--space-sm); align-content: end; }
.hero__shelf figcaption { font-size: var(--text-sm); color: var(--color-ink-2); }
.hb-row { list-style: none; margin: 0; padding: 0 var(--space-xs); display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-xs); align-items: end; border-bottom: 10px solid var(--color-navy); border-radius: 0 0 6px 6px; }
.hb-row > li { min-width: 0; display: flex; }
.hb { width: 100%; min-width: 0; display: grid; justify-items: center; gap: var(--space-2xs); padding-bottom: var(--space-xs); color: var(--color-ink); text-decoration: none; transition: transform .25s var(--ease-spring); }
.hb .bottle { width: 100%; max-width: 104px; height: auto; aspect-ratio: 34 / 56; }
.hb__rank { font-family: var(--font-display); font-size: var(--text-lg); color: var(--color-red-deep); line-height: 1; }
.hb__name { font-size: 10.5px; font-weight: 700; line-height: 1.15; text-align: center; min-height: 2.3em; letter-spacing: -0.01em; hyphens: manual; }
@media (max-width: 559px) { .hb-row { gap: 2px; padding-inline: 0; } }
.hb:hover { transform: translateY(-10px) rotate(-3deg); color: var(--color-ink); }
.hb:hover .bottle { animation: wobble .5s var(--ease-out); }
/* Bottles rise onto the shelf one by one (transform and opacity only, so the first screen stays fast) */
html.js.motion .hb-row > li { animation: shelf-in .6s var(--ease-out) var(--d, 0ms) backwards; }
@keyframes shelf-in { from { opacity: 0; transform: translateY(28px); } }
@media (min-width: 760px) { .hb__name { font-size: var(--text-sm); } .hb__rank { font-size: var(--text-2xl); } }
@media (min-width: 1000px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: end; padding-top: var(--space-xl); gap: var(--space-2xl); }
}

.section { padding: var(--space-2xl) var(--gutter); }
.section--tint { background: var(--color-paper-3); }
.section--navy { background: var(--color-navy); color: var(--color-white); }
.section--navy h2 { color: var(--color-white); }
.section__head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-md); margin-bottom: var(--space-lg); }
.section__head h2 { margin-right: auto; font-size: var(--text-3xl); }
.section > h2 { font-size: var(--text-3xl); }

.tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-md); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.tile { height: 100%; display: grid; grid-template-rows: auto 1fr; gap: var(--space-sm); padding: var(--space-sm); border: 2px solid var(--color-line); border-radius: var(--radius-card); background: var(--color-white); color: var(--color-ink); text-decoration: none; transition: transform .2s var(--ease-out), border-color .2s, box-shadow .2s; }
.tile:hover { transform: translateY(-4px); border-color: var(--color-navy); box-shadow: var(--shadow-hard); color: var(--color-ink); }
.tile__art { height: 104px; display: grid; place-items: center; border-radius: 14px; overflow: hidden; background: color-mix(in srgb, var(--c) 20%, var(--color-white)); }
.tile__art .bottle { width: 44px; height: 72px; }
.tile__art img { width: 100%; height: 100%; object-fit: cover; }
.tile:hover .bottle, .tile:hover .cup { animation: wobble .5s var(--ease-out); }
.tile__text { display: grid; gap: var(--space-2xs); align-content: start; padding: 0 var(--space-2xs) var(--space-2xs); }
.tile h3 { font-size: var(--text-xl); }
.tile__text span { font-size: var(--text-sm); color: var(--color-ink-2); line-height: 1.4; }
.cup { width: 52px; height: 60px; overflow: visible; }
.cup__ice { fill: var(--c); stroke: var(--color-ink); stroke-width: 2; }
.cup__body { fill: var(--color-white); stroke: var(--color-ink); stroke-width: 2; stroke-linejoin: round; }
.cup__band { fill: var(--color-red); }

.row-nav { display: flex; gap: var(--space-2xs); }
.row-nav .icon-btn { border: 2px solid var(--color-line); background: var(--color-white); width: 44px; height: 44px; }
.row-nav .icon-btn svg { width: 22px; height: 22px; }
@media (hover: none), (max-width: 759px) { .row-nav { display: none; } }
.pop-row { list-style: none; margin: 0; padding: var(--space-2xs) 2px var(--space-md); display: grid; grid-auto-flow: column; grid-auto-columns: 74%; gap: var(--space-md); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scroll-padding-inline: 2px; }
@media (min-width: 560px) { .pop-row { grid-auto-columns: calc((100% - var(--space-md)) / 2.3); } }
@media (min-width: 900px) { .pop-row { grid-auto-columns: calc((100% - 3 * var(--space-md)) / 4); } }
@media (min-width: 1300px) { .pop-row { grid-auto-columns: calc((100% - 5 * var(--space-md)) / 6); } }
.pcard { position: relative; scroll-snap-align: start; display: grid; grid-template-rows: auto auto auto auto 1fr auto; gap: var(--space-xs); padding: var(--space-sm); border: 2px solid var(--color-line); border-radius: var(--radius-card); background: var(--color-white); transition: border-color .2s, transform .2s var(--ease-out); }
.pcard:hover { border-color: color-mix(in srgb, var(--c) 60%, var(--color-line)); transform: translateY(-3px); }
.pcard:hover .pcard__art .bottle { animation: wobble .5s var(--ease-out); }
.pcard__art { position: relative; height: 128px; display: grid; place-items: center; border-radius: 14px; background: color-mix(in srgb, var(--c) 16%, var(--color-white)); }
.pcard__art .bottle { width: 54px; height: 90px; }
.pcard__rank { position: absolute; left: var(--space-xs); top: var(--space-xs); padding: 2px var(--space-xs); border-radius: 6px; background: var(--color-white); font-size: 12px; font-weight: 700; color: var(--color-ink); }
.pcard__heart { position: absolute; top: var(--space-md); right: var(--space-md); background: var(--color-white); }
.pcard__name { font-size: var(--text-xl); margin-top: var(--space-2xs); }
.pcard__name a { color: var(--color-ink); text-decoration: none; }
.pcard__name a:hover { color: var(--color-blue); text-decoration: underline; }
.pcard__kind { font-size: var(--text-sm); color: var(--color-muted); }
.pcard__price { align-self: start; }
.pcard__add { width: 100%; }

.calc { display: grid; gap: var(--space-xl); }
@media (min-width: 900px) { .calc { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.calc__form { display: grid; gap: var(--space-md); }
.calc__form h2 { font-size: var(--text-3xl); }
.calc__lead { font-size: var(--text-lg); color: var(--color-ink-2); }
.calc__fields { display: grid; gap: var(--space-md); grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.calc__fields input { font-size: var(--text-lg); font-weight: 700; }
.calc__rule { font-size: var(--text-sm); color: var(--color-ink-2); padding: var(--space-sm) var(--space-md); border-radius: var(--radius-input); background: var(--color-paper-3); }
.calc__out { display: grid; gap: var(--space-md); padding: var(--space-lg); border: 2px solid var(--color-navy); border-radius: var(--radius-card); background: var(--color-paper-2); box-shadow: var(--shadow-hard); }
.calc__tag { justify-self: start; padding: 2px var(--space-xs); border-radius: 6px; background: var(--color-warn-bg); color: var(--color-warn-text); font-size: var(--text-sm); font-weight: 700; }
.calc__big { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-xs) var(--space-sm); }
.calc__big strong { font-family: var(--font-display); font-weight: 400; font-size: var(--text-4xl); line-height: 1; color: var(--color-blue); }
.calc__big span { font-size: var(--text-lg); font-weight: 700; }
.calc__jugs { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 2px var(--space-2xs); min-height: 44px; padding: 0 var(--space-2xs); border-bottom: 5px solid var(--color-navy); border-radius: 0 0 4px 4px; }
.calc__jugs .bottle { width: 22px; height: 36px; }
.calc__jugs .is-new .bottle { animation: land .45s var(--ease-spring) both; animation-delay: calc(var(--i) * 30ms); }
.calc__jugs em { font-style: normal; font-weight: 700; color: var(--color-navy); align-self: center; padding-left: var(--space-2xs); }
.calc__alt { margin: 0; display: grid; gap: var(--space-sm); }
.calc__alt div { display: grid; gap: 2px; }
.calc__alt dt { font-weight: 700; font-size: var(--text-sm); color: var(--color-ink-2); }
.calc__alt dd { margin: 0; }
@media (min-width: 560px) { .calc__alt div { grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: var(--space-sm); align-items: baseline; } }
.calc__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }

.ws { display: grid; gap: var(--space-xl); }
@media (min-width: 900px) { .ws { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; } }
.ws__img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 2px solid var(--color-navy); border-radius: var(--radius-card); box-shadow: var(--shadow-hard); }
.ws__text { display: grid; gap: var(--space-lg); }
.ws__text h2 { font-size: var(--text-3xl); }
.ws__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-md); font-size: var(--text-lg); }
.ws__list li { position: relative; padding-left: var(--space-xl); }
.ws__list li::before { content: ""; position: absolute; left: var(--space-xs); top: 2px; width: 10px; height: 18px; border: solid var(--color-ok); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.ws__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); align-items: center; }

.learn { display: grid; gap: var(--space-md); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.lcard { display: grid; grid-template-rows: auto 1fr auto; gap: var(--space-sm); padding: var(--space-lg); border: 2px solid var(--color-line); border-radius: var(--radius-card); background: var(--color-white); }
.lcard h3 { font-size: var(--text-xl); }
.lcard p { color: var(--color-ink-2); }
.lcard > a { font-weight: 700; display: inline-flex; align-items: center; min-height: 44px; }
.fotw { grid-template-rows: auto auto 1fr auto; background: var(--color-ink); border-color: var(--color-ink); color: var(--color-white); }
.fotw h3 { color: var(--color-white); }
.fotw .fotw__tip { color: var(--color-white); opacity: .88; font-size: var(--text-sm); }
.fotw__stage { display: flex; align-items: center; gap: var(--space-md); min-height: 112px; padding: var(--space-sm) var(--space-md); border-radius: 14px; background: var(--color-glass-1); }
.fotw__stage .bottle { width: 44px; height: 72px; }
.fotw__stage.is-final .bottle { animation: wobble .5s var(--ease-spring); }
.fotw__name { display: grid; gap: 2px; font-family: var(--font-display); font-size: var(--text-2xl); line-height: 1.05; }
.fotw__name small { font-family: var(--font-body); font-size: var(--text-sm); opacity: .85; }
.fotw__hint { opacity: .8; font-size: var(--text-sm); }
.fotw__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.fotw .btn { border-color: var(--color-white); box-shadow: 0 3px 0 var(--color-white); }
.fotw .btn:hover { box-shadow: 0 5px 0 var(--color-white); }

.reviews { column-gap: var(--space-md); }
@media (max-width: 759px) {
  .reviews { display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: var(--space-md); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--space-sm); scrollbar-width: thin; align-items: start; }
  .review { margin: 0; scroll-snap-align: start; }
}
@media (min-width: 760px) { .reviews { columns: 2; } }
@media (min-width: 1200px) { .reviews { columns: 3; } }
.review { break-inside: avoid; margin: 0 0 var(--space-md); padding: var(--space-lg); border: 2px solid var(--color-line); border-radius: var(--radius-card); background: var(--color-white); }
.review blockquote { margin: 0; }
.review blockquote p { font-size: var(--text-lg); line-height: 1.5; }
.review figcaption { margin-top: var(--space-sm); font-weight: 700; color: var(--color-blue); }
.review--slot { border-style: dashed; background: var(--color-paper-3); color: var(--color-muted); }
.review--slot strong { display: block; color: var(--color-ink-2); }

.why { display: grid; gap: var(--space-lg); margin-top: var(--space-lg); grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.why__item { display: grid; gap: var(--space-xs); align-content: start; padding-top: var(--space-md); border-top: 6px solid var(--color-red); }
.why__item:nth-child(2) { border-top-color: var(--color-pink); }
.why__item:nth-child(3) { border-top-color: var(--color-sky); }
.why__item h3 { color: var(--color-white); font-size: var(--text-2xl); }
.why__item p { opacity: .92; }
.visit { display: grid; gap: var(--space-xs); align-content: start; padding: var(--space-lg); border-radius: var(--radius-card); background: var(--color-white); color: var(--color-ink); }
.visit__note { font-size: var(--text-sm); color: var(--color-ink-2); }
.visit__actions { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-top: var(--space-xs); }
html[data-page="home"] .site-footer { margin-top: 0; border-top: 1px solid var(--color-glass-2); }

/* ---------- Account ---------- */
.sw { display: inline-block; flex: none; width: 12px; height: 18px; border-radius: 3px 3px 5px 5px; box-shadow: inset 0 0 0 1.5px var(--color-edge); }
.sw--lg { width: 18px; height: 28px; border-radius: 4px 4px 7px 7px; }
.ac-band { background: var(--color-paper-2); }
.ac-demo { margin: var(--space-sm) var(--gutter) 0; padding: var(--space-sm) var(--space-md); display: flex; flex-wrap: wrap; gap: var(--space-sm); align-items: center; justify-content: space-between; border: 1px solid var(--color-warn-line); border-radius: var(--radius-input); background: var(--color-warn-bg); color: var(--color-warn-text); font-weight: 600; font-size: var(--text-sm); }
.ac-head { display: grid; gap: var(--space-lg); padding: var(--space-md) var(--gutter) var(--space-xl); }
.ac-head__text { display: grid; gap: var(--space-xs); align-content: end; }
.ac-head__badges { display: flex; flex-wrap: wrap; gap: var(--space-xs); align-items: center; }
.ac-head h1 { font-size: var(--text-4xl); line-height: 1; }
.ac-head__note { color: var(--color-ink-2); font-size: var(--text-lg); }
@media (min-width: 1100px) { .ac-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); align-items: end; } }
.ac-actions { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-sm); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .ac-actions { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ac-action { width: 100%; height: 100%; min-height: 76px; display: flex; gap: var(--space-sm); align-items: center; padding: var(--space-sm) var(--space-md); border: 2px solid var(--color-navy); border-radius: var(--radius-card); background: var(--color-white); color: var(--color-ink); text-align: left; text-decoration: none; box-shadow: var(--shadow-hard-sm); transition: transform .16s var(--ease-out), box-shadow .16s var(--ease-out); }
.ac-action:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--color-navy); color: var(--color-ink); }
.ac-action:active { transform: translateY(3px); box-shadow: none; }
.ac-action svg { width: 28px; height: 28px; flex: none; color: var(--color-blue); fill: none; stroke: currentColor; stroke-width: 2; }
.ac-action span { display: grid; gap: 2px; min-width: 0; }
.ac-action strong { font-family: var(--font-display); font-weight: 400; font-size: var(--text-lg); line-height: 1.1; color: var(--color-blue); }
.ac-action small { font-size: 13px; color: var(--color-ink-2); line-height: 1.3; }
.ac-action--hot { background: var(--color-red-text); }
.ac-action--hot svg, .ac-action--hot strong, .ac-action--hot small { color: var(--color-white); }
.ac-action--hot:hover { color: var(--color-white); background: var(--color-red-deep); }

.ac-layout { display: grid; gap: var(--space-lg); padding: var(--space-lg) var(--gutter) var(--space-2xl); }
.ac-main, .ac-side { display: contents; }
.ac-forgot { order: -1; }
@media (min-width: 1100px) {
  .ac-layout { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: start; }
  .ac-main, .ac-side { display: grid; gap: var(--space-lg); }
  .ac-forgot { order: 0; }
}
.ac-card { display: grid; gap: var(--space-md); padding: var(--space-lg); border: 2px solid var(--color-line); border-radius: var(--radius-card); background: var(--color-white); min-width: 0; }
.ac-card h2 { font-size: var(--text-2xl); }
.ac-card__head { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-md); align-items: center; }
.ac-card__head h2 { margin-right: auto; }
.ac-card__note { font-size: var(--text-sm); color: var(--color-muted); }
.ac-sub { font-size: var(--text-xl); margin-top: var(--space-xs); }
.ac-empty { list-style: none; padding: var(--space-md); border: 2px dashed var(--color-line); border-radius: 14px; color: var(--color-muted); font-size: var(--text-sm); }

.orders { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-sm); }
.order { border: 2px solid var(--color-line); border-radius: 16px; background: var(--color-white); transition: border-color .2s; }
.order.is-open { border-color: var(--color-blue); }
.order__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "main total" "sw status" "btns btns"; gap: var(--space-xs) var(--space-md); align-items: center; padding: var(--space-md); }
.order__sw { grid-area: sw; display: flex; gap: var(--space-2xs); }
.order__main { grid-area: main; min-width: 0; }
.order__main h3 { font-size: var(--text-xl); color: var(--color-ink); }
.order__main p { font-size: var(--text-sm); color: var(--color-ink-2); }
.status { grid-area: status; justify-self: end; display: inline-flex; align-items: center; min-height: 26px; padding: 0 var(--space-xs); border-radius: 6px; background: var(--color-ok-bg); color: var(--color-ok); font-size: 13px; font-weight: 700; }
.order__total { grid-area: total; font-family: var(--font-display); font-weight: 400; font-size: var(--text-xl); color: var(--color-blue); }
.order__btns { grid-area: btns; display: flex; flex-wrap: wrap; gap: var(--space-xs); }
@media (min-width: 900px) {
  .order__row { grid-template-columns: 112px minmax(0, 1fr) auto 96px auto; grid-template-areas: "sw main status total btns"; }
  .order__total { text-align: right; }
}
.order__detail { padding: 0 var(--space-md) var(--space-md); border-top: 1px solid var(--color-line); }
.od-lines { list-style: none; margin: 0; padding: 0; }
.od-lines li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto 80px; gap: var(--space-sm); align-items: center; padding: var(--space-xs) 0; border-bottom: 1px solid var(--color-paper-3); font-size: var(--text-sm); }
.od-name a { font-weight: 700; color: var(--color-ink); }
.od-name small { display: block; color: var(--color-muted); }
.od-total { text-align: right; }
.od-foot { display: flex; justify-content: space-between; gap: var(--space-sm); padding-top: var(--space-sm); font-size: var(--text-sm); color: var(--color-ink-2); }
.od-foot strong { color: var(--color-ink); }

.flists { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-md); grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.flist { display: grid; gap: var(--space-sm); align-content: start; padding: var(--space-md); border-radius: 16px; background: var(--color-paper-3); border: 1px solid var(--color-line); }
.flist__head { display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-sm); align-items: baseline; }
.flist__head h3 { font-size: var(--text-xl); }
.flist__count { font-size: var(--text-sm); color: var(--color-muted); }
.flist__shelf { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 2px; min-height: 44px; padding: 0 var(--space-2xs); border-bottom: 5px solid var(--color-navy); border-radius: 0 0 4px 4px; }
.flist__shelf .bottle { width: 22px; height: 36px; }
.flist__total { font-size: var(--text-sm); color: var(--color-ink-2); }
.flist__total strong { font-size: var(--text-lg); color: var(--color-ink); }
.flist__items summary { min-height: 44px; display: flex; align-items: center; font-weight: 700; color: var(--color-blue); cursor: pointer; }
.flist__items ul { list-style: none; margin: 0; padding: 0 0 var(--space-xs); display: grid; gap: var(--space-2xs); font-size: var(--text-sm); }
.flist__items li { display: flex; gap: var(--space-xs); align-items: center; }
.flist__items li small { color: var(--color-muted); }
.flist__items li .num { margin-left: auto; font-weight: 700; }
.flist__btns, .flist__rename { display: flex; flex-wrap: wrap; gap: var(--space-xs); align-items: center; }
.flist__rename input { flex: 1 1 160px; min-width: 0; min-height: 44px; padding: 0 var(--space-md); border: 2px solid var(--color-blue); border-radius: var(--radius-input); background: var(--color-white); }

.saved { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-sm); grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.sv { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto auto; gap: var(--space-sm); align-items: center; padding: var(--space-xs) var(--space-xs) var(--space-xs) var(--space-sm); border: 1px solid var(--color-line); border-radius: 14px; }
.sv .bottle { width: 26px; height: 42px; }
.sv__text { display: grid; min-width: 0; }
.sv__text a, .fg__text a { font-weight: 700; color: var(--color-ink); }
.sv__text small, .fg__text small { color: var(--color-muted); font-size: 13px; }
.sv .price__main, .fg .price__main { font-size: var(--text-md); }

.ac-forgot { border-color: var(--color-navy); box-shadow: var(--shadow-hard); }
.forgot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-sm); }
.fg { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: var(--space-sm); align-items: center; padding-bottom: var(--space-sm); border-bottom: 1px solid var(--color-line); }
.fg__text { display: grid; gap: 2px; min-width: 0; }
.fg__price { display: flex; align-items: baseline; gap: var(--space-2xs); flex-wrap: wrap; }
.fg__price small { font-size: 13px; color: var(--color-muted); }

.ac-phone { background: var(--color-paper-3); }
.ac-phone__ghost { display: grid; gap: var(--space-xs); padding: var(--space-sm); border: 2px dashed var(--color-line); border-radius: 14px; }
.ac-phone__ghost span { height: 12px; border-radius: 6px; background: var(--color-line); }
.ac-phone__ghost span:nth-child(2) { width: 70%; }
.ac-phone__ghost span:nth-child(3) { width: 85%; }
.ac-phone__actions { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.ac-details { margin: 0; display: grid; gap: var(--space-sm); grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.ac-details dt { font-size: var(--text-sm); font-weight: 700; color: var(--color-muted); }
.ac-details dd { margin: 0; }
.ac-details small { color: var(--color-muted); }

/* ---------- Product ---------- */
.pd { display: grid; gap: var(--space-xl); padding: var(--space-md) var(--gutter) var(--space-2xl); }
@media (min-width: 900px) { .pd { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: var(--space-2xl); } }
.pd__stage { position: relative; display: grid; place-items: center; min-height: 260px; padding: var(--space-2xl) var(--space-lg); border: 2px solid color-mix(in srgb, var(--c, var(--color-sky)) 40%, var(--color-line)); border-radius: var(--radius-card); background: color-mix(in srgb, var(--c, var(--color-sky)) 18%, var(--color-white)); overflow: hidden; }
@media (min-width: 900px) { .pd__stage { position: sticky; top: calc(var(--demo-h) + var(--header-h) + var(--space-md)); min-height: 560px; } }
.pd__bottle .bottle { width: clamp(96px, 24vw, 230px); height: auto; aspect-ratio: 34 / 56; }
.pd__bottle img { width: min(100%, 420px); border-radius: var(--radius-card); }
.pd__badges { position: absolute; top: var(--space-md); left: var(--space-md); display: flex; gap: var(--space-xs); }
.pd__rank { display: inline-flex; align-items: center; min-height: 36px; padding: 0 var(--space-sm); border-radius: 10px; background: var(--color-red-deep); color: var(--color-white); font-family: var(--font-display); font-size: var(--text-lg); }
.pd__photo-note { position: absolute; left: var(--space-md); right: var(--space-md); bottom: var(--space-sm); text-align: center; font-size: 13px; color: var(--color-ink-2); }
.pd__buy { display: grid; gap: var(--space-md); align-content: start; min-width: 0; }
.pd__line { font-weight: 600; color: var(--color-ink-2); }
.pd__buy h1 { font-size: var(--text-4xl); line-height: 1; margin-top: calc(var(--space-xs) * -1); }
.pd__tags { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.pd__tags:empty { display: none; }
.pd__price .price__main { font-size: var(--text-2xl); font-variant-numeric: tabular-nums; }
.pd__sizes { border: 0; margin: 0; padding: 0; display: grid; gap: var(--space-xs); min-width: 0; }
.pd__sizes legend { font-weight: 700; padding: 0; margin-bottom: var(--space-xs); }
.pd__size-opts { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.size-opt { position: relative; }
.size-opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.size-opt span { display: grid; gap: 2px; min-width: 120px; padding: var(--space-sm) var(--space-md); border: 2px solid var(--color-line); border-radius: var(--radius-input); background: var(--color-white); transition: border-color .15s, background-color .15s; }
.size-opt small { color: var(--color-ink-2); font-size: var(--text-sm); }
.size-opt:hover span { border-color: var(--color-muted); }
.size-opt input:checked + span { border-color: var(--color-blue); background: var(--color-paper-3); box-shadow: 0 0 0 3px var(--color-paper-2); }
.size-opt input:focus-visible + span { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.pd__yield { padding: var(--space-sm) var(--space-md); border: 1px solid var(--color-ok-line); border-radius: var(--radius-input); background: var(--color-ok-bg); }
.pd__yield strong { color: var(--color-ok); }
.pd__usual { padding: var(--space-sm) var(--space-md); border: 1px solid var(--color-sky-line); border-radius: var(--radius-input); background: var(--color-sky-bg); font-size: var(--text-sm); }
.linkish { border: 0; background: none; padding: 0; min-height: 32px; color: var(--color-blue); font-weight: 700; text-decoration: underline; }
.pd__cta { display: flex; flex-wrap: wrap; gap: var(--space-sm); align-items: center; }
.pd__add { flex: 1 1 0; min-width: 0; }
.pd__heart { width: 52px; height: 52px; border: 2px solid var(--color-line); }
.pd__facts { list-style: none; margin: 0; padding: var(--space-md) 0 0; display: grid; gap: var(--space-xs); border-top: 1px solid var(--color-line); font-size: var(--text-sm); color: var(--color-ink-2); }

.pd-fbt__why { color: var(--color-ink-2); }
.fbt { display: grid; gap: var(--space-lg); }
@media (min-width: 900px) { .fbt { grid-template-columns: minmax(0, 1fr) 320px; align-items: center; } }
.fbt__items { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-sm); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.fbt__item { position: relative; border: 2px solid var(--color-line); border-radius: var(--radius-card); background: var(--color-white); transition: border-color .15s; }
.fbt__item:has(input:checked) { border-color: var(--color-blue); }
.fbt__item label { display: grid; grid-template-columns: 24px 40px minmax(0, 1fr); gap: var(--space-sm); align-items: center; padding: var(--space-sm) var(--space-md); cursor: pointer; }
.fbt__item input { width: 22px; height: 22px; margin: 0; accent-color: var(--color-blue); }
.fbt__art { display: grid; place-items: center; }
.fbt__art .bottle { width: 30px; height: 50px; }
.fbt__text { display: grid; gap: 2px; min-width: 0; }
.fbt__text small { color: var(--color-muted); font-size: 13px; }
.fbt__text .price__main { font-size: var(--text-md); }
.fbt__item { display: grid; align-content: space-between; }
.fbt__link { justify-self: start; display: inline-flex; align-items: center; min-height: 32px; margin: 0 0 var(--space-xs) calc(var(--space-3xl) + var(--space-xl)); font-size: var(--text-sm); font-weight: 700; }
.fbt__sum { display: grid; gap: var(--space-sm); padding: var(--space-lg); border: 2px solid var(--color-navy); border-radius: var(--radius-card); background: var(--color-white); box-shadow: var(--shadow-hard); }
.fbt__sum p { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-sm); font-weight: 700; }
.fbt__sum strong { font-family: var(--font-display); font-weight: 400; font-size: var(--text-3xl); color: var(--color-blue); }

.pd-about { display: grid; gap: var(--space-xl); }
@media (min-width: 900px) { .pd-about { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; } }
.pd-about__text, .pd-about__text > div { display: grid; gap: var(--space-md); }
.pd-about__text h2 { font-size: var(--text-3xl); }
.pd-about__text p { font-size: var(--text-lg); }
.pd-about__text .sample { font-size: var(--text-md); color: var(--color-muted); padding: var(--space-md); border: 2px dashed var(--color-line); border-radius: var(--radius-input); }
.sample .tag { margin-right: var(--space-xs); }
.pd-about__specs { padding: var(--space-lg); border-radius: var(--radius-card); background: var(--color-paper-3); }
.pd-about__specs h3 { margin-bottom: var(--space-sm); }
.specs { margin: 0; }
.specs div { display: grid; grid-template-columns: minmax(0, 8rem) minmax(0, 1fr); gap: var(--space-sm); padding: var(--space-sm) 0; border-bottom: 1px solid var(--color-line); }
.specs dt { font-size: var(--text-sm); font-weight: 700; color: var(--color-muted); }
.specs dd { margin: 0; overflow-wrap: anywhere; }

.pd-faq { display: grid; gap: var(--space-xl); }
@media (min-width: 900px) { .pd-faq { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; } .pd-faq__help { position: sticky; top: calc(var(--demo-h) + var(--header-h) + var(--space-md)); } }
.pd-faq__list { display: grid; gap: var(--space-md); }
.pd-faq__list h2 { font-size: var(--text-3xl); }
.faq { display: grid; gap: var(--space-sm); }
.faq__item { border: 2px solid var(--color-line); border-radius: 16px; background: var(--color-white); }
.faq__item[open] { border-color: var(--color-blue); }
.faq__item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--space-md); min-height: 56px; padding: var(--space-sm) var(--space-lg); cursor: pointer; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary h3 { font-size: var(--text-lg); }
.faq__icon { position: relative; width: 16px; height: 16px; flex: none; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 3px; border-radius: 2px; background: var(--color-navy); transition: transform .2s var(--ease-out); }
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: rotate(0deg); }
.faq__item p { padding: 0 var(--space-lg) var(--space-lg); color: var(--color-ink-2); }
.faq__src { font-size: var(--text-sm); color: var(--color-muted); }
.pd-faq__help { display: grid; gap: var(--space-sm); padding: var(--space-lg); border-radius: var(--radius-card); background: var(--color-navy); color: var(--color-white); }
.pd-faq__help h3 { color: var(--color-white); font-size: var(--text-2xl); }
.pd-faq__hours { font-size: var(--text-sm); opacity: .9; }
.pd-faq__btns { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.pd-faq__school { color: var(--color-white); font-weight: 700; display: inline-flex; align-items: center; min-height: 44px; }
.pd-faq__school:hover { color: var(--color-white); }

.pd-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; align-items: center; gap: var(--space-md); padding: var(--space-sm) var(--gutter) calc(var(--space-sm) + env(safe-area-inset-bottom)); background: var(--color-ink); color: var(--color-white); }
.pd-bar__text { flex: 1; min-width: 0; line-height: 1.25; }
.pd-bar__text strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: var(--text-lg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-bar__text small { opacity: .85; font-size: 13px; }
.pd-bar .btn { border-color: var(--color-white); box-shadow: 0 3px 0 var(--color-white); }
@media (max-width: 899.98px) { html.has-pd-bar body { padding-bottom: 76px; } }
@media (min-width: 900px) { .pd-bar { display: none; } }

/* sticky quick-order shortcut (wholesale, phones, non quick-order pages) */
.qo-fab { position: fixed; right: 14px; bottom: 16px; z-index: 50; display: none; }
html.mode-wholesale .qo-fab { display: inline-flex; }
@media (min-width: 900px) { html.mode-wholesale .qo-fab { display: none; } }

/* ---------- Cursor (desktop, fine pointers only) ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 120; pointer-events: none; display: none; }
.cursor__dot, .cursor__ring { position: absolute; left: 0; top: 0; border-radius: 50%; will-change: transform; }
.cursor__dot { width: 10px; height: 10px; margin: -5px 0 0 -5px; background: var(--cc, var(--color-blue)); transition: background-color .2s; }
.cursor__ring { width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 2px solid var(--cc, var(--color-blue)); opacity: .55; transition: border-color .2s, opacity .2s; }
.cursor__ring i { position: absolute; inset: 0; border-radius: 50%; transform: scale(var(--s, 1)); border: inherit; transition: transform .25s var(--ease-spring); }
html.has-cursor .cursor { display: block; }
html.has-cursor .cursor__ring { border: 0; }
html.has-cursor .cursor.is-hot { --s: 1.6; }
html.has-cursor .cursor.is-down { --s: .7; }
.cursor__flake { position: absolute; left: 0; top: 0; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--cc, var(--color-sky)); pointer-events: none; animation: flake .7s ease-out forwards; }
@keyframes flake { to { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.4); } }

/* ---------- Reveal (one soft rise per section) ---------- */
html.js.motion .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
html.js.motion .reveal.is-in { opacity: 1; transform: none; }

noscript p { padding: var(--space-md) var(--gutter); background: var(--color-warn-bg); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  html.js .reveal { opacity: 1 !important; transform: none !important; }
  .cursor { display: none !important; }
}
