/* =========================================================
   CASHOU – Website stylesheet
   Layout: một cột rộng 1240px trên nền kem; mỗi section là một "băng màu"
   (kem → olive đậm → xanh cốm → nâu) giống bản thiết kế Canva.
   ========================================================= */

/* Marck Script (Google Fonts, OFL) — tự host. Bộ "vietnamese" được dựng thêm cho dấu tiếng Việt */
@font-face{font-family:'Marck Script';font-style:normal;font-weight:400;font-display:swap;src:url("../fonts/script/MarckScript-vietnamese.woff2") format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9;}
@font-face{font-family:'Marck Script';font-style:normal;font-weight:400;font-display:swap;src:url("../fonts/script/MarckScript-latin-ext.woff2") format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'Marck Script';font-style:normal;font-weight:400;font-display:swap;src:url("../fonts/script/MarckScript-latin.woff2") format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face {
  font-family: "Cashou Display";
  src: url("../fonts/CashouDisplay-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cashou Display";
  src: url("../fonts/CashouDisplay-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  /* màu thương hiệu */
  --cream: #FFFDEF;
  --cream-2: #FFF3D0;
  --sand: #FAE8B3;
  --gold: #F4D27E;
  --brown: #6E4D26;
  --brown-ink: #3F2A12;
  --brown-2: #8A6328;
  --red: #C4412E;
  --lime: #B3E15B;
  --lime-bg: #C9E58A;
  --olive: #3D3818;
  --olive-2: #4D4722;
  --white: #FFFFFF;
  --line: rgba(110, 77, 38, .18);
  --shadow: 0 18px 40px -22px rgba(63, 42, 18, .45);

  /* chữ */
  /* Theo Canva: tiêu đề/nút/tên SP/giá/nhãn = Cashou Display,
     thân bài = Inter Tight, chữ viết tay = Marck Script (tự host, đã dựng thêm dấu tiếng Việt) */
  --f-display: "Cashou Display", "Inter Tight", system-ui, sans-serif;
  --f-ui: "Cashou Display", "Inter Tight", system-ui, sans-serif;
  --f-body: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-script: "Marck Script", "Brush Script MT", cursive;

  --fs-xs: .75rem; --fs-sm: .875rem; --fs-md: 1rem; --fs-lg: 1.125rem;
  --fs-h4: clamp(1.15rem, 1rem + .6vw, 1.45rem);
  --fs-h3: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
  --fs-h2: clamp(2rem, 1.4rem + 2.6vw, 3.4rem);
  --fs-h1: clamp(2.6rem, 1.6rem + 4.6vw, 5.4rem);

  --wrap: 1240px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --radius: 22px;
  --radius-sm: 12px;
  --header-h: 72px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--brown-ink);
  font-family: var(--f-body);
  font-size: var(--fs-md);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--red);
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; line-height: 1.05; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 6px; }

.wrap {
  width: 100%; max-width: calc(var(--wrap) + 32px); margin-inline: auto;
  padding-left: var(--gutter-l); padding-right: var(--gutter-r);
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.display { font-family: var(--f-display); font-weight: 400; letter-spacing: .005em; }
.upper { text-transform: uppercase; letter-spacing: .06em; }

/* ---------- Buttons & pills ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--f-ui); font-weight: 700; font-size: var(--fs-sm);
  text-transform: uppercase; letter-spacing: .08em;
  padding: .95em 1.8em; border-radius: 999px; border: 2px solid transparent;
  background: var(--brown); color: var(--cream);
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn--light { background: var(--cream); color: var(--brown); }
.btn--lime { background: var(--lime); color: var(--olive); }
.btn--red { background: var(--red); color: var(--cream); }
.btn--ghost { background: transparent; color: var(--brown); border-color: var(--brown); }
.btn--ghost-light { background: transparent; color: var(--cream); border-color: var(--cream); }
.btn--sm { padding: .6em 1.2em; font-size: var(--fs-xs); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.pill {
  display: inline-flex; align-items: center; font-family: var(--f-ui); font-weight: 700;
  font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  padding: .45em 1em; border-radius: 999px; border: 1.5px solid currentColor;
}
.badge {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  font-family: var(--f-ui); font-weight: 700; font-size: .62rem; letter-spacing: .1em;
  padding: .45em .8em; border-radius: 999px; color: var(--cream); background: var(--red);
}
.badge--green { background: #6E9A27; }
.badge--brown { background: var(--brown); }

/* ---------- Promo bar ---------- */
.promo {
  background: var(--red); color: var(--cream); font-family: var(--f-ui); font-weight: 700;
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; overflow: hidden;
  padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px);
}
.promo__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.promo__item { padding: .62rem 1.6rem; white-space: nowrap; display: flex; align-items: center; gap: 1.6rem; }
.promo__item::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sand); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Header ---------- */
.header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--cream) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(63,42,18,.5); }
.header__bar { display: flex; align-items: center; gap: 1rem; height: var(--header-h); }
.logo {
  font-family: var(--f-display); font-weight: 700; font-size: 2rem; color: var(--brown);
  line-height: 1; letter-spacing: -.01em; margin-right: auto;
}
.nav { display: flex; gap: .25rem; align-items: center; }
.nav a {
  font-family: var(--f-ui); font-weight: 700; font-size: .78rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--brown); padding: .55em 1.05em; border-radius: 999px;
  border: 1.5px solid transparent; transition: border-color .2s, background .2s;
}
.nav a:hover { background: var(--cream-2); }
.nav a.is-active { border-color: var(--brown); }
.header__tools { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px;
  border-radius: 50%; border: 0; background: transparent; color: var(--brown);
  transition: background .2s;
}
.icon-btn:hover { background: var(--cream-2); }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn .count {
  position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--red); color: var(--cream);
  font: 700 .65rem/18px var(--f-ui); text-align: center;
}
.icon-btn .count.bump { animation: bump .4s ease; }
@keyframes bump { 40% { transform: scale(1.35); } }
.lang-btn {
  font-family: var(--f-ui); font-weight: 700; font-size: .72rem; letter-spacing: .1em;
  border: 1.5px solid var(--brown); color: var(--brown); background: transparent;
  border-radius: 999px; padding: .38em .8em; margin-left: .25rem;
}
.lang-btn:hover { background: var(--brown); color: var(--cream); }
.menu-btn { display: none; }

@media (max-width: 960px) {
  .nav { display: none; }
  .menu-btn { display: inline-grid; }
  .logo { margin-right: 0; }
  .header__tools { margin-left: auto; }
}

/* ---------- Mobile menu ---------- */
.mnav {
  position: fixed; inset: 0; z-index: 80; background: var(--brown); color: var(--cream);
  display: flex; flex-direction: column;
  padding: calc(env(safe-area-inset-top, 0px) + 18px) var(--gutter-r) calc(env(safe-area-inset-bottom, 0px) + 24px) var(--gutter-l);
  transform: translateX(100%); transition: transform .35s cubic-bezier(.2,.8,.2,1); visibility: hidden;
}
.mnav.is-open { transform: none; visibility: visible; }
.mnav__top { display: flex; justify-content: space-between; align-items: center; }
.mnav .logo { color: var(--cream); }
.mnav .icon-btn { color: var(--cream); }
.mnav .icon-btn:hover { background: rgba(255,255,255,.1); }
.mnav__links { margin-top: 2.5rem; display: grid; gap: .25rem; }
.mnav__links a { font-family: var(--f-display); font-size: 2.4rem; line-height: 1.2; padding: .1em 0; }
.mnav__links a.is-active { color: var(--lime); }
.mnav__foot { margin-top: auto; font-family: var(--f-ui); font-size: var(--fs-sm); opacity: .85; display: grid; gap: .4rem; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 2rem + 5vw, 6.5rem); }
.section--tight { padding-block: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.sec-title { font-family: var(--f-display); font-weight: 400; font-size: var(--fs-h2); color: var(--brown); text-transform: uppercase; }
.sec-lead { max-width: 60ch; color: var(--brown); font-size: var(--fs-lg); margin-top: .75rem; }
.kicker { font-family: var(--f-ui); font-weight: 700; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--red); }

/* ---------- Hero slider ---------- */
.hero { padding-top: clamp(1rem, .5rem + 1.5vw, 1.75rem); }
.slider { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--cream-2); isolation: isolate; }
.slides { display: grid; }
.slide {
  grid-area: 1 / 1; position: relative; min-height: clamp(440px, 34vw + 200px, 640px);
  display: grid; align-items: center; opacity: 0; visibility: hidden;
  transition: opacity .8s ease, visibility .8s;
}
.slide.is-active { opacity: 1; visibility: visible; }
.slide__media { position: absolute; inset: 0; z-index: -1; }
.slide__media img { width: 100%; height: 100%; object-fit: cover; }
.slide.is-active .slide__media img { animation: kenburns 9s ease-out both; }
@keyframes kenburns { from { transform: scale(1.06); } to { transform: scale(1); } }
.slide__body { padding: clamp(1.5rem, 1rem + 4vw, 4.5rem); max-width: 760px; display: grid; gap: 1.2rem; justify-items: start; }
.slide--main { background: linear-gradient(90deg, var(--cream-2) 0%, var(--cream-2) 30%, transparent 62%); }
.slide--main .slide__media img { object-position: 70% center; }
.slide--main h1 { font-family: var(--f-display); font-weight: 400; font-size: clamp(2.5rem, 1.3rem + 4.2vw, 4.9rem); color: var(--red); line-height: .98; }
.slide--main p { color: var(--brown); font-size: var(--fs-lg); max-width: 34ch; }
.slide--dark { color: var(--cream); }
.slide--dark::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(40,25,8,.82) 0%, rgba(40,25,8,.45) 55%, rgba(40,25,8,.1) 100%); }
.slide--dark .big { font-family: var(--f-display); font-weight: 700; font-size: clamp(4.5rem, 3rem + 7vw, 9rem); line-height: .85; color: var(--sand); }
.slide--dark h2 { font-family: var(--f-display); font-weight: 400; font-size: var(--fs-h2); text-transform: uppercase; color: var(--cream); }
.slide--dark p { max-width: 44ch; color: var(--cream-2); font-size: var(--fs-lg); }
.slide--sun h2 { font-size: clamp(2.8rem, 1.8rem + 5vw, 6rem); line-height: .92; }
.slide--sun .est { font-family: var(--f-ui); font-weight: 700; letter-spacing: .2em; font-size: .75rem; color: var(--lime); }
.slider__ui {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: center;
  padding: 1rem clamp(1rem, .5rem + 2vw, 2rem); pointer-events: none;
}
.dots { display: flex; gap: .5rem; pointer-events: auto; }
.dots button { width: 32px; height: 6px; padding: 0; border: 0; border-radius: 999px; background: rgba(110,77,38,.3); transition: width .3s, background .3s; }
.dots button.is-active { width: 56px; background: var(--red); }
.arrows { display: flex; gap: .5rem; pointer-events: auto; }
.arrow {
  width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--brown);
  background: var(--cream); color: var(--brown); display: grid; place-items: center; transition: background .2s, color .2s;
}
.arrow:hover { background: var(--brown); color: var(--cream); }
.arrow svg { width: 18px; height: 18px; }
@media (max-width: 720px) {
  .slide { align-items: end; }
  .slide--main { background: linear-gradient(0deg, var(--cream-2) 0%, var(--cream-2) 38%, transparent 72%); }
  .slide--main .slide__media img { object-position: 62% top; }
  .slide__body { padding-bottom: 4.5rem; }
  .slide--dark::before { background: linear-gradient(0deg, rgba(40,25,8,.88) 0%, rgba(40,25,8,.5) 60%, rgba(40,25,8,.15) 100%); }
}

/* ---------- Product cards ---------- */
.grid-products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.75rem, .5rem + 1vw, 1.5rem); }
@media (max-width: 1024px) { .grid-products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid-products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pcard {
  position: relative; display: flex; flex-direction: column; background: var(--white);
  border: 1.5px solid var(--sand); border-radius: var(--radius); overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s;
}
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold); }
.pcard__media {
  position: relative; aspect-ratio: 1 / 1; max-width: 100%;
  background: radial-gradient(ellipse at 50% 70%, var(--cream-2) 0%, var(--cream) 70%);
  display: grid; place-items: center; overflow: hidden;
}
.pcard__media img { width: 72%; height: 82%; object-fit: contain; transition: transform .5s ease; filter: drop-shadow(0 16px 18px rgba(63,42,18,.22)); }
.pcard__media img.cover { width: 100%; height: 100%; object-fit: cover; filter: none; }
.pcard:hover .pcard__media img { transform: scale(1.05) rotate(-1.5deg); }
.pcard__body { padding: 1rem 1.1rem 1.15rem; display: grid; gap: .55rem; flex: 1; align-content: start; }
.sizes { display: flex; gap: .35rem; flex-wrap: wrap; }
.size-chip {
  font-family: var(--f-ui); font-weight: 700; font-size: .66rem; letter-spacing: .06em;
  padding: .38em .7em; border-radius: 999px; border: 1.5px solid var(--line); background: transparent; color: var(--brown);
  transition: background .15s, color .15s, border-color .15s;
}
.size-chip:hover { border-color: var(--brown); }
.size-chip.is-active { background: var(--brown); color: var(--cream); border-color: var(--brown); }
.pcard__name { font-family: var(--f-ui); font-weight: 700; font-size: .98rem; text-transform: uppercase; letter-spacing: .02em; color: var(--brown-ink); line-height: 1.25; }
.pcard__name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.pcard__foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: auto; padding-top: .25rem; }
.price { font-family: var(--f-ui); font-weight: 700; font-size: 1.05rem; color: var(--red); font-variant-numeric: tabular-nums; }
.pcard .sizes, .pcard .add-btn { position: relative; z-index: 2; }
.add-btn {
  width: 40px; height: 40px; flex: none; border-radius: 50%; border: 0; background: var(--brown); color: var(--cream);
  display: grid; place-items: center; transition: background .2s, transform .2s;
}
.add-btn:hover { background: var(--red); transform: rotate(90deg); }
.add-btn svg { width: 18px; height: 18px; }

/* ---------- Root of taste (bento) ---------- */
.root { background: var(--olive); color: var(--cream); border-radius: var(--radius); padding: clamp(1.25rem, .8rem + 2vw, 2.5rem); }
.root__title { font-family: var(--f-display); font-weight: 700; color: var(--lime); font-size: clamp(2.6rem, 1.5rem + 5vw, 5.8rem); line-height: .95; display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: clamp(1rem, .5rem + 2vw, 2rem); }
.seal {
  flex: none; width: clamp(64px, 5vw + 40px, 96px); aspect-ratio: 1; border-radius: 50%; border: 1.5px solid var(--lime);
  color: var(--lime); display: grid; place-items: center; text-align: center;
  font: 700 .6rem/1.2 var(--f-ui); letter-spacing: .14em;
}
.seal b { display: block; font-family: var(--f-display); font-size: 1.4rem; letter-spacing: 0; font-weight: 400; }
.bento { display: grid; grid-template-columns: 1fr 1.25fr 1fr; grid-template-rows: auto auto; gap: clamp(.6rem, .4rem + .6vw, 1rem); }
.tile { position: relative; border-radius: var(--radius-sm); overflow: hidden; min-height: 220px; background: var(--olive-2); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.tile:hover img { transform: scale(1.04); }
.tile__txt { position: relative; z-index: 1; padding: 1.1rem 1.2rem; display: grid; gap: .6rem; height: 100%; align-content: end; }
.tile--shade::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(30,26,8,.0) 30%, rgba(30,26,8,.78) 100%); }
.tile--shade .tile__txt { z-index: 2; }
.tile h3 { font-family: var(--f-display); font-weight: 400; font-size: var(--fs-h3); color: var(--cream); text-transform: uppercase; line-height: 1; }
.tile p { font-size: var(--fs-sm); color: var(--cream-2); max-width: 40ch; }
.tile--capital { grid-column: 2 / 4; display: grid; grid-template-columns: 1.1fr 1fr; background: var(--olive-2); }
.tile--capital .tile__img { position: relative; min-height: 220px; }
.tile--capital .tile__txt { align-content: center; padding: 1.4rem; }
.tile--capital h3 { color: var(--lime); }
.tile--soil h3 { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); color: var(--sand); }
.tile--orchard { grid-column: 2 / 4; min-height: 300px; }
.tile--orchard .tile__txt { grid-template-columns: 1fr auto; align-items: end; }
.place { font-family: var(--f-ui); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--lime); }
.soil-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.6rem, .4rem + .6vw, 1rem); margin-top: clamp(.6rem, .4rem + .6vw, 1rem); }
.soil-point { border: 1px solid rgba(179,225,91,.35); border-radius: var(--radius-sm); padding: 1.1rem 1.2rem; display: grid; gap: .4rem; }
.soil-point h4 { font-family: var(--f-ui); font-weight: 700; color: var(--lime); font-size: .95rem; text-transform: uppercase; letter-spacing: .04em; line-height: 1.25; }
.soil-point p { font-size: var(--fs-sm); color: var(--cream-2); }
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .tile--capital, .tile--orchard { grid-column: 1 / -1; }
  .soil-points { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .tile--orchard .tile__txt { grid-template-columns: 1fr; }
  .tile--capital { grid-template-columns: 1fr; }
  .root__title { font-size: 2.6rem; }
}

/* ---------- Steps / ngày vu điều ---------- */
.farm { background: var(--lime-bg); border-radius: var(--radius); padding: clamp(1.25rem, .8rem + 2vw, 2.5rem); position: relative; overflow: hidden; }
.farm__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.farm__title { display: flex; align-items: center; gap: .5rem; }
.farm__title h2 { font-family: var(--f-script); font-weight: 400; font-size: clamp(2.8rem, 1.8rem + 4.5vw, 5.4rem); color: var(--brown); line-height: .9; transform: rotate(-3deg); }
.farm__title img { width: clamp(84px, 6vw + 50px, 140px); }
.farm__meta { display: grid; gap: .7rem; justify-items: end; text-align: right; }
.farm__meta small { font-family: var(--f-ui); font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brown); max-width: 14ch; line-height: 1.3; }
.tabs { display: inline-flex; gap: .3rem; padding: .3rem; border-radius: 999px; background: rgba(255,253,239,.6); }
.tab { font-family: var(--f-ui); font-weight: 700; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; padding: .55em 1.1em; border-radius: 999px; border: 0; background: transparent; color: var(--brown); }
.tab.is-active { background: var(--brown); color: var(--cream); }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .75rem; scrollbar-width: thin; scrollbar-color: var(--brown) transparent; }
.rail > * { scroll-snap-align: start; }
@media (max-width: 760px) { .rail { grid-auto-columns: 72%; } }
.step { display: grid; gap: .6rem; }
.step__img { aspect-ratio: 3 / 4; max-width: 100%; border-radius: var(--radius-sm); overflow: hidden; background: var(--brown); }
.step__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.step:hover .step__img img { transform: scale(1.05); }
.step__cap { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; color: var(--brown); }
.step__cap b { font-family: var(--f-ui); font-weight: 700; font-size: 1rem; }
.step__cap span { font-family: var(--f-display); font-size: 1.8rem; line-height: 1; color: var(--brown-2); }
.step__sub { font-family: var(--f-ui); font-size: .72rem; color: var(--brown); opacity: .8; }
.step__txt { font-size: var(--fs-sm); color: var(--brown-ink); }
.farm__foot { display: flex; justify-content: flex-end; margin-top: 1.25rem; }
.harvest { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1rem; }
.harvest img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-sm); min-height: 260px; }
.harvest__side { display: grid; gap: 1rem; grid-template-rows: 1fr 1fr; }
@media (max-width: 760px) { .harvest { grid-template-columns: 1fr; } }

/* ---------- New products ---------- */
.ncards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.75rem, .5rem + 1vw, 1.5rem); }
@media (max-width: 1024px) { .ncards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .ncards { grid-template-columns: 1fr; } }
.ncard { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1.5px solid var(--sand); display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.ncard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.ncard__img { aspect-ratio: 4 / 5; max-width: 100%; overflow: hidden; }
.ncard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.ncard:hover .ncard__img img { transform: scale(1.05); }
.ncard__body { padding: 1.1rem 1.2rem 1.25rem; display: grid; gap: .6rem; flex: 1; }
.ncard__body h3 { font-family: var(--f-ui); font-weight: 700; font-size: 1.05rem; text-transform: uppercase; color: var(--brown-ink); line-height: 1.2; }
.ncard__body p { font-size: var(--fs-sm); color: var(--brown); }
.ncard__body .btn { justify-self: end; margin-top: auto; }

/* ---------- Core values ---------- */
.core-title { font-family: var(--f-display); font-size: var(--fs-h2); color: var(--brown); text-align: center; text-transform: uppercase; margin-bottom: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.core-title .logo-word { text-transform: none; font-weight: 700; color: var(--red); }
.vcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.75rem, .5rem + 1vw, 1.5rem); }
@media (max-width: 860px) { .vcards { grid-template-columns: 1fr; } }
.vcard { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 420px; background: var(--brown); color: var(--cream); border: 0; text-align: left; padding: 0; display: block; width: 100%; }
.vcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s, opacity .4s; }
.vcard--mascot img { object-fit: contain; inset: 12% 10% 30%; width: 80%; height: 58%; }
.vcard::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(63,42,18,0) 35%, rgba(63,42,18,.88) 100%); transition: background .4s; }
.vcard__txt { position: absolute; inset: auto 0 0; z-index: 2; padding: 1.4rem 1.5rem; display: grid; gap: .7rem; }
.vcard h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem); line-height: .95; text-transform: uppercase; }
.vcard p { font-size: var(--fs-sm); color: var(--cream-2); max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s ease, opacity .4s ease; }
.vcard .hint { font-family: var(--f-ui); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--lime); }
.vcard:hover::before, .vcard.is-open::before { background: linear-gradient(180deg, rgba(63,42,18,.35) 0%, rgba(63,42,18,.94) 70%); }
.vcard:hover p, .vcard.is-open p { max-height: 14em; opacity: 1; }
.vcard:hover img, .vcard.is-open img { transform: scale(1.05); }
.vcard:hover .hint, .vcard.is-open .hint { display: none; }

/* ---------- Business gifts ---------- */
.biz { background: linear-gradient(135deg, var(--gold) 0%, var(--sand) 100%); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-columns: 1.05fr 1fr; align-items: stretch; }
.biz__body { padding: clamp(1.5rem, 1rem + 3vw, 3.5rem); display: grid; gap: 1.25rem; align-content: center; }
.biz__title { display: flex; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.biz__title h2 { font-family: var(--f-display); font-weight: 400; font-size: var(--fs-h2); text-transform: uppercase; color: var(--brown); line-height: .95; }
.biz__text { color: var(--brown-ink); max-width: 46ch; }
.biz__benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; border-top: 1.5px solid rgba(110,77,38,.25); padding-top: 1.25rem; }
.biz__benefits h4 { font-family: var(--f-ui); font-weight: 700; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--brown); line-height: 1.25; margin-bottom: .35rem; }
.biz__benefits p { font-size: .8rem; color: var(--brown-ink); line-height: 1.5; }
.biz__media { position: relative; min-height: 320px; }
.biz__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.biz__tag { position: absolute; top: 1.2rem; right: 1.4rem; text-align: right; font-family: var(--f-display); color: var(--brown); line-height: 1; font-size: 1.5rem; }
.biz__tag small { display: block; font-family: var(--f-ui); font-weight: 700; font-size: .72rem; letter-spacing: .08em; }
@media (max-width: 900px) { .biz { grid-template-columns: 1fr; } .biz__benefits { grid-template-columns: 1fr; } }

/* ---------- Stories ---------- */
.story-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: clamp(.6rem, .4rem + .6vw, 1rem); }
.story-grid > :first-child { grid-row: 1 / 3; }
.scard { position: relative; border-radius: var(--radius-sm); overflow: hidden; min-height: 220px; background: var(--brown); color: var(--cream); display: block; }
.story-grid > :first-child { min-height: 460px; }
.scard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.scard:hover img { transform: scale(1.05); }
.scard::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(40,25,8,0) 40%, rgba(40,25,8,.8) 100%); }
.scard h3 { position: absolute; inset: auto 0 0; z-index: 2; padding: 1rem 1.1rem; font-family: var(--f-display); font-weight: 400; font-size: clamp(1.2rem, 1rem + .8vw, 1.7rem); text-transform: uppercase; line-height: 1.02; }
.scard:first-child h3 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.8rem); padding: 1.5rem; }
.play { position: absolute; z-index: 2; top: 50%; left: 50%; translate: -50% -50%; width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--sand); display: grid; place-items: center; color: var(--sand); background: rgba(40,25,8,.25); backdrop-filter: blur(4px); }
.play svg { width: 24px; height: 24px; margin-left: 4px; }
@media (max-width: 860px) {
  .story-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .story-grid > :first-child { grid-column: 1 / -1; grid-row: auto; min-height: 340px; }
}
.tabs--lime { background: transparent; padding: 0; gap: .5rem; }
.tabs--lime .tab { background: var(--lime-bg); color: var(--olive); font-size: .85rem; padding: .7em 1.4em; border: 1.5px solid transparent; }
.tabs--lime .tab.is-active { background: var(--lime); border-color: var(--olive); }

/* ---------- Footer ---------- */
.footer { background: var(--brown); color: var(--cream); margin-top: clamp(3rem, 2rem + 4vw, 6rem); position: relative; padding-bottom: env(safe-area-inset-bottom, 0px); }
.footer::after { content: ""; display: block; height: 14px; background: repeating-linear-gradient(90deg, var(--lime) 0 28px, var(--lime-bg) 28px 56px); }
.footer__top { display: grid; grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr)); gap: 2rem; padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem) 2rem; }
.footer .logo { color: var(--cream); font-size: clamp(3.6rem, 2.4rem + 4vw, 6rem); margin: 0; }
.footer__tag { font-family: var(--f-ui); font-weight: 700; margin-top: .4rem; }
.footer h4 { font-family: var(--f-ui); font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--lime); margin-bottom: .9rem; }
.footer__col a { display: block; font-size: var(--fs-sm); padding: .25rem 0; opacity: .9; }
.footer__col a:hover { opacity: 1; color: var(--sand); }
.footer__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; padding-block: 1.5rem 2rem; border-top: 1px solid rgba(255,253,239,.18); }
.company { font-size: .8rem; line-height: 1.7; opacity: .9; max-width: 52ch; }
.company b { font-family: var(--f-ui); }
.socials { display: flex; gap: .5rem; align-items: center; }
.socials a { width: 40px; height: 40px; border-radius: 50%; background: var(--cream); color: var(--brown); display: grid; place-items: center; transition: background .2s; }
.socials a:hover { background: var(--lime); }
.socials svg { width: 20px; height: 20px; }
.footer__mascot { width: 92px; }
@media (max-width: 860px) { .footer__top { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }

/* ---------- Page header (inner pages) ---------- */
.phead { padding-block: clamp(2rem, 1.5rem + 3vw, 4rem) clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.phead h1 { font-family: var(--f-display); font-weight: 400; font-size: var(--fs-h1); color: var(--brown); text-transform: uppercase; line-height: .95; }
.crumbs { font-family: var(--f-ui); font-size: .78rem; letter-spacing: .06em; color: var(--brown); opacity: .8; margin-bottom: 1rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.crumbs a:hover { color: var(--red); }

/* ---------- Shop toolbar ---------- */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.chips { display: flex; gap: .4rem; flex-wrap: wrap; }
.chip { font-family: var(--f-ui); font-weight: 700; font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; padding: .6em 1.1em; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); color: var(--brown); transition: all .15s; }
.chip:hover { border-color: var(--brown); }
.chip.is-active { background: var(--brown); color: var(--cream); border-color: var(--brown); }
.select { display: flex; align-items: center; gap: .5rem; font-family: var(--f-ui); font-size: .8rem; color: var(--brown); }
.select select, .field input, .field select, .field textarea {
  border: 1.5px solid var(--line); background: var(--white); border-radius: var(--radius-sm);
  padding: .75em .9em; color: var(--brown-ink); width: 100%; transition: border-color .15s, box-shadow .15s;
}
.select select { width: auto; padding: .55em .8em; }
.field input:focus, .field select:focus, .field textarea:focus, .select select:focus { outline: 0; border-color: var(--brown); box-shadow: 0 0 0 3px rgba(179,225,91,.5); }
.count-note { font-family: var(--f-ui); font-size: .8rem; color: var(--brown); opacity: .8; }

/* ---------- Product detail ---------- */
.pd { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1.5rem, 1rem + 3vw, 4rem); align-items: start; }
@media (max-width: 900px) { .pd { grid-template-columns: minmax(0, 1fr); } }
.gallery { display: grid; gap: .75rem; position: sticky; top: calc(var(--header-h) + 1rem); }
@media (max-width: 900px) { .gallery { position: static; } }
.gallery__main { position: relative; aspect-ratio: 1; max-width: 100%; border-radius: var(--radius); overflow: hidden; background: radial-gradient(ellipse at 50% 70%, var(--cream-2), var(--white) 75%); border: 1.5px solid var(--sand); display: grid; place-items: center; }
.gallery__main img { width: 74%; height: 84%; object-fit: contain; filter: drop-shadow(0 22px 22px rgba(63,42,18,.22)); }
.gallery__main img.cover { width: 100%; height: 100%; object-fit: cover; filter: none; }
.thumbs { display: flex; gap: .6rem; flex-wrap: wrap; }
.thumb { width: 76px; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; border: 2px solid var(--sand); padding: 0; background: var(--white); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-active { border-color: var(--brown); }
.pd__info { display: grid; gap: 1.25rem; min-width: 0; }
.pd__info h1 { font-family: var(--f-display); font-weight: 400; font-size: clamp(2.3rem, 1.6rem + 2.8vw, 3.8rem); color: var(--brown); text-transform: uppercase; line-height: .95; }
.pd__price { font-family: var(--f-ui); font-weight: 700; font-size: 1.9rem; color: var(--red); font-variant-numeric: tabular-nums; }
.pd__lead { font-size: var(--fs-lg); color: var(--brown-ink); max-width: 56ch; }
.label { font-family: var(--f-ui); font-weight: 700; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brown); margin-bottom: .5rem; display: block; }
.pd .size-chip { font-size: .78rem; padding: .7em 1.2em; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: var(--white); }
.qty button { width: 40px; height: 40px; border: 0; background: transparent; color: var(--brown); font-size: 1.2rem; border-radius: 50%; }
.qty button:hover { background: var(--cream-2); }
.qty input { width: 44px; border: 0; text-align: center; background: transparent; font-family: var(--f-ui); font-weight: 700; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pd__actions { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }
.pd__actions .btn { flex: 1 1 180px; }
.perks { display: grid; gap: .5rem; padding: 1rem 1.2rem; background: var(--cream-2); border-radius: var(--radius-sm); font-size: var(--fs-sm); color: var(--brown-ink); }
.perks li { display: flex; gap: .6rem; align-items: center; }
.perks svg { width: 18px; height: 18px; flex: none; color: var(--brown); }
.gift-note { display: flex; gap: .75rem; align-items: center; padding: .8rem 1rem; border: 1.5px dashed var(--red); border-radius: var(--radius-sm); font-size: var(--fs-sm); color: var(--brown-ink); }
.gift-note img { width: 48px; }
.acc { border-top: 1.5px solid var(--line); }
.acc details { border-bottom: 1.5px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; padding: 1rem 0; font-family: var(--f-ui); font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brown); display: flex; justify-content: space-between; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-size: 1.3rem; line-height: 1; transition: transform .2s; }
.acc details[open] summary::after { transform: rotate(45deg); }
.acc details p { padding-bottom: 1rem; color: var(--brown-ink); max-width: 62ch; }

/* ---------- Drawers & overlays ---------- */
.scrim { position: fixed; inset: 0; z-index: 90; background: rgba(40,25,8,.45); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.scrim.is-open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 100; width: min(440px, 100%);
  background: var(--cream); display: flex; flex-direction: column;
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); padding-right: env(safe-area-inset-right, 0px);
  transform: translateX(100%); transition: transform .35s cubic-bezier(.2,.8,.2,1); visibility: hidden; box-shadow: -20px 0 50px -30px rgba(40,25,8,.6);
}
.drawer.is-open { transform: none; visibility: visible; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 1.25rem; border-bottom: 1.5px solid var(--line); }
.drawer__head h2 { font-family: var(--f-display); font-weight: 400; font-size: 1.9rem; color: var(--brown); text-transform: uppercase; }
.drawer__body { flex: 1; overflow-y: auto; padding: 1rem 1.25rem; display: grid; align-content: start; gap: 1rem; }
.drawer__foot { padding: 1.1rem 1.25rem 1.25rem; border-top: 1.5px solid var(--line); display: grid; gap: .8rem; background: var(--white); }
.line-item { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: .9rem; align-items: center; }
.line-item__img { width: 72px; aspect-ratio: 1; border-radius: var(--radius-sm); background: var(--cream-2); display: grid; place-items: center; overflow: hidden; }
.line-item__img img { width: 80%; height: 86%; object-fit: contain; }
.line-item__name { font-family: var(--f-ui); font-weight: 700; font-size: .9rem; color: var(--brown-ink); line-height: 1.3; }
.line-item__meta { font-size: .78rem; color: var(--brown); }
.line-item .qty button { width: 30px; height: 30px; font-size: 1rem; }
.line-item .qty input { width: 30px; font-size: .85rem; }
.line-item__side { display: grid; justify-items: end; gap: .3rem; }
.link-btn { border: 0; background: none; padding: 0; font-family: var(--f-ui); font-size: .74rem; color: var(--brown); text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--red); }
.totals { display: grid; gap: .35rem; font-family: var(--f-ui); font-size: .9rem; color: var(--brown-ink); font-variant-numeric: tabular-nums; }
.totals div { display: flex; justify-content: space-between; gap: 1rem; }
.totals .grand { font-weight: 700; font-size: 1.15rem; color: var(--brown); padding-top: .4rem; border-top: 1px dashed var(--line); margin-top: .2rem; }
.totals .neg { color: #4E7A12; }
.nudge { font-family: var(--f-ui); font-size: .8rem; color: var(--brown); display: grid; gap: .4rem; }
.meter { height: 6px; border-radius: 999px; background: var(--sand); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--red); border-radius: inherit; transition: width .4s; }
.empty { text-align: center; padding: 3rem 1rem; display: grid; gap: 1rem; justify-items: center; color: var(--brown); }
.empty img { width: 140px; }

.search {
  position: fixed; inset: 0 0 auto; z-index: 100; background: var(--cream);
  padding: calc(env(safe-area-inset-top, 0px) + 1rem) var(--gutter-r) 1.5rem var(--gutter-l);
  transform: translateY(-105%); transition: transform .35s cubic-bezier(.2,.8,.2,1); visibility: hidden; max-height: 88vh; overflow-y: auto;
  box-shadow: 0 30px 60px -30px rgba(40,25,8,.5);
}
.search.is-open { transform: none; visibility: visible; }
.search__box { max-width: 860px; margin: 0 auto; display: grid; gap: 1.25rem; }
.search__row { display: flex; gap: .5rem; align-items: center; border-bottom: 2px solid var(--brown); }
.search__row svg { width: 24px; height: 24px; color: var(--brown); flex: none; }
.search__row input { flex: 1; min-width: 0; border: 0; background: transparent; padding: .9rem .25rem; font-family: var(--f-display); font-size: clamp(1.4rem, 1rem + 2vw, 2.2rem); color: var(--brown); outline: 0; }
.search__group h3 { font-family: var(--f-ui); font-weight: 700; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: .5rem; }
.search__hit { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: .8rem; align-items: center; padding: .5rem; border-radius: var(--radius-sm); }
.search__hit:hover { background: var(--cream-2); }
.search__hit img { width: 52px; height: 52px; object-fit: contain; border-radius: 10px; background: var(--cream-2); }
.search__hit span { font-family: var(--f-ui); font-weight: 700; color: var(--brown-ink); }
.search__hit small { font-family: var(--f-ui); color: var(--red); font-weight: 700; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1rem; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: .35rem; }
.field label { font-family: var(--f-ui); font-weight: 700; font-size: .78rem; letter-spacing: .04em; color: var(--brown); }
.field textarea { min-height: 110px; resize: vertical; }
.field .err { font-size: .76rem; color: var(--red); font-family: var(--f-ui); }
.field.has-err input, .field.has-err select, .field.has-err textarea { border-color: var(--red); }
.radio { display: flex; gap: .7rem; align-items: flex-start; padding: .9rem 1rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--white); cursor: pointer; }
.radio:has(input:checked) { border-color: var(--brown); background: var(--cream-2); }
.radio input { accent-color: var(--brown); margin-top: .25rem; }
.radio b { font-family: var(--f-ui); color: var(--brown-ink); display: block; }
.radio small { color: var(--brown); }
.check { display: flex; gap: .6rem; align-items: center; font-size: var(--fs-sm); color: var(--brown-ink); }
.check input { accent-color: var(--brown); width: 18px; height: 18px; }
.panel { background: var(--white); border: 1.5px solid var(--sand); border-radius: var(--radius); padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); }
.panel h2 { font-family: var(--f-display); font-weight: 400; font-size: var(--fs-h3); color: var(--brown); text-transform: uppercase; margin-bottom: 1rem; }
.co { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(1rem, .5rem + 2vw, 2rem); align-items: start; }
.co > * { min-width: 0; }
@media (max-width: 900px) { .co { grid-template-columns: minmax(0, 1fr); } }
.co .summary { position: sticky; top: calc(var(--header-h) + 1rem); display: grid; gap: 1rem; }
.notice { padding: 1rem 1.2rem; border-radius: var(--radius-sm); background: var(--lime-bg); color: var(--olive); font-family: var(--f-ui); font-weight: 700; font-size: .9rem; }
.notice--err { background: #F8D7CF; color: #7A2416; }

.success { text-align: center; display: grid; gap: 1.1rem; justify-items: center; max-width: 620px; margin: 0 auto; }
.success img { width: 160px; }
.success h1 { font-family: var(--f-display); font-weight: 400; font-size: var(--fs-h2); color: var(--brown); text-transform: uppercase; }
.code-box { display: inline-flex; gap: .6rem; align-items: center; padding: .6rem .6rem .6rem 1.1rem; border-radius: 999px; background: var(--white); border: 1.5px solid var(--sand); font-family: var(--f-ui); font-weight: 700; letter-spacing: .1em; color: var(--brown); user-select: all; }
.copyable { font-family: var(--f-ui); font-weight: 700; color: var(--brown); user-select: all; word-break: break-all; }

/* ---------- About / gifts / blog / contact ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 1rem + 3vw, 4rem); align-items: center; }
.split > * { min-width: 0; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split__img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; max-width: 100%; }
.split__img img { width: 100%; height: 100%; object-fit: cover; }
.prose { display: grid; gap: 1rem; color: var(--brown-ink); font-size: var(--fs-lg); max-width: 62ch; }
.big-title { font-family: var(--f-display); font-weight: 400; font-size: var(--fs-h2); color: var(--brown); text-transform: uppercase; line-height: .95; }
.poem { background: var(--red); color: var(--cream); border-radius: var(--radius); padding: clamp(1.5rem, 1rem + 3vw, 3.5rem); display: grid; grid-template-columns: 1fr 1.2fr; gap: 2rem; align-items: center; overflow: hidden; }
.poem h2 { font-family: var(--f-display); font-weight: 700; font-size: clamp(2.4rem, 1.6rem + 4vw, 5rem); line-height: .9; text-transform: uppercase; color: var(--sand); }
.poem p { font-family: var(--f-display); font-size: clamp(1.3rem, 1rem + 1.2vw, 2rem); line-height: 1.35; }
@media (max-width: 760px) { .poem { grid-template-columns: 1fr; } }
.steps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.75rem, .5rem + 1vw, 1.5rem); }
@media (max-width: 860px) { .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps-grid { grid-template-columns: 1fr; } }
.stat-row { display: flex; gap: clamp(1rem, .5rem + 3vw, 3rem); flex-wrap: wrap; }
.stat b { display: block; font-family: var(--f-display); font-weight: 700; font-size: clamp(2.4rem, 1.8rem + 2vw, 3.6rem); color: var(--red); line-height: 1; }
.stat span { font-family: var(--f-ui); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--brown); }
.gallery-strip { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 1rem; }
.gallery-strip img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-sm); aspect-ratio: 4 / 5; }
.gallery-strip img:first-child { aspect-ratio: auto; }
@media (max-width: 760px) { .gallery-strip { grid-template-columns: 1fr 1fr; } .gallery-strip img:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; } }
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.75rem, .5rem + 1vw, 1.5rem); }
@media (max-width: 900px) { .posts { grid-template-columns: 1fr; } }
.post-card { display: grid; gap: .9rem; align-content: start; }
.post-card__img { aspect-ratio: 4 / 3; max-width: 100%; border-radius: var(--radius); overflow: hidden; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.post-card:hover .post-card__img img { transform: scale(1.05); }
.post-card h3 { font-family: var(--f-display); font-weight: 400; font-size: var(--fs-h4); color: var(--brown); text-transform: uppercase; line-height: 1.05; }
.post-card p { color: var(--brown-ink); font-size: var(--fs-sm); }
.meta { font-family: var(--f-ui); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--red); font-weight: 700; display: flex; gap: .6rem; }
.article { max-width: 760px; margin: 0 auto; display: grid; gap: 1.5rem; }
.article h1 { font-family: var(--f-display); font-weight: 400; font-size: clamp(2.2rem, 1.5rem + 3vw, 4rem); color: var(--brown); text-transform: uppercase; line-height: .98; }
.article__cover { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; max-width: 100%; }
.article__cover img { width: 100%; height: 100%; object-fit: cover; }
.article .prose { font-size: 1.08rem; line-height: 1.75; }
.info-list { display: grid; gap: 1.1rem; }
.info-list div { display: grid; gap: .15rem; }
.info-list span { font-family: var(--f-ui); font-weight: 700; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.info-list p { color: var(--brown-ink); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 22px); z-index: 120;
  translate: -50% 140%; transition: translate .35s cubic-bezier(.2,.8,.2,1);
  background: var(--brown-ink); color: var(--cream); border-radius: 999px; padding: .8rem 1.3rem;
  font-family: var(--f-ui); font-weight: 700; font-size: .9rem; display: flex; gap: .8rem; align-items: center;
  max-width: calc(100% - 32px); box-shadow: var(--shadow); visibility: hidden;
}
.toast.is-show { translate: -50% 0; visibility: visible; }
.toast button { border: 0; background: var(--lime); color: var(--olive); border-radius: 999px; padding: .35rem .8rem; font-weight: 700; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- View transition ---------- */
#app { animation: viewIn .45s ease both; }
#app.swap { animation: none; }
@keyframes viewIn { from { transform: translateY(10px); } to { transform: none; } }

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


/* =========================================================
   Đồng bộ chữ với Canva
   ========================================================= */
.btn, .nav a, .pill, .badge, .tab, .chip, .size-chip, .kicker, .label, .promo,
.lang-btn, .seal, .farm__meta small, .place, .biz__benefits h4, .soil-point h4,
.acc summary, .search__group h3, .meta, .info-list span, .footer h4, .stat span { letter-spacing: .02em; }
.btn { font-size: .95rem; text-transform: uppercase; padding: .8em 1.7em; }
.btn--sm { font-size: .82rem; }
.btn:not(.btn--light):not(.btn--lime):not(.btn--red):not(.btn--ghost):not(.btn--ghost-light) { color: var(--sand); }
.nav a { font-size: .95rem; padding: .4em 1em; }
.promo { font-size: .8rem; letter-spacing: .04em; }
.pcard__name, .ncard__body h3 { font-weight: 400; font-size: 1.15rem; letter-spacing: .01em; }
.price, .pd__price { font-weight: 700; }
.soil-point p, .soil-point h4 { font-family: var(--f-display); font-weight: 700; }
.soil-point h4 { font-size: 1.05rem; }
.soil-point p { font-size: .92rem; font-weight: 400; }
.step__cap b { font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; }
.step__cap span { font-family: var(--f-script); font-size: 1.9rem; }
.step__sub, .footer__col a, .company, .count-note, .field .err, .line-item__meta,
.field input, .field select, .field textarea, .select select, .crumbs, .biz__benefits p, .copyable { font-family: var(--f-body); }
.footer__col a { font-size: .9rem; }
.company b, .footer__tag { font-family: var(--f-body); font-weight: 700; }
.biz__tag small, .est { font-family: var(--f-body); font-weight: 700; }
.field label, .totals, .line-item__name, .search__hit span, .radio b, .toast { font-family: var(--f-display); }
.field label { font-size: .9rem; font-weight: 400; }
.farm__title h2 { font-size: clamp(3rem, 2rem + 4.5vw, 5.8rem); transform: rotate(-4deg); line-height: 1.1; }
.slide--main h1, .slide--dark .big, .slide--dark h2, .tile h3, .root__title, .vcard h3, .biz__title h2 { font-weight: 700; }
.sec-title, .core-title, .phead h1, .pd__info h1 { font-weight: 400; }

/* =========================================================
   Hero: 4 cover theo thứ tự Canva
   From the farm → 100% Bình Phước → Cashew for soul → Mùi vị của nắng
   ========================================================= */
.slide { min-height: clamp(380px, 22vw + 250px, 620px); align-items: stretch; }
.slide__media img { object-position: center; }
.cover-cta {
  position: absolute; right: clamp(1rem, .5rem + 2vw, 2.25rem); bottom: clamp(1rem, .5rem + 2vw, 2rem); z-index: 2;
  background: var(--brown); color: var(--sand) !important;
}
.slider__ui { justify-content: flex-start; gap: 1rem; padding-right: 13rem; }
.slider__ui .arrows { order: 2; }

/* 1 · From the farm to the table */
.slide--farm::before { background: linear-gradient(180deg, rgba(30,22,6,.55) 0%, rgba(30,22,6,.1) 55%, rgba(30,22,6,.35) 100%); }
.slide--farm .slide__media img { object-position: 50% 30%; }
.cover-farm { display: flex; justify-content: space-between; align-items: flex-start; padding: clamp(1.25rem, 1rem + 3vw, 3.5rem); }
.cover-farm h2 { font-family: var(--f-display); font-weight: 700; color: var(--cream); text-transform: uppercase; font-size: clamp(2.6rem, 1.4rem + 5vw, 6.2rem); line-height: .88; }
.cover-farm__r { text-align: right; }

/* 2 · 100% điều Bình Phước */
.slide--bp::before { background: linear-gradient(270deg, rgba(40,25,8,.75) 0%, rgba(40,25,8,.25) 55%, rgba(40,25,8,0) 100%); }
.slide--bp .slide__media img { object-position: 30% center; }
.cover-bp { justify-self: end; text-align: right; padding: clamp(1.25rem, 1rem + 3vw, 3.5rem); align-self: start; }
.cover-bp .big { display: block; font-family: var(--f-display); font-weight: 700; color: var(--cream); font-size: clamp(4rem, 2.5rem + 7vw, 9.5rem); line-height: .85; }
.cover-bp h2 { font-family: var(--f-display); font-weight: 700; color: var(--cream); text-transform: uppercase; font-size: clamp(1.4rem, 1rem + 1.8vw, 2.6rem); }

/* 3 · Cashew for soul */
.slide--main { background: none; }
.slide--main .slide__media img { object-position: center; }
.slide--main .slide__body { align-self: start; padding: clamp(1.25rem, 1rem + 3vw, 3.5rem); }
.slide--main h1 { font-size: clamp(2rem, 1.2rem + 3vw, 4rem); line-height: 1; }

/* 4 · Mùi vị của nắng */
.slide--sun::before { background: linear-gradient(90deg, rgba(20,22,8,.25), rgba(20,22,8,.1)); }
.cover-sun__brand { position: absolute; top: clamp(.8rem, .5rem + 1vw, 1.4rem); left: 0; right: 0; text-align: center; z-index: 2; font-family: var(--f-display); font-weight: 700; color: var(--cream); font-size: clamp(1.2rem, 1rem + 1vw, 2rem); }
.cover-sun { align-self: center; width: min(62%, 720px); margin-left: 8%; padding: clamp(1rem, .5rem + 2vw, 2.5rem); display: grid; gap: .6rem; justify-items: center; text-align: center; }
.cover-sun h2 { font-family: var(--f-display); font-weight: 400; color: var(--cream); text-transform: uppercase; font-size: clamp(2.6rem, 1.4rem + 5vw, 6.4rem); line-height: .92; justify-self: start; text-align: left; }
.cover-sun .est { color: var(--cream); letter-spacing: .08em; font-size: .85rem; }
.cover-sun p { color: var(--cream); font-size: clamp(.78rem, .7rem + .3vw, .95rem); max-width: 60ch; }

@media (max-width: 720px) {
  .slide { min-height: 520px; }
  .slider__ui { padding-right: 1rem; padding-bottom: 5rem; }
  .slide--main .slide__media img { object-position: 65% center; }
  .slide--bp .slide__media img { object-position: 20% center; }
  .slide--farm .slide__media img { object-position: 45% 30%; }
  .cover-sun { width: auto; margin: 0; padding-top: 3.5rem; }
  .cover-sun p { display: none; }
  .slide--sun .slide__media img { object-position: 30% center; }
}

/* =========================================================
   Thẻ sản phẩm theo Canva: tên + nhãn ở trên, ảnh giữa, size + giá dưới
   ========================================================= */
.pcard__head { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; padding: .9rem 1rem 0; position: relative; z-index: 2; }
.pcard__head .pcard__name { font-size: 1.05rem; line-height: 1.15; }
.pcard__head .badge { position: static; flex: none; }
.pcard__media { aspect-ratio: 1 / 1.05; background: var(--white); }
.pcard__body { padding-top: .6rem; }
.grid-products--home { align-items: center; }
.pcard--featured { transform: translateY(-14px); border-color: var(--gold); box-shadow: var(--shadow); }
.pcard--featured:hover { transform: translateY(-18px); }
.pcard--featured .pcard__media img.cover, .pcard--featured .pcard__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .pcard--featured { transform: none; } .pcard--featured:hover { transform: translateY(-4px); } }

/* =========================================================
   Sửa layout
   ========================================================= */
/* 6 bước vừa đủ 1 hàng trên desktop, cuộn ngang trên mobile */
.rail { grid-auto-columns: minmax(150px, 1fr); }
@media (max-width: 1024px) { .rail { grid-auto-columns: 34%; } }
@media (max-width: 760px) { .rail { grid-auto-columns: 70%; } }
.step { align-content: start; grid-template-rows: auto auto auto 1fr; }
.step__cap { align-items: center; min-height: 2.2rem; }
.step__cap b { line-height: 1.1; }
/* footer luôn nằm cuối trang, kể cả trang ngắn */
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
#app { flex: 1 0 auto; }
.footer { flex-shrink: 0; }
/* trang Sản phẩm: 3 cột cho 6 sản phẩm, không bị lẻ hàng */
.grid-products--shop { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .grid-products--shop { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* ảnh sản phẩm luôn nằm gọn, cùng tỉ lệ */
.pcard__media img { width: 70%; height: 86%; object-fit: contain; }
.pcard__media img.cover { width: 100%; height: 100%; object-fit: cover; }
/* thẻ sản phẩm cùng chiều cao trong 1 hàng */
.grid-products { align-items: stretch; }
.grid-products--home { align-items: center; }
/* poem block + chú thích bước: không tràn chữ */
.poem p, .cover-sun p, .tile p { overflow-wrap: anywhere; }
/* tablet: 4 thẻ → 2 cột, không lẻ hàng */
@media (max-width: 1024px) {
  .grid-products:not(.grid-products--shop) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-products--home .pcard--featured { transform: none; }
}
/* tên SP không bị ngắt từng chữ trên màn hình nhỏ */
@media (max-width: 1100px) {
  .pcard__head { flex-direction: column-reverse; align-items: flex-start; gap: .4rem; }
  .pcard__head .pcard__name { font-size: 1rem; }
}
@media (max-width: 520px) {
  .pcard__head { padding: .75rem .75rem 0; }
  .pcard__body { padding: .6rem .75rem .85rem; }
  .size-chip { padding: .32em .55em; font-size: .62rem; }
  .sizes { gap: .25rem; }
  .price { font-size: .95rem; }
  .add-btn { width: 34px; height: 34px; }
}
/* The Root of Taste ở tablet: 2 ô ảnh nhỏ cạnh nhau, 2 ô lớn full ngang */
@media (max-width: 900px) and (min-width: 561px) {
  .bento > .tile:nth-child(1) { order: 1; }
  .bento > .tile--soil { order: 2; }
  .bento > .tile--capital { order: 3; }
  .bento > .tile--orchard { order: 4; }
}
/* form báo giá / liên hệ khi xếp 1 cột: ảnh không quá cao */
@media (max-width: 900px) {
  .co .summary { position: static; }
  .co .summary .split__img { aspect-ratio: 16 / 10; }
  .split__img { aspect-ratio: 4 / 3; }
}

/* =========================================================
   Nội dung bổ sung: thông tin SP, quy trình quà DN, hỏi đáp, chính sách
   ========================================================= */
.spec { margin: 0 0 1rem; display: grid; gap: 0; }
.spec div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1rem; padding: .6rem 0; border-top: 1px dashed var(--line); }
.spec div:first-child { border-top: 0; }
.spec dt { font-family: var(--f-display); color: var(--brown); }
.spec dd { margin: 0; color: var(--brown-ink); }
@media (max-width: 520px) { .spec div { grid-template-columns: 1fr; gap: .1rem; } }

.bsteps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.75rem, .5rem + 1vw, 1.25rem); counter-reset: none; }
.bsteps li { background: var(--white); border: 1.5px solid var(--sand); border-radius: var(--radius); padding: 1.25rem 1.3rem 1.4rem; display: grid; gap: .5rem; align-content: start; position: relative; }
.bsteps li:not(:last-child)::after { content: "→"; position: absolute; right: -1rem; top: 1.4rem; color: var(--brown-2); font-size: 1.1rem; z-index: 1; }
.bsteps__n { font-family: var(--f-script); font-size: 2.2rem; color: var(--red); line-height: 1; }
.bsteps h3 { font-family: var(--f-display); font-weight: 700; font-size: 1.25rem; color: var(--brown); text-transform: uppercase; }
.bsteps p { font-size: var(--fs-sm); color: var(--brown-ink); }
@media (max-width: 900px) { .bsteps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bsteps li::after { display: none; } }
@media (max-width: 520px) { .bsteps { grid-template-columns: 1fr; } }

.faq details summary { font-family: var(--f-display); font-weight: 400; font-size: 1.1rem; text-transform: none; letter-spacing: 0; gap: 1rem; }
.faq details p { font-size: 1rem; }
.faq-hint { font-family: var(--f-display); color: var(--brown); text-decoration: underline; text-underline-offset: 4px; display: inline-block; margin-top: 1rem; }
.faq-hint:hover { color: var(--red); }
.summary .faq-hint { margin-top: 0; }

.policy { display: grid; gap: 1.5rem; max-width: 70ch; }
.policy section { display: grid; gap: .5rem; padding-bottom: 1.5rem; border-bottom: 1.5px solid var(--line); }
.policy h2 { font-family: var(--f-display); font-weight: 700; font-size: 1.35rem; color: var(--brown); }
.policy p { color: var(--brown-ink); font-size: 1.02rem; }

.meta a:hover { text-decoration: underline; }
.footer__top { grid-template-columns: 1.3fr repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer__brand { grid-column: 1 / -1; } }

/* "ngày vu điều": chữ viết tay không đè lên dòng chữ bên cạnh */
.farm__head { align-items: center; row-gap: 1.25rem; }
.farm__title { flex-wrap: wrap; gap: .75rem 1rem; padding-bottom: .35em; }
.farm__title h2 { font-family: var(--f-script); font-weight: 700; font-size: clamp(2.8rem, 1.8rem + 4vw, 5.2rem); line-height: 1.2; transform: rotate(-3deg); text-transform: none; }
.farm__meta { margin-left: auto; }
.step__cap span, .bsteps__n { font-family: var(--f-script); font-weight: 700; }
@media (max-width: 760px) {
  .farm__head { flex-direction: column; align-items: flex-start; }
  .farm__meta { margin-left: 0; justify-items: start; text-align: left; }
  .farm__meta small { max-width: none; }
}

/* =========================================================
   Danh mục SKU theo Shopee
   ========================================================= */
.shop-group { display: grid; gap: 1.1rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.25rem); }
.shop-group__head { display: flex; align-items: baseline; gap: .4rem 1.25rem; flex-wrap: wrap; padding-bottom: .75rem; border-bottom: 1.5px solid var(--line); }
.shop-group__head h2 { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); color: var(--brown); text-transform: uppercase; }
.shop-group__head p { color: var(--brown); font-size: var(--fs-sm); }
.shopee-note { font-family: var(--f-body); font-size: var(--fs-sm); color: var(--brown); }
.shopee-note a { font-family: var(--f-display); color: var(--red); text-decoration: underline; text-underline-offset: 3px; }

.pcard__media { display: grid; place-items: center; }
.pcard__media img.cover { transition: transform .5s ease, opacity .25s ease; }

.rating { display: flex; align-items: center; gap: .5rem; font-family: var(--f-body); font-size: var(--fs-sm); color: var(--brown); }
.rating b { font-family: var(--f-display); color: var(--brown-ink); font-size: 1rem; }
.stars { --r: 5; position: relative; display: inline-block; width: 5.5em; height: 1em; font-size: 1rem;
  background: linear-gradient(90deg, #E8A93A calc(var(--r) / 5 * 100%), var(--sand) 0);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 110 20'%3E%3Cg fill='%23000'%3E%3Cpath id='s' d='M10 1l2.6 6 6.4.6-4.8 4.3 1.4 6.3L10 15l-5.6 3.2 1.4-6.3L1 7.6 7.4 7z'/%3E%3Cuse href='%23s' x='22'/%3E%3Cuse href='%23s' x='44'/%3E%3Cuse href='%23s' x='66'/%3E%3Cuse href='%23s' x='88'/%3E%3C/g%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 110 20'%3E%3Cg fill='%23000'%3E%3Cpath id='s' d='M10 1l2.6 6 6.4.6-4.8 4.3 1.4 6.3L10 15l-5.6 3.2 1.4-6.3L1 7.6 7.4 7z'/%3E%3Cuse href='%23s' x='22'/%3E%3Cuse href='%23s' x='44'/%3E%3Cuse href='%23s' x='66'/%3E%3Cuse href='%23s' x='88'/%3E%3C/g%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.shopee-link { display: inline-flex; align-items: center; gap: .5rem; justify-self: start; font-family: var(--f-display); color: #EE4D2D; border: 1.5px solid #EE4D2D; border-radius: 999px; padding: .55em 1.1em; transition: background .2s, color .2s; }
.shopee-link:hover { background: #EE4D2D; color: var(--white); }
.shopee-link svg { width: 18px; height: 18px; }
.nutri { width: 100%; border-collapse: collapse; margin-bottom: 1rem; font-variant-numeric: tabular-nums; }
.nutri caption { text-align: left; font-family: var(--f-body); font-size: var(--fs-sm); color: var(--brown); padding-bottom: .4rem; }
.nutri th, .nutri td { padding: .55rem 0; border-top: 1px dashed var(--line); text-align: left; font-weight: 400; }
.nutri th { font-family: var(--f-display); color: var(--brown); }
.nutri td { text-align: right; color: var(--brown-ink); }
.gallery__main img.cover { object-fit: cover; }
.thumbs { gap: .5rem; }
.thumb { width: 68px; }
/* ảnh sản phẩm Shopee (vuông, có nền) */
.ncard__img { aspect-ratio: 1 / 1; }
.pcard__media { aspect-ratio: 1 / 1; }
.pcard__media img.cover { transition: transform .5s ease, opacity .25s ease; }
/* Mobile: mỗi nhóm sản phẩm là 1 hàng vuốt ngang, không lẻ thẻ */
@media (max-width: 760px) {
  .grid-products--shop {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%;
    overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .75rem;
    scrollbar-width: thin; scrollbar-color: var(--brown) transparent;
  }
  .grid-products--shop > * { scroll-snap-align: start; }
  .grid-products--shop .size-chip { font-size: .68rem; padding: .35em .7em; }
}

/* ---- Marck Script: chỉ có 1 độ đậm (400) ---- */
.farm__title h2 { font-weight: 400; font-size: clamp(3rem, 2rem + 4.4vw, 5.8rem); line-height: 1.15; }
.step__cap span, .bsteps__n { font-weight: 400; }
.step__cap span { font-size: 2.1rem; }
.bsteps__n { font-size: 2.4rem; }

/* =========================================================
   PRODUCT CARD v3 — bao bì tách nền, chữ thoáng, đồng bộ
   ========================================================= */
.pcard { background: var(--white); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 0 rgba(63,42,18,.04); transition: transform .35s ease, box-shadow .35s ease, border-color .35s; }
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(110,77,38,.32); }
.pcard--featured, .pcard--featured:hover { transform: none; }
.pcard--featured { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(244,210,126,.35); }
.pcard__media { position: relative; aspect-ratio: 1 / 1; margin: 8px 8px 0; border-radius: 16px; overflow: hidden; display: block;
  background: radial-gradient(120% 80% at 50% 18%, #FFFFFF 0%, var(--cream) 55%, var(--cream-2) 100%); }
.pcard__media::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 9%; height: 7%; border-radius: 50%; background: radial-gradient(closest-side, rgba(63,42,18,.22), transparent); pointer-events: none; }
.pcard__media .badge { position: absolute; top: 10px; left: 10px; z-index: 3; font-family: var(--f-body); font-weight: 700; font-size: .62rem; letter-spacing: .1em; padding: .42em .8em; border-radius: 999px; line-height: 1; }
.pcard__zoom { position: absolute; inset: 0; z-index: 2; border: 0; padding: 0; margin: 0; background: none; cursor: zoom-in; display: grid; place-items: center; width: 100%; height: 100%; }
.pcard__zoom img, .pcard__media img, .pcard__media img.cover { position: relative; z-index: 1; width: 76%; height: 80%; object-fit: contain; filter: drop-shadow(0 14px 14px rgba(63,42,18,.18)); transition: transform .5s cubic-bezier(.2,.8,.2,1), opacity .22s ease; transform: translateY(-3%); }
.pcard:hover .pcard__zoom img { transform: translateY(-5%) scale(1.04); }
.pcard__zoom img.is-swapping { opacity: 0; transform: translateY(2%) scale(.94); }
.pcard__hint { position: absolute; right: 10px; bottom: 10px; z-index: 3; display: inline-flex; align-items: center; gap: .35em; padding: .45em .7em; border-radius: 999px; background: rgba(255,255,255,.9); color: var(--brown); font: 600 .62rem/1 var(--f-body); letter-spacing: .04em; box-shadow: 0 4px 12px -6px rgba(63,42,18,.4); opacity: 0; transform: translateY(4px); transition: opacity .25s, transform .25s; }
.pcard__hint svg { width: 12px; height: 12px; }
.pcard:hover .pcard__hint, .pcard__zoom:focus-visible .pcard__hint { opacity: 1; transform: none; }
@media (hover: none) { .pcard__hint { opacity: 1; transform: none; } .pcard__hint span { display: none; } .pcard__hint { padding: .5em; } }
.pcard__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pcard__group { margin: 0; font: 600 .66rem/1.2 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--brown-2); }
.pcard__name { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(1.02rem, .92rem + .35vw, 1.22rem); line-height: 1.22; letter-spacing: .045em; word-spacing: .12em; text-transform: uppercase; color: var(--brown-ink); min-height: 2.44em; text-wrap: balance; }
.pcard__name a { color: inherit; text-decoration: none; }
.pcard__name a::after { content: none; }
.pcard__name a:hover { color: var(--red); }
.pcard .sizes { display: flex; flex-wrap: wrap; gap: 6px; }
.pcard .size-chip, .reveal .size-chip { font: 600 .72rem/1 var(--f-body); letter-spacing: .06em; padding: .62em .95em; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--brown); min-width: 3.6em; text-align: center; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.pcard .size-chip:hover, .reveal .size-chip:hover { border-color: var(--brown); }
.pcard .size-chip.is-active, .reveal .size-chip.is-active { background: var(--brown); border-color: var(--brown); color: var(--cream); }
.pcard__foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); }
.pcard .price, .reveal .price { font: 700 1.12rem/1 var(--f-body); letter-spacing: .01em; color: var(--red); font-variant-numeric: tabular-nums; }
.pcard .add-btn { width: 40px; height: 40px; flex: none; }
@media (max-width: 760px) {
  .pcard { border-radius: 18px; }
  .pcard__media { margin: 6px 6px 0; border-radius: 13px; }
  .pcard__body { padding: 11px 11px 12px; gap: 8px; }
  .pcard__name { font-size: .95rem; letter-spacing: .035em; }
  .pcard__group { font-size: .58rem; letter-spacing: .12em; }
  .pcard .size-chip { font-size: .64rem; padding: .58em .62em; min-width: 0; }
  .pcard .price { font-size: .98rem; }
  .pcard .add-btn { width: 34px; height: 34px; }
  .pcard__media .badge { font-size: .55rem; top: 8px; left: 8px; }
}

/* ---- Pop-up xem bên trong ---- */
.reveal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 16px; visibility: hidden; pointer-events: none; }
.reveal.is-open { visibility: visible; pointer-events: auto; }
.reveal__bg { position: absolute; inset: 0; background: rgba(40,26,10,.55); backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s ease; }
.reveal.is-open .reveal__bg { opacity: 1; }
.reveal__card { position: relative; width: min(940px, 100%); max-height: calc(100dvh - 32px); overflow: auto; background: var(--cream); border-radius: 26px; display: grid; grid-template-columns: 1.1fr 1fr; box-shadow: 0 40px 80px -30px rgba(0,0,0,.5);
  opacity: 0; transform: translateY(18px) scale(.94); transition: opacity .3s ease, transform .45s cubic-bezier(.2,.9,.25,1.15); }
.reveal.is-open .reveal__card { opacity: 1; transform: none; }
.reveal__close { position: absolute; top: 12px; right: 12px; z-index: 5; background: var(--white); box-shadow: 0 4px 14px -6px rgba(0,0,0,.35); }
.reveal__stage { position: relative; min-height: 460px; overflow: hidden; background: radial-gradient(110% 80% at 50% 25%, #fff 0%, var(--cream-2) 70%, var(--sand) 100%); }
.reveal__pack, .reveal__inside { position: absolute; left: 50%; top: 46%; max-width: 74%; max-height: 74%; object-fit: contain; transform: translate(-50%, -50%); transition: transform .8s cubic-bezier(.2,.8,.2,1), opacity .6s ease, filter .6s; }
.reveal__pack { z-index: 2; filter: drop-shadow(0 26px 24px rgba(63,42,18,.25)); animation: rvPop .7s cubic-bezier(.2,.9,.25,1.2) backwards; }
.reveal__inside { z-index: 1; opacity: 0; transform: translate(-50%, -44%) scale(.86); }
.reveal__inside[src$=".jpg"], .reveal__inside[src*="products/"]:not([src*="/cut/"]) { width: 100%; height: 100%; max-width: none; max-height: none; top: 0; left: 0; transform: scale(1.08); object-fit: cover; }
.reveal__stage.is-revealed .reveal__pack { opacity: 0; transform: translate(-50%, -120%) scale(.7) rotate(-6deg); filter: blur(2px); }
.reveal__stage.is-revealed .reveal__inside { opacity: 1; transform: translate(-50%, -50%) scale(1.06); filter: drop-shadow(0 22px 22px rgba(63,42,18,.22)); }
.reveal__stage.is-revealed .reveal__inside[src*="products/"]:not([src*="/cut/"]) { transform: none; }
@keyframes rvPop { from { transform: translate(-50%, -40%) scale(.55); opacity: 0; } to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
.reveal__toggle { position: absolute; z-index: 3; left: 50%; bottom: 16px; transform: translateX(-50%); display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.92); box-shadow: 0 6px 18px -10px rgba(0,0,0,.4); }
.reveal__toggle button { border: 0; background: none; cursor: pointer; font: 600 .74rem/1 var(--f-body); letter-spacing: .04em; color: var(--brown); padding: .7em 1.1em; border-radius: 999px; }
.reveal__toggle button[aria-pressed="true"] { background: var(--brown); color: var(--cream); }
.reveal__info { padding: 44px 32px 30px; display: flex; flex-direction: column; gap: 14px; }
.reveal__name { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); line-height: 1.1; letter-spacing: .04em; text-transform: uppercase; color: var(--brown-ink); }
.reveal__desc { margin: 0; font: 400 .92rem/1.6 var(--f-body); color: var(--brown); }
.reveal__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px dashed var(--line); margin-top: auto; }
.reveal .price { font-size: 1.5rem; }
.reveal__more { font: 600 .82rem/1 var(--f-body); color: var(--brown); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) {
  .reveal { padding: 0; place-items: end center; }
  .reveal__card { grid-template-columns: 1fr; border-radius: 22px 22px 0 0; max-height: 94dvh; transform: translateY(40px); }
  .reveal__stage { min-height: 0; aspect-ratio: 1 / .92; }
  .reveal__info { padding: 18px 18px 22px; gap: 11px; }
  .reveal__desc { font-size: .86rem; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) { .reveal__pack, .reveal__inside, .reveal__card { transition: none; animation: none; } }

/* =========================================================
   CORE VALUES — mặt trước ảnh thật, chạm lật ra thẻ nâu + mascot
   ========================================================= */
.vcard { position: relative; display: block; width: 100%; min-height: 0; aspect-ratio: 4 / 5; padding: 0; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; perspective: 1400px; border-radius: 22px; overflow: visible; }
.vcard::before { content: none; }
.vcard img { position: static; inset: auto; transform: none; }
.vcard__inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .8s cubic-bezier(.3,.9,.25,1); }
.vcard.is-open .vcard__inner { transform: rotateY(180deg); }
@media (hover: hover) { .vcard:hover .vcard__inner { transform: rotateY(180deg); } }
.vcard__face { position: absolute; inset: 0; border-radius: 22px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.vcard__front { background: var(--brown); }
.vcard__front img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vcard__front::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(40,26,10,0) 45%, rgba(40,26,10,.72) 100%); }
.vcard__title { position: absolute; z-index: 2; left: 22px; right: 22px; bottom: 22px; font-family: var(--f-display); font-weight: 700; font-size: clamp(1.7rem, 1.25rem + 1.5vw, 2.5rem); line-height: 1; letter-spacing: .02em; text-transform: uppercase; color: var(--cream); }
.vcard__tap { position: absolute; z-index: 2; top: 16px; right: 16px; font: 600 .62rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--brown); background: rgba(255,253,239,.9); padding: .6em .85em; border-radius: 999px; }
.vcard__back { transform: rotateY(180deg); background: var(--brown); color: var(--cream); padding: 24px 22px 22px; }
.vcard__desc { display: block; position: relative; z-index: 2; font: 400 clamp(.88rem, .82rem + .2vw, .98rem)/1.6 var(--f-body); color: var(--cream-2); max-width: 30ch; }
.vcard__mascot { position: absolute; z-index: 1; right: 8%; bottom: 26%; width: 46%; max-width: 210px; height: auto; object-fit: contain; filter: none; }
.vcard__back .vcard__title { color: var(--cream); }
@media (max-width: 860px) { .vcard { aspect-ratio: 1 / 1; max-width: 520px; margin-inline: auto; } }
@media (prefers-reduced-motion: reduce) { .vcard__inner { transition: none; } }

/* ---- Nút chuyển ngôn ngữ trong menu di động ---- */
.lang-btn--wide { width: 100%; justify-content: center; padding: .8em 1em; margin-bottom: .6rem; display: inline-flex; }
.pcard__media .badge { right: auto; }
.pcard__zoom { display: block; }
.pcard__zoom img, .pcard__media img, .pcard__media img.cover { position: absolute; left: 12%; top: 8%; width: 76%; height: 76%; transform: none; }
.pcard:hover .pcard__zoom img { transform: translateY(-2%) scale(1.04); }
.pcard__zoom img.is-swapping { transform: translateY(3%) scale(.94); }
.vcard .vcard__mascot, .vcard:hover .vcard__mascot, .vcard.is-open .vcard__mascot { position: absolute; inset: auto 9% 27% auto; width: 38%; max-width: 170px; height: auto; transform: none; opacity: 1; }
.vcard .vcard__front img, .vcard:hover .vcard__front img, .vcard.is-open .vcard__front img { position: absolute; inset: 0; width: 100%; height: 100%; transform: none; }

/* ---- Bỏ ảnh tách nền: dùng ảnh gốc đúng size, phủ kín khung ---- */
.pcard__media { background: var(--cream-2); }
.pcard__media::after { content: none; }
.pcard__zoom img, .pcard__media img, .pcard__media img.cover { left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; filter: none; transform: none; }
.pcard:hover .pcard__zoom img { transform: scale(1.04); }
.pcard__zoom img.is-swapping { opacity: 0; transform: scale(1.02); }
.reveal__stage { background: var(--cream-2); }
.reveal__pack, .reveal__inside, .reveal__inside[src*="products/"]:not([src*="/cut/"]) { left: 0; top: 0; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; filter: none; }
.reveal__pack { transform: scale(1); animation: rvPop2 .6s cubic-bezier(.2,.9,.25,1.1) backwards; }
.reveal__inside, .reveal__inside[src*="products/"]:not([src*="/cut/"]) { opacity: 0; transform: scale(1.12); }
.reveal__stage.is-revealed .reveal__pack { opacity: 0; transform: scale(1.18); filter: blur(3px); }
.reveal__stage.is-revealed .reveal__inside, .reveal__stage.is-revealed .reveal__inside[src*="products/"]:not([src*="/cut/"]) { opacity: 1; transform: scale(1); filter: none; }
@keyframes rvPop2 { from { transform: scale(.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (min-width: 761px) { .reveal__stage { min-height: 0; aspect-ratio: 1 / 1; } .reveal__card { align-items: stretch; } }

/* =========================================================
   MOBILE UX PASS
   ========================================================= */
.pcard__meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 18px; flex-wrap: wrap; }
.pcard__meta .badge { position: static; font-family: var(--f-body); font-weight: 700; font-size: .58rem; letter-spacing: .08em; padding: .45em .7em; border-radius: 999px; line-height: 1; }
.pd .sizes { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 8px; }
.pd .size-chip { display: grid; gap: 4px; justify-items: center; padding: .75em .6em; border-radius: 14px; font-family: var(--f-body); }
.pd .size-chip b { font-weight: 700; font-size: .86rem; letter-spacing: .05em; }
.pd .size-chip small { font-weight: 500; font-size: .74rem; opacity: .85; }
.buybar { display: none; }

@media (max-width: 760px) {
  /* Thẻ sản phẩm */
  .pcard__meta .badge { font-size: .52rem; padding: .45em .6em; }
  .pcard__hint { padding: 0; width: 30px; height: 30px; justify-content: center; right: 8px; bottom: 8px; opacity: 1; transform: none; }
  .pcard__hint span { display: none; }
  .pcard .sizes { gap: 5px; flex-wrap: nowrap; }
  .pcard .size-chip { flex: 1 1 0; min-height: 34px; padding: 0 .3em; display: inline-flex; align-items: center; justify-content: center; font-size: .66rem; letter-spacing: .03em; }
  .pcard .add-btn { width: 38px; height: 38px; }
  .pcard__name { min-height: 2.44em; }

  /* Hero: vuốt để chuyển, bỏ mũi tên, chấm to dễ bấm */
  .slider__ui .arrows { display: none; }
  .dots button { position: relative; }
  .dots button::after { content: ""; position: absolute; inset: -14px -4px; }

  /* Bộ lọc dạng thanh cuộn ngang */
  .toolbar .chips, .shop .chips, .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; min-height: 38px; }

  /* Rail ngang: sản phẩm mới + 3 giá trị cốt lõi */
  .ncards, .vcards { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 84%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -16px; padding: 0 16px 6px; scroll-padding-inline: 16px; scrollbar-width: none; }
  .ncards::-webkit-scrollbar, .vcards::-webkit-scrollbar { display: none; }
  .ncards > *, .vcards > * { scroll-snap-align: start; }
  .vcard { aspect-ratio: 4 / 5; max-width: none; margin: 0; }
  .vcard__title { font-size: 1.75rem; left: 18px; right: 18px; bottom: 18px; }
  .vcard__back { padding: 20px 18px; }
  .vcard__desc { font-size: .88rem; }

  /* "Ngày vụ điều mới" gọn 1 dòng */
  .farm__title { display: flex; align-items: center; gap: 8px; }
  .farm__title h2 { font-size: clamp(2.3rem, 10vw, 2.9rem); white-space: nowrap; }
  .farm__title img { width: 64px; height: auto; flex: none; }

  /* Trang chi tiết: thanh mua nhanh dính đáy */
  .buybar { display: flex; position: fixed; z-index: 90; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); align-items: center; gap: 12px; padding: 10px 10px 10px 16px; border-radius: 18px; background: rgba(255,253,239,.96); backdrop-filter: blur(10px); box-shadow: 0 12px 32px -12px rgba(40,26,10,.45), 0 0 0 1px var(--line); transform: translateY(140%); transition: transform .35s cubic-bezier(.2,.9,.25,1); }
  .buybar.is-show { transform: none; }
  .buybar__info { display: grid; min-width: 0; flex: 1; }
  .buybar__info b { font: 700 1.1rem/1.1 var(--f-body); color: var(--red); }
  .buybar__info small { font: 500 .72rem/1.3 var(--f-body); color: var(--brown); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .buybar .btn { flex: none; padding-inline: 1.2em; min-height: 46px; }
  .pd__actions .btn { min-height: 50px; }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
}
@media (min-width: 761px) { .buybar { display: none !important; } }
@media (max-width: 760px) {
  .farm__title { flex-wrap: nowrap; }
  .farm__title h2 { font-size: min(8.6vw, 2.6rem); flex: 0 1 auto; transform: rotate(-2deg); }
  .farm__title img { width: 56px; }
  .lang-btn { min-width: 38px; min-height: 36px; }
}
@media (max-width: 760px) {
  .toast { width: calc(100% - 24px); max-width: 440px; justify-content: space-between; border-radius: 16px; padding: .8rem .8rem .8rem 1.1rem; font: 600 .86rem/1.35 var(--f-body); bottom: calc(14px + env(safe-area-inset-bottom)); }
  .toast button { flex: none; min-height: 36px; padding-inline: 1rem; }
  body:has(.buybar.is-show) .toast { bottom: calc(88px + env(safe-area-inset-bottom)); }
}
