/* ============================================================
   Gạo Lúa Vàng — landing
   Palette: đen + vàng lúa. Display = Playfair Display,
   body = Be Vietnam Pro (cả hai đều có subset tiếng Việt;
   Instrument Serif của bản mẫu Figma thì KHÔNG — dấu tiếng
   Việt rơi về font hệ thống).
   ============================================================ */

:root {
  --bg:        #000;
  --ink:       #fff;
  --ink-70:    rgba(255,255,255,.72);
  --ink-50:    rgba(255,255,255,.52);
  --ink-40:    rgba(255,255,255,.40);
  --gold:      rgb(255,214,110);
  --gold-soft: rgba(255,220,120,.45);
  --hair:      rgba(255,255,255,.10);
  --serif:     'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans:      'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap:      72rem;
  --pad:       clamp(20px, 4vw, 32px);
  --sect-y:    clamp(64px, 10vw, 160px);
  --ease:      cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: #000; padding: 12px 20px; border-radius: 0 0 12px 0;
}
.skip:focus { left: 0; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* ---------- layout ---------- */
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.wrap--md { max-width: 64rem; }

/* ---------- glass ---------- */
/* Cùng kỹ thuật với bản mẫu, bỏ `background-blend-mode: luminosity`
   (no-op khi chỉ có 1 lớp background). */
.glass {
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,.012);
  backdrop-filter: blur(6px) saturate(1.15);
  -webkit-backdrop-filter: blur(6px) saturate(1.15);
  border: none;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.10);
}
.glass::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(180deg,
    rgba(255,255,255,.45) 0%,
    rgba(255,255,255,.15) 20%,
    rgba(255,255,255,0)   40%,
    rgba(255,255,255,0)   60%,
    rgba(255,255,255,.15) 80%,
    rgba(255,255,255,.45) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
          mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

/* ---------- typography helpers ---------- */
.serif { font-family: var(--serif); }

.label {
  margin: 0 0 14px;
  color: var(--ink-40);
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 500;
}
.label--gold { color: rgba(255,214,110,.75); }

.eyebrow {
  margin: 0 0 20px;
  color: rgba(255,214,110,.8);
  font-size: clamp(.65rem, 1.6vw, .75rem);
  letter-spacing: .24em;
  text-transform: uppercase;
  font-weight: 500;
}

em { font-style: italic; }
.br-md { display: none; }
@media (min-width: 768px) { .br-md { display: inline; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 11px 26px;
  border: none; border-radius: 999px;
  font-family: var(--sans); font-size: .875rem; font-weight: 500;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), background-color .25s, color .25s;
}
.btn--lg { padding: 14px 32px; font-size: .95rem; }
.btn--solid { background: var(--ink); color: #000; }
.btn--solid:hover { background: var(--gold); transform: translateY(-2px); }
.btn--glass { color: var(--ink); }
.btn--glass:hover { background: rgba(255,255,255,.06); transform: translateY(-2px); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.hero__media {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 60%;
  opacity: 0;
  transition: opacity .9s ease;
}
.hero__media.is-ready { opacity: 1; }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.35) 35%, rgba(0,0,0,.82) 100%),
    radial-gradient(ellipse 70% 55% at 50% 45%, transparent 30%, rgba(0,0,0,.5) 100%);
}

/* nav */
.nav-wrap { position: relative; z-index: 20; padding: 20px var(--pad) 0; }
.nav {
  max-width: var(--wrap); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 12px 10px 20px;
  border-radius: 999px;
}
.nav__brand {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--ink); text-decoration: none;
  font-family: var(--serif); font-size: 1.15rem; font-weight: 600; letter-spacing: .01em;
}
.nav__mark { color: var(--gold); flex: none; }
.nav__links {
  display: none; align-items: center; gap: 30px;
  margin: 0; padding: 0; list-style: none;
}
.nav__links a {
  color: var(--ink-70); font-size: .875rem; font-weight: 400; text-decoration: none;
  transition: color .2s;
}
.nav__links a:hover { color: var(--ink); }
.nav__cta { display: flex; align-items: center; gap: 14px; }
.nav__tel {
  display: none;
  color: var(--ink-70); font-size: .875rem; text-decoration: none; font-variant-numeric: tabular-nums;
}
.nav__tel:hover { color: var(--gold); }
@media (min-width: 900px) {
  .nav__links { display: flex; }
  .nav__tel   { display: inline; }
}

/* hero body */
.hero__body {
  position: relative; z-index: 10;
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0;
  text-align: center;
  padding: clamp(56px, 9vw, 88px) var(--pad) clamp(72px, 10vw, 96px);
  max-width: 60rem; margin-inline: auto;
}
.hero__h1 { margin: 0; display: block; }
.hero__display {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3rem, 11vw, 7rem);
  /* Dấu chồng tiếng Việt (ồ ế ấ ộ…) cao hơn chữ Latin — line-height sát 1.0 là cụng nhau. */
  line-height: 1.1;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.hero__display em { color: var(--gold); }
.hero__lede {
  display: block;
  margin-top: 22px;
  font-family: var(--sans);
  font-size: clamp(.98rem, 2.1vw, 1.2rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  letter-spacing: 0;
  text-wrap: pretty;
  max-width: 40rem;
  margin-inline: auto;
}
.hero__sub {
  margin: 18px auto 0;
  max-width: 36rem;
  color: var(--ink-70);
  font-size: .92rem;
  font-weight: 300;
  line-height: 1.75;
}
.hero__actions {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
  margin-top: 32px;
}

.trust {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px;
  margin: 40px 0 0; padding: 0; list-style: none;
  color: var(--ink-50); font-size: .8rem;
}
.trust li { display: inline-flex; align-items: baseline; gap: 7px; }
.trust strong { color: var(--gold); font-weight: 500; }

/* ============================================================
   VỀ CHÚNG TÔI
   ============================================================ */
.about {
  padding: clamp(72px, 11vw, 176px) 0 clamp(36px, 5vw, 56px);
  background: radial-gradient(ellipse at top, rgba(255,220,120,.05) 0%, transparent 70%), var(--bg);
}
.about__h2 {
  margin: 0;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.1rem, 7vw, 4.6rem);
  line-height: 1.2; letter-spacing: -.02em;
  text-wrap: balance;
}
.about__h2 em { color: rgba(255,255,255,.5); }
.about__p {
  margin: 32px 0 0; max-width: 44rem;
  color: var(--ink-70); font-size: 1rem; font-weight: 300; line-height: 1.85;
}

/* ============================================================
   ẢNH LỚN + THẺ KÍNH
   ============================================================ */
.featured { padding: clamp(28px, 4vw, 48px) 0 clamp(56px, 8vw, 128px); }
.frame {
  position: relative; margin: 0;
  border-radius: 24px; overflow: hidden;
  aspect-ratio: 16 / 9; background: #0d0d0d;
}
.frame > img { width: 100%; height: 100%; object-fit: cover; }
.frame__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.78) 0%, rgba(0,0,0,.1) 55%, transparent 75%);
}
.frame__foot {
  position: absolute; inset: auto 0 0 0;
  padding: clamp(18px, 3.5vw, 40px);
  display: flex; align-items: flex-end; justify-content: space-between;
  flex-wrap: wrap; gap: 18px;
}
.card-note { border-radius: 16px; padding: clamp(18px, 3vw, 30px); max-width: 30rem; }
.card-note .serif {
  margin: 0; color: var(--ink);
  font-size: clamp(.9rem, 1.6vw, 1.05rem); line-height: 1.65;
}
@media (max-width: 640px) {
  .frame { aspect-ratio: 4 / 5; }
  .frame__foot > .btn { display: none; }
}

/* ============================================================
   CINEMATIC
   ============================================================ */
.cine { padding: 0 0 clamp(56px, 9vw, 140px); }
.cine__frame {
  position: relative;
  border-radius: 24px; overflow: hidden;
  aspect-ratio: 21 / 9; background: #0a0800;
}
.cine__img {
  position: absolute; inset: -8% 0;
  width: 100%; height: 116%;
  object-fit: cover; object-position: center 40%;
}
.cine__grade {
  position: absolute; inset: 0; mix-blend-mode: screen;
  background: linear-gradient(135deg, rgba(255,160,30,.22) 0%, rgba(255,100,0,.08) 50%, transparent 100%);
}
.cine__rays {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 30% 80% at 28% 0%, rgba(255,200,60,.28) 0%, transparent 65%),
    radial-gradient(ellipse 20% 60% at 18% 0%, rgba(255,230,100,.18) 0%, transparent 55%);
}
/* film grain — nhiễu SVG nhúng thẳng vào CSS, không cần <filter> trong DOM */
.cine__grain {
  position: absolute; inset: 0; pointer-events: none;
  opacity: .30; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}
.cine__vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 90% 90% at 50% 50%, transparent 40%, rgba(0,0,0,.72) 100%),
    linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.2) 45%, transparent 70%);
}
.cine__motes {
  position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image:
    radial-gradient(circle, rgba(255,220,100,.55) 1px, transparent 1px),
    radial-gradient(circle, rgba(255,200,80,.35) 1px, transparent 1px),
    radial-gradient(circle, rgba(255,240,150,.25) 1.5px, transparent 1.5px);
  background-size: 120px 80px, 90px 110px, 160px 60px;
  animation: motes 9s ease-in-out infinite alternate;
}
@keyframes motes {
  from { background-position: 12px 18px, 55px 35px, 80px 12px; }
  to   { background-position: 26px 40px, 66px 57px, 96px 33px; }
}
.cine__tag {
  position: absolute; top: 18px; right: 18px;
  margin: 0; padding: 5px 11px; border-radius: 7px;
  color: rgba(255,220,100,.8);
  font-size: .58rem; letter-spacing: .18em; text-transform: uppercase;
  font-family: ui-monospace, 'Cascadia Mono', Menlo, monospace;
}
.cine__text { position: absolute; inset: auto 0 0 0; padding: clamp(20px, 4vw, 48px); }
.cine__h {
  margin: 0; max-width: 30rem;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.4rem, 4vw, 3rem); line-height: 1.25; letter-spacing: -.01em;
}
.cine__h em { color: var(--gold); }
@media (max-width: 640px) { .cine__frame { aspect-ratio: 3 / 4; } }

/* parallax bằng scroll-driven animation — 0 dòng JS.
   Trình duyệt chưa hỗ trợ thì ảnh đứng yên, không vỡ layout. */
@supports (animation-timeline: view()) {
  .cine__img {
    animation: cine-pan linear both;
    animation-timeline: view();
    animation-range: entry 0% exit 100%;
  }
  @keyframes cine-pan { from { transform: translateY(-4%); } to { transform: translateY(6%); } }
}

/* ============================================================
   VÙNG TRỒNG
   ============================================================ */
.philo { padding: var(--sect-y) 0; }
.philo__h2 {
  margin: 0 0 clamp(40px, 7vw, 88px);
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.2rem, 8vw, 5.2rem);
  line-height: 1.16; letter-spacing: -.02em;
}
.philo__h2 em { color: var(--gold-soft); font-style: italic; }
.philo__grid {
  display: grid; gap: clamp(24px, 4vw, 48px);
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
}
.philo__media { border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 3; background: #111; }
.philo__media img { width: 100%; height: 100%; object-fit: cover; }
.philo__text { display: flex; flex-direction: column; justify-content: center; gap: 30px; }
.philo__text .serif {
  margin: 0; color: var(--ink-70);
  font-size: clamp(.95rem, 1.5vw, 1.12rem); line-height: 1.8;
}
.philo__text .serif strong { color: var(--ink); font-weight: 600; }
.philo__text .label { margin-bottom: 12px; }
.rule { height: 1px; width: 100%; margin: 0; border: 0; background: var(--hair); }

/* ============================================================
   SẢN PHẨM
   ============================================================ */
.prods {
  padding: var(--sect-y) 0;
  background: radial-gradient(ellipse at center, rgba(255,220,120,.04) 0%, transparent 60%), var(--bg);
}
.prods__head {
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  margin-bottom: clamp(36px, 6vw, 72px);
}
.prods__head h2 {
  margin: 0;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.9rem, 6vw, 3.4rem); line-height: 1.18; letter-spacing: -.02em;
}
.prods__head .label { margin: 0; }
.prods__updated { margin: 6px 0 0; color: var(--ink-40); font-size: .72rem; font-weight: 300; }
/* 2 cột cố định, không auto-fit: 4 card mà auto-fit ra 3 cột thì card thứ 4 đứng lẻ. */
.prods__grid { display: grid; gap: clamp(18px, 3vw, 30px); grid-template-columns: 1fr; }
@media (min-width: 760px) { .prods__grid { grid-template-columns: repeat(2, 1fr); } }
.prod { border-radius: 24px; display: flex; flex-direction: column; }
.prod__media { aspect-ratio: 16 / 10; overflow: hidden; background: #111; }
.prod__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--ease);
}
.prod:hover .prod__media img { transform: scale(1.05); }
.prod__body { padding: clamp(20px, 3vw, 30px); display: flex; flex-direction: column; flex: 1; }
.prod__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.prod__top .label { margin: 0; font-size: .62rem; }
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 999px;
  color: var(--ink); font-size: .85rem; flex: none;
}
.prod h3 {
  margin: 0 0 10px;
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.15rem, 2vw, 1.45rem); letter-spacing: -.01em;
}
.prod h3 a { color: inherit; text-decoration: none; transition: color .2s; }
.prod h3 a:hover { color: var(--gold); }
.prod p { margin: 0; color: var(--ink-50); font-size: .875rem; line-height: 1.7; font-weight: 300; }
.prod__specs {
  margin: 14px 0 0; padding-top: 14px;
  border-top: 1px solid var(--hair);
  display: grid; grid-template-columns: auto 1fr; gap: 4px 12px;
}
.prod__specs dt { margin: 0; color: var(--ink-40); font-size: .75rem; font-weight: 400; }
.prod__specs dd { margin: 0; color: var(--ink-70); font-size: .8rem; text-align: right; }
.prod__price {
  margin-top: auto !important; padding-top: 18px;
  color: var(--ink-70) !important; font-size: .85rem !important;
}
.prod__price strong {
  color: var(--gold); font-family: var(--serif); font-weight: 600;
  font-size: 1.35rem; letter-spacing: -.01em;
}
.prods__note {
  margin: clamp(28px, 4vw, 44px) 0 0;
  color: var(--ink-50); font-size: .875rem; font-weight: 300;
}
.prods__note a { color: var(--gold); text-underline-offset: 4px; }

/* ============================================================
   BÁN SỈ
   ============================================================ */
.wholesale { padding: 0 0 var(--sect-y); }
.wholesale__inner {
  border-radius: 28px;
  padding: clamp(32px, 6vw, 72px);
  text-align: center;
}
.wholesale__inner h2 {
  margin: 0 0 14px;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.9rem, 6vw, 3rem); line-height: 1.18; letter-spacing: -.02em;
  text-wrap: balance;
}
.wholesale__lead {
  margin: 0 auto 28px; max-width: 34rem;
  color: var(--ink-70); font-size: .95rem; font-weight: 300; line-height: 1.8;
}
.wholesale__tiers {
  width: 100%; max-width: 30rem; margin: 0 auto 24px;
  border-collapse: collapse; font-size: .9rem;
}
.wholesale__tiers th, .wholesale__tiers td { padding: 12px 16px; border-bottom: 1px solid var(--hair); }
.wholesale__tiers th {
  text-align: left;
  color: var(--ink-40); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 500;
}
.wholesale__tiers td { text-align: left; color: var(--ink-70); font-weight: 300; }
.wholesale__tiers td:last-child { text-align: right; color: var(--gold); font-weight: 500; }
.wholesale__note { margin: 0 0 6px; color: var(--ink-50); font-size: .8rem; font-weight: 300; }
.wholesale__inner .btn { margin-top: 14px; }

/* form yêu cầu báo giá — chỉ có khi chủ shop bật VÀ đã dán site key Turnstile */
.lead {
  max-width: 30rem; margin: 28px auto 0;
  display: flex; flex-direction: column; gap: 14px; text-align: left;
}
.lead__field { display: flex; flex-direction: column; gap: 6px; }
.lead__field > span {
  color: var(--ink-50); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
}
.lead__field input, .lead__field textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--hair); border-radius: 12px;
  background: rgba(255,255,255,.04); color: var(--ink);
  font: inherit; font-size: .92rem; font-weight: 300;
}
.lead__field textarea { resize: vertical; min-height: 84px; }
.lead__field input:focus-visible, .lead__field textarea:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 1px;
}
.lead button[type="submit"] { align-self: start; }
.lead button[disabled] { opacity: .55; cursor: progress; }
.lead__fine { margin: 0; color: var(--ink-40); font-size: .74rem; font-weight: 300; line-height: 1.6; }
/* Rỗng lúc chưa gửi — :empty giữ nó không chiếm chỗ, tránh nhảy layout khi có chữ */
.lead__msg { margin: 0; color: var(--gold); font-size: .84rem; }
.lead__msg:empty { display: none; }

/* ============================================================
   LỜI KHÁCH
   ============================================================ */
.quotes { padding: 0 0 var(--sect-y); }
.quotes__h2 {
  margin: 0 0 clamp(24px, 4vw, 40px);
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.7rem, 5vw, 2.6rem); line-height: 1.2; letter-spacing: -.02em;
  text-wrap: balance;
}
.quotes__list {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: clamp(14px, 2.4vw, 22px); grid-template-columns: 1fr;
}
@media (min-width: 720px)  { .quotes__list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .quotes__list { grid-template-columns: repeat(3, 1fr); } }
.quotes__item {
  display: flex; flex-direction: column; gap: 14px;
  padding: clamp(22px, 3vw, 30px); border-radius: 20px;
}
/* blockquote mặc định của trình duyệt có margin trái 40px — bỏ, không phải thụt lề */
.quotes__item blockquote {
  margin: 0;
  color: var(--ink-70); font-size: .95rem; font-weight: 300; line-height: 1.75;
}
.quotes__item blockquote::before { content: "“"; }
.quotes__item blockquote::after  { content: "”"; }
.quotes__item cite {
  margin-top: auto;
  color: var(--ink-40); font-size: .78rem; font-style: normal; letter-spacing: .04em;
}

/* ============================================================
   CHỨNG NHẬN
   ============================================================ */
.certs { padding: 0 0 var(--sect-y); }
.certs__list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 12px;
}
.certs__list li {
  display: flex; flex-direction: column; gap: 2px;
  padding: 14px 20px; border-radius: 14px;
}
.certs__list strong {
  font-family: var(--serif); font-weight: 600;
  color: var(--ink); font-size: .95rem;
}
.certs__list span { color: var(--ink-50); font-size: .8rem; font-weight: 300; }

/* ============================================================
   HỎI ĐÁP
   ============================================================ */
.faq { padding: 0 0 var(--sect-y); }
.faq__h2 {
  margin: 0 0 clamp(28px, 5vw, 52px);
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.9rem, 6vw, 3.4rem); line-height: 1.18; letter-spacing: -.02em;
}
.faq__list { display: flex; flex-direction: column; gap: 12px; }
.faq__item { border-radius: 16px; }
.faq__item summary {
  list-style: none; cursor: pointer;
  padding: 20px clamp(18px, 3vw, 28px);
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1rem, 1.9vw, 1.2rem); line-height: 1.45;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  transition: color .2s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+';
  flex: none; color: var(--gold); font-family: var(--sans); font-size: 1.3rem; line-height: 1;
  transition: transform .3s var(--ease);
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item summary:hover { color: var(--gold); }
.faq__item p {
  margin: 0; padding: 0 clamp(18px, 3vw, 28px) 22px;
  color: var(--ink-70); font-size: .92rem; font-weight: 300; line-height: 1.8;
  max-width: 52rem;
}
.faq__item a { color: var(--gold); }

/* ============================================================
   LIÊN HỆ
   ============================================================ */
.contact { padding: 0 0 var(--sect-y); }
.contact__inner {
  border-radius: 28px;
  padding: clamp(32px, 6vw, 72px);
  text-align: center;
  background:
    radial-gradient(ellipse at top, rgba(255,220,120,.10) 0%, transparent 65%),
    rgba(255,255,255,.012);
}
.contact__inner h2 {
  margin: 0;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.9rem, 6vw, 3.6rem); line-height: 1.18; letter-spacing: -.02em;
  text-wrap: balance;
}
.contact__lead {
  margin: 18px auto 0; max-width: 34rem;
  color: var(--ink-70); font-size: .95rem; font-weight: 300; line-height: 1.8;
}
.contact__actions {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
  margin-top: 32px;
}
.contact__nap {
  margin: 40px auto 0; padding-top: 28px;
  border-top: 1px solid var(--hair);
  max-width: 30rem;
  font-style: normal; color: var(--ink-50); font-size: .875rem; font-weight: 300;
}
.contact__nap p { margin: 0 0 4px; }
.contact__nap strong { color: var(--ink); font-weight: 500; }

/* ============================================================
   FOOTER
   ============================================================ */
.foot { padding: clamp(36px, 6vw, 64px) 0 clamp(84px, 8vw, 56px); border-top: 1px solid var(--hair); }
.foot__row {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 18px;
}
.foot__brand {
  margin: 0; font-family: var(--serif); font-size: 1.3rem; font-weight: 600;
}
.foot__links {
  display: flex; flex-wrap: wrap; gap: 8px 26px;
  margin: 0; padding: 0; list-style: none;
}
.foot__links a { color: var(--ink-50); font-size: .875rem; text-decoration: none; transition: color .2s; }
.foot__links a:hover { color: var(--gold); }
.foot__fine {
  margin: 28px 0 0; color: rgba(255,255,255,.3); font-size: .78rem; font-weight: 300; line-height: 1.7;
}
.foot__biz {
  margin: 10px 0 0; color: var(--ink-40); font-size: .78rem; font-weight: 300;
}

/* thanh gọi nhanh — chỉ mobile */
.callbar {
  position: fixed; inset: auto 0 0 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  padding: 15px 20px;
  background: var(--gold); color: #1a1204;
  font-size: .95rem; font-weight: 600; text-decoration: none;
  box-shadow: 0 -8px 24px rgba(0,0,0,.5);
}
@media (min-width: 900px) { .callbar { display: none; } .foot { padding-bottom: clamp(36px,6vw,56px); } }

/* ============================================================
   THÊM VÀO GIỎ — hàng nút dưới giá mỗi sản phẩm
   ============================================================ */
.addcart {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin-top: 16px;
}
.addcart__pack, .addcart__kg {
  padding: 10px 12px;
  border: 1px solid var(--hair); border-radius: 12px;
  background: rgba(255,255,255,.04); color: var(--ink);
  font: inherit; font-size: .88rem; font-weight: 300;
}
.addcart__pack { flex: 1 1 8rem; }
.addcart__kg   { width: 5.5rem; }
.addcart__pack:focus-visible, .addcart__kg:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 1px;
}
/* nút dùng lại .btn .btn--solid, chỉ thu nhỏ để nằm cùng hàng */
.addcart__btn { padding: 10px 20px; font-size: .82rem; flex: none; }

/* ============================================================
   GIỎ ĐẶT HÀNG — nút mở (badge) + ngăn kéo
   ============================================================ */
/* Chưa có JS gỡ [hidden] thì phải thắng được display bên dưới */
.cart-toggle[hidden], .cart-drawer[hidden] { display: none; }

/* badge: viên thuốc cố định góc phải, vàng như .callbar, nằm TRÊN
   thanh gọi nhanh của mobile để không đè nút "Gửi đơn" */
.cart-toggle {
  position: fixed; right: 16px; bottom: 76px; z-index: 51;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border: none; border-radius: 999px;
  background: var(--gold); color: #1a1204;
  font-family: var(--sans); font-size: .9rem; font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
}
#cart-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 1.4em; padding: 0 .3em; border-radius: 999px;
  background: #1a1204; color: var(--gold);
  font-size: .8rem; font-weight: 700;
}
@media (min-width: 900px) { .cart-toggle { bottom: 24px; } }

/* ngăn kéo: panel phải trên desktop, bottom sheet ≤640px.
   Nền đặc --bg + viền --hair. Không hiệu ứng trượt — chỉ [hidden]
   bật/tắt, nên phần prefers-reduced-motion không cần thêm gì. */
.cart-drawer {
  position: fixed; inset: 0 0 0 auto; z-index: 60;
  width: min(380px, 100%); height: 100%;
  display: flex; flex-direction: column; gap: 16px;
  padding: clamp(20px, 4vw, 32px);
  background: var(--bg);
  border-left: 1px solid var(--hair);
  box-shadow: -16px 0 48px rgba(0,0,0,.6);
  overflow-y: auto; overscroll-behavior: contain;
}
@media (max-width: 640px) {
  .cart-drawer {
    inset: auto 0 0 0;
    width: 100%; height: auto; max-height: 85vh;
    border-left: none; border-top: 1px solid var(--hair);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -16px 48px rgba(0,0,0,.6);
  }
}
.cart-drawer__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.cart-drawer__head strong {
  font-family: var(--serif); font-size: 1.2rem; font-weight: 600;
}
#cart-close {
  border: none; background: none; color: var(--ink-50);
  font-size: 1.5rem; line-height: 1; padding: 4px; cursor: pointer;
}
#cart-close:hover { color: var(--ink); }
.cart-drawer__intro {
  margin: 0; color: var(--ink-50);
  font-size: .84rem; font-weight: 300; line-height: 1.6;
}
#cart-lines { list-style: none; margin: 0; padding: 0; }
#cart-lines:empty { display: none; }
#cart-lines li {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  padding: 12px 0; border-bottom: 1px solid var(--hair);
  color: var(--ink-70); font-size: .86rem;
}
#cart-lines li button {
  flex: none;
  padding: 4px 9px;
  border: 1px solid var(--hair); border-radius: 8px;
  background: rgba(255,255,255,.04); color: var(--ink-70);
  font: inherit; font-size: .8rem; cursor: pointer;
}
#cart-lines li button:hover { color: var(--ink); border-color: var(--gold-soft); }
.cart-drawer__subtotal {
  margin: 0; color: var(--ink-70); font-size: .82rem; font-weight: 300;
}
#cart-subtotal {
  color: var(--gold); font-family: var(--serif); font-size: 1.15rem; font-weight: 600;
}
.cart-drawer__subtotal small { color: var(--ink-50); font-size: .74rem; }
/* #cart-form dùng lại .lead__field / .lead__msg — chỉ cần dàn khoảng cách */
#cart-form { margin: 0; display: flex; flex-direction: column; gap: 12px; }
#cart-form .cf-turnstile { margin-top: 4px; }

/* ============================================================
   TRANG MỘT LOẠI GẠO — /gao/<id>
   ============================================================ */
/* biến thể nav đặc cho trang con: nền --bg, viền đáy, bỏ padding-top của hero */
.nav-wrap--solid {
  padding-top: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--hair);
}
.nav-wrap--solid .nav { padding-block: 14px; }

.prod-page { padding: var(--sect-y) 0; }
.crumbs { margin: 0 0 clamp(24px, 4vw, 40px); font-size: .8rem; }
.crumbs a { color: var(--ink-50); text-decoration: none; transition: color .2s; }
.crumbs a:hover { color: var(--gold); }
.prod-page__grid {
  display: grid; gap: clamp(24px, 5vw, 56px);
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .prod-page__grid { grid-template-columns: 1fr 1fr; align-items: start; }
}
.prod-page__media {
  margin: 0; border-radius: 24px; overflow: hidden;
  aspect-ratio: 4 / 5; background: #111;
}
.prod-page__media img { width: 100%; height: 100%; object-fit: cover; }
.prod-page__body { display: flex; flex-direction: column; }
.prod-page__body h1 {
  margin: 0 0 14px;
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.9rem, 5vw, 3rem); line-height: 1.15; letter-spacing: -.02em;
}
.prod-page__body > p {
  margin: 0 0 16px;
  color: var(--ink-70); font-size: .95rem; font-weight: 300; line-height: 1.8;
}
.prod-page__notes {
  margin-top: clamp(20px, 3vw, 32px); padding-top: 20px;
  border-top: 1px solid var(--hair);
  color: var(--ink-70); font-size: .92rem; font-weight: 300; line-height: 1.75;
}
.prod-page__notes p { margin: 0 0 12px; }

.legal-page { padding: var(--sect-y) 0; }
.legal-page h1 {
  margin: 0 0 clamp(24px, 4vw, 40px);
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.9rem, 5vw, 2.6rem); line-height: 1.18; letter-spacing: -.02em;
}
.legal-page__body { color: var(--ink-70); font-size: .95rem; font-weight: 300; line-height: 1.85; }
.legal-page__body p { margin: 0 0 18px; }
.legal-page__body strong { color: var(--ink); font-weight: 600; }
.legal-page__body a { color: var(--gold); text-underline-offset: 3px; }

/* ============================================================
   REVEAL
   ============================================================ */
/* Chỉ ẩn khi JS chắc chắn đang chạy — JS chết thì nội dung vẫn hiện đủ. */
.js .reveal {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: calc(var(--d, 0) * 120ms);
}
.js .reveal[data-from="left"]  { transform: translateX(-40px); }
.js .reveal[data-from="right"] { transform: translateX(40px); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Máy đang tắt hiệu ứng chuyển động: giữ nguyên bố cục,
   bỏ mọi thứ chỉ để cho đẹp mắt. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .cine__motes { animation: none; }
  .cine__img { animation: none !important; transform: none !important; }
  .hero__media { transition: none; }
  .prod:hover .prod__media img { transform: none; }
  .btn:hover { transform: none; }
  .faq__item[open] summary::after { transition: none; }
}
