/* ==============================================================================
   SASTAMART QUICK COMMERCE - CUSTOMER PWA & DESKTOP STYLES
   File: css/style.css
   Aesthetic: Polished, Human-Crafted Indian Quick Commerce (Blinkit/Instamart Benchmark)
   ============================================================================== */

:root {
  --primary: #0c8340;
  --primary-hover: #096a33;
  --primary-dark: #074e26;
  --primary-light: #ecfdf5;
  --primary-border: #a7f3d0;
  
  --accent-yellow: #f59e0b;
  --accent-yellow-light: #fef3c7;
  --accent-red: #ef4444;
  --accent-red-light: #fef2f2;
  
  --canvas-bg: #f8fafc;
  --card-bg: #ffffff;
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.06);
  --shadow-cart: 0 8px 24px rgba(12, 131, 64, 0.28);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--canvas-bg);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 90px; /* Space for bottom cart / nav */
}

/* --------------------------------------------------------------------------
   Sticky Top Navigation Header
--------------------------------------------------------------------------- */
.app-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.header-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.brand-logo h1 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.speed-tag {
  background: var(--accent-yellow-light);
  color: #92400e;
  border: 1px solid #fde68a;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 4px;
}

.location-picker-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  text-align: left;
}

.loc-text strong {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.loc-text span {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
}

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

.btn-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-main);
  transition: all 0.15s ease;
}

.btn-circle:hover {
  background: var(--border-light);
}

/* Header Search Bar */
.search-wrapper {
  position: relative;
  width: 100%;
}

.search-input {
  width: 100%;
  padding: 12px 42px 12px 40px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: #f8fafc;
  font-size: 0.92rem;
  outline: none;
  transition: all 0.2s ease;
}

.search-input:focus {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(12, 131, 64, 0.12);
}

.search-icon-left {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 18px;
  height: 18px;
}

.search-mic-right {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* Store Hub Dispatch Ribbon */
.hub-ribbon {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
}

.hub-ribbon-left {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #166534;
  font-weight: 600;
}

.hub-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #15803d;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.3);
  animation: pulseHub 2s infinite;
}

@keyframes pulseHub {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.hub-status-badge {
  background: #fef08a;
  color: #854d0e;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.5px;
}

/* Desktop Sub-Nav Aisles Strip */
.desktop-aisles-nav {
  display: none;
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 8px 16px;
  overflow-x: auto;
  white-space: nowrap;
}

.desktop-aisles-nav ul {
  max-width: 1280px;
  margin: 0 auto;
  list-style: none;
  display: flex;
  gap: 20px;
}

.desktop-aisles-nav a {
  text-decoration: none;
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.desktop-aisles-nav a:hover, .desktop-aisles-nav a.active {
  color: var(--primary);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Main Content Layout
--------------------------------------------------------------------------- */
.app-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* --------------------------------------------------------------------------
   Hero Promotional Banner Slider
--------------------------------------------------------------------------- */
.banner-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.banner-card {
  background: linear-gradient(135deg, #094723 0%, #0c8340 100%);
  color: #ffffff;
  padding: 24px 20px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.banner-pill-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.banner-badge {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.banner-discount {
  background: #ea580c;
  color: #fff;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 800;
}

.banner-card h2 {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.25;
}

.banner-card p {
  font-size: 0.85rem;
  color: #e2e8f0;
  max-width: 480px;
}

.banner-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}

.btn-shop-fresh {
  background: #ffffff;
  color: var(--primary);
  border: none;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-shop-fresh:hover {
  background: #f1f5f9;
}

.banner-eta {
  font-size: 0.8rem;
  font-weight: 600;
  color: #fef08a;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* --------------------------------------------------------------------------
   Explore Categories Squircle Grid
--------------------------------------------------------------------------- */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.section-header h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.3px;
}

.section-header a {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.category-tile {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

.category-tile:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.category-tile.active {
  border-color: var(--primary);
  background: var(--primary-light);
}

.category-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  font-size: 1.6rem;
  background: #f1f5f9;
}

.category-tile span {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
}

/* --------------------------------------------------------------------------
   Curated Sections & Products Grid
--------------------------------------------------------------------------- */
.curated-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  box-shadow: var(--shadow-sm);
}

.curated-banner-strip {
  background: #ecfdf5;
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.curated-banner-strip strong {
  color: #065f46;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

/* --------------------------------------------------------------------------
   Product Card Anatomy
--------------------------------------------------------------------------- */
.product-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all 0.2s ease;
}

.product-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.product-card.out-of-stock {
  opacity: 0.65;
}

.card-top-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2;
}

.time-tag {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 2px;
}

.discount-tag {
  background: #fee2e2;
  color: #991b1b;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 800;
}

.product-thumb-wrap {
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 12px 0 8px;
}

.product-thumb {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.variant-selector-wrap {
  margin-bottom: 6px;
}

.variant-select {
  width: 100%;
  padding: 4px 6px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xs);
  background: #f8fafc;
  font-size: 0.75rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

.product-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.4em;
}

.product-brand {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.card-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 6px;
}

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

.selling-price {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
}

.mrp-strike {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

/* Add Button & Quantity Stepper */
.btn-add-cart {
  background: #ffffff;
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-add-cart:hover {
  background: var(--primary);
  color: #ffffff;
}

.btn-add-cart:disabled {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #94a3b8;
  cursor: not-allowed;
}

.qty-counter {
  display: flex;
  align-items: center;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.qty-btn {
  background: transparent;
  color: #fff;
  border: none;
  width: 28px;
  height: 28px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:active {
  background: var(--primary-hover);
}

.qty-display {
  padding: 0 8px;
  font-size: 0.85rem;
  font-weight: 700;
  min-width: 20px;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Trust Footer Badges
--------------------------------------------------------------------------- */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 10px;
}

.trust-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.trust-icon {
  font-size: 1.4rem;
}

.trust-info strong {
  display: block;
  font-size: 0.82rem;
  color: var(--text-main);
}

.trust-info small {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Sticky Floating Cart Bar
--------------------------------------------------------------------------- */
.floating-cart-bar {
  position: fixed;
  bottom: 64px; /* Above mobile bottom nav */
  left: 16px;
  right: 16px;
  max-width: 600px;
  margin: 0 auto;
  background: var(--primary);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 12px 18px;
  display: none;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-cart);
  z-index: 90;
  cursor: pointer;
  animation: slideUpCart 0.25s ease;
}

@keyframes slideUpCart {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.cart-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-icon-bubble {
  background: rgba(255, 255, 255, 0.2);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.cart-bar-details strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
}

.cart-bar-details span {
  font-size: 0.72rem;
  color: #bbf7d0;
}

.cart-bar-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.2);
  padding: 6px 14px;
  border-radius: var(--radius-full);
}

/* --------------------------------------------------------------------------
   Fixed Bottom Navigation Bar (Mobile)
--------------------------------------------------------------------------- */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 95;
}

.nav-tab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: none;
  gap: 3px;
  flex: 1;
}

.nav-tab-btn.active {
  color: var(--primary);
  font-weight: 700;
}

.nav-tab-btn svg {
  width: 20px;
  height: 20px;
}

.nav-tab-btn span {
  font-size: 0.7rem;
}

/* --------------------------------------------------------------------------
   Desktop Header Cart Button (Matches UI Mockup)
--------------------------------------------------------------------------- */
.desktop-header-cart-btn {
  display: none;
  align-items: center;
  gap: 10px;
  background: var(--primary);
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.desktop-header-cart-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.cart-btn-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.cart-badge-count {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--accent-yellow);
  color: #78350f;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: var(--radius-full);
}

.cart-btn-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.1;
}

.cart-btn-text strong {
  font-size: 0.88rem;
  font-weight: 800;
}

.cart-btn-text small {
  font-size: 0.68rem;
  color: #bbf7d0;
}

/* --------------------------------------------------------------------------
   Category Products View (SPA Sub-View)
--------------------------------------------------------------------------- */
.category-view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0 16px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 16px;
}

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

.btn-back-home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-back-home:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.cat-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.cat-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.cat-breadcrumb a:hover {
  color: var(--primary);
}

.cat-bc-divider {
  color: var(--text-light);
}

.cat-bc-current {
  font-weight: 700;
  color: var(--text-main);
}

.cat-eta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-light);
  color: var(--primary-dark);
  border: 1px solid var(--primary-border);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.pulse-green-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 0 rgba(12, 131, 64, 0.7);
  animation: pulseDot 1.8s infinite;
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(12, 131, 64, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(12, 131, 64, 0); }
  100% { box-shadow: 0 0 0 0 rgba(12, 131, 64, 0); }
}

/* Category Two-Column Layout */
.category-main-layout {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.category-sidebar {
  display: none; /* Shown on desktop >= 768px */
  width: 250px;
  flex-shrink: 0;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 10px;
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
}

.sidebar-heading {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 12px 10px;
}

.sidebar-category-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sidebar-cat-item:hover {
  background: var(--canvas-bg);
}

.sidebar-cat-item.active {
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 700;
  border-left: 3px solid var(--primary);
}

.sidebar-cat-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-cat-icon {
  font-size: 1.15rem;
}

.sidebar-cat-count {
  font-size: 0.72rem;
  background: #f1f5f9;
  color: var(--text-muted);
  padding: 2px 6px;
  border-radius: var(--radius-full);
}

.sidebar-cat-item.active .sidebar-cat-count {
  background: #d1fae5;
  color: var(--primary-dark);
}

.category-content-area {
  flex: 1;
  min-width: 0;
}

.cat-banner-card {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.cat-banner-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cat-banner-icon {
  font-size: 2.2rem;
  background: #ffffff;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.cat-banner-info h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 2px;
}

.cat-banner-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.cat-badge-pill {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  background: #ffffff;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--primary-border);
  white-space: nowrap;
}

/* Mobile Horizontal Subcategory Tabs */
.subcat-scroll-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 12px;
  scrollbar-width: none;
}

.subcat-scroll-container::-webkit-scrollbar {
  display: none;
}

.subcat-scroll-strip {
  display: flex;
  gap: 8px;
  padding: 4px 0;
  white-space: nowrap;
}

.subcat-tab-pill {
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.subcat-tab-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.subcat-tab-pill.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  font-weight: 700;
  box-shadow: 0 2px 4px rgba(12, 131, 64, 0.2);
}

/* Category Filter & Sort Bar */
.cat-filter-sort-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-left-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-count-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
}

.filter-pill-btn {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-pill-btn.active {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary-dark);
}

.sort-right-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sort-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.cat-sort-select {
  padding: 5px 10px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xs);
  background: #f8fafc;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
  outline: none;
  cursor: pointer;
}

.cat-sort-select:focus {
  border-color: var(--primary);
}

/* Category Empty State */
.cat-empty-state {
  text-align: center;
  background: #ffffff;
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 48px 20px;
  margin-top: 20px;
}

.cat-empty-state .empty-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.cat-empty-state h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.cat-empty-state p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* --------------------------------------------------------------------------
   Cart Drawer & Checkout Modal (Slide-Over & Sheet)
--------------------------------------------------------------------------- */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  justify-content: flex-end;
}

.cart-drawer-overlay.active {
  display: flex;
}

.cart-drawer {
  background: #ffffff;
  width: 100%;
  max-width: 440px;
  height: 100%;
  display: flex;
  flex-direction: column;
  animation: slideDrawer 0.25s ease;
}

@keyframes slideDrawer {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.drawer-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-header h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
}

/* Free Delivery Progress Banner */
.free-delivery-banner {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border-bottom: 1px solid var(--primary-border);
  padding: 10px 20px;
}

.delivery-status-text {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.delivery-progress-track {
  width: 100%;
  height: 6px;
  background: #d1fae5;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.delivery-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981 0%, #0c8340 100%);
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

.drawer-body {
  padding: 18px 20px;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.cart-item-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-thumb {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-xs);
  object-fit: contain;
  border: 1px solid var(--border-color);
  padding: 2px;
}

/* Apply Coupon Code Section */
.coupon-section {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.coupon-header-row {
  margin-bottom: 8px;
}

.coupon-input-group {
  display: flex;
  gap: 8px;
}

.coupon-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xs);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  outline: none;
}

.coupon-input:focus {
  border-color: var(--primary);
}

.btn-apply-coupon {
  background: var(--primary);
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-xs);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-apply-coupon:hover {
  background: var(--primary-hover);
}

.applied-coupon-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-xs);
  padding: 8px 12px;
  margin-top: 8px;
}

.applied-coupon-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.coupon-badge-icon {
  background: var(--primary);
  color: #fff;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
}

.applied-coupon-left strong {
  font-size: 0.82rem;
  color: var(--primary-dark);
}

.applied-coupon-left p {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.btn-remove-coupon {
  background: none;
  border: none;
  color: var(--accent-red);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.coupon-tags-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.coupon-tag-pill {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-xs);
  padding: 6px 10px;
  text-align: left;
  font-size: 0.75rem;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.15s ease;
}

.coupon-tag-pill:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

/* Delivery Address Card */
.delivery-address-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.address-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.addr-title-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.addr-tag {
  background: #e2e8f0;
  color: #334155;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: var(--radius-full);
}

.addr-eta {
  font-size: 0.72rem;
  color: var(--primary);
  font-weight: 700;
  margin-left: 4px;
}

.btn-change-addr {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.address-text {
  font-size: 0.82rem;
  color: var(--text-main);
  line-height: 1.35;
}

.delivery-instructions-row {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--border-light);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.instruction-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.75rem;
  outline: none;
  color: var(--text-main);
}

/* Bill Details Breakdown Card */
.cart-bill-card {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.bill-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 8px;
  color: var(--text-muted);
}

.bill-line.savings-green {
  color: var(--primary) !important;
  font-weight: 600;
}

.bill-line.total {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
  border-top: 1px dashed var(--border-color);
  padding-top: 8px;
  margin-top: 8px;
  margin-bottom: 0;
}

.gst-inclusive-tag {
  font-size: 0.72rem;
  color: #15803d;
  font-weight: 600;
  text-align: right;
  margin-top: 4px;
}

.savings-callout {
  background: #ecfdf5;
  border: 1px solid var(--primary-border);
  color: var(--primary-dark);
  border-radius: var(--radius-xs);
  padding: 10px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
}

.payment-mode-section {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.payment-mode-section h4 {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.pay-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xs);
  margin-bottom: 8px;
  cursor: pointer;
}

.pay-option.selected {
  border-color: var(--primary);
  background: var(--primary-light);
}

.pay-option.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: #f8fafc;
}

.drawer-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-color);
  background: #ffffff;
}

.btn-place-order {
  width: 100%;
  background: var(--primary);
  color: #ffffff;
  border: none;
  padding: 14px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.15s ease;
}

.btn-place-order:hover {
  background: var(--primary-hover);
}

/* --------------------------------------------------------------------------
   Live Search Overlay View
--------------------------------------------------------------------------- */
.search-overlay-modal {
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 2000;
  display: none;
  flex-direction: column;
  overflow-y: auto;
  animation: fadeInSearch 0.2s ease;
}

.search-overlay-modal.active {
  display: flex;
}

@keyframes fadeInSearch {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.search-overlay-content {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.search-overlay-header {
  position: sticky;
  top: 0;
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
}

.search-back-btn {
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 4px;
}

.search-input-box-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon-svg {
  position: absolute;
  left: 12px;
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}

.overlay-search-input {
  width: 100%;
  padding: 12px 40px;
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-full);
  background: #f8fafc;
  font-size: 0.95rem;
  outline: none;
  color: var(--text-main);
  box-shadow: 0 0 0 3px rgba(12, 131, 64, 0.1);
}

.search-clear-btn {
  position: absolute;
  right: 14px;
  background: #cbd5e1;
  color: #1e293b;
  border: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-discovery-body, .search-results-body {
  padding: 20px 16px 80px;
  flex: 1;
}

.search-section-block {
  margin-bottom: 24px;
}

.search-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.search-block-header h4 {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-main);
}

.btn-clear-history {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.search-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.search-chip {
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.search-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.search-category-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.search-cat-mini-card {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.search-cat-mini-card:hover {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.search-cat-mini-card span {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 4px;
}

.search-cat-mini-card strong {
  font-size: 0.75rem;
  color: var(--text-main);
  display: block;
}

/* Search Results Grid & Info */
.search-results-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

#searchResultSummary {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.search-no-results {
  text-align: center;
  padding: 40px 16px;
}

.no-results-icon {
  font-size: 3rem;
  margin-bottom: 10px;
}

.search-no-results h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.search-no-results p {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 440px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Saved Address Modal & Account Modal
--------------------------------------------------------------------------- */
.saved-address-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.saved-address-item:hover {
  border-color: var(--primary);
}

.saved-address-item.selected {
  border-color: var(--primary);
  background: var(--primary-light);
}

.saved-addr-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.saved-addr-top strong {
  font-size: 0.85rem;
  color: var(--text-main);
}

.addr-select-check {
  color: var(--primary);
  font-weight: 800;
}

.saved-address-item p {
  font-size: 0.82rem;
  color: var(--text-main);
}

.saved-address-item small {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.account-profile-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 16px;
}

.profile-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.account-menu-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.account-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.15s ease;
}

.account-menu-item:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

/* --------------------------------------------------------------------------
   Order Placed Success Modal
--------------------------------------------------------------------------- */
.order-success-modal {
  text-align: center;
  padding: 24px 16px;
}

.success-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 16px;
}

.otp-highlight-box {
  background: #fffbeb;
  border: 2px dashed #fbbf24;
  border-radius: var(--radius-sm);
  padding: 14px;
  margin: 18px 0;
}

.otp-digits {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 6px;
  color: #92400e;
}

/* Dark store locator & Desktop footer */
.dark-store-locator-card {
  background: #ffffff;
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 10px;
}

.app-desktop-footer {
  margin-top: 40px;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  padding: 32px 16px 20px;
  display: none;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1.5fr 2fr;
  gap: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.footer-col p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 6px;
}

.footer-link {
  display: inline-block;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  margin-bottom: 4px;
}

.footer-note {
  display: block;
  font-size: 0.72rem;
  color: var(--text-light);
}

.footer-bottom {
  max-width: 1280px;
  margin: 16px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Desktop & Mobile Responsive Breakpoints
--------------------------------------------------------------------------- */
@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }

  .desktop-header-cart-btn {
    display: inline-flex;
  }

  .desktop-aisles-nav {
    display: block;
  }

  .category-grid {
    grid-template-columns: repeat(8, 1fr);
  }

  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .category-sidebar {
    display: block;
  }

  .subcat-scroll-container {
    display: none; /* Desktop uses left sidebar subcategories */
  }

  .product-thumb-wrap {
    height: 140px;
  }

  .trust-strip {
    grid-template-columns: repeat(4, 1fr);
  }

  .mobile-bottom-nav {
    display: none;
  }

  .floating-cart-bar {
    bottom: 24px;
    right: 24px;
    left: auto;
    width: 380px;
  }

  .app-desktop-footer {
    display: block;
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 640px) {
  .cart-drawer {
    max-width: 100%;
    border-radius: 18px 18px 0 0;
    max-height: 92vh;
    margin-top: auto;
    animation: slideUpSheet 0.25s ease;
  }

  @keyframes slideUpSheet {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }

  .search-category-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   HOMEPAGE REVAMP: HERO BANNER, QUICK PROMO STRIP & PASTEL CATEGORY AISLES
   ========================================================================== */

/* Hero Promo Banner Slider (Matching Reference Layout & Carousel) */
.hero-promo-container {
  background: linear-gradient(135deg, #064e3b 0%, #047857 60%, #10b981 100%);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px -4px rgba(6, 78, 59, 0.32);
  position: relative;
  transition: background 0.65s ease-in-out, box-shadow 0.65s ease-in-out;
}

#heroBannerTitle {
  color: #ffffff !important;
  font-weight: 900;
  letter-spacing: -0.025em;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

#heroBannerSubtitle {
  color: #f1f5f9 !important;
  font-weight: 500;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

#heroBannerGraphic {
  transition: opacity 0.35s ease-in-out, transform 0.35s ease-in-out;
}

/* Slide Transition Animation */
.hero-slide-trans {
  opacity: 0.15 !important;
  transform: translateY(4px) scale(0.98);
}

/* Slider Pagination Dots */
#heroSliderDots {
  user-select: none;
}

.hero-slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.4);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: none;
  padding: 0;
  outline: none;
}

.hero-slider-dot:hover {
  background-color: rgba(255, 255, 255, 0.85);
  transform: scale(1.2);
}

.hero-slider-dot.active {
  width: 24px;
  background-color: #ffffff;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.hero-slider-arrow {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

@media (max-width: 640px) {
  .hero-slider-arrow {
    opacity: 0.85 !important;
    width: 28px !important;
    height: 28px !important;
  }
  .hero-slider-dot {
    width: 6px;
    height: 6px;
  }
  .hero-slider-dot.active {
    width: 18px;
  }
}

.hero-promo-btn {
  background-color: #ffffff !important;
  color: #064e3b !important;
  font-weight: 800;
  border-radius: 9999px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.hero-promo-btn:hover {
  background-color: #f8fafc !important;
  color: #047857 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
}

.hero-promo-btn:active {
  transform: scale(0.96);
}

/* Quick Promo / Deal Strip (Matching Image 2 Reference) */
#quickPromoStripSection {
  margin-bottom: 28px;
}

.quick-promo-strip-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.quick-promo-strip-wrapper::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
  width: 0;
  height: 0;
}

.promo-pill-btn {
  font-family: inherit;
  border-radius: 18px;
  min-height: 68px;
  padding: 14px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid transparent;
}

@media (min-width: 640px) {
  .promo-pill-btn {
    min-height: 74px;
    padding: 16px 26px;
    gap: 16px;
  }
}

.promo-pill-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

@media (min-width: 640px) {
  .promo-pill-img {
    width: 48px;
    height: 48px;
  }
}

.promo-pill-default {
  background-color: #ffffff;
  color: #111827;
  border: 1px solid #e5e7eb;
}

.promo-pill-default:hover {
  background-color: #f8fafc;
  border-color: #cbd5e1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.promo-pill-neupass {
  background: linear-gradient(135deg, #18181b 0%, #27272a 100%);
  color: #ffffff;
  border: 1px solid #27272a;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}

.promo-pill-neupass:hover {
  background: linear-gradient(135deg, #27272a 0%, #3f3f46 100%);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}

.neupass-n-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  font-weight: 900;
  font-size: 13px;
  background: linear-gradient(135deg, #ec4899 0%, #f97316 60%, #eab308 100%);
  color: #ffffff;
  box-shadow: 0 2px 5px rgba(236, 72, 153, 0.35);
}

.promo-pill-ayurveda {
  background: linear-gradient(135deg, #365314 0%, #3f6212 100%);
  color: #ffffff;
  border: 1px solid #365314;
  box-shadow: 0 3px 10px rgba(63, 98, 18, 0.25);
}

.promo-pill-ayurveda:hover {
  background: linear-gradient(135deg, #3f6212 0%, #4d7c0f 100%);
  box-shadow: 0 6px 18px rgba(63, 98, 18, 0.35);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  #quickPromoStripSection {
    margin-bottom: 24px;
  }

  .quick-promo-strip-wrapper {
    display: flex !important;
    gap: 12px !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 6px 16px 14px 16px !important;
    margin-left: -16px !important;
    margin-right: -16px !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }

  .quick-promo-strip-wrapper::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }

  .promo-pill-btn {
    flex-shrink: 0 !important;
    min-height: 68px !important;
    padding: 12px 20px !important;
    border-radius: 18px !important;
    gap: 12px !important;
  }

  .promo-pill-img {
    width: 42px !important;
    height: 42px !important;
  }
}

/* Blinkit Style Pastel Category Grid (Matching Image 3 Reference) */
.pastel-category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px 4px;
  justify-content: center;
  align-items: start;
}

@media (min-width: 480px) {
  .pastel-category-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 12px 6px;
  }
}

@media (min-width: 768px) {
  .pastel-category-grid {
    grid-template-columns: repeat(8, 1fr);
    gap: 14px 8px;
  }
}

@media (min-width: 1024px) {
  .pastel-category-grid,
  .category-grid,
  .aisles-container {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    column-gap: 12px;
    row-gap: 16px;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
    justify-content: space-between;
  }
  .pastel-card-title {
    max-width: 95px;
  }
}

.pastel-category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  cursor: pointer;
  user-select: none;
  width: 100%;
  text-align: center;
}

.pastel-card-thumb {
  width: 65px;
  height: 65px;
  background-color: #edf5fd;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, background-color 0.2s ease;
  margin: 0 auto;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.pastel-card-thumb img {
  width: 65px;
  height: 65px;
  object-fit: contain;
  transition: transform 0.2s ease;
  display: block;
}

.pastel-category-card:hover .pastel-card-thumb {
  transform: translateY(-2px);
  background-color: #e2eefa;
  box-shadow: 0 4px 12px rgba(0, 80, 160, 0.12);
}

.pastel-category-card:hover .pastel-card-thumb img {
  transform: scale(1.05);
}

.pastel-card-title {
  font-size: 0.72rem; /* ~11.5px */
  font-weight: 700;
  color: #1f2937;
  text-align: center;
  line-height: 1.25;
  margin-top: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 80px;
  min-height: 2.5em; /* ensures perfect baseline alignment across 2 rows */
}

@media (max-width: 640px) {
  .pastel-card-thumb {
    width: 58px;
    height: 58px;
    border-radius: 14px;
  }
  .pastel-card-thumb img {
    width: 58px;
    height: 58px;
    object-fit: contain;
  }
  .pastel-card-title {
    font-size: 0.68rem;
    max-width: 70px;
    margin-top: 4px;
    min-height: 2.4em;
  }
}

/* ==============================================================================
   SECTION: SASTAMART CLEAN RESPONSIVE SITE FOOTER (Matching Footer.png)
   ============================================================================== */
.sasta-site-footer {
  width: 100%;
  background-color: #f9fafb;
  border-top: 1px solid #e5e7eb;
  margin-top: 56px;
  padding: 48px 0 32px 0;
  color: #4b5563;
  font-family: inherit;
}

.sasta-footer-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.sasta-footer-main-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 56px;
  align-items: flex-start;
}

@media (max-width: 1024px) {
  .sasta-footer-main-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Section Headings */
.sasta-footer-heading {
  font-size: 1.05rem; /* ~17px */
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.sasta-footer-heading-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.sasta-footer-heading-row .sasta-footer-heading {
  margin-bottom: 0;
}

.sasta-footer-see-all {
  font-size: 0.9rem;
  font-weight: 600;
  color: #16a34a;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease, text-decoration 0.15s ease;
}

.sasta-footer-see-all:hover {
  color: #15803d;
  text-decoration: underline;
}

/* Useful Links Grid */
.sasta-footer-useful-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 24px;
}

/* Categories Grid */
.sasta-footer-categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 24px;
}

@media (max-width: 768px) {
  .sasta-footer-useful-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 16px;
  }
  .sasta-footer-categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 16px;
  }
}

@media (max-width: 480px) {
  .sasta-footer-useful-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 12px;
  }
  .sasta-footer-categories-grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 8px 12px;
  }
}

.sasta-footer-subcol {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Footer Link Items */
.sasta-footer-link {
  font-size: 0.88rem; /* ~14px */
  color: #4b5563;
  text-decoration: none;
  line-height: 1.45;
  display: block;
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sasta-footer-link:hover {
  color: #15803d;
  text-decoration: none;
}

/* Bottom Bar */
.sasta-footer-bottom {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 768px) {
  .sasta-footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.sasta-footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.sasta-footer-brand-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #111827;
}

.sasta-footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #ecfdf5;
  color: #065f46;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 9999px;
  border: 1px solid #a7f3d0;
}

.sasta-footer-copy {
  font-size: 0.82rem;
  color: #9ca3af;
}

/* Footer Info Modal */
.sasta-info-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.sasta-info-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.sasta-info-modal-card {
  background: #ffffff;
  border-radius: 20px;
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.sasta-info-modal-backdrop.active .sasta-info-modal-card {
  transform: translateY(0) scale(1);
}

