/* ===== A1 CONNECT — Header (final, approved) ===== */
:root {
  --header-bg-top: #05081c;
  --header-bg-bottom: #020410;
  --panel-bg: #0a0f28;
  --gold-light: #eaf4ff;
  --gold: #3b82f6;
  --gold-dark: #1d4ed8;
}

header.site-header {
  position: sticky; top: 0; z-index: 100;
  background: linear-gradient(180deg, var(--header-bg-top) 0%, var(--header-bg-bottom) 100%);
  border-bottom: 1px solid rgba(59,130,246,0.15);
}
.nav-wrap {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  column-gap: 32px; padding: 16px 44px; max-width: 1280px; margin: 0 auto;
}

/* Brand / logo */
.brand { justify-self: start; display: flex; align-items: center; gap: 8px; text-decoration: none; }
.brand-mark { height: 21px; display: flex; align-items: center; flex-shrink: 0; }
.brand-mark img { height: 100%; width: auto; display: block; filter: drop-shadow(0 0 8px rgba(59,130,246,0.5)); }
.brand-word {
  font-weight: 900; font-size: 26px; letter-spacing: 0.03em; color: #ffffff;
  text-transform: uppercase; line-height: 1;
  text-shadow: 0 0 16px rgba(59,130,246,0.5), 0 0 4px rgba(255,255,255,0.2);
}

/* Center nav */
.main-nav { justify-self: center; display: flex; align-items: center; gap: 30px; }
.main-nav a, .more-trigger {
  font-weight: 600; font-size: 0.93rem; color: rgba(255,255,255,0.72);
  text-decoration: none; position: relative; display: inline-flex; align-items: center; gap: 5px;
  transition: transform 0.18s ease, color 0.18s ease;
  background: none; border: none; cursor: pointer; padding: 0; font-family: inherit;
}
.main-nav a:hover, .more-trigger:hover { color: var(--gold-light); transform: translateY(-3px); }
.main-nav a.active, .more-trigger.active { color: var(--gold-light); }
.main-nav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -22px; height: 2px; background: var(--gold);
}

/* "More" dropdown */
.more-wrap { position: relative; }
.more-trigger.open { color: var(--gold-light); }
.more-trigger .chevron {
  width: 9px; height: 9px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); transition: transform 0.22s ease; margin-top: -3px;
}
.more-trigger.open .chevron { transform: rotate(-135deg); margin-top: 3px; }
.more-menu {
  position: absolute; top: calc(100% + 18px); left: 50%;
  transform: translateX(-50%) translateY(-8px) scale(0.96);
  background: var(--panel-bg); border: 1px solid rgba(59,130,246,0.25); border-radius: 14px;
  padding: 10px; min-width: 180px;
  box-shadow: 0 20px 45px rgba(0,0,0,0.5), 0 0 0 1px rgba(59,130,246,0.08);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.22s cubic-bezier(0.16,1,0.3,1), transform 0.22s cubic-bezier(0.16,1,0.3,1), visibility 0.22s;
  z-index: 50;
}
.more-menu.open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0) scale(1); }
.more-menu a {
  display: block; padding: 10px 12px; border-radius: 8px; font-weight: 600; font-size: 0.9rem;
  color: rgba(255,255,255,0.78); text-decoration: none; transition: background 0.15s ease, color 0.15s ease;
}
.more-menu a:hover, .more-menu a.active { background: rgba(59,130,246,0.14); color: var(--gold-light); }

/* Right side: Shop Cards + Cart */
.nav-cta { justify-self: end; display: flex; align-items: center; gap: 24px; }
.btn-shop {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 22px; border-radius: 999px; font-weight: 700; font-size: 0.9rem;
  text-decoration: none; color: #ffffff; white-space: nowrap;
  background-color: var(--gold-dark);
  background-image: linear-gradient(135deg, #5b9dff, var(--gold) 55%, var(--gold-dark));
  box-shadow: 0 8px 22px rgba(59,130,246,0.45), inset 0 1px 0 rgba(255,255,255,0.35);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-image 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}
.btn-shop:hover {
  transform: translateY(-2px); background-image: none; background-color: #ffffff; color: var(--gold-dark);
  box-shadow: 0 12px 28px rgba(59,130,246,0.4), inset 0 0 0 1px rgba(59,130,246,0.15);
}

/* Cart */
.cart-wrap { position: relative; }
.cart-trigger {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.25);
  cursor: pointer; transition: background 0.18s ease, transform 0.18s ease;
}
.cart-trigger:hover { background: rgba(59,130,246,0.2); transform: translateY(-2px); }
.cart-trigger svg { width: 19px; height: 19px; stroke: #eaf4ff; }
.cart-badge {
  position: absolute; top: -6px; right: -6px;
  min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px;
  background: linear-gradient(135deg, #5b9dff, var(--gold-dark));
  color: #fff; font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 2px var(--header-bg-bottom);
  transform: scale(0); transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
}
.cart-badge.show { transform: scale(1); }
.cart-panel {
  position: absolute; top: calc(100% + 18px); right: 0;
  transform: translateY(-8px) scale(0.96); transform-origin: top right;
  background: var(--panel-bg); border: 1px solid rgba(59,130,246,0.25); border-radius: 16px;
  padding: 16px; width: 300px; max-width: calc(100vw - 32px);
  box-shadow: 0 20px 45px rgba(0,0,0,0.5), 0 0 0 1px rgba(59,130,246,0.08);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.22s cubic-bezier(0.16,1,0.3,1), transform 0.22s cubic-bezier(0.16,1,0.3,1), visibility 0.22s;
  z-index: 50;
}
.cart-panel.open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0) scale(1); }
.cart-panel h4 { margin: 0 0 12px; font-size: 0.85rem; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }
.cart-empty { color: rgba(255,255,255,0.45); font-size: 0.88rem; padding: 8px 0 4px; }
.cart-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,0.07); }
.cart-line:last-of-type { border-bottom: none; }
.cart-line .info p { margin: 0; color: #fff; font-size: 0.87rem; font-weight: 700; }
.cart-line .info span { color: rgba(255,255,255,0.5); font-size: 0.78rem; }
.cart-line .price { color: var(--gold-light); font-size: 0.87rem; font-weight: 700; white-space: nowrap; }
.cart-remove { background: none; border: none; color: rgba(255,255,255,0.35); cursor: pointer; font-size: 1rem; line-height: 1; padding: 4px; transition: color 0.15s ease; }
.cart-remove:hover { color: #ff8080; }
.cart-total { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.1); font-weight: 800; color: #fff; font-size: 0.95rem; }
.cart-checkout {
  display: block; width: 100%; text-align: center; margin-top: 14px;
  padding: 11px; border-radius: 999px; font-weight: 700; font-size: 0.88rem;
  text-decoration: none; color: #fff;
  background: linear-gradient(135deg, #5b9dff, var(--gold) 55%, var(--gold-dark));
  box-shadow: 0 8px 20px rgba(59,130,246,0.4);
}

/* Mobile nav */
.menu-toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: #fff; }
.mobile-panel {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  background: var(--panel-bg); border-bottom: 1px solid rgba(59,130,246,0.2);
  padding: 16px 24px 24px; flex-direction: column; gap: 4px;
}
.mobile-panel.open { display: flex; }
.mobile-panel a {
  padding: 12px 8px; color: rgba(255,255,255,0.8); font-weight: 600; font-size: 0.98rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mobile-panel a.active { color: var(--gold-light); }
.mobile-panel .btn-shop { margin-top: 14px; text-align: center; }

@media (max-width: 880px) {
  .nav-wrap { grid-template-columns: auto 1fr auto; padding: 14px 20px; position: relative; }
  .main-nav { display: none; }
  .nav-cta .btn-shop { display: none; }
  .menu-toggle { display: block; }
  .brand-word { font-size: 22px; }
}

@media (max-width: 380px) {
  .brand-word { font-size: 18px; }
  .nav-wrap { padding: 14px 14px; column-gap: 12px; }
}
