section[data-zone-code="header"][aria-label] {
  position: fixed;
  top: 0;
  z-index: 50;
  width: 100%;
  height: 56px;
  box-sizing: border-box;
  padding-left: 16px;
  padding-right: 16px;
  background: #fff;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.1),
    0 1px 2px rgba(0, 0, 0, 0.06);
}

/* Wrapper bên trong */
section[data-zone-code="header"][aria-label] > div {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}

@media (min-width: 768px) {
  section[data-zone-code="header"][aria-label] {
    height: 70px;
    padding-left: 48px;
    padding-right: 48px;
  }
}

@media (min-width: 1024px) {
  section[data-zone-code="header"][aria-label] {
    height: 80px;
    padding-left: 96px;
    padding-right: 96px;
  }
}

@media (min-width: 1280px) {
  section[data-zone-code="header"][aria-label] {
    padding-left: 128px;
    padding-right: 128px;
  }
}

@media (min-width: 1536px) {
  section[data-zone-code="header"][aria-label] {
    padding-left: 160px;
    padding-right: 160px;
  }
}


/* =========================================================
   HEADER LAYOUT
   ========================================================= */

.lb-box-grid--header {
  flex-direction: row;
}

/*
 * Cho box ch?a .bt-vh chi?m toàn b? ph?n không gian c̣n l?i.
 */
.lb-box-grid--header > .lb-box--3 {
  flex: 1 1 0%;
  width: auto;
  min-width: 0;
}


/* =========================================================
   MAIN HEADER
   ========================================================= */

.bt-vh {
  display: flex;
  align-items: center;
  justify-content: space-between;

  width: 100%;
  min-width: 0;
}


/* =========================================================
   NAV
   ========================================================= */

.bt-vh__nav {
  flex: 1 1 auto;
  min-width: 0;

  display: flex;
  align-items: center;
  justify-content: center;
}


/* =========================================================
   MENU
   ========================================================= */

.bt-vh__menu {
  display: flex;
  flex-wrap: wrap;

  justify-content: center;
  align-items: center;

  gap: 4px 20px;

  list-style: none;
  margin: 0;
  padding: 0;
}

.bt-vh__item {
  position: relative;
}

.bt-vh__row {
  display: flex;
  align-items: center;
  gap: 2px;
}

.bt-vh__link {
  display: flex;
  align-items: center;

  padding: 0;

  color: #1f2937;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;

  text-decoration: none;
  white-space: nowrap;

  transition: color 0.2s;
}

.bt-vh__link:hover,
.bt-vh__link.is-active,
.bt-vh__item.is-open > .bt-vh__row .bt-vh__link {
  color: var(--color-primary);
}


/* =========================================================
   CHEVRON
   ========================================================= */

.bt-vh__chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 24px;
  height: 24px;

  padding: 0;
  border: none;
  border-radius: 6px;

  background: transparent;
  color: #1f2937;

  cursor: pointer;

  transition: color 0.2s;
}

.bt-vh__chevron svg {
  transition: transform 0.2s ease;
}

.bt-vh__item.is-open .bt-vh__chevron {
  color: var(--color-primary);
}

.bt-vh__item.is-open .bt-vh__chevron svg {
  transform: rotate(180deg);
}


/* =========================================================
   FOCUS
   ========================================================= */

.bt-vh__link:focus-visible,
.bt-vh__chevron:focus-visible,
.bt-vh__sublink:focus-visible,
.bt-vh__icon:focus-visible,
.bt-vh__lang:focus-visible,
.bt-vh__toggle:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 6px;
}


/* =========================================================
   DROPDOWN
   ========================================================= */

.bt-vh__dropdown {
  position: absolute;

  top: 100%;
  left: 0;
  z-index: 1000;

  width: 280px;

  margin: 8px 0 0;
  padding: 8px;

  list-style: none;

  background: #fff;
  border-radius: 12px;

  box-shadow:
    0 10px 30px rgba(15, 23, 42, 0.12),
    0 2px 6px rgba(15, 23, 42, 0.06);

  opacity: 0;
  visibility: hidden;

  transform: translateY(8px);

  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s;
}

.bt-vh__dropdown::before {
  content: "";

  position: absolute;

  left: 0;
  right: 0;
  top: -12px;

  height: 12px;
}

.bt-vh__item.is-open > .bt-vh__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.bt-vh__sublink {
  display: block;

  padding: 10px 16px;

  border-radius: 8px;

  color: #1f2937;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;

  text-decoration: none;

  transition:
    background-color 0.15s,
    color 0.15s;
}

.bt-vh__sublink:hover {
  background: #f3f4f6;
}

.bt-vh__sublink.is-active {
  color: var(--color-primary);
}


/* =========================================================
   ACTIONS
   ========================================================= */

.bt-vh__actions {
  display: flex;
  align-items: center;

  gap: 16px;

  flex-shrink: 0;
}

.bt-vh__icon {
  display: inline-flex;
  align-items: center;

  color: #374151;

  text-decoration: none;

  transition: color 0.2s;
}

.bt-vh__icon:hover,
.bt-vh__lang:hover {
  color: var(--color-primary);
}

.bt-vh__divider {
  width: 1px;
  height: 24px;

  margin-left: -8px;

  background: #374151;
}

.bt-vh__lang {
  color: #374151;

  font-size: 14px;
  font-weight: 500;

  text-decoration: none;
}


/* =========================================================
   HAMBURGER
   ========================================================= */

.bt-vh__toggle {
  display: none;
}

.bt-vh__toggle span {
  display: block;

  width: 22px;
  height: 2px;

  border-radius: 1px;

  background: #1f2937;

  transition:
    transform 0.2s,
    opacity 0.2s;
}


/* =========================================================
   TABLET / MOBILE
   ========================================================= */

@media (max-width: 991px) {

  .bt-vh {
    justify-content: flex-end;
    gap: 16px;
  }

  .bt-vh__toggle {
    display: inline-flex;

    flex-direction: column;
    justify-content: center;
    align-items: center;

    gap: 5px;

    width: 36px;
    height: 36px;

    padding: 0;
    border: none;

    background: transparent;

    cursor: pointer;
  }

  .bt-vh__toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .bt-vh__toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .bt-vh__toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .bt-vh__nav {
    display: none;

    position: absolute;

    top: 100%;
    left: 0;
    right: 0;

    z-index: 1000;

    max-height: calc(100vh - 64px);

    overflow-y: auto;

    padding: 8px 16px 16px;

    background: #fff;

    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
  }

  .bt-vh__nav.is-open {
    display: block;
    animation: bt-vh-fade 0.2s ease;
  }

  .bt-vh__menu {
    flex-direction: column;
    align-items: stretch;

    flex-wrap: nowrap;

    gap: 0;
  }

  .bt-vh__item {
    border-bottom: 1px solid #f1f5f9;
  }

  .bt-vh__row {
    justify-content: space-between;
  }

  .bt-vh__link {
    flex: 1;

    padding: 12px 0;

    white-space: normal;
  }

  .bt-vh__chevron {
    width: 44px;
    height: 44px;
  }

  .bt-vh__dropdown {
    position: static;

    display: none;

    width: auto;

    margin: 0 0 8px;

    padding: 0 0 0 12px;

    box-shadow: none;
    border-radius: 0;

    opacity: 1;
    visibility: visible;

    transform: none;

    transition: none;
  }

  .bt-vh__dropdown::before {
    display: none;
  }

  .bt-vh__item.is-open > .bt-vh__dropdown {
    display: block;
    animation: bt-vh-fade 0.2s ease;
  }
}


/* =========================================================
   992 - 1199px
   ========================================================= */

@media (min-width: 992px) and (max-width: 1199px) {

  .bt-vh {
    gap: 16px;
  }

  .bt-vh__menu {
    column-gap: 16px;
  }

  .bt-vh__link {
    font-size: 15px;
  }
}


/* =========================================================
   <= 767px
   ========================================================= */

@media (max-width: 767px) {

  [data-zone-code="header"] div:has(> .bt-vh) {
    padding-left: 0;
    padding-right: 0;
  }

  .bt-vh__actions {
    gap: 10px;
  }

  .bt-vh__icon--cart,
  .bt-vh__divider--cart {
    display: none;
  }

  .bt-vh__toggle {
    width: 32px;
    height: 32px;
  }
}


/* =========================================================
   ANIMATION
   ========================================================= */

@keyframes bt-vh-fade {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}