/* 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;
}

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

.site-header__cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: none;
  border: 0;
  line-height: 1;
  cursor: pointer;
  color: #9aa5ad; /* light grey cart glyph (matches live) */
  font-size: 1.5rem;
  padding-right: 6px;
}

.site-header__cart-count {
  position: absolute;
  top: -7px;
  right: -3px;
  min-width: 17px;
  height: 17px;
  border-radius: var(--radius-pill);
  background: #25465f; /* dark petrol-navy badge (matches live) */
  color: #fff;
  font-size: 0.625rem;
  font-weight: 600;
  line-height: 17px;
  text-align: center;
}

.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: 700;
}

.site-header__chevron {
  font-size: 0.8125rem;
}

.site-header__flag {
  width: 30px;
  height: 21px;
  border-radius: 3px;
}

/* TODO mobile nav unverified — minimal stacked menu below 1025px */
.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__nav {
    display: none;
  }

  .site-header__burger {
    display: inline-block;
  }

  .site-header--nav-open .site-header__nav {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-3) var(--container-pad);
  }

  .site-header--nav-open .site-header__nav ul {
    flex-direction: column;
    gap: var(--space-3);
  }
}

/* --- 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;
  /* Per-site nudge to balance the logo between the top bar and the grey checkout
     card (Havas sets it; 0 elsewhere). */
  padding-top: var(--checkout-logo-offset, 0);
}
.site-header--minimal .site-header__inner {
  justify-content: center;
}
