/* Shared website header. Load after page CSS. */
:root {
  --site-header-red: #b81010;
  --site-header-red-bright: #e12626;
  --site-header-red-dark: #7f0505;
  --site-header-ink: #0f0a0a;
  --site-header-gradient:
    linear-gradient(135deg, #e12626, #b81010 46%, #0f0a0a),
    linear-gradient(180deg, #ffffff14, #ffffff00);
}

.site-header,
.site-header.scrolled {
  position: sticky;
  top: 0;
  z-index: 1000;
  color: #fff;
  background: var(--site-header-gradient);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  opacity: 1;
}

.nav-wrapper,
.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1220px;
  margin: 0 auto;
  min-height: 74px;
  padding: 10px 22px;
}

.logo,
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 700 1.2rem "Oswald", Arial, sans-serif;
  text-transform: uppercase;
  color: #fff;
  min-width: 0;
}

.logo img,
.brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  align-items: center;
}

.nav-links a {
  position: relative;
  color: #fff;
  font: 700 0.86rem "Oswald", Arial, sans-serif;
  text-decoration: none;
  text-transform: uppercase;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 2px;
  background: #fff;
  transition: right 0.2s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  right: 0;
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
}

.nav-toggle span,
.hamburger-line {
  display: block;
  height: 3px;
  margin: 6px 5px;
  background: #fff;
}

.cart-icon-wrapper {
  position: relative;
  margin-left: 8px;
}

.cart-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: #fff;
}

.cart-link {
  position: relative;
}

.cart-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ffd700;
  color: #111;
  font: 700 11px "Open Sans", Arial, sans-serif;
  line-height: 18px;
  text-align: center;
}

@media (max-width: 960px) {
  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 74px;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px 22px 22px;
    z-index: 999;
  }

  .nav-links.open {
    display: flex;
    background: var(--site-header-gradient);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.3);
    opacity: 1;
  }

  .nav-links a {
    display: block;
    padding: 12px 0;
  }

  .cart-icon-wrapper {
    margin-left: 0;
  }
}

@media (max-width: 520px) {
  .nav-wrapper,
  .nav-shell {
    padding-inline: 16px;
  }

  .logo span,
  .brand span {
    display: none;
  }
}
