/* ================================================================
   TATAGARDEN — header.css  v8  (Luxury + Megamenu fixed)
================================================================ */

/* ── Sticky fix ── */
/* overflow-x: clip trên body ngăn horizontal scroll MÀ KHÔNG tạo scroll container
   (clip không kích hoạt axis-conversion rule như hidden/auto/scroll).
   Viewport vẫn là scroll container tự nhiên → position:sticky hoạt động đúng. */
body { overflow-x: clip; }
#wrapper, #page, .site, .page-wrapper { overflow-x: clip; }

/* ── Tokens ── */
:root {
  /* aliases → global tokens */
  --hdr-accent:    var(--tg-accent);
  --hdr-accent-dk: var(--tg-accent-dk);
  --hdr-gold:      var(--tg-gold);
  /* header-specific (no global equivalent) */
  --hdr-pale:      #eaf5e0;
  --hdr-text:      #2a2a2a;
  --hdr-sub:       #4d6057;
  --hdr-border:    rgba(0,0,0,.07);
  --hdr-divider:   rgba(0,0,0,.10);
  --hdr-row-sep:   #f0f0f0;
  --hdr-sub-bg:    #f8faf8;
  /* layout → global */
  --hdr-max-w:     var(--tg-max-w);
  --hdr-nav-h:     var(--tg-header-h);
  --hdr-top-h:     var(--tg-topbar-h);
  --hdr-ticker-h:  36px;
  --hdr-px:        36px;
  --hdr-z-top:     10;
  --hdr-z-hdr:     100;
  --hdr-z-drop:    1000;
  --hdr-z-mob:     1000;
  --hdr-z-ovl:     900;
}

/* ── Global font ── */
body {
  font-family: var(--tg-font-main);
  font-weight: 400; line-height: 1.6;
  color: var(--tg-charcoal);
  -webkit-font-smoothing: antialiased;
  margin: 0; padding: 0;
}
h1,h2,h3,h4,h5,h6 { font-family: var(--tg-font-main); font-weight: 700; }

/* ── Container ── */
.container {
  max-width: var(--hdr-max-w);
  margin: 0 auto;
  padding: 0 var(--hdr-px);
  width: 100%; box-sizing: border-box;
}

/* ── Reading progress ── */
.reading-progress {
  position: fixed; top: 0; left: 0;
  height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--hdr-gold), var(--hdr-accent));
  z-index: 9999; pointer-events: none;
  transition: width .1s linear;
}

/* ================================================================
   TOPBAR — refined
================================================================ */
.site-topbar {
  height: var(--hdr-top-h);
  background: var(--tg-charcoal);
  color: #8a9a94;
  font-size: 11.5px;
  position: relative; z-index: var(--hdr-z-top);
  overflow: hidden;
  transition: height .35s cubic-bezier(.4,0,.2,1), opacity .3s;
}
.site-topbar.is-hidden { height: 0; opacity: 0; pointer-events: none; }

.topbar-inner {
  max-width: var(--hdr-max-w); margin: 0 auto;
  padding: 0 var(--hdr-px); height: 100%;
  display: flex; flex-direction: row; align-items: center;
  flex-wrap: nowrap;
}
.topbar-left, .topbar-right {
  display: flex; flex-direction: row; align-items: center;
  gap: 16px; flex-shrink: 0;
}
.topbar-right { margin-left: auto; }

.topbar-item {
  display: inline-flex; align-items: center; gap: 5px;
  white-space: nowrap; color: #8a9a94; font-size: 11.5px;
}
.topbar-item a { color: #8a9a94; text-decoration: none; transition: color .15s; }
.topbar-item a:hover { color: var(--tg-white); }
.topbar-item svg { width: 11px; height: 11px; opacity: .7; }

.topbar-sep {
  width: 1px; height: 12px;
  background: rgba(255,255,255,.12); flex-shrink: 0;
}
.topbar-nav {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: row; align-items: center; gap: 16px;
}
.topbar-nav li a {
  font-size: 11.5px; color: #8a9a94;
  text-decoration: none; transition: color .15s;
}
.topbar-nav li a:hover { color: var(--tg-white); }

/* ================================================================
   SITE HEADER — luxury sticky
================================================================ */
.site-header {
  position: sticky; top: 0;
  z-index: var(--hdr-z-hdr);
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid rgba(0,0,0,.06);
  box-shadow: none;
  transition: box-shadow .4s cubic-bezier(.4,0,.2,1), border-color .4s;
  overflow: visible;
}
.site-header.is-scrolled {
  border-bottom-color: transparent;
  box-shadow: 0 8px 40px rgba(13,74,59,.09), 0 2px 12px rgba(0,0,0,.05);
  border-top: 2px solid var(--hdr-gold);
}

.header-wrap { position: relative; overflow: visible; }

/* ================================================================
   NAV ROW
================================================================ */
.nav-row {
  height: var(--hdr-nav-h);
  display: flex; flex-direction: row; align-items: center;
  flex-wrap: nowrap; position: relative;
  z-index: 1; overflow: visible;
}

/* ── Logo ── */
.hdr-logo {
  flex-shrink: 0;
  display: flex; align-items: center;
  margin-right: 36px;
}
.logo-link, .custom-logo-link {
  display: flex; align-items: center;
  text-decoration: none; line-height: 1;
}
.logo-link img, .logo-link .custom-logo,
.custom-logo-link img, .custom-logo-link .custom-logo {
  height: 46px; width: auto; display: block; object-fit: contain;
}
.logo-text {
  font-size: 22px; font-weight: 700;
  color: var(--tg-dark);
  letter-spacing: -.3px; text-decoration: none; white-space: nowrap;
}

/* ── Nav ── */
.hdr-nav {
  flex: 1; display: flex; align-items: center;
  align-self: stretch; height: 100%; overflow: visible; min-width: 0;
}

.nav-menu {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: row; align-items: stretch;
  height: 100%; overflow: visible; flex-wrap: nowrap;
}

.nav-menu > li {
  position: relative;
  display: flex; flex-direction: row; align-items: stretch;
  overflow: visible; flex-shrink: 0;
}

/* Top-level links */
.nav-menu > li > a,
.nav-menu > li > .nav-link {
  display: inline-flex; flex-direction: row;
  align-items: center; gap: 4px;
  height: auto; align-self: center;
  padding: 9px 14px; border-radius: 8px;
  font-size: 14px; font-weight: 450;
  color: var(--hdr-text);
  text-decoration: none; white-space: nowrap;
  transition: color .18s, background .18s;
  line-height: 1; box-sizing: border-box;
  letter-spacing: .01em;
}

.nav-menu > li > a:hover,
.nav-menu > li > .nav-link:hover {
  color: var(--hdr-accent);
  background: var(--hdr-pale);
}

.nav-menu > li.current-menu-item > a,
.nav-menu > li.current-menu-item > .nav-link,
.nav-menu > li.current-menu-ancestor > a,
.nav-menu > li.current-menu-ancestor > .nav-link {
  color: var(--hdr-accent);
  background: rgba(90,170,42,.12);
  font-weight: 500;
}

/* Arrow chevron */
.nav-arrow {
  flex-shrink: 0; display: block;
  width: 10px; height: 10px;
  transition: transform .22s ease;
}
.nav-menu > li:hover > a .nav-arrow,
.nav-menu > li:hover > .nav-link .nav-arrow,
.nav-menu > li:focus-within > a .nav-arrow,
.nav-menu > li:focus-within > .nav-link .nav-arrow {
  transform: rotate(180deg);
}

/* ================================================================
   DROPDOWN CẤP 2 — clean & sharp
================================================================ */
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes megaDropIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-8px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.nav-dropdown, .sub-menu {
  display: none;
  position: absolute; top: calc(100% + 1px); left: 0;
  min-width: 220px;
  background: var(--tg-white);
  border-top: 2px solid var(--hdr-accent);
  border-radius: 0 0 12px 12px;
  box-shadow: 0 12px 40px rgba(13,74,59,.13), 0 2px 8px rgba(0,0,0,.06);
  padding: 8px 0;
  z-index: var(--hdr-z-drop);
  list-style: none; margin: 0;
}

.nav-menu > li:hover > .nav-dropdown,
.nav-menu > li:focus-within > .nav-dropdown,
.nav-menu > li:hover > .sub-menu,
.nav-menu > li:focus-within > .sub-menu {
  display: block;
  animation: dropIn .18s cubic-bezier(.4,0,.2,1);
}

/* Cấp 3: flyout khi hover item trong dropdown thường */
.nav-dropdown > li:hover > .nav-dropdown,
.nav-dropdown > li:focus-within > .nav-dropdown,
.nav-dropdown > li:hover > .sub-menu,
.nav-dropdown > li:focus-within > .sub-menu,
.sub-menu > li:hover > .sub-menu,
.sub-menu > li:focus-within > .sub-menu {
  display: block;
  animation: dropIn .18s cubic-bezier(.4,0,.2,1);
}

.nav-dropdown a, .nav-dropdown .dropdown-link,
.sub-menu a {
  display: flex; align-items: center;
  padding: 10px 20px; font-size: 13.5px;
  color: var(--hdr-sub); text-decoration: none;
  transition: background .12s, color .12s, padding-left .14s;
  white-space: nowrap; background: transparent;
  border: none; height: auto; gap: 8px;
}
.nav-dropdown a:hover, .nav-dropdown .dropdown-link:hover,
.sub-menu a:hover {
  background: var(--hdr-pale);
  color: var(--hdr-accent);
  padding-left: 26px;
}

/* Cấp 3 flyout */
.nav-dropdown .nav-dropdown,
.nav-dropdown .sub-menu,
.sub-menu .sub-menu {
  top: 0; left: 100%;
  border-top: 2px solid var(--hdr-accent);
  border-radius: 0 12px 12px 12px;
}

/* ================================================================
   MEGAMENU — đẹp, đúng layout
   Kích hoạt khi li có class "mega-parent" hoặc "has-megamenu"
================================================================ */
.nav-menu > li.mega-parent > .nav-dropdown,
.nav-menu > li.mega-parent > .sub-menu {
  display: none !important; /* reset default block */
  left: 50%; transform: translateX(-50%);
  width: min(820px, 96vw);
  padding: 0;
  border-radius: 0 0 16px 16px;
  overflow: hidden;
  flex-direction: row; /* set but display:flex when open */
}

.nav-menu > li.mega-parent:hover > .nav-dropdown,
.nav-menu > li.mega-parent:focus-within > .nav-dropdown,
.nav-menu > li.mega-parent:hover > .sub-menu,
.nav-menu > li.mega-parent:focus-within > .sub-menu {
  display: flex !important;
  transform: translateX(-50%);
  animation: megaDropIn .2s cubic-bezier(.4,0,.2,1);
}

/* Panel trái — feature/image panel
   Dùng > (direct child) để tránh ảnh hưởng ul cấp 2 bên trong cột */
.mega-parent > .nav-dropdown > li.mega-feat,
.mega-parent > .sub-menu    > li.mega-feat {
  width: 220px; flex-shrink: 0;
  background: linear-gradient(160deg, var(--tg-dark) 0%, #1a5c48 100%);
  padding: 28px 22px;
  display: flex; flex-direction: column; justify-content: flex-end;
  position: relative; overflow: hidden;
}
.mega-parent > .nav-dropdown > li.mega-feat::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 20%, rgba(90,170,42,.2), transparent 60%);
}
.mega-parent > .nav-dropdown > li.mega-feat > a,
.mega-parent > .sub-menu    > li.mega-feat > a {
  color: rgba(255,255,255,.55);
  font-size: 9.5px; font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase;
  padding: 0; background: transparent; pointer-events: none;
  border: none; height: auto; display: block;
  margin-bottom: 8px;
}
.mega-parent > .nav-dropdown > li.mega-feat::after {
  content: attr(data-title);
  position: relative; z-index: 1;
  font-size: 17px; font-weight: 700;
  color: #fff; line-height: 1.3;
  display: block;
}

/* Cột links */
.mega-parent > .nav-dropdown > li:not(.mega-feat),
.mega-parent > .sub-menu    > li:not(.mega-feat) {
  flex: 1; min-width: 0;
  padding: 18px 16px;
  border-left: 1px solid rgba(0,0,0,.05);
  background: var(--tg-white);
}

/* Column header — chỉ là nhãn, không click */
.mega-parent > .nav-dropdown > li:not(.mega-feat) > a,
.mega-parent > .sub-menu    > li:not(.mega-feat) > a {
  font-size: 8.5px; font-weight: 700;
  color: var(--hdr-accent);
  text-transform: uppercase; letter-spacing: .12em;
  padding: 0 0 8px; pointer-events: none;
  background: transparent; border: none; height: auto;
  border-bottom: 1px solid rgba(90,170,42,.12);
  margin-bottom: 4px; display: block;
}

/* Sub items (cấp 3 trong mega): reset hoàn toàn .nav-dropdown base rules */
.mega-parent > .nav-dropdown > li:not(.mega-feat) > ul,
.mega-parent > .sub-menu    > li:not(.mega-feat) > ul {
  position: static;
  top: auto; left: auto;
  min-width: 0;
  background: transparent;
  border: none; border-radius: 0;
  box-shadow: none; z-index: auto;
  animation: none;
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 1px;
}
.mega-parent > .nav-dropdown > li:not(.mega-feat) > ul > li > a,
.mega-parent > .sub-menu    > li:not(.mega-feat) > ul > li > a {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--hdr-sub);
  padding: 6px 8px; border-radius: 6px;
  text-decoration: none; background: transparent;
  transition: background .12s, color .12s, padding-left .12s;
  height: auto; border-bottom: none; white-space: nowrap;
  pointer-events: auto;
}
.mega-parent > .nav-dropdown > li:not(.mega-feat) > ul > li > a:hover,
.mega-parent > .sub-menu    > li:not(.mega-feat) > ul > li > a:hover {
  background: var(--hdr-pale); color: var(--hdr-accent);
  padding-left: 12px;
}

/* ================================================================
   HEADER ACTIONS
================================================================ */
.hdr-actions {
  display: flex; flex-direction: row; align-items: center;
  gap: 2px; flex-shrink: 0; margin-left: 24px; flex-wrap: nowrap;
}

.hdr-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  background: transparent; border: none; border-radius: 10px;
  cursor: pointer; padding: 0; color: var(--hdr-text);
  position: relative; text-decoration: none; flex-shrink: 0;
  font-family: inherit; transition: background .15s, color .15s;
  box-sizing: border-box; vertical-align: middle; line-height: 1;
}
.hdr-btn:hover { background: var(--hdr-pale); color: var(--hdr-accent); }
.hdr-btn svg { width: 18px; height: 18px; display: block; pointer-events: none; flex-shrink: 0; }

.cart-count {
  position: absolute; top: 4px; right: 4px;
  background: var(--hdr-accent); color: #fff;
  border-radius: 50%; width: 16px; height: 16px;
  font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  line-height: 1; pointer-events: none;
}
.cart-count:empty { display: none; }

.hdr-divider {
  width: 1px; height: 22px;
  background: var(--hdr-divider);
  flex-shrink: 0; margin: 0 8px;
  align-self: center;
}

/* Quote button — luxury style */
.hdr-quote-btn {
  display: inline-flex; align-items: center; gap: 7px;
  height: 38px; padding: 0 20px;
  background: linear-gradient(135deg, var(--g-dark) 0%, #1a5c48 100%);
  color: #fff; border: none; border-radius: 9px;
  font-size: 13px; font-weight: 600;
  white-space: nowrap; text-decoration: none; cursor: pointer;
  flex-shrink: 0; font-family: inherit;
  transition: all .2s;
  box-shadow: 0 2px 12px rgba(13,74,59,.35), inset 0 0 0 1px rgba(201,168,76,.22);
  align-self: center; line-height: 1;
  letter-spacing: .01em;
}
.hdr-quote-btn:hover {
  background: linear-gradient(135deg, #0a3d31 0%, var(--g-dark) 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(13,74,59,.45), inset 0 0 0 1px rgba(201,168,76,.38);
  color: #fff;
}

/* ── Search dropdown ── */
.hdr-search-wrap { position: relative; display: flex; align-items: center; }

.search-dropdown {
  position: absolute; top: calc(100% + 12px); right: 0;
  width: 320px;
  background: var(--tg-white);
  border: 1px solid rgba(0,0,0,.09);
  border-top: 2px solid var(--hdr-accent);
  border-radius: 0 0 14px 14px;
  padding: 14px; box-shadow: 0 12px 40px rgba(0,0,0,.12);
  opacity: 0; transform: translateY(-8px) scale(.98);
  pointer-events: none;
  transition: opacity .2s cubic-bezier(.4,0,.2,1), transform .2s cubic-bezier(.4,0,.2,1);
  z-index: var(--hdr-z-drop);
}
.search-dropdown.is-open { opacity: 1; transform: translateY(0) scale(1); pointer-events: all; }

.sd-form {
  display: flex; align-items: center; gap: 8px;
  border: 1.5px solid #d0e8d4; border-radius: 9px;
  padding: 8px 12px; background: #f5faf5;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.sd-form:focus-within { border-color: var(--hdr-accent); background: #fff; box-shadow: 0 0 0 3px rgba(90,170,42,.1); }
.sd-input { flex: 1; min-width: 0; border: none; outline: none; font-size: 14px; font-family: inherit; color: var(--hdr-text); background: transparent; caret-color: var(--hdr-accent); }
.sd-input::placeholder { color: #9ab8a0; }
.sd-submit { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; background: var(--hdr-accent); border: none; border-radius: 7px; cursor: pointer; color: #fff; flex-shrink: 0; padding: 0; transition: background .15s; }
.sd-submit:hover { background: var(--hdr-accent-dk); }
.sd-submit svg { width: 14px; height: 14px; display: block; }

/* ── Hamburger ── */
.mob-toggle { flex-direction: column; gap: 5px; }
.hbar { display: block; width: 20px; height: 1.5px; background: var(--tg-charcoal); border-radius: 2px; transition: transform .25s ease, opacity .2s; pointer-events: none; transform-origin: center; }
.mob-toggle.is-open .hbar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.mob-toggle.is-open .hbar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mob-toggle.is-open .hbar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ================================================================
   MOBILE NAVIGATION
================================================================ */
.mobile-navigation {
  position: fixed;
  top: calc(var(--hdr-top-h) + var(--hdr-nav-h) + var(--hdr-ticker-h));
  left: 0; right: 0;
  background: var(--tg-white);
  z-index: var(--hdr-z-mob);
  max-height: calc(100dvh - var(--hdr-top-h) - var(--hdr-nav-h) - var(--hdr-ticker-h));
  overflow: hidden;
  display: flex; flex-direction: column;
  /* -200vh đảm bảo luôn ngoài màn hình bất kể kích thước thiết bị */
  transform: translateY(-200vh);
  visibility: hidden;
  /* Khi đóng: transform trước (.32s), rồi mới ẩn visibility (delay .32s) */
  transition: transform .32s cubic-bezier(.4,0,.2,1),
              top .15s cubic-bezier(.4,0,.2,1),
              visibility 0s .32s;
  border-bottom: 2px solid var(--hdr-accent);
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
}
.mobile-navigation.is-open {
  transform: translateY(0);
  visibility: visible;
  /* Khi mở: hiện visibility ngay (0s delay), rồi transform slide down */
  transition: transform .32s cubic-bezier(.4,0,.2,1),
              top .15s cubic-bezier(.4,0,.2,1),
              visibility 0s 0s;
}

/* Khi topbar bị ẩn (cuộn xuống) — ticker cũng đã ẩn (is-scrolled kích hoạt trước) */
.site-topbar.is-hidden + #site-header + #mobile-navigation {
  top: var(--hdr-nav-h);
  max-height: calc(100dvh - var(--hdr-nav-h));
}

/* inner wrapper — full height flex column */
.mob-nav-inner {
  display: flex; flex-direction: column;
  height: 100%; overflow: hidden;
}

/* ── Section 1: Search ── */
.mob-search-section {
  flex-shrink: 0;
  padding: 14px 16px;
  background: var(--hdr-sub-bg);
  border-bottom: 1px solid var(--hdr-row-sep);
}
.mob-search-form {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1.5px solid #d0e8d4;
  border-radius: 10px; padding: 9px 12px;
  transition: border-color .2s, box-shadow .2s;
}
.mob-search-form:focus-within { border-color: var(--hdr-accent); box-shadow: 0 0 0 3px rgba(90,170,42,.1); }
.mob-search-form > svg { color: #9ab8a0; flex-shrink: 0; }
.mob-search-input {
  flex: 1; min-width: 0; border: none; outline: none;
  font-size: 14px; font-family: inherit;
  color: var(--hdr-text); background: transparent;
}
.mob-search-input::placeholder { color: #9ab8a0; }
.mob-search-btn {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--hdr-accent); border: none;
  display: flex; align-items: center; justify-content: center;
  color: #fff; cursor: pointer; flex-shrink: 0;
  transition: background .15s;
}
.mob-search-btn:hover { background: var(--hdr-accent-dk); }

/* ── Section 2: Menu (scrollable) ── */
.mob-menu-section { flex: 1; overflow-y: auto; }
.mob-nav-list { list-style: none; margin: 0; padding: 0; }
.mob-nav-item { border-bottom: 1px solid var(--hdr-row-sep); }
.mob-row { display: flex; flex-direction: row; align-items: center; }
.mob-link { flex: 1; display: block; padding: 14px 20px; font-size: 14.5px; color: var(--tg-charcoal); text-decoration: none; transition: color .12s; }
.mob-link:hover { color: var(--hdr-accent); }
.mob-nav-item.current-menu-item > .mob-link,
.mob-nav-item.current-menu-item > .mob-row > .mob-link { color: var(--hdr-accent); font-weight: 500; }
.mob-sub-toggle { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: transparent; border: none; border-left: 1px solid var(--hdr-row-sep); cursor: pointer; color: var(--tg-muted); flex-shrink: 0; transition: background .15s, color .15s; padding: 0; }
.mob-sub-toggle:hover { background: var(--hdr-pale); color: var(--hdr-accent); }
.mob-sub-toggle svg { transition: transform .25s ease; }
.mob-sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.mob-sub-menu { list-style: none; margin: 0; padding: 0; background: var(--hdr-sub-bg); display: none; border-top: 1px solid var(--hdr-row-sep); }
.mob-sub-menu.is-open { display: block; }
.mob-sub-menu .mob-link { font-size: 13.5px; color: var(--tg-muted); padding-left: 36px; }
.mob-sub-menu .mob-sub-menu .mob-link { font-size: 13px; padding-left: 52px; }

/* ── Section 3: Action buttons (fixed bottom) ── */
.mob-action-section {
  flex-shrink: 0;
  padding: 14px 16px;
  border-top: 1px solid var(--hdr-row-sep);
  background: #fff;
  display: flex; flex-direction: column; gap: 8px;
}
.mob-action-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: var(--hdr-sub-bg);
  border: 1px solid var(--hdr-row-sep);
  border-radius: 10px;
  font-size: 14px; color: var(--hdr-text);
  text-decoration: none; transition: background .15s;
}
.mob-action-row:hover { background: var(--hdr-pale); }
.mob-action-row > svg:first-child { color: var(--hdr-accent); flex-shrink: 0; }
.mob-action-row > svg:last-child  { color: #c0cfc8; margin-left: auto; flex-shrink: 0; }
.mob-action-row span { flex: 1; }
.mob-cart-badge {
  background: var(--hdr-accent); color: #fff;
  font-size: 10px; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}
.mob-cta-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 20px;
  background: var(--hdr-accent); color: #fff;
  border-radius: 10px; font-size: 14px; font-weight: 600;
  text-decoration: none; transition: background .15s;
}
.mob-cta-btn:hover { background: var(--hdr-accent-dk); }

.mobile-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: var(--hdr-z-ovl); opacity: 0; transition: opacity .3s; }
.mobile-overlay.is-active { display: block; opacity: 1; }

/* ================================================================
   RESPONSIVE
================================================================ */
@media (min-width: 992px) {
  .mob-toggle { display: none; }
  .mobile-navigation { display: none; }
  .mobile-overlay { display: none; }
}

/* Khi scroll trên mobile: ẩn ticker → chỉ còn logo + hamburger */
@media (max-width: 991px) {
  .site-header.is-scrolled .tg-ticker {
    height: 0;
    transition: height .15s cubic-bezier(.4,0,.2,1); /* nhanh hơn default .35s */
  }

  /* Mobile nav: ticker đã ẩn, top đồng bộ (transition: top .15s trên .mobile-navigation) */
  .site-header.is-scrolled ~ #mobile-navigation {
    top: calc(var(--hdr-top-h) + var(--hdr-nav-h));
    max-height: calc(100dvh - var(--hdr-top-h) - var(--hdr-nav-h));
  }
}
@media (max-width: 1280px) { :root { --hdr-px: 24px; } }
@media (max-width: 1100px) {
  :root { --hdr-px: 20px; }
  .nav-menu > li > a, .nav-menu > li > .nav-link { padding: 8px 10px; font-size: 13.5px; }
  .hdr-quote-btn { padding: 0 14px; font-size: 12.5px; }
}
@media (max-width: 991px) {
  /* high-specificity selectors to beat plugin CSS */
  html body #site-header .hdr-nav                              { display: none !important; }
  html body #site-header .hdr-divider                          { display: none !important; }
  html body #site-header .hdr-quote-btn                        { display: none !important; }
  html body #site-header .hdr-search-wrap                      { display: none !important; }
  html body #site-header .hdr-actions .hdr-btn:not(.mob-toggle){ display: none !important; }
  .hdr-actions { margin-left: auto; gap: 0; }
  .topbar-item:not(:first-child) { display: none; }
  .topbar-sep  { display: none; }
  .topbar-right { display: none; }
}
@media (max-width: 767px) {
  :root { --hdr-nav-h: 58px; --hdr-top-h: 32px; --hdr-px: 16px; }
  .hdr-btn { width: 38px; height: 38px; }
  .logo-link img, .custom-logo-link img { height: 36px; }
}
@media (max-width: 480px) {
  :root { --hdr-top-h: 0px; --hdr-ticker-h: 30px; --hdr-px: 14px; }
  .site-topbar { display: none; }
  .logo-link img, .custom-logo-link img { height: 32px; }
}
@media (max-width: 360px) { :root { --hdr-px: 12px; } }

/* ================================================================
   TICKER STRIP
================================================================ */
.tg-ticker {
  background: var(--tg-dark);
  overflow: hidden;
  height: 36px;
  display: flex;
  align-items: center;
  user-select: none;
  transition: height .35s cubic-bezier(.4,0,.2,1);
}
.tg-ticker:hover .tg-ticker__track {
  animation-play-state: paused;
}
.tg-ticker__track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: tg-ticker 32s linear infinite;
  will-change: transform;
}
@keyframes tg-ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.tg-ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 24px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,.88);
  letter-spacing: 0.3px;
  white-space: nowrap;
  font-family: 'Google Sans', 'Product Sans', sans-serif;
}
.tg-ticker__leaf {
  font-size: 10px;
  color: var(--hdr-gold);
  flex-shrink: 0;
}
.tg-ticker__sep {
  font-size: 8px;
  color: rgba(255,255,255,.25);
  flex-shrink: 0;
}
@media (max-width: 480px) {
  .tg-ticker { height: 30px; }
  .tg-ticker__item { font-size: 11px; padding: 0 16px; }
}

/* ================================================================
   DARK HEADER VARIANT (.hdr-dark) — Luxury deep dark + gold
================================================================ */

/* Topbar */
.site-topbar.hdr-dark {
  background: rgb(8, 55, 40);
  color: rgba(255,255,255,.48);
  border-bottom: 1px solid rgba(201,168,76,.08);
}
.site-topbar.hdr-dark .topbar-item,
.site-topbar.hdr-dark .topbar-item a { color: rgba(255,255,255,.48); }
.site-topbar.hdr-dark .topbar-item a:hover { color: rgba(255,255,255,.88); }
.site-topbar.hdr-dark .topbar-sep { background: rgba(255,255,255,.1); }
.site-topbar.hdr-dark .topbar-nav li a { color: rgba(255,255,255,.48); }
.site-topbar.hdr-dark .topbar-nav li a:hover { color: rgba(255,255,255,.88); }

/* Header strip */
.site-header.hdr-dark {
  background: rgba(13, 91, 68, .97);
  border-bottom: 1px solid rgba(201,168,76,.1);
}

/* Dark scrolled */
.site-header.hdr-dark.is-scrolled {
  border-top-color: var(--hdr-gold);
  box-shadow: 0 8px 48px rgba(0,0,0,.4), 0 2px 16px rgba(0,0,0,.22);
}

/* Logo */
.site-header.hdr-dark .logo-text { color: #fff; }
.site-header.hdr-dark .custom-logo-link img,
.site-header.hdr-dark .logo-link img { filter: brightness(0) invert(1); }

/* Nav links */
.site-header.hdr-dark .nav-menu > li > a,
.site-header.hdr-dark .nav-menu > li > .nav-link {
  color: rgba(255,255,255,.78);
  letter-spacing: .012em;
}
.site-header.hdr-dark .nav-menu > li > a:hover,
.site-header.hdr-dark .nav-menu > li > .nav-link:hover {
  background: rgba(255,255,255,.06);
  color: #fff;
}
.site-header.hdr-dark .nav-menu > li.current-menu-item > a,
.site-header.hdr-dark .nav-menu > li.current-menu-item > .nav-link,
.site-header.hdr-dark .nav-menu > li.current-menu-ancestor > a,
.site-header.hdr-dark .nav-menu > li.current-menu-ancestor > .nav-link {
  color: var(--hdr-gold);
  background: rgba(201,168,76,.1);
  font-weight: 500;
}

/* Nav arrow */
.site-header.hdr-dark .nav-arrow { stroke: rgba(255,255,255,.5); }

/* Icon action buttons */
.site-header.hdr-dark .hdr-btn { color: rgba(255,255,255,.72); }
.site-header.hdr-dark .hdr-btn:hover {
  background: rgba(255,255,255,.07);
  color: #fff;
}

/* Divider + cart badge */
.site-header.hdr-dark .hdr-divider { background: rgba(255,255,255,.14); }
.site-header.hdr-dark .cart-count { background: var(--hdr-gold); color: #0a1a0e; }

/* Quote button — gold luxury on dark */
.site-header.hdr-dark .hdr-quote-btn {
  background: linear-gradient(135deg, #c9a84c 0%, #a8883a 100%);
  color: #07110a;
  font-weight: 700;
  letter-spacing: .02em;
  box-shadow: 0 2px 14px rgba(201,168,76,.38),
              inset 0 1px 0 rgba(255,255,255,.18),
              inset 0 0 0 1px rgba(255,255,255,.1);
}
.site-header.hdr-dark .hdr-quote-btn:hover {
  background: linear-gradient(135deg, #dbbe66 0%, #c9a84c 100%);
  color: #060e07;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(201,168,76,.52),
              inset 0 1px 0 rgba(255,255,255,.22),
              inset 0 0 0 1px rgba(255,255,255,.15);
}

/* Hamburger */
.site-header.hdr-dark .hbar { background: rgba(255,255,255,.88); }

/* Search dropdown */
.site-header.hdr-dark .sd-submit { background: var(--hdr-gold); color: #07110a; }
.site-header.hdr-dark .sd-form:focus-within {
  border-color: var(--hdr-gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,.18);
}

/* Dropdown menus — dark card */
.site-header.hdr-dark .nav-dropdown,
.site-header.hdr-dark .sub-menu {
  background: rgb(10, 72, 54);
  border-top-color: var(--hdr-gold);
  box-shadow: 0 16px 48px rgba(0,0,0,.4), 0 4px 16px rgba(0,0,0,.2);
}
.site-header.hdr-dark .nav-dropdown a,
.site-header.hdr-dark .sub-menu a {
  color: rgba(255,255,255,.72);
}
.site-header.hdr-dark .nav-dropdown a:hover,
.site-header.hdr-dark .sub-menu a:hover {
  background: rgba(255,255,255,.07);
  color: var(--hdr-gold);
}

/* Megamenu feat panel keeps its own dark gradient */
.site-header.hdr-dark .mega-parent > .nav-dropdown > li:not(.mega-feat),
.site-header.hdr-dark .mega-parent > .sub-menu    > li:not(.mega-feat) {
  background: rgb(10, 72, 54);
  border-left-color: rgba(255,255,255,.1);
}
.site-header.hdr-dark .mega-parent > .nav-dropdown > li:not(.mega-feat) > a,
.site-header.hdr-dark .mega-parent > .sub-menu    > li:not(.mega-feat) > a {
  color: var(--hdr-gold);
  border-bottom-color: rgba(201,168,76,.15);
}
.site-header.hdr-dark .mega-parent > .nav-dropdown > li:not(.mega-feat) > ul > li > a,
.site-header.hdr-dark .mega-parent > .sub-menu    > li:not(.mega-feat) > ul > li > a {
  color: rgba(255,255,255,.65);
}
.site-header.hdr-dark .mega-parent > .nav-dropdown > li:not(.mega-feat) > ul > li > a:hover,
.site-header.hdr-dark .mega-parent > .sub-menu    > li:not(.mega-feat) > ul > li > a:hover {
  background: rgba(255,255,255,.07);
  color: var(--hdr-gold);
}

/* Ticker — gold text on dark */
.site-header.hdr-dark ~ .tg-ticker,
.tg-ticker.hdr-dark { background: rgb(8, 55, 40); }
.site-header.hdr-dark ~ .tg-ticker .tg-ticker__item { color: rgba(255,255,255,.72); }
.site-header.hdr-dark ~ .tg-ticker .tg-ticker__leaf { color: var(--hdr-gold); }
