/* ============================================================
   បន្លា · BANLA — Khmer durian store
   Layout: jungle-dark bookends (hero, finder, footer) frame cream
   "orchard" pages; giant Khmer words act as the structure.
   ============================================================ */
:root {
  color-scheme: light;
  --jungle: #0D2015;
  --jungle-2: #15301F;
  --jungle-3: #1F4329;
  --husk: #5F7D25;
  --husk-ink: #3E5418;
  --gold: #F3C431;
  --gold-2: #FFE291;
  --cream: #F5EEDB;
  --paper: #FFFBF1;
  --ink: #15210F;
  --muted: #56604A;
  --line: #E3D9BD;
  --lacquer: #B03F28;
  --on-dark: #F5EEDB;
  --on-dark-muted: #B9C3A9;

  /* semantic tokens for the cream "orchard" pages (swapped in dark mode) */
  --bg: var(--cream);
  --surface: var(--paper);
  --text: var(--ink);
  --accent-text: var(--husk-ink);
  --husk-text: var(--husk);
  --bigword: var(--jungle);
  --pressed-bg: var(--jungle);
  --pressed-fg: var(--cream);
  --section-edge: transparent;

  --font: "Kantumruy Pro", "Noto Sans Khmer", "Khmer OS System", "Leelawadee UI", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --gl: max(20px, env(safe-area-inset-left, 0px));
  --gr: max(20px, env(safe-area-inset-right, 0px));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0E1611;
    --surface: #172219;
    --text: #EDE6D2;
    --muted: #A9B39A;
    --line: #2B3A2D;
    --accent-text: #C9D98A;
    --husk-text: #A3C05B;
    --bigword: var(--gold);
    --pressed-bg: var(--gold);
    --pressed-fg: var(--ink);
    --section-edge: rgba(245, 238, 219, .1);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0E1611;
  --surface: #172219;
  --text: #EDE6D2;
  --muted: #A9B39A;
  --line: #2B3A2D;
  --accent-text: #C9D98A;
  --husk-text: #A3C05B;
  --bigword: var(--gold);
  --pressed-bg: var(--gold);
  --pressed-fg: var(--ink);
  --section-edge: rgba(245, 238, 219, .1);
}


*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.75;
  background: var(--bg);
  color: var(--text);
  transition: background-color .4s var(--ease), color .4s var(--ease);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
html[lang="en"] body { line-height: 1.6; }
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  background: var(--jungle); z-index: 60;
}
main { overflow-x: clip; }
h1, h2, h3 { margin: 0; font-weight: 700; text-wrap: balance; line-height: 1.4; }
html[lang="en"] :is(h1, h2, h3) { line-height: 1.15; letter-spacing: -.015em; }
p { margin: 0; }
a { color: inherit; }
img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }

.wrap {
  max-width: 1240px; margin-inline: auto;
  padding-left: var(--gl); padding-right: var(--gr);
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--ink); padding: 8px 14px; border-radius: 999px;
}
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600; color: var(--accent-text);
  letter-spacing: .02em;
}
html[lang="en"] .kicker { text-transform: uppercase; letter-spacing: .14em; font-size: 12.5px; }
.kicker .dot, .eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--lacquer);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--lacquer) 18%, transparent);
}
.kicker--dark { color: var(--gold-2); }
.kicker--dark .dot { background: var(--gold); box-shadow: 0 0 0 4px rgba(243, 196, 49, .18); }
.kicker--ink { color: var(--ink); }
.kicker--ink .dot { background: var(--ink); box-shadow: 0 0 0 4px rgba(21, 33, 15, .15); }
.lead { color: var(--muted); max-width: 52ch; font-size: 17px; }

h2 { font-size: clamp(30px, 4.2vw, 54px); margin-top: 10px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px; border: 0;
  font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: transform .35s var(--spring), background-color .25s, box-shadow .35s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 20px; height: 20px; transition: transform .35s var(--spring); }
.btn:hover { transform: translateY(-2px); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--gold { background: var(--gold); color: var(--ink); box-shadow: 0 10px 30px -12px rgba(243, 196, 49, .7); }
.btn--gold:hover { background: var(--gold-2); }
.btn--ghost { background: rgba(245, 238, 219, .06); color: var(--on-dark); border: 1px solid rgba(245, 238, 219, .28); }
.btn--ghost:hover { background: rgba(245, 238, 219, .12); }
.btn--ink { background: var(--ink); color: var(--gold); }
.btn--line { background: transparent; color: var(--text); border: 1.5px solid var(--line); }
.btn--line:hover { border-color: var(--text); }
.btn--sm { min-height: 44px; font-size: 15px; padding: 0 18px; }
.btn--block { width: 100%; }

/* ---------- marquee ---------- */
.marquee {
  position: relative; z-index: 6; overflow: hidden;
  margin: -26px -20px 0; padding-block: 14px;
  background: var(--gold); color: var(--ink);
  transform: rotate(-1.6deg);
  box-shadow: 0 20px 40px -24px rgba(13, 32, 21, .6);
}
.marquee__track {
  display: flex; align-items: center; gap: 28px; width: max-content;
  font-size: clamp(18px, 2vw, 24px); font-weight: 600; white-space: nowrap;
  animation: marquee 38s linear infinite;
}
.marquee i { width: 12px; height: 12px; background: var(--ink); transform: rotate(45deg); border-radius: 2px; flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- statement ---------- */
.statement { padding-block: clamp(88px, 12vw, 168px) clamp(56px, 8vw, 110px); }
.statement__text {
  margin-top: 22px; font-size: clamp(28px, 4.6vw, 64px); font-weight: 600;
  line-height: 1.55; max-width: 1080px; text-wrap: balance;
}
html[lang="en"] .statement__text { line-height: 1.2; letter-spacing: -.02em; }
.statement__text .fade { color: color-mix(in srgb, var(--text) 42%, var(--bg)); }
/* ---------- varieties ---------- */
.varieties { padding-bottom: clamp(80px, 10vw, 140px); }
.bigword {
  font-size: clamp(120px, 26vw, 360px); font-weight: 700; line-height: 1;
  color: var(--bigword); text-align: right; letter-spacing: -.02em;
  margin-bottom: -.42em; position: relative; z-index: 0; user-select: none;
}
.panel {
  position: relative; z-index: 1;
  background: var(--surface); border-radius: clamp(24px, 3vw, 40px);
  padding: clamp(18px, 2.6vw, 34px);
  box-shadow: 0 -20px 60px -30px rgba(13, 32, 21, .35), 0 40px 80px -50px rgba(13, 32, 21, .4);
}
.sec-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end;
  gap: 20px 32px; margin-bottom: clamp(20px, 3vw, 34px);
}
.sec-head > div { min-width: 0; max-width: 720px; }
.sec-head .lead { margin-top: 12px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  min-height: 44px; padding: 0 18px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--line); background: transparent; color: var(--text); font-size: 15px;
  transition: background-color .25s, color .25s, border-color .25s;
}
.filter:hover { border-color: var(--text); }
.filter[aria-pressed="true"] { background: var(--pressed-bg); color: var(--pressed-fg); border-color: var(--pressed-bg); }

.grid {
  display: grid; gap: clamp(14px, 1.6vw, 22px);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}
.card {
  display: flex; flex-direction: column; min-width: 0;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(18px); } }
.card__origin {
  position: absolute; top: 14px; left: 16px; font-size: 13px; color: var(--muted);
  display: inline-flex; align-items: center; gap: 6px;
}
.card__origin::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--husk); }
.badge {
  position: absolute; top: 12px; right: 12px; padding: 2px 12px; border-radius: 999px;
  background: var(--jungle); color: var(--gold); font-size: 12.5px; font-weight: 600;
}
.card__body { display: flex; flex-direction: column; gap: 12px; padding: 18px 6px 4px; flex: 1; }
.card__title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 10px; }
.card__title h3 { font-size: 21px; }
.card__alt { font-size: 13px; color: var(--muted); }
.card__desc { font-size: 15px; color: var(--muted); line-height: 1.7; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.tags li { font-size: 13px; padding: 2px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); }
.meters { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; align-items: center; margin: 0; font-size: 13px; }
.meters dt { color: var(--muted); }
.meters dd { margin: 0; display: flex; gap: 4px; }
.seg { flex: 1; height: 6px; border-radius: 3px; background: var(--line); }
.seg.on { background: var(--husk); }
.meters .aroma .seg.on { background: var(--lacquer); }
.card__foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price { display: flex; flex-direction: column; line-height: 1.3; }
.price strong { font-size: 22px; font-variant-numeric: tabular-nums; }
.price span { font-size: 13px; color: var(--muted); }
.add {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px;
  border: 0; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 15px;
  background: var(--lacquer); color: #FFF8EE;
  transition: transform .35s var(--spring), background-color .25s;
}
.add svg { width: 18px; height: 18px; }
.add:hover { transform: scale(1.05); background: #962F1B; }
.add.is-added { background: var(--jungle); color: var(--gold); }
.note { margin-top: 22px; font-size: 14px; color: var(--muted); }

/* ---------- finder ---------- */
.finder {
  background: var(--jungle); color: var(--on-dark);
  border: 1px solid var(--section-edge);
  border-radius: clamp(28px, 4vw, 56px);
  margin-inline: max(8px, env(safe-area-inset-left, 0px)) max(8px, env(safe-area-inset-right, 0px));
  padding-block: clamp(56px, 8vw, 110px);
}
.finder__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.finder .lead { color: var(--on-dark-muted); margin: 14px 0 30px; }
.range { padding-block: 10px; border-top: 1px solid rgba(245, 238, 219, .1); }
.range label { font-weight: 600; font-size: 16px; }
.range__ends { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--on-dark-muted); }
input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; cursor: pointer; margin: 0;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 8px; border-radius: 4px;
  background: linear-gradient(90deg, var(--gold) var(--fill, 50%), rgba(245, 238, 219, .14) var(--fill, 50%));
}
input[type="range"]::-moz-range-track { height: 8px; border-radius: 4px; background: rgba(245, 238, 219, .14); }
input[type="range"]::-moz-range-progress { height: 8px; border-radius: 4px; background: var(--gold); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 28px; height: 28px; margin-top: -10px; border-radius: 50%;
  background: var(--gold); border: 5px solid var(--jungle); box-shadow: 0 0 0 2px var(--gold);
  transition: transform .25s var(--spring);
}
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.2); }
input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%; background: var(--gold); border: 5px solid var(--jungle); box-shadow: 0 0 0 2px var(--gold);
}
.match {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 20px; align-items: center;
  padding: clamp(18px, 2.4vw, 30px); border-radius: 32px;
  background: var(--jungle-2); border: 1px solid rgba(245, 238, 219, .08);
}
.match__pct { font-size: clamp(48px, 6vw, 76px); font-weight: 700; color: var(--gold); line-height: 1; font-variant-numeric: tabular-nums; }
.match__label { font-size: 14px; color: var(--on-dark-muted); }
.match h3 { font-size: 26px; margin-top: 8px; }
.match p { color: var(--on-dark-muted); font-size: 15px; margin-top: 6px; }
.match .add { margin-top: 16px; }
.rank { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.rank li { display: grid; grid-template-columns: minmax(0, 9em) minmax(0, 1fr) 3.4em; gap: 12px; align-items: center; font-size: 14px; }
.rank__bar { height: 6px; border-radius: 3px; background: rgba(245, 238, 219, .1); overflow: hidden; }
.rank__bar i { display: block; height: 100%; background: var(--on-dark-muted); border-radius: 3px; transition: width .6s var(--ease); }
.rank__pct { text-align: right; font-variant-numeric: tabular-nums; color: var(--on-dark-muted); }
.rank__title { margin-top: 22px; font-size: 14px; color: var(--on-dark-muted); }

/* ---------- season ---------- */
.season { padding-block: clamp(80px, 10vw, 140px) clamp(40px, 6vw, 80px); }
.season__now {
  padding: 18px 22px; border-radius: 24px; background: var(--surface); min-width: 0; max-width: 380px;
  border: 1px solid var(--line);
}
.season__now strong { display: block; font-size: 20px; }
.season__now span { font-size: 14px; color: var(--muted); }
.months {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px;
}
.month {
  position: relative; min-height: 132px; padding: 14px 10px; border-radius: 18px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 8px;
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .4s var(--spring);
}
.month:hover { transform: translateY(-4px); }
.month__km { font-weight: 600; font-size: 15px; line-height: 1.4; }
.month__en { font-size: 12px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.month__bar { height: 36px; border-radius: 10px; background: var(--line); position: relative; overflow: hidden; }
.month__bar i { position: absolute; inset: auto 0 0; background: var(--husk); border-radius: 10px; }
.month[data-s="2"] { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.month[data-s="2"] .month__bar { background: rgba(21, 33, 15, .12); }
.month[data-s="2"] .month__bar i { background: var(--jungle); }
.month[data-s="2"] .month__en { color: var(--husk-ink); }
.month[data-s="1"] { background: var(--gold-2); border-color: var(--gold-2); color: var(--ink); }
.month[data-s="1"] .month__en { color: #56604A; }
.month[data-s="1"] .month__bar { background: rgba(21, 33, 15, .12); }
.month.is-now { outline: 2.5px solid var(--lacquer); outline-offset: 3px; }
.month__now {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  padding: 0 10px; border-radius: 999px; background: var(--lacquer); color: #FFF8EE;
  font-size: 12px; font-weight: 600; white-space: nowrap; line-height: 22px;
}
.legend { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 14px; color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.lg { width: 14px; height: 14px; border-radius: 4px; }
.lg--peak { background: var(--gold); }
.lg--edge { background: var(--gold-2); }
.lg--off { background: var(--surface); border: 1px solid var(--line); }

/* ---------- culture ---------- */
.culture { padding-block: clamp(60px, 8vw, 120px); }
.culture__head { position: relative; }
.outline {
  display: block; font-size: clamp(64px, 13vw, 190px); font-weight: 700; line-height: 1.3;
  color: transparent; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--text) 35%, transparent);
  white-space: nowrap; overflow: hidden; margin-bottom: -.35em; user-select: none;
}
.kbach {
  height: 24px; margin-block: 30px 34px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 24'%3E%3Cpath d='M24 2c4.5 5.5 10 7.5 10 13a10 10 0 0 1-20 0c0-5.5 5.5-7.5 10-13z' fill='none' stroke='%235F7D25' stroke-width='1.5'/%3E%3Cpath d='M24 10c2.2 2.6 4.4 3.6 4.4 6.2a4.4 4.4 0 0 1-8.8 0c0-2.6 2.2-3.6 4.4-6.2z' fill='%235F7D25'/%3E%3Cpath d='M0 23h48M3 18l4 5M45 18l-4 5' stroke='%235F7D25' stroke-width='1.2' fill='none'/%3E%3C/svg%3E") repeat-x center / 48px 24px;
}
.kbach--gold {
  margin: 0; height: 26px; background-color: var(--jungle);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 24'%3E%3Cpath d='M24 2c4.5 5.5 10 7.5 10 13a10 10 0 0 1-20 0c0-5.5 5.5-7.5 10-13z' fill='none' stroke='%23F3C431' stroke-width='1.5'/%3E%3Cpath d='M24 10c2.2 2.6 4.4 3.6 4.4 6.2a4.4 4.4 0 0 1-8.8 0c0-2.6 2.2-3.6 4.4-6.2z' fill='%23F3C431'/%3E%3Cpath d='M0 23h48M3 18l4 5M45 18l-4 5' stroke='%23F3C431' stroke-width='1.2' fill='none'/%3E%3C/svg%3E");
}
.culture__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
/* ---------- choose ---------- */
.choose { padding-block: clamp(40px, 6vw, 80px) clamp(70px, 9vw, 120px); }
.steps { list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.step { border-top: 2px solid var(--text); padding-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.step__n { font-size: 58px; font-weight: 700; line-height: 1.2; color: var(--husk-text); }
.step h3 { font-size: 21px; }
.step p { color: var(--muted); font-size: 15.5px; }

/* ---------- order ---------- */
.order { padding-bottom: clamp(70px, 9vw, 120px); }
.order__panel {
  background: var(--gold); color: var(--ink); border-radius: clamp(28px, 3.6vw, 48px);
  padding: clamp(24px, 4vw, 56px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(28px, 4vw, 64px);
}
.order__head h2 { margin-bottom: 26px; }
.order__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.order__cols h3 { font-size: 15px; font-weight: 600; margin-bottom: 10px; color: var(--husk-ink); }
html[lang="en"] .order__cols h3 { text-transform: uppercase; letter-spacing: .12em; font-size: 12.5px; }
.order__cols h3:not(:first-child) { margin-top: 24px; }
.zones, .plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.zones li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px;
  padding: 14px 16px; border-radius: 18px; background: rgba(255, 251, 241, .55);
}
.zones strong { font-size: 16px; }
.zones .fee { font-weight: 700; font-variant-numeric: tabular-nums; }
.zones .eta { grid-column: 1 / -1; font-size: 13.5px; color: var(--husk-ink); }
.plain li { font-size: 16px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.plain li::before { content: ""; width: 8px; height: 8px; border-radius: 2px; transform: rotate(45deg) translateY(-2px); background: var(--ink); flex: none; }
.plain a { font-weight: 600; }
.copyable { user-select: all; font-variant-numeric: tabular-nums; }

/* ---------- footer ---------- */
.footer { background: var(--jungle); color: var(--on-dark); overflow: hidden; padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); }
.footer__cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; padding-top: 56px; }
.footer__about { max-width: 40ch; color: var(--on-dark-muted); }
.footer__links { display: grid; grid-template-columns: repeat(2, auto); gap: 4px 36px; }
.footer__links a { color: var(--on-dark); text-decoration: none; min-height: 36px; display: inline-flex; align-items: center; }
.footer__links a:hover { color: var(--gold); }
.footer__word {
  font-size: clamp(130px, 30vw, 420px); font-weight: 700; line-height: 1.25; color: var(--gold);
  text-align: center; margin-block: 10px -10px; user-select: none; letter-spacing: -.02em;
}
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--on-dark-muted); border-top: 1px solid rgba(245, 238, 219, .12); padding-top: 18px; }
.footer__legal a { text-decoration: none; }
.footer__legal a:hover { color: var(--gold); }

/* ---------- drawer ---------- */
.drawer {
  margin: 0 0 0 auto; padding: 0; border: 0;
  width: min(460px, 100%); height: 100%; max-height: 100%; max-width: 100%;
  background: var(--surface); color: var(--text);
  border-radius: 28px 0 0 28px;
  box-shadow: -30px 0 80px -30px rgba(0, 0, 0, .5);
}
.drawer[open] { display: flex; flex-direction: column; animation: slideIn .5s var(--ease); }
.drawer.is-closing { animation: slideOut .3s var(--ease) forwards; }
.drawer::backdrop { background: rgba(13, 32, 21, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fade .4s var(--ease); }
@keyframes slideIn { from { transform: translateX(100%); } }
@keyframes slideOut { to { transform: translateX(100%); } }
@keyframes fade { from { opacity: 0; } }
.drawer__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(18px + env(safe-area-inset-top, 0px)) max(22px, env(safe-area-inset-right, 0px)) 14px 22px;
  border-bottom: 1px solid var(--line);
}
.drawer__head h2 { font-size: 24px; margin: 0; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: transparent; display: grid; place-items: center; cursor: pointer; transition: transform .35s var(--spring); }
.icon-btn:hover { transform: rotate(90deg); }
.icon-btn svg { width: 20px; height: 20px; }
.drawer__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 8px max(22px, env(safe-area-inset-right, 0px)) 18px 22px; }
.lines { list-style: none; margin: 0; padding: 0; }
.line { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding-block: 14px; border-bottom: 1px solid var(--line); }
.line__art { width: 64px; height: 64px; border-radius: 16px; background: var(--bg); overflow: hidden; }
.line__art img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }
.line__name { font-weight: 600; font-size: 15.5px; line-height: 1.5; }
.line__unit { font-size: 13px; color: var(--muted); }
.line__right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.line__total { font-weight: 700; font-variant-numeric: tabular-nums; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; }
.qty button { width: 34px; height: 34px; border: 0; background: transparent; cursor: pointer; font-size: 18px; border-radius: 50%; }
.qty button:hover { background: var(--bg); }
.qty output { min-width: 26px; text-align: center; font-variant-numeric: tabular-nums; font-size: 14px; }
.empty { text-align: center; padding: 30px 0 10px; display: grid; justify-items: center; gap: 14px; color: var(--muted); }
.empty__img { width: 160px; height: 120px; object-fit: cover; border-radius: 20px; }
.checkout { display: grid; gap: 12px; margin-top: 18px; }
.field { display: grid; gap: 4px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 14px;
  border: 1.5px solid var(--line); background: var(--bg); color: var(--text); font-size: 16px;
  transition: border-color .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 64px; }
.field :is(input, select, textarea):focus { outline: none; border-color: var(--husk); background: var(--surface); }
.field .is-bad { border-color: var(--lacquer); }
.form-err { color: var(--lacquer); font-size: 14px; font-weight: 600; }
.drawer__foot {
  padding: 16px max(22px, env(safe-area-inset-right, 0px)) calc(18px + env(safe-area-inset-bottom, 0px)) 22px;
  border-top: 1px solid var(--line); display: grid; gap: 10px; background: var(--surface);
}
.sum { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; margin: 0 0 6px; font-size: 15px; }
.sum dt { color: var(--muted); }
.sum dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.sum .sum__total { font-size: 20px; font-weight: 700; color: var(--text); margin-top: 4px; }
.drawer__note { font-size: 13px; color: var(--muted); text-align: center; }

/* ---------- toast & fly ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); z-index: 80;
  transform: translate(-50%, 140%); opacity: 0;
  max-width: calc(100% - 32px); padding: 12px 20px; border-radius: 999px;
  background: var(--ink); color: var(--cream); font-size: 15px; box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .5);
  transition: transform .5s var(--spring), opacity .3s;
  pointer-events: none;
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }
.fly { position: fixed; z-index: 90; width: 22px; height: 22px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(243, 196, 49, .35); pointer-events: none; }

/* ---------- scroll-driven reveals (progressive) ---------- */
.cv { content-visibility: auto; contain-intrinsic-size: auto 900px; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .bigword, .footer__word { animation: drift linear both; animation-timeline: view(); animation-range: cover; }
  }
}
@keyframes rise { from { opacity: 0; transform: translateY(48px); } }
@keyframes drift { from { transform: translateX(6%); } to { transform: translateX(-4%); } }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .months { grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: 18px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .order__panel { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .finder__in { grid-template-columns: 1fr; }
  .culture__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .months { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .month { min-height: 112px; }
  .steps, .order__cols { grid-template-columns: 1fr; }
  .match { grid-template-columns: 1fr; }
  .rank li { grid-template-columns: minmax(0, 7em) minmax(0, 1fr) 3em; }
  .hero__cta .btn { flex: 1 1 auto; }
  .drawer { border-radius: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .marquee__track { animation: none; }
}

/* ============================================================
   Photo-led components
   ============================================================ */
img { display: block; }

/* ---------- hero ---------- */
.hero {
  --p: 0;
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--jungle); color: var(--on-dark);
  padding-top: calc(108px + env(safe-area-inset-top, 0px));
  padding-bottom: clamp(56px, 7vw, 96px);
  border-radius: 0 0 clamp(28px, 4vw, 56px) clamp(28px, 4vw, 56px);
}
.hero__bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  transform: scale(1.08) translateY(calc(var(--p) * 40px));
  filter: saturate(.7);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(70% 70% at 72% 45%, rgba(13, 32, 21, .55), rgba(13, 32, 21, .9) 70%),
    linear-gradient(180deg, rgba(13, 32, 21, .7), rgba(13, 32, 21, .96));
}
.hero__in {
  --mx: 0; --my: 0;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  grid-template-areas: "copy visual" "facts visual";
  gap: 28px clamp(28px, 5vw, 80px); align-items: center;
}
.hero__copy { grid-area: copy; min-width: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 16px; border-radius: 999px; font-size: 14px;
  color: var(--gold-2); border: 1px solid rgba(243, 196, 49, .3);
  background: rgba(13, 32, 21, .5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.eyebrow .dot { background: var(--gold); box-shadow: 0 0 0 4px rgba(243, 196, 49, .2); }
.hero__word {
  font-size: clamp(96px, 15vw, 210px); font-weight: 700; line-height: 1.32;
  color: var(--gold); margin: 4px 0 .12em; letter-spacing: -.01em;
  text-shadow: 0 20px 60px rgba(0, 0, 0, .4);
  animation: wordIn 1.1s var(--ease) both;
}
@keyframes wordIn { from { opacity: 0; transform: translateY(30px); } }
.hero__copy h1 { font-size: clamp(26px, 3.1vw, 44px); max-width: 17em; animation: wordIn 1s var(--ease) .15s both; }
.hero__sub { margin-top: 14px; color: var(--on-dark-muted); max-width: 46ch; animation: wordIn 1s var(--ease) .25s both; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; animation: wordIn 1s var(--ease) .35s both; }
.hero__visual {
  grid-area: visual; position: relative; display: grid; place-items: center;
  padding: clamp(20px, 4vw, 48px) 0;
}
.dial {
  position: absolute; width: 118%; max-width: 640px; height: auto; aspect-ratio: 1;
  transform: rotate(calc(var(--p) * 100deg)); opacity: .55; pointer-events: none;
}
.dial text { font-family: var(--font); }
/* round frame: a whole fruit inside the clock dial */
.arch {
  position: relative; margin: 0; width: min(100%, 440px); aspect-ratio: 1;
  border-radius: 50%; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(243, 196, 49, .55), 0 0 0 10px rgba(13, 32, 21, .6), 0 0 0 11px rgba(243, 196, 49, .35), 0 60px 80px -30px rgba(0, 0, 0, .7);
  transform: translate3d(calc(var(--mx) * 10px), calc(var(--p) * -30px + var(--my) * 8px), 0);
  animation: archIn 1.2s var(--ease) .1s both;
}
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; transform: scale(1.04); transition: transform 1.2s var(--ease); }
.hero__visual:hover .arch img { transform: scale(1.09); }
@keyframes archIn { from { opacity: 0; clip-path: circle(0% at 50% 50%); } to { clip-path: circle(50% at 50% 50%); } }
.float-card {
  position: absolute; left: max(0px, calc(50% - 280px)); bottom: 12%;
  display: grid; gap: 0; padding: 14px 20px; border-radius: 22px;
  background: rgba(255, 251, 241, .9); color: var(--ink);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .6);
  animation: wordIn 1s var(--spring) .6s both;
  transform: translate3d(calc(var(--mx) * -14px), calc(var(--my) * -10px), 0);
}
.float-card strong { font-size: 26px; line-height: 1.3; font-variant-numeric: tabular-nums; }
.float-card__k { font-size: 13px; color: #56604A; line-height: 1.4; }
.facts { grid-area: facts; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-self: end; }
.facts li {
  display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: 20px;
  background: rgba(13, 32, 21, .55); border: 1px solid rgba(245, 238, 219, .12);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.facts div { display: flex; flex-direction: column; line-height: 1.5; min-width: 0; }
.facts strong { font-size: 15.5px; }
.facts span:not(.facts__ic) { font-size: 13.5px; color: var(--on-dark-muted); }
.facts__ic { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; background: rgba(243, 196, 49, .14); color: var(--gold); }
.facts__ic svg { width: 22px; height: 22px; }

/* ---------- statement photo chips ---------- */
.ci {
  display: inline-block; vertical-align: middle; width: 1.9em; height: 1em;
  margin-inline: .2em; border-radius: 999px; position: relative; top: -.06em;
  background-size: cover; background-position: center;
  box-shadow: 0 0 0 .06em var(--surface), 0 .2em .5em -.1em rgba(13, 32, 21, .4);
}
.ci--tree { background-image: url("../photos/tree-600.webp"); }
.ci--open { background-image: url("../photos/kampot-480.webp"); }

/* ---------- market band ---------- */
.band { padding-bottom: clamp(70px, 9vw, 120px); }
.band__fig { position: relative; margin: 0; border-radius: clamp(24px, 3vw, 40px); overflow: hidden; aspect-ratio: 16 / 8; max-width: 100%; background: var(--jungle-2); }
.band__fig img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.band__fig:hover img { transform: scale(1.04); }
.band__cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(20px, 3vw, 40px);
  display: flex; flex-direction: column; gap: 2px; color: var(--cream);
  background: linear-gradient(180deg, transparent, rgba(13, 32, 21, .85));
}
.band__title { font-size: clamp(26px, 3.6vw, 48px); font-weight: 700; line-height: 1.35; }
.band__sub { color: var(--gold-2); font-size: 16px; }
.band__tags { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.band__tags li { padding: 6px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; }
.band__tags li::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); margin-right: 8px; vertical-align: middle; box-shadow: 0 0 0 2px rgba(243, 196, 49, .3); }

/* ---------- product photos ---------- */
.card__art { position: relative; aspect-ratio: 4 / 3; border-radius: 24px; overflow: hidden; background: var(--bg); max-width: 100%; }
.card__art img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.card:hover .card__art img { transform: scale(1.07); }
.card__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 32, 21, .35), transparent 35%); pointer-events: none; }
.card__origin { z-index: 1; color: var(--cream); font-weight: 600; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.card__origin::before { background: var(--gold); }
.badge { z-index: 1; }

.match__art { aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--jungle-3); box-shadow: 0 0 0 1px rgba(243, 196, 49, .45); max-width: 100%; }
.match__art img { width: 100%; height: 100%; object-fit: cover; animation: pop .6s var(--ease); }
@keyframes pop { from { transform: scale(1.12); opacity: .3; } }

/* ---------- season photo ---------- */
.season__top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(24px, 4vw, 64px); align-items: end; margin-bottom: clamp(24px, 3vw, 40px); }
.season__top .season__now { margin-top: 22px; }
.season__fig { margin: 0; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 3.4; max-width: 100%; }
.season__fig img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- culture photo cards ---------- */
.culture__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.ccard {
  grid-column: span 1; display: flex; flex-direction: column; border-radius: 30px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .5s var(--spring), box-shadow .5s var(--ease);
}
.ccard--wide { grid-column: span 2; }
.ccard:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -36px rgba(13, 32, 21, .5); }
.ccard__fig { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; }
.ccard--wide .ccard__fig { aspect-ratio: 16 / 10; }
.ccard__fig img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.ccard:hover .ccard__fig img { transform: scale(1.05); }
.ccard__body { padding: clamp(18px, 2.2vw, 28px); display: flex; flex-direction: column; gap: 8px; }
.ccard h3 { font-size: 22px; }
.ccard p { color: var(--muted); font-size: 16px; }

/* ---------- order how-to ---------- */
.howto { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 8px; counter-reset: h; }
.howto li { counter-increment: h; display: flex; gap: 12px; align-items: baseline; font-size: 16px; }
.howto li::before { content: counter(h); flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--gold); display: inline-grid; place-items: center; font-size: 14px; font-weight: 700; }
html[lang="km"] .howto li::before { content: counter(h, khmer); }

/* ---------- credits ---------- */
.credits { margin-top: 18px; font-size: 13px; color: var(--on-dark-muted); }
.credits summary { cursor: pointer; min-height: 36px; display: inline-flex; align-items: center; }
.credits summary:hover { color: var(--gold); }
.credits ul { margin: 8px 0 18px; padding-left: 18px; columns: 2 300px; column-gap: 32px; }
.credits li { break-inside: avoid; margin-bottom: 4px; }
.credits a { color: var(--on-dark); }
.noscript { position: fixed; inset: auto 0 0; padding: 12px; background: var(--lacquer); color: #fff; text-align: center; z-index: 99; }

@media (max-width: 1000px) {
  .culture__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .hero__in { grid-template-columns: 1fr; grid-template-areas: "copy" "visual" "facts"; }
  .hero__visual { padding-top: 10px; }
  .arch { width: min(78%, 400px); }
  .float-card { left: 0; bottom: 8%; }
  .season__top { grid-template-columns: 1fr; }
  .season__fig { max-height: 340px; aspect-ratio: auto; }
  .band__fig { aspect-ratio: 4 / 3; }
}
@media (max-width: 560px) {
  .facts { grid-template-columns: 1fr; }
  .facts li { flex-direction: row; align-items: center; }
  .culture__grid { grid-template-columns: 1fr; }
  .ccard--wide { grid-column: auto; }
  .ccard--wide .ccard__fig { aspect-ratio: 4 / 3; }
  .match__art { max-width: 240px; justify-self: center; width: 100%; }
  .float-card strong { font-size: 22px; }
}


/* ============================================================
   Header (desktop + phone) and phone tab bar
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding: calc(10px + env(safe-area-inset-top, 0px)) max(10px, env(safe-area-inset-right, 0px)) 0 max(10px, env(safe-area-inset-left, 0px));
  pointer-events: none;
  transition: transform .45s var(--ease);
}
.nav.is-hidden { transform: translateY(calc(-100% - 12px)); }
.nav__in {
  pointer-events: auto;
  max-width: 1240px; margin-inline: auto;
  display: flex; align-items: center; gap: 10px;
  padding: 6px 6px 6px 14px; border-radius: 999px;
  color: var(--on-dark);
  background: rgba(13, 32, 21, .58);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(245, 238, 219, .12);
  box-shadow: 0 12px 32px -20px rgba(0, 0, 0, .6);
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease);
}
.nav.is-scrolled .nav__in { background: rgba(13, 32, 21, .86); box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .6); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; flex: none; -webkit-tap-highlight-color: transparent; }
.brand__mark { width: 32px; height: 32px; color: var(--gold); display: grid; transition: transform .8s var(--spring); }
.brand:hover .brand__mark { transform: rotate(72deg); }
.brand__text { display: flex; flex-direction: column; line-height: 1; gap: 4px; }
.brand__km { font-size: 21px; font-weight: 700; color: var(--gold); line-height: 1.15; }
.brand__en { font-size: 9.5px; letter-spacing: .32em; color: var(--on-dark-muted); font-weight: 600; }

.nav__links {
  display: flex; gap: 2px; margin-inline: auto; padding: 4px; border-radius: 999px;
  background: rgba(245, 238, 219, .06);
}
.nav__links a {
  padding: 7px 15px; border-radius: 999px; font-size: 15px; text-decoration: none; line-height: 1.6;
  color: var(--on-dark-muted); transition: color .25s, background-color .25s;
}
.nav__links a:hover { color: var(--on-dark); }
.nav__links a.is-active { background: var(--on-dark); color: var(--ink); }
.nav__actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav__links + .nav__actions { margin-left: 0; }

.hbtn {
  position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%;
  display: inline-grid; place-items: center; padding: 0; margin: 0;
  -webkit-appearance: none; appearance: none;
  border: 0; background: rgba(245, 238, 219, .09); color: var(--on-dark);
  text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color .25s, transform .4s var(--spring);
}
.hbtn:hover { background: rgba(245, 238, 219, .17); }
.hbtn:active { transform: scale(.9); }
.hbtn svg { width: 21px; height: 21px; grid-area: 1 / 1; }
.hbtn--lang { width: auto; padding: 0 14px 0 11px; border-radius: 999px; display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 14px; }
.hbtn--lang svg { width: 19px; height: 19px; }
.hbtn--lang span { min-width: 2.2em; text-align: center; }
#themeBtn svg { transition: transform .5s var(--spring), opacity .3s; }
#themeBtn .i-sun { opacity: 0; transform: rotate(-90deg) scale(.5); }
:root[data-theme="dark"] #themeBtn .i-moon { opacity: 0; transform: rotate(90deg) scale(.5); }
:root[data-theme="dark"] #themeBtn .i-sun { opacity: 1; transform: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) #themeBtn .i-moon { opacity: 0; transform: rotate(90deg) scale(.5); }
  :root:not([data-theme="light"]) #themeBtn .i-sun { opacity: 1; transform: none; }
}

.cart-btn {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  -webkit-appearance: none; appearance: none; border: 0; cursor: pointer;
  min-height: 44px; padding: 0 6px 0 14px; border-radius: 999px;
  background: var(--gold); color: var(--ink); font-weight: 600; font-size: 15px;
  -webkit-tap-highlight-color: transparent;
  transition: transform .35s var(--spring), background-color .25s;
}
.cart-btn:hover { background: var(--gold-2); }
.cart-btn:active { transform: scale(.95); }
.cart-btn svg { width: 20px; height: 20px; }
.cart-btn__count {
  min-width: 32px; height: 32px; padding: 0 8px; border-radius: 999px;
  display: grid; place-items: center; background: var(--ink); color: var(--gold);
  font-size: 14px; font-variant-numeric: tabular-nums;
}
.cart-btn.bump .cart-btn__count, .tab--cart.bump .tab__badge { animation: bump .5s var(--spring); }
@keyframes bump { 40% { transform: scale(1.4); } }

.tabbar { display: none; }

@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__links + .nav__actions { margin-left: auto; }
}
@media (max-width: 760px) {
  .nav__in { padding: 5px 5px 5px 12px; gap: 6px; }
  .cart-btn { display: none; }
  .brand__mark { width: 28px; height: 28px; }
  .brand__km { font-size: 19px; }

  /* docked app tab bar (reference style): full width, rounded top, icon + label */
  .tabbar {
    --n: 4; --i: 0;
    position: fixed; z-index: 55; left: 0; right: 0; bottom: 0;
    display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr));
    padding: 8px max(8px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px));
    background: var(--jungle);
    border-radius: 28px 28px 0 0;
    box-shadow: 0 -1px 0 rgba(245, 238, 219, .06) inset, 0 -16px 40px -18px rgba(13, 32, 21, .55);
    transition: transform .45s var(--ease);
  }
  .tabbar__ind {
    position: absolute; top: 0; left: max(8px, env(safe-area-inset-left, 0px));
    width: calc((100% - max(8px, env(safe-area-inset-left, 0px)) - max(8px, env(safe-area-inset-right, 0px))) / var(--n));
    height: 3px; pointer-events: none;
    transform: translateX(calc(var(--i) * 100%));
    transition: transform .55s var(--spring);
  }
  .tabbar__ind::before {
    content: ""; position: absolute; left: 50%; top: 0; width: 28px; height: 3px; margin-left: -14px;
    border-radius: 0 0 3px 3px; background: var(--gold);
    box-shadow: 0 0 14px 2px rgba(243, 196, 49, .55);
  }
  .tab {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    min-height: 56px; padding: 4px 2px 2px; border: 0; margin: 0;
    -webkit-appearance: none; appearance: none; background: transparent; cursor: pointer;
    color: rgba(245, 238, 219, .5); text-decoration: none; font: inherit; font-size: 12px; font-weight: 600; line-height: 1.35;
    -webkit-tap-highlight-color: transparent;
    transition: color .3s var(--ease);
  }
  .tab__ic { position: relative; width: 24px; height: 24px; display: grid; transition: transform .45s var(--spring); }
  .tab__ic svg { grid-area: 1 / 1; width: 24px; height: 24px; transition: opacity .25s, transform .45s var(--spring); }
  .tab__ic .f { opacity: 0; transform: scale(.6); }
  .tab.is-active { color: var(--on-dark); }
  .tab.is-active .tab__ic { transform: translateY(-2px); }
  .tab.is-active .tab__ic .o { opacity: 0; transform: scale(1.3); }
  .tab.is-active .tab__ic .f { opacity: 1; transform: none; }
  .tab:active .tab__ic { transform: scale(.82); }
  .tab__t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .tab__badge {
    position: absolute; top: 2px; left: calc(50% + 6px);
    min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px;
    background: var(--lacquer); color: #FFF8EE; font-size: 11px; line-height: 19px; text-align: center; font-variant-numeric: tabular-nums;
    box-shadow: 0 0 0 2.5px var(--jungle);
  }
  .tab--cart.bump .tab__ic { animation: wiggle .6s var(--spring); }
  @keyframes wiggle { 20% { transform: rotate(-14deg) scale(1.15); } 45% { transform: rotate(10deg) scale(1.1); } 70% { transform: rotate(-5deg); } }
  .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  .toast { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 360px) {
  .brand__en { display: none; }
  .hbtn--lang { padding: 0 11px 0 9px; }
}

/* ============================================================
   Phone layout refinements
   ============================================================ */
@media (max-width: 820px) {
  .hero { padding-top: calc(92px + env(safe-area-inset-top, 0px)); }
  .hero__word { font-size: clamp(88px, 27vw, 150px); margin-bottom: .08em; }
  .hero__copy h1 { font-size: clamp(24px, 6.6vw, 34px); }
  .hero__sub { font-size: 16px; }
  .hero__visual { padding: 18px 0 8px; }
  .arch { width: min(60%, 300px); }
  .dial { width: 100%; max-width: 440px; }
  .float-card { left: 2%; bottom: 10%; padding: 10px 14px; border-radius: 18px; }
  .hero__cta .btn { flex: 1 1 140px; }
  .statement { padding-block: 72px 48px; }
  .statement__text { font-size: clamp(25px, 7vw, 40px); }
}
@media (max-width: 700px) {
  .panel { padding: 18px 0 20px; border-radius: 28px; }
  .panel .sec-head, .panel .note { padding-inline: 18px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: 100%; margin-inline: -18px; padding-inline: 18px; box-sizing: content-box; }
  .filters::-webkit-scrollbar, .culture__grid::-webkit-scrollbar, .mini-row::-webkit-scrollbar { display: none; }
  .filter { flex: none; }
  /* compact two-column product grid (app style) */
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-inline: 14px; }
  .card { background: var(--bg); border-radius: 22px; padding: 6px 6px 10px; }
  .card__art { aspect-ratio: 1; border-radius: 18px; }
  .card__body { padding: 10px 6px 0; gap: 4px; }
  .card__title { flex-direction: column; align-items: flex-start; gap: 0; }
  .card__title h3 { font-size: 16px; line-height: 1.45; }
  .card__alt { font-size: 12px; }
  .card__desc, .card .tags, .card .meters, .price__usd { display: none; }
  .card .stock--sm { font-size: 11.5px; }
  .card__foot { padding-top: 6px; }
  .price strong { font-size: 17px; }
  .price span { font-size: 11.5px; }
  .card .add { min-height: 40px; width: 40px; padding: 0; justify-content: center; border-radius: 12px; flex: none; }
  .card .add span { display: none; }
  .card .badge { font-size: 11px; padding: 1px 9px; top: 8px; right: 8px; }
  .card__origin { top: 8px; left: 10px; font-size: 11.5px; }
  .bigword { margin-bottom: -.46em; }
  .band__fig { border-radius: 24px; }
  .band__cap { padding: 18px; }
  .band__tags { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gl)); padding-inline: var(--gl); }
  .band__tags::-webkit-scrollbar { display: none; }
  .band__tags li { flex: none; }
  .finder { border-radius: 28px; margin-inline: 6px; padding-block: 48px; }
  .match { padding: 16px; border-radius: 24px; }
  .season { padding-top: 64px; }
  .culture { padding-block: 44px; }
  .outline { font-size: clamp(54px, 17vw, 90px); }
  .order__panel { border-radius: 28px; padding: 22px 18px; }
}
@media (max-width: 560px) {
  .culture__grid {
    display: flex; overflow-x: auto; gap: 12px; scrollbar-width: none;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gl);
    margin-inline: calc(-1 * var(--gl)); padding: 2px var(--gl) 6px;
  }
  .ccard, .ccard--wide { flex: 0 0 min(84%, 330px); scroll-snap-align: start; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .step__n { font-size: 42px; }
  .step h3 { font-size: 18px; }
  .step p { font-size: 14.5px; }
  .months { gap: 6px; }
  .month { min-height: 100px; padding: 10px 8px; border-radius: 14px; }
  .drawer { width: 100%; }
}
@media (hover: none) {
  .card:hover .card__art img, .ccard:hover .ccard__fig img, .band__fig:hover img, .hero__visual:hover .arch img { transform: none; }
  .ccard:hover, .month:hover { transform: none; }
}

/* ============================================================
   App sheets: product, basket, orders, more
   Phone: full-screen screens. Desktop: right-hand panel.
   ============================================================ */
.card__art { border: 0; padding: 0; cursor: pointer; display: block; width: 100%; color: inherit; font: inherit; }
.card__name { all: unset; cursor: pointer; }
.card__name:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.card__name:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.stock { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.stock.is-ok { color: #3F7A2A; }
.stock.is-pre { color: #A8661A; }
:root[data-theme="dark"] .stock.is-ok { color: #9CCB6A; }
:root[data-theme="dark"] .stock.is-pre { color: #F0B35A; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .stock.is-ok { color: #9CCB6A; }
  :root:not([data-theme="light"]) .stock.is-pre { color: #F0B35A; }
}
.stock--sm { font-size: 13px; }
.match__art { border: 0; padding: 0; cursor: pointer; width: 100%; display: block; }

.sheet {
  margin: 0 0 0 auto; padding: 0; border: 0;
  width: min(480px, 100%); height: 100%; max-height: 100%; max-width: 100%;
  background: var(--surface); color: var(--text);
  border-radius: 30px 0 0 30px; overflow: hidden;
  box-shadow: -30px 0 80px -30px rgba(0, 0, 0, .5);
}
.sheet[open] { display: flex; flex-direction: column; animation: slideIn .5s var(--ease); }
.sheet.is-closing { animation: slideOut .26s var(--ease) forwards; }
.sheet::backdrop { background: rgba(13, 32, 21, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fade .4s var(--ease); }

/* dark header + light content sheet that curves over it (like the reference) */
.sheet__head {
  flex: none; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 10px;
  padding: calc(16px + env(safe-area-inset-top, 0px)) max(18px, env(safe-area-inset-right, 0px)) 40px 18px;
  background: var(--jungle); color: var(--on-dark);
  background-image: radial-gradient(120% 100% at 100% 0%, var(--jungle-3), transparent 60%);
}
.sheet__head h2 { font-size: 21px; text-align: center; margin: 0; line-height: 1.5; }
.sheet__spacer { width: 44px; }
.sheet__body {
  flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  margin-top: -26px; border-radius: 28px 28px 0 0; background: var(--surface); position: relative;
  padding: 22px max(20px, env(safe-area-inset-right, 0px)) 24px 20px;
}
.sheet__foot {
  flex: none; display: grid; gap: 10px; background: var(--surface);
  padding: 14px max(20px, env(safe-area-inset-right, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)) 20px;
  border-top: 1px solid var(--line);
}
.sheet__note { font-size: 13px; color: var(--muted); text-align: center; line-height: 1.6; }
.sheet__note--left { text-align: left; margin: 6px 0 18px; }

.round-btn {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; padding: 0;
  -webkit-appearance: none; appearance: none; cursor: pointer;
  border: 1.5px solid rgba(245, 238, 219, .35); background: rgba(13, 32, 21, .35); color: var(--on-dark);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: transform .35s var(--spring), background-color .25s;
}
.round-btn:hover { background: rgba(13, 32, 21, .55); }
.round-btn:active { transform: scale(.9); }
.round-btn svg { width: 22px; height: 22px; }
.round-btn--ghost { background: transparent; }

.btn--dark { background: var(--jungle); color: var(--on-dark); }
.btn--dark:hover { background: var(--jungle-3); }
:root[data-theme="dark"] .btn--dark { background: var(--gold); color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn--dark { background: var(--gold); color: var(--ink); } }

/* steppers */
.stepper { display: inline-flex; align-items: center; gap: 4px; flex: none; }
.stepper button {
  width: 32px; height: 32px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: var(--jungle); color: var(--on-dark); font-size: 18px; line-height: 1;
  display: grid; place-items: center; transition: transform .3s var(--spring);
}
.stepper button:active { transform: scale(.85); }
.stepper output { min-width: 28px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; font-size: 15px; }
.stepper--lg button { width: 40px; height: 40px; font-size: 20px; }
.stepper--lg output { min-width: 60px; font-size: 16px; }
:root[data-theme="dark"] .stepper button { background: var(--gold); color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .stepper button { background: var(--gold); color: var(--ink); } }

/* ---------- product page ---------- */
.sheet--product .sheet__scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.pd__media { position: relative; aspect-ratio: 1 / .86; background: var(--bg); overflow: hidden; border-radius: 0 0 40px 40px; }
.pd__media img { width: 100%; height: 100%; object-fit: cover; animation: pop .6s var(--ease); }
.pd__media::after { content: ""; position: absolute; inset: 0 0 auto; height: 40%; background: linear-gradient(180deg, rgba(13, 32, 21, .45), transparent); pointer-events: none; }
.pd__back { position: absolute; z-index: 1; top: calc(14px + env(safe-area-inset-top, 0px)); left: 16px; }
.pd__badge { position: absolute; z-index: 1; top: calc(22px + env(safe-area-inset-top, 0px)); right: 18px; padding: 3px 14px; border-radius: 999px; background: var(--gold); color: var(--ink); font-size: 13px; font-weight: 700; }
.pd__body { padding: 22px 20px 28px; display: grid; gap: 22px; }
.pd__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.pd__titles { min-width: 0; flex: 1 1 200px; }
.pd__titles h2 { font-size: clamp(26px, 6.5vw, 32px); margin: 0; }
.pd__alt { color: var(--muted); font-size: 14px; }
.pd__titles .stock { margin-top: 6px; }
.pd__sec h3 { font-size: 18px; margin-bottom: 8px; }
.pd__sec p { color: var(--muted); font-size: 15.5px; }
.pd__sec .tags { margin-top: 12px; }
.meters--lg { font-size: 14.5px; gap: 10px 16px; }
.meters--lg .seg { height: 8px; border-radius: 4px; }
.mini-row { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; margin-inline: -20px; padding: 2px 20px 6px; scroll-snap-type: x mandatory; scroll-padding-inline: 20px; }
.mini {
  flex: 0 0 132px; scroll-snap-align: start; display: grid; gap: 4px; text-align: left; cursor: pointer;
  border: 0; padding: 6px 6px 10px; border-radius: 20px; background: var(--bg); color: var(--text); font: inherit;
  transition: transform .35s var(--spring);
}
.mini:active { transform: scale(.96); }
.mini__img { display: block; aspect-ratio: 1; border-radius: 15px; overflow: hidden; }
.mini__img img { width: 100%; height: 100%; object-fit: cover; }
.mini__name { font-size: 14px; font-weight: 600; line-height: 1.45; padding-inline: 4px; }
.mini__price { font-size: 13px; color: var(--muted); padding-inline: 4px; font-variant-numeric: tabular-nums; }
.buybar {
  flex: none; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px max(20px, env(safe-area-inset-right, 0px)) calc(14px + env(safe-area-inset-bottom, 0px)) 20px;
  background: var(--jungle); color: var(--on-dark); border-radius: 28px 28px 0 0;
}
.buybar__price { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.buybar__price strong { font-size: 24px; font-variant-numeric: tabular-nums; }
.buybar__price span { font-size: 13px; color: var(--on-dark-muted); }
.buybar__btn { flex: 0 1 220px; min-height: 54px; }
.buybar__btn.is-added { background: var(--cream); }

/* ---------- basket ---------- */
.sheet .lines { list-style: none; margin: 0; padding: 0; }
.sheet .line { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding-block: 14px; border-bottom: 1px solid var(--line); }
.sheet .line__art { width: 72px; height: 72px; border-radius: 18px; overflow: hidden; border: 0; padding: 0; background: var(--bg); cursor: pointer; display: block; }
.sheet .line__art img { width: 100%; height: 100%; object-fit: cover; }
.line__info { min-width: 0; }
.sheet .line__name { font-weight: 600; font-size: 15.5px; line-height: 1.5; }
.sheet .line__unit { font-size: 12.5px; color: var(--muted); }
.sheet .line__total { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--lacquer); font-size: 15px; }
:root[data-theme="dark"] .sheet .line__total { color: var(--gold); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sheet .line__total { color: var(--gold); } }
.line__right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.line__del { width: 34px; height: 34px; border-radius: 10px; border: 1.5px solid color-mix(in srgb, var(--lacquer) 40%, transparent); background: transparent; color: var(--lacquer); display: grid; place-items: center; cursor: pointer; padding: 0; }
.line__del svg { width: 18px; height: 18px; }
.lines--compact .line { grid-template-columns: 56px minmax(0, 1fr) auto; }
.lines--compact .line__art { width: 56px; height: 56px; border-radius: 14px; cursor: default; }
.checkout { display: grid; gap: 12px; margin-top: 20px; }
.checkout__h { font-size: 17px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.loc-btn {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border-radius: 14px; cursor: pointer;
  border: 1.5px dashed var(--line); background: transparent; color: var(--text); font-size: 14.5px; font-weight: 600; text-align: left;
  transition: border-color .25s, background-color .25s;
}
.loc-btn svg { width: 20px; height: 20px; flex: none; color: var(--lacquer); }
.loc-btn.is-on { border-style: solid; border-color: var(--husk); background: color-mix(in srgb, var(--husk) 10%, transparent); }
.loc-btn.is-on svg { color: var(--husk-text); }
.total-line { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 16px; color: var(--muted); }
.total-line strong { font-size: 24px; color: var(--text); font-variant-numeric: tabular-nums; }
.sheet .sum { margin: 0; }
.sheet .empty { padding-top: 24px; }
.sheet .empty p { margin: 0; }

/* ---------- orders ---------- */
.orders { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ocard {
  width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px;
  padding: 14px; border-radius: 22px; border: 1px solid var(--line); background: var(--bg); color: var(--text);
  font: inherit; text-align: left; cursor: pointer; transition: transform .35s var(--spring);
}
.ocard:active { transform: scale(.98); }
.ocard__thumbs { display: flex; }
.o-thumb { width: 44px; height: 44px; border-radius: 14px; overflow: hidden; border: 2px solid var(--bg); margin-left: -14px; }
.o-thumb:first-child { margin-left: 0; }
.o-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ocard__info { display: flex; flex-direction: column; line-height: 1.5; min-width: 0; }
.ocard__info strong { font-size: 15px; }
.ocard__info span { font-size: 13px; color: var(--muted); }
.ocard__total { color: var(--text) !important; font-weight: 600; }
.pill { padding: 3px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--line); color: var(--text); white-space: nowrap; }
.pill--ok { background: color-mix(in srgb, var(--husk) 22%, transparent); color: var(--husk-text); }
.link-back { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; padding: 6px 0; margin-bottom: 8px; }
.link-back svg { width: 18px; height: 18px; }
.ohead { display: grid; grid-template-columns: 1fr auto; gap: 0 12px; padding: 16px 18px; border-radius: 20px; background: var(--bg); margin-bottom: 18px; }
.ohead span { font-size: 13px; color: var(--muted); }
.ohead strong { grid-row: 2; font-size: 20px; font-variant-numeric: tabular-nums; }
.ohead span:last-child { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; }
.timeline li { display: grid; grid-template-columns: 52px 30px minmax(0, 1fr); gap: 12px; position: relative; padding-bottom: 20px; }
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: calc(52px + 12px + 14px); top: 32px; bottom: 2px; width: 2px; background: var(--line); }
.timeline li.is-done:not(:last-child)::after { background: var(--husk); }
.timeline__time { font-size: 13px; color: var(--muted); padding-top: 4px; font-variant-numeric: tabular-nums; }
.timeline__dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line); background: var(--surface); color: var(--on-dark); }
.timeline li.is-done .timeline__dot { background: var(--jungle); border-color: var(--jungle); }
.timeline__dot svg { width: 16px; height: 16px; }
.timeline strong { font-size: 16px; display: block; line-height: 1.5; }
.timeline p { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.timeline li:not(.is-done) strong { color: var(--muted); }
.obtns { display: grid; gap: 10px; margin-top: 18px; }

/* ---------- more menu ---------- */
.menu__h { font-size: 13px; font-weight: 600; color: var(--muted); margin: 6px 4px 8px; }
html[lang="en"] .menu__h { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; }
.menu { list-style: none; margin: 0 0 18px; padding: 0; border-radius: 22px; background: var(--bg); overflow: hidden; }
.menu li + li { border-top: 1px solid var(--line); }
.menu__row {
  width: 100%; display: flex; align-items: center; gap: 14px; min-height: 58px; padding: 0 16px;
  border: 0; background: transparent; color: var(--text); font: inherit; font-size: 16px; text-align: left; text-decoration: none; cursor: pointer;
}
.menu__row:active { background: color-mix(in srgb, var(--text) 6%, transparent); }
.menu__ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--jungle); color: var(--gold); flex: none; }
.menu__ic svg { width: 20px; height: 20px; }
.menu__t { flex: 1; min-width: 0; }
.menu__v { color: var(--muted); font-size: 14px; }
.menu__chev { width: 9px; height: 9px; border-right: 2px solid var(--muted); border-top: 2px solid var(--muted); transform: rotate(45deg); margin-right: 4px; }
.switch { width: 50px; height: 30px; border-radius: 999px; background: var(--line); position: relative; flex: none; transition: background-color .3s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); transition: transform .35s var(--spring); }
.switch.is-on { background: var(--gold); }
.switch.is-on::after { transform: translateX(20px); }
.plain--menu { padding: 4px 6px 12px; }

@media (max-width: 560px) {
  .sheet { width: 100%; border-radius: 0; }
  .sheet[open] { animation: sheetUp .45s var(--ease); }
  .sheet.is-closing { animation: sheetDown .26s var(--ease) forwards; }
  .field-row { grid-template-columns: 1fr; }
}
@keyframes sheetUp { from { transform: translateY(100%); } }
@keyframes sheetDown { to { transform: translateY(100%); } }

/* sheets as app screens on phones: sit under the tab bar */
.sheet { position: fixed; inset: 0 0 0 auto; }
@media (max-width: 760px) {
  html.sheet-open, html.sheet-open body { overflow: hidden; }
  .sheet { z-index: 54; inset: 0; width: 100%; border-radius: 0; box-shadow: none; }
  .sheet:not(.sheet--product) .sheet__body { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  .sheet:not(.sheet--product) .sheet__foot { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
  .sheet:not(.sheet--product) .sheet__foot ~ * { display: none; }
  #cart .sheet__body { padding-bottom: 24px; }
  html.product-open .tabbar { transform: translateY(140%); }
  .tabbar { transition: transform .4s var(--ease); }
  html.sheet-open .nav { visibility: hidden; }
}
.sheet__scroll, .sheet__body { min-width: 0; overflow-x: hidden; }
.pd__body { grid-template-columns: minmax(0, 1fr); }
.pd__sec, .pd__head, .checkout, .field { min-width: 0; }
.pd__sec p, .timeline p, .ocard__info, .line__name { overflow-wrap: anywhere; }

/* ============================================================
   Motion system
   transform/opacity only · gated on html.js · off for reduced motion
   ============================================================ */

/* ---------- scroll reveals (stagger via --d) ---------- */
html.js [data-reveal]:not(.is-in) { opacity: 0; transform: translate3d(0, 28px, 0); }
html.js [data-reveal="scale"]:not(.is-in) { transform: scale(.94); }
html.js [data-reveal="left"]:not(.is-in) { transform: translate3d(-32px, 0, 0); }
[data-reveal].is-in { animation: rvIn .8s var(--ease) calc(var(--d, 0) * 70ms) backwards; }
[data-reveal="scale"].is-in { animation-name: rvScale; }
[data-reveal="left"].is-in { animation-name: rvLeft; }
@keyframes rvIn { from { opacity: 0; transform: translate3d(0, 28px, 0); } }
@keyframes rvScale { from { opacity: 0; transform: scale(.94); } }
@keyframes rvLeft { from { opacity: 0; transform: translate3d(-32px, 0, 0); } }
.stg-in { animation: rvIn .55s var(--ease) calc(var(--d, 0) * 45ms) backwards; }

/* ---------- image shimmer + fade-in ---------- */
.card__art, .mini__img, .ccard__fig, .band__fig, .season__fig, .match__art, .line__art, .o-thumb, .pd__media, .arch {
  background-color: var(--bg);
  background-image: linear-gradient(100deg, transparent 30%, color-mix(in srgb, var(--surface) 70%, transparent) 50%, transparent 70%);
  background-size: 220% 100%;
  animation: shimmer 1.4s linear infinite;
}
.arch { background-color: var(--jungle-2); }
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
html.js :is(.card__art, .mini__img, .ccard__fig, .band__fig, .season__fig, .match__art, .line__art, .o-thumb, .pd__media, .arch) img:not(.is-loaded) { opacity: 0; }
:is(.card__art, .mini__img, .ccard__fig, .band__fig, .season__fig, .match__art, .line__art, .o-thumb, .pd__media, .arch) img { transition: opacity .6s var(--ease), transform .9s var(--ease); }
:is(.card__art, .mini__img, .ccard__fig, .band__fig, .season__fig, .match__art, .line__art, .o-thumb, .pd__media, .arch):has(img.is-loaded) { animation: none; background-image: none; }

/* ---------- hero ---------- */
.hero__word { animation: wordBlur 1.2s var(--ease) both; }
@keyframes wordBlur { from { opacity: 0; transform: translate3d(0, 40px, 0) scale(.96); filter: blur(14px); } }
.hero__visual::before {
  content: ""; position: absolute; inset: 12% 10%; border-radius: 50%; z-index: -1;
  background: radial-gradient(closest-side, rgba(243, 196, 49, .35), transparent 70%);
  animation: breathe 6s ease-in-out infinite alternate;
}
@keyframes breathe { from { transform: scale(.85); opacity: .6; } to { transform: scale(1.12); opacity: 1; } }
.arch img.is-loaded { animation: kenburns 22s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.04) translate3d(0, 0, 0); } to { transform: scale(1.14) translate3d(-2%, -3%, 0); } }
.float-card { animation: wordIn 1s var(--spring) .6s both, bob 5s ease-in-out 1.8s infinite alternate; }
@keyframes bob { to { translate: 0 -8px; } }
.pollen { position: absolute; inset: 0; pointer-events: none; overflow: hidden; border-radius: inherit; }
.pollen i {
  position: absolute; bottom: -10px; width: var(--s, 6px); height: var(--s, 6px); border-radius: 50%;
  background: radial-gradient(circle, #FFE291, rgba(243, 196, 49, 0) 70%);
  animation: rise-up var(--t, 9s) linear var(--dl, 0s) infinite;
}
@keyframes rise-up {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translate3d(var(--dx, 20px), -110vh, 0); opacity: 0; }
}
.brand__mark { animation: spinIn 1.4s var(--spring) .2s both; }
@keyframes spinIn { from { transform: rotate(-180deg) scale(.4); opacity: 0; } }

/* ---------- buttons: shine + ripple + press ---------- */
.btn, .add, .filter, .mini, .menu__row, .loc-btn, .ocard { position: relative; overflow: hidden; isolation: isolate; }
.btn--shine::after, .hero__cta .btn--gold::after, .buybar__btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%);
  transform: translateX(-120%); animation: shine 3.6s var(--ease) 1.5s infinite;
}
@keyframes shine { 0% { transform: translateX(-120%); } 30%, 100% { transform: translateX(120%); } }
.ripple {
  position: absolute; border-radius: 50%; pointer-events: none; z-index: 2;
  width: var(--r); height: var(--r); left: var(--x); top: var(--y); margin: calc(var(--r) / -2) 0 0 calc(var(--r) / -2);
  background: currentColor; opacity: .22; transform: scale(0);
  animation: ripple .6s var(--ease) forwards;
}
@keyframes ripple { to { transform: scale(1); opacity: 0; } }
.add:active, .btn:active, .mini:active, .ocard:active { transform: scale(.96); }

/* ---------- product cards ---------- */
@media (hover: hover) and (pointer: fine) {
  .card { transition: transform .5s var(--spring); }
  .card:hover { transform: translateY(-6px); }
  .card__art { transform: perspective(700px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease); will-change: transform; }
}
.card .add.is-added { animation: popBtn .5s var(--spring); }
@keyframes popBtn { 40% { transform: scale(1.18); } }
.badge { animation: badgePulse 2.4s ease-in-out infinite; }
@keyframes badgePulse { 50% { box-shadow: 0 0 0 6px rgba(243, 196, 49, 0); } 0%, 100% { box-shadow: 0 0 0 0 rgba(243, 196, 49, .45); } }

/* ---------- add-to-basket flight + burst ---------- */
.fly-img {
  position: fixed; left: 0; top: 0; z-index: 95; width: 64px; height: 64px; border-radius: 50%;
  object-fit: cover; pointer-events: none; box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .5), 0 0 0 3px var(--gold);
}
.burst { position: fixed; left: 0; top: 0; z-index: 96; width: 0; height: 0; pointer-events: none; }
.burst i {
  position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold);
  animation: burst .7s var(--ease) forwards;
}
.burst i:nth-child(3n) { background: var(--lacquer); width: 6px; height: 6px; }
.burst i:nth-child(3n+1) { background: #9CCB6A; }
@keyframes burst { to { transform: rotate(var(--a)) translateY(-34px) scale(.3); opacity: 0; } }
.tab__badge:not([hidden]) { animation: badgeIn .45s var(--spring); }
@keyframes badgeIn { from { transform: scale(0); } }
.tab.pop .tab__ic { animation: tabPop .5s var(--spring); }
@keyframes tabPop { 40% { transform: translateY(-5px) scale(1.18); } }

/* ---------- product sheet FLIP + sections ---------- */
.flip-img { position: fixed; left: 0; top: 0; z-index: 200; object-fit: cover; pointer-events: none; transform-origin: 0 0; }
.sheet.flip[open] { animation: sheetFade .35s var(--ease); }
.sheet.flip .pd__media img { opacity: 0 !important; }
@keyframes sheetFade { from { opacity: 0; } }
.stock.is-ok::before { animation: livePulse 1.8s ease-out infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 currentColor; } 70%, 100% { box-shadow: 0 0 0 6px transparent; } }
.meters .seg.on { transform-origin: left; }
.is-in .meters .seg.on, .sheet[open] .meters .seg.on, .match .rank__bar i { animation: segGrow .7s var(--ease) calc(var(--k, 0) * 60ms + .2s) backwards; }
@keyframes segGrow { from { transform: scaleX(0); } }

/* ---------- order timeline draw ---------- */
.timeline li.is-done .timeline__dot { animation: dotIn .5s var(--spring) calc(var(--d, 0) * 220ms + .1s) backwards; }
@keyframes dotIn { from { transform: scale(0); } }
.timeline li.is-done .timeline__dot path { stroke-dasharray: 20; stroke-dashoffset: 20; animation: draw .45s var(--ease) calc(var(--d, 0) * 220ms + .35s) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.timeline li:not(:last-child)::after { transform-origin: top; }
.timeline li.is-done:not(:last-child)::after { animation: lineGrow .5s var(--ease) calc(var(--d, 0) * 220ms + .3s) backwards; }
@keyframes lineGrow { from { transform: scaleY(0); } }
.timeline li.is-next .timeline__dot { border-color: var(--gold); animation: nextPulse 1.8s ease-out infinite; }
@keyframes nextPulse { 0% { box-shadow: 0 0 0 0 rgba(243, 196, 49, .5); } 70%, 100% { box-shadow: 0 0 0 10px rgba(243, 196, 49, 0); } }

/* ---------- season countdown promo ---------- */
.promo { padding-block: clamp(56px, 8vw, 100px) 0; }
.promo__card {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px 40px; align-items: center;
  padding: clamp(24px, 4vw, 48px); padding-right: clamp(24px, 24vw, 340px);
  border-radius: clamp(28px, 3.6vw, 44px);
  background: var(--jungle); color: var(--on-dark);
  border: 1px solid var(--section-edge);
}
.promo__glow {
  position: absolute; z-index: -1; width: 520px; height: 520px; right: -120px; top: -160px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(243, 196, 49, .32), transparent 70%);
  animation: breathe 7s ease-in-out infinite alternate;
}
.promo__img {
  position: absolute; z-index: -1; right: clamp(20px, 3vw, 44px); top: 0; bottom: 0; margin-block: auto; width: clamp(150px, 20vw, 280px); height: auto;
  aspect-ratio: 1; object-fit: cover; object-position: 50% 40%;
  border-radius: 50%; box-shadow: 0 0 0 1px rgba(243, 196, 49, .45), 0 0 0 8px rgba(13, 32, 21, .6), 0 0 0 9px rgba(243, 196, 49, .3), 0 30px 60px -20px rgba(0, 0, 0, .6); animation: bob 5s ease-in-out infinite alternate;
}
.promo__k { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); font-weight: 600; font-size: 14px; }
.promo__k::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); animation: livePulse 1.8s ease-out infinite; color: var(--gold); }
.promo__t { font-size: clamp(24px, 3.2vw, 38px); margin-top: 6px; }
.promo__s { color: var(--on-dark-muted); margin: 10px 0 20px; max-width: 42ch; font-size: 15.5px; }
.promo__clock { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.cd {
  display: grid; justify-items: center; padding: 14px 6px 10px; border-radius: 20px;
  background: rgba(245, 238, 219, .07); border: 1px solid rgba(245, 238, 219, .1);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.cd__v { display: block; height: 1.25em; overflow: hidden; font-size: clamp(30px, 4vw, 46px); font-weight: 700; line-height: 1.25; color: var(--gold); font-variant-numeric: tabular-nums; }
.cd__v span { display: block; }
.cd__v.tick span { animation: tick .5s var(--ease); }
@keyframes tick { from { transform: translateY(-100%); opacity: 0; } }
.cd__l { font-size: 12.5px; color: var(--on-dark-muted); }

/* ---------- misc ambient ---------- */
.marquee:hover .marquee__track { animation-play-state: paused; }
.order__panel { background-image: radial-gradient(60% 80% at 100% 0%, rgba(255, 255, 255, .35), transparent 60%); }
.month.is-now { animation: nowGlow 2.4s ease-in-out infinite; }
@keyframes nowGlow { 50% { outline-offset: 6px; } }

@media (max-width: 820px) {
  .promo__card { grid-template-columns: 1fr; padding-right: clamp(24px, 4vw, 48px); padding-top: 28px; }
  .promo__img { width: 112px; right: 14px; top: 18px; bottom: auto; opacity: .95; }
  .promo__copy { padding-right: 112px; }
  .promo__clock { gap: 8px; }
  .cd { padding: 12px 4px 8px; border-radius: 16px; }
}
@media (max-width: 400px) {
  .promo__copy { padding-right: 84px; }
  .promo__img { width: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal]:not(.is-in) { opacity: 1; transform: none; }
  [data-reveal].is-in, .stg-in, .timeline li .timeline__dot, .timeline li .timeline__dot path, .timeline li::after { animation: none !important; stroke-dashoffset: 0 !important; }
  .pollen, .promo__glow, .hero__visual::before { display: none; }
  .btn--shine::after, .hero__cta .btn--gold::after, .buybar__btn::after { display: none; }
}

/* countdown: size digits from the clock's own width so Khmer numerals never overflow */
.promo__clock { container-type: inline-size; min-width: 0; align-self: center; }
.cd { min-width: 0; overflow: hidden; padding-inline: 4px; }
.cd__v { font-size: clamp(20px, 9cqi, 46px); white-space: nowrap; letter-spacing: -.02em; }
.cd__l { white-space: nowrap; font-size: clamp(11px, 3.2cqi, 13px); }
@media (max-width: 1100px) and (min-width: 821px) {
  .promo__card { grid-template-columns: 1fr; padding-right: clamp(24px, 26vw, 300px); }
  .promo__clock { max-width: 460px; }
}
.promo__clock { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
.cd__v { font-size: clamp(18px, 8cqi, 44px); }
