/* =====================================================================
   DODO – Vietnamese Restaurant
   global.css — design tokens, reset, base type, shared header/footer/btn
   Dựng lại sạch từ bản export Figma (giữ đúng màu/spacing/nội dung)
   ===================================================================== */

/* ---- (Tuỳ chọn) Gắn font SVN-Noe Display nếu bạn có file ----
   Thả file vào assets/fonts/ rồi bỏ comment khối dưới.
@font-face {
  font-family: "SVN-Noe Display";
  src: url("../assets/fonts/SVN-NoeDisplay.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
*/

:root {
  /* ---- Brand colours (đúng global.css gốc) ---- */
  --green-900:      #00261f;          /* xanh đậm hơn (hover tab) */
  --green-800:      #00322a;          /* NỀN CHÍNH */
  --green-panel:    rgba(0, 50, 42, .8);  /* panel mờ (card) */
  --cream:          #efd987;          /* VÀNG KEM – nhấn chính */
  --cream-80:       rgba(239, 217, 135, .8);
  --cream-70:       rgba(239, 217, 135, .7);
  --cream-20:       rgba(239, 217, 135, .2); /* viền / divider */
  --gold-hover:     #d6bf6e;          /* hover nút */
  --red:            #ff3539;

  /* alias ngữ nghĩa */
  --bg:        var(--green-800);
  --accent:    var(--cream);
  --line:      var(--cream-20);
  --ink-dark:  var(--green-800);

  /* ---- Typography ---- */
  --font-display: "SVN-Noe Display", "Playfair Display", "Cormorant Garamond", Georgia, serif;
  --font-body:    "DM Sans", system-ui, Arial, sans-serif;

  /* type scale (fluid, ĐÃ CHẶN TRẦN) — max đạt quanh ~1500px rồi giữ nguyên,
     tránh chữ phình to trên màn laptop 14" mở 100% */
  --fs-hero:    clamp(2.25rem, 4.2vw, 4.25rem);  /* 36 → 68 (cap) */
  --fs-h1:      clamp(1.6rem, 2.5vw, 2.55rem);   /* 26 → 41 */
  --fs-h2:      clamp(1.3rem, 1.5vw, 1.45rem);   /* 21 → 23 */
  --fs-lead:    clamp(.95rem, 1vw, 1.18rem);     /* 15 → 19 */
  --fs-nav:     clamp(.9rem, .92vw, 1.05rem);    /* 14 → 17 */
  --fs-18:      1.0625rem;   /* 17 */
  --fs-16:      .9375rem;    /* 15 */
  --fs-15:      .875rem;     /* 14 */

  /* ---- Layout ---- */
  --maxw: 1440px;          /* trần cho màn rất lớn */
  --content: 82%;          /* bề rộng cột nội dung (lề ~9% mỗi bên, bám thiết kế) */
  --gutter: clamp(18px, 4vw, 48px);   /* padding cho các section full-bleed */
  --section-y: clamp(44px, 4.6vw, 84px);
  --radius: 0px;                       /* thiết kế dùng góc vuông */

  --ease: cubic-bezier(.4, .12, .2, 1);
}

/* ===================== Reset ===================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--accent);
  font-family: var(--font-body);
  font-size: var(--fs-16);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; min-width: 0; max-width: 100%; }
ul { list-style: none; padding: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }

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

/* ===================== Helpers ===================== */
.container { width: min(var(--content), var(--maxw)); margin-inline: auto; }
/* Màn nhỏ: dùng gần hết bề ngang, chỉ chừa đệm nhỏ hai bên */
@media (max-width: 768px) {
  .container { width: 100%; padding-inline: clamp(18px, 5vw, 26px); }
}
.display { font-family: var(--font-display); font-weight: 500; line-height: 1.04; letter-spacing: .01em; }
.u-upper { text-transform: uppercase; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Tiêu đề section căn giữa */
.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-h1);
  text-transform: uppercase;
  text-align: center;
  letter-spacing: .015em;
  line-height: 1.05;
}

/* ===================== Buttons ===================== */
.btn {
  --btn-bg: var(--cream);
  --btn-fg: var(--ink-dark);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-body); font-weight: 500; font-size: var(--fs-nav);
  text-transform: uppercase; letter-spacing: .04em;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { --btn-bg: var(--gold-hover); }
.btn img { width: 20px; height: auto; }

/* nút viền (transparent, viền kem) – kèm “khung” đôi như thiết kế */
.btn--outline {
  --btn-bg: transparent; --btn-fg: var(--cream);
  border: 1px solid var(--cream);
  padding: 3px;                      /* khung ngoài */
}
.btn--outline > span {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 100%; min-height: 50px; padding: 0 24px;
  background: var(--cream); color: var(--ink-dark);
  transition: background .25s var(--ease), color .25s var(--ease);
}
.btn--outline:hover > span { background: var(--gold-hover); }

/* nút nền xanh, chữ kem */
.btn--dark { --btn-bg: var(--ink-dark); --btn-fg: var(--cream); }
.btn--dark:hover { --btn-bg: var(--green-900); }

/* ===================== Header ===================== */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;   /* trái | logo | phải */
  grid-template-rows: 76px;              /* giữ header cao cố định, logo nhô xuống dưới */
  align-items: center;
  gap: clamp(16px, 2vw, 32px);
}
.site-header__inner .nav--left  { grid-area: 1 / 1; justify-self: start; }
.site-header__inner .brand      { grid-area: 1 / 2; justify-self: center; }
.site-header__inner .nav--right { grid-area: 1 / 3; justify-self: end; }
/* wrapper: desktop = trong suốt (2 nav thành flex item) / mobile = drawer */
.nav-drawer { display: contents; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 44px); }
.nav a, .nav button { font-weight: 500; font-size: var(--fs-nav); white-space: nowrap; transition: color .2s var(--ease); }
.nav a:hover { color: var(--gold-hover); }

.nav__item { display: inline-flex; align-items: center; gap: 12px; }
.nav__icon {                          /* ô vuông kem chứa icon (Menu / Rezervovať) */
  width: 26px; height: 26px; flex: none;
  background: var(--cream); display: grid; place-items: center;
}
.nav__icon img { width: 16px; height: auto; }

.lang { display: inline-flex; align-items: center; gap: 10px; font-size: var(--fs-16); }
.lang span { width: 1px; height: 20px; background: var(--cream-70); }
.lang button.is-active { color: var(--cream); }
.lang button:not(.is-active) { color: var(--cream-70); }

/* giỏ hàng trên header */
.nav__cart { position: relative; display: inline-flex; align-items: center; }
.nav__cart img { width: 26px; height: auto; transition: transform .2s var(--ease); }
.nav__cart:hover img { transform: translateY(-2px); }
.nav__cart-badge {
  position: absolute; top: -7px; right: -10px;
  min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box;
  display: inline-grid; place-items: center;
  background: var(--red); color: #fff;
  font-family: var(--font-body); font-weight: 700; font-size: .68rem; line-height: 1;
  border-radius: 999px; box-shadow: 0 0 0 2px var(--bg);
}
.nav__cart-badge.pop { animation: cart-pop .32s var(--ease); }
@keyframes cart-pop { 0% { transform: scale(.4); } 55% { transform: scale(1.25); } 100% { transform: scale(1); } }

/* Logo giữa: nằm ở cột giữa của grid, neo lên trên để badge nhô xuống dưới viền header */
.brand {
  align-self: start;
  z-index: 2;
}
.brand__badge {
  width: clamp(70px, 6.4vw, 96px); aspect-ratio: 1;
  background: var(--bg); border-radius: 0 0 999px 999px;
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 8px;
}
.brand__badge img { width: 74%; height: auto; }

/* hamburger (mobile) */
.nav-toggle { display: none; width: 44px; height: 44px; position: relative; z-index: 3; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 9px; width: 26px; height: 2px; background: var(--cream);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { top: -8px; }
.nav-toggle span::after { top: 8px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: translateY(8px) rotate(45deg); }
body.nav-open .nav-toggle span::after  { transform: translateY(-8px) rotate(-45deg); }

/* ===================== Footer ===================== */
.site-footer { margin-top: clamp(40px, 5vw, 80px); padding-bottom: clamp(40px, 5vw, 90px); }

.footer-contacts {
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding-block: clamp(32px, 4vw, 64px);
}
.footer-contacts__col {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 18px; padding-inline: clamp(12px, 2vw, 32px);
  position: relative;
}
.footer-contacts__col + .footer-contacts__col::before {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 1px; background: var(--line);
}
.footer-contacts__icon { height: 56px; display: grid; place-items: center; }
.footer-contacts__icon img { height: 100%; width: auto; }
.footer-contacts__title { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-h2); }
.footer-contacts__text { font-size: var(--fs-18); font-weight: 500; line-height: 1.55; }
.footer-contacts__text a { text-decoration: underline; text-underline-offset: 3px; }

.footer-nav {
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: flex-start; flex-wrap: wrap;
  gap: 16px 32px; padding-block: clamp(20px, 2.4vw, 34px);
  font-weight: 500; font-size: var(--fs-nav);
}
.footer-nav a:hover { color: var(--gold-hover); }
.footer-nav .lang { margin-left: auto; }
/* hai liên kết pháp lý dồn về bên phải (giống vị trí SK|EN trước đây) */
.footer-nav a[href="zasady-ochrany.html"] { margin-left: auto; }

.footer-logotype { padding-top: clamp(8px, 1.5vw, 24px); }
.footer-logotype img { width: 100%; height: auto; display: block; }

/* ---- responsive header/footer ---- */
@media (max-width: 1024px) {
  .footer-contacts { grid-template-columns: repeat(2, 1fr); gap: 40px 0; }
  .footer-contacts__col:nth-child(odd)::before { display: none; }
  .footer-contacts__col:nth-child(3)::before,
  .footer-contacts__col:nth-child(4)::before { display: block; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; order: 3; margin-left: auto; position: relative; z-index: 70; }
  .site-header__inner { display: flex; align-items: center; justify-content: flex-start; gap: 0; grid-template-rows: none; }

  .brand { position: relative; transform: none; order: 1; align-self: center; z-index: 70; }
  .brand__badge { border-radius: 50%; padding-top: 0; align-items: center; width: 56px; }

  /* ---- Menu mobile: phủ TOÀN màn hình, không có icon ---- */
  .nav-drawer {
    position: fixed; inset: 0;
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
    background: var(--green-900);
    padding: clamp(96px, 18vw, 120px) var(--gutter) clamp(28px, 7vw, 48px);
    transform: translateY(-100%); transition: transform .42s var(--ease);
    z-index: 58; overflow-y: auto;
  }
  body.nav-open .nav-drawer { transform: translateY(0); }
  body.nav-open { overflow: hidden; }                 /* khoá cuộn nền khi mở menu */

  .nav { flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; }
  .nav a, .nav button {
    font-family: var(--font-display); font-weight: 500;
    font-size: clamp(1.6rem, 7vw, 2.1rem); padding: 12px 0; line-height: 1.15;
  }
  .nav a:hover { color: var(--gold-hover); }
  .nav__item { width: 100%; }
  .nav__icon { display: none; }                        /* bỏ icon cạnh Menu / Rezervovať */
  .lang { padding: 22px 0 4px; font-size: 1.2rem; }
  .nav__cart { margin-top: 6px; }
  .nav__cart img { width: 30px; }
}

@media (max-width: 560px) {
  .footer-contacts { grid-template-columns: 1fr; }
  .footer-contacts__col::before { display: none !important; }
  .footer-contacts__col { padding-block: 8px; }
  .footer-nav { justify-content: center; }
  .footer-nav .lang { margin-left: 0; width: 100%; justify-content: center; }
  .footer-nav a[href="zasady-ochrany.html"] { margin-left: 0; }
}

/* =====================================================================
   COMPONENT DÙNG CHUNG cho nhiều trang
   ===================================================================== */

/* ---- Page hero (Menu / O nás / Kontakt) ---- */
.page-hero {
  position: relative; isolation: isolate;
  min-height: clamp(380px, 34vw, 560px);
  display: grid; place-items: center; text-align: center;
  padding: clamp(48px, 7vw, 110px) var(--gutter);
}
.page-hero__bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(1.12) saturate(1.02); }
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0,28,22,.22) 0%, rgba(0,28,22,.30) 100%);
}
.page-hero__inner { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: clamp(20px, 4vw, 80px); }
.page-hero__flank { font-family: var(--font-body); font-size: var(--fs-lead); color: var(--cream); white-space: nowrap; text-shadow: 0 1px 10px rgba(0,20,15,.45); }
.page-hero__title { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-hero); line-height: 1; text-transform: uppercase; color: var(--cream); text-shadow: 0 2px 18px rgba(0,20,15,.4); }
.page-hero__welcome { margin-top: clamp(18px, 2vw, 28px); max-width: 46ch; font-size: var(--fs-lead); color: var(--cream); text-shadow: 0 1px 10px rgba(0,20,15,.5); }
@media (max-width: 700px) {
  .page-hero__flank { display: none; }
}

/* ---- Stepper số lượng (− n +) ---- */
.stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--cream); height: 44px; }
.stepper button {
  width: 42px; display: grid; place-items: center;
  font-size: 1.25rem; line-height: 1; color: var(--cream);
  transition: background .18s var(--ease), color .18s var(--ease);
}
.stepper button:hover { background: var(--cream); color: var(--ink-dark); }
.stepper__value { min-width: 44px; display: grid; place-items: center; font-weight: 500; border-inline: 1px solid var(--cream); }

/* biến thể trên nền kem (giỏ hàng / platba) */
.stepper--on-cream { border-color: var(--ink-dark); color: var(--ink-dark); }
.stepper--on-cream button { color: var(--ink-dark); }
.stepper--on-cream button:hover { background: var(--ink-dark); color: var(--cream); }
.stepper--on-cream .stepper__value { border-color: var(--ink-dark); }

/* thanh số lượng full-width trong thẻ món (trạng thái đã thêm vào giỏ) — dùng cho cả Home + Menu */
.dish__qty { display: block; }
.stepper--full {
  width: 100%; height: 56px; border: 0; border-top: 1px solid var(--cream);
  display: grid; grid-template-columns: 1fr 1fr 1fr;
}
.stepper--full button { width: 100%; height: 100%; }
.stepper--full .stepper__value { width: 100%; border-inline: 1px solid var(--cream); }

/* ---- nút icon vuông (trash…) ---- */
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; transition: opacity .2s var(--ease); }
.icon-btn:hover { opacity: .7; }
.icon-btn img { width: 22px; height: auto; }

/* ---- Card món (.dish) dùng chung Home + Menu ---- */
.dish {
  border: 1px solid var(--cream);
  display: flex; flex-direction: column; background: transparent;
}
.dish__img { aspect-ratio: 4 / 3; overflow: hidden; }
.dish__img img { width: 100%; height: 100%; object-fit: cover; }
.dish__info {
  background: var(--green-panel); backdrop-filter: blur(12px);
  padding: clamp(18px, 1.6vw, 26px);
  display: flex; flex-direction: column; gap: 8px; flex: 1;
}
.dish__row { display: flex; align-items: baseline; justify-content: space-between; gap: 4px 12px; flex-wrap: wrap; }
.dish__name { font-weight: 700; font-size: var(--fs-18); white-space: nowrap; }
.dish__price { font-weight: 700; font-size: var(--fs-18); white-space: nowrap; }
.dish__desc { font-size: var(--fs-16); color: var(--cream-80); }
.dish__cta {
  position: relative;
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  min-height: 56px; font-weight: 500; text-transform: uppercase; letter-spacing: .04em;
  border-top: 1px solid var(--cream);
  color: var(--cream); transition: background .2s var(--ease), color .2s var(--ease);
}
.dish__cta img { width: 20px; }
.dish__cta:hover { background: var(--cream); color: var(--ink-dark); }
.dish__cta::after {
  content: ""; position: absolute; top: 50%; right: clamp(20px, 3vw, 34px);
  width: 22px; height: 16px; pointer-events: none;
  background: url("../assets/arrow-cta.png") no-repeat center / contain;
  opacity: 0; transform: translateY(-50%) translateX(-8px);
  transition: opacity .22s var(--ease), transform .22s var(--ease);
}
.dish__cta:hover::after { opacity: 1; transform: translateY(-50%) translateX(0); }

/* ---- Chip / tab danh mục dùng chung ---- */
.tab {
  min-height: 46px; padding: 0 23px;
  border: 1px solid transparent;
  font-weight: 500; font-size: var(--fs-16); text-transform: uppercase; letter-spacing: .03em;
  color: var(--cream-70);
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.tab:hover { color: var(--cream); }
.tab.is-active { color: var(--cream); border-color: var(--cream); }

/* =====================================================================
   SECTION DÙNG CHUNG nhiều trang (Features / Reserve / Map / Contact)
   ===================================================================== */
.features { padding-block: var(--section-y); }
.features__title { margin-bottom: clamp(40px, 4.5vw, 84px); }
.features__grid {
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding-top: clamp(36px, 4vw, 64px);
}
.feature { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; padding-inline: clamp(14px, 2vw, 40px); }
.feature + .feature::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 1px; background: var(--line); }
.feature__icon { height: clamp(82px, 7vw, 127px); display: grid; place-items: center; }
.feature__icon img { height: 100%; width: auto; }
.feature__title { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-h2); white-space: nowrap; }
.feature__text { font-size: var(--fs-16); max-width: 30ch; }

.reserve { position: relative; isolation: isolate; display: grid; place-items: center; padding: clamp(48px, 6vw, 110px) var(--gutter); }
.reserve__bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.reserve__bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(16px); transform: scale(1.08); }
.reserve::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(0,38,31,.45); }
.reserve__card { width: min(760px, 100%); background: var(--cream); color: var(--ink-dark); border: 2px solid var(--cream); padding: 8px; }
.reserve__inner { border: 1px solid rgba(0,50,42,.35); text-align: center; padding: clamp(34px, 4vw, 64px) clamp(24px, 4vw, 72px); display: flex; flex-direction: column; align-items: center; gap: clamp(18px, 2vw, 28px); }
.reserve__sign { width: clamp(140px, 14vw, 210px); }
.reserve__title { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-h1); text-transform: uppercase; }
.reserve__text { font-size: var(--fs-lead); max-width: 42ch; }
.reserve__card .btn--dark { min-width: 316px; }

.map { padding-block: clamp(48px, 6vw, 96px); }
.map__frame { overflow: hidden; }
.map__frame img { width: 100%; height: clamp(320px, 38vw, 720px); object-fit: cover; }

.contact-heading { padding-block: clamp(24px, 3vw, 48px) clamp(8px, 2vw, 32px); }
.contact-heading h2 { font-size: var(--fs-h1); }

@media (max-width: 1024px) {
  .features__grid { grid-template-columns: repeat(2, 1fr); gap: 48px 0; }
  .feature:nth-child(odd)::before { display: none; }
}
@media (max-width: 560px) {
  .features__grid { grid-template-columns: 1fr; gap: 40px; }
  .feature::before { display: none !important; }
  .feature__title { white-space: normal; }
  .reserve__card .btn--dark { min-width: 0; width: 100%; }
}

/* ---- Thanh mã giảm giá (dùng chung Košík + Platba) ---- */
.promo {
  display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: stretch;
  border: 1px solid rgba(0,50,42,.4); height: 60px;
}
.promo__icon { display: grid; place-items: center; padding-inline: 16px; }
.promo__icon img { width: 22px; }
.promo__input { border: 0; outline: none; -webkit-appearance: none; appearance: none; background: transparent; color: var(--ink-dark); font: inherit; padding: 0 6px; }
.promo__input::placeholder { color: rgba(0,50,42,.55); }
.promo__btn {
  padding: 0 28px; background: rgba(0,50,42,.1); color: rgba(0,50,42,.7);
  font-weight: 500; transition: background .2s var(--ease), color .2s var(--ease);
}
.promo__btn:hover { background: var(--ink-dark); color: var(--cream); }

/* =====================================================================
   LIGHTBOX (xem ảnh lớn — dùng cho trang Galléria và gallery trang chủ)
   ===================================================================== */
.gal__item, .gallery__track figure { cursor: zoom-in; }

.lightbox {
  position: fixed; inset: 0; z-index: 120;
  display: none; place-items: center;
  background: rgba(0, 20, 15, .93); backdrop-filter: blur(4px);
  padding: clamp(16px, 4vw, 56px);
}
.lightbox.is-open { display: grid; }
.lightbox__img {
  max-width: min(1100px, 92vw); max-height: 86vh;
  width: auto; height: auto; object-fit: contain;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .55);
  animation: lb-in .25s var(--ease);
}
@keyframes lb-in { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }

.lightbox__close, .lightbox__nav {
  position: absolute; display: grid; place-items: center;
  width: 54px; height: 54px;
  background: var(--cream); color: var(--ink-dark);
  font-size: 1.5rem; line-height: 1;
  transition: background .2s var(--ease);
}
.lightbox__close:hover, .lightbox__nav:hover { background: var(--gold-hover); }
.lightbox__close { top: clamp(14px, 3vw, 28px); right: clamp(14px, 3vw, 28px); }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: clamp(10px, 2vw, 28px); }
.lightbox__nav--next { right: clamp(10px, 2vw, 28px); }
.lightbox__counter {
  position: absolute; bottom: clamp(14px, 3vw, 28px); left: 50%; transform: translateX(-50%);
  color: var(--cream); font-size: .95rem; letter-spacing: .08em;
}
@media (max-width: 560px) {
  .lightbox__close, .lightbox__nav { width: 44px; height: 44px; font-size: 1.25rem; }
}

/* =====================================================================
   AOS-lite: hiệu ứng xuất hiện khi cuộn (dùng cho mọi trang)
   ===================================================================== */
html.aos-ready [data-aos] {
  opacity: 0; transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}
html.aos-ready [data-aos="fade"]       { transform: none; }
html.aos-ready [data-aos="fade-left"]  { transform: translateX(34px); }
html.aos-ready [data-aos="fade-right"] { transform: translateX(-34px); }
html.aos-ready [data-aos="zoom"]       { transform: scale(.93); }
html.aos-ready [data-aos].aos-in       { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html.aos-ready [data-aos] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* =====================================================================
   MINI-CART (trượt từ phải)
   ===================================================================== */
.minicart-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,16,12,.55); backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s var(--ease);
}
.minicart-overlay.is-open { opacity: 1; visibility: visible; }

.minicart {
  position: fixed; top: 0; right: 0; height: 100%;
  width: min(420px, 100%); z-index: 101;
  background: var(--green-900); border-left: 1px solid var(--line);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .38s var(--ease);
  box-shadow: -20px 0 60px rgba(0,0,0,.35);
}
.minicart.is-open { transform: none; }
body.mc-open { overflow: hidden; }

.minicart__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(20px,4vw,26px); border-bottom: 1px solid var(--line); flex: none;
}
.minicart__head h3 { font-family: var(--font-display); font-size: 1.4rem; color: var(--cream); }
.minicart__close { width: 40px; height: 40px; color: var(--cream); font-size: 1.25rem; transition: color .2s var(--ease); }
.minicart__close:hover { color: var(--gold-hover); }

.minicart__body { flex: 1; overflow-y: auto; padding: 6px clamp(20px,4vw,26px); }
.minicart__empty { text-align: center; color: rgba(245,245,230,.7); padding: 48px 0; }

.mc-item { display: flex; align-items: center; gap: 14px; padding: 18px 0; border-bottom: 1px dotted rgba(232,212,123,.28); }
.mc-item__img { width: 72px; height: 72px; object-fit: cover; object-position: center; flex: none; align-self: center; }
.mc-item__main { flex: 1; min-width: 0; }
.mc-item__top { display: flex; justify-content: space-between; gap: 10px; }
.mc-item__name { color: var(--cream); font-weight: 600; line-height: 1.3; }
.mc-item__desc { color: rgba(245,245,230,.6); font-size: .82rem; margin-top: 2px; }
.mc-item__remove { flex: none; color: var(--red); font-size: .9rem; width: 26px; height: 26px; transition: opacity .2s var(--ease); }
.mc-item__remove:hover { opacity: .7; }
.mc-item__bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; gap: 10px; }
.mc-stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); height: 32px; }
.mc-stepper button { width: 30px; height: 100%; color: var(--cream); font-size: 1rem; transition: background .15s var(--ease); }
.mc-stepper button:hover { background: rgba(232,212,123,.12); }
.mc-stepper span { min-width: 34px; text-align: center; color: var(--cream); font-size: .92rem; }
.mc-item__price { color: var(--cream); font-weight: 700; white-space: nowrap; }

.minicart__foot { flex: none; padding: 20px clamp(20px,4vw,26px) clamp(22px,4vw,28px); border-top: 1px solid var(--line); display: grid; gap: 12px; }
.minicart__total { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.05rem; color: var(--cream); margin-bottom: 4px; }
.minicart__total strong { font-size: 1.25rem; }
.minicart__foot .btn { width: 100%; text-align: center; }

/* =====================================================================
   SweetAlert2 — theme DODO (toast góc phải trên)
   ===================================================================== */
.dodo-swal.swal2-popup {
  background: var(--green-900); color: var(--cream);
  border: 1px solid var(--line); border-radius: 0;
  box-shadow: 0 16px 44px rgba(0,0,0,.45);
  font-family: var(--font-body); padding: 15px 18px;
}
.dodo-swal .swal2-title { color: var(--cream); font-size: 1rem; font-weight: 600; font-family: var(--font-body); margin: 0; padding: 0; text-align: left; }
.dodo-swal .swal2-html-container { color: rgba(245,245,230,.78); font-size: .85rem; margin: 3px 0 0; text-align: left; }
.dodo-swal .swal2-timer-progress-bar { background: var(--cream); }
.dodo-swal.swal2-icon-success .swal2-success-ring { border-color: rgba(232,212,123,.45); }
.dodo-swal .swal2-success-line-tip, .dodo-swal .swal2-success-line-long { background-color: var(--cream); }
.dodo-swal .swal2-success-circular-line-left,
.dodo-swal .swal2-success-circular-line-right,
.dodo-swal .swal2-success-fix { background-color: var(--green-900); }
.dodo-swal.swal2-icon-error .swal2-error { border-color: rgba(193,58,58,.5); }
.dodo-swal .swal2-x-mark-line-left, .dodo-swal .swal2-x-mark-line-right { background-color: var(--red); }
.dodo-swal .swal2-icon { margin: 0 14px 0 0; }

/* =====================================================================
   BỔ SUNG: nút giỏ mobile · trạng thái form · món hết hàng/tạm ngừng
   ===================================================================== */

/* ---- Nút giỏ hàng luôn hiện trên header (chỉ mobile) ---- */
.nav__cart--mobile { display: none; }
@media (max-width: 860px) {
  .nav__cart--mobile {
    display: inline-flex; order: 2; margin-left: auto;
    position: relative; z-index: 70;
  }
  .nav__cart--mobile img { width: 28px; }
  .nav-toggle { margin-left: 14px; }       /* chừa khoảng cách với nút giỏ */
  .nav-drawer .nav__cart { display: none; } /* giỏ trong menu hamburger là thừa */
}

/* ---- Thông báo lỗi form + ô nhập không hợp lệ ---- */
.field-error {
  display: block; color: var(--red); font-size: .8rem; line-height: 1.3;
  margin-top: 6px;
}
.field.is-invalid,
.field--button.is-invalid { border-color: var(--red); }
.field.is-invalid:focus-visible { outline-color: var(--red); }
.promo__input.is-invalid { outline: 1px solid var(--red); outline-offset: -1px; }
.promo__input.is-invalid::placeholder { color: var(--red); }
.check input.is-invalid { outline: 2px solid var(--red); outline-offset: 2px; }

/* ---- Món hết hàng / tạm ngừng ---- */
.dish--unavailable .dish__img { position: relative; }
.dish--unavailable .dish__img img { filter: grayscale(.55) brightness(.85); }
.dish--unavailable .dish__name,
.dish--unavailable .dish__price { color: var(--cream-70); }
.dish__cta--disabled {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  min-height: 56px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
  font-size: var(--fs-15);
  border-top: 1px solid var(--cream-20);
  background: rgba(239, 217, 135, .05);
  color: var(--cream-70); cursor: not-allowed; pointer-events: none;
}
.dish--unavailable[data-status="soldout"] .dish__cta--disabled { color: var(--red); }

/* ---- Tạm ẩn bộ chuyển ngôn ngữ SK|EN trên header (giữ nguyên trong code) ---- */
.site-header .lang { display: none; }
