/* ==========================================================================
   COMPONENT STYLES - HARDBODY CORNISH CHICKENS
   ========================================================================== */

/* Announcement Bar */
.announcement-bar {
  background-color: var(--color-bg-dark);
  color: var(--color-text-gold);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 101;
}

.announcement-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  text-align: center;
}

.announcement-badge {
  background: var(--color-primary);
  color: #fff;
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  font-weight: 800;
  text-transform: uppercase;
}

/* Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(251, 248, 243, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border-subtle);
  transition: box-shadow var(--transition-normal);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
  background-color: rgba(255, 255, 255, 0.98);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--color-text-main);
  text-transform: uppercase;
}

.brand-badge-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--color-primary), #E89E38);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(194, 109, 36, 0.35);
}

.brand-logo span.highlight {
  color: var(--color-primary);
}

.brand-subline {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
  text-transform: uppercase;
  margin-top: -2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
}

.nav-link {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-text-main);
  padding: 0.4rem 0.2rem;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--color-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2.5px;
  background-color: var(--color-primary);
  border-radius: var(--radius-full);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.nav-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  color: var(--color-text-main);
  cursor: pointer;
  position: relative;
  transition: all var(--transition-fast);
}

.nav-action-btn:hover {
  background: var(--color-bg-card-alt);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background-color: var(--color-primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(194, 109, 36, 0.4);
}

.mobile-menu-toggle {
  display: none;
}

@media (max-width: 992px) {
  .nav-links {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/* Mobile Navigation Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 300px;
  max-width: 85vw;
  background-color: var(--color-bg-main);
  z-index: 200;
  transform: translateX(-100%);
  transition: transform var(--transition-normal);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  overflow-y: auto;
}

.mobile-nav-drawer.open {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 1.5rem;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  font-weight: 700;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
  color: var(--color-text-main);
}

.mobile-nav-link.active, .mobile-nav-link:hover {
  background-color: var(--color-primary-light);
  color: var(--color-primary-dark);
}

/* Backdrop */
.drawer-backdrop, .modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(26, 17, 12, 0.65);
  backdrop-filter: blur(4px);
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.drawer-backdrop.active, .modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* Cart Slide-Over Drawer */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 440px;
  max-width: 100vw;
  background-color: var(--color-bg-card);
  z-index: 200;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--color-border-subtle);
  background-color: var(--color-bg-main);
}

.cart-title {
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cart-close-btn {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 0.35rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-close-btn:hover {
  background-color: var(--color-border-subtle);
  color: var(--color-text-main);
}

/* Free Delivery Meter */
.free-shipping-progress {
  padding: 1rem 1.5rem;
  background-color: #FFFDF9;
  border-bottom: 1px solid var(--color-border-subtle);
}

.progress-text {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-main);
}

.progress-bar-container {
  height: 8px;
  background-color: #EFE8DD;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

/* Cart Items Container */
.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 75px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-border-subtle);
}

.cart-item-img {
  width: 75px;
  height: 75px;
  border-radius: var(--radius-md);
  object-fit: cover;
  background-color: var(--color-bg-card-alt);
}

.cart-item-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 0.2rem;
}

.cart-item-meta {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 0.4rem;
}

.cart-item-price {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--color-primary-dark);
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg-card);
  overflow: hidden;
}

.qty-btn {
  background: transparent;
  border: none;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-text-main);
  font-weight: 700;
  transition: background-color var(--transition-fast);
}

.qty-btn:hover {
  background-color: var(--color-bg-card-alt);
  color: var(--color-primary);
}

.qty-value {
  font-size: 0.85rem;
  font-weight: 700;
  min-width: 24px;
  text-align: center;
}

.cart-item-remove {
  background: transparent;
  border: none;
  color: var(--color-text-light);
  cursor: pointer;
  padding: 0.35rem;
  transition: color var(--transition-fast);
}

.cart-item-remove:hover {
  color: var(--color-danger);
}

/* Cart Footer */
.cart-footer {
  padding: 1.25rem 1.5rem;
  background-color: var(--color-bg-main);
  border-top: 1px solid var(--color-border-subtle);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  margin-bottom: 0.5rem;
  color: var(--color-text-muted);
}

.cart-summary-total {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-text-main);
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border);
}

.cart-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--color-text-muted);
}

.cart-empty-icon {
  width: 64px;
  height: 64px;
  color: var(--color-border);
  margin-bottom: 1rem;
}

/* Product Card */
.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-subtle);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-border);
}

.product-card-media {
  position: relative;
  width: 100%;
  padding-top: 72%;
  overflow: hidden;
  background-color: var(--color-bg-card-alt);
}

.product-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-card-img {
  transform: scale(1.06);
}

.product-badges {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  z-index: 2;
}

.product-stock-tag {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.92);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(4px);
}

.product-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-category-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-bottom: 0.35rem;
}

.product-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--color-text-main);
  line-height: 1.3;
}

.product-weight {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 0.65rem;
}

.product-description {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--color-border-subtle);
  margin-top: auto;
}

.product-price-box {
  display: flex;
  flex-direction: column;
}

.product-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-text-main);
  font-family: var(--font-heading);
}

.product-unit {
  font-size: 0.72rem;
  color: var(--color-text-light);
}

.product-card-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Modals */
.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  background-color: var(--color-bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  width: 90%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  padding: 2rem;
}

.modal.open {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  visibility: visible;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 0.35rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
}

.modal-close:hover {
  background-color: var(--color-border-subtle);
  color: var(--color-text-main);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  background-color: var(--color-bg-dark);
  color: #ffffff;
  padding: 0.9rem 1.4rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.92rem;
  font-weight: 600;
  pointer-events: auto;
  animation: fadeIn 0.25s ease;
  min-width: 280px;
  max-width: 420px;
  border-left: 4px solid var(--color-primary);
}

.toast.toast-success {
  border-left-color: var(--color-success);
}

.toast.toast-error {
  border-left-color: var(--color-danger);
}

/* Floating WhatsApp Button */
.whatsapp-float-widget {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.whatsapp-float-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background-color: var(--color-whatsapp);
  color: #ffffff;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-full);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition-normal);
}

.whatsapp-float-btn:hover {
  background-color: var(--color-whatsapp-hover);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.55);
}

@media (max-width: 640px) {
  .whatsapp-float-widget {
    bottom: 1.25rem;
    left: 1.25rem;
  }
  .whatsapp-float-btn span {
    display: none;
  }
  .whatsapp-float-btn {
    padding: 0.9rem;
    width: 52px;
    height: 52px;
    justify-content: center;
  }
  .toast-container {
    bottom: 1.25rem;
    right: 1.25rem;
    left: 1.25rem;
  }
  .toast {
    min-width: unset;
    width: 100%;
  }
}

/* Step Progress Indicator (Orders / Checkout) */
.stepper-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin: 2rem 0;
}

.stepper-track {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  height: 4px;
  background-color: var(--color-border);
  z-index: 1;
}

.stepper-progress {
  height: 100%;
  background-color: var(--color-primary);
  transition: width 0.4s ease;
}

.step-node {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.step-circle {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background-color: var(--color-bg-card);
  border: 3px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
}

.step-node.active .step-circle {
  border-color: var(--color-primary);
  background-color: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 0 0 5px rgba(194, 109, 36, 0.2);
}

.step-node.completed .step-circle {
  border-color: var(--color-success);
  background-color: var(--color-success);
  color: #ffffff;
}

.step-label {
  font-size: 0.78rem;
  font-weight: 700;
  margin-top: 0.6rem;
  color: var(--color-text-muted);
  max-width: 90px;
}

.step-node.active .step-label {
  color: var(--color-text-main);
}
