/* ==========================================================================
   Vatlieuso — header.css
   Sticky header, mega-menu, search bar, dark mode toggle
   ========================================================================== */

/* ---------- Skip Link (accessibility) ---------- */
.vls-skip-link {
  position: absolute;
  top: -100%;
  left: var(--sp-4);
  z-index: 9999;
  padding: var(--sp-2) var(--sp-4);
  background: var(--accent);
  color: #0D1832;
  font-family: var(--font-body);
  font-size: var(--fs-14);
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top 0.1s;
}
.vls-skip-link:focus {
  top: var(--sp-2);
  outline: 2px solid #0D1832;
  outline-offset: 2px;
}

/* ---------- Site Header ---------- */
.vls-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--navy-dark, #0D1832);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: box-shadow var(--dur-normal) var(--ease-out);
}

.vls-header.is-scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.vls-header__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}

/* ---------- Logo ---------- */
.vls-header__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.vls-header__logo img,
.vls-header__logo svg {
  height: 28px;
  width: auto;
}
.vls-header__logo .logo-light { display: none !important; }
.vls-header__logo .logo-dark  { display: block !important; }

/* ---------- Primary Nav ---------- */
.vls-header__nav {
  flex: 1;
  display: flex;
  align-items: center;
}

.vls-nav {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}

.vls-nav > li {
  position: relative;
}

.vls-nav > li > a {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: 0 var(--sp-4);
  height: var(--header-h);
  font-family: var(--font-body);
  font-size: var(--fs-14);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
  transition: color var(--dur-fast);
  border-bottom: 2px solid transparent;
}
.vls-nav > li > a:hover,
.vls-nav > li.is-active > a {
  color: #fff;
  border-bottom-color: var(--cta, #FFC107);
}

/* Resale nav item — special hi-vis accent */
.vls-nav > li.nav-resale > a {
  color: #FF6B35;
}
.vls-nav > li.nav-resale > a:hover {
  color: #FF8C00;
  border-bottom-color: #FF8C00;
}

/* ---------- Mega Menu ---------- */
.vls-nav > li.vls-nav__has-mega:hover .vls-mega-menu,
.vls-nav > li.vls-nav__has-mega:focus-within .vls-mega-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.vls-mega-menu {
  position: absolute;
  top: 100%;
  left: -32px;
  min-width: 900px;
  background: #0D1832; /* var(--navy-dark) */
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 3px solid #FFC107;
  border-radius: 0 0 var(--r-3) var(--r-3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  max-height: calc(100vh - var(--header-h) - 16px);
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity var(--dur-normal) var(--ease-out), transform var(--dur-normal) var(--ease-out);
  z-index: 200;
}
.vls-mega-menu::-webkit-scrollbar { width: 10px; }
.vls-mega-menu::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  border: 3px solid #0D1832;
}

.vls-mega-menu__body {
  display: flex;
  gap: 0;
}

/* Left: category columns */
.vls-mega-menu__cats {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: var(--sp-5);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.vls-mega-menu__group {
  padding: var(--sp-3);
  border-radius: var(--r-2);
}
.vls-mega-menu__group:hover { background: rgba(255, 255, 255, 0.04); }

.vls-mega-menu__group-head {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
  text-decoration: none;
}
.vls-mega-menu__group-icon {
  width: 28px;
  height: 28px;
  background: rgba(255, 193, 7, 0.12);
  border-radius: var(--r-1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFC107;
  flex-shrink: 0;
}
.vls-mega-menu__group-name {
  font-family: var(--font-body);
  font-size: var(--fs-13);
  font-weight: 700;
  color: #fff;
  flex: 1;
  line-height: 1.3;
  transition: color var(--dur-fast);
}
.vls-mega-menu__group-head:hover .vls-mega-menu__group-name { color: #FFC107; }

.vls-mega-menu__group-sku {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--r-1);
  padding: 1px 5px;
  white-space: nowrap;
}

.vls-mega-menu__sub {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.vls-mega-menu__sub li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px;
  border-radius: var(--r-1);
  font-family: var(--font-body);
  font-size: var(--fs-12);
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color var(--dur-fast), background var(--dur-fast);
}
.vls-mega-menu__sub li a:hover {
  color: #FFC107;
  background: rgba(255, 193, 7, 0.08);
}
.vls-mega-menu__sub-count {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.3);
  margin-left: auto;
  padding-left: var(--sp-2);
}
.vls-mega-menu__sub-all a {
  color: #FFC107 !important;
  font-weight: 600;
  margin-top: var(--sp-1);
}
.vls-mega-menu__sub-all a:hover { background: rgba(255, 193, 7, 0.08) !important; }

/* Right: tools + trending sidebar */
.vls-mega-menu__side {
  width: 200px;
  flex-shrink: 0;
  padding: var(--sp-5) var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}
.vls-mega-menu__side-label {
  font-family: var(--font-body);
  font-size: var(--fs-11);
  font-weight: 700;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin: 0 0 var(--sp-2);
}
.vls-mega-menu__tool-item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 6px 8px;
  border-radius: var(--r-2);
  font-family: var(--font-body);
  font-size: var(--fs-13);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: background var(--dur-fast), color var(--dur-fast);
  margin-bottom: 2px;
}
.vls-mega-menu__tool-item:hover { background: rgba(255, 255, 255, 0.04); color: #fff; }
.vls-mega-menu__tool-item i[data-lucide] { color: rgba(255, 255, 255, 0.4); flex-shrink: 0; }

.vls-mega-menu__trending {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.vls-mega-menu__trend-tag {
  display: block;
  padding: 5px 8px;
  border-radius: var(--r-1);
  font-family: var(--font-body);
  font-size: var(--fs-12);
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
  transition: color var(--dur-fast), background var(--dur-fast);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vls-mega-menu__trend-tag:hover { color: #FFC107; background: rgba(255, 193, 7, 0.08); }

/* ---------- Header Right Actions ---------- */
.vls-header__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-shrink: 0;
}

/* Dark mode toggle */
.vls-dark-toggle {
  width: 36px;
  height: 36px;
  border-radius: var(--r-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.vls-dark-toggle:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

/* Sun / Moon icon switching based on data-theme */
.vls-dark-toggle .icon-sun { display: block; }
.vls-dark-toggle .icon-moon { display: none; }

[data-theme="dark"] .vls-dark-toggle .icon-sun { display: none !important; }
[data-theme="dark"] .vls-dark-toggle .icon-moon { display: block !important; }

/* Hotline */
.vls-header__hotline {
  font-family: var(--font-mono);
  font-size: var(--fs-13);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0 var(--sp-3);
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--r-2);
  transition: color var(--dur-fast), border-color var(--dur-fast);
}
.vls-header__hotline:hover { color: #FFC107; border-color: #FFC107; }

/* CTA button in header */
.vls-header__cta {
  background: #FFC107 !important;
  color: #1A1600 !important;
  border-color: #FFC107 !important;
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  border-radius: 4px !important;
}
.vls-header__cta:hover {
  background: #FFD54F !important;
  border-color: #FFD54F !important;
}

/* ---------- Mobile Hamburger ---------- */
.vls-header__burger {
  display: none;
  width: 36px;
  height: 36px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--r-2);
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
}
.vls-header__burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform var(--dur-normal), opacity var(--dur-fast);
}

/* ---------- Mobile Nav Drawer ---------- */
.vls-mobile-nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-1);
  transform: translateX(-100%);
  transition: transform var(--dur-normal) var(--ease-out);
  overflow-y: auto;
  z-index: 90;
  display: flex;
  flex-direction: column;
}
.vls-mobile-nav.is-open { transform: translateX(0); }

/* Search */
.vls-mobile-nav__search {
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--border-1);
  flex-shrink: 0;
}
.vls-mobile-nav__search form {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-2);
  border-radius: var(--r-2);
  overflow: hidden;
  background: var(--bg-body, #F7F7F5);
}
.vls-mobile-nav__search input {
  flex: 1;
  padding: 10px 14px;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: var(--fs-14);
  color: var(--fg-1);
  min-width: 0;
}
.vls-mobile-nav__search input:focus { outline: none; }
.vls-mobile-nav__search button {
  padding: 10px 12px;
  border-left: 1px solid var(--border-1);
  background: transparent;
  color: var(--fg-3);
  display: flex;
  align-items: center;
}

/* Sections */
.vls-mobile-nav__section {
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--border-1);
}
.vls-mobile-nav__section-label {
  font-family: var(--font-body);
  font-size: var(--fs-11);
  font-weight: 700;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--fg-3);
  margin: 0 0 var(--sp-3);
}

/* Category accordion (details/summary) */
.vls-mobile-nav__cat-group {
  border-bottom: 1px solid var(--border-1);
}
.vls-mobile-nav__cat-group:last-child { border-bottom: none; }

.vls-mobile-nav__cat-head {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 11px 0;
  font-family: var(--font-body);
  font-size: var(--fs-14);
  font-weight: 600;
  color: var(--fg-1);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.vls-mobile-nav__cat-head::-webkit-details-marker { display: none; }
.vls-mobile-nav__cat-head > i[data-lucide]:last-child {
  margin-left: auto;
  color: var(--fg-3);
  transition: transform var(--dur-fast);
}
details[open] .vls-mobile-nav__cat-head > i[data-lucide]:last-child {
  transform: rotate(90deg);
}
.vls-mobile-nav__cat-icon {
  width: 28px;
  height: 28px;
  background: var(--accent-soft);
  border-radius: var(--r-1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.vls-mobile-nav__cat-children {
  padding: 4px 0 10px 44px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.vls-mobile-nav__cat-link {
  display: block;
  padding: 7px 10px;
  border-radius: var(--r-1);
  font-family: var(--font-body);
  font-size: var(--fs-13);
  color: var(--fg-2);
  text-decoration: none;
  transition: color var(--dur-fast), background var(--dur-fast);
}
.vls-mobile-nav__cat-link:hover { color: var(--fg-1); background: var(--bg-sunken); }
.vls-mobile-nav__cat-link--all {
  font-weight: 600;
  color: var(--accent);
}

/* Tool links */
.vls-mobile-nav__link {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 10px 0;
  font-family: var(--font-body);
  font-size: var(--fs-14);
  font-weight: 500;
  color: var(--fg-1);
  text-decoration: none;
  border-bottom: 1px solid var(--border-1);
}
.vls-mobile-nav__section .vls-mobile-nav__link:last-child { border-bottom: none; }
.vls-mobile-nav__link:hover { color: var(--accent); }
.vls-mobile-nav__link i[data-lucide] { color: var(--fg-3); flex-shrink: 0; }

/* CTA */
.vls-mobile-nav__cta {
  padding: var(--sp-5);
  margin-top: auto;
}
.vls-btn--full { width: 100%; justify-content: center; }

/* ---------- Header Search Bar (compact inline) ---------- */
.vls-header-search {
  flex: 0 1 340px;
  position: relative;
}

.vls-header-search__input-wrap {
  display: flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-2);
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.vls-header-search__input-wrap:focus-within {
  border-color: rgba(255, 193, 7, 0.5);
  box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.1);
}

.vls-header-search__input {
  flex: 1;
  padding: 8px 12px;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: var(--fs-13);
  color: #fff;
  min-width: 0;
}
.vls-header-search__input:focus { outline: none; }
.vls-header-search__input::placeholder { color: rgba(255, 255, 255, 0.35); }

.vls-header-search__hint {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  padding: 2px 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.35);
  margin-right: 8px;
  pointer-events: none;
  display: inline-block;
}

.vls-header-search__btn {
  padding: 8px 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  transition: color var(--dur-fast), background var(--dur-fast);
}
.vls-header-search__btn:hover { color: #FFC107; background: rgba(255, 255, 255, 0.05); }

/* Search Dropdown */
.vls-search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #0D1832; /* var(--navy-dark) */
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 200;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.vls-search-dropdown.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.vls-search-dropdown__section-label {
  font-family: var(--font-body);
  font-size: var(--fs-12);
  font-weight: 700;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  padding: 10px var(--sp-4) 6px;
}
.vls-search-dropdown__item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 8px var(--sp-4);
  transition: background var(--dur-fast);
  cursor: pointer;
}
.vls-search-dropdown__item:hover { background: rgba(255, 255, 255, 0.04); }
.vls-search-dropdown__thumb {
  width: 36px;
  height: 36px;
  border-radius: var(--r-1);
  object-fit: cover;
  background: rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}
.vls-search-dropdown__name {
  font-family: var(--font-body);
  font-size: var(--fs-13);
  font-weight: 600;
  color: #fff;
}
.vls-search-dropdown__meta {
  font-family: var(--font-body);
  font-size: var(--fs-12);
  color: rgba(255, 255, 255, 0.5);
}
.vls-search-dropdown__price {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: var(--fs-13);
  font-weight: 700;
  color: #FFC107;
  white-space: nowrap;
  font-feature-settings: "tnum" 1;
}
.vls-search-dropdown__footer {
  display: block;
  padding: 10px var(--sp-4);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-body);
  font-size: var(--fs-13);
  font-weight: 600;
  color: #FFC107;
  text-align: center;
  transition: background var(--dur-fast);
}
.vls-search-dropdown__footer:hover { background: rgba(255, 255, 255, 0.04); }
.vls-search-dropdown__footer { display: flex; align-items: center; justify-content: center; gap: 8px; }

/* Scroll khi nhiều kết quả */
.vls-search-dropdown { max-height: min(70vh, 520px); overflow-y: auto; }
.vls-search-dropdown::-webkit-scrollbar { width: 8px; }
.vls-search-dropdown::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 8px; }

/* Item đang chọn bằng bàn phím */
.vls-search-dropdown__item.is-active,
.vls-search-dropdown__footer.is-active { background: rgba(255, 193, 7, 0.12); }
.vls-search-dropdown__item.is-active { box-shadow: inset 2px 0 0 #FFC107; }

/* Highlight chữ khớp */
.vls-hl {
  background: rgba(255, 193, 7, 0.22);
  color: #FFD75E;
  border-radius: 2px;
  padding: 0 1px;
  font-weight: 700;
}

/* Hộp icon tròn cho danh mục / thương hiệu / gợi ý */
.vls-search-dropdown__ico {
  width: 36px; height: 36px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-1);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.6);
}
.vls-search-dropdown__ico i { width: 16px; height: 16px; }
.vls-search-dropdown__ico--gold {
  background: rgba(255, 193, 7, 0.14);
  color: #FFC107;
}

/* Section label có nút "Xoá" */
.vls-search-dropdown__section-label {
  display: flex; align-items: center; justify-content: space-between;
}
.vls-search-dropdown__clear {
  background: none; border: none; cursor: pointer;
  font-family: var(--font-body); font-size: var(--fs-11);
  font-weight: 600; letter-spacing: 0; text-transform: none;
  color: rgba(255, 255, 255, 0.4);
  transition: color var(--dur-fast);
}
.vls-search-dropdown__clear:hover { color: #FFC107; }

/* Chips: lịch sử + xu hướng */
.vls-search-chips {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 4px var(--sp-4) 10px;
}
.vls-search-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-body); font-size: var(--fs-12);
  cursor: pointer;
  transition: border-color var(--dur-fast), background var(--dur-fast), color var(--dur-fast);
}
.vls-search-chip:hover,
.vls-search-chip.is-active {
  border-color: rgba(255, 193, 7, 0.5);
  background: rgba(255, 193, 7, 0.1);
  color: #fff;
}
.vls-chip-ico { width: 13px; height: 13px; opacity: 0.6; }

/* Trạng thái rỗng (không kết quả) */
.vls-search-empty {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 28px 16px; text-align: center;
  color: rgba(255, 255, 255, 0.5); font-size: var(--fs-13);
}
.vls-search-empty i { width: 28px; height: 28px; opacity: 0.4; }

/* Gợi ý phím Enter trong footer */
.vls-kbd-hint {
  font-family: var(--font-mono); font-size: 10px;
  padding: 2px 6px; border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
}

/* Skeleton loading */
.vls-search-skel { padding: 6px 0; }
.vls-skel-row { display: flex; align-items: center; gap: var(--sp-3); padding: 8px var(--sp-4); }
.vls-skel-thumb { width: 36px; height: 36px; border-radius: var(--r-1); flex-shrink: 0; }
.vls-skel-lines { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.vls-skel-lines span { height: 9px; border-radius: 4px; }
.vls-skel-lines span:first-child { width: 70%; }
.vls-skel-lines span:last-child  { width: 40%; }
.vls-skel-thumb,
.vls-skel-lines span {
  background: linear-gradient(90deg,
    rgba(255,255,255,0.05) 25%,
    rgba(255,255,255,0.11) 37%,
    rgba(255,255,255,0.05) 63%);
  background-size: 400% 100%;
  animation: vls-shimmer 1.3s ease infinite;
}
@keyframes vls-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1440px) {
  .vls-header__inner { gap: var(--sp-4); }
  .vls-header-search { flex: 0 1 200px; }
  .vls-nav > li > a { padding: 0 var(--sp-3); }
}

/* Laptop ~1280-1360px: siết khoảng cách, ẩn ô tìm kiếm (đã có trang tìm riêng)
   để dành chỗ cho nút Đăng ký NCC không bị tràn. */
@media (max-width: 1280px) {
  .vls-header__inner { gap: var(--sp-3); }
  .vls-header__hotline { padding: 0 var(--sp-2); }
  .vls-header-search { display: none; }
}

/* Nhỏ hơn nữa: ẩn thêm hotline (vẫn còn nút gọi ở menu mobile). */
@media (max-width: 1080px) {
  .vls-header__hotline { display: none; }
}

@media (max-width: 960px) {
  .vls-header__nav,
  .vls-header-search,
  .vls-header__hotline { display: none; }

  .vls-header__burger { display: flex; }
}

@media (max-width: 480px) {
  .vls-header__cta { display: none; }
}

/* Giỏ hàng trên header */
.vls-header__cart { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; color: rgba(255,255,255,.75); border: 1px solid rgba(255,255,255,.15); }
.vls-header__cart:hover { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.28); }
.vls-header__cart [data-cart-count] { position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--accent,#E2562B); color: #fff; font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
