@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ==========================================================================
   ADHIKAM QUICK-COMMERCE DESIGN SYSTEM (ZEPTO / BLINKIT / INSTAMART PREMIUM)
   ========================================================================== */

:root {
  /* Brand Green Shades (Synced with Customer Mobile App) */
  --primary-deep: #064e3b;
  --primary-dark: #07532f;
  --primary: #0f7a43;
  --primary-brand: #0f7a43;
  --primary-hover: #0d6839;
  --primary-light: #eaf7ef;
  --primary-subtle: #d1fae5;
  --primary-glow: rgba(15, 122, 67, 0.22);
  
  /* Vibrant Accents */
  --accent-amber: #f59e0b;
  --accent-amber-light: #fef3c7;
  --accent-red: #ef4444;
  --accent-red-light: #fee2e2;
  --accent-blue: #0284c7;
  --accent-blue-light: #e0f2fe;
  --accent-purple: #7c3aed;
  --accent-purple-light: #ede9fe;

  /* Neutrals & Surfaces */
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-muted: #f1f5f9;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-subtle: #64748b;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  
  /* Elevation Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.09);
  --shadow-xl: 0 20px 38px rgba(0, 0, 0, 0.12);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 12px 28px rgba(15, 122, 67, 0.12), 0 4px 10px rgba(0, 0, 0, 0.04);

  /* Radii */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Resets */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   1. TOP ANNOUNCEMENT STRIP (BLINKIT / ZEPTO STYLE)
   ========================================================================== */
.top-ticker-strip {
  background: linear-gradient(90deg, #053b20 0%, #07532f 50%, #053b20 100%);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ticker-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ticker-badge {
  background: #f59e0b;
  color: #0f172a;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.ticker-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.ticker-link {
  color: #bbf7d0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  transition: color var(--transition-fast);
}

.ticker-link:hover {
  color: #ffffff;
}

/* ==========================================================================
   2. STOREFRONT HEADER (EMERALD QUICK-COMMERCE)
   ========================================================================== */
.storefront-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #07532f;
  background: linear-gradient(135deg, #064e3b 0%, #07532f 60%, #0a6439 100%);
  box-shadow: 0 4px 20px rgba(7, 83, 47, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-smooth);
}

.sf-header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 20px;
  min-height: 72px;
}

.sf-top-row {
  display: contents; /* Flattens brand-loc and header-actions into direct children on desktop */
}

/* Brand Logo */
.sf-brand-loc {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  order: 1;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.5px;
  user-select: none;
}

.logo-badge {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 20px;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.logo-text-group {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-title {
  font-size: 22px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.3px;
}

.logo-sub {
  font-size: 9.5px;
  font-weight: 700;
  color: #a7f3d0;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-top: 1px;
}

/* Delivery Location Box (Customer App Style) */
.sf-location-box {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  transition: all var(--transition-fast);
}

.sf-location-box:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

.loc-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 800;
  color: #fef08a;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1.2;
}

.loc-badge-flash {
  animation: pulse-flash 1.5s infinite;
}

@keyframes pulse-flash {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.15); }
}

.loc-address {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 5px;
  max-width: 210px;
  white-space: nowrap;
  overflow: hidden;
  margin-top: 2px;
}

#header-loc-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.loc-chevron {
  font-size: 10px;
  color: #a7f3d0;
  flex-shrink: 0;
}

/* Live Search Wrap */
.sf-search-wrap {
  flex: 1;
  max-width: 540px;
  position: relative;
  order: 2;
  margin: 0 16px;
}

.sf-search-box {
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: var(--radius-full);
  padding: 8px 18px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  border: 2px solid transparent;
  transition: all var(--transition-smooth);
}

.sf-search-box:focus-within {
  border-color: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.25), 0 8px 22px rgba(0, 0, 0, 0.14);
}

.search-icon {
  font-size: 16px;
  margin-right: 10px;
  color: #0f7a43;
  display: flex;
  align-items: center;
}

.sf-search-input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.sf-search-input::placeholder {
  color: #94a3b8;
  font-weight: 500;
}

.search-clear-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 2px 6px;
  font-size: 14px;
  display: none;
}

/* Instant Search Dropdown */
.search-results-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  padding: 10px;
  max-height: 400px;
  overflow-y: auto;
  z-index: 1050;
  display: none;
}

.search-results-dropdown.open {
  display: block;
  animation: fadeInDown 0.2s ease-out;
}

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

.sr-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.sr-item:hover {
  background: var(--bg-muted);
}

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

.sr-thumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--bg-muted);
}

.sr-info h4 {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
}

.sr-info span {
  font-size: 12px;
  color: var(--text-subtle);
}

.sr-price-box {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--primary);
}

/* Header Action Buttons */
.sf-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  order: 3;
}

.sf-btn-glass {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all var(--transition-fast);
}

.sf-btn-glass:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

.sf-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all var(--transition-smooth);
}

.sf-cart-btn:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.cart-btn-icon {
  font-size: 18px;
}

.cart-badge-count {
  background: #ffffff;
  color: #07532f;
  font-size: 11px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.cart-badge-total {
  background: rgba(0, 0, 0, 0.18);
  padding: 3px 9px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 800;
}

/* Quick Search Suggestions Strip Under Header */
.quick-search-strip {
  background: rgba(0, 0, 0, 0.15);
  padding: 6px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.quick-tags-row {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.quick-tags-row::-webkit-scrollbar {
  display: none;
}

.quick-tag-label {
  font-size: 11px;
  font-weight: 700;
  color: #a7f3d0;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.quick-tag-chip {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-full);
  padding: 3px 10px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.quick-tag-chip:hover {
  background: #ffffff;
  color: #07532f;
  transform: translateY(-1px);
}

/* ==========================================================================
   3. HERO SHOWCASE (PROMOTIONAL CAROUSEL & DUAL CARDS)
   ========================================================================== */
.hero-showcase-section {
  padding: 24px 0 16px;
  background: #f8fafc;
}

.hero-showcase-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 18px;
  align-items: stretch;
}

/* Primary Carousel Card */
.hero-carousel-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #e2e8f0;
  height: 280px;
}

.banner-slides-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.banner-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.banner-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.banner-full-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.banner-slide:hover .banner-full-img {
  transform: scale(1.025);
}

.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  transition: all var(--transition-fast);
}

.carousel-nav-btn:hover {
  background: #ffffff;
  transform: translateY(-50%) scale(1.1);
}

.carousel-nav-btn.prev { left: 16px; }
.carousel-nav-btn.next { right: 16px; }

.carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 7px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.25);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.carousel-dot.active {
  width: 22px;
  border-radius: var(--radius-full);
  background: #ffffff;
}

/* Side Dual Promo Cards (Customer Mobile App Style) */
.hero-side-promos {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.side-promo-card {
  flex: 1;
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  border: 1px solid transparent;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-smooth);
}

.side-promo-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.side-promo-green {
  background: linear-gradient(135deg, #eaf7ef 0%, #d1fae5 100%);
  border-color: #a7f3d0;
}

.side-promo-peach {
  background: linear-gradient(135deg, #fff1f2 0%, #fee2e2 100%);
  border-color: #fecaca;
}

.promo-tag-pill {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  display: inline-block;
  margin-bottom: 6px;
}

.side-promo-green .promo-tag-pill {
  background: #0f7a43;
  color: #ffffff;
}

.side-promo-peach .promo-tag-pill {
  background: #e11d48;
  color: #ffffff;
}

.side-promo-card h3 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 4px;
}

.side-promo-green h3 { color: #064e3b; }
.side-promo-peach h3 { color: #881337; }

.side-promo-card p {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 12px;
}

.side-promo-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-fast);
}

.side-promo-green .side-promo-btn {
  background: #07532f;
}

.side-promo-green .side-promo-btn:hover {
  background: #053b20;
}

.side-promo-peach .side-promo-btn {
  background: #9f1239;
}

.side-promo-peach .side-promo-btn:hover {
  background: #881337;
}

.side-promo-badge-graphic {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 12px;
}

.floating-percent-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 900;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  line-height: 1;
}

.side-promo-green .floating-percent-circle {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.side-promo-peach .floating-percent-circle {
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
}

.fpc-number { font-size: 16px; }
.fpc-off { font-size: 9px; font-weight: 800; }

/* ==========================================================================
   4. 8 CURATED PASTEL CATEGORIES (CUSTOMER MOBILE APP SYNC)
   ========================================================================== */
.categories-showcase-section {
  padding: 16px 0 24px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
}

.section-title-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-title-wrap h2 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.title-sub-text {
  font-size: 13px;
  color: var(--text-subtle);
  font-weight: 500;
}

.categories-scroll-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  overflow-x: auto;
  padding: 6px 4px 14px;
  scrollbar-width: none;
}

.categories-scroll-row::-webkit-scrollbar {
  display: none;
}

.category-circle-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  background: transparent;
  border: none;
  min-width: 90px;
  text-align: center;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.category-circle-item:hover {
  transform: translateY(-4px);
}

.cat-circle-stage {
  width: 72px;
  height: 72px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all var(--transition-smooth);
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
}

.category-circle-item:hover .cat-circle-stage {
  box-shadow: var(--shadow-md);
}

.category-circle-item.active .cat-circle-stage {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 122, 67, 0.25), 0 8px 20px rgba(15, 122, 67, 0.2);
  transform: scale(1.06);
}

.cat-circle-img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 16px;
}

.cat-circle-icon {
  font-size: 32px;
}

.cat-circle-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
  max-width: 86px;
  white-space: pre-line;
  transition: color var(--transition-fast);
}

.category-circle-item.active .cat-circle-label {
  color: var(--primary);
  font-weight: 800;
}

/* ==========================================================================
   5. FLASH DEALS / DEALS OF THE DAY (HIGH-ENERGY QUICK COMMERCE)
   ========================================================================== */
.flash-deals-section {
  padding: 24px 0 20px;
  background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 40%, #f8fafc 100%);
  border-bottom: 1px solid #fef08a;
}

.flash-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.flash-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.flash-flame-icon {
  font-size: 24px;
  animation: pulse-flash 1.2s infinite;
}

.flash-title-group h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 900;
  color: #92400e;
}

.flash-timer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f59e0b;
  color: #ffffff;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.deals-scroll-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* ==========================================================================
   6. MAIN CATALOG & PRODUCT CARDS (ZEPTO / BLINKIT SPEC)
   ========================================================================== */
.storefront-main-section {
  padding: 32px 0 64px;
}

.section-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 16px;
}

.st-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.st-title-group h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: -0.3px;
}

.st-count-pill {
  background: var(--primary-light);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.st-filter-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.st-pill {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  background: #ffffff;
  color: var(--text-muted);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--transition-fast);
}

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

.st-pill.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(15, 122, 67, 0.25);
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Product Card Spec (Zepto / Blinkit Match) */
.product-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
  position: relative;
  transition: all var(--transition-smooth);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(15, 122, 67, 0.35);
}

/* Product Image Wrapper */
.product-img-wrapper {
  position: relative;
  height: 170px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  cursor: pointer;
  overflow: hidden;
}

.product-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform var(--transition-smooth);
}

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

/* Discount Tag */
.discount-pill {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #0f7a43;
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  box-shadow: 0 2px 6px rgba(15, 122, 67, 0.3);
  letter-spacing: 0.3px;
  z-index: 2;
}

/* Delivery ETA Tag */
.delivery-time-pill {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.95);
  color: #07532f;
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(7, 83, 47, 0.15);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 3px;
}

/* Product Info Area */
.product-info {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.product-brand-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.product-brand {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-unit {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-subtle);
  background: var(--bg-muted);
  padding: 2px 7px;
  border-radius: var(--radius-xs);
}

.product-name {
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 12px;
  height: 38px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.product-name:hover {
  color: var(--primary);
}

/* Price & Add Action Row */
.product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px dashed var(--border-light);
}

.price-stack {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.selling-price {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 900;
  color: var(--text-main);
}

.mrp-price {
  font-size: 12px;
  color: var(--text-subtle);
  text-decoration: line-through;
  font-weight: 500;
  margin-top: 2px;
}

/* Modern "+ ADD" Button & Stepper */
.cart-action-container {
  min-width: 80px;
}

.add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 84px;
  height: 36px;
  background: #ffffff;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(15, 122, 67, 0.08);
  transition: all var(--transition-fast);
}

.add-btn:hover {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 122, 67, 0.3);
  transform: translateY(-1px);
}

.add-plus {
  font-size: 16px;
  line-height: 1;
}

.qty-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--primary);
  border-radius: var(--radius-sm);
  width: 84px;
  height: 36px;
  padding: 2px;
  box-shadow: 0 4px 12px rgba(15, 122, 67, 0.3);
}

.stepper-btn {
  width: 28px;
  height: 32px;
  background: transparent;
  color: #ffffff;
  border: none;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s ease;
}

.stepper-btn:hover {
  transform: scale(1.15);
}

.stepper-count {
  font-size: 13px;
  font-weight: 900;
  color: #ffffff;
}

/* Empty State */
.empty-products-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border);
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.empty-products-state h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
}

.empty-products-state p {
  color: var(--text-muted);
  max-width: 440px;
  margin: 0 auto 20px;
  font-size: 14px;
}

/* ==========================================================================
   7. FLOATING QUICK-CART BAR (BLINKIT STYLE BOTTOM PILL)
   ========================================================================== */
.floating-cart-pill {
  position: fixed;
  bottom: 24px;
  right: 28px;
  z-index: 950;
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, #07532f 0%, #0f7a43 100%);
  color: #ffffff;
  padding: 12px 22px;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 30px rgba(7, 83, 47, 0.4), 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transform: translateY(100px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-cart-pill.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.floating-cart-pill:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 36px rgba(7, 83, 47, 0.5);
}

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

.fcp-icon {
  font-size: 22px;
}

.fcp-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.fcp-items-count {
  font-size: 11.5px;
  font-weight: 700;
  color: #bbf7d0;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.fcp-total-price {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 900;
}

.fcp-right {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.2);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 800;
}

/* ==========================================================================
   8. SLIDE-OVER CART DRAWER
   ========================================================================== */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}

.cart-drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 440px;
  max-width: 100vw;
  background: #ffffff;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.2);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-smooth);
}

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

.cart-drawer-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
}

.cd-title-group h3 {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 800;
  color: var(--text-main);
}

.cd-store-name {
  font-size: 12px;
  color: var(--primary);
  font-weight: 700;
}

.close-drawer-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.close-drawer-btn:hover {
  background: #fee2e2;
  color: #ef4444;
}

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 22px;
}

/* Free Delivery Banner */
.free-delivery-banner {
  background: linear-gradient(135deg, #eaf7ef 0%, #d1fae5 100%);
  border: 1px solid #a7f3d0;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 18px;
}

.free-delivery-banner.unlocked {
  background: #ecfdf5;
  color: #065f46;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.fd-text {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: #065f46;
  margin-bottom: 8px;
}

.fd-progress-track {
  width: 100%;
  height: 6px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.fd-progress-fill {
  height: 100%;
  background: #10b981;
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

/* Cart Items */
.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.cart-item-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
}

.cart-item-img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  background: var(--bg-muted);
  border-radius: var(--radius-sm);
  padding: 4px;
  flex-shrink: 0;
}

.cart-item-details {
  flex: 1;
  min-width: 0;
}

.cart-item-brand {
  font-size: 10px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
}

.cart-item-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.cart-item-unit {
  font-size: 11.5px;
  color: var(--text-subtle);
  display: block;
}

.cart-item-price {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 900;
  color: var(--text-main);
  margin-top: 4px;
}

/* Bill Breakdown */
.bill-box {
  background: var(--bg-muted);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 18px;
}

.bill-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
}

.bill-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.bill-row.discount {
  color: #059669;
  font-weight: 700;
}

.bill-divider {
  height: 1px;
  background: var(--border);
  margin: 12px 0 8px;
}

.bill-row.grand-total {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 0;
}

.free-pill {
  color: #059669;
  font-weight: 800;
}

/* Coupon Box */
.coupon-apply-wrap {
  margin-top: 14px;
}

.coupon-input-box {
  display: flex;
  background: #ffffff;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  align-items: center;
  gap: 8px;
}

.coupon-input-box input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.coupon-btn {
  background: #07532f;
  color: #ffffff;
  border: none;
  border-radius: var(--radius-xs);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.coupon-suggestions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.coupon-chip {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

/* Drawer Footer */
.cart-drawer-footer {
  padding: 18px 22px;
  border-top: 1px solid var(--border);
  background: #ffffff;
}

.cart-checkout-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: linear-gradient(135deg, #07532f 0%, #0f7a43 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(7, 83, 47, 0.35);
  transition: all var(--transition-fast);
}

.cart-checkout-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(7, 83, 47, 0.45);
}

.cart-checkout-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

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

.btn-items-count {
  font-size: 11.5px;
  font-weight: 700;
  color: #bbf7d0;
}

.btn-grand-total {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 900;
}

.btn-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   9. MODALS SYSTEM (PRODUCT VIEW, LOCATION, AUTH, CHECKOUT, TRACKING)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  max-width: 620px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.95);
  transition: transform var(--transition-smooth);
}

.modal-backdrop.open .modal-card {
  transform: scale(1);
}

.modal-close-icon {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  z-index: 10;
  transition: all var(--transition-fast);
}

.modal-close-icon:hover {
  background: #fee2e2;
  color: #ef4444;
}

/* Product Quick View Modal */
.product-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
  padding: 28px;
}

.pm-image-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.pm-large-image {
  width: 100%;
  height: 240px;
  object-fit: contain;
  background: var(--bg-muted);
  border-radius: var(--radius-md);
  padding: 16px;
}

.pm-badges {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.badge-fresh {
  background: #ecfdf5;
  color: #065f46;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  text-align: center;
}

.badge-delivery {
  background: #fef3c7;
  color: #92400e;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  text-align: center;
}

.pm-brand {
  font-size: 11px;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
}

.pm-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
  margin: 2px 0 8px;
}

.pm-price-box {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.pm-selling-price {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 900;
  color: var(--text-main);
}

.pm-mrp-price {
  font-size: 15px;
  color: var(--text-subtle);
  text-decoration: line-through;
}

.pm-discount-tag {
  background: #0f7a43;
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
}

.pm-variants-box {
  margin-bottom: 16px;
}

.pm-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.pm-variants-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pm-variant-btn {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: #ffffff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.pm-variant-btn.selected {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}

.pm-features-list {
  background: var(--bg-muted);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin: 16px 0;
  font-size: 12.5px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pm-add-btn {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  font-weight: 800;
  background: linear-gradient(135deg, #07532f 0%, #0f7a43 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
}

/* Location Selector Modal */
.location-modal-card {
  padding: 32px 28px;
  max-width: 520px;
}

.loc-modal-header {
  text-align: center;
  margin-bottom: 22px;
}

.loc-modal-header h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}

.loc-modal-header p {
  font-size: 13px;
  color: var(--text-muted);
}

.zones-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
}

.zone-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.zone-item:hover, .zone-item.active {
  border-color: var(--primary);
  background: var(--primary-light);
}

.zone-info h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.zone-info span {
  font-size: 12px;
  color: var(--text-subtle);
}

.zone-eta {
  font-size: 12px;
  font-weight: 800;
  color: #0f7a43;
  background: #ffffff;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(15, 122, 67, 0.2);
}

/* Auth / Login Modal */
.auth-card {
  padding: 36px 32px;
  text-align: center;
  max-width: 440px;
}

.auth-logo-badge {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 26px;
  margin: 0 auto 16px;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
}

.auth-card h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.auth-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.phone-input-row {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  margin-bottom: 16px;
}

.phone-input-row:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 122, 67, 0.15);
}

.country-code {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-main);
  margin-right: 10px;
}

.phone-field {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.auth-btn-full {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  font-weight: 800;
  background: linear-gradient(135deg, #07532f 0%, #0f7a43 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
}

.otp-box-wrap {
  margin-bottom: 18px;
}

.otp-field {
  width: 160px;
  text-align: center;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 8px;
  padding: 10px;
  border: 2px solid var(--primary);
  border-radius: var(--radius-md);
  outline: none;
}

/* Checkout Modal */
.checkout-card {
  padding: 32px 28px;
}

.checkout-card h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 122, 67, 0.15);
}

.payment-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.pm-radio-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition: all var(--transition-fast);
}

.pm-radio-card:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}

.checkout-summary-mini {
  background: var(--bg-muted);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin: 14px 0;
  font-size: 12.5px;
}

.co-item-mini {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.checkout-total-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 900;
  margin: 14px 0 20px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}

/* Order Success & Live Tracking Stepper Modal */
.order-success-card {
  padding: 32px 28px;
  text-align: center;
}

.success-badge-icon {
  font-size: 48px;
  margin-bottom: 8px;
}

.success-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 4px;
}

.order-id-pill {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 12px;
}

.success-sub {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Live Status Stepper */
.tracking-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 24px 0;
  padding: 0 10px;
}

.track-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 2;
}

.step-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
}

.track-step.done .step-circle {
  background: #10b981;
  color: #ffffff;
}

.track-step.active .step-circle {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(15, 122, 67, 0.25);
}

.step-circle.pulse {
  animation: pulse-ring 1.5s infinite;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(15, 122, 67, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(15, 122, 67, 0); }
  100% { box-shadow: 0 0 0 0 rgba(15, 122, 67, 0); }
}

.step-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}

.track-line {
  flex: 1;
  height: 3px;
  background: var(--border);
  margin: 0 4px;
  transform: translateY(-12px);
}

.track-line.done {
  background: #10b981;
}

/* Rider Info Box */
.tracking-delivery-box {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 20px;
  text-align: left;
}

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

.td-icon {
  font-size: 28px;
  margin-right: 12px;
}

.td-info h4 {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-main);
}

.td-info p {
  font-size: 12px;
  color: var(--text-subtle);
}

.td-otp {
  background: #ffffff;
  border: 1px dashed var(--primary);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  text-align: center;
}

.otp-caption {
  font-size: 9.5px;
  font-weight: 800;
  color: var(--text-subtle);
  text-transform: uppercase;
  display: block;
}

.otp-number {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: 2px;
}

/* Order Summary Mini */
.order-summary-box {
  background: var(--bg-muted);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  text-align: left;
  margin-bottom: 24px;
}

.os-header {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 8px;
}

.os-item-line {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.os-actions {
  display: flex;
  gap: 12px;
}

.os-actions .btn {
  flex: 1;
  padding: 12px;
  border-radius: var(--radius-md);
  font-weight: 800;
}

/* Past Orders Modal */
.order-history-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-xs);
}

.oh-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.oh-id {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
}

.oh-date {
  font-size: 12px;
  color: var(--text-subtle);
  margin-left: 8px;
}

.oh-status-pill {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.oh-status-pill.delivered {
  background: #dcfce7;
  color: #166534;
}

.oh-status-pill.confirmed {
  background: #fef3c7;
  color: #92400e;
}

.oh-items {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.oh-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px dashed var(--border-light);
}

/* ==========================================================================
   10. MOBILE APP SHOWCASE SECTION (PHONE FRAME + QR CODE)
   ========================================================================== */
.app-download-section {
  padding: 48px 0;
  background: #ffffff;
}

.app-showcase-card {
  background: linear-gradient(135deg, #053b20 0%, #07532f 60%, #064e3b 100%);
  border-radius: var(--radius-xl);
  padding: 44px 48px;
  color: #ffffff;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  align-items: center;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.app-showcase-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.asc-tag-pill {
  background: rgba(255, 255, 255, 0.16);
  color: #bbf7d0;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 800;
  display: inline-block;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.asc-title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 12px;
}

.asc-desc {
  font-size: 15px;
  color: #d1fae5;
  line-height: 1.6;
  margin-bottom: 22px;
}

.asc-perks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 26px;
}

.asc-perk-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
}

.asc-perk-check {
  color: #fde047;
  font-weight: 900;
}

.asc-action-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.app-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  color: #07532f;
  padding: 12px 22px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  transition: all var(--transition-fast);
}

.app-store-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  background: #f1f5f9;
}

/* App Phone Graphic Showcase */
.asc-phone-showcase {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.phone-mockup-frame {
  width: 250px;
  height: 480px;
  background: #0f172a;
  border-radius: 40px;
  border: 8px solid #1e293b;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone-notch {
  width: 90px;
  height: 18px;
  background: #1e293b;
  border-radius: 0 0 12px 12px;
  margin: 0 auto;
}

.phone-screen {
  flex: 1;
  background: #ffffff;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

.mock-app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #07532f;
  padding: 8px 10px;
  border-radius: 10px;
  color: #ffffff;
}

.mock-app-banner {
  height: 110px;
  border-radius: 12px;
  object-fit: cover;
}

.mock-cat-row {
  display: flex;
  gap: 6px;
  justify-content: space-between;
}

.mock-cat-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.mock-cat-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.mock-prod-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mock-prod-card {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 6px;
  text-align: center;
}

/* ==========================================================================
   11. VALUE PILLARS & FEATURES SECTION
   ========================================================================== */
.features-section {
  padding: 64px 0;
  background: #ffffff;
}

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

.feature-card {
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  transition: all var(--transition-smooth);
}

.feature-card:hover {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.feature-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.feature-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   12. FOOTER (PREMIUM DARK HYPERLOCAL)
   ========================================================================== */
footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 64px 0 32px;
  border-top: 1px solid #1e293b;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 36px;
  margin-bottom: 48px;
}

.footer-brand .logo {
  color: #ffffff;
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  max-width: 320px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
  letter-spacing: 0.3px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 13.5px;
  color: #94a3b8;
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: #10b981;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid #1e293b;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 12px;
}

/* Toast */
.toast-notification {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #0f172a;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-notification.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #ffffff;
  border-top: 1px solid var(--border);
  z-index: 1000;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
  justify-content: space-around;
  align-items: center;
}

.mb-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  position: relative;
}

.mb-nav-item.active {
  color: var(--primary);
}

.mb-icon {
  font-size: 20px;
}

.mb-badge {
  position: absolute;
  top: -4px;
  right: -8px;
  background: #ef4444;
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
  padding: 1px 5px;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   LEGAL PAGES & STANDARD NAV BAR
   ========================================================================== */
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}

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

.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

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

.legal-container {
  max-width: 860px;
  margin: 40px auto;
  background: #ffffff;
  padding: 44px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.legal-container h1 {
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 900;
  margin-bottom: 20px;
  color: var(--text-main);
}

.legal-container h2 {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 800;
  margin: 26px 0 10px;
  color: var(--text-main);
}

.legal-container p, .legal-container li {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 12px;
}

/* ==========================================================================
   COMPREHENSIVE MULTI-SCREEN RESPONSIVE SYSTEM
   (Supports: 4K/2K Desktops, Laptops, Tablets Landscape & Portrait,
    Foldables, Standard Smartphones, and Ultra-Narrow 320px screens)
   ========================================================================== */

/* ── 1. Extra Large Desktops & 2K/4K Displays (>= 1400px) ── */
@media (min-width: 1400px) {
  .container {
    max-width: 1360px;
    padding: 0 28px;
  }

  .hero-carousel-card {
    height: 310px;
  }

  .products-grid, .deals-scroll-row {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }

  .product-img-wrapper {
    height: 185px;
  }
}

/* ── 2. Standard Laptops & Small Desktops (1025px to 1279px) ── */
@media (max-width: 1279px) and (min-width: 1025px) {
  .container {
    max-width: 1080px;
  }

  .loc-address {
    max-width: 170px;
  }

  .sf-search-wrap {
    flex: 1 1 300px;
  }

  .products-grid, .deals-scroll-row {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  .product-img-wrapper {
    height: 155px;
  }
}

/* ── 3. Tablets Landscape & Medium Screens (881px to 1024px) ── */
@media (max-width: 1024px) {
  .hero-showcase-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero-side-promos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .products-grid, .deals-scroll-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  .app-showcase-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 36px 30px;
  }

  .asc-perks-grid {
    justify-content: center;
  }

  .asc-action-row {
    justify-content: center;
  }

  .asc-phone-showcase {
    display: none;
  }
}

/* ── 4. Tablets Portrait & Large Phablets (769px to 880px) ── */
@media (max-width: 880px) and (min-width: 769px) {
  .sf-btn-glass span:last-child {
    display: none; /* Icon-only button to save header width */
  }

  .loc-address {
    max-width: 130px;
  }

  .sf-search-wrap {
    flex: 1 1 220px;
  }
}

/* ── 5. All Mobile Phones & Small Tablets (<= 768px) ── */
@media (max-width: 768px) {
  .top-ticker-strip {
    display: none;
  }

  /* 2-Tier Quick Commerce Mobile Header (Zepto / Blinkit Style) */
  .storefront-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: auto;
  }

  .sf-header-container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 12px 10px;
    min-height: unset;
    height: auto;
    gap: 8px;
    position: relative;
  }

  .sf-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    order: 1;
    gap: 8px;
    height: auto;
  }

  .sf-brand-loc {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
  }

  .logo {
    font-size: 18px;
    gap: 6px;
    flex-shrink: 0;
  }

  .logo-badge {
    width: 32px;
    height: 32px;
    font-size: 16px;
    border-radius: 8px;
  }

  .logo-title {
    font-size: 18px;
  }

  .logo-sub {
    font-size: 8px;
  }

  .sf-location-box {
    padding: 3px 8px;
    max-width: 180px;
    border-radius: var(--radius-xs);
    min-width: 0;
    flex: 1;
  }

  .loc-badge {
    font-size: 9px;
    white-space: nowrap;
    letter-spacing: 0.2px;
  }

  .loc-address {
    font-size: 11px;
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 3px;
  }

  #header-loc-text {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    flex: 1;
  }

  /* Header Actions on Mobile: Mini Cart in Top Right of Row 1 */
  .sf-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    position: static;
  }

  .sf-header-actions .sf-btn-glass {
    display: none; /* Moved to mobile bottom nav */
  }

  .sf-cart-btn {
    padding: 6px 11px;
    font-size: 12px;
    gap: 4px;
    border-radius: var(--radius-full);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
  }

  .cart-btn-icon {
    font-size: 15px;
  }

  .cart-btn-text {
    display: none; /* Only 🛒 and count pill in header */
  }

  .cart-badge-count {
    font-size: 10px;
    padding: 1px 5px;
  }

  .cart-badge-total {
    font-size: 11px;
    padding: 1px 5px;
  }

  /* Full-Width Mobile Search Bar - STRICTLY NO VERTICAL STRETCH */
  .sf-search-wrap {
    flex: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    height: auto !important;
    order: 2;
    position: relative;
  }

  .sf-search-box {
    width: 100%;
    height: 40px;
    padding: 0 14px;
  }

  .search-icon {
    font-size: 14px;
    margin-right: 8px;
  }

  .sf-search-input {
    font-size: 13px;
  }

  .quick-search-strip {
    padding: 5px 0 6px;
  }

  .quick-tags-row {
    padding: 0 14px;
    gap: 6px;
  }

  .quick-tag-label {
    display: none; /* Save horizontal scroll space */
  }

  .quick-tag-chip {
    padding: 3px 9px;
    font-size: 11px;
  }

  /* Hero Section on Mobile */
  .hero-showcase-section {
    padding: 12px 0 10px;
  }

  .hero-carousel-card {
    height: 180px;
    border-radius: var(--radius-md);
  }

  .carousel-nav-btn {
    display: none; /* Touch swipe instead of arrows */
  }

  .hero-side-promos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .side-promo-card {
    border-radius: var(--radius-md);
    padding: 12px 14px;
  }

  .promo-tag-pill {
    font-size: 9px;
    padding: 2px 6px;
  }

  .side-promo-card h3 {
    font-size: 13.5px;
    line-height: 1.25;
    margin-bottom: 2px;
  }

  .side-promo-card p {
    font-size: 10px;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .side-promo-btn {
    font-size: 10.5px;
    padding: 4px 10px;
  }

  .floating-percent-circle {
    width: 38px;
    height: 38px;
  }

  .fpc-number {
    font-size: 12.5px;
  }

  .fpc-off {
    font-size: 7.5px;
  }

  /* Categories Showcase on Mobile */
  .categories-showcase-section {
    padding: 14px 0 16px;
  }

  .section-title-wrap h2 {
    font-size: 18px;
  }

  .title-sub-text {
    font-size: 12px;
  }

  .categories-scroll-row {
    gap: 12px;
    padding: 4px 14px 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .category-circle-item {
    scroll-snap-align: start;
    min-width: 72px;
    gap: 6px;
  }

  .cat-circle-stage {
    width: 62px;
    height: 62px;
    border-radius: 20px;
  }

  .cat-circle-img {
    width: 42px;
    height: 42px;
  }

  .cat-circle-icon {
    font-size: 28px;
  }

  .cat-circle-label {
    font-size: 11px;
    max-width: 72px;
  }

  /* Flash Deals Header */
  .flash-deals-section {
    padding: 18px 0 16px;
  }

  .flash-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
  }

  .flash-title-group h2 {
    font-size: 17px;
  }

  .flash-timer-badge {
    font-size: 11px;
    padding: 4px 10px;
  }

  /* Products & Deals Grid on Mobile: Always 2 Clean Columns */
  .products-grid, .deals-scroll-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .storefront-main-section {
    padding: 20px 0 48px;
  }

  .section-top-bar {
    margin-bottom: 16px;
    gap: 10px;
  }

  .st-title-group h2 {
    font-size: 20px;
  }

  .st-filter-pills {
    gap: 6px;
    overflow-x: auto;
    width: 100%;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .st-filter-pills::-webkit-scrollbar {
    display: none;
  }

  .st-pill {
    padding: 6px 12px;
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* Mobile Product Card */
  .product-card {
    border-radius: var(--radius-md);
  }

  .product-img-wrapper {
    height: 130px;
    padding: 8px;
  }

  .discount-pill {
    font-size: 9.5px;
    padding: 2px 6px;
    top: 6px;
    left: 6px;
  }

  .delivery-time-pill {
    font-size: 9.5px;
    padding: 2px 6px;
    top: 6px;
    right: 6px;
  }

  .product-info {
    padding: 10px 10px 12px;
  }

  .product-brand {
    font-size: 10px;
  }

  .product-unit {
    font-size: 10.5px;
    padding: 1px 5px;
  }

  .product-name {
    font-size: 13px;
    height: 34px;
    margin-bottom: 8px;
    line-height: 1.3;
  }

  .selling-price {
    font-size: 16px;
  }

  .mrp-price {
    font-size: 11px;
  }

  .add-btn, .qty-stepper {
    width: 70px;
    height: 32px;
    font-size: 12px;
  }

  .stepper-btn {
    width: 22px;
    font-size: 15px;
  }

  .stepper-count {
    font-size: 12px;
  }

  /* Slide-Over Cart Drawer on Mobile */
  .cart-drawer {
    width: 100vw;
    max-width: 100vw;
  }

  .cart-drawer-header {
    padding: 16px 18px;
  }

  .cart-drawer-body {
    padding: 14px 16px;
  }

  .cart-drawer-footer {
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 10px));
  }

  /* Mobile Bottom Sheet Modals */
  .modal-backdrop {
    padding: 0;
    align-items: flex-end;
  }

  .modal-card {
    border-radius: 24px 24px 0 0;
    max-width: 100%;
    width: 100%;
    max-height: 88vh;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 12px));
    transform: translateY(100%);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
  }

  .modal-backdrop.open .modal-card {
    transform: translateY(0);
  }

  .product-modal-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px 18px;
  }

  .pm-large-image {
    height: 170px;
  }

  .pm-title {
    font-size: 18px;
  }

  .checkout-card {
    padding: 22px 18px;
  }

  .form-row-2 {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .payment-options-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .location-modal-card {
    padding: 24px 18px;
  }

  .order-success-card {
    padding: 24px 16px;
  }

  .tracking-stepper {
    padding: 0;
  }

  .step-circle {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  .step-label {
    font-size: 9.5px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }

  /* Mobile Bottom Navigation Bar */
  .mobile-bottom-nav {
    display: flex;
    height: calc(58px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  body {
    padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
  }

  /* Floating Quick Cart Bar on Mobile */
  .floating-cart-pill {
    bottom: calc(68px + env(safe-area-inset-bottom, 0px));
    left: 14px;
    right: 14px;
    padding: 10px 18px;
    border-radius: var(--radius-full);
    justify-content: space-between;
  }
}

/* ── 6. Extra Small & Ultra-Narrow Phones (<= 380px, e.g. iPhone SE, Fold outer screen, 320px) ── */
@media (max-width: 380px) {
  .container {
    padding: 0 10px;
  }

  .sf-header-container {
    padding: 6px 10px 8px;
    gap: 6px;
  }

  .logo {
    font-size: 16px;
    gap: 5px;
  }

  .logo-badge {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .logo-title {
    font-size: 16px;
  }

  .sf-location-box {
    padding: 3px 6px;
    max-width: 120px;
  }

  .loc-badge {
    font-size: 9px;
  }

  .loc-address {
    display: none; /* Hide long address on <380px so 25 Mins pill breathes freely */
  }

  .sf-cart-btn {
    padding: 5px 8px;
    font-size: 11px;
  }

  .cart-badge-total {
    display: none;
  }

  .sf-search-box {
    padding: 6px 12px;
  }

  .sf-search-input {
    font-size: 12px;
  }

  .hero-carousel-card {
    height: 145px;
  }

  .hero-side-promos {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .side-promo-card {
    padding: 10px 12px;
  }

  .side-promo-card h3 {
    font-size: 12.5px;
  }

  .floating-percent-circle {
    display: none; /* Hide floating badge on <380px for cleaner card */
  }

  .cat-circle-stage {
    width: 52px;
    height: 52px;
    border-radius: 16px;
  }

  .cat-circle-img {
    width: 34px;
    height: 34px;
  }

  .cat-circle-icon {
    font-size: 22px;
  }

  .cat-circle-label {
    font-size: 10px;
    max-width: 58px;
  }

  .products-grid, .deals-scroll-row {
    gap: 8px;
  }

  .product-img-wrapper {
    height: 110px;
    padding: 6px;
  }

  .product-info {
    padding: 8px 8px 10px;
  }

  .product-name {
    font-size: 12px;
    height: 30px;
    margin-bottom: 6px;
  }

  .selling-price {
    font-size: 14.5px;
  }

  .mrp-price {
    font-size: 10.5px;
  }

  .add-btn, .qty-stepper {
    width: 62px;
    height: 28px;
    font-size: 11px;
  }

  .stepper-btn {
    width: 18px;
    font-size: 13px;
  }

  .stepper-count {
    font-size: 11px;
  }

  .floating-cart-pill {
    padding: 9px 14px;
  }

  .fcp-total-price {
    font-size: 14px;
  }

  .fcp-right {
    font-size: 11.5px;
    padding: 4px 10px;
  }
}

/* ==========================================================================
   AUTHENTICATION MODAL & DUAL LOGIN SYSTEM
   ========================================================================== */

.auth-modal-card {
  max-width: 440px;
  width: 100%;
  padding: 32px 28px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.auth-modal-header {
  text-align: center;
  margin-bottom: 24px;
}

.auth-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
}

.auth-modal-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.auth-modal-subtitle {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.4;
}

/* Segmented Tabs */
.auth-segmented-tabs {
  display: flex;
  background: #f3f4f6;
  padding: 4px;
  border-radius: 14px;
  margin-bottom: 22px;
  position: relative;
}

.auth-tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  color: #4b5563;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-tab-btn.active {
  background: #ffffff;
  color: #111827;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.auth-tab-btn .tab-icon {
  font-size: 16px;
}

/* Form inputs */
.auth-field {
  margin-bottom: 16px;
}

.auth-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.auth-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: #f9fafb;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-input-wrapper:focus-within {
  border-color: #059669;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

.auth-input-prefix {
  padding: 0 14px;
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  border-right: 1.5px solid #e5e7eb;
  display: flex;
  align-items: center;
  gap: 6px;
}

.auth-input-wrapper input {
  flex: 1;
  padding: 12px 14px;
  border: none;
  background: transparent;
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  outline: none;
  width: 100%;
}

.auth-input-wrapper input::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

.auth-eye-btn {
  background: transparent;
  border: none;
  padding: 0 12px;
  cursor: pointer;
  color: #6b7280;
  display: flex;
  align-items: center;
}

/* WhatsApp Theme CTA */
.btn-whatsapp-auth {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 6px 16px rgba(18, 140, 126, 0.35);
}

.btn-whatsapp-auth:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(18, 140, 126, 0.45);
}

.btn-whatsapp-auth:active {
  transform: translateY(0);
}

.btn-email-auth {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  background: linear-gradient(135deg, #07532f 0%, #0f7a43 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 6px 16px rgba(7, 83, 47, 0.3);
}

.btn-email-auth:hover {
  transform: translateY(-1px);
}

/* OTP Digits input row */
.auth-otp-container {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 18px 0;
}

.auth-otp-box {
  width: 48px;
  height: 54px;
  font-size: 24px;
  font-weight: 800;
  text-align: center;
  border: 1.5px solid #d1d5db;
  border-radius: 12px;
  background: #f9fafb;
  outline: none;
  color: #111827;
  transition: all 0.2s ease;
}

.auth-otp-box:focus {
  border-color: #25D366;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.2);
}

.auth-resend-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: #6b7280;
  margin-top: 14px;
}

.auth-link-btn {
  background: none;
  border: none;
  color: #059669;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
}

.auth-link-btn:hover {
  text-decoration: underline;
}

.auth-toggle-mode {
  text-align: center;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #f3f4f6;
  font-size: 13px;
  color: #6b7280;
}

/* User Profile Navbar State & Dropdown */
.sf-user-logged {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  position: relative;
}

.sf-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.3);
}

.sf-user-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 220px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  padding: 8px;
  display: none;
  z-index: 1000;
}

.sf-user-menu.open {
  display: block;
  animation: fadeInDown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.sf-user-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: #374151;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.sf-user-menu-item:hover {
  background: #f3f4f6;
  color: #111827;
}

.sf-user-menu-item.logout {
  color: #dc2626;
}

.sf-user-menu-item.logout:hover {
  background: #fef2f2;
}

/* ── Web Splash Screen Overlay ─────────────────────────────────────── */
.web-splash-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, #0d5f35 0%, #073b20 50%, #041f11 100%);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.web-splash-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.web-splash-card {
  text-align: center;
  color: #ffffff;
  padding: 30px;
  max-width: 360px;
  animation: splashZoomIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.web-splash-logo-wrap {
  width: 90px;
  height: 90px;
  margin: 0 auto 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
}

.web-splash-title {
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 6px;
  letter-spacing: -0.5px;
}

.web-splash-sub {
  font-size: 14px;
  color: #a7f3d0;
  margin: 0 0 28px;
}

.web-splash-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.web-splash-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #34d399;
  border-radius: 50%;
  animation: splashSpin 0.75s linear infinite;
}

@keyframes splashSpin {
  to { transform: rotate(360deg); }
}

@keyframes splashZoomIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}



