/* Theme 1 — Aqua Glass (Liquid Glass 2026) */
@property --angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@property --cx { syntax: "<percentage>"; inherits: false; initial-value: 20%; }
@property --cy { syntax: "<percentage>"; inherits: false; initial-value: 10%; }

:root {
  --green: oklch(0.47 0.1 152);
  --green-soft: oklch(0.93 0.04 152);
  --blue: oklch(0.66 0.14 235);
  --blue-deep: oklch(0.45 0.12 240);
  --gold: oklch(0.6 0.09 85);
  --ink: oklch(0.25 0.04 240);
  --muted: oklch(0.45 0.03 240);
  --bg: oklch(0.975 0.015 215);
  --plain: #FBF7EC;   /* gạo: rice cream */
  --alt: #E4F3F6;     /* nước: soft aqua */
  --dark: #164F4B;    /* river teal-green (footer) */
  --glass: color-mix(in oklch, white 55%, transparent);
  --glass-strong: color-mix(in oklch, white 74%, transparent);
  --glass-border: color-mix(in oklch, white 80%, transparent);
  --shadow: 0 10px 40px -12px color-mix(in oklch, var(--blue-deep) 35%, transparent);
  --radius: 28px;
  --font-body: "Be Vietnam Pro", system-ui, sans-serif;
  --font-display: "Plus Jakarta Sans", "Be Vietnam Pro", system-ui, sans-serif;
  --wrap: min(1200px, 100% - 2.5rem);
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--bg);
  line-height: 1.6; overflow-x: hidden; min-height: 100vh;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Scroll progress ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 4px; z-index: 100; background: linear-gradient(90deg, var(--blue), var(--green)); transform-origin: left; transform: scaleX(0); }
@supports (animation-timeline: scroll()) {
  .progress { animation: grow linear both; animation-timeline: scroll(root block); }
  @keyframes grow { to { transform: scaleX(1); } }
}

/* ---------- Bubbles (hero) ---------- */
.bubbles { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.bubbles i {
  position: absolute; bottom: -60px; left: var(--l); width: var(--s); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, white, color-mix(in oklch, var(--blue) 18%, transparent) 60%, transparent 72%);
  border: 1px solid color-mix(in oklch, white 80%, transparent);
  opacity: 0; animation: rise var(--d) linear var(--delay) infinite;
}
@keyframes rise { 0% { transform: translateY(0) translateX(0); opacity: 0; } 10% { opacity: .8; } 90% { opacity: .6; } 100% { transform: translateY(-110vh) translateX(30px); opacity: 0; } }

/* ---------- Glass primitive ---------- */
.glass {
  background: linear-gradient(145deg, var(--glass-strong), var(--glass));
  border: 1px solid transparent;
  border-radius: var(--radius);
  box-shadow: var(--shadow), inset 0 1px 0 white, inset 0 -1px 0 color-mix(in oklch, var(--blue) 10%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  backdrop-filter: blur(18px) saturate(1.6);
}
/* crisp 1px gradient border */
:where(.glass) { position: relative; }
.glass::after {
  content: ""; position: absolute; inset: -1px; padding: 1px; border-radius: inherit; pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,.98), color-mix(in oklch, var(--blue) 45%, white) 38%, color-mix(in oklch, var(--green) 38%, white) 72%, rgba(255,255,255,.95));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
@supports not (backdrop-filter: blur(1px)) { .glass { background: oklch(0.99 0.01 210); } }

/* ---------- Layout ---------- */
.wrap { width: var(--wrap); margin-inline: auto; }
section { padding-block: clamp(4.5rem, 10vw, 8rem); }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-deep); background: color-mix(in oklch, var(--blue) 14%, white); padding: .35rem .9rem; border-radius: 99px; margin-bottom: 1rem; }
.sec-head { max-inline-size: 700px; margin-bottom: clamp(2.2rem, 5vw, 3.6rem); }
.sec-head h2 { font-size: clamp(2.1rem, 5vw, 3.6rem); letter-spacing: -.035em; }
.sec-head p { color: var(--muted); margin-top: .75rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border: 0; border-radius: 99px;
  padding: .8rem 1.4rem; font-weight: 600; font-size: .95rem; white-space: nowrap;
  transition: transform .2s ease-out, box-shadow .25s, background .25s;
  transform: translate(var(--mx, 0px), var(--my, 0px));
}
.btn:hover { transform: translate(var(--mx, 0px), calc(var(--my, 0px) - 2px)); }
.btn-primary { color: white; background: linear-gradient(135deg, var(--green), color-mix(in oklch, var(--green) 60%, var(--blue))); box-shadow: 0 8px 24px -8px var(--green), inset 0 1px 0 color-mix(in oklch, white 50%, transparent); }
.btn-blue { color: white; background: linear-gradient(135deg, var(--blue), var(--blue-deep)); box-shadow: 0 8px 24px -8px var(--blue), inset 0 1px 0 color-mix(in oklch, white 50%, transparent); }
.btn-ghost { background: var(--glass-strong); border: 1px solid var(--glass-border); color: var(--ink); box-shadow: inset 0 1px 0 white; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 12px; z-index: 50; margin: 12px auto 0; width: var(--wrap); }
.site-header .bar { display: flex; align-items: center; gap: .75rem; padding: .55rem .55rem .55rem 1.1rem; border-radius: 99px; }
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 800; white-space: nowrap; flex: none; }
.brand img { height: 40px; width: auto; }
.brand span { font-size: 1.05rem; }
.nav { display: flex; gap: .1rem; margin-inline: auto; min-width: 0; }
.nav a { padding: .5rem .72rem; border-radius: 99px; font-size: .92rem; font-weight: 500; color: var(--muted); transition: background .2s, color .2s; white-space: nowrap; }
.nav a:hover { background: color-mix(in oklch, var(--blue) 14%, white); color: var(--blue-deep); }
.head-actions { display: flex; gap: .45rem; align-items: center; flex: none; }
.cart-count { min-width: 1.4rem; height: 1.4rem; padding-inline: .3rem; border-radius: 99px; background: var(--gold); color: white; font-size: .75rem; display: inline-grid; place-items: center; }
.cart-count[data-n="0"] { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden; margin-top: -76px;
  padding-block: clamp(7rem, 12vw, 9.5rem) clamp(11rem, 21vw, 19rem);
  background: linear-gradient(180deg, #CDEEE9 0%, #E2F4EC 28%, #FBF1D2 58%, #F6E2AB 100%);
}
/* sky: sun glow + faint rays */
.hero-sky { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hero-sky .sun { position: absolute; inset: 0; background: radial-gradient(circle at 74% 21%, rgba(255,248,222,.95) 0, rgba(243,210,122,.78) 5%, rgba(243,210,122,.34) 15%, rgba(243,210,122,.12) 30%, transparent 52%); }
.hero-sky .rays {
  position: absolute; inset: 0; opacity: .9;
  background: repeating-conic-gradient(from -35deg at 74% 21%, rgba(255,243,196,.34) 0 3deg, transparent 3deg 11deg);
  -webkit-mask: radial-gradient(circle at 74% 21%, #000 0, transparent 62%); mask: radial-gradient(circle at 74% 21%, #000 0, transparent 62%);
  animation: rays-breathe 9s ease-in-out infinite alternate;
}
@keyframes rays-breathe { from { opacity: .55; } to { opacity: 1; } }
.hero-land { position: absolute; left: 0; bottom: 0; width: 100%; height: 78%; z-index: 1; pointer-events: none; display: block; }
.river-wrap {
  position: absolute; left: 0; right: 0; bottom: 0; height: clamp(280px, 45%, 500px); z-index: 2; pointer-events: none;
  filter: drop-shadow(0 -2px 1.5px rgba(255,255,255,.65)) drop-shadow(0 6px 10px rgba(50,90,50,.28));
}
.river {
  position: absolute; inset: 0; clip-path: url(#river-clip); overflow: hidden;
  background:
    radial-gradient(ellipse 14% 22% at 74% 10%, rgba(255,240,180,.95), transparent 70%),
    radial-gradient(ellipse 7% 60% at 74% 38%, rgba(255,246,214,.55), transparent 80%),
    linear-gradient(180deg, #F8E8BE 0%, #AFDCE6 22%, #46AEDB 62%, #1B7FAF 100%);
}
.hero-water { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.hero-grid { position: relative; z-index: 4; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-copy { padding: clamp(1.4rem, 3.5vw, 2.8rem); border-radius: 40px; background: linear-gradient(145deg, color-mix(in oklch, white 80%, transparent), color-mix(in oklch, white 56%, transparent)); }
.hero h1 { font-size: clamp(2.5rem, 7vw, 5.2rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.04; }
.hero h1 .w { display: inline-block; animation: word-rise .9s cubic-bezier(.2,.9,.3,1) calc(var(--i) * 80ms + 150ms) both; }
.hero h1 em { font-style: normal; }
.hero h1 em .w {
  color: transparent; background: linear-gradient(100deg, var(--blue), var(--green) 30%, var(--gold) 50%, var(--blue) 75%, var(--green));
  background-size: 300% 100%; -webkit-background-clip: text; background-clip: text;
  animation: word-rise .9s cubic-bezier(.2,.9,.3,1) calc(var(--i) * 80ms + 150ms) both, shimmer 8s linear 1.4s infinite;
}
@keyframes word-rise { from { opacity: 0; transform: translateY(.7em) rotate(3deg); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes shimmer { to { background-position: -300% 0; } }
.hero .lead { margin-top: 1.4rem; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-inline-size: 52ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; margin-top: 2.4rem; }
.stat { padding: 1rem 1.1rem; border-radius: 22px; }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(1.3rem, 3vw, 2rem); color: var(--blue-deep); font-variant-numeric: tabular-nums; }
.stat span { font-size: .82rem; color: var(--muted); line-height: 1.35; display: block; }
.stat b span { display: inline; font-size: inherit; color: inherit; line-height: inherit; }

/* foreground rice bank */
.rice { position: absolute; left: 0; bottom: 22px; width: 100%; height: clamp(190px, 21vw, 310px); z-index: 3; pointer-events: none; display: block; overflow: hidden; }
.plant { transform-box: fill-box; transform-origin: 50% 100%; animation: sway var(--d, 4.6s) ease-in-out var(--dl, 0s) infinite alternate; }
@keyframes sway { from { transform: rotate(-1.8deg); } to { transform: rotate(2.6deg); } }
.hero.is-off .plant, .hero.is-off .bubbles i, .hero.is-off .grains i, .hero.is-off .rays, .hero.is-off h1 em .w { animation-play-state: paused; }
/* floating golden rice grains */
.grains { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.grains i {
  position: absolute; top: -20px; left: var(--l); width: 5px; height: 11px; border-radius: 50%;
  background: linear-gradient(160deg, #F3D27A, #D9A93E); box-shadow: 0 0 6px rgba(243,210,122,.7); opacity: 0;
  animation: grain-drift var(--d) linear var(--delay) infinite;
}
@keyframes grain-drift {
  0% { transform: translate(0, 0) rotate(0); opacity: 0; }
  10% { opacity: .85; } 85% { opacity: .7; }
  100% { transform: translate(-140px, 85vh) rotate(420deg); opacity: 0; }
}

.hero-card { position: relative; z-index: 4; border-radius: 40px; padding: 1.2rem; isolation: isolate; }
.hero-card::before { /* refraction layer */
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  -webkit-backdrop-filter: blur(10px) saturate(1.6); backdrop-filter: blur(10px) saturate(1.6);
}
@supports (backdrop-filter: url(#refract)) {
  .hero-card::before { backdrop-filter: blur(6px) saturate(1.7) url(#refract); }
}
.hero-card { background: linear-gradient(145deg, color-mix(in oklch, white 74%, transparent), color-mix(in oklch, white 46%, transparent)); }
.hero-card .stage { position: relative; aspect-ratio: 1 / 1.02; border-radius: 30px; overflow: hidden; background: radial-gradient(circle at 50% 30%, rgba(255,246,214,.9), rgba(190,230,240,.55) 60%, rgba(120,190,215,.4)); }
.hero-card .orb { position: absolute; left: 50%; top: 52%; width: 78%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, rgba(30,154,214,.22) 55%, rgba(243,210,122,.3) 80%, transparent 82%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.7); }
.hero-card .pi { position: absolute; object-fit: contain; filter: drop-shadow(0 14px 14px rgba(20,70,90,.28)); }
.hero-card .pi-m { left: 50%; bottom: 5%; width: 62%; height: 88%; translate: -50% 0; z-index: 3; animation: bob 7s ease-in-out infinite; }
.hero-card .pi-l { left: 2%; bottom: 6%; width: 42%; height: 52%; rotate: -8deg; z-index: 2; }
.hero-card .pi-r { right: 2%; bottom: 8%; width: 40%; height: 56%; rotate: 8deg; z-index: 2; }
.hc-cap { display: flex; flex-direction: column; gap: .15rem; padding: .9rem .4rem .2rem; }
.hc-cap b { font-family: var(--font-display); font-size: 1.02rem; line-height: 1.25; }
.hc-cap span { font-size: .82rem; color: var(--muted); }
.hero-card .float { position: absolute; z-index: 5; padding: .55rem .9rem; border-radius: 999px; font-size: .8rem; font-weight: 600; line-height: 1.2; white-space: nowrap; display: flex; align-items: center; gap: .5rem; animation: bob 6s ease-in-out infinite; }
.hero-card .float.a { left: 1rem; bottom: 1rem; }
.hero-card .float.b { right: 1rem; top: 1rem; animation-delay: -3s; }
.float .dot { width: .6rem; height: .6rem; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px color-mix(in oklch, var(--green) 25%, transparent); }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* ---------- Audience ---------- */
.aud-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.aud { padding: 1.8rem; display: flex; flex-direction: column; gap: .7rem; }
.aud .ico { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; font-size: 1.6rem; background: linear-gradient(145deg, color-mix(in oklch, var(--blue) 22%, white), color-mix(in oklch, var(--green) 18%, white)); box-shadow: inset 0 1px 0 white; }
.aud h3 { font-size: 1.25rem; }
.aud p { color: var(--muted); font-size: .95rem; }

/* ---------- Products ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.8rem; }
.chip { border: 1px solid var(--glass-border); background: var(--glass); backdrop-filter: blur(12px); padding: .6rem 1.2rem; border-radius: 99px; font-weight: 600; font-size: .92rem; transition: all .25s; }
.chip[aria-pressed="true"] { background: linear-gradient(135deg, var(--blue), var(--green)); color: white; border-color: transparent; box-shadow: 0 8px 20px -8px var(--blue); }
.p-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.2rem; }
.p-item { container-type: inline-size; container-name: pcard; display: flex; }
.p-item[hidden] { display: none; }
.p-card { display: flex; flex-direction: column; width: 100%; padding: 1rem; border-radius: 26px; transition: transform .25s ease-out, box-shadow .3s; position: relative; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); will-change: transform; }
.p-card:hover { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-5px); }
.p-img { aspect-ratio: 1; border-radius: 20px; background: radial-gradient(circle at 50% 40%, white, color-mix(in oklch, var(--blue) 12%, white)); display: grid; place-items: center; overflow: hidden; }
.p-img img { width: 86%; height: 86%; object-fit: contain; transition: transform .4s; }
.p-card:hover .p-img img { transform: scale(1.06) rotate(-1deg); }
.p-badge { position: absolute; top: 1.4rem; left: 1.4rem; font-size: .72rem; font-weight: 700; background: var(--gold); color: white; padding: .2rem .65rem; border-radius: 99px; }
.p-cat { font-size: .75rem; font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: .08em; margin-top: .9rem; }
.p-name { font-size: 1.05rem; margin-top: .25rem; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.4em; }
.p-desc { font-size: .88rem; color: var(--muted); margin-top: .4rem; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; }
.p-pack { font-size: .8rem; color: var(--blue-deep); margin-top: .5rem; }
.p-foot { margin-top: auto; padding-top: .9rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.p-price { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--blue-deep); }
.p-price small { font-weight: 500; color: var(--muted); font-size: .75rem; }
.p-add { border: 0; width: 42px; height: 42px; flex: none; border-radius: 50%; background: linear-gradient(135deg, var(--green), var(--blue)); color: white; font-size: 1.4rem; line-height: 1; box-shadow: 0 6px 16px -6px var(--green); transition: transform .2s; }
.p-add:hover { transform: scale(1.12) rotate(90deg); }
/* container queries: narrow cards tighten */
@container pcard (max-width: 230px) {
  .p-price { font-size: 1rem; }
  .p-desc { display: none; }
}
@container pcard (min-width: 300px) {
  .p-img { aspect-ratio: 4/3; }
}
@keyframes pop-in { from { opacity: 0; transform: scale(.94); } }
.p-item:not([hidden]) { animation: pop-in .4s both; }
::view-transition-group(*) { animation-duration: .45s; animation-timing-function: cubic-bezier(.3,.9,.3,1); }

/* ---------- Calculator ---------- */
.calc { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.5rem; align-items: start; }
.calc-rows { padding: 1rem; display: flex; flex-direction: column; gap: .6rem; }
.calc-row { display: grid; grid-template-columns: 56px 1fr auto; gap: .9rem; align-items: center; padding: .6rem .8rem; border-radius: 20px; border: 1px solid transparent; transition: background .3s, border-color .3s, box-shadow .3s; }
.calc-row img { width: 56px; height: 56px; object-fit: contain; border-radius: 14px; background: white; }
.calc-row .nm { font-weight: 600; font-size: .95rem; line-height: 1.3; }
.calc-row .pr { font-size: .82rem; color: var(--muted); }
.calc-row:has(input:not([value="0"])) { background: color-mix(in oklch, var(--green) 12%, white); border-color: color-mix(in oklch, var(--green) 40%, white); box-shadow: 0 6px 18px -10px var(--green); }
.stepper { display: flex; align-items: center; gap: .3rem; background: white; border-radius: 99px; padding: .2rem; box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--blue) 20%, white); }
.stepper button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: color-mix(in oklch, var(--blue) 14%, white); font-size: 1.1rem; font-weight: 700; color: var(--blue-deep); }
.stepper button:hover { background: var(--blue); color: white; }
.stepper input { width: 2.4rem; text-align: center; border: 0; background: transparent; font: 700 1rem var(--font-body); color: var(--ink); -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc-sum { padding: 1.6rem; position: sticky; top: 100px; }
.calc-sum h3 { font-size: 1.3rem; margin-bottom: 1rem; }
.sum-lines { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-direction: column; gap: .5rem; font-size: .9rem; min-height: 3rem; }
.sum-lines li { display: flex; justify-content: space-between; gap: 1rem; }
.sum-lines .empty { color: var(--muted); }
.total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 1rem; border-top: 1px dashed color-mix(in oklch, var(--blue) 40%, white); margin-bottom: 1.2rem; }
.total b { font-family: var(--font-display); font-size: 1.9rem; color: var(--green); }
.calc-sum .btn { width: 100%; }
.note { font-size: .78rem; color: var(--muted); margin-top: .8rem; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 180px; gap: .8rem; }
.gallery button { padding: 0; border: 0; border-radius: 22px; overflow: hidden; position: relative; box-shadow: var(--shadow); background: white; }
.gallery button:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery button:nth-child(4) { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gallery button:hover img { transform: scale(1.08); }
.gallery button::after { content: "⤢"; position: absolute; right: .7rem; bottom: .7rem; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--glass-strong); backdrop-filter: blur(8px); opacity: 0; transition: opacity .3s; }
.gallery button:hover::after { opacity: 1; }
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100dvh; width: 100%; height: 100%; margin: 0; overflow: hidden; }
dialog.lightbox::backdrop { background: color-mix(in oklch, var(--blue-deep) 55%, transparent); backdrop-filter: blur(14px); }
.lb-inner { height: 100%; display: grid; place-items: center; padding: 1rem; position: relative; }
.lb-inner img { max-height: 84dvh; max-width: min(1100px, 100%); border-radius: 24px; box-shadow: 0 30px 80px -20px #000a; }
.lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--glass-border); background: var(--glass-strong); backdrop-filter: blur(10px); font-size: 1.4rem; }
.lb-close { top: 1rem; right: 1rem; } .lb-prev { left: 1rem; } .lb-next { right: 1rem; }
dialog.lightbox { opacity: 0; transition: opacity .35s, display .35s allow-discrete, overlay .35s allow-discrete; }
dialog.lightbox[open] { opacity: 1; }
@starting-style { dialog.lightbox[open] { opacity: 0; } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; counter-reset: step; }
.step { padding: 1.6rem; position: relative; counter-increment: step; }
.step::before { content: counter(step); display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; margin-bottom: 1rem; font: 800 1.2rem var(--font-display); color: white; background: linear-gradient(135deg, var(--blue), var(--green)); box-shadow: 0 8px 18px -8px var(--blue); }
.step h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.step p { color: var(--muted); font-size: .92rem; }

/* ---------- FAQ ---------- */
.faq { max-inline-size: 820px; display: flex; flex-direction: column; gap: .8rem; }
.faq details { border-radius: 22px; padding: 0 1.4rem; transition: background .3s, opacity .3s; }
.faq summary { list-style: none; cursor: pointer; padding: 1.1rem 0; font-weight: 600; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--blue-deep); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details[open] { background: linear-gradient(145deg, color-mix(in oklch, var(--blue) 12%, white), var(--glass-strong)); }
.faq .ans { padding-bottom: 1.2rem; color: var(--muted); }
.faq:has(details[open]) details:not([open]) { opacity: .75; }

/* ---------- CTA + Footer ---------- */
.cta { padding: clamp(1.5rem, 5vw, 3.5rem); display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: center; overflow: hidden; }
.cta img { border-radius: 22px; width: 100%; height: 100%; max-height: 260px; object-fit: cover; }
.cta h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
.cta p { color: var(--muted); margin: .8rem 0 1.4rem; }
.site-footer { padding: 3rem 0 6rem; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding: 2rem; }
.foot h4 { font-size: 1rem; margin-bottom: .8rem; }
.foot p, .foot a { color: var(--muted); font-size: .92rem; display: block; margin-bottom: .4rem; overflow-wrap: anywhere; }
.foot a:hover { color: var(--blue-deep); }
.copy { text-align: center; color: var(--muted); font-size: .82rem; margin-top: 1.5rem; }

/* ---------- Quick-order popover panel ---------- */
#cart-panel { margin: 0 0 0 auto; inset: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(420px, 100vw); border: 0; border-radius: 28px 0 0 28px; padding: 1.5rem; color: var(--ink); overflow: auto;
  background: linear-gradient(160deg, oklch(0.99 0.01 210 / .9), oklch(0.96 0.03 200 / .85)); backdrop-filter: blur(24px) saturate(1.6);
  transform: translateX(100%); opacity: 0; transition: transform .45s cubic-bezier(.2,.9,.3,1), opacity .3s, display .45s allow-discrete, overlay .45s allow-discrete; }
#cart-panel:popover-open { transform: translateX(0); opacity: 1; }
@starting-style { #cart-panel:popover-open { transform: translateX(100%); opacity: 0; } }
#cart-panel::backdrop { background: color-mix(in oklch, var(--blue-deep) 30%, transparent); backdrop-filter: blur(4px); }
.cp-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.2rem; }
.cp-head h3 { font-size: 1.3rem; }
.cp-close { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--glass-border); background: white; }
.cp-list { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-direction: column; gap: .6rem; }
.cp-list li { display: grid; grid-template-columns: 1fr auto; gap: .5rem; padding: .8rem 1rem; border-radius: 18px; background: var(--glass-strong); font-size: .92rem; }
.cp-list .empty { display: block; color: var(--muted); text-align: center; }
.cp-list button { border: 0; background: none; color: var(--muted); font-size: .8rem; text-decoration: underline; padding: 0; }
.cp-total { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 1rem; }
#cart-panel .btn { width: 100%; }

/* ---------- Mobile bar + badge ---------- */
.mbar { display: none; }
.theme-badge { position: fixed; left: 14px; bottom: 14px; z-index: 40; padding: .5rem .9rem; border-radius: 99px; font-size: .78rem; font-weight: 600; }

/* ---------- Reveal on scroll (scroll-driven) ---------- */
@supports (animation-timeline: view()) {
  .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
  @keyframes reveal { from { opacity: 0; transform: translateY(40px) scale(.97); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero-grid, .calc, .cta { grid-template-columns: 1fr; }
  .calc-sum { position: static; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .nav { display: none; }
  .head-actions { margin-left: auto; }
  .hero-card { max-width: 460px; margin-inline: auto; width: 100%; }
}
@media (max-width: 720px) {
  .aud-grid { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }
  .gallery button:nth-child(1) { grid-column: span 2; }
  .stats { gap: .5rem; }
  .stat { padding: .8rem .7rem; }
  .brand span { display: none; }
  .head-actions .btn-label { display: none; }
  .head-actions .btn { padding: .7rem .9rem; }
  .hero-card .float.a { left: .7rem; bottom: .7rem; } .hero-card .float.b { right: .7rem; top: .7rem; }
  .p-grid { grid-template-columns: 1fr; }
  .calc-row { grid-template-columns: 48px 1fr; }
  .calc-row .stepper { grid-column: 1 / -1; justify-self: end; }
  .calc-row img { width: 48px; height: 48px; }
  .steps { grid-template-columns: 1fr; }
  #cart-panel { border-radius: 0; }
  .mbar { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; position: fixed; inset: auto 0 0 0; z-index: 45; padding: .6rem .8rem calc(.6rem + env(safe-area-inset-bottom)); background: var(--glass-strong); backdrop-filter: blur(20px) saturate(1.6); border-top: 1px solid var(--glass-border); }
  .theme-badge { bottom: 74px; }
}
@media (max-width: 400px) { .hero-card .float { font-size: .72rem; padding: .42rem .7rem; gap: .4rem; } }
@media (max-width: 720px) {
  .rice .l1 { display: none; }
  .rice { height: 190px; bottom: 18px; }
  .hero-land { height: 62%; }
  .river-wrap { height: clamp(260px, 44%, 420px); }
  .hero { padding-bottom: 12rem; }
  .grains i:nth-child(n+4) { display: none; }
  .hero-card .stage { aspect-ratio: 1 / .9; }
}

/* ---------- Section backgrounds: song nuoc scallops + rice watermark ---------- */
.s-plain, .s-alt { position: relative; isolation: isolate; }
/* gạo: warm rice-cream + scattered grains */
.s-plain {
  background:
    radial-gradient(900px 420px at 88% 30%, rgba(243,210,122,.16), transparent 70%),
    radial-gradient(700px 360px at 6% 75%, rgba(169,196,108,.10), transparent 70%),
    var(--plain);
}
.s-plain::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: url("rice-grains.svg") 0 0 / 280px 280px; opacity: .2; }
/* nước: aqua wash, ripple rings, caustic light */
.s-alt {
  background:
    radial-gradient(800px 380px at 12% 30%, rgba(255,255,255,.7), transparent 70%),
    radial-gradient(700px 340px at 92% 70%, rgba(30,154,214,.10), transparent 70%),
    var(--alt);
}
.s-alt::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    url("water-rings.svg") -6% 14% / min(560px, 80vw) auto no-repeat,
    url("water-rings.svg") 104% 86% / min(680px, 90vw) auto no-repeat,
    url("water-caustic.svg") 0 0 / 640px 640px;
  opacity: .62;
}
.s-rice { overflow: clip; }
.s-rice::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none; right: 0; bottom: 0; width: clamp(150px, 22vw, 280px); aspect-ratio: 1;
  background: url("lua/lua-canh.webp") no-repeat right bottom / contain; opacity: .55; mix-blend-mode: multiply;
}
.s-rice-left::after { right: auto; left: 0; transform: scaleX(-1); opacity: .5; }
.s-rice-bui::after { background-image: url("lua/lua-bui.webp"); right: 1%; transform: none; }

/* footer: river teal-green at dusk */
.site-footer {
  position: relative; isolation: isolate; margin-top: -1px; color: #fff;
  padding: clamp(9rem, 15vw, 12rem) 0 6rem;
  background: linear-gradient(180deg, var(--dark) 0, #123F3F 40%, #0B2E31 100%);
}
.site-footer { --fs: clamp(120px, 15vw, 190px); }
.foot-rice { position: absolute; left: 0; right: 0; top: 0; height: calc(var(--fs) * .58); z-index: -1; pointer-events: none; overflow: hidden; }
.foot-rice img { position: absolute; left: var(--x); bottom: 0; height: calc(var(--h) * 1px); width: auto; aspect-ratio: 1; max-width: none; translate: -50% 0; rotate: var(--r); scale: var(--sx) 1; transform-origin: 50% 100%; opacity: .92;
  filter: brightness(0) invert(.17) sepia(1) hue-rotate(125deg) saturate(2.2); }
.foot-scene { position: absolute; left: 0; top: 0; width: 100%; height: var(--fs); z-index: -1; pointer-events: none; display: block; }
.site-footer .foot { background: linear-gradient(145deg, rgba(255,255,255,.92), rgba(255,255,255,.8)); }
.site-footer .foot h4 { color: var(--ink); }
.site-footer .copy { color: rgba(255,255,255,.78); }

/* ---------- Layered wave dividers ---------- */
.divider { position: relative; height: clamp(54px, 8vw, 110px); overflow: hidden; background: var(--from, transparent); margin-top: -1px; pointer-events: none; }
.divider.on-hero { position: absolute; inset: auto 0 -1px 0; z-index: 3; margin: 0; background: none; }
.wl { position: absolute; left: 0; bottom: -1px; width: 200%; height: 100%; display: block; animation: wave-flow var(--sp, 30s) linear var(--dl, 0s) infinite; animation-direction: var(--dir, normal); }
@keyframes wave-flow { to { transform: translateX(-50%); } }
.ds { position: absolute; left: 0; bottom: 0; width: 100%; height: clamp(18px, 2.6vw, 30px); opacity: .55; }
@supports (animation-timeline: view()) {
  .wl {
    animation-name: wave-flow, wave-par;
    animation-duration: var(--sp, 30s), auto;
    animation-timing-function: linear, linear;
    animation-delay: var(--dl, 0s), 0s;
    animation-iteration-count: infinite, 1;
    animation-fill-mode: none, both;
    animation-direction: var(--dir, normal), normal;
    animation-timeline: auto, view();
    animation-range: normal, cover 0% cover 100%;
  }
  @keyframes wave-par { from { translate: 0 var(--p, 8px); } to { translate: 0 calc(var(--p, 8px) * -1); } }
}

/* ---------- Droplet cursor trail ---------- */
.drop { position: fixed; left: 0; top: 0; width: 9px; height: 12px; border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%; pointer-events: none; z-index: 70;
  background: radial-gradient(circle at 35% 30%, #fff, rgba(30,154,214,.5) 60%, rgba(30,154,214,.15)); border: 1px solid rgba(255,255,255,.85); }

@media (max-width: 1240px) { .nav { display: none; } .head-actions { margin-left: auto; } }
@media (max-width: 720px) {
  .hero-copy { border-radius: 30px; }
  .hero-copy .stats { gap: .4rem; }
  .hero-copy .stat { padding: .7rem .5rem; border-radius: 16px; }
  .hero-copy .stat > span { font-size: .72rem; }
  .hero-copy .stat b { font-size: 1.35rem; }
  .s-rice::after { opacity: .3; width: 150px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero h1 .w { animation: none; opacity: 1; filter: none; transform: none; }
  .hero h1 em .w { animation: none; }
  .plant, .wl, .hero-water, .rays, .grains i { animation: none !important; }
  .btn, .p-card { transform: none !important; }
  .drop { display: 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; }
  .bubbles, .grains { display: none; }
  .reveal { animation: none; }
}

@media (max-width: 720px) {
  .s-alt::before { opacity: .5; }
  .site-footer { --fs: 110px; }
  .site-footer { padding-top: 7rem; }
}

/* ---------- Floating contact dock (same as other pages: partials/floating-dock) ---------- */
.floating-dock { position: fixed; right: 24px; bottom: 24px; z-index: 60; display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.dock-btn { position: relative; width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; text-decoration: none; border: 2px solid rgba(255,255,255,.6); box-shadow: 0 8px 24px rgba(10,45,32,.25); transition: transform .25s cubic-bezier(.2,.75,.15,1), box-shadow .25s ease; }
.dock-btn:hover { transform: scale(1.08) translateY(-2px); box-shadow: 0 12px 28px rgba(10,45,32,.35); }
.dock-btn:active { transform: scale(.95); }
.dock-phone { background: linear-gradient(135deg, #1E824C, #165B33); }
.dock-phone::before { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid #266B3F; opacity: .8; animation: dtm-phone-pulse 1.8s infinite ease-out; pointer-events: none; }
@keyframes dtm-phone-pulse { 0% { transform: scale(.95); opacity: .9; } 70% { transform: scale(1.35); opacity: 0; } 100% { transform: scale(1.4); opacity: 0; } }
.dock-zalo { background: linear-gradient(135deg, #0084FF, #0068FF); }
.dock-btn svg { width: 26px; height: 26px; fill: #fff; display: block; }
.dock-tooltip { position: absolute; right: calc(100% + 12px); top: 50%; transform: translateY(-50%); background: rgba(16,45,32,.92); color: #fff; font-size: 12.5px; font-weight: 600; white-space: nowrap; padding: 6px 12px; border-radius: 8px; box-shadow: 0 4px 14px rgba(0,0,0,.15); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.dock-btn:hover .dock-tooltip { opacity: 1; transform: translateY(-50%) translateX(-4px); }
@media (max-width: 768px) {
  .floating-dock { right: 14px; bottom: 20px; gap: 10px; }
  .dock-btn { width: 48px; height: 48px; }
  .dock-btn svg { width: 24px; height: 24px; }
  .dock-tooltip { display: none; }
}
@media (max-width: 720px) { .floating-dock { bottom: calc(84px + env(safe-area-inset-bottom)); } }
@media (prefers-reduced-motion: reduce) { .dock-phone::before { animation: none; } }

/* guard: never allow horizontal page scroll */
html, body { overflow-x: clip; }
