/* Header Container */
.header__container {
  background: var(--header-primary);
  color: var(--color-white);
  width: 100%;
  margin-inline: auto;
  padding-inline: 24px;
}

.header__wrapper {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  width: 100%;
  height: auto;
}

.header__right__wrapper {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Desktop Navigation */
.nav__list {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav__link {
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: var(--color-white);
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
}

.nav__link:hover {
  border-bottom-color: var(--color-white);
}

.nav__link[aria-current="page"] {
  font-weight: 600;
  border-bottom-color: var(--color-white);
}

/* Buttons */
.btn {
  min-height: 44px;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  transition: var(--transition);
  display: flex;
  align-items: center;
}

.btn-primary {
  background: var(--color-primary-btn);
  color: var(--color-white);
  font-size: 16px;
  font-weight: 600;
}

.btn-primary:hover {
  background: var(--color-primary);
}

/* Language Switcher */
.language-switcher,
.mobile-language-switcher {
  min-height: 44px;
  color: var(--color-white);
  font-size: 14px;
  cursor: pointer;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
}

.language-switcher option,
.mobile-language-switcher option {
  color: var(--color-black);
  background: var(--color-white);
}

/* Language Switcher V2 — flag image button + custom dropdown menu
   (used only by LocaleSwitcherV2.ascx; does not affect the LocaleSwitcher.ascx
   markup/CSS above, which V1 pages still use unchanged) */
.locale-switcher-wrap {
  position: relative;
}

.locale-switcher-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 4px 8px;
  color: var(--color-white);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
}

.locale-switcher-btn:hover,
.locale-switcher-wrap.is-open .locale-switcher-btn {
  border-color: var(--color-white);
}

.locale-flag-icon {
  width: 18px;
  height: 18px;
  object-fit: cover;
  border-radius: 50%; /* flag assets are round icon-pack art (512x512) — match that shape instead of cropping to an oval */
  flex-shrink: 0;
}

/* en-us uses a real rectangular flag asset (assets/images/svg/US-flag.svg) —
   render it as a flat rectangle instead of the round icon-pack shape above. */
.locale-flag-icon--rect {
  width: 20px;
  height: 14px;
  border-radius: 2px;
}

.locale-chevron {
  font-size: 10px;
  line-height: 1;
}

.locale-switcher-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 100px;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  background: var(--color-white);
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
  z-index: 1001;
}

.locale-switcher-menu[hidden] {
  display: none;
}

.locale-switcher-menu li {
  display: block;
}

.locale-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  color: var(--color-black);
  font-size: 14px;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
}

.locale-option:hover {
  background: var(--color-border);
}

/* Mobile overlay uses the same dark background as the desktop header,
   so the V2 switcher's styling applies unchanged there too. */
@media (max-width: 767px) {
  .locale-switcher-menu {
    right: auto;
    left: 0;
  }
}

/* Hide mobile elements on desktop */
.mobile-language-switcher {
  display: none;
}

/* Hamburger Button */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 44px;
  height: 44px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 13px 10px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--color-white);
  border-radius: 2px;
  pointer-events: none;
}

/* Mobile Overlay */
.mobile-overlay {
  position: fixed;
  top: 0;
  left: -100%;
  width: 80%;
  max-width: 300px;
  height: 100%;
  background: var(--header-primary);
  color: var(--color-white);
  transition: left 0.3s ease-in-out;
  z-index: 1000;
  padding: 24px;
  padding-top: 80px;
  display: flex;
  flex-direction: column;
}

.mobile-overlay-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-overlay-nav a,
.mobile-overlay-nav select,
.mobile-overlay-nav button {
  color: var(--color-white);
  text-decoration: none;
  font-size: 16px;
}

.mobile-overlay-nav a,
.mobile-overlay-nav button,
.mobile-overlay-nav select {
    min-height: 44px;
    display: flex;
    align-items: center;
    width: max-content;
}

/* Show overlay when active */
.mobile-overlay.active {
  left: 0;
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1199px) {
  .header__right__wrapper {
    gap: 16px;
  }

  .nav__list {
    gap: 8px;
  }

  .language-switcher {
    max-width: 90px;
  }
}

/* Mobile */
@media (max-width: 767px) {
    .header__container {
        padding-inline: 16px;
    }

    .header__logo {
        width: 180px;
        height: auto;
    }

      .desktop-nav {
        display: none;
      }

    .my_account_desktop {
        display: none
    }

    .hamburger {
        display: flex;
    }

  .header__right__wrapper {
    gap: 8px;
  }

  .btn-primary {
    padding-inline: 16px;
    min-height: 40px;
    font-size: 14px;
  }

  .mobile-language-switcher {
    display: flex;
    padding: 0;
  }

  .language-switcher {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-overlay {
    transition: none;
  }
}
