/* ============================================================
   BAMBL Canonical Nav Layout
   Loads AFTER per-page inline <style> + BEFORE mobile.css.
   Three clusters: brand (left) · nav__center (center) · nav__actions (right).
   Mobile (≤1024px) hides center+actions, mobile-nav.js injects hamburger.
   ============================================================ */

header.nav {
  position: sticky;
  top: 0;
  z-index: 300;
}
header.nav .nav__inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 32px;
  display: flex !important;
  align-items: center;
  gap: 32px;
}
header.nav .brand {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
}
header.nav .nav__center {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  min-width: 0;
}
header.nav .nav__links {
  display: flex !important;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0 !important;
  padding: 0 !important;
}
header.nav .nav__links > li {
  display: flex;
  align-items: center;
}
header.nav .nav__links a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bone);
  white-space: nowrap;
  transition: color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
header.nav .nav__links a:hover,
header.nav .nav__links .nav-active > a,
header.nav .nav__links a.is-active {
  color: var(--bam-red);
}

header.nav .nav__actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
}
header.nav .nav__actions #navAuthItem {
  display: flex;
  align-items: center;
}
header.nav .nav__actions .nav__cart,
header.nav .nav__actions .nav__user-icon {
  position: relative;
  display: flex;
  align-items: center;
  color: var(--bone);
  transition: color 150ms;
  padding: 2px;
}
header.nav .nav__actions .nav__cart:hover,
header.nav .nav__actions .nav__user-icon:hover {
  color: var(--bam-red);
}
header.nav .nav__actions .cart-badge {
  position: absolute;
  top: -4px;
  right: -8px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: var(--bam-red);
  color: var(--bone);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
  border-radius: 8px;
  letter-spacing: 0;
}

/* Tighten on narrower desktop */
@media (max-width: 1280px) {
  header.nav .nav__inner { gap: 20px; padding: 0 24px; }
  header.nav .nav__links { gap: 16px; }
  header.nav .nav__links a { font-size: 13px; }
  header.nav .nav__actions { gap: 12px; }
}

/* Tablet/mobile: hide center + actions; mobile-nav.js shows hamburger */
@media (max-width: 1024px) {
  header.nav .nav__center,
  header.nav .nav__actions {
    display: none !important;
  }
  header.nav .nav__inner {
    justify-content: space-between;
    padding: 0 20px;
    gap: 16px;
  }
}
