/* ==========================================
   MOBILE NAVIGATION DRAWER
   ========================================== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 28px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger span {
  width: 100%;
  height: 3px;
  background: #1a1f36;
  border-radius: 10px;
  transition: all 0.3s linear;
  position: relative;
  transform-origin: 1px;
}

.hamburger.open span:first-child {
  transform: rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: translateX(20px);
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100vh;
  background: white;
  z-index: 1000;
  transition: right 0.3s ease;
  box-shadow: -5px 0 25px rgba(0,0,0,0.1);
  overflow-y: auto;
}

.mobile-nav.open {
  right: 0;
}

.mobile-nav-inner {
  padding: 30px 24px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a1f36;
  padding: 16px 0;
  border-bottom: 1px solid #f1f5f9;
  text-decoration: none;
}

.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-nav-overlay.open {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 600px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .product-img {
    height: auto;
    aspect-ratio: 16 / 9;
  }
  .product-body {
    padding: 12px;
  }
  .product-title {
    font-size: 0.85rem;
    min-height: 2.4rem;
    margin-bottom: 8px;
  }
  .current-price {
    font-size: 1.1rem;
  }
  .action-row {
    grid-template-columns: 1fr;
    gap: 8px;
    display: flex;
    flex-direction: column;
  }
  .buy-now-btn {
    padding: 12px 0;
    font-size: 1.05rem;
    font-weight: 800;
    width: 100%;
    order: 1;
  }
  .add-to-cart-btn {
    padding: 10px 0;
    font-size: 0.9rem;
    background: #f1f5f9;
    color: #059669;
    width: 100%;
    order: 2;
  }
  .cart-drawer.open {
    width: 100%;
  }
  .live-sales-popup {
    bottom: 80px;
    left: -400px;
  }
  .live-sales-popup.show {
    left: 12px;
    right: 12px;
    max-width: none;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  .icon-link:not([href="cart.html"]) {
    display: none !important;
  }
  #mainNav {
    display: none;
  }
  .header-right {
    gap: 16px;
  }
  .help-block {
    display: none;
  }
}

/* ==========================================
   STICKY MOBILE OFFER BAR
   ========================================== */
.sticky-mobile-offer {
  display: none; /* hidden on desktop */
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #1e293b;
  color: white;
  padding: 12px 16px;
  z-index: 998; /* below overlay, below WA float */
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
  .sticky-mobile-offer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
  }
  .sticky-mobile-offer-text {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.2;
  }
  .sticky-mobile-offer-btn {
    background: #10b981;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    white-space: nowrap;
    text-decoration: none;
  }
  
  /* Prevent covering content */
  body {
    padding-bottom: 80px;
  }
  
  /* Lift whatsapp button up so it doesn't overlap */
  .whatsapp-float {
    bottom: 90px !important;
  }
}
