/* ───────────── BIẾN HỆ THỐNG ───────────── */
:root {
  --gold: #c5a059;
  --gold-pale: rgba(197,160,89,0.12);
  --gold-line: rgba(197,160,89,0.3);
  --bg: #090909;
  --bg2: #101010;
  --bg3: #161616;
  --text: #f0ece4;
  --muted: #7a7060;
  --font-display: 'Cormorant Garamond', serif;
  --font-logo: 'Cinzel', serif;
  --font-body: 'Montserrat', sans-serif;
}
 
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { overflow-x: hidden; max-width: 100%; }
 
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
  max-width: 100%;
  position: relative;
}
 

/* Nút ngôn ngữ */
.lang-switcher-nav {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-left: 10px;
}
 
.btn-lang {
  background: transparent;
  border: 1px solid rgba(197,160,89,0.5);
  color: rgba(240,236,228,0.8);
  padding: 6px 14px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  border-radius: 30px;
  transition: all 0.3s ease;
}
 
.btn-lang:hover, .btn-lang.active-lang {
  background: var(--gold);
  color: #000;
  border-color: var(--gold);
}
 
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--gold);
  cursor: pointer;
  font-size: 28px;
  position: relative; /* Đảm bảo nó có vị trí */
  z-index: 1001;      /* Cao hơn nav-links (999) */
}
.menu-toggle * {
  pointer-events: none;
}
/* ───────────── HERO ───────────── */
.menu-hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
 
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Đảm bảo video tự co giãn phủ kín khung wrap mà không biến dạng */
  z-index: 1;        /* Nằm dưới phần text hero-body */
}
 
.hero-body {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 8% 80px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: flex-end;
  gap: 40px;
}
 
.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
 
.hero-eyebrow::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--gold);
}
 
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(64px, 9vw, 120px);
  font-weight: 300;
  line-height: 0.9;
  color: var(--text);
  letter-spacing: -1px;
}
 
.hero-title em {
  font-style: italic;
  color: var(--gold);
}
 
.hero-subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 18px;
  color: var(--muted);
  margin-top: 24px;
  max-width: 440px;
}
 
.hero-scroll {
  writing-mode: vertical-rl;
  font-size: 9px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 8px;
}
 
.hero-scroll::after {
  content: '';
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--muted), transparent);
}
 
/* ───────────── MAIN LAYOUT ───────────── */
.page-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
  background: var(--bg);
  max-width: 100%;
  overflow-x: hidden;
}
 
/* ───────────── SIDEBAR ───────────── */
.sidebar {
  position: sticky;
  top: 90px;
  height: calc(100vh - 90px);
  overflow-y: auto;
  padding: 60px 32px 60px 8%;
  border-right: 1px solid rgba(197,160,89,0.08);
  display: flex;
  flex-direction: column;
  gap: 48px;
  min-width: 0;
}
 
.sidebar::-webkit-scrollbar { width: 3px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--gold-line); }
 
.sidebar-section-label {
  font-size: 9px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}
 
.search-wrap {
  position: relative;
}
 
.search-wrap input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(197,160,89,0.25);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 13px;
  padding: 10px 32px 10px 0;
  outline: none;
  transition: border-color 0.3s;
  letter-spacing: 0.5px;
}
 
.search-wrap input::placeholder { color: var(--muted); }
.search-wrap input:focus { border-color: var(--gold); }
 
.search-wrap .fa-search {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 12px;
  transition: color 0.3s;
}
 
.search-wrap input:focus ~ .fa-search { color: var(--gold); }
 
.filter-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
 
.filter-list li button {
  width: 100%;
  background: none;
  border: none;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: left;
  padding: 10px 0;
  cursor: pointer;
  transition: all 0.25s;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid transparent;
}
 
.filter-list li button .count {
  font-size: 10px;
  color: rgba(197,160,89,0.3);
  transition: color 0.25s;
}
 
.filter-list li button:hover { color: var(--text); }
 
.filter-list li button.active {
  color: var(--gold);
  border-bottom-color: rgba(197,160,89,0.2);
}
 
.filter-list li button.active .count { color: var(--gold); }
 
.sidebar-divider {
  width: 30px;
  height: 1px;
  background: var(--gold-line);
}
 
/* ───────────── CONTENT AREA ───────────── */
.content-area {
  padding: 60px 8% 100px 48px;
  min-width: 0;
  overflow-x: hidden;
}
 
.content-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(197,160,89,0.1);
}
 
.content-header .active-label {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 36px;
  font-weight: 300;
  color: var(--text);
}
 
.content-header .result-count {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
}
 
/* ───────────── GRID ───────────── */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 2px;
}
 
.menu-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 3/4;
  background: var(--bg3);
  display: block;
}
 
/* ── Scroll reveal ── */
.menu-card {
  opacity: 0;
  transform: translateY(40px) scale(0.97);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.menu-card.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.menu-card.show-animation { animation: none; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
 
.card-img {
  position: absolute;
  inset: 0;
  background: var(--bg3);
  overflow: hidden;
}
 
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25,0.46,0.45,0.94), filter 0.6s ease;
  filter: brightness(0.85) saturate(0.7);
}
 
.menu-card:hover .card-img img {
  transform: scale(1.08);
  filter: brightness(0.6) saturate(0.5);
}
 
.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9,9,9,0.92) 0%, rgba(9,9,9,0.4) 50%, transparent 100%);
  z-index: 1;
}
 
.card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 24px;
  z-index: 2;
  transition: transform 0.4s ease;
}
 
.card-cat {
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.35s ease 0.05s;
}
 
.menu-card:hover .card-cat {
  opacity: 1;
  transform: translateY(0);
}
 
.card-name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 8px;
}
 
.card-desc {
  font-size: 11px;
  line-height: 1.7;
  color: rgba(240,236,228,0.5);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 0;
  margin-bottom: 0;
}
 
.menu-card:hover .card-desc {
  max-height: 80px;
  opacity: 1;
  margin-bottom: 14px;
}
 
.card-price-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
 
.card-price {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.5px;
}
 
.card-price-old {
  font-size: 13px;
  color: var(--muted);
  text-decoration: line-through;
}
 
.card-discount-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 3;
  background: var(--gold);
  color: #000;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 10px;
}
 
.card-no-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  background: var(--bg3);
}
 
/* Empty state */
.empty-msg {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 0;
}
 
.empty-msg p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 28px;
  font-weight: 300;
  color: var(--muted);
}
 
/* ───────────── FOOTER CTA ───────────── */
.cta-section {
  background: var(--bg2);
  border-top: 1px solid rgba(197,160,89,0.1);
  padding: 100px 8%;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
}
 
.cta-text h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 12px;
}
 
.cta-text h2 em {
  font-style: italic;
  color: var(--gold);
}
 
.cta-text p {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 1px;
}
 
.btn-primary-gold {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 18px 48px;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  transition: all 0.35s ease;
  white-space: nowrap;
  display: inline-block;
}
 
.btn-primary-gold:hover {
  background: var(--gold);
  color: #000;
}
 
/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — menuStyle.css
   Breakpoints: 1280 | 1024 | 900 | 768 | 560 | 480 | 360
   ═══════════════════════════════════════════════════════════ */

/* ── LG — Wide desktop (≤ 1280px) ── */
@media (max-width: 1280px) {
  .hero-title { font-size: clamp(56px, 7vw, 100px); }
  .hero-body { padding: 0 6% 72px; }
  .sidebar { padding: 60px 28px 60px 6%; }
  .content-area { padding: 60px 6% 100px 40px; }
}

/* ── MD — Laptop / small desktop (≤ 1024px) ── */
@media (max-width: 1024px) {
  .page-layout { grid-template-columns: 220px 1fr; }

  .sidebar {
    padding: 48px 20px 48px 5%;
    gap: 36px;
  }

  .menu-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 2px; }

  .hero-title { font-size: clamp(48px, 6.5vw, 88px); }
  .hero-body { padding: 0 5% 64px; gap: 28px; }
  .cta-section { padding: 80px 6%; gap: 32px; }
}

/* ── SM — Tablet landscape & large tablet portrait (≤ 900px) ── */
@media (max-width: 900px) {
  /* Nav: hamburger */

nav {
  padding: 0 5% !important;
  height: 72px !important;
  background: rgba(9,9,9,0.85) !important;
  backdrop-filter: blur(12px);
  position: relative;   /* ← thêm dòng này */
  z-index: 1002;        /* ← thêm dòng này, cao hơn nav-links */
}

  .menu-toggle { display: block; }

  .nav-links {
    position: fixed;
    top: 0; 
    right: -100%; /* Đang ẩn ở bên phải */
    width: 72%; 
    height: 100vh;
    background: rgba(9,9,9,0.98);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    transition: right 0.4s cubic-bezier(0.23,1,0.32,1);
    display: flex;
    z-index: 999;
    border-left: 1px solid rgba(197,160,89,0.1);
    box-shadow: -8px 0 32px rgba(0,0,0,0.6);
    padding-top: 72px;
    z-index: 999;
    transition: right 0.4s ease;
  }

  .nav-links.active { right: 0; }
  .nav-links.active {
    right: 0 !important; /* Đẩy menu vào lại màn hình */
  }
  .nav-links a { font-size: 15px !important; letter-spacing: 2px; }

  /* Layout: sidebar trên, content dưới */
  .page-layout { grid-template-columns: 1fr; }

  .sidebar {
    position: static;
    height: auto;
    padding: 36px 5% 32px;
    border-right: none;
    border-bottom: 1px solid rgba(197,160,89,0.08);
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
    align-items: flex-start;
  }

  .sidebar > div { flex: 1; min-width: 200px; }
  .sidebar-divider { display: none; }

  .filter-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .filter-list li button {
    padding: 7px 16px;
    border: 1px solid rgba(197,160,89,0.2);
    border-radius: 2px;
    font-size: 10px;
    border-bottom: 1px solid rgba(197,160,89,0.2);
    width: auto;
    justify-content: flex-start;
    gap: 8px;
  }

  .filter-list li button.active {
    background: var(--gold-pale);
    border-color: var(--gold);
  }

  .content-area { padding: 40px 5% 80px; min-width: 0; }

  /* Hero */
  .hero-title { font-size: clamp(44px, 8vw, 80px); }
  .hero-body { padding: 0 5% 60px; grid-template-columns: 1fr auto; gap: 24px; }
  .hero-subtitle { font-size: 16px; max-width: 360px; }

  /* Grid: 2 columns */
  .menu-grid { grid-template-columns: repeat(2, 1fr); gap: 2px; }
  .menu-card { aspect-ratio: 3/4; }

  /* CTA */
  .cta-section {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    padding: 80px 5%;
    gap: 32px;
  }

  .content-header .active-label { font-size: 28px; }
}

/* ── SM — Tablet portrait (≤ 768px) ── */
@media (max-width: 768px) {
  nav { height: 68px !important; }
  .logo { font-size: 18px; letter-spacing: 1.5px; }
  .nav-links { width: 78% !important; gap: 24px !important; }

  .menu-hero { height: 90vh; }
  .hero-title { font-size: clamp(40px, 9vw, 68px); }
  .hero-eyebrow { font-size: 9px; letter-spacing: 4px; }
  .hero-subtitle { font-size: 15px; margin-top: 18px; max-width: 320px; }
  .hero-body { padding: 0 5% 52px; gap: 20px; }

  .sidebar { padding: 28px 5% 24px; gap: 20px; }
  .sidebar > div { min-width: 160px; }

  .content-area { padding: 32px 5% 64px; min-width: 0; }
  .content-header { margin-bottom: 32px; padding-bottom: 18px; }
  .content-header .active-label { font-size: 26px; }
  .content-header .result-count { font-size: 9px; }

  .menu-grid { grid-template-columns: repeat(2, 1fr); gap: 2px; }
  .card-name { font-size: 20px; }

  .cta-section { padding: 70px 5%; }
  .cta-text h2 { font-size: clamp(26px, 5vw, 42px); }
}

/* ── XS — Mobile landscape / large phone (≤ 560px) ── */
@media (max-width: 560px) {
  nav { height: 64px !important; padding: 0 4% !important; }
  .logo { font-size: 17px; letter-spacing: 1px; }
  .menu-toggle span { font-size: 26px; }
  .nav-links { width: 85% !important; gap: 22px !important; padding-top: 60px !important; }
  .nav-links a { font-size: 14px !important; letter-spacing: 1.5px !important; }
  .btn-lang { padding: 5px 11px; font-size: 10px; }

  .menu-hero { height: 85vh; }
  .hero-title { font-size: clamp(36px, 10vw, 58px); }
  .hero-body { grid-template-columns: 1fr; padding: 0 5% 48px; }
  .hero-scroll { display: none; }
  .hero-subtitle { font-size: 14px; max-width: 100%; margin-top: 14px; }
  .hero-eyebrow { font-size: 8px; margin-bottom: 14px; }

  .sidebar {
    padding: 24px 4% 20px;
    gap: 16px;
    flex-direction: column;
  }

  .sidebar > div { min-width: unset; width: 100%; }

  .filter-list { gap: 6px; }
  .filter-list li button { padding: 7px 14px; font-size: 10px; }

  .content-area { padding: 28px 4% 60px; }
  .content-header .active-label { font-size: 24px; }

  /* 1 column on small phones */
  .menu-grid { grid-template-columns: 1fr; gap: 2px; width: 100%; }
  .menu-card { aspect-ratio: 4/3; width: 100%; }

  .card-name { font-size: 22px; }
  .card-price { font-size: 18px; }
  .card-body { padding: 22px 20px; }
  .card-desc { font-size: 12px; }

  .cta-section { padding: 60px 4%; gap: 24px; }
  .cta-text h2 { font-size: clamp(22px, 6vw, 36px); }
  .cta-text p { font-size: 12px; }
  .btn-primary-gold { padding: 16px 40px; font-size: 9px; letter-spacing: 2.5px; }
}

/* ── XXS — Mobile portrait (≤ 480px) ── */
@media (max-width: 480px) {
  .menu-hero { height: 80vh; min-height: 480px; }
  .hero-title { font-size: clamp(32px, 10.5vw, 52px); line-height: 0.92; }
  .hero-subtitle { font-size: 13px; }
  .hero-body { padding: 0 4% 44px; }

  .sidebar { padding: 20px 4% 18px; gap: 14px; }
  .sidebar-section-label { margin-bottom: 14px; }
  .search-wrap input { font-size: 12px; padding: 9px 28px 9px 0; }

  .filter-list { gap: 5px; }
  .filter-list li button { padding: 6px 12px; font-size: 9px; letter-spacing: 1.5px; }

  .content-area { padding: 24px 4% 56px; min-width: 0; }
  .content-header { margin-bottom: 24px; padding-bottom: 14px; }
  .content-header .active-label { font-size: 22px; }
  .content-header .result-count { font-size: 8px; letter-spacing: 2px; }

  .menu-grid { gap: 2px; }
  .menu-card { aspect-ratio: 1/1; }
  .card-name { font-size: 20px; }
  .card-price { font-size: 17px; }
  .card-cat { font-size: 8px; letter-spacing: 2.5px; }
  .card-discount-badge { font-size: 8px; padding: 4px 8px; top: 14px; right: 14px; }

  .empty-msg { padding: 60px 0; }
  .empty-msg p { font-size: 22px; }

  .cta-section { padding: 52px 4%; }
  .cta-text h2 { font-size: clamp(20px, 6.5vw, 30px); margin-bottom: 10px; }
  .btn-primary-gold { padding: 14px 36px; }
}

/* ── XXS — Very small phones (≤ 360px) ── */
@media (max-width: 360px) {
  .logo { font-size: 15px !important; letter-spacing: 0.5px !important; }
  .menu-hero { height: 75vh; min-height: 420px; }
  .hero-title { font-size: clamp(28px, 11vw, 44px); }
  .hero-eyebrow { display: none; }

  .sidebar { padding: 18px 4% 16px; }
  .filter-list li button { padding: 5px 10px; font-size: 9px; }

  .content-area { padding: 20px 4% 48px; }
  .content-header .active-label { font-size: 20px; }

  .menu-card { aspect-ratio: 5/4; }
  .card-name { font-size: 18px; }
  .card-body { padding: 18px 16px; }

  .btn-primary-gold { padding: 13px 28px; font-size: 9px; letter-spacing: 2px; }
}

/* ── Touch device fixes ── */
@media (hover: none) {
  .menu-card {
    aspect-ratio: unset !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }
  .card-img {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: 220px !important;
    flex-shrink: 0 !important;
    overflow: hidden !important;
  }
  .card-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    filter: brightness(0.75) saturate(0.65) !important;
  }
  .card-overlay { display: none !important; }
  .card-body {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    padding: 18px 20px 22px !important;
    background: #161616 !important;
    z-index: auto !important;
  }
  .card-cat {
    opacity: 1 !important;
    transform: translateY(0) !important;
  }
  .card-desc {
    max-height: none !important;
    height: auto !important;
    opacity: 1 !important;
    overflow: visible !important;
    margin-bottom: 10px !important;
  }
  .menu-hero { background-attachment: scroll; }
}
