/* ==========================================================================
   DH FOODS - OFFICIAL DESIGN SYSTEM & STYLESHEET
   Tuân thủ nghiêm ngặt kỹ thuật:
   - FE-Theme-Typography-Visual (Zero FOUC, Eye-care palette, font sắc nét)
   - FE-MultiDevice-Responsive (3-Tier layout, Touch target >= 44px, no overflow)
   ========================================================================== */

/* 1. CSS VARIABLES & THEMES (EYE-CARE ERGONOMICS) */
:root {
  /* Light Theme (Êm dịu, chống mỏi mắt) */
  --bg-body: #FAF6EF;
  --bg-surface: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-subtle: #F3ECE1;
  --bg-elevated: #FFFFFF;
  --border-subtle: #E8DEC0;
  --border-strong: #D5C7B0;

  --text-main: #1A1A1A;
  --text-secondary: #5C524C;
  --text-muted: #8A7E77;
  --text-inverse: #FFFFFF;

  --brand-primary: #983224;      /* Dh Foods Heritage Red */
  --brand-dark: #791F14;
  --brand-hover: #B23B2A;
  --brand-light: #FDF2E9;
  --brand-border: #E8B4AC;

  --accent-gold: #D97706;
  --accent-yellow: #FCD7A3;      /* Dh Foods Cream Yellow */
  --accent-green: #2E7D32;

  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Montserrat', sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(152, 50, 36, 0.04);
  --shadow-md: 0 8px 24px rgba(152, 50, 36, 0.08);
  --shadow-lg: 0 16px 40px rgba(152, 50, 36, 0.12);

  --header-height: 76px;
  --bottom-nav-height: 64px;
  --transition-theme: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, fill 0.25s ease, box-shadow 0.25s ease;
}

/* Dark Theme (Obsidian Warm Charcoal - Trầm ấm, bảo vệ mắt) */
html.dark, [data-theme="dark"] {
  --bg-body: #141414;
  --bg-surface: #1E1918;
  --bg-card: #221C1A;
  --bg-subtle: #2C2321;
  --bg-elevated: #362B28;
  --border-subtle: #3A2F2C;
  --border-strong: #4E3E3A;

  --text-main: #F5F1EB;
  --text-secondary: #BDB3AC;
  --text-muted: #857A74;
  --text-inverse: #141414;

  --brand-primary: #E05342;      /* Luminous Red for Dark Mode */
  --brand-dark: #C93B2B;
  --brand-hover: #F87171;
  --brand-light: #381A15;
  --brand-border: #6B2E24;

  --accent-gold: #F59E0B;
  --accent-yellow: #FCD7A3;
  --accent-green: #4ADE80;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
}

/* 2. BASE RESET & ACCESSIBILITY */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background-color: var(--bg-body);
  color: var(--text-main);
  transition: var(--transition-theme);
  overflow-x: hidden;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* KEYWORD HIGHLIGHTING STYLE */
mark.search-highlight {
  background-color: #FEF08A;
  color: #854D0E;
  font-weight: 700;
  padding: 0 4px;
  border-radius: 4px;
}

html.dark mark.search-highlight {
  background-color: #713F12;
  color: #FEF08A;
}

/* 3. DH FOODS SIGNATURE FOREST GREEN HEADER */
.site-header.dh-green-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 78px;
  background-color: #0A5E35;
  background-image:
    radial-gradient(ellipse 70% 80% at 50% 0%, rgba(255, 255, 255, 0.16) 0%, transparent 65%),
    linear-gradient(135deg, #095932 0%, #118149 48%, #095932 100%);
  color: #FFFFFF;
  border-bottom: none;
  box-shadow: 0 4px 20px rgba(6, 67, 42, 0.25);
  transition: all 0.3s ease;
}

html.dark .site-header.dh-green-header {
  background-color: #063C21;
  background-image:
    radial-gradient(ellipse 70% 80% at 50% 0%, rgba(255, 255, 255, 0.08) 0%, transparent 65%),
    linear-gradient(135deg, #05381E 0%, #0B522E 50%, #06381F 100%);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.65);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: 78px;
  position: relative;
}

/* 3 Khối Điều Hướng Cân Xứng */
.nav-group {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-left {
  flex: 1;
  justify-content: center;
  gap: clamp(20px, 3vw, 48px);
}

.nav-right {
  flex: 0 0 auto;
  margin-left: auto;
  justify-content: flex-end;
  gap: 14px;
}

.journey-section {
  scroll-margin-top: 120px;
  min-height: 60vh;
}

.journey-section + .journey-section {
  border-top: 1px solid var(--border-subtle);
}

.recipe-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.news-cover {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 20px;
}

.news-gallery { margin-bottom: 20px; }
.news-main-photo { display: block; width: 100%; padding: 0; }
.news-main-photo .news-cover { margin-bottom: 0; }
.news-thumbnails { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.news-thumbnails button { padding: 0; overflow: hidden; border-radius: 6px; }
.news-thumbnails button.current-photo { outline: 3px solid var(--brand-primary); outline-offset: 2px; }
.news-thumbnails img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.news-gallery-dialog { margin: auto; width: min(1000px, calc(100vw - 32px)); max-height: 92dvh; overflow-y: auto; border: 0; padding: 20px; border-radius: 16px; background: var(--bg-surface); color: var(--text-main); }
.news-gallery-dialog::backdrop { background: #000c; }
.news-gallery-dialog header, .news-gallery-dialog footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.news-gallery-dialog h2 { font-size: 20px; margin: 0; }
.news-gallery-dialog button { padding: 10px 16px; color: inherit; }
.news-gallery-large { display: block; width: 100%; max-height: 65vh; object-fit: contain; margin: 16px 0; }

.recipe-row { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 4fr); overflow: hidden; border: 1px solid var(--border-subtle); border-radius: 22px; background: var(--bg-surface); }
.recipe-video-preview { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; width: 100%; align-self: center; overflow: hidden; padding: 0; border: 0; color: white; background: linear-gradient(135deg, #244e37, #172d22); cursor: pointer; }
.recipe-video-preview:disabled { cursor: default; }
.recipe-video-preview img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.recipe-video-art { position: absolute; font-size: 100px; opacity: .25; }
.recipe-play { display: grid; place-items: center; width: 66px; height: 66px; border-radius: 50%; background: #ffffffee; color: #205135; font-size: 25px; box-shadow: 0 6px 24px #0003; z-index: 1; }
.recipe-video-preview:not(:disabled):hover .recipe-play { transform: scale(1.08); }
.recipe-video-label { position: absolute; bottom: 0; left: 0; right: 0; padding: 22px 12px 12px; background: linear-gradient(transparent, #000b); font-size: 14px; text-align: center; }
.recipe-description { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 12px; padding: clamp(22px, 3vw, 40px); }
.recipe-detail-link { color: var(--brand-primary); font-weight: 700; text-align: left; padding: 10px 0; }
.recipe-video-preview:focus-visible, .recipe-detail-link:focus-visible { outline: 3px solid #d4af37; outline-offset: -3px; }
.recipe-video-status { font-size: 13px; margin: 10px 0 0; }
.recipe-video-status:empty { display: none; }
.recipe-search { max-width: 640px; margin: 0 auto 28px; }
.recipe-search label { display: block; margin-bottom: 10px; font-weight: 700; color: var(--text-main); }
.recipe-search-field { display: flex; align-items: center; gap: 12px; padding: 0 16px; border: 1px solid var(--border-subtle); border-radius: 12px; background: var(--bg-surface); color: var(--text-secondary); }
.recipe-search-field:focus-within { border-color: var(--brand-primary); outline: 2px solid var(--brand-primary); outline-offset: 2px; }
.recipe-search-field svg { flex-shrink: 0; }
.recipe-search-field input { width: 100%; min-width: 0; padding: 15px 0; border: 0; outline: none; background: transparent; color: var(--text-main); font: inherit; font-size: 16px; }
.recipe-search-field input::placeholder { color: var(--text-secondary); }
.recipe-search-status { margin-top: 10px; color: var(--text-secondary); font-size: 14px; }
.recipe-search-empty { padding: 32px 20px; text-align: center; color: var(--text-secondary); }
.recipe-row[hidden], .recipe-search-empty[hidden] { display: none; }
@media (min-width: 768px) {
  .recipe-row:nth-child(even) { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); }
  .recipe-row:nth-child(even) > .recipe-video-preview { grid-column: 2; grid-row: 1; }
  .recipe-row:nth-child(even) > .recipe-description { grid-column: 1; grid-row: 1; }
}
@media (max-width: 767px) {
  .recipe-row { grid-template-columns: 1fr; }
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 8px 4px;
  position: relative;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: #FCD7A3;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background-color: #FCD7A3;
  border-radius: 2px;
}

/* Dropdown Menu Trong Header */
.nav-dropdown-wrapper {
  position: relative;
}

.nav-dropdown-wrapper:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  transform: translateY(10px);
  min-width: 260px;
  background-color: #042618;
  border: 1px solid rgba(252, 215, 163, 0.25);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 120;
}

.dropdown-menu .dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #FFFFFF;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.dropdown-menu .dropdown-item:hover {
  background-color: rgba(252, 215, 163, 0.15);
  color: #FCD7A3;
  transform: translateX(4px);
}

#modal-mobile-menu .dropdown-item {
  color: var(--text-main) !important;
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

#modal-mobile-menu .dropdown-item:hover {
  background-color: rgba(6, 67, 42, 0.08);
  color: var(--brand-primary) !important;
}

html.dark #modal-mobile-menu .dropdown-item {
  color: #F1F5F9 !important;
}

html.dark #modal-mobile-menu .dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: #FCD7A3 !important;
}

/* Logo ở đầu thanh điều hướng */
.nav-brand {
  position: relative;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  height: 100%;
}

.nav-brand::before {
  content: none;
}

.brand-logo-official {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #FFFFFF;
  position: relative;
  z-index: 1;
  transform: translateY(-2px);
  transition: transform 0.25s ease;
}

.brand-logo-official:hover {
  transform: translateY(-4px) scale(1.03);
}

/* SVG alpha filter removes the source background without blend compositing. */
.origine-logo {
  width: 144px;
  height: 64px;
  overflow: hidden;
  border-radius: 10px;
  background: transparent;
  flex-shrink: 0;
  transform: none;
}

.origine-logo svg {
  position: absolute;
  width: 154%;
  max-width: none;
  height: auto;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -48%);
}

@media (max-width: 767px) {
  .origine-logo { width: 126px; height: 56px; }
}

.dh-brand-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  opacity: 1 !important;
  pointer-events: auto;
}

.dh-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #FFFFFF 0%, #FFF4D4 35%, #F5D77F 70%, #D4AF37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
  position: relative;
  line-height: 0.95;
  display: inline-block;
}

.dh-reg {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 800;
  vertical-align: super;
  margin-left: 2px;
  color: #F5D77F;
  -webkit-text-fill-color: #F5D77F;
}

.dh-sub {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #FFF8E1 0%, #F5D77F 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: 1px;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.35));
}

/* Nút Điểm Bán Viền Tròn (Pill Button kim loại ánh vàng như ảnh 2) */
.btn-store-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  border-radius: var(--radius-full);
  border: 1.5px solid #D4AF37;
  background-color: rgba(6, 67, 42, 0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #FCD7A3;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.25s ease;
}

.btn-store-pill:hover {
  background-color: rgba(212, 175, 55, 0.25);
  border-color: #FCD7A3;
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.45);
  transform: translateY(-1px);
}

/* Nút chọn đa ngôn ngữ tương tác (Có cờ & Dropdown Tiếng Việt, EN, JA, KO, ZH) */
.lang-dropdown-wrapper {
  position: relative;
}

.lang-selector-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.82rem;
  font-weight: 700;
  color: #FFFFFF;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-selector-pill:hover,
.lang-dropdown-wrapper.open .lang-selector-pill {
  background-color: rgba(252, 215, 163, 0.2);
  border-color: #FCD7A3;
  color: #FCD7A3;
}

.active-flag-wrap {
  display: flex;
  align-items: center;
  line-height: 1;
}

.flag-svg {
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  display: block;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 175px;
  background-color: #062819;
  border: 1px solid rgba(252, 215, 163, 0.35);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 1500;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: dropdownFade 0.2s ease forwards;
}

.lang-dropdown-wrapper:hover .lang-menu,
.lang-dropdown-wrapper.open .lang-menu {
  display: flex;
}

@keyframes dropdownFade {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  width: 100%;
  text-align: left;
}

.lang-option:hover {
  background-color: rgba(252, 215, 163, 0.18);
  color: #FCD7A3;
}

.lang-option.active {
  background-color: rgba(6, 67, 42, 0.6);
  color: #FCD7A3;
  font-weight: 800;
}

.lang-badge {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

/* Nút Icon Tool (Search, Theme) */
.btn-icon-nav {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.2s ease;
}

.btn-icon-nav:hover {
  background-color: rgba(252, 215, 163, 0.2);
  color: #FCD7A3;
  border-color: #FCD7A3;
  transform: scale(1.05);
}

.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background-color: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}

/* 4. GOURMET CULINARY HERO SECTION (CHUẨN ẢNH 1 & HIỆU ỨNG ĐỒ ĂN TƯƠI THEO CHUỘT) */
.dh-hero-gourmet {
  position: relative;
  width: 100%;
  min-height: 600px;
  background-color: #F7F3EB;
  overflow: hidden;
  display: flex;
  align-items: center;
}

html.dark .dh-hero-gourmet {
  background-color: #121417;
}

/* Background Culinary Photo Layers */
.hero-food-canvas-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Tầng 1: Base Image (Ảnh món ngon chụp tự nhiên từ ảnh 1) */
.hero-food-base {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  z-index: 1;
  transition: transform 0.4s ease-out;
}

/* Tầng 2: Reveal Layer (Món ăn tươi mọng, bóng bẩy và rực rỡ hơn khi rê chuột qua) */
/* Tầng 2: Reveal Layer (Đã bỏ vòng tròn sáng & viền sáng theo yêu cầu) */
.hero-food-reveal {
  display: none !important;
}

/* Tầng 3: Canvas hiệu ứng khói ẩm thực bốc lên theo chuyển động chuột */
#hero-freshness-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

/* Tầng 4: Content Overlay (Chữ & Nút bấm chuẩn Ảnh 1) */
.hero-text-container {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 80px 0;
  pointer-events: auto;
}

.hero-gourmet-card {
  max-width: 560px;
  background: transparent;
  padding: 0;
  border: none;
  box-shadow: none;
}

html.dark .hero-gourmet-card {
  background: transparent;
  border: none;
  box-shadow: none;
}

.hero-label-viet {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #065F46;
  margin-bottom: 20px;
  padding: 4px 14px;
  border-radius: 9999px;
  background: rgba(6, 95, 70, 0.08);
  border: 1px solid rgba(6, 95, 70, 0.18);
}

html.dark .hero-label-viet {
  color: #4ADE80;
  background: rgba(74, 222, 128, 0.12);
  border-color: rgba(74, 222, 128, 0.22);
}

.hero-gourmet-title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.15;
  color: #0D241A;
  margin-bottom: 24px;
  letter-spacing: -0.025em;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
}

html.dark .hero-gourmet-title {
  color: #F8F9FD;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
}

.hero-gourmet-desc {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #1F2937;
  margin-bottom: 38px;
  max-width: 520px;
  font-weight: 500;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}

html.dark .hero-gourmet-desc {
  color: #E2E8F0;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.65);
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Nút Khám Phá Sản Phẩm Xanh Rừng */
.btn-gourmet-forest {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 34px;
  border-radius: var(--radius-full);
  background-color: #0B6B3D;
  color: #FFFFFF !important;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 24px rgba(11, 107, 61, 0.35);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.btn-gourmet-forest:hover {
  background-color: #0E7F49;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 32px rgba(11, 107, 61, 0.45);
  color: #FFFFFF !important;
}

.btn-gourmet-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-full);
  border: 1.5px solid #0B6B3D;
  background-color: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  color: #0B6B3D !important;
  font-weight: 700;
  font-size: 0.96rem;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-gourmet-outline:hover {
  background-color: #0B6B3D;
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(11, 107, 61, 0.25);
}

html.dark .btn-gourmet-outline {
  border-color: #F5D77F;
  background-color: rgba(26, 29, 32, 0.8);
  color: #F5D77F !important;
}

html.dark .btn-gourmet-outline:hover {
  background-color: #F5D77F;
  color: #121417 !important;
}

@media (max-width: 1023px) {
  .hero-food-base, .hero-food-reveal {
    width: 100%;
    opacity: 0.4;
    mask-image: none;
    -webkit-mask-image: none;
  }
  .hero-gourmet-card {
    max-width: 100%;
  }
}

/* 5. MARQUEE TICKER THÔNG SUỐT (KHÔNG BỊ CHẶN DÒNG NHƯ ẢNH 4) */
.dh-marquee-section {
  position: relative;
  background-color: #0D0D0D;
  padding: 24px 0;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  border-bottom: 1px solid #221C1A;
}

.dh-marquee-track {
  display: flex;
  width: max-content;
  gap: 20px;
  animation: marqueeLeft 28s linear infinite;
}

.dh-marquee-section:hover .dh-marquee-track {
  animation-play-state: paused;
}

@keyframes marqueeLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-product-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 22px;
  background-color: #1A1615;
  border: 1px solid #332825;
  border-radius: var(--radius-full);
  color: #FFFFFF;
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.marquee-product-chip:hover {
  border-color: #FCD7A3;
  color: #FCD7A3;
  transform: translateY(-2px);
}

.chip-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #FCD7A3;
  box-shadow: 0 0 8px #FCD7A3;
}

/* DEDICATED SECTION: HỆ TIÊU CHUẨN 3 KHÔNG (KHÔNG ĐẶT ĐÈ LÊN MARQUEE NỮA) */
.section-3no-trust {
  padding: 70px 0 60px;
  background-color: var(--bg-body);
  position: relative;
}

.trust-3no-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 45px;
}

.trust-badge-label {
  display: inline-block;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background-color: rgba(152, 50, 36, 0.12);
  color: var(--brand-primary);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.trust-3no-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
}

.trust-3no-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.trust-3no-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.trust-3no-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 34px 26px;
  text-align: center;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.trust-3no-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #983224, #FCD7A3);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.trust-3no-card:hover {
  transform: translateY(-8px);
  border-color: var(--brand-border);
  box-shadow: var(--shadow-lg);
}

.trust-3no-card:hover::before {
  opacity: 1;
}

.trust-icon-box {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 20px;
  box-shadow: 0 6px 16px rgba(152, 50, 36, 0.12);
}

.trust-3no-card h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
}

.trust-3no-card p {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* 6. HỢP TÁC KINH DOANH (MÀN HÌNH CHÍNH /hop-tac-kinh-doanh) */
.b2b-cooperation-page {
  padding: 50px 0 80px;
}

.section-hero-banner {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
}

.section-label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-primary);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
  margin-bottom: 18px;
}

.section-desc {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

/* B2B Segment Tabs: Siêu thị / Doanh nghiệp / Nhà hàng */
.b2b-tabs-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.b2b-tab-btn {
  padding: 12px 28px;
  border-radius: var(--radius-full);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.b2b-tab-btn:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.b2b-tab-btn.active {
  background-color: var(--brand-primary);
  color: #FFFFFF;
  border-color: var(--brand-primary);
  box-shadow: 0 4px 14px rgba(152, 50, 36, 0.25);
}

/* Partner Logo Grid */
.partners-logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 18px;
  margin-bottom: 60px;
}

.partner-logo-card {
  padding: 24px 16px;
  border-radius: var(--radius-md);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.partner-logo-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-border);
  box-shadow: var(--shadow-md);
}

.partner-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--brand-light);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
}

.partner-card-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
}

.partner-card-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* International Export Market Section */
.export-market-box {
  background: linear-gradient(135deg, #1E1918 0%, #141414 100%);
  border-radius: var(--radius-xl);
  padding: 50px 40px;
  color: #FFFFFF;
  margin-bottom: 60px;
  border: 1px solid #3A2F2C;
}

.export-grid-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.export-countries-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.country-pill-item {
  padding: 12px 18px;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
}

.country-pill-item strong {
  color: #FCD7A3;
  display: block;
  margin-bottom: 4px;
}

/* OEM / ODM Capabilities Grid */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.capability-card {
  padding: 30px 22px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.capability-card:hover {
  transform: translateY(-6px);
  border-color: var(--brand-border);
  box-shadow: var(--shadow-md);
}

.capability-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background-color: var(--brand-light);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.capability-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
}

.capability-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* B2B Partner Form Section */
.b2b-form-section {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-md);
  max-width: 860px;
  margin: 0 auto;
}

.form-two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.form-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
}

.form-control {
  padding: 12px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background-color: var(--bg-body);
  color: var(--text-main);
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}

.form-control:focus {
  border-color: var(--brand-primary);
}

/* 6.5. INTERACTIVE MILESTONE JOURNEY TIMELINE (CHÍNH XÁC NHƯ ẢNH 3) */
.milestone-section {
  padding: 80px 0;
  background-color: var(--bg-body);
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.milestone-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px;
}

.milestone-grid-layout {
  display: grid;
  grid-template-columns: 200px 1.2fr 1fr;
  gap: 36px;
  align-items: center;
}

/* Timeline Buttons Bên Trái */
.milestone-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  padding-left: 24px;
  border-left: 2px solid var(--border-subtle);
}

.milestone-nav-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.25s ease;
  position: relative;
  text-align: left;
}

.milestone-nav-btn::before {
  content: '';
  position: absolute;
  left: -31px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--border-strong);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.milestone-nav-btn:hover {
  color: var(--brand-primary);
}

.milestone-nav-btn.active {
  color: #06432A;
  font-size: 1.25rem;
  font-weight: 900;
}

html.dark .milestone-nav-btn.active {
  color: #4ADE80;
}

.milestone-nav-btn.active::before {
  background-color: #06432A;
  box-shadow: 0 0 14px rgba(6, 67, 42, 0.6);
  transform: scale(1.35);
}

html.dark .milestone-nav-btn.active::before {
  background-color: #4ADE80;
  box-shadow: 0 0 14px rgba(74, 222, 128, 0.8);
}

/* Sân Khấu Đồ Họa Trung Tâm (Quả Địa Cầu + Hũ Gia Vị + Vệt Bay Phi Cơ) */
.milestone-visual-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  max-width: 440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.milestone-globe-bg {
  width: 270px;
  height: 270px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #76C49E 0%, #2E7D58 60%, #154D34 100%);
  position: absolute;
  box-shadow: 0 24px 60px rgba(46, 125, 88, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.milestone-huge-num {
  font-family: var(--font-heading);
  font-size: 8rem;
  font-weight: 900;
  color: #983224;
  position: absolute;
  left: 20px;
  bottom: 25px;
  z-index: 4;
  line-height: 1;
  text-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  animation: pulseScale 3s ease-in-out infinite;
}

@keyframes pulseScale {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.milestone-spice-bottle {
  position: relative;
  z-index: 5;
  height: 280px;
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.4));
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.milestone-spice-bottle:hover {
  transform: scale(1.06) rotate(3deg);
}

.milestone-plane-trail {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

/* Thẻ Thông Tin Cột Phải */
.milestone-card-content {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 38px 32px;
  box-shadow: var(--shadow-md);
  transition: all 0.35s ease;
  position: relative;
}

.milestone-period-badge {
  display: inline-block;
  padding: 6px 18px;
  background-color: #06432A;
  color: #FFFFFF;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
  box-shadow: 0 4px 12px rgba(6, 67, 42, 0.25);
}

.milestone-headline {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 16px;
}

.milestone-body {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.milestone-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.milestone-tag {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background-color: var(--brand-light);
  color: var(--brand-primary);
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid var(--brand-border);
}

@media (max-width: 1023px) {
  .milestone-grid-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .milestone-nav {
    flex-direction: row;
    overflow-x: auto;
    border-left: none;
    border-bottom: 2px solid var(--border-subtle);
    padding-left: 0;
    padding-bottom: 12px;
  }
  .milestone-nav-btn::before {
    display: none;
  }
}

/* 7. MÀN HÌNH ĐIỂM BÁN (STORE LOCATOR) */
.store-locator-page {
  padding: 40px 0 80px;
}

.store-filters-bar {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}

.stores-grid-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.store-info-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  transition: all 0.25s ease;
}

.store-info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-border);
}

.store-channel-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background-color: var(--brand-light);
  color: var(--brand-primary);
  font-size: 0.8rem;
  font-weight: 700;
  align-self: flex-start;
}

.store-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.store-address {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.btn-directions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-primary);
  font-weight: 700;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.btn-directions:hover {
  color: var(--brand-hover);
  text-decoration: underline;
}

/* 8. MÀN HÌNH SẢN PHẨM & LƯỚI CATALOG */
.catalog-page {
  padding: 40px 0 80px;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  align-items: start;
}

.catalog-sidebar {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: sticky;
  top: calc(var(--header-height) + 20px);
}

/* Category Filter Buttons (Chuẩn FE-Theme-Typography-Visual không bị chìm chữ trên nền sáng) */
.catalog-category-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  color: #1F2937 !important;
  background-color: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
}

.catalog-category-btn:hover {
  background-color: rgba(6, 67, 42, 0.07);
  color: #065F46 !important;
  transform: translateX(4px);
}

.catalog-category-btn.active {
  background: linear-gradient(135deg, #983224 0%, #B84A39 100%) !important;
  color: #FFFFFF !important;
  font-weight: 700;
  border-color: #983224;
  box-shadow: 0 4px 12px rgba(152, 50, 36, 0.28);
}

.catalog-category-btn .category-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  background-color: rgba(0, 0, 0, 0.08);
  color: #4B5563;
  transition: all 0.2s ease;
}

.catalog-category-btn.active .category-count-badge {
  background-color: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

html.dark .catalog-category-btn {
  color: #F1F5F9 !important;
}

html.dark .catalog-category-btn:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: #FCD7A3 !important;
}

html.dark .catalog-category-btn.active {
  background: linear-gradient(135deg, #B84A39 0%, #983224 100%) !important;
  color: #FFFFFF !important;
  border-color: #B84A39;
}

html.dark .catalog-category-btn .category-count-badge {
  background-color: rgba(255, 255, 255, 0.15);
  color: #CBD5E1;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  border-radius: var(--radius-lg);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-border);
}

.product-media-banner {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.product-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}

.product-price-tag {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--brand-primary);
}

/* 9. MODALS & POPUPS (CHỐNG LỆCH TRANG CHỦ & PHÂN TẦNG Z-INDEX) */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-dialog {
  transform: scale(0.95) translateY(14px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.modal-overlay.active .modal-dialog {
  transform: scale(1) translateY(0);
}

/* Mobile Menu Drawer Specific */
#modal-mobile-menu {
  justify-content: flex-start;
  padding: 0;
}

#modal-mobile-menu .modal-dialog {
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#modal-mobile-menu.active .modal-dialog {
  transform: translateX(0);
}

@media (min-width: 1024px) {
  #modal-mobile-menu {
    display: none !important;
  }
}

.search-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 20px 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s ease;
}

.search-modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.search-modal-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 680px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: translateY(-20px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.search-modal-overlay.active .search-modal-box {
  transform: translateY(0);
}

.search-input-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 16px;
}

.search-input-field {
  flex-grow: 1;
  font-size: 1.15rem;
  border: none;
  background: none;
  color: var(--text-main);
}

.search-keywords-pills {
  display: flex;
  gap: 8px;
  padding: 12px 24px;
  background-color: var(--bg-body);
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  align-items: center;
}

.keyword-chip {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.keyword-chip:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.search-results-list {
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-body);
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-result-item:hover {
  background-color: var(--brand-light);
  border-color: var(--brand-border);
  transform: translateX(4px);
}

/* 9.5. INTERACTIVE PRODUCT CARDS (VIDEO DEMO: ĐỔI MÀU NỀN & XOAY ẢNH 3D KHI DI CHUỘT) */
.product-interactive-card {
  position: relative;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  transition: background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.product-interactive-card:hover {
  background-color: var(--hover-bg, #8CC63F) !important;
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
  border-color: transparent;
}

.product-weight-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background-color: rgba(0, 0, 0, 0.08);
  color: var(--text-main);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.product-interactive-card:hover .product-weight-badge {
  background-color: rgba(255, 255, 255, 0.6);
  color: #111827;
}

.product-img-box {
  width: 100%;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 14px 0;
  perspective: 600px;
}

.product-interactive-img {
  max-height: 200px;
  max-width: 90%;
  object-fit: contain;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.18));
}

.product-interactive-card:hover .product-interactive-img {
  transform: rotate(var(--hover-rotate, 5deg)) scale(1.1);
  filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.28));
}

.product-meta-content {
  width: 100%;
  margin-top: auto;
}

.product-card-title {
  font-family: var(--font-heading);
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.product-interactive-card:hover .product-card-title {
  color: #111827;
}

.product-card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
  transition: color 0.3s ease;
}

.product-interactive-card:hover .product-card-desc {
  color: #1F2937;
}

.product-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--brand-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

.product-interactive-card:hover .product-view-btn {
  color: #111827;
  transform: translateX(4px);
}

/* 10. PRODUCT DETAIL PAGE */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.product-media-showcase {
  aspect-ratio: 1;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
}

.specs-table tr {
  border-bottom: 1px solid var(--border-subtle);
}

.specs-table td {
  padding: 10px 4px;
  font-size: 0.92rem;
}

.specs-table td:first-child {
  font-weight: 700;
  color: var(--text-muted);
  width: 35%;
}

/* 11. TOAST NOTIFICATIONS */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background-color: #791F14;
  color: #FFFFFF;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  font-size: 0.92rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastIn 0.3s ease forwards;
}

@keyframes toastIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* 12. RESPONSIVE BREAKPOINTS (3-TIER ARCHITECTURE) */

/* TABLET (768px - 1023px) */
@media (max-width: 1023px) {
  .hero-grid-layout {
    grid-template-columns: 1fr;
  }
  .capabilities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .export-grid-layout {
    grid-template-columns: 1fr;
  }
  .stores-grid-layout {
    grid-template-columns: repeat(2, 1fr);
  }
  .catalog-layout {
    grid-template-columns: 1fr;
  }
  .catalog-sidebar {
    position: static;
  }
  .product-detail-layout {
    grid-template-columns: 1fr;
  }
  .dh-hero-gourmet {
    min-height: 520px;
  }
  .hero-food-base,
  .hero-food-reveal {
    opacity: 0.55;
  }
  /* Header Responsive in Tablet & Mobile */
  .nav-left {
    display: none !important;
  }
  .nav-right .nav-link,
  .nav-right .btn-store-pill,
  .nav-right .lang-selector-pill {
    display: none !important;
  }
  .mobile-menu-btn {
    display: flex !important;
  }
  .header-notch-svg {
    display: none !important;
  }
  .site-header {
    height: 64px;
  }
}

/* Default Desktop: Hide mobile bottom nav */
.mobile-bottom-nav {
  display: none;
}

/* MOBILE (< 768px) */
@media (max-width: 767px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-btn {
    display: flex !important;
  }
  .btn-store-nav {
    display: none;
  }
  .form-two-cols {
    grid-template-columns: 1fr;
  }
  .capabilities-grid {
    grid-template-columns: 1fr;
  }
  .stores-grid-layout {
    grid-template-columns: 1fr;
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
  .store-filters-bar {
    grid-template-columns: 1fr;
  }
  .b2b-form-section {
    padding: 24px 16px;
  }

  /* Gourmet Hero Mobile */
  .dh-hero-gourmet {
    min-height: auto;
    padding: 30px 0;
  }
  .hero-food-base,
  .hero-food-reveal {
    opacity: 0.35;
  }
  .hero-text-container {
    padding: 20px 0;
  }
  .hero-gourmet-card {
    padding: 26px 18px;
    border-radius: var(--radius-xl);
  }
  .hero-gourmet-title {
    font-size: 2.1rem;
    line-height: 1.2;
  }
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }
  .btn-gourmet-forest,
  .btn-gourmet-outline {
    width: 100%;
    justify-content: center;
  }

  /* Hệ quy chuẩn 3 KHÔNG Mobile: Chuyển từ 3 cột hẹp dài thành thẻ ngang cân đối */
  .trust-3no-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .trust-3no-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    text-align: left !important;
    padding: 16px 18px !important;
    gap: 16px !important;
    border-radius: var(--radius-lg) !important;
  }

  .trust-3no-card-content {
    flex: 1;
  }

  .trust-icon-box {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    margin: 0 !important;
    font-size: 1.55rem !important;
    flex-shrink: 0 !important;
  }

  .trust-3no-card h3 {
    font-size: 1.12rem !important;
    margin-bottom: 4px !important;
    line-height: 1.25 !important;
  }

  .trust-3no-card p {
    font-size: 0.86rem !important;
    line-height: 1.5 !important;
    margin: 0 !important;
  }

  /* Bottom Navigation (Chuẩn ngón tay cái & outline icons & Center Quick-Search FAB) */
  .mobile-bottom-nav {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    min-height: 62px;
    height: auto;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    z-index: 999;
    align-items: center;
    justify-content: space-around;
    padding-top: 6px;
    padding-bottom: max(8px, env(safe-area-inset-bottom, 8px));
    padding-left: 6px;
    padding-right: 6px;
  }

  html.dark .mobile-bottom-nav {
    background-color: rgba(18, 20, 23, 0.98);
    border-top-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.5);
  }

  .mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #64748B;
    text-decoration: none;
    flex: 1;
    padding: 4px 2px 2px;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
  }

  .mobile-nav-item svg {
    width: 22px !important;
    height: 22px !important;
    stroke: currentColor !important;
    fill: none !important;
    stroke-width: 2 !important;
    stroke-linecap: round;
    stroke-linejoin: round;
    display: block;
    transition: transform 0.2s ease, stroke 0.2s ease;
  }

  .mobile-nav-item span {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    white-space: nowrap;
    display: block;
    text-align: center;
  }

  .mobile-nav-item:hover,
  .mobile-nav-item.active {
    color: #983224 !important;
  }

  .mobile-nav-item.active svg {
    stroke: #983224 !important;
    transform: scale(1.1);
  }

  html.dark .mobile-nav-item {
    color: #94A3B8;
  }

  html.dark .mobile-nav-item:hover,
  html.dark .mobile-nav-item.active {
    color: #F87171 !important;
  }

  html.dark .mobile-nav-item.active svg {
    stroke: #F87171 !important;
  }

  /* Center Quick-Search Action FAB */
  .mobile-nav-fab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0 4px;
    position: relative;
    transform: translateY(-8px);
    flex: 1;
  }

  .mobile-nav-fab-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0B6B3D 0%, #12884E 100%);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(11, 107, 61, 0.45);
    border: 2.5px solid #FFFFFF;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  html.dark .mobile-nav-fab-icon {
    border-color: #1E1918;
    box-shadow: 0 4px 16px rgba(18, 136, 78, 0.55);
  }

  .mobile-nav-fab-icon svg {
    width: 20px !important;
    height: 20px !important;
    stroke: #FFFFFF !important;
    fill: none !important;
    stroke-width: 2.5 !important;
    display: block;
  }

  .mobile-nav-fab:hover .mobile-nav-fab-icon,
  .mobile-nav-fab:active .mobile-nav-fab-icon {
    transform: scale(1.08);
  }

  .mobile-nav-fab span {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.2;
    color: #065F46;
    margin-top: 2px;
    white-space: nowrap;
    display: block;
  }

  html.dark .mobile-nav-fab span {
    color: #4ADE80;
  }

  body {
    padding-bottom: 96px !important;
  }
    /* Thẻ sản phẩm: nền kem, đổi cam khi rê chuột */
    .catalog-layout .products-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 20px;
    }

    .catalog-layout .spice-card {
        position: relative;
        min-width: 0;
        padding: 18px;
        background: #f5f3ec;
        color: #24563c;
        border: 0;
        border-radius: 10px;
        box-shadow: none;
        overflow: hidden;
        cursor: pointer;
        transition: background-color 0.3s ease, color 0.3s ease;
    }

        .catalog-layout .spice-card:hover {
            background: #eb7025;
            color: #fff;
            transform: none;
            box-shadow: none;
        }

    .spice-sizes {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
        min-height: 20px;
    }

        .spice-sizes span {
            padding: 2px 7px;
            border: 1px solid currentColor;
            border-radius: 20px;
            font-size: 10px;
            line-height: 1.2;
        }

    .spice-picture {
        height: 240px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 24px 8px;
    }

        .spice-picture img {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: contain;
            transition: transform 0.4s ease;
        }

    .spice-card:hover .spice-picture img {
        transform: rotate(9deg) scale(1.06);
    }

    .spice-placeholder {
        font-size: 13px;
        opacity: 0.6;
    }

    .spice-info {
        margin-top: auto;
        padding-top: 10px;
    }

        .spice-info h3 {
            margin: 0 0 8px;
            font-family: inherit;
            font-size: 14px;
            font-weight: 700;
            line-height: 1.5;
            color: inherit;
        }

    .spice-detail {
        font-size: 11px;
        text-decoration: underline;
        text-underline-offset: 3px;
        opacity: 0.8;
    }

    @media (max-width: 1100px) {
        .catalog-layout .products-grid {
            grid-template-columns: repeat(3, minmax(0, 1fr));
        }
    }

    @media (max-width: 800px) {
        .catalog-layout .products-grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 12px;
        }

        .catalog-layout .spice-card {
            padding: 12px;
        }

        .spice-picture {
            height: 200px;
        }
    }

    @media (prefers-reduced-motion: reduce) {
        .catalog-layout .spice-card,
        .spice-picture img {
            transition: none;
        }

        .spice-card:hover .spice-picture img {
            transform: none;
        }
    }
}

.recipe-inline-video { cursor: default; background: #000; }
.recipe-inline-video iframe, .recipe-inline-video video { width: 100%; height: 100%; position: absolute; inset: 0; border: 0; display: block; }
.recipe-inline-video .recipe-video-status { position: absolute; bottom: 0; background: #000c; color: #fff; padding: 8px; margin: 0; }
/* All products in the navigation menu, with names below photos. */
.nav-dropdown-wrapper { position: static; }
.nav-dropdown-wrapper:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#product-category-menu {
  left: 0;
  right: 0;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding: 16px;
  gap: 20px;
}
#product-category-menu::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -24px;
  height: 24px;
}
.product-menu-preview { min-width: 0; max-height: min(520px, calc(100dvh - 140px)); overflow-y: auto; padding: 8px; }
.product-menu-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; color: #fff; }
.product-menu-heading strong { font-size: 1.15rem; }
.product-menu-heading a { color: #FCD7A3; font-size: .85rem; white-space: nowrap; }
.product-menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.product-menu-card { display: flex; flex-direction: column; gap: 12px; text-align: center; color: #fff; border-radius: 12px; padding: 8px; }
.product-menu-image { display: grid; place-items: center; height: 160px; padding: 12px; background: #fffaf1; border-radius: 10px; overflow: hidden; }
.product-menu-image img { width: 100%; height: 100%; min-height: 0; object-fit: contain; transition: transform .2s ease; }
.product-menu-name { font-size: .88rem; line-height: 1.5; font-weight: 600; }
.product-menu-card:is(:hover, :focus-visible) { background: rgba(255,255,255,.08); color: #FCD7A3; }
.product-menu-card:hover img { transform: scale(1.06); }
.product-menu-placeholder { color: #68756c; font-size: .85rem; }
.product-menu-empty { grid-column: 1 / -1; color: #e2e9e4; padding: 30px 0; }
@media (prefers-reduced-motion: reduce) {
  #product-category-menu, .product-menu-image img { transition: none; }
}

