/* ==========================================================================
   HEADER CSS — Blue theme
   ========================================================================== */

/* Announcement bar */
.bv-announcement-bar {
  background: var(--bv-blue-deep);
  color: var(--bv-white);
  text-align: center;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 0.6rem var(--bv-space-md);
  position: relative;
  z-index: 110;
}
.bv-announcement-bar strong { color: var(--bv-accent); font-weight: 700; }

/* Header */
.bv-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bv-white);
  border-bottom: 1px solid var(--bv-line);
  transition: box-shadow 0.3s var(--bv-ease);
}
.bv-header.scrolled { box-shadow: var(--bv-shadow-md); }

.bv-header-inner {
  max-width: var(--bv-container-wide);
  margin: 0 auto;
  padding: 0 var(--bv-space-md);
  height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--bv-space-md);
}

/* Logo */
.bv-logo-wrap { display: flex; justify-content: center; }
.bv-logo {
  font-family: var(--bv-font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--bv-blue-deep);
  letter-spacing: -0.02em;
  text-decoration: none;
  transition: opacity 0.2s;
}
.bv-logo:hover { opacity: 0.8; color: var(--bv-blue-deep); }
.bv-logo span { color: var(--bv-blue); }
.bv-logo-wrap a img { max-height: 48px; width: auto; }

/* Desktop nav */
.bv-nav { display: flex; align-items: center; gap: 0.25rem; }
.bv-nav a,
.bv-nav ul li a {
  font-family: var(--bv-font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--bv-ink-soft);
  text-decoration: none;
  padding: 0.5rem 0.9rem;
  border-radius: var(--bv-radius-sm);
  transition: color var(--bv-transition), background var(--bv-transition);
  white-space: nowrap;
}
.bv-nav a:hover,
.bv-nav ul li a:hover {
  color: var(--bv-blue);
  background: var(--bv-blue-bg);
}
.bv-nav ul { list-style: none; display: flex; align-items: center; gap: 0.25rem; margin: 0; padding: 0; }

/* Header actions */
.bv-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
}

.bv-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--bv-radius-sm);
  color: var(--bv-ink-soft);
  transition: color var(--bv-transition), background var(--bv-transition);
  position: relative;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
}
.bv-icon-btn:hover {
  color: var(--bv-blue);
  background: var(--bv-blue-bg);
}
.bv-icon-btn svg,
.bv-mobile-toggle svg {
  width: 22px !important;
  height: 22px !important;
  stroke: #0f172a !important;
  fill: none !important;
  stroke-width: 2 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  display: block !important;
}

.bv-icon-btn:hover svg,
.bv-mobile-toggle:hover svg {
  stroke: var(--bv-blue) !important;
}

/* Direct target lines inside hamburger SVG */
.bv-mobile-toggle svg line,
.bv-icon-btn svg line,
.bv-icon-btn svg circle,
.bv-icon-btn svg path {
  stroke: inherit !important;
  fill: none !important;
}

/* Cart badge */
.bv-cart-count {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--bv-blue);
  color: var(--bv-white);
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  border: 2px solid var(--bv-white);
}
.bv-cart-count:empty,
.bv-cart-count[data-count="0"] { display: none; }

/* Mobile toggle hidden on desktop */
.bv-mobile-toggle { display: none; }

/* Mobile nav drawer */
.bv-mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
}
.bv-mobile-nav.open { pointer-events: all; }

.bv-mobile-nav-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .5);
  opacity: 0;
  transition: opacity 0.35s var(--bv-ease);
  backdrop-filter: blur(4px);
}
.bv-mobile-nav.open .bv-mobile-nav-overlay { opacity: 1; }

.bv-mobile-nav-panel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(320px, 85vw);
  background: var(--bv-white);
  padding: var(--bv-space-lg) var(--bv-space-md);
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.4s var(--bv-ease-out);
  display: flex;
  flex-direction: column;
  gap: var(--bv-space-md);
}
.bv-mobile-nav.open .bv-mobile-nav-panel { transform: translateX(0); }

.bv-mobile-nav-close {
  align-self: flex-end;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bv-ink-soft);
  border-radius: var(--bv-radius-sm);
  background: var(--bv-cream-dark);
  border: none;
  cursor: pointer;
}
.bv-mobile-nav-close svg {
  width: 22px !important;
  height: 22px !important;
  stroke: #0f172a !important;
  fill: none !important;
  stroke-width: 2 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  display: block !important;
}
.bv-mobile-nav-close svg line,
.bv-mobile-nav-close svg path {
  stroke: inherit !important;
  fill: none !important;
}
.bv-mobile-nav-close:hover svg {
  stroke: var(--bv-blue) !important;
}

.bv-mobile-nav-logo {
  font-family: var(--bv-font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--bv-blue-deep);
}
.bv-mobile-nav-logo span { color: var(--bv-blue); }

.bv-mobile-nav-links {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--bv-line);
  padding-top: var(--bv-space-md);
}
.bv-mobile-nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--bv-ink-soft);
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--bv-line);
  transition: color var(--bv-transition);
  text-decoration: none;
}
.bv-mobile-nav-links a:hover { color: var(--bv-blue); }

/* Responsive */
@media (max-width: 900px) {
  .bv-nav { display: none; }
  .bv-mobile-toggle { display: flex; }
  .bv-mobile-nav { display: block; }
  .bv-header-inner { grid-template-columns: auto 1fr auto; }
}
@media (max-width: 480px) {
  .bv-header-inner { height: 64px; gap: 0.5rem; padding: 0 1rem; }
  .bv-logo { font-size: 1.3rem; }
}
.menu-item {
    list-style: none;
}