/* Site header: logo · primary nav · cart / currency / language tools. */

.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 50;
  transition: box-shadow 0.2s ease;
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  min-height: 71px; /* + 1px border = 72px, measured on reference */
  transition: min-height 0.2s ease;
}

.site-header__logo img {
  width: var(--header-logo-width, 132px);
  height: auto;
  transition: width 0.2s ease;
}

/* Compact slightly once scrolled (toggled by js/sticky-header.js). */
.site-header--stuck .site-header__inner {
  min-height: 58px;
}

.site-header--stuck .site-header__logo img {
  width: calc(var(--header-logo-width, 132px) * 0.88);
}

/* Very subtle lift once the header is stuck over scrolled content. */
.site-header--stuck {
  box-shadow: 0 4px 14px rgba(37, 70, 95, 0.06);
}

.site-header__nav {
  flex: 1;
}

.site-header__nav ul {
  display: flex;
  justify-content: center;
  gap: var(--space-7);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-header__nav a {
  color: var(--color-text);
  font-size: 0.9375rem;
}

.site-header__nav a:hover {
  color: var(--color-action);
  text-decoration: none;
}

/* The account icon on the account page (header-active.js); the menu's link to
   the current page is coloured with the menu's own ink, storefront/header.css. */
.site-header__account[aria-current="page"] {
  color: var(--color-primary);
}

.site-header__tools {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.site-header__tool {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 1.0625rem;
  color: var(--color-text);
  padding: var(--space-2);
}

.site-header__currency-symbol {
  font-weight: 600;
}

/* The account icon: a bare glyph in the bar's ink, beside the switchers on
   desktop and beside the burger on mobile. */
.site-header__account {
  display: inline-flex;
  align-items: center;
  font-size: 1.4rem;
  color: var(--color-text);
  text-decoration: none;
}

/* The burger's look. Its placement and the full-screen menu it opens are
   structure — `src/styles/foundation/nav.css` › `.site-header--overlay`. */
.site-header__burger {
  display: none;
  background: none;
  border: 0;
  font-size: 1.4rem;
  color: var(--color-text);
  cursor: pointer;
}

@media (max-width: 1024px) {
  .site-header__burger {
    display: inline-block;
  }
}

/* --- Checkout-flow minimal header: just the centered logo, not a sticky bar. */
.site-header--minimal {
  position: static;
  background: transparent;
  box-shadow: none;
  border-bottom: 0;
}
.site-header--minimal .site-header__inner {
  justify-content: center;
}
