/* MOK — The Thai Highland List · lacquer and gold leaf */
:root {
  /* Light theme. Token names are roles: --lac = page, --lac-2 = raised surface,
     --ivory = main text, --ivory-2 = secondary text, --gold/--gold-hi = accent text. */
  --lac: #ffffff;          /* white page */
  --lac-2: #ffffff;        /* cards, bag (bordered) */
  --lac-3: #f3ede3;
  --ox: #4c1114;           /* oxblood */
  --ox-deep: #330b0d;
  --jade: #0f3a2e;         /* emerald */
  --jade-deep: #0a2a21;
  --gold: #7d5d21;         /* antique gold, 6:1 on white */
  --gold-hi: #7a5a1e;
  --gold-lo: #b99b62;
  --ivory: #1d1510;        /* ink */
  --ivory-2: #6a5949;
  --paper: #f4ecdd;
  --ink: #1e120c;
  --ink-2: #5a4336;
  --rule: rgba(29, 21, 16, .12);
  --rule-strong: rgba(29, 21, 16, .26);
  --pack: #f4f0ea;

  --f-display: "Cormorant Garamond", "Cormorant", Garamond, serif;
  --f-text: "Jost", "Futura", "Avenir Next", system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 64px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}
/* Dark surfaces (closing band, toast) keep the lacquer-and-gold values */
.close, .toast {
  --lac: #120a07; --lac-2: #1b110c;
  --gold: #c9a24f; --gold-hi: #e3c47c; --gold-lo: #8d6a2b;
  --ivory: #f1e7d6; --ivory-2: #c9b8a1;
  --rule: rgba(201, 162, 79, .28); --rule-strong: rgba(201, 162, 79, .62);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-color: var(--gold-lo) var(--lac); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; } }

body {
  margin: 0;
  background: var(--lac);
  color: var(--ivory);
  font: 400 1rem/1.65 var(--f-text);
  font-optical-sizing: auto;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--gold); color: var(--lac); }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
input, textarea, select { caret-color: var(--gold-hi); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; text-decoration-color: var(--gold); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-variant-numeric: lining-nums; font-family: var(--f-display); font-weight: 500; margin: 0; text-wrap: balance; letter-spacing: -.005em; line-height: 1.02; }
p { margin: 0; text-wrap: pretty; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
.seal { width: 1em; height: 1em; color: var(--gold); flex: none; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--lac); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }

/* ---------- buttons ---------- */
.btn-gold, .btn-ivory, .btn-line {
  display: inline-flex; align-items: center; justify-content: center; gap: .7em;
  min-height: 52px; padding: 0 26px; border: 0; border-radius: 2px;
  font: 600 1rem/1 var(--f-text); letter-spacing: .02em; text-decoration: none;
  transition: background-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
}
.btn-gold { background: var(--ivory); color: #fbf8f3; }
.btn-gold:hover { background: #3a2a1f; }
.btn-gold:active { background: #000; }
.btn-gold:disabled { background: #8c7d70; color: #fbf8f3; cursor: progress; }
.btn-gold__price { font-variant-numeric: tabular-nums; padding-left: .7em; border-left: 1px solid currentColor; }
.btn-ivory { background: var(--ivory); color: #1d1510; }
.btn-ivory:hover { background: #fff7e8; }
.btn-line { background: transparent; color: var(--gold-hi); box-shadow: inset 0 0 0 1px var(--gold); }
.btn-line:hover { background: rgba(201,162,79,.1); }
.btn-wide { width: 100%; }
.btn-text { background: none; border: 0; padding: 12px 0; color: var(--ivory-2); text-decoration: underline; text-decoration-color: var(--gold-lo); text-underline-offset: .25em; }
.btn-text:hover { color: var(--ivory); }

/* ---------- masthead ---------- */
.masthead {
  position: sticky; top: 0; z-index: 20;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 14px var(--gutter);
  background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.wordmark { display: inline-flex; align-items: center; gap: .45em; justify-self: start; text-decoration: none; font: 600 1.5rem/1 var(--f-display); letter-spacing: .3em; color: var(--gold-hi); }
.wordmark .seal { width: 1.25em; height: 1.25em; }
.masthead__title { font: 400 .95rem/1.2 var(--f-display); font-style: italic; color: var(--ivory-2); text-align: center; }
.masthead__ed { color: var(--gold); font-style: normal; font-family: var(--f-text); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; margin-left: .6em; }
.bag-btn { justify-self: end; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; background: none; border: 1px solid var(--rule-strong); border-radius: 2px; color: var(--ivory); font-weight: 600; }
.bag-btn:hover { border-color: var(--gold-hi); }
.bag-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--ivory); color: #fbf8f3; font-size: .8rem; font-variant-numeric: tabular-nums; }
.bag-count.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.3); } }

/* ---------- hero: the packs ---------- */
.hero { background: linear-gradient(180deg, #f6f1e9 0%, #fbf8f3 70%, #fff 100%); }
.hero__inner { width: 100%; max-width: 1440px; margin: 0 auto; padding: clamp(40px, 6vw, 88px) var(--gutter) clamp(40px, 5vw, 72px); display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
h1 { font-size: clamp(2.6rem, 4.8vw, 4.6rem); line-height: 1; font-weight: 500; max-width: 16ch; color: var(--ivory); }
.lede { margin-top: 20px; max-width: 44ch; color: var(--ivory-2); font-size: clamp(1.02rem, 1.3vw, 1.15rem); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.trust { list-style: none; margin: 34px 0 0; padding: 18px 0 0; display: flex; flex-wrap: wrap; gap: 12px 28px; border-top: 1px solid var(--rule); max-width: 680px; }
.trust li { display: inline-flex; align-items: center; gap: 10px; font-size: .95rem; color: var(--ivory); }
.trust svg { width: 22px; height: 22px; color: var(--gold); flex: none; }
/* stage: main jar on a stone podium, warm glow behind, beans in the air */
.hero__inner { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.hero__stage { position: relative; height: clamp(440px, 46vw, 680px); isolation: isolate; }
.hero__sun { position: absolute; left: 50%; top: 44%; width: min(78%, 540px); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; z-index: -1;
  background: #f2e8da; }
.hero__sun::after { content: ""; position: absolute; inset: 9%; border-radius: 50%; border: 1px solid rgba(125,93,33,.22); }
.hero__podium { position: absolute; left: 24%; right: 24%; bottom: 6%; height: 15%; z-index: 2; }
.hero__podium::before { content: ""; position: absolute; left: 0; right: 0; top: 30%; bottom: 0; border-radius: 0 0 50% 50% / 0 0 34% 34%;
  background: linear-gradient(90deg, #cbbca6 0%, #ece3d6 38%, #f6f0e7 52%, #d7c9b4 80%, #c4b49c 100%); }
.hero__podium::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 60%; border-radius: 50%;
  background: radial-gradient(ellipse at 45% 40%, #fbf8f3 0%, #efe7da 60%, #e2d6c4 100%); box-shadow: inset 0 -2px 3px rgba(120,95,60,.18); }
.hero__stage::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: 3%; height: 6%; border-radius: 50%; z-index: 1;
  background: radial-gradient(ellipse, rgba(70,45,20,.34), rgba(70,45,20,0) 70%); filter: blur(6px); }
.hero__pack { position: absolute; width: auto; }
.hero__pack--main { height: 70%; left: 50%; bottom: 12%; transform: translateX(-50%); z-index: 3;
  filter: drop-shadow(0 4px 4px rgba(40,24,10,.35)) drop-shadow(0 26px 32px rgba(60,36,14,.32)); }
.hero__pack--back { height: 58%; left: 3%; bottom: 20%; transform: rotate(-9deg); z-index: 1;
  filter: drop-shadow(0 22px 26px rgba(60,36,14,.22)) saturate(.95); }
.hero__pack--side { height: 46%; right: 7%; bottom: 8%; transform: rotate(7deg); z-index: 4;
  filter: drop-shadow(0 4px 4px rgba(40,24,10,.3)) drop-shadow(0 22px 26px rgba(60,36,14,.28)); }
.bean { position: absolute; z-index: 5; width: 34px; height: 48px; animation: bean-float 7s ease-in-out infinite; }
.bean--1 { left: 12%; top: 8%; width: 26px; height: 36px; rotate: -30deg; filter: blur(1.5px); }
.bean--2 { right: 14%; top: 4%; rotate: 40deg; animation-delay: -2s; }
.bean--3 { right: 2%; top: 42%; width: 22px; height: 31px; rotate: 110deg; filter: blur(2px); animation-delay: -4s; }
.bean--4 { left: 22%; bottom: 2%; width: 30px; height: 42px; rotate: 70deg; animation: none; }
.bean--5 { left: 30%; top: 26%; width: 18px; height: 25px; rotate: -60deg; filter: blur(2.5px); opacity: .8; animation-delay: -1s; }
@keyframes bean-float { 50% { translate: 0 -10px; } }
@media (prefers-reduced-motion: reduce) { .bean { animation: none; } }

/* ---------- shop: coffee cards ---------- */
.shop { max-width: 1440px; margin: 0 auto; padding: clamp(56px, 7vw, 96px) var(--gutter); scroll-margin-top: 64px; }
.shop__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 32px; margin-bottom: clamp(24px, 3vw, 40px); }
.shop__head h2 { font-size: clamp(2.2rem, 4vw, 3.6rem); }
.shop__head p { color: var(--ivory-2); max-width: 44ch; }
.shop__head b { color: var(--gold-hi); font-weight: 500; }
.shop__group + .shop__group { margin-top: clamp(48px, 6vw, 80px); }
.shop__sub { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.shop__sub h3 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
.shop__sub p { color: var(--ivory-2); }
.shop__group { scroll-margin-top: 80px; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); }
.card { display: flex; flex-direction: column; background: var(--lac-2); border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease); }
.card:hover { border-color: var(--rule-strong); transform: translateY(-3px); box-shadow: 0 24px 40px -26px rgba(60,40,20,.35); }
.card__pack { position: relative; background: var(--pack); display: grid; place-items: center; padding: 20px 18px 8px; height: clamp(260px, 24vw, 340px); }
.card__pack img { position: absolute; top: 16px; left: 12px; width: calc(100% - 24px); height: calc(100% - 22px); object-fit: contain; mix-blend-mode: multiply; transition: transform .5s var(--ease); }
.card:hover .card__pack img { transform: scale(1.04) rotate(-1deg); }
.card__badge { position: absolute; top: 12px; left: 12px; z-index: 1; padding: 6px 10px; border-radius: 2px; background: #1d1510; color: #e3c47c; font-size: .68rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.card__body { flex: 1; display: flex; flex-direction: column; padding: 18px 18px 16px; }
.card__no { font-size: .72rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.card__name { margin-top: 6px; font: 600 clamp(1.6rem, 2vw, 1.9rem)/1.05 var(--f-display); color: var(--ivory); }
.card__taste { margin-top: 8px; font-size: 1.05rem; font-weight: 500; color: var(--ox); }
.card__notes { margin-top: 2px; font: italic 500 1.05rem/1.35 var(--f-display); color: var(--ivory-2); }
.meter { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ivory-2); }
.meter__dots { display: flex; gap: 4px; }
.meter__dots i { width: 18px; height: 4px; border-radius: 2px; background: rgba(29,21,16,.12); }
.meter__dots i.on { background: var(--ox); }
.card__buy { margin-top: auto; padding-top: 18px; display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.card__price { white-space: nowrap; font-size: 1.25rem; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--ivory); }
.card__size { min-width: 0; }
.card__size--one { font-size: .95rem; color: var(--ivory-2); text-align: right; }
.card__size select { width: 100%; height: 40px; padding: 0 30px 0 10px; background: var(--lac-2); color: var(--ivory); border: 1px solid var(--rule); border-radius: 2px; font: inherit; font-size: .9rem; }
.card__buy .btn-gold { grid-column: 1 / -1; width: 100%; }
.card__more { margin-top: 14px; border-top: 1px solid var(--rule); }
.card__more summary { padding: 12px 0 0; cursor: pointer; font-size: .85rem; color: var(--ivory-2); text-decoration: underline; text-decoration-color: var(--gold-lo); text-underline-offset: .25em; list-style: none; }
.card__more summary::-webkit-details-marker { display: none; }
.card__ingr b { display: block; font-weight: 500; color: var(--gold); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.card__more p { margin-top: 10px; font-size: .9rem; color: var(--ivory-2); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.draft { margin-top: 18px; font-size: .85rem; font-style: italic; color: var(--gold); }

/* bag quantity control */
.qty { display: inline-flex; align-items: center; border: 1px solid var(--rule-strong); border-radius: 2px; }
.qty button { display: grid; place-items: center; width: 44px; height: 44px; background: none; border: 0; color: var(--gold-hi); }
.qty button svg { width: 18px; height: 18px; }
.qty button:hover { background: rgba(201,162,79,.1); }
.qty output { min-width: 26px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- lai rot nam band ---------- */
.band { height: 28px; border-block: 1px solid var(--rule-strong); opacity: .85; }
.band svg { display: block; }

/* ---------- journey ---------- */
/* Hills: full-bleed landscape that rises out of the white page */
.hills { position: relative; overflow: hidden; background: var(--lac); padding-top: clamp(48px, 6vw, 88px); }
.hills__text { position: relative; z-index: 1; max-width: 46rem; margin: 0 auto; padding: 0 var(--gutter); text-align: center; }
.hills__text h2 { font-size: clamp(2.2rem, 4.6vw, 4.2rem); line-height: 1.02; }
.hills__text p { margin: 16px auto 0; max-width: 36rem; color: var(--ivory-2); }
.hills__scene { position: relative; margin: clamp(-24px, -2vw, -8px) 0 0; }
.hills__scene img { display: block; width: 100%; height: clamp(340px, 42vw, 660px); object-fit: cover; object-position: 50% 55%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 28%, #000 82%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 28%, #000 82%, transparent 100%);
  transform: scale(1.06); transform-origin: 50% 100%; transition: transform 1.6s cubic-bezier(.2,.7,.2,1); }
.hills.is-in .hills__scene img { transform: scale(1); }
@media (prefers-reduced-motion: reduce) { .hills__scene img { transform: none; transition: none; } }
@media (max-width: 600px) { .hills__scene img { height: 300px; object-position: 50% 55%; } }

/* ---------- farm photographs ---------- */
.farm { max-width: 1440px; margin: 0 auto; padding: clamp(40px, 5vw, 72px) var(--gutter) clamp(64px, 8vw, 112px); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 64px); align-items: end; }
.farm h2 { font-size: clamp(2rem, 3.4vw, 3.2rem); }
.farm__text p { margin-top: 16px; color: var(--ivory-2); max-width: 40ch; }
.farm__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 12px; }
.farm__grid figure { margin: 0; }
.farm__grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 3px; }
.farm__grid figcaption { margin-top: 8px; font-size: .85rem; color: var(--ivory-2); }

/* ---------- note on ivory paper ---------- */
.note { padding: clamp(56px, 7vw, 104px) var(--gutter); background: var(--lac); }
.note__sheet {
  max-width: 1180px; margin: 0 auto; color: var(--ivory);
  background: var(--pack);
  padding: clamp(32px, 5vw, 72px) clamp(24px, 5vw, 80px);
  box-shadow: none;
  outline: 1px solid rgba(141,106,43,.5); outline-offset: -12px;
}
.note::selection, .note *::selection { background: var(--ox); color: var(--ivory); }
.note h2 { font-size: clamp(2rem, 3.4vw, 3.2rem); }
.note__cols { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(28px, 5vw, 80px); margin-top: 28px; }
.note__text p + p { margin-top: 1em; }
.note__text { font-size: 1.12rem; max-width: 62ch; }
.drop::first-letter { float: left; font: 600 4.4em/.82 var(--f-display); margin: .06em .1em 0 0; color: var(--ox); }
.sign { display: flex; align-items: center; gap: .5em; font-style: italic; color: var(--ink-2); }
.note__margin { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(30,18,12,.5); }
.note__margin li { display: grid; grid-template-columns: 4.6rem 1fr; gap: 14px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid rgba(30,18,12,.18); }
.note__margin b { font: 600 1.7rem/1 var(--f-display); color: var(--ox); font-variant-numeric: lining-nums; }
.note__margin .plus { font: 600 .8em/1 var(--f-text); vertical-align: .32em; margin-left: .04em; }
.note__margin span:not(.plus) { color: var(--ink-2); font-size: .98rem; }
.note .sign { margin-top: 1.2em; font-style: italic; color: var(--ivory-2); }

.journey { max-width: 1440px; margin: 0 auto; padding: clamp(40px, 6vw, 88px) var(--gutter) clamp(64px, 8vw, 112px); }
.journey h2 { font-size: clamp(2rem, 3.4vw, 3.2rem); }
.journey__lede { margin-top: 12px; color: var(--ivory-2); }
.journey__line { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; }
.journey__line::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--rule-strong); }
.journey__line li { position: relative; padding: 32px 20px 0 0; }
.journey__line li::before { content: ""; position: absolute; left: 0; top: 0; width: 13px; height: 13px; transform: rotate(45deg); background: var(--lac); border: 1px solid var(--gold); }
.journey__line li:last-child::before { background: var(--gold-hi); }
.journey__line b { display: block; font: 600 1.3rem/1.2 var(--f-display); color: var(--gold-hi); }
.journey__line span { display: block; margin-top: 6px; color: var(--ivory-2); font-size: .98rem; max-width: 26ch; }

/* ---------- ordering ---------- */
.ordering { max-width: 1180px; margin: 0 auto; padding: clamp(56px, 7vw, 104px) var(--gutter); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px clamp(32px, 5vw, 80px); }
.ordering h2 { grid-column: 1 / -1; font-size: clamp(2rem, 3.4vw, 3.2rem); }
.ordering__terms { margin: 0; }
.ordering__terms div { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.ordering__terms dt { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.ordering__terms dd { margin: 4px 0 0; color: var(--ivory); }
.faq { border-top: 1px solid var(--rule-strong); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; cursor: pointer; font: 600 1.2rem/1.3 var(--f-display); color: var(--ivory); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 20px; height: 20px; color: var(--gold); flex: none; transition: transform .3s var(--ease); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq summary:hover { color: var(--gold-hi); }
.faq details p { padding: 0 0 20px; color: var(--ivory-2); max-width: 60ch; }

/* ---------- close on oxblood ---------- */
.close {
  display: grid; justify-items: center; text-align: center; gap: 28px;
  padding: clamp(72px, 10vw, 140px) var(--gutter);
  background: linear-gradient(180deg, rgba(29,21,16,.62), rgba(29,21,16,.82)), url("assets/img/hills-mist.webp") center 40% / cover no-repeat var(--ox-deep);
  border-top: 1px solid var(--rule-strong);
}
@media (max-width: 860px) { .close { background-image: linear-gradient(180deg, rgba(29,21,16,.62), rgba(29,21,16,.82)), url("assets/img/hills-mist-1000.webp"); } }
.close h2 { font-size: clamp(2.2rem, 4.4vw, 4.2rem); max-width: 18ch; color: var(--ivory); line-height: 1.05; }
.close :focus-visible { outline-color: var(--ivory); }

/* ---------- footer ---------- */
.foot { display: grid; gap: 10px; justify-items: center; text-align: center; padding: 48px var(--gutter) 120px; border-top: 1px solid var(--rule); color: var(--ivory-2); font-size: .95rem; }
.wordmark--small { font-size: 1.1rem; justify-self: center; }
.foot a { color: var(--ivory); }
.credits { font-size: .8rem; max-width: 70ch; }

/* ---------- bag dialog ---------- */
.bag { width: min(480px, 100vw); max-width: none; height: 100dvh; max-height: none; margin: 0 0 0 auto; padding: 0; border: 0; border-left: 1px solid var(--rule-strong); background: var(--lac-2); color: var(--ivory); }
.bag[open] { animation: slide .45s var(--ease); }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.bag::backdrop { background: rgba(29,21,16,.45); backdrop-filter: blur(3px); }
.bag__inner { display: flex; flex-direction: column; min-height: 100%; padding: 0 28px 28px; }
.bag__head { display: flex; justify-content: space-between; align-items: center; padding: 22px 0 18px; border-bottom: 1px solid var(--rule-strong); }
.bag__head h2 { font-size: 1.7rem; }
.bag__close { display: grid; place-items: center; width: 44px; height: 44px; background: none; border: 0; color: var(--ivory); }
.bag__view { padding-top: 8px; }
.slip { list-style: none; margin: 0; padding: 0; }
.slip li { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.slip__name { font: 600 1.15rem/1.25 var(--f-display); }
.slip__no { font: italic 600 .95rem var(--f-text); color: var(--gold); margin-right: .4em; }
.slip__price { font-weight: 600; font-variant-numeric: tabular-nums; }
.slip__meta { grid-column: 1 / -1; font-size: .9rem; color: var(--ivory-2); }
.slip__ctrl { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.slip .qty button { width: 40px; height: 40px; }
.slip__rm { background: none; border: 0; color: var(--ivory-2); text-decoration: underline; text-decoration-color: var(--gold-lo); padding: 10px 0; }
.slip__empty { display: none; padding: 32px 0; color: var(--ivory-2); }
.slip__empty .btn-line { margin-top: 16px; }
.bag.is-empty .slip__empty { display: block; }
.bag.is-empty [data-totals], .bag.is-empty [data-checkout], .bag.is-empty [data-free-hint] { display: none; }
.totals { margin: 16px 0 0; }
.totals div { display: flex; justify-content: space-between; padding: 6px 0; color: var(--ivory-2); }
.totals dd { margin: 0; font-variant-numeric: tabular-nums; color: var(--ivory); }
.totals__grand { border-top: 1px solid var(--rule-strong); margin-top: 6px; padding-top: 12px !important; }
.totals__grand dt, .totals__grand dd { font: 600 1.3rem/1.2 var(--f-display); color: var(--ivory); }
.totals__hint { margin: 6px 0 18px; font-size: .9rem; color: var(--gold); }
.checkout { display: grid; gap: 16px; padding-top: 18px; }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; }
.field label, .field legend { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); padding: 0; }
.field .opt { text-transform: none; letter-spacing: 0; color: var(--ivory-2); }
.field input:not([type=radio]), .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--rule-strong); border-radius: 2px;
  background: var(--lac); color: var(--ivory); font: inherit;
}
.field ::placeholder { color: #75665a; }
.field input:focus, .field select, .field textarea:focus { outline: none; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--gold-hi); box-shadow: 0 0 0 1px var(--gold-hi); }
.field [aria-invalid="true"] { border-color: #b3412a; }
.err { color: #b3412a; font-size: .9rem; min-height: 0; }
.err:empty { display: none; }
.err a { color: var(--ivory); }
.pay { gap: 8px; }
.pay__opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 2px; cursor: pointer; text-transform: none !important; letter-spacing: 0 !important; color: var(--ivory-2) !important; font-size: .95rem !important; }
.pay__opt:has(input:checked) { border-color: var(--gold-hi); background: rgba(201,162,79,.08); }
.pay__opt b { display: block; color: var(--ivory); font-size: 1rem; }
.pay__opt input { accent-color: var(--gold-hi); margin-top: 4px; }
.totals--compact { margin: 0; }
.done { display: grid; gap: 14px; justify-items: start; padding-top: 32px; }
.done__no { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.done h3 { font-size: 2rem; line-height: 1.1; }
.done p { color: var(--ivory-2); }

/* ---------- toast ---------- */
@media (min-width: 861px) { .nw { white-space: nowrap; } }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 40; display: flex; align-items: center; gap: 16px; padding: 12px 14px 12px 18px; background: #1d1510; color: #f1e7d6; border-radius: 2px; box-shadow: 0 16px 36px -12px rgba(0,0,0,.8); transform: translate(-50%, 16px); opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
.toast button { background: none; border: 0; font-weight: 600; color: #e3c47c; text-decoration: underline; padding: 8px 4px; white-space: nowrap; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .masthead { grid-template-columns: 1fr auto; padding-block: 10px; }
  .masthead__title { display: none; }
  .hero__inner { grid-template-columns: minmax(0, 1fr); padding-top: 20px; }
  .hero__stage { order: -1; height: clamp(340px, 90vw, 440px); max-width: 480px; width: 100%; margin: 0 auto; }
  .trust { flex-direction: column; gap: 10px; }
  .ordering, .note__cols, .farm { grid-template-columns: minmax(0, 1fr); }
  .journey__line { grid-template-columns: minmax(0, 1fr); }
  .journey__line::before { left: 6px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .journey__line li { padding: 0 0 26px 36px; }
}
@media (max-width: 600px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
  .farm__grid { grid-template-columns: 1fr 1fr; }
  .farm__grid figure:first-child { grid-column: 1 / -1; }
  .farm__grid figure:first-child img { aspect-ratio: 16 / 10; }
  .card__pack { height: 250px; padding: 16px 12px 6px; }
  .card__buy { grid-template-columns: auto minmax(0, 1fr); }
  .card__body { padding: 14px 14px 12px; }
  .card__name { font-size: 1.5rem; }
  .meter__dots i { width: 12px; }
  .meter { gap: 6px; font-size: .64rem; }
}
