@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  /* Brand colors */
  --primary: #123524;   /* Deep forest green */
  --accent: #C5A059;    /* Royal gold */
  --primary-light: #2c5f44;
  --primary-ultra-light: #f4f8f6;

  /* UI basics */
  --bg-body: #fdfdfd;
  --bg-card: rgba(255,255,255,0.45);
  --glass-bg: rgba(255,255,255,0.8);
  --glass-border: rgba(255,255,255,0.3);
  --text-main: #1a1a1a;
  --text-muted: #666666;
  --border: rgba(0,0,0,0.08);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 4px 12px rgba(0,0,0,0.03);
  --shadow-lg: 0 12px 24px rgba(0,0,0,0.08);
}

[data-theme="dark"] {
  --primary: #1e4633;
  --accent: #d4af37;
  --bg-body: #0a0a0a;
  --bg-card: rgba(20,20,20,0.6);
  --text-main: #f2f2f2;
  --text-muted: #a0a0a0;
  --border: rgba(255,255,255,0.1);
  --shadow-lg: 0 12px 24px rgba(0,0,0,0.5);
}

/* Global utilities */
* {margin:0;padding:0;box-sizing:border-box;}
html { overflow-x: hidden; width: 100%; max-width: 100vw; }
body {font-family:'Inter',sans-serif;background:#f3f4f6;color:var(--text-main);scroll-behavior:smooth; overflow-x:hidden; width: 100%; position: relative;}

/* Sticky header */
header.sticky-header {position:sticky;top:0;z-index:10;background:var(--glass-bg);backdrop-filter:blur(8px);display:flex;align-items:center;justify-content:space-between;padding:0.5rem 1rem;border-bottom:1px solid var(--border);}

.search-bar input {width:100%;max-width:240px;padding:0.4rem 0.8rem;border:1px solid var(--border);border-radius:var(--radius-sm);outline:none;}

.category-icons {display:flex;gap:0.5rem;}
.category-icons a {font-size:1.2rem;color:var(--primary);}

/* Offer slider */
.offer-slider {display:flex;overflow-x:auto;gap:0.5rem;padding:0.5rem;scroll-snap-type:x mandatory;}
.offer-slider .offer {flex:0 0 80%;background:var(--accent);color:#fff;padding:0.8rem;border-radius:var(--radius-sm);scroll-snap-align:start;}

/* Premium Centered Product Card */
.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border);
  text-align: center;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.image-wrap, .product-img-box {
  background: var(--primary-ultra-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  height: 180px;
  position: relative;
  padding: 10px;
}
.image-wrap img, .product-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}
.product-card:hover .product-img {
  transform: scale(1.05);
}
.product-info {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  margin: 0.3rem 0;
  font-weight: 700;
  color: var(--primary);
}
.product-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.original-price {
  font-size: 0.85rem;
  text-decoration: line-through;
  color: var(--text-muted);
  font-weight: 400;
}

/* Zepto Style ADD Button */
.btn-add {
  background-color: #f1f8f5;
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 6px;
  padding: 6px 20px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.btn-add:hover {
  background-color: var(--primary);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.btn-add:active {
  transform: translateY(1px);
}
.product-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.product-actions {
  display: flex;
  gap: 0.5rem;
  width: 100%;
}
.btn-primary, .btn-whatsapp, .btn-outline {
  flex: 1;
  padding: 0.7rem 0.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}
.btn-whatsapp {
  background: #25D366;
  color: #fff;
}
.btn-whatsapp:hover {
  background: #1ebc5b;
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary-ultra-light);
}

/* Bottom navigation */
.bottom-nav {position:fixed;bottom:0;left:0;right:0;background:var(--glass-bg);backdrop-filter:blur(6px);display:flex;justify-content:space-around;padding:0.5rem 0;border-top:1px solid var(--border);} 
/* New UI sections */
.hero {background: var(--primary-ultra-light); padding: 1rem; text-align:center;}
.compact-hero {padding: 0.8rem;}
.hero h1 {font-family: 'Outfit',sans-serif; margin-bottom:0.4rem; font-size:1.5rem; color: var(--primary);}
.hero p {font-size:0.9rem; color: var(--text-muted);}
.section-title {font-family:'Outfit',sans-serif; font-size:1.2rem; margin:0.8rem 0 0.4rem; text-align:center; color: var(--primary);}
.offer-section {margin:0.8rem 0;}
.offer-slider .offer {background: var(--accent); color:#fff; padding:0.6rem 0.8rem; border-radius: var(--radius-sm); font-size:0.9rem;}
.category-icons a {font-size:1.4rem;}
@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@keyframes splash-pulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

.floating-whatsapp-btn { display: none !important;
  position: fixed;
  right: 1.5rem;
  bottom: 2rem;
  background: #25D366;
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  animation: pulse-glow 2s infinite;
  transition: transform 0.3s ease;
}
.floating-whatsapp-btn:hover {
  transform: scale(1.1);
}
.floating-whatsapp-btn svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.bottom-nav a {font-size:0.9rem;color:var(--text-main);text-align:center;flex:1;}
.bottom-nav a.active {color:var(--primary);} 

/* About page */
.about-section {padding:1rem;max-width:800px;margin:auto;}
.about-section h2 {font-family:'Outfit',sans-serif;margin-bottom:0.5rem;}
.about-section p {margin-bottom:1rem;line-height:1.5;}

/* Misc */
.hide {display:none;}

/* Badges */
.badge {
  display: inline-block;
  padding: 2px 6px;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  color: #fff;
  margin-left: 4px;
}
.badge.discount {
  background: #e53935; /* red */
}
.badge.bestseller {
  background: #ffb300; /* amber */
}

/* Rating */
.rating {
  color: #ffb400; /* gold stars */
  font-size: 0.9rem;
  margin: 4px 0;
}
.rating .review-count {
  color: var(--text-muted);
  font-weight: normal;
}

@media (max-width:768px) {
  .product-grid {grid-template-columns:1fr;}
}

/* Zepto Mobile App Styles */
#app-root {
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg-body);
  min-height: 100vh;
  position: relative;
  box-shadow: 0 0 20px rgba(0,0,0,0.05);
  overflow-x: hidden;
}

.app-top-header {
  background: linear-gradient(180deg, #f5e6fc 0%, #ffffff 100%);
  padding: 1rem 1rem 0 1rem;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.location-selector {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-container {
  margin-bottom: 16px;
}

.search-box {
  background: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  padding: 10px 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.04);
}
.search-box input {
  border: none;
  outline: none;
  width: 100%;
  margin-left: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
}

.category-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.category-scroll::-webkit-scrollbar {
  display: none;
}

.cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 60px;
  cursor: pointer;
}
.cat-item span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-main);
}
.cat-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.2s;
}
.cat-item:active .cat-icon-box {
  transform: scale(0.9);
}
.cat-item.active .cat-icon-box {
  border: 2px solid var(--primary);
}

.promo-banner {
  padding: 0 1rem;
  margin-bottom: 16px;
}
.promo-content {
  background: linear-gradient(90deg, #d8b4fe, #fbcfe8);
  border-radius: 16px;
  padding: 16px;
  color: #4c1d95;
  box-shadow: 0 4px 12px rgba(216, 180, 254, 0.4);
}
.promo-content h2 {
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.3;
}

/* Updated Zepto Product Cards */
.products-showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.product-card {
  text-align: left;
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
  background: #fff;
  border-radius: 16px;
  padding: 8px;
  display: flex;
  flex-direction: column;
}
.product-img-box {
  background: #f8f9fa;
  border-radius: 12px;
  height: 140px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.quick-add-btn {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: #e91e63;
  color: #fff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(233, 30, 99, 0.3);
  cursor: pointer;
  transition: transform 0.2s;
}
.quick-add-btn:active {
  transform: scale(0.85);
}
.product-info {
  padding: 8px 4px 4px 4px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-price {
  background: #e6f4ea;
  color: #0d652d;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 800;
  display: inline-block;
  margin-bottom: 6px;
}
.product-title {
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 4px;
  color: #1a1a1a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 380px) {
  .products-showcase-grid {
    grid-template-columns: 1fr;
  }
}

/* Bottom App Navigation */
.app-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: #ffffff;
  display: flex;
  justify-content: space-around;
  padding: 8px 0;
  border-top: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 -4px 12px rgba(0,0,0,0.03);
  z-index: 999;
}
.app-bottom-nav .nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  flex: 1;
}
.app-bottom-nav .nav-icon {
  font-size: 1.4rem;
  transition: transform 0.2s;
}
.app-bottom-nav .nav-btn.active {
  color: #e91e63; /* Zepto pink active state */
}
.app-bottom-nav .nav-btn:active .nav-icon {
  transform: scale(0.85);
}

/* Adjust body/app padding for fixed nav */
#app-root {
  padding-bottom: 70px; /* Space for bottom nav */
}
.floating-whatsapp-btn {
  bottom: 80px; /* Sit above bottom nav */
}

/* Checkout Modal Styles */
.checkout-modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 2000;
  align-items: flex-end;
  justify-content: center;
}
.checkout-modal-overlay.open {
  display: flex;
}
.checkout-modal {
  background: #fff;
  width: 100%;
  max-width: 480px;
  border-radius: 20px 20px 0 0;
  padding: 1.5rem;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  animation: slideUp 0.3s ease forwards;
  max-height: 90vh;
  overflow-y: auto;
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.checkout-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 0.5rem;
}
.checkout-close {
  background: #f0f0f0;
  border: none;
  font-size: 1.5rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
}
#checkout-form .form-group {
  margin-bottom: 1rem;
}
#checkout-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.3rem;
}
#checkout-form input, #checkout-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
}
#checkout-form input:focus, #checkout-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(18,53,36,0.1);
}
.form-grid {
  display: grid;
  gap: 10px;
}

/* Cart Drawer */
.cart-drawer {
  position: fixed;
  bottom: -100%;
  left: 0;
  width: 100%;
  max-height: 85vh;
  background: #fff;
  z-index: 1000;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.15);
  transition: bottom 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  padding: 20px;
  overflow: hidden;
}
.cart-drawer.open {
  bottom: 0;
}
.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 15px;
}
.cart-header h3 {
  font-family: 'Outfit', sans-serif;
  color: var(--primary);
  font-size: 1.3rem;
  font-weight: 700;
}
.cart-close {
  background: rgba(0,0,0,0.05);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-main);
}
.cart-items {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.cart-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
}
.cart-item-details {
  flex: 1;
}
.cart-item-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.cart-item-price {
  color: var(--primary);
  font-weight: 700;
}
.cart-qty-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--primary-ultra-light);
  padding: 4px 8px;
  border-radius: 20px;
}
.cart-qty-btn {
  background: #fff;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Customer Review Marquee */
.review-marquee-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 10px 0;
  display: flex;
}
.review-marquee {
  display: flex;
  gap: 16px;
  animation: marquee-scroll 40s linear infinite;
  padding-left: 16px;
}
.review-marquee:hover {
  animation-play-state: paused;
}
.review-card {
  flex: 0 0 280px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.review-author {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary);
}
.review-location {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.review-rating {
  color: #ffb400;
  font-size: 0.85rem;
}
.review-text {
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.4;
  font-style: italic;
}
.review-quote {
  color: var(--accent);
  font-size: 1.2rem;
  opacity: 0.5;
  line-height: 0;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.payment-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.payment-option {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8f9fa;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #eaeaea;
  font-weight: 600;
  cursor: pointer;
}
.payment-option input {
  width: auto;
}

