.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-black);
  border-bottom: 1px solid var(--border-dark);
  height: var(--header-height);
  overflow: visible;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-height);
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 1;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
  max-width: 180px;
  overflow: hidden; /* large logo assets must not cover the nav hit area */
}

.header-logo img {
  width: auto;
  height: 36px;
  max-width: 100%;
  object-fit: contain;
  pointer-events: none;
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  flex: 1 1 auto;
  min-width: 0;
  position: relative;
  z-index: 30; /* above logo / utils bleed */
  pointer-events: auto;
}

.header-nav-link,
.header-nav a {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-white);
  white-space: nowrap;
  position: relative;
  z-index: 31;
  display: inline-block;
  padding: 10px 4px;
  cursor: pointer;
  pointer-events: auto !important;
}

.header-nav-link.is-active,
.header-nav a.active,
.header-nav-link:hover,
.header-nav a:hover {
  color: var(--gold);
}

.header-nav-link.is-active::after,
.header-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 4px;
  right: 4px;
  height: 1px;
  background: var(--gold);
}

.header-utils {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 0 0 auto;
  pointer-events: auto;
}

.lang-selector {
  position: relative;
  z-index: 21;
  display: flex;
  align-items: center;
  isolation: isolate;
}

.lang-select-wrap {
  display: inline-flex;
  align-items: center;
}

.lang-select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 1px solid rgba(197, 160, 89, 0.45);
  border-radius: 2px;
  color: var(--gold);
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1;
  padding: 6px 28px 6px 10px;
  cursor: pointer;
  min-width: 72px;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%),
    linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.lang-select:focus {
  outline: 1px solid var(--gold);
  outline-offset: 2px;
}

.lang-select option {
  color: #111;
  background: #fff;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cart-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  font-size: 11px;
}

.cart-link img {
  width: 18px;
  height: 18px;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--gold);
}

@media (max-width: 1200px) {
  .header-nav {
    gap: 8px 12px;
  }

  .header-nav-link,
  .header-nav a {
    font-size: 9px;
  }
}

@media (max-width: 1024px) {
  .header-inner {
    padding: 0 24px;
  }

  .header-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    z-index: 40;
    background: var(--bg-black);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 12px;
    border-bottom: 1px solid var(--border-dark);
  }

  .header-nav.open {
    display: flex;
  }

  .header-nav-link,
  .header-nav a {
    font-size: 13px;
    padding: 12px 4px;
  }

  .mobile-menu-btn {
    display: flex;
    position: relative;
    z-index: 41;
  }
}
