/* CSS for Site Header and Header Actions */

/* Main header container */
.site-header {
  background: var(--naf-secondary);
  box-shadow: none;
  padding: 0;
  position: relative;
  z-index: 100;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: "100%";
  margin: 0 2rem 0 2rem;
  padding: 1.5rem 2rem 0.5rem 2rem;
}

/* Header left section (logo + navigation) */
.header-left {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex: 1;
}

/* Site branding (logo area) within header */
.site-branding {
  flex: 0 0 auto;
}

.site-logo {
  max-height: 48px;
  width: auto;
  display: block;
}

/* Main navigation within header */
.main-navigation {
  flex: 0 1 auto;
}

#primary-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

#primary-menu li a {
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.2s;
}

#primary-menu li a:hover {
  color: var(--naf-primary);
}

/* Header action buttons (WhatsApp, Shop) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 0 0 auto;
}

.header-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.header-btn-whatsapp {
  background: #25d366;
  color: #fff;
}

.header-btn-whatsapp:hover {
  background: #128c7e;
  color: #fff;
}

.header-btn-shop {
  background: var(--naf-primary);
  color: #fff;
}

.header-btn-shop:hover {
  background: var(--naf-primary-dark);
  color: #fff;
}

.wa-text,
.shop-text {
  display: inline;
}

.header-actions .fa-whatsapp,
.header-actions .fa-store {
  color: #fff;
}

.header-btn-shop:hover .fa-store {
  color: var(--naf-primary);
}

.header-btn-whatsapp:hover .fa-whatsapp {
  color: #25d366; /* Should this be #fff to match button text or a different hover icon color? */
}

.header-btn-cart {
  background: var(--naf-primary);
  color: #fff;
  position: relative;
  padding: 8px 16px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.header-btn-cart:hover {
  background: var(--naf-primary-dark);
  color: #fff;
}
.header-btn-cart .fa-shopping-cart {
  color: #fff;
  font-size: 1.2rem;
}
.cart-count-badge {
  position: absolute;
  top: -7px;
  right: -7px;
  background: var(--naf-primary);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 50%;
  border: 2px solid #fff;
  padding: 0;
  min-width: 20px;
  min-height: 20px;
  height: 20px;
  width: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(197, 164, 92, 0.12);
  z-index: 2;
}

/* Responsive adjustments for header elements */
@media (max-width: 900px) {
  .site-header-inner {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 1rem 0.5rem 1rem;
  }

  .header-left {
    flex-direction: row;
    gap: 1rem;
    width: 100%;
    justify-content: center;
  }

  .main-navigation {
    justify-content: center;
  }

  .header-actions {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .header-actions {
    gap: 0.5rem;
  }

  .wa-text {
    display: none;
  }

  .header-btn-cart {
    padding: 8px 10px;
  }

  .cart-count-badge {
    top: -6px;
    right: -6px;
    font-size: 0.8rem;
    min-width: 16px;
    min-height: 16px;
    height: 16px;
    width: 16px;
    border-width: 1.5px;
  }
}
