/* Navbar Styles */
:root {
  --primary-color: #6e000c;
  --primary-color-alpha: rgba(110, 0, 12, 0.7);
  --text-dark: #000000;
  --text-light: #ffffff;
  --text-gray: #59413f;
  --bg-light: #f9f9f9;
  --bg-gray: #ffffff;
  --border-color: rgba(110, 0, 12, 0.7);
  --btn-dark: #1a1c1c;
}

/* Global Resets */
a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

.site-header {
  background-color: #f5f5f5;
  display: flex;
  flex-direction: column;
  position: relative;
  border-top: 7.5px solid var(--primary-color);
}

.header-top {
  padding: 15px 0;
  background-color: #ffffff;
}

.header-top .container {
  padding-left: 40px !important;
  max-width: 100%;
}

.logos {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logos {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo-main {
  height: 80px;
  width: auto;
}

.logo-secondary {
  height: 65px;
  width: auto;
}

.header-nav-wrapper {
  border-top: none;
  border-bottom: none;
  width: 100%;
  margin: 0 auto;
}

.header-nav-wrapper > .container {
  padding: 0 40px;
  max-width: 100%;
}

.header-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 24px;
}

.main-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--text-dark);
  font-weight: 700;
}

.nav-home {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-home img {
  width: 32px;
  height: 32px;
}

.nav-arrow {
  width: 8px;
  height: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.action-btn {
  width: 24px;
  height: 24px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Cart Button */
.cart-btn {
  position: relative;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.cart-btn:hover {
  opacity: 0.8;
}

.cart-badge {
  position: absolute;
  top: -5px;
  right: -8px;
  background-color: #6e000c;
  color: white;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.cart-badge:empty {
  display: none;
}

.cart-badge.zero {
  display: none;
}

/* ============================================
   CART BAR SECTION
   ============================================ */

.cart-bar-section {
  background-color: #f5f5f5;
  border-bottom: 1px solid #eaeaea;
  padding: 12px 0;
}

.cart-button-under {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background-color: var(--bg-light);
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: all 0.2s ease;
}

.cart-button-under:hover {
  background-color: #f0f0f0;
  border-color: #d0d0d0;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cart-button-under img {
  width: 20px;
  height: 20px;
}

.cart-label {
  font-size: 14px;
}

.cart-button-under .cart-badge {
  position: static;
  background-color: #6e000c;
  color: white;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

.cart-button-under .cart-badge.zero {
  display: flex;
  opacity: 0.5;
}

/* ============================================
   HAMBURGER MENU
   ============================================ */

/* Hamburger button (hidden on desktop) */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 28px;
  height: 24px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.hamburger-btn span {
  width: 100%;
  height: 3px;
  background-color: var(--text-dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Hamburger animation when menu is open */
.hamburger-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu.active {
  display: block;
  opacity: 1;
}

.mobile-menu-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 80%;
  max-width: 320px;
  height: 100%;
  background-color: var(--bg-light);
  padding: 80px 0 30px 50px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.mobile-menu.active .mobile-menu-content {
  transform: translateX(0);
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-right: 20px;
}

.mobile-nav li {
  border-bottom: 1px solid #eaeaea;
}

.mobile-nav a {
  display: block;
  padding: 18px 20px 18px 20px;
  font-size: 16px;
  color: var(--text-dark);
  font-weight: 600;
  transition: color 0.3s ease;
}

.mobile-nav a:hover {
  color: var(--primary-color);
}

.mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  border-top: 1px solid #eaeaea;
  padding: 30px 20px 0 0;
}

.mobile-action-btn {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background-color: var(--bg-gray);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.mobile-action-btn:hover {
  background-color: #eaeaea;
}

.mobile-action-btn img {
  width: 24px;
  height: 24px;
}

.mobile-action-btn span {
  font-size: 14px;
  color: var(--text-gray);
  font-weight: 600;
}

/* Prevent body scroll when menu is open */
body.menu-open {
  overflow: hidden;
}

/* ============================================
   RESPONSIVE NAVBAR
   ============================================ */

/* Tablet (1024px and below) */
@media (max-width: 1024px) {
  .header-top {
    padding: 20px 0;
  }

  .logo-main,
  .logo-secondary {
    height: 60px;
  }

  .logos {
    gap: 15px;
  }

  .header-nav {
    height: 50px;
  }

  .main-nav ul {
    gap: 16px;
  }

  .main-nav a {
    font-size: 12px;
    gap: 6px;
  }

  .nav-arrow {
    width: 6px;
  }

  .header-actions {
    gap: 8px;
  }
}

/* Mobile (768px and below) - Show hamburger menu */
@media (max-width: 768px) {
  .header-top {
    padding: 15px 0;
  }

  .logo-main,
  .logo-secondary {
    height: 45px;
  }

  .logos {
    gap: 10px;
  }

  .header-nav-wrapper {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--bg-light);
  }

  .header-nav {
    height: 50px;
  }

  /* Hide main nav on mobile */
  .main-nav {
    display: none;
  }

  /* Show hamburger button */
  .hamburger-btn {
    display: flex;
  }

  /* Hide action buttons in header (they're in mobile menu) */
  .header-actions .action-btn:not(.hamburger-btn):not(:has(img[alt="Shopping Cart"])) {
    display: none;
  }

  /* Show cart button on mobile */
  .header-actions .action-btn:has(img[alt="Shopping Cart"]) {
    display: flex;
  }

  /* On mobile: hamburger on far left, cart on far right */
  .header-actions {
    justify-content: space-between;
    width: 100%;
  }

  .hamburger-btn {
    order: 1;
  }

  .header-actions .action-btn:has(img[alt="Shopping Cart"]) {
    order: 2;
  }

  .mobile-menu-content {
    padding: 70px 0 20px 40px;
    width: 85%;
  }

  .mobile-nav ul {
    padding-right: 15px;
  }

  .mobile-nav a {
    font-size: 15px;
    padding: 16px 15px 16px 15px;
    font-weight: 600;
  }

  .mobile-actions {
    gap: 12px;
    padding: 20px 15px 0 0;
  }

  .mobile-action-btn {
    padding: 12px;
  }

  .mobile-action-btn img {
    width: 20px;
    height: 20px;
  }

  .mobile-action-btn span {
    font-size: 13px;
    color: var(--text-gray);
    font-weight: 600;
  }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
  .header-top {
    padding: 10px 0;
  }

  .logo-main,
  .logo-secondary {
    height: 35px;
  }

  .logos {
    gap: 8px;
  }

  .header-nav {
    height: 45px;
  }

  .hamburger-btn {
    width: 24px;
    height: 20px;
  }

  .hamburger-btn span {
    height: 2px;
  }

  .mobile-menu-content {
    width: 100%;
    max-width: none;
    padding: 50px 0 30px 30px;
    gap: 20px;
  }

  .mobile-nav ul {
    padding-right: 15px;
  }

  .mobile-nav a {
    font-size: 13px;
    padding: 12px 15px 12px 15px;
    font-weight: 600;
  }

  .mobile-actions {
    gap: 10px;
    padding: 15px 15px 0 0;
  }

  .mobile-action-btn {
    padding: 10px;
  }

  .mobile-action-btn img {
    width: 18px;
    height: 18px;
  }

  .mobile-action-btn span {
    font-size: 12px;
    color: var(--text-gray);
    font-weight: 600;
  }
}
