/* ===== TAILWIND CUSTOM OVERRIDES ===== */
/* Chỉ giữ lại styles phức tạp mà Tailwind không cover */

/* ===== BOOTSTRAP 5 OVERRIDES & CUSTOM ===== */
:root {
  --bs-primary: #2e7d32;
  --bs-primary-rgb: 46,125,50;
  --pink: #2e7d32;
  --pink-dark: #1b5e20;
  --pink-light: #e8f5e9;
  --green: #66bb6a;
  --text: #333;
  --text-light: #777;
  --border: #eee;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; }

/* Nền tảng layout — tránh zoom font iOS, tràn ngang, an toàn tai thỏ */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  overflow-x: hidden;
}
@supports (overflow-x: clip) {
  body { overflow-x: clip; }
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }
img { max-width: 100%; display: block; }
video, iframe, embed, object { max-width: 100%; }

/* ===== BRAND NAME ===== */
.brand-name { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; text-decoration: none; flex-shrink: 0; gap: 4px; }
.brand-main-line { display: flex; align-items: baseline; gap: 6px; line-height: 1; }
.brand-oc { font-size: 26px; background: linear-gradient(135deg,#1b5e20,#2e7d32); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-family: Georgia,serif; font-style: italic; font-weight: 900; }
.brand-bo { font-size: 34px; background: linear-gradient(135deg,#1b5e20,#43a047,#66bb6a); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-family: Georgia,serif; font-style: italic; font-weight: 900; letter-spacing: -1px; }
.brand-quan { font-size: 20px; background: linear-gradient(135deg,#2e7d32,#81c784); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-family: Georgia,serif; font-style: italic; font-weight: 700; letter-spacing: 1px; }
.brand-tagline { font-size: 10px; font-weight: 600; color: var(--text-light); letter-spacing: 2.5px; text-transform: uppercase; -webkit-text-fill-color: var(--text-light); }
.brand-name::after { content: ''; display: block; height: 2px; width: 100%; background: linear-gradient(90deg,#1b5e20,#43a047,#a5d6a7); border-radius: 2px; }

/* ===== LOGO ===== */
.logo-icon { width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; }
.logo-img { width: 64px; height: 64px; object-fit: contain; }

/* ===== PROMO TOPBAR ===== */
.promo-topbar { position: relative; background: linear-gradient(90deg, #1b5e20, #2e7d32, #43a047, #2e7d32, #1b5e20); border-bottom: 2px solid #66bb6a; height: 44px; overflow: hidden; display: flex; align-items: center; }
.promo-topbar-inner { flex: 1; overflow: hidden; height: 100%; display: flex; align-items: center; }
.promo-track { display: flex; align-items: center; white-space: nowrap; animation: promoScroll 32s linear infinite; }
.promo-topbar:hover .promo-track { animation-play-state: paused; }
@keyframes promoScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.promo-block { display: inline-flex; align-items: center; gap: 8px; padding: 0 20px; height: 44px; flex-shrink: 0; border-left: 1px solid rgba(255,255,255,0.2); }
.promo-block:first-child { border-left: none; }
.promo-block-main { font-size: 13px; font-weight: 700; color: #fff; font-style: italic; letter-spacing: 0.3px; }
.promo-block-main i { color: #a5d6a7; animation: bounce 1.2s infinite alternate; }
@keyframes bounce { from { transform: translateY(0); } to { transform: translateY(-3px); } }
.promo-block-deal { background: rgba(255,255,255,0.15); border-radius: 4px; padding: 0 16px; flex-direction: column; gap: 1px; align-items: flex-start; justify-content: center; border: 1px solid rgba(255,255,255,0.3); }
.promo-deal-label { font-size: 10px; font-weight: 800; color: #ffd700; letter-spacing: 1px; text-transform: uppercase; line-height: 1; }
.promo-deal-desc { font-size: 12px; font-weight: 600; color: #e8f5e9; line-height: 1; }
.promo-block-price { background: rgba(0,0,0,0.2); border-radius: 4px; padding: 0 16px; flex-direction: column; align-items: center; justify-content: center; min-width: 90px; border: 1px solid rgba(255,255,255,0.25); }
.promo-only { font-size: 9px; font-weight: 800; color: #ffd700; letter-spacing: 1.5px; text-transform: uppercase; line-height: 1; }
.promo-price { font-size: 22px; font-weight: 900; color: #fff; line-height: 1.1; }
.promo-block-guarantee { font-size: 11px; font-weight: 700; color: #e8f5e9; }
.promo-block-guarantee i { font-size: 18px; color: #ffd700; }
.promo-block-guarantee small { font-size: 10px; color: #a5d6a7; font-weight: 400; }
.promo-close { position: absolute; right: 0; top: 0; bottom: 0; width: 36px; background: rgba(0,0,0,0.15); border: none; border-left: 1px solid rgba(255,255,255,0.2); cursor: pointer; color: #a5d6a7; font-size: 13px; z-index: 2; transition: background 0.2s; }
.promo-close:hover { background: rgba(0,0,0,0.3); color: #fff; }
.promo-topbar.hidden { display: none; }

/* ===== HEADER ===== */
.header { background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,0.08); position: sticky; top: 0; z-index: 1000; }
/* Hàng logo + tìm kiếm: cho phép co trong flex (màn hẹp không đẩy vỡ ngang) */
#siteHeaderTop .max-w-7xl {
  min-width: 0;
}

/* Header top — dùng cho các trang không phải index */
.header-top { background: #e8f0fe; border-bottom: 1px solid #c5d8f8; }
.header-top-inner {
  max-width: 1200px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; gap: 16px;
}
.header-search { flex: 1; max-width: 360px; margin: 0 auto; display: flex; border: 2px solid transparent; border-radius: 30px; overflow: hidden; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, #1b5e20, #43a047, #a5d6a7) border-box; box-shadow: 0 2px 12px rgba(46,125,50,0.2); }
.header-search input { flex: 1; border: none; outline: none; padding: 10px 18px; font-size: 14px; min-width: 0; background: transparent; }
.header-search input::placeholder { color: #aaa; }
.header-search button { background: linear-gradient(135deg, #1b5e20, #2e7d32, #43a047); border: none; color: #fff; padding: 10px 20px; cursor: pointer; font-size: 15px; transition: opacity 0.2s; flex-shrink: 0; }
.header-search button:hover { opacity: 0.85; }
.header-right { display: flex; align-items: center; gap: 12px; margin-left: auto; flex-shrink: 0; }

/* Gọi đặt hàng + Giỏ hàng: cùng chiều cao tối thiểu, padding đồng nhất */
.cart-icon,
.header-contact-btn {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  min-height: 52px;
  padding: 10px 18px;
  border-radius: 30px;
  box-shadow: 0 3px 12px rgba(46,125,50,0.4);
  transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap;
}
.cart-icon {
  gap: 8px;
  cursor: pointer;
  background: linear-gradient(135deg, #1b5e20, #2e7d32, #43a047);
  color: #fff;
  border: none;
  font-size: 14px;
  font-weight: 700;
}
.cart-icon:hover { opacity: 0.9; transform: translateY(-1px); }

/* Nút liên hệ thay giỏ hàng */
.header-contact-btn {
  gap: 10px;
  background: linear-gradient(135deg, #1b5e20, #2e7d32, #43a047);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}
.header-contact-btn:hover { opacity: 0.9; transform: translateY(-1px); color: #fff; }
.header-contact-btn > i {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
  animation: ringPhone 2s infinite;
}
@keyframes ringPhone {
  0%,100% { transform: rotate(0); }
  10% { transform: rotate(-15deg); }
  20% { transform: rotate(15deg); }
  30% { transform: rotate(-10deg); }
  40% { transform: rotate(10deg); }
  50% { transform: rotate(0); }
}
.header-contact-info { display: flex; flex-direction: column; line-height: 1.2; }
.header-contact-label { font-size: 10px; opacity: 0.85; font-weight: 500; letter-spacing: 0.5px; }
.header-contact-number { font-size: 15px; font-weight: 800; letter-spacing: 0.3px; }
@media (max-width: 768px) {
  .header-contact-info { display: none; }
  .header-contact-btn {
    padding: 9px 12px;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    min-height: 0;
    justify-content: center;
  }
  .header-contact-btn > i { width: auto; height: auto; background: none; }
}
.cart-count { background: #fff; color: #2e7d32; font-size: 11px; font-weight: 800; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.hamburger {
  display: none;
  position: relative;
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: var(--text);
  padding: 4px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}
.hamburger .hamburger-icon--close { display: none; }
.hamburger.is-open .hamburger-icon--bars { display: none; }
.hamburger.is-open .hamburger-icon--close { display: block; }

/* ===== MOBILE BOTTOM NAV (chỉ màn nhỏ) — luôn dính đáy viewport khi cuộn ===== */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  z-index: 1040;
  background: #fff;
  border-top: 1px solid #e8e8e8;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.08);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  justify-content: space-around;
  align-items: stretch;
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.mobile-bottom-nav__item {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 2px 8px;
  min-height: 56px;
  border: none;
  background: none;
  color: #64748b;
  font-size: 9px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.2s, background 0.2s;
}
.mobile-bottom-nav__item span {
  display: block;
  max-width: 100%;
  line-height: 1.15;
  text-align: center;
  word-break: break-word;
  hyphens: auto;
}
.mobile-bottom-nav__item i {
  font-size: 18px;
  line-height: 1;
  color: #475569;
  flex-shrink: 0;
}
.mobile-bottom-nav__item--call i {
  color: #2e7d32;
}
.mobile-bottom-nav__item.is-active,
.mobile-bottom-nav__item.is-active i {
  color: var(--pink);
}
.mobile-bottom-nav__item:active {
  background: #f8fafc;
}
.mobile-bottom-nav__icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
}
.mobile-bottom-nav__badge {
  position: absolute;
  top: -6px;
  right: -10px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  font-size: 10px;
  font-weight: 800;
  line-height: 17px;
  width: auto;
}

@media (max-width: 768px) {
  /* Ẩn Trang chủ trong menu xổ (mobile — vẫn có ô Trang chủ ở thanh dưới) */
  .main-nav > a.nav-home-desktop-only {
    display: none !important;
  }
  /* Cao hơn nút chat (Messenger/Zalo) để không bị che Giỏ hàng */
  .mobile-bottom-nav {
    display: flex;
    z-index: 10050;
  }
  body {
    padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px));
  }
  /* Cao hẳn phía trên thanh menu đáy (~62px + safe); z-index > thanh để không bị đè (đặc biệt góc trái chồng ô Trang chủ) */
  .back-to-top {
    bottom: calc(132px + env(safe-area-inset-bottom, 0px));
    left: 14px;
    z-index: 10060;
  }
  /* Cụm Zalo/Messenger: đẩy lên tương tự, vẫn dưới z-index thanh đáy để không chặn Giỏ hàng khi trùng vùng */
  .float-contact {
    bottom: calc(148px + env(safe-area-inset-bottom, 0px));
    right: 14px;
    z-index: 10040;
  }
}

/* ===== NAV ===== */
.header-nav-bar { background: var(--pink); position: relative; }
/* Nhiều mục menu: thanh ngang cuộn được, không đẩy vỡ layout */
.header-nav-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.5) rgba(0, 0, 0, 0.08);
}
.header-nav-scroll::-webkit-scrollbar { height: 6px; }
.header-nav-scroll::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.06); border-radius: 3px; }
.header-nav-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.45);
  border-radius: 3px;
}
.main-nav {
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
  width: max-content;
  min-width: 100%;
}
.nav-item { position: relative; }
.nav-item > a, a.nav-item { display: flex; align-items: center; gap: 6px; padding: 13px 16px; color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap; transition: background 0.2s; cursor: pointer; }
.nav-item > a:hover, a.nav-item:hover, .nav-item > a.active, a.nav-item.active { background: rgba(0,0,0,0.15); }
.nav-item > a i.fa-chevron-down { font-size: 10px; opacity: 0.8; }
.nav-contact { background: rgba(0,0,0,0.15); }

/* Menu Liên hệ: icon trắng trên nền nav hồng (không dùng accent CMS) */
a.nav-item.nav-lien-he > i:first-of-type {
  color: #fff !important;
}

/* ===== COMBO / SALE — mục menu nổi bật (đồng bộ xanh + vàng ưu đãi) ===== */
.nav-combo-sale {
  position: relative;
  margin-left: 6px;
  border-radius: 10px !important;
  padding: 10px 14px !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: linear-gradient(135deg, #c2410c 0%, #f59e0b 40%, #2e7d32 100%) !important;
  background-size: 180% 180% !important;
  box-shadow: 0 2px 14px rgba(46, 125, 50, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.nav-combo-sale:hover {
  opacity: 0.96;
  transform: translateY(-1px);
  filter: brightness(1.05);
}
@media (prefers-reduced-motion: no-preference) {
  .nav-combo-sale {
    animation: saleShine 8s ease-in-out infinite alternate;
  }
}
@keyframes saleShine {
  0% { background-position: 0% 40%; }
  100% { background-position: 100% 60%; }
}
.nav-combo-sale i {
  color: #fff !important;
  font-size: 14px;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.2));
}
@media (prefers-reduced-motion: no-preference) {
  .nav-combo-sale i {
    animation: firePulse 2.2s ease-in-out infinite alternate;
  }
}
@keyframes firePulse {
  from { transform: scale(1); }
  to { transform: scale(1.12); }
}
.combo-sale-text {
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}
.combo-sale-badge {
  background: rgba(255, 255, 255, 0.95);
  color: #b45309;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.06em;
  padding: 3px 7px;
  border-radius: 999px;
  margin-left: 6px;
  display: inline-block;
  line-height: 1.2;
  border: 1px solid rgba(245, 158, 11, 0.5);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
@media (prefers-reduced-motion: no-preference) {
  .combo-sale-badge {
    animation: badgePop 2.5s ease-in-out infinite alternate;
  }
}
@keyframes badgePop {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

/* Dropdown */
.dropdown { position: absolute; top: 100%; left: 0; background: #fff; min-width: 230px; border-radius: 0 0 10px 10px; box-shadow: 0 8px 24px rgba(0,0,0,0.12); opacity: 0; pointer-events: none; transform: translateY(8px); transition: all 0.25s ease; z-index: 200; border-top: 3px solid var(--pink); }
.has-dropdown:hover .dropdown,
.has-dropdown.open .dropdown { opacity: 1; pointer-events: all; transform: translateY(0); }
.dropdown a { display: flex; align-items: center; gap: 10px; padding: 11px 18px; font-size: 13px; color: var(--text); border-bottom: 1px solid var(--border); transition: all 0.2s; }
.dropdown a:last-child { border-bottom: none; }
.dropdown a i { font-size: 13px; color: var(--pink); width: 16px; text-align: center; }
.dropdown a:hover { background: var(--pink-light); color: var(--pink); padding-left: 24px; }

/* Dropdown wide — dành cho Danh Mục */
.dropdown.dropdown-wide { min-width: 240px; }

/* Dropdown cấp 2 có sub (cấp 3 xổ phải) */
.dropdown-item-sub { position: relative; }
.dropdown-has-sub {
  display: flex !important; align-items: center !important;
  justify-content: space-between !important;
  padding: 11px 18px !important; font-size: 13px;
  color: var(--text) !important; border-bottom: 1px solid var(--border);
  transition: all 0.2s; cursor: pointer;
}
.dropdown-has-sub span { display: flex; align-items: center; gap: 10px; }
.dropdown-has-sub span i { font-size: 13px; color: var(--pink); width: 16px; text-align: center; }
.dropdown-has-sub .sub-arrow { font-size: 10px; color: var(--text-light); transition: transform 0.2s; flex-shrink: 0; }
.dropdown-item-sub:hover .dropdown-has-sub { background: var(--pink-light); color: var(--pink) !important; }
.dropdown-item-sub:hover .sub-arrow { color: var(--pink); transform: translateX(2px); }

/* Dropdown cấp 3 — xổ ra bên phải */
.dropdown-sub {
  position: absolute; top: 0; left: 100%;
  background: #fff; min-width: 200px;
  border-radius: 0 10px 10px 0;
  box-shadow: 6px 4px 20px rgba(0,0,0,0.12);
  border-top: 3px solid var(--pink);
  border-left: 2px solid var(--pink-light);
  opacity: 0; pointer-events: none;
  transform: translateX(8px);
  transition: all 0.22s ease;
  z-index: 300;
}
.dropdown-item-sub:hover .dropdown-sub { opacity: 1; pointer-events: all; transform: translateX(0); }
.dropdown-sub a { display: flex; align-items: center; gap: 8px; padding: 10px 16px; font-size: 13px; color: var(--text); border-bottom: 1px solid var(--border); transition: all 0.2s; }
.dropdown-sub a:last-child { border-bottom: none; }
.dropdown-sub a i { font-size: 8px; color: var(--pink); }
.dropdown-sub a:hover { background: var(--pink-light); color: var(--pink); padding-left: 22px; }

/* Desktop: menu cấp 2 xổ sang phải (flyout) */
@media (min-width: 769px) {
  /* Cho phép dropdown thoát ra ngoài nav scroll container */
  .header-nav-scroll {
    overflow: visible;
  }
}

/* Combo item trong dropdown */
.dropdown-combo {
  display: flex !important; align-items: center; gap: 10px;
  padding: 11px 18px !important; font-size: 13px; font-weight: 700;
  color: var(--pink) !important; background: var(--pink-light);
  border-top: 1px solid var(--border); border-radius: 0 0 10px 10px;
  transition: all 0.2s;
}
.dropdown-combo:hover { background: var(--pink) !important; color: #fff !important; padding-left: 24px !important; }
.dropdown-combo i { font-size: 14px; color: inherit !important; }

/* Mega Menu */
.has-mega { position: static !important; }
.mega-menu { position: absolute; left: 0; right: 0; top: 100%; background: #fff; display: grid; grid-template-columns: repeat(4,1fr); box-shadow: 0 12px 40px rgba(0,0,0,0.15); border-top: 3px solid var(--pink); border-radius: 0 0 12px 12px; opacity: 0; pointer-events: none; transform: translateY(10px); transition: all 0.25s ease; z-index: 300; }
.has-mega:hover .mega-menu { opacity: 1; pointer-events: all; transform: translateY(0); }
.mega-col { padding: 20px 18px; border-right: 1px solid #f0f0f0; }
.mega-col:last-child { border-right: none; }
.mega-col-title { font-size: 12px; font-weight: 800; color: var(--pink); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid #f0f0f0; display: flex; align-items: center; gap: 6px; }
.mega-col a { display: flex; align-items: center; gap: 7px; padding: 7px 8px; font-size: 13px; color: var(--text); border-radius: 6px; transition: all 0.2s; border-bottom: none !important; }
.mega-col a:hover { background: var(--pink-light); color: var(--pink); padding-left: 14px; }
.mega-col a i { font-size: 10px; color: var(--pink); }
.mega-col-promo { background: #fafafa; }
.mega-promo-item { display: flex !important; align-items: center; gap: 10px; padding: 8px !important; border-radius: 8px !important; margin-bottom: 8px; border: 1px solid #f0f0f0 !important; background: #fff !important; }
.mega-promo-item:hover { border-color: var(--pink) !important; background: var(--pink-light) !important; }
.mega-promo-item img { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.mega-promo-item strong { display: block; font-size: 12px; font-weight: 700; color: var(--text); }
.mega-promo-item span { font-size: 11px; color: var(--text-light); }
.mega-view-all { display: flex !important; align-items: center; justify-content: center; gap: 6px; background: var(--pink) !important; color: #fff !important; padding: 8px !important; border-radius: 8px !important; font-size: 12px; font-weight: 700; margin-top: 4px; }
.mega-view-all:hover { background: var(--pink-dark) !important; }
.mega-view-all i { color: #fff !important; font-size: 11px !important; }

/* ===== HERO ===== */
.hero { position: relative; overflow: hidden; height: 560px; }
.hero-slides { height: 100%; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 0.8s ease; display: flex; align-items: center; }
.hero-slide::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg,rgba(0,0,0,0.55) 0%,rgba(0,0,0,0.1) 60%,transparent 100%); }
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-content { position: relative; z-index: 2; max-width: 560px; margin-left: 8%; color: #fff; }
.hero-sub { font-size: 16px; letter-spacing: 2px; text-transform: uppercase; opacity: 0.85; margin-bottom: 10px; }
.hero-content h1 { font-size: 52px; font-weight: 800; line-height: 1.1; margin-bottom: 16px; }
.hero-desc { font-size: 17px; opacity: 0.9; margin-bottom: 28px; }
.hero-prev, .hero-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; background: rgba(255,255,255,0.2); border: 2px solid rgba(255,255,255,0.5); color: #fff; width: 46px; height: 46px; border-radius: 50%; cursor: pointer; font-size: 16px; transition: all 0.2s; backdrop-filter: blur(4px); }
.hero-prev { left: 20px; }
.hero-next { right: 20px; }
.hero-prev:hover, .hero-next:hover { background: var(--pink); border-color: var(--pink); }
.hero-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 10; display: flex; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: all 0.3s; }
.dot.active { background: #fff; width: 28px; border-radius: 5px; }

/* ===== BUTTONS ===== */
.btn-primary { display: inline-block; background: var(--pink); color: #fff; padding: 12px 28px; border-radius: 30px; font-weight: 600; font-size: 14px; transition: all 0.2s; border: 2px solid var(--pink); cursor: pointer; }
.btn-primary:hover { background: var(--pink-dark); border-color: var(--pink-dark); transform: translateY(-2px); }
.btn-outline { display: inline-block; background: transparent; color: #fff; padding: 12px 28px; border-radius: 30px; font-weight: 600; font-size: 14px; border: 2px solid rgba(255,255,255,0.7); transition: all 0.2s; }
.btn-outline:hover { background: rgba(255,255,255,0.15); }
.full-width { width: 100%; text-align: center; }

/* ===== HOME — Ưu điểm (trên danh mục) ===== */
.home-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.home-feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 14px 10px;
  background: linear-gradient(165deg, #ecf8f0 0%, #fff 50%);
  border: 1px solid #dcedc8;
  border-radius: 16px;
  box-shadow: 0 2px 14px rgba(46, 125, 50, 0.07);
}
.home-feature-icon {
  font-size: 1.65rem;
  color: #2e7d32;
  line-height: 1;
}
.home-feature-text { min-width: 0; }
.home-feature-text strong {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: #1b5e20;
  line-height: 1.25;
}
.home-feature-text p {
  margin: 4px 0 0;
  font-size: 10px;
  line-height: 1.4;
  color: #5f6b63;
}
@media (min-width: 1024px) {
  .home-features-section .max-w-7xl { padding-top: 0; padding-bottom: 0; }
  .home-features-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
  }
  .home-feature-item {
    flex-direction: row;
    text-align: left;
    align-items: center;
    gap: 14px;
    padding: 22px 20px;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    border-right: 1px solid #eef2f0;
  }
  .home-feature-item:last-child { border-right: none; }
  .home-feature-icon { font-size: 2.25rem; }
  .home-feature-text strong { font-size: 14px; color: #1a1a1a; }
  .home-feature-text p { font-size: 12px; color: #6b7280; }
}

/* ===== CATEGORIES ===== */
.home-categories-heading {
  margin-bottom: 2rem;
}
@media (min-width: 769px) {
  .home-categories-heading {
    margin-bottom: 2.75rem;
  }
}
.home-categories-sub {
  margin-top: 0.65rem;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #5d6d63;
}
/* ===== CATEGORY SLIDER ===== */
.cat-slider-wrap { position: relative; display: flex; align-items: center; gap: 8px; }
.cat-slider-viewport { overflow: hidden; flex: 1; }
.cat-slider-track { display: flex; gap: 16px; transition: transform 0.4s ease; will-change: transform; }
.cat-slide-item { flex: 0 0 calc(25% - 12px); min-width: 180px; text-decoration: none; }
@media (max-width: 1024px) { .cat-slide-item { flex: 0 0 calc(33.333% - 11px); } }
@media (max-width: 640px)  { .cat-slide-item { flex: 0 0 calc(50% - 8px); } }
.cat-slider-btn { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; border: none; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.15); color: #2e7d32; font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s, opacity .2s; z-index: 2; }
.cat-slider-btn:hover { background: #2e7d32; color: #fff; }

.cat-card { position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer; aspect-ratio: 3/4; }
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.cat-card:hover img { transform: scale(1.08); }
.cat-overlay { position: absolute; inset: 0; background: linear-gradient(to top,rgba(0,0,0,0.7) 0%,rgba(0,0,0,0.1) 45%,transparent 72%); display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; color: #fff; }
.cat-overlay h3 { font-size: 18px; font-weight: 700; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.cat-overlay-icon { font-size: 16px; opacity: 0.95; }
.cat-overlay span { font-size: 13px; opacity: 0.88; margin-top: 4px; line-height: 1.35; }

/* Mobile: danh mục trang chủ — thẻ lớn hơn, vuốt ngang, bỏ nút mũi tên chiếm chỗ */
@media (max-width: 768px) {
  .home-categories-section {
    background: linear-gradient(180deg, #fafdfb 0%, #f0f4f1 50%, #eceff1 100%);
  }
  .home-categories-heading {
    margin-bottom: 1.75rem;
    padding: 0 4px;
  }
  .section-heading--categories {
    font-size: 22px;
    padding-bottom: 12px;
  }
  .section-heading--categories::after {
    width: 48px;
    height: 3px;
  }
  .home-categories-sub {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.6;
    color: #5d6d63;
    max-width: 20rem;
    margin-left: auto;
    margin-right: auto;
  }
  .cat-slider-wrap {
    gap: 0;
    align-items: stretch;
  }
  .cat-slider-btn {
    display: none;
  }
  .cat-slider-viewport {
    flex: 1;
    width: 100%;
    margin-left: -8px;
    margin-right: -8px;
    padding: 0 8px 8px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: rgba(46, 125, 50, 0.35) rgba(0, 0, 0, 0.05);
  }
  .cat-slider-viewport::-webkit-scrollbar {
    height: 4px;
  }
  .cat-slider-viewport::-webkit-scrollbar-thumb {
    background: rgba(46, 125, 50, 0.35);
    border-radius: 4px;
  }
  .cat-slider-track {
    gap: 10px;
    width: max-content;
    transition: none;
  }
  /* Đúng 2 thẻ / hàng (trừ padding px-4 hai bên ~32px và khoảng cách giữa 2 thẻ) */
  .cat-slide-item {
    flex: 0 0 calc(50vw - 21px);
    min-width: 0;
    max-width: none;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
  }
  .cat-card {
    border-radius: 18px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
    aspect-ratio: 4 / 5;
  }
  .cat-overlay {
    padding: 14px 14px 16px;
  }
  .cat-overlay h3 {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.02em;
  }
  .cat-overlay-icon {
    font-size: 14px;
  }
  .cat-overlay span {
    font-size: 11px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* ===== PRODUCTS ===== */
.tab-btn {
  flex-shrink: 0;
  padding: 9px 22px;
  border-radius: 24px;
  border: 1.5px solid var(--border);
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light);
  transition: all 0.2s;
  white-space: nowrap;
}
.tab-btn.active, .tab-btn:hover { background: var(--pink); color: #fff; border-color: var(--pink); }

/* Tab danh mục SP nổi bật — desktop: xuống dòng + căn giữa; mobile: một hàng + cuộn ngang */
.product-tabs-scroll {
  margin-bottom: 2rem;
}
.product-tabs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
@media (max-width: 768px) {
  .product-tabs-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    margin-left: -16px;
    margin-right: -16px;
    padding: 0 16px 10px;
    margin-bottom: 1.5rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(46, 125, 50, 0.45) rgba(0, 0, 0, 0.06);
  }
  .product-tabs-scroll::-webkit-scrollbar {
    height: 5px;
  }
  .product-tabs-scroll::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
  }
  .product-tabs-scroll::-webkit-scrollbar-thumb {
    background: rgba(46, 125, 50, 0.4);
    border-radius: 3px;
  }
  .product-tabs-row {
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: max-content;
  }
}
.product-card { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; transition: transform 0.3s, box-shadow 0.3s; cursor: pointer; }
.product-card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(0,0,0,0.12); }
.product-img { position: relative; overflow: hidden; aspect-ratio: 1; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.product-card:hover .product-img img { transform: scale(1.06); }
.product-badge { position: absolute; top: 12px; left: 12px; background: var(--pink); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 12px; }
.product-badge.new { background: var(--green); }
.product-actions { position: absolute; bottom: -50px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; padding: 10px; transition: bottom 0.3s; }
.product-card:hover .product-actions { bottom: 0; }
.product-actions button { background: #fff; border: none; border-radius: 50%; width: 36px; height: 36px; cursor: pointer; font-size: 14px; color: var(--text); box-shadow: 0 2px 8px rgba(0,0,0,0.15); transition: all 0.2s; }
.product-actions button:hover { background: var(--pink); color: #fff; }
.product-info { padding: 14px 16px; }
.product-info h4 { font-size: 14px; font-weight: 600; margin-bottom: 8px; line-height: 1.4; }
.product-price { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.price-new { font-size: 16px; font-weight: 700; color: var(--pink); }
.price-old { font-size: 13px; color: var(--text-light); text-decoration: line-through; }
.product-rating { display: flex; align-items: center; gap: 4px; font-size: 12px; color: #f5a623; }
.product-rating span { color: var(--text-light); }
.add-cart-btn { width: 100%; padding: 9px; background: #e8f5e9; color: #2e7d32; border: none; border-radius: 8px; font-weight: 600; font-size: 13px; cursor: pointer; transition: all 0.2s; margin-top: 10px; }
.add-cart-btn:hover { background: #2e7d32; color: #fff; }
.add-cart-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.add-cart-btn:disabled:hover { background: #e8f5e9; color: #2e7d32; }
a.add-cart-btn.add-cart-btn--detail {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  text-decoration: none; box-sizing: border-box;
  background: #fff; color: #2e7d32; border: 2px solid #2e7d32;
}
a.add-cart-btn.add-cart-btn--detail:hover { background: #2e7d32; color: #fff; }

/* ===== PROMO BANNER ===== */
.promo-banner { background: linear-gradient(135deg,#2e7d32 0%,#43a047 50%,#66bb6a 100%); padding: 60px 0; color: #fff; }
.promo-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.promo-text h2 { font-size: 32px; font-weight: 800; margin-bottom: 12px; }
.promo-text p { font-size: 16px; opacity: 0.9; margin-bottom: 24px; }
.promo-text .btn-primary { background: #fff; color: var(--pink); border-color: #fff; }
.promo-countdown p { font-size: 14px; opacity: 0.85; margin-bottom: 12px; text-align: center; }
.countdown { display: flex; align-items: center; gap: 8px; }
.cd-box { background: rgba(255,255,255,0.2); border-radius: 10px; padding: 12px 18px; text-align: center; min-width: 70px; backdrop-filter: blur(4px); }
.cd-box span { display: block; font-size: 32px; font-weight: 800; line-height: 1; }
.cd-box small { font-size: 11px; opacity: 0.8; }
.cd-sep { font-size: 28px; font-weight: 700; opacity: 0.7; }

/* ===== TESTIMONIALS ===== */
.stars { color: #f5a623; font-size: 14px; }
.reviewer { display: flex; align-items: center; gap: 12px; }
.reviewer img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.reviewer strong { display: block; font-size: 14px; font-weight: 600; }
.reviewer span { font-size: 12px; color: var(--text-light); }
.reviewer img.home-testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Trang chủ: tối đa 3 thẻ trong khung; >3 thì trượt ngang */
.home-testimonials-wrap { position: relative; }
.home-testimonials-wrap--carousel { padding-left: 44px; padding-right: 44px; }
.home-testimonials-viewport { overflow: hidden; width: 100%; }
.home-testimonials-track {
  display: flex;
  gap: 24px;
  transition: transform 0.4s ease;
  will-change: transform;
}
.home-testimonial-card {
  flex: 0 0 auto;
  box-sizing: border-box;
  min-width: 0;
}
/* ≤3 mục: lưới cố định 3 cột (không cần JS) */
.js-home-testimonials[data-testimonial-count="1"] .home-testimonials-track,
.js-home-testimonials[data-testimonial-count="2"] .home-testimonials-track,
.js-home-testimonials[data-testimonial-count="3"] .home-testimonials-track {
  flex-wrap: wrap;
}
.js-home-testimonials[data-testimonial-count="1"] .home-testimonials-track { justify-content: center; }
.js-home-testimonials[data-testimonial-count="1"] .home-testimonial-card { flex: 1 1 100%; max-width: 420px; }
.js-home-testimonials[data-testimonial-count="2"] .home-testimonial-card { flex: 1 1 calc(50% - 12px); min-width: 260px; }
.js-home-testimonials[data-testimonial-count="3"] .home-testimonial-card { flex: 1 1 calc(33.333% - 16px); min-width: 260px; }
.home-testimonials-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--pink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: background 0.2s, color 0.2s, opacity 0.2s;
}
.home-testimonials-nav:hover:not(:disabled) {
  background: var(--pink);
  color: #fff;
  border-color: var(--pink);
}
.home-testimonials-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.home-testimonials-prev { left: 0; }
.home-testimonials-next { right: 0; }
@media (max-width: 991.98px) {
  .home-testimonials-wrap--carousel { padding-left: 36px; padding-right: 36px; }
  .home-testimonials-nav { width: 34px; height: 34px; font-size: 13px; }
}
@media (max-width: 767.98px) {
  .home-testimonials-wrap--carousel { padding-left: 0; padding-right: 0; }
  .home-testimonials-nav { display: none; }
}

/* ===== BACK TO TOP ===== */
.back-to-top { position: fixed; bottom: 28px; left: 28px; width: 44px; height: 44px; border-radius: 50%; background: var(--pink); color: #fff; border: none; font-size: 16px; cursor: pointer; box-shadow: 0 4px 16px rgba(46,125,50,0.4); opacity: 0; pointer-events: none; transition: all 0.3s; z-index: 999; }
.back-to-top.visible { opacity: 1; pointer-events: all; }
.back-to-top:hover { background: var(--pink-dark); transform: translateY(-3px); }

/* ===== CART SIDEBAR ===== */
html.cart-drawer-open { overflow: hidden; overscroll-behavior: none; }
.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 1100; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.cart-overlay.open { opacity: 1; pointer-events: all; }
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 380px;
  max-width: 100%;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  background: #fff;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 24px rgba(0,0,0,0.12);
  transition: right 0.35s ease;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  overscroll-behavior: contain;
}
.cart-sidebar.open { right: 0; }
.cart-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.cart-header h3 { font-size: 18px; font-weight: 700; }
.cart-header button { background: none; border: none; font-size: 20px; cursor: pointer; color: var(--text-light); }
.cart-items { flex: 1; overflow-y: auto; padding: 16px 24px; }
.cart-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.cart-item img { width: 70px; height: 70px; object-fit: cover; border-radius: 8px; }
.cart-item-info { flex: 1; }
.cart-item-info h5 { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.cart-item-info .price { color: var(--pink); font-weight: 700; font-size: 14px; }
.cart-item-remove { background: none; border: none; color: #ccc; cursor: pointer; font-size: 16px; align-self: flex-start; }
.cart-item-remove:hover { color: #e53935; }
.cart-item-qty { display: flex; align-items: center; gap: 8px; margin: 8px 0 4px; }
.qty-btn { width: 26px; height: 26px; border: 1.5px solid #e0e0e0; background: #f5f5f5; border-radius: 6px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 11px; color: #555; transition: background .15s; }
.qty-btn:hover:not(:disabled) { background: #2e7d32; color: #fff; border-color: #2e7d32; }
.qty-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.qty-btn-at-max { opacity: 0.55; }
.qty-val { font-weight: 700; font-size: 14px; min-width: 36px; max-width: 52px; text-align: center; border: 1.5px solid #e0e0e0; border-radius: 6px; padding: 2px 4px; background: #fff; color: #1a1a1a; box-sizing: border-box; -moz-appearance: textfield; }
.qty-val::-webkit-outer-spin-button,
.qty-val::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cart-qty-input:focus { outline: none; border-color: #2e7d32; box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.2); }
.cart-item-subtotal { font-size: 12px; color: #555; }
.cart-item-subtotal strong { color: #2e7d32; }
.cart-footer { padding: 20px 24px; border-top: 1px solid var(--border); }
.cart-total { display: flex; justify-content: space-between; font-size: 16px; margin-bottom: 16px; }
.cart-total strong { color: var(--pink); font-size: 18px; }
.empty-cart { text-align: center; padding: 40px 0; color: var(--text-light); }
.empty-cart i { font-size: 48px; margin-bottom: 12px; color: #ddd; }

/* ===== FLOATING CONTACT ===== */
.float-contact { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column-reverse; align-items: flex-end; gap: 10px; }
.float-toggle { width: 52px; height: 52px; border-radius: 50%; background: var(--pink); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; cursor: pointer; box-shadow: 0 4px 16px rgba(46,125,50,0.45); position: relative; z-index: 2; transition: transform 0.3s; flex-shrink: 0; }
.float-toggle:hover { transform: scale(1.1); }
.float-pulse { position: absolute; inset: -4px; border-radius: 50%; border: 3px solid var(--pink); opacity: 0.5; animation: pulse 2s infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: 0.5; } 70% { transform: scale(1.4); opacity: 0; } 100% { transform: scale(1.4); opacity: 0; } }
.float-items { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity 0.3s ease, transform 0.3s ease; visibility: hidden; }
.float-contact.open .float-items { opacity: 1; pointer-events: all; transform: translateY(0); visibility: visible; }
.float-contact.open .float-toggle { transform: rotate(45deg); }
.float-item { display: flex; align-items: center; gap: 10px; padding: 9px 16px 9px 12px; border-radius: 30px; color: #fff; font-size: 13px; font-weight: 600; box-shadow: 0 4px 14px rgba(0,0,0,0.18); transition: transform 0.2s; text-decoration: none; white-space: nowrap; }
.float-item:hover { transform: translateX(-4px); }
.float-item i, .float-item img { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.25); display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; object-fit: contain; padding: 6px; }
.float-zalo { background: linear-gradient(135deg,#0068ff,#00aaff); }
.float-chat { background: linear-gradient(135deg,#128c7e,#25d366); }
.float-phone { background: linear-gradient(135deg,#2e7d32,#66bb6a); }
.float-messenger { background: linear-gradient(135deg,#0084ff,#a334fa); }

/* ===== BREADCRUMB ===== */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-light); flex-wrap: wrap; }
.breadcrumb a { color: var(--pink); }
.breadcrumb a:hover { opacity: 0.75; }
.breadcrumb i.fa-chevron-right { font-size: 10px; }

/* ===== SIDEBAR ===== */
.news-sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-widget { background: #fff; border-radius: 12px; padding: 20px; box-shadow: 0 2px 12px rgba(0,0,0,0.08); transition: all 0.3s; }
.sidebar-widget:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.12); }
.widget-title { font-size: 16px; font-weight: 800; color: var(--text); padding-bottom: 12px; margin-bottom: 16px; border-bottom: 2px solid var(--pink); display: flex; align-items: center; gap: 8px; }
.widget-title i { color: var(--pink); }

/* Sidebar categories */
.sidebar-cats { display: flex; flex-direction: column; gap: 0; }
.sidebar-cats li { list-style: none; }
.sidebar-cats a { display: flex; align-items: center; justify-content: space-between; padding: 11px 14px; border-radius: 8px; color: var(--text-light); font-size: 13px; font-weight: 600; transition: all 0.2s; border-left: 3px solid transparent; }
.sidebar-cats a:hover { background: var(--pink-light); color: var(--pink); border-left-color: var(--pink); }
.sidebar-cats a i { margin-right: 6px; }
.sidebar-cats span { background: var(--pink-light); color: var(--pink); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 12px; }

/* Recent posts */
.recent-posts { display: flex; flex-direction: column; gap: 12px; }
.recent-posts li { list-style: none; display: flex; gap: 10px; align-items: flex-start; }
.recent-post-img { width: 60px; height: 60px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.recent-post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.recent-posts li:hover .recent-post-img img { transform: scale(1.08); }
.recent-post-title { font-size: 13px; font-weight: 600; color: var(--text); display: block; margin-bottom: 4px; line-height: 1.4; transition: color 0.2s; }
.recent-post-title:hover { color: var(--pink); }
.recent-posts span { font-size: 12px; color: var(--text-light); display: flex; align-items: center; gap: 4px; }
.recent-posts i { color: var(--pink); font-size: 11px; }

/* Sidebar promo */
.sidebar-promo { padding: 0 !important; overflow: hidden; background: linear-gradient(135deg, #fff8e1, #fff3cd) !important; }
.sidebar-promo img { width: 100%; height: 140px; object-fit: cover; }
.sidebar-promo-body { padding: 16px; }
.sidebar-promo-body h4 { font-size: 15px; font-weight: 800; margin-bottom: 6px; color: var(--text); }
.sidebar-promo-body p { font-size: 12px; color: var(--text-light); margin-bottom: 12px; line-height: 1.5; }
.sidebar-promo-body .btn-primary { display: block; text-align: center; padding: 9px 16px !important; font-size: 13px !important; }

/* Tag cloud */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a { padding: 6px 14px; border-radius: 20px; background: var(--pink-light); color: var(--pink); font-size: 12px; font-weight: 600; transition: all 0.2s; border: 1px solid transparent; }
.tag-cloud a:hover { background: var(--pink); color: #fff; border-color: var(--pink); }

.sidebar-search { display: flex; border: 1.5px solid var(--border); border-radius: 8px; overflow: hidden; }
.sidebar-search input { flex: 1; border: none; outline: none; padding: 9px 14px; font-size: 13px; }
.sidebar-search button { background: var(--pink); border: none; color: #fff; padding: 9px 14px; cursor: pointer; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .mega-menu { grid-template-columns: repeat(2,1fr); }
  .mega-col-promo { display: none; }
}
@media (max-width: 768px) {
  .hamburger { display: inline-flex; }
  /* Giỏ hàng dùng menu cố định dưới màn hình */
  .header-right .cart-icon { display: none !important; }
  .header-nav-bar { display: none; }
  .header-nav-bar.open {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    top: var(--mobile-nav-panel-top, 64px);
    bottom: calc(62px + env(safe-area-inset-bottom, 0px));
    z-index: 1020;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    box-sizing: border-box;
  }
  .header-nav-scroll { overflow-x: visible; }
  .main-nav { flex-direction: column; width: 100%; min-width: 0; }
  .nav-item > a, a.nav-item { padding: 13px 20px; border-bottom: 1px solid rgba(255,255,255,0.15); }
  .dropdown { position: static; opacity: 1; pointer-events: all; transform: none; box-shadow: none; border-radius: 0; background: rgba(0,0,0,0.15); border-top: none; }
  /* Cấp 1 Danh mục / Tin tức: chỉ sổ khi .open (click) */
  .has-dropdown:not(.open) > .dropdown { display: none !important; }
  .has-dropdown.open > .dropdown { display: block !important; }
  .dropdown a { color: #fff; border-color: rgba(255,255,255,0.1); padding-left: 36px; }
  .dropdown a:hover { background: rgba(255,255,255,0.1); color: #fff; }
  .nav-contact { margin-left: 0; }
  .mega-menu { position: static; display: none; grid-template-columns: 1fr; opacity: 1; transform: none; box-shadow: none; border-top: none; border-radius: 0; }
  .has-mega.open .mega-menu { display: grid; pointer-events: all; }
  .mega-col { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); padding: 12px 16px; }
  .mega-col-title { color: #ffd700; }
  .mega-col a { color: #fff; }
  .mega-col a:hover { background: rgba(255,255,255,0.1); color: #fff; }
  .mega-promo-item { display: none !important; }
  .mega-view-all { display: flex !important; }
  /* Tránh lỗ thiếu rule ở đúng 768px (khối 767.98px không áp dụng) */
  .dropdown-sub { position: static; opacity: 1; pointer-events: all; transform: none; box-shadow: none; border-radius: 0; border-left: none; border-top: none; background: rgba(0,0,0,0.1); display: none; }
  .dropdown-item-sub:hover .dropdown-sub,
  .dropdown-item-sub.open .dropdown-sub { display: block; }
  .hero { height: 380px; }
  .hero-content { margin-left: 5%; }
  .hero-content h1 { font-size: 30px; }
  .hero-desc { font-size: 14px; }
  .promo-inner { flex-direction: column; text-align: center; }
  .cart-sidebar { width: 100%; right: -100%; }
  .float-item .float-label { display: none; }
  .float-item { padding: 10px; border-radius: 50%; }
}
@media (max-width: 640px) {
  .hero { height: 280px; }
  .hero-content h1 { font-size: 22px; }
  .hero-desc { display: none; }
  .hero-content .btn-outline { display: none; }
  .cd-box { padding: 8px 12px; min-width: 56px; }
  .cd-box span { font-size: 22px; }
  .promo-topbar { height: 36px; }
}

/* ===== BOOTSTRAP 5 GRID OVERRIDES ===== */
/* Container max-width */
.container { max-width: 1200px !important; }

/* Features grid — dùng Bootstrap row/col */
.features-grid { display: grid; grid-template-columns: repeat(4,1fr); }
@media (max-width: 991.98px) { .features-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 575.98px) { .features-grid { grid-template-columns: repeat(2,1fr); } }

/* Categories grid */
.categories-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
@media (max-width: 991.98px) { .categories-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 575.98px) { .categories-grid { grid-template-columns: repeat(2,1fr); gap: 12px; } }

/* Products grid */
.products-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; margin-bottom: 40px; }
@media (max-width: 1199.98px) { .products-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 767.98px) { .products-grid { grid-template-columns: repeat(2,1fr); gap: 14px; } }
@media (max-width: 399.98px) { .products-grid { grid-template-columns: repeat(2,1fr); gap: 10px; } }

/* Testimonials grid */
.testimonials-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
@media (max-width: 991.98px) { .testimonials-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 575.98px) { .testimonials-grid { grid-template-columns: 1fr; } }

/* Footer grid */
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; }
@media (max-width: 991.98px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 575.98px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }

/* ===== BOOTSTRAP BUTTON OVERRIDES ===== */
.btn-primary { background-color: var(--pink) !important; border-color: var(--pink) !important; border-radius: 30px !important; padding: 10px 26px !important; font-weight: 600 !important; }
.btn-primary:hover, .btn-primary:focus { background-color: var(--pink-dark) !important; border-color: var(--pink-dark) !important; box-shadow: none !important; }
.btn-outline-primary { color: var(--pink) !important; border-color: var(--pink) !important; border-radius: 30px !important; }
.btn-outline-primary:hover { background-color: var(--pink) !important; color: #fff !important; }

/* ===== HERO RESPONSIVE ===== */
@media (max-width: 991.98px) { .hero { height: 420px; } .hero-content h1 { font-size: 36px; } }
@media (max-width: 767.98px) { .hero { height: 340px; } .hero-content { margin-left: 5%; } .hero-content h1 { font-size: 26px; } .hero-desc { font-size: 13px; } }
@media (max-width: 575.98px) { .hero { height: 260px; } .hero-content h1 { font-size: 20px; } .hero-desc { display: none; } .hero-content .btn-outline { display: none; } }

/* ===== HEADER RESPONSIVE ===== */
@media (max-width: 991.98px) { .header-search { max-width: 240px; } }
@media (max-width: 768px) {
  .hamburger { display: inline-flex !important; }
  .header-search { display: none !important; }
  .header-contact-btn { display: none !important; }
  .header-right .cart-icon { display: none !important; }
  .brand-name { display: flex !important; }
  .header-nav-bar { display: none; }
  .header-nav-bar.open {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    top: var(--mobile-nav-panel-top, 64px);
    bottom: calc(62px + env(safe-area-inset-bottom, 0px));
    z-index: 1020;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    box-sizing: border-box;
  }
  .header-nav-scroll { overflow-x: visible; }
  .main-nav { flex-direction: column; width: 100%; min-width: 0; }
  .nav-item > a, a.nav-item { padding: 12px 20px; border-bottom: 1px solid rgba(255,255,255,0.15); }
  .dropdown { position: static; opacity: 1; pointer-events: all; transform: none; box-shadow: none; border-radius: 0; background: rgba(0,0,0,0.15); border-top: none; }
  .has-dropdown:not(.open) > .dropdown { display: none !important; }
  .has-dropdown.open > .dropdown { display: block !important; }
  .dropdown a { color: #fff; border-color: rgba(255,255,255,0.1); padding-left: 36px; }
  .dropdown a:hover { background: rgba(255,255,255,0.1); color: #fff; }
  .nav-contact { margin-left: 0; }
  .mega-menu { position: static; display: none; grid-template-columns: 1fr; opacity: 1; transform: none; box-shadow: none; border-top: none; border-radius: 0; }
  .has-mega.open .mega-menu { display: grid; pointer-events: all; }
  .mega-col { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); padding: 12px 16px; }
  .mega-col-title { color: #ffd700; }
  .mega-col a { color: #fff; }
  .mega-col a:hover { background: rgba(255,255,255,0.1); color: #fff; }
  .mega-promo-item { display: none !important; }
  .mega-view-all { display: flex !important; }
  .dropdown-sub { position: static; opacity: 1; pointer-events: all; transform: none; box-shadow: none; border-radius: 0; border-left: none; border-top: none; background: rgba(0,0,0,0.1); display: none; }
  .dropdown-item-sub:hover .dropdown-sub,
  .dropdown-item-sub.open .dropdown-sub { display: block; }
  .dropdown-sub a { color: #fff !important; padding-left: 52px; border-color: rgba(255,255,255,0.08); }
  .dropdown-sub a:hover { background: rgba(255,255,255,0.1); color: #fff !important; padding-left: 58px; }
  .dropdown-sub a i { color: rgba(255,255,255,0.6) !important; }
  .dropdown-has-sub { color: #fff !important; border-bottom: 1px solid rgba(255,255,255,0.15); }
  .dropdown-has-sub span { color: #fff !important; }
  .dropdown-has-sub span i { color: #ffd700 !important; }
  .dropdown-has-sub .sub-arrow { color: rgba(255,255,255,0.6) !important; }
  .dropdown-item-sub:hover .dropdown-has-sub { background: rgba(255,255,255,0.1) !important; color: #fff !important; }
  .dropdown-item-sub:hover .sub-arrow { transform: rotate(90deg); color: #fff !important; }
  .nav-combo-sale { margin: 6px 12px; border-radius: 8px !important; }
  .cart-label { display: none; }
}
@media (max-width: 575.98px) {
  .cart-sidebar { width: 100%; right: -100%; }
  .float-item .float-label { display: none; }
  .float-item { padding: 10px; border-radius: 50%; }
}

/* ===== PROMO BANNER RESPONSIVE ===== */
@media (max-width: 767.98px) { .promo-inner { flex-direction: column; text-align: center; } }
@media (max-width: 575.98px) { .cd-box { padding: 8px 12px; min-width: 56px; } .cd-box span { font-size: 22px; } .promo-topbar { height: 36px; } }

/* ===== SECTION PADDING RESPONSIVE ===== */
.section { padding: 70px 0; }
@media (max-width: 767.98px) { .section { padding: 48px 0; } }
@media (max-width: 575.98px) { .section { padding: 36px 0; } }
.section-title h2 { font-size: 34px; }
@media (max-width: 767.98px) { .section-title h2 { font-size: 26px; } }
@media (max-width: 575.98px) { .section-title h2 { font-size: 22px; } }

/* ===== MEGA MENU RESPONSIVE ===== */
@media (max-width: 1199.98px) { .mega-menu { grid-template-columns: repeat(3,1fr); } .mega-col-promo { display: none; } }
@media (max-width: 991.98px) { .mega-menu { grid-template-columns: repeat(2,1fr); } }

/* ===== SECTION HEADING WITH GREEN UNDERLINE ===== */
.section-heading {
    font-size: 30px;
    font-weight: 800;
    position: relative;
    display: inline-block;
    padding-bottom: 16px;
}
.section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 4px;
    background: #2e7d32;
    border-radius: 9999px;
}
@media (max-width: 767.98px) { .section-heading { font-size: 24px; } }
@media (max-width: 575.98px) { .section-heading { font-size: 20px; } }

/* Giờ làm việc: mỗi mốc một dòng (partials/main/work-time-lines) */
.work-time-line {
    display: block;
    margin-bottom: 0.4rem;
    line-height: 1.45;
}
.work-time-line:last-child { margin-bottom: 0; }
