/* ── Variables ───────────────────────────────────────────────── */
:root {
  --bww-black:        #000000;
  --bww-dark:         #0A0A0A;
  --bww-surface:      #111111;
  --bww-surface2:     #1A1A1A;
  --bww-gold:         #C9A84C;
  --bww-gold-light:   #E8C96E;
  --bww-gold-dark:    #8B6914;
  --bww-white:        #FFFFFF;
  --bww-muted:        #AAAAAA;
  --bww-glow:         rgba(201, 168, 76, 0.25);
  --bww-glow-strong:  rgba(201, 168, 76, 0.45);
  --bww-wa-green:     #25D366;
  --bww-transition:   0.3s ease;
  --bww-hdr-height:   68px;
}

/* ════════════════════════════════════════════════════════════════
   HEADER
════════════════════════════════════════════════════════════════ */
/* padding added to body so content doesn't hide behind fixed header */
body.bww-header-active {
  padding-top: var(--bww-hdr-height) !important;
}

.bww-hdr-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--bww-black);
  border-bottom: 1px solid rgba(201, 168, 76, 0.25);
  height: var(--bww-hdr-height);
  display: flex;
  align-items: center;
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.6);
}

.bww-hdr-inner {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Logo */
.bww-hdr-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.bww-hdr-logo img {
  height: 44px;
  width: auto;
  display: block;
}

/* Desktop search form */
.bww-hdr-search {
  flex: 1;
  max-width: 480px;
  display: flex;
  align-items: center;
  background: var(--bww-surface);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color var(--bww-transition), box-shadow var(--bww-transition);
}

.bww-hdr-search:focus-within {
  border-color: var(--bww-gold);
  box-shadow: 0 0 0 3px var(--bww-glow);
}

.bww-hdr-search input[type="search"],
.bww-hdr-search input[type="text"] {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--bww-white);
  font-family: 'Manrope', sans-serif;
  font-size: 0.9rem;
  padding: 10px 14px;
  -webkit-appearance: none;
}

.bww-hdr-search input::placeholder {
  color: var(--bww-muted);
}

.bww-hdr-search button[type="submit"] {
  background: transparent;
  border: none;
  border-left: 1px solid rgba(201, 168, 76, 0.15);
  color: var(--bww-muted);
  padding: 0 14px;
  height: 42px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: color var(--bww-transition);
}

.bww-hdr-search button[type="submit"]:hover {
  color: var(--bww-gold);
}

/* Icon group (right side) */
.bww-hdr-icons {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  flex-shrink: 0;
}

.bww-hdr-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  border-radius: 4px;
  color: var(--bww-muted);
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  transition: color var(--bww-transition), background var(--bww-transition);
}

.bww-hdr-icon-btn:hover {
  color: var(--bww-gold);
  background: rgba(201, 168, 76, 0.08);
  text-decoration: none;
}

/* Cart badge */
.bww-hdr-cart-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  background: var(--bww-gold);
  color: var(--bww-black);
  font-family: 'Manrope', sans-serif;
  font-size: 10px;
  font-weight: 700;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  pointer-events: none;
  line-height: 1;
}

/* Hamburger — hidden on desktop */
.bww-hdr-hamburger {
  display: none;
}

/* Mobile search toggle — hidden on desktop */
.bww-hdr-search-toggle {
  display: none;
}

/* Mobile nav dropdown */
.bww-hdr-mobile-nav {
  display: none;
  position: absolute;
  top: var(--bww-hdr-height);
  left: 0;
  right: 0;
  background: var(--bww-surface);
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
  padding: 0;
  z-index: 9998;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.bww-hdr-mobile-nav.bww-open {
  max-height: 400px;
  padding: 8px 0 16px;
}

.bww-hdr-mobile-nav a {
  display: block;
  padding: 12px 24px;
  color: var(--bww-muted);
  font-family: 'Manrope', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: color var(--bww-transition), background var(--bww-transition);
}

.bww-hdr-mobile-nav a:last-child {
  border-bottom: none;
}

.bww-hdr-mobile-nav a:hover {
  color: var(--bww-gold);
  background: rgba(201, 168, 76, 0.06);
}

/* Mobile search bar (slides in) */
.bww-hdr-mobile-search {
  display: none;
  position: absolute;
  top: var(--bww-hdr-height);
  left: 0;
  right: 0;
  background: var(--bww-surface);
  padding: 12px 20px;
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
  z-index: 9997;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.bww-hdr-mobile-search.bww-open {
  display: block;
}

.bww-hdr-mobile-search form {
  display: flex;
  background: var(--bww-surface2);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 4px;
  overflow: hidden;
}

.bww-hdr-mobile-search input[type="search"],
.bww-hdr-mobile-search input[type="text"] {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--bww-white);
  font-family: 'Manrope', sans-serif;
  font-size: 0.9rem;
  padding: 10px 14px;
}

.bww-hdr-mobile-search button {
  background: transparent;
  border: none;
  border-left: 1px solid rgba(201, 168, 76, 0.15);
  color: var(--bww-muted);
  padding: 0 14px;
  cursor: pointer;
  font-size: 0.9rem;
}

/* ════════════════════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════════════════════ */
.bww-ftr-wrap {
  background: var(--bww-black);
  border-top: 2px solid rgba(201, 168, 76, 0.35);
  padding: 64px 0 0;
}

.bww-ftr-grid {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  align-items: start;
}

/* Column 1 — Brand */
.bww-ftr-brand {
  padding-right: 16px;
}

.bww-ftr-logo {
  display: block;
  width: 155px;
  height: auto;
  margin-bottom: 20px;
}

.bww-ftr-tagline {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  color: var(--bww-gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 12px;
}

.bww-ftr-brand-desc {
  font-family: 'Manrope', sans-serif;
  font-size: 0.88rem;
  color: var(--bww-muted);
  line-height: 1.7;
  margin: 0 0 24px;
}

/* Social icons */
.bww-ftr-socials {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.bww-ftr-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--bww-surface);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 4px;
  color: var(--bww-muted);
  font-size: 1rem;
  text-decoration: none;
  transition: all var(--bww-transition);
}

.bww-ftr-social-link:hover {
  background: rgba(201, 168, 76, 0.1);
  border-color: var(--bww-gold);
  color: var(--bww-gold);
  box-shadow: 0 0 12px var(--bww-glow);
  text-decoration: none;
}

/* Footer columns 2, 3, 4 */
.bww-ftr-col h4 {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--bww-white);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 20px;
  padding-bottom: 12px;
  position: relative;
}

.bww-ftr-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 2px;
  background: var(--bww-gold);
  border-radius: 1px;
  transform-origin: left;
  animation: bwwUnderlineGrow 0.6s ease forwards;
}

@keyframes bwwUnderlineGrow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.bww-ftr-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bww-ftr-col ul li {
  margin-bottom: 10px;
}

.bww-ftr-col ul li a {
  font-family: 'Manrope', sans-serif;
  font-size: 0.88rem;
  color: var(--bww-muted);
  text-decoration: none;
  transition: color var(--bww-transition), text-shadow var(--bww-transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bww-ftr-col ul li a::before {
  content: '›';
  color: var(--bww-gold-dark);
  font-size: 1rem;
  transition: color var(--bww-transition), transform var(--bww-transition);
  transform: translateX(0);
}

.bww-ftr-col ul li a:hover {
  color: var(--bww-gold);
  text-shadow: 0 0 8px var(--bww-glow-strong);
  text-decoration: none;
}

.bww-ftr-col ul li a:hover::before {
  color: var(--bww-gold);
  transform: translateX(3px);
}

/* Contact column items */
.bww-ftr-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-family: 'Manrope', sans-serif;
  font-size: 0.88rem;
  color: var(--bww-muted);
}

.bww-ftr-contact-item i {
  color: var(--bww-gold);
  font-size: 0.9rem;
  margin-top: 2px;
  flex-shrink: 0;
  width: 16px;
  text-align: center;
}

.bww-ftr-contact-item a {
  color: var(--bww-muted);
  text-decoration: none;
  transition: color var(--bww-transition);
}

.bww-ftr-contact-item a:hover {
  color: var(--bww-gold);
  text-decoration: none;
}

/* Bottom bar */
.bww-ftr-bottom {
  max-width: 1260px;
  margin: 48px auto 0;
  padding: 20px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  text-align: center;
  font-family: 'Manrope', sans-serif;
  font-size: 0.82rem;
  color: var(--bww-muted);
}

.bww-ftr-bottom a {
  color: var(--bww-gold);
  text-decoration: none;
  transition: color var(--bww-transition);
}

.bww-ftr-bottom a:hover {
  color: var(--bww-gold-light);
  text-decoration: none;
}

/* ════════════════════════════════════════════════════════════════
   WHATSAPP FLOATING BUTTON
════════════════════════════════════════════════════════════════ */
.bww-wa-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  background: var(--bww-wa-green);
  border-radius: 50%;
  color: #fff;
  font-size: 1.6rem;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  animation: bwwWaPulse 2.4s ease-in-out infinite;
  transition: transform var(--bww-transition), box-shadow var(--bww-transition);
}

.bww-wa-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.65);
  text-decoration: none;
  animation-play-state: paused;
  color: #fff;
}

.bww-wa-btn i {
  pointer-events: none;
}

@keyframes bwwWaPulse {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); transform: scale(1); }
  50%  { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); transform: scale(1.05); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); transform: scale(1); }
}

/* ════════════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .bww-ftr-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .bww-ftr-brand {
    grid-column: 1 / -1;
    padding-right: 0;
  }

  .bww-hdr-search {
    max-width: 320px;
  }
}

@media (max-width: 768px) {
  /* Header — hide desktop search, show toggles */
  .bww-hdr-search {
    display: none;
  }

  .bww-hdr-hamburger,
  .bww-hdr-search-toggle {
    display: flex;
  }

  .bww-hdr-mobile-nav {
    display: block;
  }

  /* Footer stacks to 2 columns */
  .bww-ftr-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .bww-ftr-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 540px) {
  .bww-ftr-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .bww-hdr-inner {
    padding: 0 16px;
  }

  .bww-wa-btn {
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
    font-size: 1.4rem;
  }
}
