/**
 * Bard Boys Oxnard - Native Header & Footer Styling
 * Renders the authentic Bard Boys white header and dark footer
 */

/* ==========================================================================
   1. UTILITY TOP BAR
   ========================================================================== */
.bb-topbar {
  background-color: #000000;
  color: #9ca3af;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-transform: uppercase;
}

.bb-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bb-topbar-left,
.bb-topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.bb-topbar-badge {
  background-color: #1f2937;
  color: #f3f4f6;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: 700;
}

/* ==========================================================================
   2. MAIN NAVIGATION HEADER (PURE WHITE BACKGROUND)
   ========================================================================== */
.bb-header {
  background-color: #ffffff;
  color: #111827;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.bb-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

/* Logo */
.bb-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.bb-brand img {
  height: 44px;
  width: auto;
  display: block;
}

/* Nav Menu */
.bb-nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.bb-nav-link {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: capitalize;
  color: #1f2937;
  text-decoration: none;
  position: relative;
  padding: 8px 0;
  transition: color 0.2s ease;
}

.bb-nav-link:hover,
.bb-nav-menu .current-menu-item > a {
  color: var(--bb-red);
}

.bb-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--bb-red);
  transition: width 0.25s ease;
}

.bb-nav-link:hover::after,
.bb-nav-menu .current-menu-item > a::after {
  width: 100%;
}

/* Header Action Group */
.bb-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Solid Black SHOP NOW > Button */
.bb-btn-shop-now {
  background-color: #000000;
  color: #ffffff !important;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: all 0.25s ease;
  border: 1px solid #000000;
}

.bb-btn-shop-now:hover {
  background-color: var(--bb-red);
  border-color: var(--bb-red);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(200, 16, 46, 0.4);
}

/* Account Dropdown Wrapper */
.bb-account-wrapper {
  position: relative;
}

.bb-btn-account {
  background-color: #0f172a;
  color: #ffffff !important;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 10px 16px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border: 1px solid #1e293b;
  transition: all 0.2s ease;
  text-decoration: none;
}

.bb-btn-account:hover {
  background-color: #1e293b;
  border-color: #334155;
  color: #ffffff !important;
}

/* Dropdown Menu */
.bb-account-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 260px;
  background-color: #121212;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 1050;
  overflow: hidden;
}

.bb-account-wrapper:hover .bb-account-dropdown,
.bb-account-dropdown.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.bb-dropdown-header {
  padding: 14px 16px;
  background-color: #181818;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
}

.bb-dropdown-header strong {
  display: block;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bb-dropdown-header span {
  color: #9ca3af;
  font-size: 0.8rem;
}

.bb-dropdown-menu {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}

.bb-dropdown-menu li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  color: #e5e7eb;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.bb-dropdown-menu li a:hover {
  background-color: #1f1f1f;
  color: var(--bb-red-light);
  padding-left: 20px;
}

.bb-dropdown-divider {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.08);
  margin: 6px 0;
}

/* Cart Button */
.bb-btn-cart {
  background-color: #0f172a;
  color: #ffffff !important;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 10px 18px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #1e293b;
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
}

.bb-btn-cart:hover {
  background-color: #1e293b;
  border-color: #334155;
  color: #ffffff !important;
}

.bb-cart-badge {
  background-color: var(--bb-red);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 9999px;
  line-height: 1.2;
}

/* Mobile Toggle */
.bb-mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #000000;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

/* ==========================================================================
   3. FOOTER (DARK LUXURY DISPENSARY AESTHETIC)
   ========================================================================== */
.bb-footer {
  background-color: #000000;
  color: #9ca3af;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 72px;
  padding-bottom: 32px;
  position: relative;
}

.bb-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 56px;
}

.bb-footer-col h4 {
  color: #ffffff;
  font-size: 1.15rem;
  margin-bottom: 20px;
  letter-spacing: 0.06em;
}

.bb-footer-col p {
  color: #9ca3af;
  font-size: 0.95rem;
  line-height: 1.6;
}

.bb-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bb-footer-links li {
  margin-bottom: 12px;
}

.bb-footer-links a {
  color: #9ca3af;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.bb-footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.bb-footer-newsletter-form {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.bb-footer-newsletter-form input {
  background-color: #141414;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 0.9rem;
}

.bb-footer-newsletter-form button {
  background-color: var(--bb-red);
  color: #ffffff;
  border: none;
  padding: 10px 16px;
  border-radius: 4px;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease;
}

.bb-footer-newsletter-form button:hover {
  background-color: var(--bb-red-hover);
}

.bb-footer-compliance {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 24px;
  margin-top: 32px;
  font-size: 0.78rem;
  color: #6b7280;
  line-height: 1.6;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
}

.bb-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 24px;
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #6b7280;
}

@media (max-width: 991px) {
  .bb-nav-menu {
    display: none;
  }
  .bb-mobile-toggle {
    display: block;
  }
  .bb-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 640px) {
  .bb-header-actions .bb-btn-shop-now {
    display: none;
  }
  .bb-footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .bb-footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
