/* ==========================================================================
   Sundaze site v2 (2026-11-07): English-first, phone layout like the bird's
   nest shops we compared (menu left · logo centre · cart right).
   Loaded after styles.css + shop.css; styles.css itself is unchanged.
   ========================================================================== */

/* --- 1. Header: menu left, logo centre, language + cart right on phones -- */
.product__media,.series__photo,.offer__media,.process__shot { border-radius:20px; overflow:hidden; }
.product__media > img,.product__media > video { object-fit:cover; object-position:50% 50%; }
.product__flag { border-radius:20px; }
@media (max-width: 1023px) {
  .header__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 4px; }
  .header__inner .burger { justify-self: start; margin-left: -10px; }
  .header__inner .brand { justify-self: center; }
  .header__inner .header__actions { justify-self: end; margin-right: -6px; width: auto !important; gap: 0; }
  .header__inner .cart-btn { width: 40px; }
}
@media (max-width: 360px) {
  .header__inner .brand__mark { display: none; }
}
/* New wordmark logo (SUNDAZE · Beauty in every sip), transparent PNG */
.brand__logo { display: block; height: 58px; width: auto; }
.footer__logo { display: block; height: 72px; width: auto; filter: brightness(0) invert(.94) sepia(.2); } /* cream on the dark footer */
@media (max-width: 1023px) { .brand__logo { height: 44px; } }
@media (max-width: 360px) { .brand__logo { height: 38px; } }
.checkout-head .brand__logo, .co-head .brand__logo { height: 48px; }

/* Language + currency switch: globe · EN · RM, opens a small panel */
.locale { position: relative; }
.locale-btn {
  display: inline-flex; align-items: center; gap: 7px; height: 46px; padding: 0 14px;
  border: 1px solid var(--line); background: transparent; cursor: pointer; color: var(--ink);
  font-family: var(--f-label); font-size: 13px; font-weight: 600; letter-spacing: .06em;
}
.locale-btn:hover, .locale-btn[aria-expanded="true"] { border-color: var(--gold-light); background: var(--cream-2, #F6F0E7); }
.locale-btn > svg { flex: none; width: 18px; height: 18px; color: var(--gold); }
.locale-btn__label { display: inline-flex; align-items: center; gap: 7px; }
.locale-btn__dot { color: var(--gold-light); }
/* globe = language, flag = currency: [globe] EN · [flag] MYR */
[data-locale-cur] { display: inline-flex; align-items: center; gap: 6px; }
.locale-flag { display: inline-block; flex: none; width: 21px; height: 14px; border-radius: 2px; overflow: hidden; box-shadow: 0 0 0 1px rgba(43, 33, 26, .2); line-height: 0; }
.locale-flag > svg { display: block; width: 100%; height: 100%; }
/* "SGD Singapore" used to run past the panel edge (2026-11-08): wider panel, and the label may wrap inside its button */
.locale-seg button { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px 7px; min-width: 0; }
.locale-pop {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 70; width: 372px; padding: 16px;
  background: var(--cream); border: 1px solid var(--line); box-shadow: 0 24px 48px -20px rgba(43, 33, 26, .42);
}
.locale-pop[hidden] { display: none; }
.locale-pop__label { margin: 0 0 8px; font-family: var(--f-label); font-size: 10.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-2); }
.locale-pop__label + .locale-seg + .locale-pop__label { margin-top: 16px; }
.locale-seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.locale-seg button {
  min-height: 44px; padding: 8px 10px; border: 1px solid var(--line); background: #fff; cursor: pointer;
  font-size: 14px; color: var(--ink-soft); text-align: center;
}
.locale-seg button b { margin-right: 4px; font-family: var(--f-label); font-weight: 600; }
.locale-seg button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--cream); }
.locale-pop__note { margin: 12px 0 0; font-size: 12px; line-height: 1.6; color: var(--muted); }
@media (min-width: 1024px) { .header__actions { gap: 12px; } }
@media (max-width: 1023px) {
  .locale { position: static; }
  /* phones: two rows, the icon in a column of its own so the words line up
       [globe] EN
       [flag]  MYR */
  .locale-btn {
    display: grid; grid-template-columns: 18px auto; column-gap: 6px; row-gap: 3px;
    align-items: center; justify-items: start; height: 44px; padding: 0 4px; border-color: transparent;
    font-size: 11px; line-height: 1.2; letter-spacing: .04em;
  }
  .locale-btn:hover, .locale-btn[aria-expanded="true"] { background: transparent; border-color: transparent; }
  .locale-btn__label, .locale-btn [data-locale-cur] { display: contents; }
  .locale-btn__dot { display: none; }
  .locale-btn > svg { grid-column: 1; grid-row: 1; width: 16px; height: 16px; justify-self: center; }
  .locale-btn [data-locale-lang] { grid-column: 2; grid-row: 1; }
  .locale-btn .locale-flag { grid-column: 1; grid-row: 2; width: 18px; height: 12px; justify-self: center; }
  .locale-btn .locale-code { grid-column: 2; grid-row: 2; }
  .locale-pop { position: absolute; top: 100%; left: 12px; right: 12px; width: auto; }
}
/* The header switch replaces the region dropdown in the top bar */
.local-bar label { display: none !important; }

/* Chinese mode: Chinese becomes the main text, so the small Chinese helper lines are hidden */
html[data-lang="zh"] .sec-cn, html[data-lang="zh"] .hero__cn, html[data-lang="zh"] .faq__cn,
html[data-lang="zh"] .stats__label small, html[data-lang="zh"] .step__title small,
html[data-lang="zh"] .product .product__name, html[data-lang="zh"] .nav-groups a small,
html[data-lang="zh"] .flavour-chip small, html[data-lang="zh"] .en-only { display: none; }
html[data-lang="en"] .zh-only { display: none; }
html[data-lang="zh"] .h-sec--en, html[data-lang="zh"] .hero__title--en, html[data-lang="zh"] .product__title,
html[data-lang="zh"] .nav-groups a, html[data-lang="zh"] .flavour-card__name {
  font-family: var(--f-serif-cn); font-weight: 400; letter-spacing: .02em;
}
html[data-lang="zh"] .hero__title--en { font-size: clamp(36px, 8.4vw, 66px); line-height: 1.25; }
html[data-lang="zh"] .h-sec--en { font-size: clamp(26px, 5.2vw, 42px); line-height: 1.3; }
html[data-lang="zh"] .product__title { font-size: 19px; }
html[data-lang="zh"] .nav-groups a { font-size: 17px; }
/* Help + Story pages in Chinese */
html[data-lang="zh"] .help-hero__cn, html[data-lang="zh"] .policy__cn, html[data-lang="zh"] .story-hero__cn,
html[data-lang="zh"] .help-faq .faq__q .cn { display: none; }
html[data-lang="zh"] .help-hero__title, html[data-lang="zh"] .policy__head h2, html[data-lang="zh"] .story-hero__title,
html[data-lang="zh"] .value h3, html[data-lang="zh"] .story-numbers strong {
  font-family: var(--f-serif-cn); font-weight: 400; letter-spacing: .02em;
}
html[data-lang="zh"] .help-hero__title, html[data-lang="zh"] .story-hero__title { font-size: clamp(34px, 8vw, 60px); line-height: 1.25; }
html[data-lang="zh"] .policy__head h2 { font-size: clamp(28px, 4vw, 38px); }
html[data-lang="zh"] .value h3 { font-size: 19px; }
.policy-zh-note { margin: 14px 0 0; padding: 10px 14px; background: #F6F0E7; font-size: 13.5px; line-height: 1.7; color: var(--muted); }

/* --- 2. Menu drawer slides in from the left, grouped ---------------------- */
.nav-drawer--left .nav-drawer__panel {
  left: 0; right: auto;
  transform: translateX(-100%);
  box-shadow: 30px 0 60px -20px rgba(43, 33, 26, 0.4);
}
.nav-drawer--left.is-open .nav-drawer__panel { transform: none; }
.nav-groups__label {
  display: block; margin: 24px 0 2px;
  font-family: var(--f-label); font-size: 10px; font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; color: var(--gold-2);
}
.nav-groups__label:first-child { margin-top: 2px; }
.nav-groups a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 12px 0; font-family: var(--f-display); font-size: 21px; line-height: 1.2;
}
.nav-groups a small { font-family: var(--f-sans-cn); font-size: 12px; color: var(--muted); }

/* --- 3. English headings with a quiet Chinese line ----------------------- */
.h-sec--en {
  font-family: var(--f-display); font-weight: 500; letter-spacing: -.005em;
  font-size: clamp(32px, 6.4vw, 54px); line-height: 1.08;
}
.sec-cn { margin-top: 6px; font-family: var(--f-serif-cn); font-size: 14px; letter-spacing: .14em; color: var(--muted); }
.hero__title--en {
  font-family: var(--f-display); font-weight: 500; letter-spacing: -.01em;
  font-size: clamp(42px, 10vw, 76px); line-height: 1.02;
}
.hero__cn { font-family: var(--f-serif-cn); font-size: 15px; letter-spacing: .16em; color: var(--muted); margin-top: -6px; }
.hero__lede { line-height: 1.75; }

/* Phone hero: short copy so the bottle shows on the first screen */
@media (max-width: 1023px) {
  .hero { padding-top: 22px; }
  .hero__copy { gap: 12px; }
  .hero__cta { flex-direction: row; align-items: center; gap: 14px; }
  .hero__cta .btn { flex: 0 0 auto; height: 52px; padding: 0 26px; font-size: 16px; }
  .hero__cta-note { align-self: center; text-align: left; font-size: 12.5px; line-height: 1.4; }
  .hero__inner { gap: 18px; }
}

/* Small Chinese helpers inside English labels */
.stats__label small, .step__title small {
  display: block; margin-top: 2px; font-family: var(--f-sans-cn); font-size: 12px;
  font-weight: 400; letter-spacing: .04em; color: var(--muted);
}
.faq__cn { display: block; margin-top: 3px; font-family: var(--f-sans-cn); font-size: 13px; font-weight: 400; color: var(--muted); }
/* FAQ question row: English on line 1, Chinese right under it, "+" on the right.
   (The old flex + space-between spread three items out, so the Chinese floated mid-row.) */
.faq__q { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 16px; align-items: center; }
.faq__q > .faq__cn, .help-faq .faq__q > .cn { grid-column: 1; grid-row: 2; }
.faq__q::after { grid-column: 2; grid-row: 1 / span 2; }
.flavour-chip small { margin-left: 4px; font-size: 11.5px; opacity: .7; }
.flavour-chip__emoji { margin-right: 6px; font-size: 16px; line-height: 1; font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; }
.local-extra h2 small { margin-left: 8px; font-size: 14px; color: var(--muted); }

/* --- 4. Product cards: English name first, Chinese name below ------------ */
.product__title { font-family: var(--f-display); font-weight: 500; font-size: 24px; line-height: 1.12; color: var(--ink); }
.product .product__name { font-family: var(--f-sans-cn); font-size: 13px; letter-spacing: .04em; color: var(--muted); }
@media (min-width: 1024px) { .product__title { font-size: 27px; } }
/* Bestsellers on phones/tablets: name and price stack on the left; the name block takes the spare
   height so every card's price and Add to cart sit on the same line, even when a name wraps. */
@media (max-width: 1023px) {
  .product-rail { align-items: stretch; }
  .product {
    grid-template-columns: 1fr;
    grid-template-areas: "media" "info" "price" "add";
    grid-template-rows: auto 1fr auto auto;
    align-content: stretch;
    row-gap: 10px;
  }
  .product__info { align-self: start; }
  .product__price { align-self: end; justify-self: start; font-size: 22px; margin-top: 4px; }
  .product__add { width: 100%; justify-content: center; }
}
.flavour-card__name { font-family: var(--f-display); font-weight: 500; }
.flavour-card__en { font-style: normal; font-family: var(--f-sans-cn); letter-spacing: .04em; }

/* --- 4b. Photos sit inside the page instead of being stretched edge to edge --- */
/* Special-version split layout belongs below the festival, not in the top hero. */
.series--taste { padding:56px 0 64px; background:var(--cream); font-family:"Figtree",var(--f-sans-cn); }
.series--taste .series__inner { display:grid; grid-template-columns:5fr 6fr; gap:clamp(40px,6vw,108px); align-items:start; }
.series--taste .series__copy { min-width:0; padding:0; gap:20px; }
.series--taste h2 { font-family:"Fraunces",Georgia,serif; font-size:clamp(44px,4.6vw,66px); font-weight:400; font-variation-settings:'SOFT' 30,'WONK' 0; letter-spacing:-.028em; line-height:1.08; margin:0; }
.series--taste .lede { font-size:18px; line-height:1.6; }
.series--taste .sub-en { margin:0; }
.series--taste .flavour-card { border-radius:20px; width:100%; max-width:none; background:#fff; }
/* Cards made from the catalog for new products (2026-11-15: built like the original cards).
   With an English name: English title, Chinese name below. Without one (product--zh-only): the Chinese
   name is the title, set in the Chinese serif instead of the Latin display face's fallback, and the second
   name line would only repeat it. */
.product--catalog.product--zh-only .product__name { display:none; }
.product--catalog.product--zh-only .product__title {
  font-family:var(--f-serif-cn); font-weight:400; font-size:19px; line-height:1.3; letter-spacing:.02em;
}
/* The whole uploaded photo shows (any shape); a blurred copy of it fills the rest of the 4:5 frame. */
.product--catalog .product__media { isolation:isolate; }
.product--catalog .product__media::before {
  content:""; position:absolute; inset:-24px; z-index:-1;
  background:var(--photo, none) center / cover no-repeat; filter:blur(22px) saturate(1.05); opacity:.6;
}
.product--catalog .product__media > .product__photo { position:relative; object-fit:contain; }
.bestsellers .product__note { margin:2px 0 0; font-size:12.5px; line-height:1.55; color:var(--muted); display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
/* Jar Add to cart: the same thin pill as the product cards below (was a solid brown block). */
.series--taste [data-add-jar].btn {
  height:46px; min-height:46px; padding:0 22px; font-size:14px; gap:8px;
  border-radius:999px; background:transparent; color:var(--ink); border:1px solid rgba(43, 33, 26, .55);
  transition:background .25s ease, color .25s ease, border-color .25s ease, transform .15s ease;
}
.series--taste [data-add-jar].btn svg { width:16px; height:16px; }
.series--taste [data-add-jar].btn:hover:not(:disabled) { background:var(--ink); color:var(--cream); border-color:var(--ink); }
.series--taste [data-add-jar].btn:active:not(:disabled) { transform:scale(.96); }
.series--taste [data-add-jar].btn:disabled { background:var(--sand); border-color:transparent; color:var(--muted); }
.series--taste .series__photo { position:relative; display:block; order:0; padding:0; width:100%; height:auto; min-height:0; aspect-ratio:.89; border-radius:20px; overflow:hidden; background:var(--cream-3); }
.series--taste .series__photo > img { width:100%; height:100%; max-width:none; aspect-ratio:auto; display:block; object-fit:cover; object-position:50% 55%; border-radius:0; outline:none; box-shadow:none; }
.series__float { position:absolute; bottom:24px; left:24px; width:min(300px,calc(100% - 48px)); padding:16px; border-radius:20px; background:#fff; color:var(--ink); border:1px solid var(--line); }
.series__float > div,.series__float p { display:flex; justify-content:space-between; gap:12px; }
.series__float > div { font-size:14px; color:var(--muted); }
.series__float p { margin:6px 0 0; font-size:16px; font-weight:500; }
.series__float [data-series-price] { flex:none; }
html[data-lang="zh"] .series--taste h2 { font-family:var(--f-serif-cn); line-height:1.25; letter-spacing:.01em; }
@media(max-width:1023px) {
  .series--taste { padding:36px 0 44px; }
  .series--taste .series__inner { grid-template-columns:1fr; gap:28px; }
  .series--taste .series__photo { aspect-ratio:1.05; max-width:700px; }
  .series--taste .series__copy { gap:18px; }
  /* 手机/平板：先介绍、再看照片、再选口味，最后才是「加入购物车」 */
  .series--taste .series__inner { display:flex; flex-direction:column; gap:16px; }
  .series--taste .series__copy { display:contents; }
  .series--taste .series__copy > * { margin-top:0; margin-bottom:0; }
  .series--taste .series__copy > .eyebrow { order:1; }
  .series--taste .series__copy > h2 { order:2; }
  .series--taste .series__copy > .sec-cn { order:3; margin-top:-8px; }
  .series--taste .series__copy > .sub-en { order:4; }
  .series--taste .series__copy > .lede { order:5; }
  .series--taste .series__photo { order:6; margin:8px 0; }
  .series--taste .flavours { order:7; }
  .series--taste .flavour-card { order:8; }
  .series--taste [data-add-jar] { order:9; align-self:stretch !important; width:100%; justify-content:center; min-height:46px; }
}
@media(max-width:480px) {
  .series--taste h2 { font-size:42px; }
  .series--taste .lede { font-size:17px; }
  .series--taste .series__photo { aspect-ratio:.94; }
  .series__float { bottom:16px; left:16px; width:calc(100% - 32px); padding:14px; }
}

/* --- 4b-2. Flavour tabs: a dark pill that glides to the picked flavour (A),
   and a wash of the flavour's colour that spreads from the pointer (C).
   Equal-width grid so the pill keeps one size: 2 across in English, 3 across in Chinese. */
.flavours { position:relative; display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:8px; }
html[data-lang="zh"] .flavours { grid-template-columns:repeat(3, minmax(0, 1fr)); }
.flavours .flavour-chip {
  position:relative; z-index:1; isolation:isolate; overflow:hidden;
  display:flex; align-items:center; justify-content:center; min-height:44px; padding:0 12px; white-space:nowrap;
  background:transparent; color:var(--muted);
  transition:color .3s ease, border-color .3s ease;
  -webkit-tap-highlight-color:transparent;
}
/* C: the colour circle, centred where the pointer came in, grows to cover the chip */
.flavours .flavour-chip::before {
  content:""; position:absolute; z-index:-1; left:var(--wx, 50%); top:var(--wy, 50%);
  width:var(--wd, 220%); aspect-ratio:1; border-radius:50%; background:var(--wash, #EFE2C8);
  transform:translate(-50%, -50%) scale(0); pointer-events:none;
  transition:transform .55s cubic-bezier(.22, .8, .24, 1), opacity .3s ease;
}
.flavours .flavour-chip.is-washed { color:var(--ink); border-color:var(--wash, var(--line-2)); }
.flavours .flavour-chip.is-washed::before { transform:translate(-50%, -50%) scale(1); }
.flavours .flavour-chip:hover { color:var(--ink); }
.flavours .flavour-chip:focus-visible { outline:2px solid var(--gold); outline-offset:3px; }
/* A: the pill itself (placed by app.js); the picked chip turns see-through so the pill shows */
.flavours__pill {
  position:absolute; left:0; top:0; z-index:0; border-radius:999px; background:var(--ink);
  pointer-events:none; opacity:0; will-change:transform;
  transition:transform .5s cubic-bezier(.32, .72, 0, 1), width .5s cubic-bezier(.32, .72, 0, 1), height .5s cubic-bezier(.32, .72, 0, 1);
}
.flavours.has-pill .flavours__pill { opacity:1; }
.flavours:not(.has-pill) .flavour-chip[aria-selected="true"] { background:var(--ink); border-color:var(--ink); color:var(--cream); }
.flavours.no-anim .flavours__pill { transition:none; }
.flavours.has-pill .flavour-chip[aria-selected="true"] {
  background:transparent; border-color:transparent; color:var(--cream); transition-delay:.12s;
}
.flavours .flavour-chip[aria-selected="true"]::before { opacity:0; transition:transform .55s cubic-bezier(.22, .8, .24, 1), opacity .3s ease .15s; }
@media (prefers-reduced-motion: reduce) {
  .flavours__pill, .flavours .flavour-chip, .flavours .flavour-chip::before { transition:none !important; }
}

/* --- 4d. Bestsellers: 3 across from 768px (no arrows), swipe with snap on phones,
   a buy-X-get-Y bar with live progress, and "6 for RM 90" under each price. ---------- */
.bestsellers .sec-head--rail { margin-bottom:18px; }
.bestsellers .sec-head__all { display:block; flex:none; }
html[data-lang="zh"] .sec-cn--keep { display:block; }

.promo-bar {
  display:flex; align-items:center; flex-wrap:wrap; gap:6px 12px; margin:0 0 26px; padding:11px 20px;
  border-radius:999px; background:#FAEEDA; color:#633806; font-size:14px; line-height:1.4;
}
.promo-bar[hidden] { display:none; }
.promo-bar__icon { flex:none; }
.promo-bar__label { font-weight:600; letter-spacing:.02em; }
.promo-bar__progress { margin-left:auto; }
.promo-bar__progress:empty { display:none; }
.promo-bar.is-next .promo-bar__progress, .promo-bar.is-done .promo-bar__progress { font-weight:600; }
@media (min-width:1024px) { .promo-bar { margin-bottom:36px; } }
@media (max-width:767px) {
  .promo-bar { border-radius:18px; padding:10px 14px; font-size:13.5px; }
  .promo-bar__progress { margin-left:0; flex-basis:100%; padding-left:30px; }
}

/* phones: one card at ~78% so the next one peeks out; snaps card by card */
.bestsellers .product-rail { scroll-snap-type:x mandatory; }
.bestsellers .product { flex:0 0 78%; }
@media (min-width:768px) {
  .bestsellers .product-rail {
    display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:20px;
    overflow:visible; margin-inline:0; padding:0; scroll-snap-type:none;
  }
  .bestsellers .product { flex:none; }
}
@media (min-width:1024px) { .bestsellers .product-rail { gap:28px; } }

/* card: name block takes the spare height, so prices and buttons line up across cards */
.bestsellers .product {
  grid-template-columns:auto minmax(0, 1fr);
  grid-template-areas:"media media" "info info" "price bundle" "add add";
  grid-template-rows:auto 1fr auto auto;
  align-content:stretch; gap:12px 10px;
}
.bestsellers .product__rule { display:none; }
.bestsellers .product__price { align-self:baseline; justify-self:start; margin-top:4px; }
.product__bundle { grid-area:bundle; align-self:baseline; font-size:13px; color:#633806; white-space:nowrap; }
.bestsellers .product__add, .bestsellers .product__qty { width:100%; justify-self:stretch; }
/* 3 across: "6 for RM 90" sits right under the price, so long prices never crowd the button */
@media (min-width:768px) {
  .bestsellers .product {
    grid-template-columns:minmax(0, 1fr);
    grid-template-areas:"media" "info" "price" "bundle" "add";
    grid-template-rows:auto 1fr auto auto auto;
  }
  .bestsellers .product__price { align-self:end; }
  .bestsellers .product__bundle { align-self:start; justify-self:start; margin-top:-8px; }
}
@media (min-width:1200px) {
  .bestsellers .product {
    grid-template-columns:minmax(0, 1fr) auto;
    grid-template-areas:"media media" "info info" "rule rule" "price add" "bundle add";
    grid-template-rows:auto auto 1fr auto auto;
  }
  .bestsellers .product__rule { display:block; }
  .bestsellers .product__add, .bestsellers .product__qty { width:auto; justify-self:end; align-self:center; }
}
/* Featured products next to the bestsellers (2026-11-15). 4 cards share one row (2 × 2 on tablets);
   with 5 or more, rows of three with the last row centred — an extra card never sits alone at the left. */
@media (min-width:768px) {
  .bestsellers .product-rail[data-count="4"] { grid-template-columns:repeat(2, minmax(0, 1fr)); }
  .bestsellers .product-rail[data-many] { display:flex; flex-wrap:wrap; justify-content:center; }
  .bestsellers .product-rail[data-many] > .product { flex:0 0 calc((100% - 40px) / 3); min-width:0; }
}
@media (min-width:1024px) {
  .bestsellers .product-rail[data-count="4"] { grid-template-columns:repeat(4, minmax(0, 1fr)); gap:22px; }
  .bestsellers .product-rail[data-many] > .product { flex-basis:calc((100% - 56px) / 3); }
}
@media (min-width:1200px) {
  /* four narrower cards keep price, "6 for …" and the button stacked (the side-by-side row needs a wider card) */
  .bestsellers .product-rail[data-count="4"] > .product {
    grid-template-columns:minmax(0, 1fr);
    grid-template-areas:"media" "info" "price" "bundle" "add";
    grid-template-rows:auto 1fr auto auto auto;
  }
  .bestsellers .product-rail[data-count="4"] .product__rule { display:none; }
  .bestsellers .product-rail[data-count="4"] :is(.product__add, .product__qty) { width:100%; justify-self:stretch; align-self:auto; }
}
/* the flavour's own light colour shows behind the video while it loads */
.bestsellers .product:nth-child(1) .product__media { background:#FAEEDA; }
.bestsellers .product:nth-child(2) .product__media { background:#FBEAF0; }
.bestsellers .product:nth-child(3) .product__media { background:#FAECE7; }
/* hover: the video card lifts and tilts a little, with a soft spring */
@media (hover:hover) and (min-width:768px) {
  .bestsellers .product:hover { transform:none; }
  .bestsellers .product__media { transition:transform .45s cubic-bezier(.34, 1.56, .64, 1), box-shadow .45s ease; }
  .bestsellers .product__media > video { transition:transform .6s cubic-bezier(.22, .8, .24, 1); }
  .bestsellers .product:hover .product__media { transform:translateY(-10px) rotate(-1.5deg); box-shadow:0 28px 46px -26px rgba(43, 33, 26, .5); }
  .bestsellers .product:hover .product__media > video { transform:scale(1.04); }
}

/* Add to cart (every product card): thin pill, fills dark on hover, presses in */
.product__add.btn {
  border-radius:999px; background:transparent; color:var(--ink); border:1px solid rgba(43, 33, 26, .55);
  transition:background .25s ease, color .25s ease, border-color .25s ease, transform .15s ease;
}
.product__add.btn:hover:not(:disabled) { background:var(--ink); color:var(--cream); border-color:var(--ink); }
.product__add.btn:active:not(:disabled) { transform:scale(.96); }
.product__add.btn:disabled { background:var(--sand); border-color:transparent; color:var(--muted); }
.product__add[hidden] { display:none; }
.product[hidden] { display:none !important; }
.announce[hidden] { display:none !important; }
/* …and once it's in the cart: −  2 in cart  + */
.product__qty {
  grid-area:add; display:flex; align-items:center; justify-content:space-between; gap:6px;
  height:46px; min-width:150px; padding:0 5px; border-radius:999px; background:var(--ink); color:var(--cream);
  animation:qty-in .42s cubic-bezier(.34, 1.56, .64, 1) both;
}
.product__qty[hidden] { display:none; }
.product__qty button {
  display:grid; place-items:center; width:36px; height:36px; padding:0; border:0; border-radius:50%;
  background:transparent; color:inherit; font-size:20px; line-height:1; cursor:pointer;
  transition:background .2s ease, transform .15s ease;
}
.product__qty button:hover { background:rgba(252, 250, 246, .14); }
.product__qty button:active { transform:scale(.88); }
.product__qty button:focus-visible { outline:2px solid var(--cream); outline-offset:-3px; }
.product__qty-n { font-size:14px; font-weight:500; letter-spacing:.02em; white-space:nowrap; }
@keyframes qty-in { from { transform:scale(.9); opacity:.5; } to { transform:none; opacity:1; } }
@media (min-width:1024px) { .product__qty { height:44px; justify-self:end; align-self:center; } }
@media (max-width:639px) { .shop-grid .product__qty { height:42px; min-width:0; } .shop-grid .product__qty-n { font-size:12.5px; } }
/* the cart count in the header pops when something is added */
@keyframes badge-pop { 0% { transform:scale(1); } 40% { transform:scale(1.35); } 100% { transform:scale(1); } }
.cart-badge.is-pop { animation:badge-pop .45s cubic-bezier(.34, 1.56, .64, 1); }
@media (prefers-reduced-motion: reduce) {
  .bestsellers .product__media, .bestsellers .product__media > video { transition:none !important; transform:none !important; }
  .product__qty, .cart-badge.is-pop { animation:none; }
  .product__add.btn:active:not(:disabled), .product__qty button:active { transform:none; }
}
/* How we make it: three equal arches, no staggering; swipe on phones */
.process__shot:nth-child(2) { margin-top: 0 !important; }
.process__shot img { aspect-ratio: 3 / 4; border-radius: 999px 999px 14px 14px; object-fit: cover; }
.process__shot:nth-child(1) img { object-position: 50% 42%; }
.process__shot:nth-child(2) img { object-position: 50% 62%; }
.process__shot:nth-child(3) img { object-position: 50% 64%; }
.process__shot figcaption { padding-left: 4px; }
@media (min-width: 1024px) { .process__gallery { gap: 22px; } }
@media (max-width: 1023px) {
  .process__gallery {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 64%; gap: 14px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  }
  .process__gallery::-webkit-scrollbar { display: none; }
  .process__shot { scroll-snap-align: start; }
}

/* --- 4c. Reviews: customer messages from our Instagram (translation + original Chinese) --- */
.review-card__tag--from { letter-spacing: .12em; text-transform: uppercase; }
html[data-lang="zh"] .review-card__tag--from { letter-spacing: .08em; }
.review-card--msg .review-card__text[lang="en"] { -webkit-line-clamp: 3; }
.review-card__orig {
  margin: -2px 0 0; font-family: var(--f-serif-cn); font-size: 12.5px; line-height: 1.7; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* --- 5. Phone: a cart bar that explains the offer; WhatsApp floats above it -----------------
   The bar was switched off in the redesign. It is back (2026-11-10) because on a phone it is the one
   place that always shows the offer and how far the cart is from the free bottle. app.js (paintCartBar)
   shows it when there is an offer or something in the cart. Desktop keeps the header cart only. */
.bottom-bar {
  left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); padding: 10px 10px 10px 16px;
  border-radius: 20px; align-items: center; gap: 12px;
}
.bottom-bar[hidden] { display: none; }
.bottom-bar__info { gap: 2px; cursor: pointer; border: 0; padding: 0; background: none; text-align: left; font: inherit; color: inherit; min-height: 44px; justify-content: center; }
.bottom-bar__info:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 4px; border-radius: 6px; }
.bottom-bar__line { font-style: normal; font-size: 18px; line-height: 1.2; letter-spacing: .01em; }
html[data-lang="zh"] .bottom-bar__line { font-family: var(--f-serif-cn); font-size: 16px; }
.bottom-bar__hint { font-size: 11.5px; }
.bottom-bar__promo { font-size: 12.5px; line-height: 1.35; color: rgba(252, 250, 246, .84); }
.bottom-bar[data-phase="claim"] .bottom-bar__promo, .bottom-bar[data-phase="done"] .bottom-bar__promo { color: #F3D9A4; font-weight: 600; }
.bottom-bar .promo-steps { margin-top: 6px; max-width: 240px; }
.bottom-bar .btn { border-radius: 999px; }
@media (max-width: 1023px) {
  html.has-cart-bar .wa-float { bottom: calc(var(--cart-bar-height, 112px) + 24px + env(safe-area-inset-bottom)); }
  html.has-cart-bar .site-footer { padding-bottom: calc(var(--cart-bar-height, 112px) + 40px + env(safe-area-inset-bottom)); }
  .cart__panel { max-height: calc(100dvh - 12px); border-radius: 20px 20px 0 0; }
  .cart__body { min-height: 64px; }
  .cart__foot { max-height: 60dvh; overflow-y: auto; overscroll-behavior: contain; }
  .cart__foot > * { flex-shrink: 0; }
  .cart__foot [data-checkout] { min-height: 48px; }
  .cart .stepper button { min-width: 44px; min-height: 44px; }
}
@media (max-width: 360px) {
  .hero__card { right: 0; }
  .bottom-bar { left: 8px; right: 8px; padding-left: 12px; gap: 8px; }
  .bottom-bar__line { font-size: 16px; }
  .bottom-bar .btn { padding-inline: 12px !important; font-size: 13px !important; }
  .cart__head, .cart__foot { padding-left: 16px; padding-right: 16px; }
  [data-cart-lines] .cart-line { grid-template-columns: 64px minmax(0, 1fr); gap: 8px 12px; }
  [data-cart-lines] .product-photo { grid-column: 1; grid-row: 1 / span 3; width: 64px; height: 80px; }
  [data-cart-lines] .cart-line__info { grid-column: 2; grid-row: 1; }
  [data-cart-lines] .cart-line__sum { grid-column: 2; grid-row: 2; justify-self: start; font-size: 18px; }
  [data-cart-lines] .stepper { grid-column: 2; grid-row: 3; }
}

/* Offer progress: one mark per bottle in a set, the free ones are gift marks (app.js promoSteps). */
.promo-steps { display: flex; align-items: center; gap: 4px; }
.promo-steps[hidden] { display: none; }
.promo-steps i { flex: 1 1 0; min-width: 5px; height: 5px; border-radius: 99px; background: rgba(252, 250, 246, .24); transition: background .25s ease; }
.promo-steps i.is-on { background: var(--gold-light); }
.promo-steps i.is-free {
  flex: 0 0 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: transparent;
  border: 1.5px dashed var(--gold-light); color: var(--gold-light);
}
.promo-steps i.is-free.is-on { background: var(--gold-light); border-style: solid; color: var(--ink); }
.promo-steps i.promo-steps__track { overflow: hidden; }
.promo-steps__track b { display: block; height: 100%; border-radius: inherit; background: var(--gold-light); }
[data-phase="claim"] .promo-steps i.is-free:not(.is-on) { animation: promo-nudge 1.4s ease-in-out 2; }
@keyframes promo-nudge { 50% { transform: scale(1.16); } }
@media (prefers-reduced-motion: reduce) { [data-phase="claim"] .promo-steps i.is-free:not(.is-on) { animation: none; } }

/* The same progress at the top of the cart footer (phone and desktop). */
.cart-promo { padding: 12px 14px 13px; border-radius: 16px; background: #FAEEDA; color: #633806; }
.cart-promo__head { display: flex; align-items: center; gap: 8px; font-size: 14px; letter-spacing: .02em; }
.cart-promo__head svg { flex: none; width: 17px; height: 17px; }
.cart-promo__msg { margin: 3px 0 9px; font-size: 13.5px; line-height: 1.45; }
.cart-promo[data-phase="claim"] .cart-promo__msg, .cart-promo[data-phase="done"] .cart-promo__msg { font-weight: 600; }
.cart-promo .promo-steps i { background: rgba(99, 56, 6, .16); }
.cart-promo .promo-steps i.is-on, .cart-promo .promo-steps__track b { background: #A8742A; }
.cart-promo .promo-steps i.is-free { background: transparent; border-color: #A8742A; color: #A8742A; }
.cart-promo .promo-steps i.is-free.is-on { background: #A8742A; color: #fff; }
.cart-promo__earned { margin: 8px 0 0; font-size: 12.5px; font-weight: 600; }
.cart-promo__rules { font-size: 12px; line-height: 1.5; }
.cart-promo__rules summary { cursor: pointer; min-height: 44px; padding-top: 12px; }
.cart-promo__rules summary:focus-visible { outline: 2px solid #A8742A; outline-offset: 3px; border-radius: 4px; }
.cart-promo__rules p { margin: 0 0 3px; }
/* The delivery line had a progress track that never fills (delivery is priced at checkout): text only. */
.ship-progress__track { display: none; }
.ship-progress__hint { white-space: normal; }

.wa-float { left: auto; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); }
@media (min-width: 1024px) { .wa-float { left: auto; right: 30px; bottom: 30px; } }
.cart-btn .cart-badge { background: var(--gold); }

.bestsellers .product__bundle { white-space:normal; line-height:1.6; }
.product__bundle del { color:#786d60; white-space:nowrap; }
.product__bundle strong { display:inline-block; white-space:nowrap; color:#774713; background:#f8ebce; border-radius:4px; padding:0 .35em; }
@media (prefers-reduced-motion:no-preference) {
  .product__bundle strong { animation:bundle-highlight .85s ease-out 1; }
  @keyframes bundle-highlight { from { background:#edc478; } to { background:#f8ebce; } }
}
