/*
Theme Name: Fruitique DONGNAIFOOD Theme
Theme URI: https://dongnaifood.id.vn/
Author: Fruitique Team
Description: Giao diện Trái cây tươi, Giỏ quà cao cấp Fruitique kết hợp database giả lập LocalStorage.
Version: 1.0
*/

/* ============================================================
 *  BẢNG MÀU & ĐỊNH DẠNG CHUNG (DESIGN SYSTEM) - Fruitique
 * ============================================================
 *  Tệp CSS tổng hợp toàn bộ giao diện từ trang chủ, shop, chi tiết,
 *  giỏ hàng, thanh toán đến trang quản trị admin.
 *  Viết bằng CSS thuần, dễ đọc, dễ học cho sinh viên.
 * ============================================================ */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* Bảng màu chính chủ đề trái cây và giỏ quà sạch */
  --primary: #16a34a;          /* Xanh lá cây tự nhiên */
  --primary-dark: #14532d;     /* Xanh lá đậm */
  --primary-hover: #15803d;    /* Xanh lá hover */
  --secondary: #3f6212;        /* Xanh rêu nhẹ */
  --accent: #f59e0b;           /* Cam quýt tươi */
  --accent-deep: #d97706;      /* Cam đậm */
  --background: #fafdf6;       /* Nền màu kem pha chút xanh nhạt hữu cơ */
  --surface: #ffffff;          /* Màu nền khối */
  --surface-soft: #f4fbf0;     /* Nền khối dịu mắt */
  --text-main: #142416;        /* Màu chữ chính xám đậm ánh xanh */
  --text-muted: #556b5c;       /* Màu chữ phụ */
  --border: rgba(22, 163, 74, 0.12); /* Đường viền xanh mờ */
  --white: #ffffff;
  --error: #dc2626;
  --success: #16a34a;
  --warning: #f59e0b;

  /* Fonts chữ cao cấp */
  --font-heading: 'Quicksand',sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Outfit', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 4rem;
  --spacing-2xl: 6rem;

  /* Heights cho fixed header */
  --navbar-h: 76px;
  --promo-h: 38px;
  --mega-h: 46px;
  --header-h: calc(var(--navbar-h) + var(--promo-h) + var(--mega-h));

  /* Shadows & Borders */
  --shadow-sm: 0 1px 2px rgba(22, 163, 74, 0.05);
  --shadow-md: 0 4px 12px -1px rgba(22, 163, 74, 0.08), 0 2px 6px -1px rgba(22, 163, 74, 0.04);
  --shadow-lg: 0 12px 28px -4px rgba(22, 163, 74, 0.1), 0 6px 14px -4px rgba(22, 163, 74, 0.06);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================
 *  CẤU HÌNH THIẾT LẬP CƠ BẢN (RESETS)
 * ============================================================ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  zoom: 0.9; /* Ép trình duyệt thu nhỏ giao diện về 90% */
  -moz-transform: scale(0.9); /* Hỗ trợ riêng cho trình duyệt Firefox cũ */
  -moz-transform-origin: top center;
}


body {
  font-family: var(--font-body);
  background-color: var(--background);
  color: var(--text-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: var(--spacing-md);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, select, textarea {
  font-family: var(--font-body);
  color: inherit;
  outline: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* Layout container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

/* Hiệu ứng mờ kính (Glassmorphic) */
.glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
}

/* ============================================================
 *  NÚT BẤM (BUTTONS) & THẺ ĐẦU TRANG (HEADER / PROMO BAR / NAVBAR)
 * ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  font-weight: 500;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
}
.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.2);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover {
  background-color: rgba(22, 163, 74, 0.05);
  transform: translateY(-1px);
}

/* Promo Bar */
.promo-bar {
  height: var(--promo-h);
  background-color: var(--primary-dark);
  color: var(--white);
  font-size: 0.825rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--spacing-lg);
  font-weight: 400;
  letter-spacing: 0.05em;
  z-index: 100;
  position: relative;
}

/* Navbar */
.navbar {
  height: var(--navbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--spacing-lg);
  position: sticky;
  top: 0;
  z-index: 90;
  box-shadow: var(--shadow-sm);
  transition: background-color var(--transition-fast);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-dark);
  font-style: bold;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--spacing-lg);
}

.nav-links a {
  font-weight: 500;
  position: relative;
  padding: 6px 0;
  font-size: 0.95rem;
}
.nav-links a:hover {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.nav-action-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(22, 163, 74, 0.04);
  color: var(--text-main);
  transition: all var(--transition-fast);
}
.nav-action-btn:hover {
  background-color: rgba(22, 163, 74, 0.1);
  color: var(--primary);
}

.badge-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: var(--accent-deep);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* ============================================================
 *  TRANG CHỦ (INDEX / HOME)
 * ============================================================ */
/* Hero Section */
.hero-section {
  position: relative;
  height: 550px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(20, 83, 45, 0.45), rgba(20, 83, 45, 0.7));
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  padding: 0 var(--spacing-lg);
}

.hero-content h1 {
  color: var(--white);
  font-size: 3.5rem;
  margin-bottom: var(--spacing-md);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.hero-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  margin-bottom: var(--spacing-lg);
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

/* Sections chung */
.section-title-wrapper {
  text-align: center;
  margin: var(--spacing-2xl) 0 var(--spacing-lg) 0;
}

.section-subtitle {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: var(--spacing-sm);
  display: block;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

/* Product Card */
.product-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.pc-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background-color: var(--surface-soft);
}

.pc-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.product-card:hover .pc-image {
  transform: scale(1.05);
}

.pc-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  color: var(--white);
  text-transform: uppercase;
}
.pc-badge-best { background-color: var(--accent-deep); }
.pc-badge-new { background-color: var(--primary); }

.pc-wishlist-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}
.pc-wishlist-btn:hover {
  background: var(--white);
  color: var(--error);
  transform: scale(1.1);
}
.pc-wishlist-btn.active {
  color: var(--error);
}

.pc-content {
  padding: var(--spacing-md);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.pc-category {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.pc-title {
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 8px;
  line-height: 1.35;
  height: 2.7em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.pc-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: var(--spacing-md);
}

.pc-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.pc-old-price {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: line-line-through;
  text-decoration: line-through;
}

.pc-actions {
  margin-top: auto;
  display: flex;
  gap: 8px;
}

.pc-btn-cart {
  flex-grow: 1;
}

/* ============================================================
 *  BỘ LỌC CỬA HÀNG (SHOP & FILTERS)
 * ============================================================ */
.shop-layout {
  display: flex;
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.shop-sidebar {
  width: 280px;
  flex-shrink: 0;
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  height: fit-content;
  position: sticky;
  top: 100px;
}

.filter-group {
  margin-bottom: var(--spacing-lg);
  border-bottom: 1px solid var(--border);
  padding-bottom: var(--spacing-md);
}
.filter-group:last-child {
  border-bottom: none;
}

.filter-group h4 {
  font-size: 1rem;
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
}

.filter-list {
  list-style: none;
}

.filter-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 0.9rem;
  cursor: pointer;
}

.filter-item input {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
}

.shop-content {
  flex-grow: 1;
}

.shop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-md);
  gap: 12px;
}

.search-box {
  position: relative;
  max-width: 400px;
  flex-grow: 1;
}

.search-box input {
  width: 100%;
  padding: 10px 40px 10px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--white);
  font-size: 0.9rem;
}
.search-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

.search-box-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.sort-select {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--white);
  font-size: 0.9rem;
}

/* ============================================================
 *  CHI TIẾT SẢN PHẨM (PRODUCT DETAIL)
 * ============================================================ */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-2xl);
}

.detail-gallery {
  width: 100%;
}

.detail-img-main {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.detail-img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-info {
  display: flex;
  flex-direction: column;
}

.detail-category {
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.detail-title {
  font-size: 2.25rem;
  margin-bottom: 8px;
}

.detail-meta-row {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.rating-stars {
  color: var(--accent-deep);
  display: flex;
  gap: 2px;
}

.detail-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: var(--spacing-lg);
}

.detail-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.detail-oldprice {
  font-size: 1.3rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.detail-desc {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: var(--spacing-lg);
  color: var(--text-muted);
}

/* Máy tính dinh dưỡng (Portions Calculator) */
.portion-calculator {
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-lg);
}

.portion-calculator h4 {
  font-size: 1.05rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.calc-inputs {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.calc-field {
  flex-grow: 1;
}

.calc-field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 4px;
}

.calc-field input, .calc-field select {
  width: 100%;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--white);
  font-size: 0.9rem;
}

.calc-result {
  background: rgba(22, 163, 74, 0.06);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--primary-dark);
}

/* Chọn size quả */
.size-picker {
  margin-bottom: var(--spacing-lg);
}

.size-picker h5 {
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.size-option-item {
  display: none;
}

.size-option-label {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.size-option-item:checked + .size-option-label {
  border-color: var(--primary);
  background-color: rgba(22, 163, 74, 0.05);
  color: var(--primary);
}

/* Mua hàng & số lượng */
.buy-actions {
  display: flex;
  gap: 12px;
  margin-bottom: var(--spacing-lg);
}

.quantity-selector {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
  width: 120px;
  background: var(--white);
}

.qty-btn {
  width: 36px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-muted);
}
.qty-btn:hover { background-color: var(--surface-soft); }

.qty-input {
  width: 48px;
  text-align: center;
  border: none;
  font-weight: 600;
  font-size: 1rem;
}

.buy-btn-main {
  flex-grow: 1;
}

/* Chi tiết bổ sung */
.additional-specs {
  border-t: 1px solid var(--border);
  padding-top: var(--spacing-md);
  margin-top: var(--spacing-lg);
  font-size: 0.9rem;
}

.spec-item {
  display: flex;
  margin-bottom: 8px;
}

.spec-name {
  width: 140px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ============================================================
 *  GIỎ HÀNG & THANH TOÁN (CART & CHECKOUT)
 * ============================================================ */
.cart-layout {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.cart-table-wrapper {
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  height: fit-content;
}

.cart-item {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  gap: var(--spacing-md);
}
.cart-item:last-child {
  border-bottom: none;
}

.cart-item-img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border);
  transition: transform var(--transition-slow), filter var(--transition-slow) !important;
}
.cart-item-img:hover, .cart-item-img:active {
  transform: scale(1.1) !important;
  filter: brightness(1.02);
}

.cart-item-info {
  flex-grow: 1;
}

.cart-item-title {
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 4px;
}

.cart-item-size {
  font-size: 0.75rem;
  background-color: var(--surface-soft);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  color: var(--primary);
  width: fit-content;
}

.cart-item-price {
  font-weight: 600;
  color: var(--primary-dark);
}

.cart-item-remove {
  color: var(--error);
  font-size: 0.8rem;
  margin-top: 4px;
  display: inline-block;
}

/* Cart Summary */
.summary-card {
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  height: fit-content;
}

.summary-title {
  font-size: 1.2rem;
  margin-bottom: var(--spacing-md);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.9rem;
}
.summary-row.total {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-dark);
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 12px;
}

.coupon-box {
  margin-top: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  display: flex;
  gap: 8px;
}

.coupon-input {
  flex-grow: 1;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

/* Form Thanh Toán */
.checkout-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.checkout-card {
  padding: var(--spacing-lg);
  border-radius: var(--radius-md);
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 4px;
}

.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--white);
  font-size: 0.9rem;
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.05);
}

/* Success page */
.success-container {
  max-width: 600px;
  margin: var(--spacing-xl) auto;
  text-align: center;
  padding: var(--spacing-lg);
}

.success-icon {
  color: var(--primary);
  font-size: 4rem;
  margin-bottom: var(--spacing-md);
}

/* ============================================================
 *  TRANG QUẢN TRỊ (ADMIN DASHBOARD)
 * ============================================================ */
.admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.admin-sidebar {
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  height: fit-content;
}

.admin-menu {
  list-style: none;
}

.admin-menu-item a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.admin-menu-item.active a, .admin-menu-item a:hover {
  color: var(--primary);
  background-color: rgba(22, 163, 74, 0.05);
}

.admin-content {
  flex-grow: 1;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--spacing-md);
}

.admin-table th, .admin-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.admin-table th {
  background-color: var(--surface-soft);
  font-weight: 600;
}

/* Trạng thái đơn hàng */
.status-badge {
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
}
.status-pending { background-color: #fef9c3; color: #713f12; }
.status-confirmed { background-color: #dbeafe; color: #1e40af; }
.status-preparing { background-color: #ffedd5; color: #9a3412; }
.status-shipping { background-color: #f3e8ff; color: #5b21b6; }
.status-delivered { background-color: #dcfce7; color: #166534; }
.status-cancelled { background-color: #fee2e2; color: #991b1b; }

/* ============================================================
 *  CÁC TRANG PHỤ KHÁC (ABOUT, QUIZ, CALENDAR)
 * ============================================================ */
/* Lịch nhắc nhở (Bloom Calendar) */
.calendar-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-top: 12px;
}

.calendar-day-header {
  text-align: center;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 6px 0;
}

.calendar-day-cell {
  aspect-ratio: 1.2;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px;
  font-size: 0.85rem;
  font-weight: 500;
  position: relative;
  display: flex;
  flex-direction: column;
}
.calendar-day-cell.other-month {
  opacity: 0.3;
}
.calendar-day-cell.today {
  border-color: var(--primary);
  background: rgba(22, 163, 74, 0.03);
}
.calendar-day-cell.has-event {
  background: rgba(245, 158, 11, 0.08);
}

.calendar-event-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent);
  border-radius: var(--radius-full);
  margin: auto auto 2px auto;
}

/* Quiz container */
.quiz-card {
  max-width: 600px;
  margin: var(--spacing-xl) auto;
  padding: var(--spacing-lg);
  border-radius: var(--radius-md);
  text-align: center;
}

.quiz-option {
  padding: 14px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  cursor: pointer;
  font-weight: 500;
  transition: all var(--transition-fast);
}
.quiz-option:hover {
  border-color: var(--primary);
  background-color: rgba(22, 163, 74, 0.03);
}
.quiz-option.selected {
  border-color: var(--primary);
  background-color: rgba(22, 163, 74, 0.08);
  color: var(--primary);
}

/* Footer & chat widget */
.footer {
  background-color: var(--primary-dark);
  color: var(--white);
  padding: var(--spacing-xl) 0 var(--spacing-lg) 0;
  margin-top: var(--spacing-2xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

.footer-col h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: var(--spacing-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 6px;
}

.footer-col p, .footer-col li {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
  list-style: none;
}

.footer-copyright {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-md);
}

/* Floating chat buttons */
.floating-chat {
  position: fixed;
  bottom: 90px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

.chat-bubble {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-fast);
}
.chat-bubble:hover {
  transform: scale(1.1);
}
.chat-bubble.zalo { background-color: #0068ff; }
.chat-bubble.messenger { background-color: #0084ff; }
.chat-bubble.phone { background-color: var(--primary); }

/* Alert boxes */
.auth-alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: var(--spacing-md);
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}
.auth-alert.error {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}
.auth-alert.success {
  background-color: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

/* Captcha container */
.captcha-container {
  margin-bottom: var(--spacing-md);
  padding: 10px;
  border-radius: var(--radius-sm);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .detail-grid, .cart-layout, .checkout-layout, .calendar-layout, .admin-layout {
    grid-template-columns: 1fr;
  }
  .shop-sidebar {
    display: none; /* simple for mobile */
  }
}

/* Các lớp tiện ích bổ sung cho thiết kế tương thích (Responsive helper classes) */
.promo-desktop-text {
  display: none;
}
@media (min-width: 768px) {
  .promo-desktop-text {
    display: inline;
  }
}

.grid-2col-responsive {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 768px) {
  .grid-2col-responsive {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

.gallery-bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  grid-auto-rows: 200px;
}
@media (max-width: 768px) {
  .gallery-bento-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
  .gallery-bento-grid > div {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
    height: 200px;
  }
}

.grid-2col-compact-responsive {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 600px) {
  .grid-2col-compact-responsive {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* ============================================================
 *  HỆ THỐNG HIỆU ỨNG CHUYỂN ĐỘNG (ANIMATION SYSTEM)
 * ============================================================
 *  Các lớp hỗ trợ hiệu ứng động mượt mà cho giao diện.
 *  Viết bằng CSS Keyframes và Transition thuần.
 * ============================================================ */

/* 1. Keyframes định nghĩa chuyển động */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

/* 2. Lớp tiện ích kích hoạt hiệu ứng tự động khi tải trang */
.animate-fade-in {
  animation: fadeIn 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
.animate-fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
.animate-fade-in-down {
  animation: fadeInDown 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
.animate-fade-in-left {
  animation: fadeInLeft 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
.animate-fade-in-right {
  animation: fadeInRight 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
.animate-zoom-in {
  animation: zoomIn 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
.animate-pulse-soft {
  animation: pulseSoft 2.5s ease-in-out infinite;
}

/* 3. Lớp trễ thời gian (Staggered animation delays) */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }
.delay-600 { animation-delay: 600ms; }
.delay-700 { animation-delay: 700ms; }
.delay-800 { animation-delay: 800ms; }

/* Đảm bảo phần tử không bị nhấp nháy trước khi chạy hiệu ứng */
[class^="animate-"], [class*=" animate-"] {
  animation-fill-mode: both;
}

/* 4. Hiệu ứng xuất hiện khi cuộn màn hình (Scroll Reveal) */
.scroll-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: opacity, transform;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.scroll-reveal.slide-left {
  transform: translateX(-30px);
}
.scroll-reveal.slide-left.revealed {
  transform: translateX(0);
}

.scroll-reveal.slide-right {
  transform: translateX(30px);
}
.scroll-reveal.slide-right.revealed {
  transform: translateX(0);
}

.scroll-reveal.zoom {
  transform: scale(0.95);
}
.scroll-reveal.zoom.revealed {
  transform: scale(1);
}

/* Hiệu ứng tương tác nâng cao cho các nút và thẻ */
.btn {
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.btn:active {
  transform: scale(0.96) !important;
}

/* Hiệu ứng hover mềm mại cho sản phẩm */
.product-card {
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

/* Nhịp thở cho nút liên hệ gọi điện hỏa tốc */
.chat-bubble.phone {
  animation: pulseSoft 2s infinite;
}

/* ============================================================
 *  BỔ SUNG HIỆU ỨNG CHUYỂN ĐỘNG CAO CẤP (PREMIUM INTERACTIVE ANIMATIONS)
 * ============================================================ */

/* 1. Thanh tiến trình cuộn trang (Top Scroll Progress Bar) */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(to right, var(--primary), var(--accent));
  width: 0%;
  z-index: 9999;
  transition: width 0.1s ease-out;
}

/* 2. Nút Cuộn Lên Đầu Trang (Back to Top Button) */
.back-to-top-btn {
  position: fixed;
  bottom: 25px; /* Tăng từ 20px lên 240px để nó né cụm Zalo ra */
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-full);
  background-color: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 9999;
}
.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top-btn:hover {
  background-color: var(--primary-hover);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.4);
}

/* 3. Hiệu ứng gạch chân trượt mượt mà cho thanh điều hướng Navbar */
.nav-links a {
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav-links a.active {
  color: var(--primary) !important;
  font-weight: 600;
}
.nav-links a.active::after {
  transform: scaleX(1) !important;
  transform-origin: left !important;
}

/* 4. Hiệu ứng phóng to & bóng đổ cao cấp khi chạm/hover vào ảnh */
/* Đảm bảo toàn bộ ảnh chính trong dự án có transition mượt */
.pc-image,
.detail-img-main img,
.gallery-bento-grid img,
#about-story-img {
  transition: transform var(--transition-slow), filter var(--transition-slow) !important;
}

/* Hiệu ứng khi chạm/hover */
.product-card:hover .pc-image,
.product-card:active .pc-image,
.detail-img-main:hover img,
.detail-img-main:active img,
.gallery-bento-grid > div:hover img,
.gallery-bento-grid > div:active img,
.scroll-reveal.slide-left:hover img,
.scroll-reveal.slide-left:active img {
  transform: scale(1.08) !important;
  filter: brightness(1.02) contrast(1.02);
}

/* Đổ bóng phát sáng tinh tế khi hover vào thẻ card */
.product-card:hover, .summary-card:hover, .checkout-card:hover {
  box-shadow: 0 16px 36px -4px rgba(22, 163, 74, 0.14), 0 6px 16px -4px rgba(22, 163, 74, 0.08) !important;
  border-color: rgba(22, 163, 74, 0.25) !important;
}

/* Hoạt ảnh mượt cho các nút hành động trong card */
.pc-btn-cart {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.product-card:hover .pc-btn-cart {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-1px);
}


/* Mặc định ẩn nút 3 gạch trên máy tính */
.menu-toggle {
  display: none;
}

/* --- FIX GIAO DIỆN DI ĐỘNG (Dưới 768px) --- */
@media screen and (max-width: 768px) {
  
  /* 1. Hiện nút 3 gạch */
  .menu-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 4px;
  }

  /* 2. Ép Navbar Container làm gốc tọa độ cố định */
  .navbar .container {
    position: relative !important; /* Đảm bảo menu con căn theo thanh này */
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
  }

  /* 3. Thu nhỏ bớt logo và khoảng cách cụm nút bên phải cho vừa màn hình */
  .nav-logo span {
    font-size: 1rem; /* Giảm size chữ DONGNAIFOOD */
  }
  .nav-actions {
    gap: 8px !important; /* Thu hẹp khoảng cách giữa Tìm kiếm, Giỏ hàng, Admin */
  }
  .nav-action-btn {
    padding: 4px !important;
  }

  /* 4. BIẾN MENU CHỮ THÀNH Ô THẢ XUỐNG (Không chiếm diện tích của thanh chính) */
  .nav-links {
    display: none; /* Mặc định PHẢI ẨN để không đẩy nút Admin */
    
    /* Biến thành hộp bay lơ lửng bên dưới navbar */
    position: absolute !important;
    top: 100%; /* Nằm ngay sát mép dưới thanh navbar */
    left: 0;
    width: 100%; /* Bung lụa rộng bằng toàn màn hình hoặc đặt 240px tùy bạn */
    
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    border-bottom: 3px solid var(--primary);
    padding: 10px 0 !important;
    margin: 0 !important;
    z-index: 99999; /* Luôn nằm trên cùng, không bị banner đè */
    
    /* Chuyển các chữ thành hàng dọc */
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0 !important;
  }

  /* 5. Khi bấm nút 3 gạch, JS thêm class "show" -> Hiện menu lên mượt mà */
  .nav-links.show {
    display: flex !important;
  }

  /* Style lại từng dòng link trong menu cho đẹp */
  .nav-links li {
    width: 100% !important;
    margin: 0 !important;
  }

  .nav-links li a {
    display: block !important;
    padding: 12px 20px !important;
    width: 100%;
    color: #333 !important;
    font-weight: 500;
    text-align: left;
    box-sizing: border-box;
  }

  /* Hiệu ứng khi lướt tay qua các mục chọn */
  .nav-links li a:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--primary) !important;
  }
}

/* 4. Hiệu ứng phóng to & bóng đổ cao cấp khi chạm/hover vào ảnh */
/* Đảm bảo toàn bộ ảnh chính trong dự án có transition mượt */
.pc-image,
.detail-img-main img,
.gallery-bento-grid img,
#about-story-img {
  transition: transform var(--transition-slow), filter var(--transition-slow) !important;
}

/* Hiệu ứng khi chạm/hover */
.product-card:hover .pc-image,
.product-card:active .pc-image,
.detail-img-main:hover img,
.detail-img-main:active img,
.gallery-bento-grid > div:hover img,
.gallery-bento-grid > div:active img,
.scroll-reveal.slide-left:hover img,
.scroll-reveal.slide-left:active img {
  transform: scale(1.08) !important;
  filter: brightness(1.02) contrast(1.02);
}

/* Đổ bóng phát sáng tinh tế khi hover vào thẻ card */
.product-card:hover, .summary-card:hover, .checkout-card:hover {
  box-shadow: 0 16px 36px -4px rgba(22, 163, 74, 0.14), 0 6px 16px -4px rgba(22, 163, 74, 0.08) !important;
  border-color: rgba(22, 163, 74, 0.25) !important;
}

/* Hoạt ảnh mượt cho các nút hành động trong card */
.pc-btn-cart {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.product-card:hover .pc-btn-cart {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-1px);
}


/* ==========================================================================
   LIVE AGRI-PRICE INDEX - PHỐI MÀU TRẮNG XANH ĐỒNG BỘ TRANG WEB
   ========================================================================== */
.ef-price-section {
  padding: 60px 0;
  background-color: #fafdf6; /* Nền trắng ngà đồng bộ với tone nền trang chủ */
  color: #1e293b;
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  overflow: hidden;
}

.ef-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- 1. THANH CHỮ CHẠY MARQUEE DƯỚI MENU --- */
.ef-global-marquee-wrapper {
  background: #ffffff;
  width: 100%;
  padding: 10px 0;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.03);
}

.ef-marquee-track {
  display: flex;
  white-space: nowrap;
  width: max-content;
  animation: efMarqueeScroll 28s linear infinite;
}

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

.ef-marquee-item {
  display: inline-flex;
  align-items: center;
  margin-right: 55px;
  font-size: 13.5px;
  font-weight: 600;
}

.ef-marquee-label {
  color: #64748b;
  margin-right: 6px;
}

.ef-marquee-price {
  color: #16a34a; 
  margin-right: 6px;
  font-weight: 700;
}

.ef-marquee-change.ef-marquee-up { color: #15803d; font-weight: 700; }
.ef-marquee-change.ef-marquee-down { color: #dc2626; font-weight: 700; }

@keyframes efMarqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-33.33%); }
}

/* --- 2. HEADER TIÊU ĐỀ CHÍNH --- */
.ef-price-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 15px;
}

.ef-price-title-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ef-price-title-block h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  color: #14532d; 
}

.ef-badge-live {
  background: #16a34a;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  animation: efPulse 1.6s infinite;
}

.ef-clock-block {
  background: #ffffff;
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 14px;
  color: #15803d;
  border: 1px solid #e2e8f0;
  font-weight: 600;
}

/* --- 3. BẢNG GIÁ CHUẨN ĐỒNG BỘ TRANG WEB --- */
.ef-table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(22, 163, 74, 0.04);
}

.ef-price-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 15px;
}

.ef-price-table th {
  background-color: #14532d; 
  color: #ffffff;            
  padding: 18px 16px;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ef-price-table td {
  padding: 18px 16px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  transition: background-color 0.2s ease;
}

.ef-price-table tbody tr:last-child td {
  border-bottom: none;
}

.ef-price-table tbody tr:hover td {
  background-color: #f7fee7; 
}

.ef-crop-name {
  font-weight: 700;
  color: #14532d;
}

.ef-spec-tag {
  font-size: 13.5px;
  color: #64748b;
}

.ef-change-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  min-width: 95px;
}

.ef-change-up {
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
}

.ef-change-down {
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
}

.text-right { text-align: right; }
.text-center { text-align: center; }
.ef-table-price-cell { font-weight: 700; font-size: 16px; color: #1e293b; }
.ef-time-cell { color: #94a3b8; font-size: 13px; }

/* --- 4. HIỆU ỨNG CHỚP NHÁY BACKGROUND --- */
.ef-price-table tr.ef-flash-up td {
  animation: efFlashGreenBg 1.3s ease-in-out;
}

.ef-price-table tr.ef-flash-down td {
  animation: efFlashRedBg 1.3s ease-in-out;
}

@keyframes efFlashGreenBg {
  0%, 100% { background-color: transparent; }
  30% { background-color: rgba(22, 163, 74, 0.18); }
}

@keyframes efFlashRedBg {
  0%, 100% { background-color: transparent; }
  30% { background-color: rgba(220, 38, 38, 0.15); }
}

@keyframes efPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ==========================================================================
   ĐỒNG BỘ RESPONSIVE MENU THEO ĐÚNG ID JAVASCRIPT (< 1024PX)
   ========================================================================== */
@media (max-width: 1200px) {
  
  /* 1. Ép ẩn thanh menu chữ nằm ngang bình thường */
  #nav-links-menu,
  .nav-links,
  .header-nav {
    display: none !important; 
    position: absolute;
    top: 100%; /* Đẩy vị trí menu nằm ngay dưới thanh Header */
    left: 0;
    width: 100%;
    background-color: #ffffff !important; /* Nền trắng sạch sẽ */
    flex-direction: column !important;    /* Xếp các chữ menu thành hàng dọc */
    padding: 20px !important;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
    border-top: 1px solid #e2e8f0;
    gap: 15px !important;
    z-index: 999;
  }

  /* 2. Khi JS thêm class .show, hiển thị menu dọc xổ xuống mượt mà */
  #nav-links-menu.show {
    display: flex !important;
  }

  /* 3. ÉP NÚT BẤM 3 DẤU GẠCH XUẤT HIỆN ĐỒNG THỜI NGAY LẬP TỨC */
  #menu-toggle-btn { 
    display: block !important; /* Bỏ ẩn từ các thuộc tính CSS khác */
    visibility: visible !important;
    opacity: 1 !important;
    cursor: pointer;
    font-size: 26px;
    color: var(--primary-dark, #14532d) !important;
    background: none !important;
    border: none !important;
  }

  /* 4. Đảm bảo cấu trúc thanh Header giữ nguyên hàng ngang không bị méo */
  header .container,
  .header-container,
  .promo-bar + .container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    position: relative;
  }
}