/* ==========================================================================
   Fresh Orchard — Tươi ngon mỗi ngày
   ========================================================================== */

:root {
  --cream: #fbf7ec;
  --cream-2: #f5efdd;
  --white: #fffdf8;
  --green-900: #22391a;
  --green-700: #2f5022;
  --green-500: #4a7a35;
  --gold: #d9a126;
  --gold-dark: #8a6410;     /* đậm hơn cho chữ nhỏ đạt tương phản 4.5:1 */
  --teal: #1e7a8c;
  --coral: #e96a50;
  --facebook: #1877f2;
  --ink: #38352b;
  --muted: #6b6656;        /* đậm hơn để đạt tương phản 4.5:1 trên nền kem */
  --muted-strong: #5c5849;
  --line: #e7dfc9;
  --shadow: 0 10px 30px rgba(47, 80, 34, .10);
  --radius: 18px;
  --font-head: "Playfair Display", "Times New Roman", serif;
  --font-body: "Be Vietnam Pro", "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; overflow-x: clip; background: var(--cream); }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: transparent;   /* nền do .fruit-bg (fixed) cung cấp — hiện xuyên trang */
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* Neo cuộn cho các mục có id — header sticky không che tiêu đề khi bấm anchor */
[id] { scroll-margin-top: 84px; }

/* Skip-link (accessibility) — ẩn tới khi được focus bằng bàn phím */
.skip-link {
  position: fixed; top: -60px; left: 12px; z-index: 200;
  background: var(--green-700); color: #fff; padding: .6rem 1rem;
  border-radius: 0 0 10px 10px; font-weight: 600; transition: top .2s;
}
.skip-link:focus { top: 0; }

/* Vòng focus rõ ràng cho bàn phím */
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

/* ==========================================================================
   Nền trang trí — gradient + trái cây bay (thuần CSS/SVG, opacity thấp)
   ========================================================================== */
.fruit-bg {
  position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(115% 85% at 10% -8%, rgba(217, 161, 38, .12), transparent 55%),
    radial-gradient(95% 80% at 94% 10%, rgba(30, 122, 140, .10), transparent 55%),
    radial-gradient(120% 95% at 50% 114%, rgba(74, 122, 53, .12), transparent 55%),
    var(--cream);
}

.fruit-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.fruit {
  position: absolute; width: 92px; height: 92px; opacity: .075; color: var(--green-500);
  animation: drift 26s ease-in-out infinite;
}
@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(14px, -24px, 0) rotate(7deg); }
}
.fruit--1  { top: 5%;   left: 4%;   width: 118px; height: 118px; color: var(--coral);     opacity: .08; animation-duration: 30s; }
.fruit--2  { top: 12%;  left: 85%;  width: 156px; height: 156px; color: var(--teal);      opacity: .06; animation-duration: 37s; animation-delay: -6s; }
.fruit--3  { top: 24%;  left: 46%;  width: 92px;  height: 92px;  color: var(--gold);      opacity: .06; animation-duration: 28s; animation-delay: -12s; }
.fruit--4  { top: 33%;  left: 9%;   width: 104px; height: 104px; color: var(--coral);     opacity: .07; animation-duration: 33s; animation-delay: -3s; }
.fruit--5  { top: 40%;  left: 78%;  width: 132px; height: 132px; color: var(--green-500); opacity: .08; animation-duration: 40s; animation-delay: -18s; }
.fruit--6  { top: 52%;  left: 30%;  width: 88px;  height: 88px;  color: var(--gold-dark); opacity: .06; animation-duration: 27s; animation-delay: -9s; }
.fruit--7  { top: 58%;  left: 90%;  width: 116px; height: 116px; color: var(--green-500); opacity: .07; animation-duration: 35s; animation-delay: -14s; }
.fruit--8  { top: 66%;  left: 14%;  width: 150px; height: 150px; color: var(--teal);      opacity: .06; animation-duration: 42s; animation-delay: -5s; }
.fruit--9  { top: 72%;  left: 58%;  width: 96px;  height: 96px;  color: var(--coral);     opacity: .07; animation-duration: 29s; animation-delay: -20s; }
.fruit--10 { top: 80%;  left: 82%;  width: 110px; height: 110px; color: var(--gold);      opacity: .07; animation-duration: 32s; animation-delay: -8s; }
.fruit--11 { top: 86%;  left: 38%;  width: 124px; height: 124px; color: var(--green-500); opacity: .06; animation-duration: 38s; animation-delay: -2s; }
.fruit--12 { top: 90%;  left: 6%;   width: 90px;  height: 90px;  color: var(--coral);     opacity: .07; animation-duration: 26s; animation-delay: -16s; }
.fruit--13 { top: 18%;  left: 24%;  width: 84px;  height: 84px;  color: var(--gold);      opacity: .055; animation-duration: 31s; animation-delay: -11s; }
.fruit--14 { top: 47%;  left: 54%;  width: 100px; height: 100px; color: var(--green-500); opacity: .05; animation-duration: 34s; animation-delay: -22s; }

@media (max-width: 640px) {
  /* mobile: giảm số lượng để nhẹ + đỡ rối; ẩn bớt vài trái */
  .fruit { opacity: .06; }
  .fruit--3, .fruit--6, .fruit--9, .fruit--13, .fruit--14 { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .fruit-bg, .fruit { animation: none !important; }
}

img { max-width: 100%; height: auto; display: block; }   /* height:auto để width/height chỉ là gợi ý tỉ lệ (chống méo) */

.container { width: min(1180px, 92%); margin-inline: auto; }

h1, h2, h3 { font-family: var(--font-head); color: var(--green-700); line-height: 1.2; }

h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }

a { color: inherit; text-decoration: none; }

.ic { width: 18px; height: 18px; vertical-align: -4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: .8rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--green-700); color: #fff; box-shadow: 0 6px 18px rgba(47, 80, 34, .3); }
.btn--primary:hover { background: var(--green-900); }
.btn--outline { border-color: var(--green-700); color: var(--green-700); background: transparent; }
.btn--outline:hover { background: var(--green-700); color: #fff; }
.btn--gold { background: var(--gold); color: var(--green-900); box-shadow: 0 6px 18px rgba(217, 161, 38, .35); }
.btn--gold:hover { background: #e7b23a; }
.btn--ghost { border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); }
.btn--block { display: block; width: 100%; }
.btn--sm { padding: .5rem 1rem; font-size: .85rem; }
.btn.is-disabled, .btn:disabled { opacity: .5; pointer-events: none; }
.btn--facebook { background: var(--facebook); color: #fff; display: inline-flex; align-items: center; gap: .5rem; box-shadow: 0 6px 18px rgba(24, 119, 242, .3); }
.btn--facebook:hover { background: #1461c9; }
.btn--facebook svg { flex: none; }

/* ---------- Topbar ---------- */
.topbar { background: var(--green-900); color: #efe9d2; font-size: .82rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .45rem 0; }
.topbar__inner p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar__phone { font-weight: 700; color: var(--gold); white-space: nowrap; }

/* ---------- Header ---------- */
.header {
  position: -webkit-sticky; position: sticky; top: 0; z-index: 60;
  background: rgba(251, 247, 236, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s;
}
.header.is-scrolled { box-shadow: 0 6px 24px rgba(47, 80, 34, .12); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .55rem 0; }

.brand { display: flex; align-items: center; gap: .65rem; }
.brand__logo { height: 52px; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font-family: var(--font-head); font-size: 1.25rem; color: var(--green-700); }
.brand__text small { color: var(--gold-dark); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }

.nav { display: flex; gap: 1.6rem; align-items: center; }
.nav__close {
  display: none; position: absolute; top: 1rem; right: 1.1rem;
  width: 44px; height: 44px; border: none; background: none; cursor: pointer;
  font-size: 1.4rem; color: var(--green-700); line-height: 1; border-radius: 10px;
}
.nav__close:hover { background: var(--cream-2); }
.nav__link { font-weight: 500; font-size: .95rem; color: var(--green-900); position: relative; padding: .3rem 0; }
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
  background: var(--gold); transition: width .25s;
}
.nav__link:hover::after, .nav__link.is-active::after { width: 100%; }

.header__actions { display: flex; align-items: center; gap: .6rem; }

.cart-btn {
  position: relative; background: var(--green-700); color: #fff; border: none;
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; transition: background .2s, transform .2s;
}
.cart-btn:hover { background: var(--green-900); transform: translateY(-2px); }
.cart-btn__count {
  position: absolute; top: -4px; right: -4px; background: var(--coral); color: #fff;
  font-size: .68rem; font-weight: 700; min-width: 19px; height: 19px; border-radius: 999px;
  display: grid; place-items: center; padding: 0 4px; border: 2px solid var(--cream);
}

.burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 24px; height: 2.5px; background: var(--green-700); margin: 5px 0; border-radius: 2px; transition: transform .25s, opacity .25s; }
.burger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(60% 80% at 85% 20%, rgba(217, 161, 38, .10), transparent 60%),
    radial-gradient(50% 70% at 10% 90%, rgba(30, 122, 140, .06), transparent 60%);
  overflow: hidden;
}
.hero__inner {
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center;
  gap: 2.5rem; padding: 3.5rem 0 4rem;
}
.hero__eyebrow { color: var(--gold-dark); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; margin-bottom: .9rem; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 1.1rem; }
.hero h1 em { color: var(--gold); font-style: italic; }
.hero__sub { font-size: 1.05rem; color: var(--muted); max-width: 32rem; margin-bottom: 1.6rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.5rem; }
.hero__badges { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; list-style: none; color: var(--green-700); font-weight: 600; font-size: .9rem; }

/* Hero card-stack (vuốt kiểu Tinder) */
.hero__slider {
  position: relative; aspect-ratio: 4 / 3; margin-top: 8px;
  touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.hero__slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  border-radius: 26px; border: 6px solid #fff; background: var(--cream);
  box-shadow: 0 16px 40px rgba(47, 80, 34, .22);
  opacity: 0; will-change: transform, opacity; -webkit-user-drag: none;
}
html.js .hero__slide:first-of-type { opacity: 1; }   /* hiện ngay ảnh đầu trước khi JS xếp chồng */
.hero__slide.is-top { cursor: grab; }
.hero__slide.is-top:active { cursor: grabbing; }
.hero__dots {
  position: absolute; left: 0; right: 0; bottom: 14px; z-index: 200;
  display: flex; justify-content: center; gap: 8px;
}
.hero__dot {
  width: 9px; height: 9px; padding: 0; border: none; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .6); box-shadow: 0 1px 4px rgba(0, 0, 0, .4);
  transition: background .25s, transform .25s;
}
.hero__dot:hover { background: rgba(255, 255, 255, .9); }
.hero__dot.is-active { background: #fff; transform: scale(1.35); }
html.no-js .hero__slide { opacity: 1; }
html.no-js .hero__slide:not(:first-of-type) { display: none; }
html.no-js .hero__dots { display: none; }
@media (prefers-reduced-motion: reduce) { .hero__slide { transition-duration: .01ms !important; } }

/* ---------- USP ---------- */
.usp { background: rgba(255, 253, 248, .78); border-block: 1px solid var(--line); }
.usp__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; padding: 2.6rem 0; }
.usp__item { text-align: center; padding: .5rem .6rem; }
.usp__icon {
  width: 62px; height: 62px; margin: 0 auto .8rem; border-radius: 50%;
  background: linear-gradient(145deg, #f2ead2, #fbf7ec);
  border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--green-700);
}
.usp__icon svg { width: 30px; height: 30px; }
.usp__item h3 { font-size: 1.08rem; margin-bottom: .35rem; }
.usp__item p { font-size: .88rem; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 4.2rem 0; }
.section--tint { background: rgba(245, 239, 221, .62); }
.section__head { text-align: center; max-width: 44rem; margin: 0 auto 2.6rem; }
.section__eyebrow { color: var(--gold-dark); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; font-size: .78rem; margin-bottom: .5rem; }
.section__eyebrow--light { color: #f3d789; }
.section__eyebrow--gold { color: var(--gold); }
.section__desc { color: var(--muted); margin-top: .7rem; }
.section__note { text-align: center; color: var(--muted); font-size: .88rem; margin-top: 2.2rem; }
.section__note a { color: var(--green-700); }

/* ---------- Products ---------- */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

.product {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: 0 4px 14px rgba(47, 80, 34, .06);
  display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.product:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product__media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; }
.product__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.product:hover .product__media img { transform: scale(1.06); }
.product__badge {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  background: var(--gold); color: var(--green-900);
  font-size: .72rem; font-weight: 700; padding: .28rem .7rem; border-radius: 999px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .15);
}
.product__badge--coral { background: var(--coral); color: #fff; }
.product__body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.product__name { font-size: 1.15rem; margin-bottom: .3rem; }
.product__desc { font-size: .84rem; color: var(--muted); margin-bottom: .7rem; flex: 1; }
.product__price { font-weight: 700; color: var(--green-700); font-size: 1.08rem; margin-bottom: .8rem; }
.product__price small { color: var(--muted); font-weight: 400; font-size: .78rem; }
.product__actions { display: flex; gap: .5rem; }
.product__actions .btn { flex: 1; padding: .55rem .5rem; font-size: .85rem; }

/* ---------- Promo ---------- */
.promo {
  background: linear-gradient(120deg, var(--green-900), var(--green-700) 60%, #3d6a2c);
  color: #f4efdd;
  padding: 4rem 0;
}
.promo__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; }
.promo h2 { color: #fff; margin-bottom: 1rem; }
.promo p { color: #d8d2b8; max-width: 30rem; }
.promo__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.promo__media img {
  border-radius: 20px; box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
  rotate: -2deg; border: 5px solid rgba(255, 255, 255, .15);
}

/* ---------- Fruit menu ---------- */
.menu {
  display: grid; grid-template-columns: 1fr 1fr; gap: .4rem 3rem;
  background: var(--white); border: 1px solid var(--line); border-radius: 24px;
  padding: 2.2rem clamp(1.2rem, 4vw, 3rem);
  box-shadow: 0 4px 18px rgba(47, 80, 34, .06);
}
.menu__item { display: flex; align-items: baseline; gap: .7rem; padding: .85rem 0; border-bottom: 1px dashed var(--line); }
.menu__emoji { font-size: 1.35rem; }
.menu__info { flex: 1; min-width: 0; }
.menu__name { font-weight: 600; color: var(--green-900); }
.menu__origin { display: block; font-size: .78rem; color: var(--muted); }
.menu__dots { flex: 1; border-bottom: 2px dotted var(--line); transform: translateY(-4px); min-width: 20px; }
.menu__price { font-weight: 700; color: var(--gold-dark); white-space: nowrap; }
.menu__price small { display: block; text-align: right; font-weight: 400; color: var(--muted); font-size: .72rem; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.about__text h2 { margin-bottom: 1rem; }
.about__text p { color: var(--muted); }
.about__list { list-style: none; margin: 1.3rem 0 1.8rem; display: grid; gap: .55rem; }
.about__list li { padding-left: 1.6rem; position: relative; font-size: .95rem; }
.about__list li::before { content: "🍃"; position: absolute; left: 0; }
.about__gallery { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; gap: 1rem; }
.about__ph { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); border: 4px solid #fff; }
.about__ph--tall { grid-row: span 2; }
.about__ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.about__ph:hover img { transform: scale(1.05); }

/* ---------- Contact ---------- */
.contact { background: linear-gradient(160deg, var(--green-900), #1d3315); padding: 4.2rem 0; }
.contact h2 { color: #fff; }
.section__head--light { color: #e6e0c8; }
.contact__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.contact__card {
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 18px; padding: 1.5rem 1.2rem; text-align: center; color: #f1ecd8;
  transition: background .25s, transform .25s;
}
.contact__card:hover { background: rgba(255, 255, 255, .14); transform: translateY(-4px); }
.contact__icon { font-size: 1.7rem; display: block; margin-bottom: .5rem; }
.contact__card strong { color: var(--gold); display: block; margin-bottom: .3rem; }
.contact__card p { font-size: .9rem; }

/* ---------- Footer ---------- */
.footer { background: #16240f; color: #b9b39a; font-size: .9rem; }
.footer__inner { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; padding: 3rem 0 2.2rem; }
.footer__brand img { height: 74px; width: auto; margin-bottom: .9rem; }
.footer__brand strong { color: #efe9d2; }
.footer__col h4 { color: var(--gold); font-family: var(--font-head); margin-bottom: .8rem; font-size: 1.05rem; }
.footer__col a, .footer__col span { display: block; padding: .22rem 0; color: #b9b39a; }
.footer__col a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 1rem 0; text-align: center; font-size: .82rem; }

/* ---------- Cart drawer ---------- */
.overlay {
  position: fixed; inset: 0; background: rgba(24, 32, 16, .5); z-index: 90;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.overlay.is-open { opacity: 1; pointer-events: auto; }
/* Menu mobile: lớp phủ trong suốt (bắt chạm-ngoài để đóng) — KHÔNG làm tối nền */
.overlay.is-clear { background: transparent; }

.cart {
  position: fixed; top: 0; right: 0; height: 100dvh; width: min(410px, 100vw);
  background: var(--white); z-index: 100; display: flex; flex-direction: column;
  transform: translateX(105%); visibility: hidden;
  transition: transform .35s cubic-bezier(.22, .8, .3, 1), visibility .35s;
  box-shadow: -12px 0 40px rgba(0, 0, 0, .18);
}
.cart.is-open { transform: translateX(0); visibility: visible; }
.cart__head { display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 1.3rem; border-bottom: 1px solid var(--line); flex: none; }
.cart__head h3 { font-size: 1.25rem; }
.cart__close { background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--muted); width: 44px; height: 44px; border-radius: 10px; }
.cart__close:hover { background: var(--cream-2); }
.cart__step { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.cart__step[hidden] { display: none; }
.cart__items { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 1rem 1.3rem; }
.cart__empty { text-align: center; color: var(--muted); padding: 2.5rem 1rem; }
.cart__empty span { font-size: 2.2rem; display: block; margin-bottom: .6rem; }

.cart-item { display: flex; gap: .9rem; padding: .8rem 0; border-bottom: 1px dashed var(--line); align-items: center; }
.cart-item img { width: 62px; height: 62px; object-fit: cover; border-radius: 12px; }
.cart-item__info { flex: 1; min-width: 0; }
.cart-item__name { font-weight: 600; font-size: .92rem; color: var(--green-900); }
.cart-item__price { font-size: .85rem; color: var(--gold-dark); font-weight: 600; }
.cart-item__qty { display: flex; align-items: center; gap: .35rem; margin-top: .4rem; }
.cart-item__qty button {
  width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--cream); cursor: pointer; font-weight: 700; color: var(--green-700);
  font-size: 1.1rem; line-height: 1; display: grid; place-items: center;
}
.cart-item__qty button:hover { background: var(--cream-2); }
.cart-item__qty span { min-width: 24px; text-align: center; font-weight: 600; }
.cart-item__remove { background: none; border: none; color: var(--coral); cursor: pointer; font-size: 1.05rem; padding: .55rem; margin-left: auto; border-radius: 8px; }
.cart-item__remove:hover { background: rgba(233, 106, 80, .1); }

.cart__foot { border-top: 1px solid var(--line); padding: 1.1rem 1.3rem calc(1.3rem + env(safe-area-inset-bottom)); display: grid; gap: .6rem; background: var(--cream); flex: none; }
.cart__total { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.05rem; gap: .5rem; }
.cart__total small { font-size: .74rem; color: var(--muted); font-weight: 400; }
.cart__total strong { color: var(--green-700); font-size: 1.25rem; white-space: nowrap; }
.cart__hint { font-size: .78rem; color: var(--muted); }
.cart__alt { display: flex; gap: .5rem; }
.cart__alt .btn { flex: 1; }

/* ---------- Order form (bước 2) ---------- */
.order-form { padding: 1.1rem 1.3rem calc(1.4rem + env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; display: grid; gap: .8rem; }
.order-form__back { justify-self: start; background: none; border: none; color: var(--green-700); font-weight: 600; cursor: pointer; padding: .3rem 0; font-size: .9rem; }
.order-form__lead { font-size: .9rem; color: var(--muted); margin-top: -.2rem; }
.field { display: grid; gap: .3rem; }
.field__label { font-size: .85rem; font-weight: 600; color: var(--green-900); }
.field__label b { color: var(--coral); }
.field__label small { color: var(--muted); font-weight: 400; }
.field__input {
  font-family: inherit; font-size: .95rem; color: var(--ink);
  padding: .65rem .8rem; border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--white); width: 100%; transition: border-color .2s;
}
.field__input:focus { outline: none; border-color: var(--green-500); }
.field__input.is-invalid { border-color: var(--coral); background: #fdf3f1; }
textarea.field__input { resize: vertical; min-height: 52px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.order-form__err { color: var(--coral); font-size: .85rem; font-weight: 600; background: #fdf3f1; padding: .5rem .7rem; border-radius: 10px; }
.order-form__total { font-size: .95rem; color: var(--green-900); }
.order-form__total strong { color: var(--green-700); font-size: 1.1rem; }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

/* ---------- Xác nhận (bước 3) ---------- */
.cart__done { padding: 2rem 1.4rem calc(1.4rem + env(safe-area-inset-bottom)); text-align: center; align-content: start; gap: .7rem; overflow-y: auto; }
.cart__done-icon { font-size: 3rem; }
.cart__done h4 { font-size: 1.3rem; color: var(--green-700); font-family: var(--font-head); }
.cart__done-code { font-size: .95rem; color: var(--muted); }
.cart__done-code strong { color: var(--gold-dark); font-size: 1.05rem; letter-spacing: .04em; }
.cart__done-msg { font-size: .9rem; color: var(--ink); background: var(--cream-2); padding: .8rem 1rem; border-radius: 12px; }
.cart__done .cart__alt { margin-top: .3rem; }

/* ---------- Sticky order bar (mobile) ---------- */
.orderbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: none; gap: .5rem; padding: .55rem .8rem calc(.55rem + env(safe-area-inset-bottom));
  background: rgba(251, 247, 236, .96); backdrop-filter: blur(8px);
  border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(47, 80, 34, .1);
  transform: translateY(0); transition: transform .3s ease;
}
.orderbar.is-hidden { transform: translateY(130%); }
.orderbar__btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: .35rem;
  min-height: 46px; border-radius: 12px; font-weight: 600; font-size: .92rem;
  border: none; cursor: pointer; font-family: inherit;
}
.orderbar__btn--call { background: var(--green-700); color: #fff; }
.orderbar__btn--zalo { background: var(--teal); color: #fff; }
.orderbar__btn--cart { background: var(--gold); color: var(--green-900); position: relative; }
.orderbar__count { background: var(--coral); color: #fff; font-size: .72rem; font-weight: 700; min-width: 18px; height: 18px; border-radius: 999px; display: inline-grid; place-items: center; padding: 0 4px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px);
  background: var(--green-900); color: #fff; padding: .75rem 1.4rem; border-radius: 999px;
  font-size: .9rem; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s;
  z-index: 120; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); max-width: 92vw; text-align: center;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Back to top ---------- */
.backtop {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); width: 44px; height: 44px;
  border-radius: 50%; background: var(--gold); color: var(--green-900);
  display: grid; place-items: center; font-weight: 700; font-size: 1.1rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .2); z-index: 50;
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .2s;
}
.backtop.is-show { opacity: 1; pointer-events: auto; }
.backtop:hover { transform: translateY(-3px); }

/* ---------- No-JS fallback ----------
   Ẩn các nút chỉ hoạt động nhờ JS (giỏ hàng, menu, thêm vào giỏ)
   khi trình duyệt tắt JavaScript — nút Zalo/gọi điện vẫn dùng được. */
html.no-js .cart-btn,
html.no-js .burger,
html.no-js .nav__close,
html.no-js [data-add],
html.no-js .orderbar__btn--cart,
html.no-js .backtop { display: none; }
html.no-js .nav { position: static; transform: none; box-shadow: none; height: auto; width: auto; background: transparent; padding: 0; flex-direction: row; flex-wrap: wrap; justify-content: flex-end; gap: .2rem 1rem; }
html.no-js .nav__link { padding: .2rem 0; border-bottom: none; font-size: .88rem; }

/* ---------- Reveal animation ----------
   Chỉ ẩn phần tử khi JS thực sự chạy (html.js) — nếu trình duyệt tắt JS
   (vd. xem nhanh file trên iPhone) nội dung vẫn hiển thị đầy đủ. */
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.22, .8, .3, 1), transform .7s cubic-bezier(.22, .8, .3, 1); }
html.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Hover micro-interactions (tinh tế) */
.usp__icon { transition: transform .3s cubic-bezier(.22, .8, .3, 1), box-shadow .3s, border-color .3s; }
.usp__item:hover .usp__icon { transform: translateY(-5px) rotate(-5deg); box-shadow: 0 10px 22px rgba(47, 80, 34, .14); border-color: var(--gold); }
.menu__item { transition: transform .2s, background .2s; border-radius: 10px; }
.menu__item:hover { transform: translateX(4px); }
.footer__col a { transition: color .2s, transform .2s; }
.footer__col a:hover { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) {
  .usp__item:hover .usp__icon, .menu__item:hover, .footer__col a:hover { transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .products { grid-template-columns: repeat(3, 1fr); }
  .contact__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav {
    position: fixed; top: 0; right: 0; height: 100dvh; width: min(320px, 86vw);
    background: var(--white); flex-direction: column; align-items: stretch; gap: 0;
    padding: 4.6rem 1.8rem calc(2rem + env(safe-area-inset-bottom));
    transform: translateX(105%); visibility: hidden;
    transition: transform .35s cubic-bezier(.22, .8, .3, 1), visibility .35s;
    box-shadow: -16px 0 50px rgba(34, 57, 26, .22); border-left: 1px solid var(--line); z-index: 95;
    overscroll-behavior: contain; overflow-y: auto;
  }
  .nav.is-open { transform: translateX(0); visibility: visible; }
  .nav__close { display: grid; place-items: center; }
  .nav__link { padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .burger { display: block; position: relative; z-index: 96; }

  .hero__inner { grid-template-columns: 1fr; padding: 2.5rem 0 3rem; gap: 2rem; }
  .hero__content { max-width: 42rem; }
  .hero__media { order: -1; }
  .hero__slider { max-width: 520px; margin-inline: auto; }
  .usp__grid { grid-template-columns: repeat(2, 1fr); padding: 2rem 0; }
  .promo__inner { grid-template-columns: 1fr; }
  .promo__text { max-width: 42rem; }
  .promo__media { max-width: 460px; }
  .menu { grid-template-columns: 1fr; max-width: 44rem; margin-inline: auto; }
  .about { grid-template-columns: 1fr; }
  .about__text { max-width: 42rem; }
  .about__gallery { max-width: 560px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .orderbar { display: flex; }
  body { padding-bottom: 66px; }
  .backtop { bottom: calc(76px + env(safe-area-inset-bottom)); }

  .topbar__inner { justify-content: center; }
  .topbar__inner p { display: none; }
  .brand__logo { height: 44px; }
  .brand__text strong { font-size: 1.05rem; }
  .section { padding: 3rem 0; }

  .products { grid-template-columns: repeat(2, 1fr); gap: .8rem; }
  .product__body { padding: .75rem .8rem .9rem; }
  .product__name { font-size: .98rem; }
  .product__desc { display: none; }
  .product__price { font-size: .95rem; margin-bottom: .6rem; }
  .product__actions { flex-direction: column; }

  .usp__grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .usp__item p { display: none; }
  .about__gallery { grid-auto-rows: 140px; }
  .contact__grid { grid-template-columns: 1fr 1fr; gap: .8rem; }
  .contact__card { padding: 1.1rem .8rem; }
  .footer__inner { grid-template-columns: 1fr; gap: 1.6rem; }
  .hero__cta .btn { flex: 1; }
}
