/* ============================================================
   QuickMart Unified Responsive Stylesheet
   Desktop View: Matches Official E-Commerce Desktop Layout
   Mobile View: Matches Native Crimson-Red App Interface
   100% External CSS - Zero Inline Styles
   ============================================================ */

/* --- Custom Theme Variables --- */
:root {
  --brand-red: #b91428;
  --brand-red-dark: #970f20;
  --brand-green: #0c831f;
  --brand-green-hover: #086617;
  --brand-green-light: #e8f7ea;
  --brand-yellow: #f8cb46;
  --app-bg: #ffffff;
  --text-dark: #1f2937;
  --text-muted: #6b7280;
  --card-border: #f0f0f0;
  --mint-bundle-bg: #edf7f6;
  --purple-district: #6b21a8;
}

/* ================= SPLASH SCREEN ================= */
.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #ffffff;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.splash-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: splashPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.splash-logo {
  width: 150px;
  height: auto;
  max-width: 60vw;
  object-fit: contain;
  display: block;
}

.splash-brand-tag {
  font-size: 13.5px;
  font-weight: 600;
  color: #6b7280;
  letter-spacing: 0.5px;
  margin-top: 14px;
}

.splash-loader-bar {
  width: 120px;
  height: 3px;
  background-color: #f3f4f6;
  border-radius: 99px;
  overflow: hidden;
  margin-top: 16px;
  position: relative;
}

.splash-loader-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, #f97316, #ea580c);
  border-radius: 99px;
  animation: splashLoaderAnim 1.2s infinite ease-in-out;
}

@keyframes splashPop {
  0% { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes splashLoaderAnim {
  0% { left: -40%; width: 40%; }
  50% { left: 30%; width: 60%; }
  100% { left: 100%; width: 40%; }
}

.splash-fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* --- Global Settings --- */
html, body {
  background-color: var(--app-bg);
  font-family: 'Inter', system-ui, -apple-system, Roboto, "Segoe UI", sans-serif;
  color: var(--text-dark);
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

/* Hide scrollbars */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Text clamp for 2 lines */
.text-truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Responsive Visibility Helpers */
.main-app-container {
  padding-bottom: 2rem;
  padding-top: 0;
}

@media (min-width: 769px) {
  .mobile-only {
    display: none !important;
  }
  .main-app-container {
    padding-top: 1.5rem;
  }
}

@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }
}

/* ================= DESKTOP HEADER (CLEAN WHITE) ================= */
.desktop-site-header {
  background-color: #ffffff;
  border-bottom: none;
  position: sticky;
  top: 0;
  z-index: 1020;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.desktop-brand-title {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -1px;
  color: #111827;
  text-decoration: none;
}

.desktop-brand-logo {
  height: 64px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
  transition: transform 0.2s ease;
}

.desktop-brand-logo:hover {
  transform: scale(1.03);
}

.desktop-location-btn {
  cursor: pointer;
  user-select: none;
}

.desktop-address-truncate {
  max-width: 220px;
  font-weight: 400 !important;
}

.desktop-search-box {
  flex: 1;
  max-width: 820px;
  width: 100%;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  height: 50px;
}

.btn-desktop-account {
  font-weight: 700;
  font-size: 14px;
  color: #374151;
  cursor: pointer;
  user-select: none;
}

.btn-desktop-cart {
  background-color: #fe6b01;
  color: #ffffff;
  border: none;
  font-weight: 700;
  font-size: 14px;
  height: 48px;
  border-radius: 12px;
  padding: 0 20px;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 4px 14px rgba(254, 107, 1, 0.3);
  transition: background-color 0.2s, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-desktop-cart:hover {
  background-color: #e65100;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(254, 107, 1, 0.4);
}

/* ================= DESKTOP HERO BANNER ================= */
.desktop-hero-banner {
  background: linear-gradient(135deg, #fe6b01 0%, #ff7f24 45%, #e65100 100%);
  border-radius: 22px;
  overflow: hidden;
  color: #ffffff;
  box-shadow: 0 8px 26px rgba(254, 107, 1, 0.22);
}

.desktop-hero-title {
  font-size: 32px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.desktop-hero-subtitle {
  font-size: 15px;
  opacity: 0.95;
  max-width: 480px;
}

.btn-shop-now-hero {
  background-color: #ffffff;
  color: #fe6b01;
  font-weight: 800;
  font-size: 14px;
  border-radius: 10px;
  padding: 9px 26px;
  border: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.btn-shop-now-hero:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  color: #e65100;
}

.desktop-hero-img-box {
  width: 320px;
  aspect-ratio: 16 / 9;
  height: auto;
}

/* ================= DESKTOP 3 PROMOTIONAL CARDS ================= */
.desktop-promo-card {
  border-radius: 18px;
  overflow: hidden;
  padding: 16px;
  min-height: 170px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease;
  cursor: pointer;
}

.desktop-promo-card:hover {
  transform: translateY(-2px);
}

.promo-card-teal {
  background: linear-gradient(135deg, #00b4d8 0%, #0077b6 100%);
  color: #ffffff;
}

.promo-card-yellow {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #1f2937;
}

.promo-card-blue {
  background: linear-gradient(135deg, #cbd5e1 0%, #94a3b8 100%);
  color: #1e293b;
}

.desktop-promo-title {
  font-size: 17px;
  font-weight: 900;
  line-height: 1.2;
}

.desktop-promo-sub {
  font-size: 12px;
  opacity: 0.9;
}

.btn-promo-action {
  font-size: 12px;
  font-weight: 800;
  border-radius: 8px;
  padding: 6px 14px;
  border: none;
  cursor: pointer;
}

.btn-promo-white {
  background-color: #ffffff;
  color: #0077b6;
}

.btn-promo-dark {
  background-color: #1f2937;
  color: #ffffff;
}

.desktop-promo-img-box {
  width: 105px;
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
}

/* ================= DESKTOP 20-CATEGORY VISUAL GRID ================= */
.desktop-categories-wrapper {
  background-color: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.desktop-cat-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 12px;
}

.desktop-cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.desktop-cat-item:hover {
  transform: translateY(-3px);
}

.desktop-cat-thumb {
  width: 72px;
  aspect-ratio: 1 / 1;
  height: auto;
  background-color: transparent;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.desktop-cat-label {
  font-size: 11px;
  font-weight: 700;
  color: #374151;
  text-align: center;
  margin-top: 6px;
  line-height: 1.25;
  height: 28px;
}

/* ================= MOBILE HEADER (CRIMSON RED BRAND) ================= */
.mobile-header-red {
  background-color: var(--brand-red);
  position: sticky;
  top: 0;
  z-index: 1020;
  box-shadow: none !important;
  margin-bottom: 0 !important;
}

.brand-title-sub {
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.1px;
  line-height: 1.2;
}

.delivery-time-heading {
  font-size: 22px;
  font-weight: 900;
  line-height: 1.1;
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  color: #ffffff;
}

.delivery-time-number {
  font-size: 22px;
  font-weight: 900;
}

.delivery-time-unit {
  font-size: 21px;
  font-weight: 900;
}

.surge-badge {
  background-color: rgba(90, 16, 26, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 10px;
  font-weight: 600;
  color: #ffffff;
  padding: 2px 7px 2px 4px;
}

.surge-icon-dot {
  width: 13px;
  height: 13px;
  background-color: #06b6d4;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  color: #ffffff;
}

.header-wallet-circle {
  width: 38px;
  height: 38px;
  background-color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.15s ease;
  flex-shrink: 0;
  margin-bottom: 2px;
}

.header-wallet-circle:active {
  transform: scale(0.93);
}

.wallet-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 26px;
  margin-top: -3px;
}

.wallet-svg-graphic {
  width: 28px;
  height: 24px;
  display: block;
}

.wallet-amount-pill {
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #1e2025;
  border: 1px solid rgba(255, 255, 255, 0.85);
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 800;
  line-height: 1;
  padding: 1.5px 6px;
  border-radius: 9999px;
  letter-spacing: -0.2px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  z-index: 10;
}

.header-avatar-circle {
  width: 38px;
  height: 38px;
  background-color: #681119;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.header-avatar-circle:active {
  transform: scale(0.93);
}

.location-dropdown-trigger {
  cursor: pointer;
  user-select: none;
}

.address-truncate {
  max-width: 260px;
  font-size: 11.5px;
  line-height: 1.2;
}

.address-tag-bold {
  font-weight: 800;
  color: #ffffff;
}

.address-detail-light {
  font-weight: 400;
  color: #ffffff;
  opacity: 0.95;
}

.address-caret {
  font-size: 8px;
  color: #ffffff;
  opacity: 0.85;
  margin-left: 2px;
}

.header-search-container {
  max-width: 100%;
  width: 100%;
  margin-top: 6px;
  margin-bottom: 8px;
}

.mobile-search-box {
  background-color: #ffffff;
  height: 50px;
  border-radius: 12px;
  width: 100%;
}

.search-input-field,
.search-input-field:focus {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.search-box-icon-left,
.search-box-icon-right {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #334155;
}

.search-divider {
  width: 1px;
  height: 20px;
  background-color: #e2e8f0;
  margin: 0 6px;
  flex-shrink: 0;
}

/* Header Category Row on Red Background (border removed per request) */
.header-category-scroller {
  border-top: none !important;
  padding-top: 4px;
}

.cat-icon-box {
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 3px;
}

.cat-icon-box i {
  font-size: 20px;
  line-height: 1;
}

.header-cat-icon {
  width: 20px;
  height: 20px;
  display: block;
}

.header-cat-item {
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  user-select: none;
  font-size: 11px;
  font-weight: 600;
  position: relative;
  padding-bottom: 6px;
  text-align: center;
  transition: all 0.2s ease;
}

.header-cat-item:hover,
.header-cat-item.active {
  color: #ffffff;
}

.header-cat-item.active .cat-active-indicator {
  display: block;
}

.cat-active-indicator {
  display: none;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: #ffffff;
  border-radius: 3px;
}

.badge-cat-new {
  position: absolute;
  top: -6px;
  right: 2px;
  font-size: 8.5px;
  font-weight: 800;
  background-color: #be1226;
  color: #ffffff;
  border: 1px solid #ffffff;
  padding: 0 4px;
  border-radius: 9999px;
  line-height: 12px;
}

/* ================= MOBILE HERO BANNER (ANIMATED F1 KITKAT) ================= */
.kitkat-hero-banner {
  position: relative;
  width: 100%;
  height: auto; /* NO FIXED HEIGHT: fluid scaling across all devices */
  border-radius: 0 !important; /* Flat banner with no curve as requested */
  overflow: hidden;
  margin-top: 0 !important; /* Stuck flush to header with zero gap */
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-bottom: 14px;
  box-shadow: none !important;
  cursor: pointer;
  user-select: none;
  background-color: #db0e2b;
  transition: opacity 0.2s ease;
}

.kitkat-hero-banner:hover {
  transform: none !important;
}

.kitkat-hero-banner:active {
  opacity: 0.95;
}

.kitkat-base-img {
  width: 100%;
  height: auto !important; /* Preserves crisp natural ratio */
  display: block !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* 1. Diagonal Shimmer Glare Sweep Animation */
.kitkat-glare-sweep {
  position: absolute;
  top: 0;
  left: -150%;
  width: 70%;
  height: 100%;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255, 255, 255, 0.05) 30%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 255, 255, 0.05) 70%,
    transparent 100%
  );
  transform: skewX(-22deg);
  pointer-events: none;
  animation: kitkatGlareSweep 3.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes kitkatGlareSweep {
  0% {
    left: -120%;
  }
  38%, 100% {
    left: 210%;
  }
}

/* 2. Pulsing Glow on "NEW LAUNCH" Badge */
.kitkat-anim-badge {
  position: absolute;
  top: 7%;
  right: 4%;
  background: linear-gradient(90deg, #990014 0%, #e60026 100%);
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 10px rgba(230, 0, 38, 0.6);
  pointer-events: none;
  animation: kitkatBadgePulse 2s ease-in-out infinite;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
}

@keyframes kitkatBadgePulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.3), 0 0 12px rgba(230, 0, 38, 0.5);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.6), 0 0 20px rgba(230, 0, 38, 0.9);
  }
}

.sparkle-star {
  font-size: 10px;
  animation: starRotate 3s linear infinite;
  display: inline-block;
}

@keyframes starRotate {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.9; }
  50% { transform: scale(1.35) rotate(180deg); opacity: 1; }
}

/* 3. Racing Speed Lines */
.kitkat-speed-fx {
  position: absolute;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.85), transparent);
  border-radius: 2px;
  pointer-events: none;
  opacity: 0;
  animation: speedStreak 2.4s ease-in-out infinite;
  z-index: 1;
}

.kitkat-speed-fx.line-top {
  top: 34%;
  width: 90px;
  animation-delay: 0.2s;
}

.kitkat-speed-fx.line-mid {
  top: 52%;
  width: 140px;
  animation-delay: 0.8s;
}

.kitkat-speed-fx.line-bot {
  top: 72%;
  width: 110px;
  animation-delay: 1.4s;
}

@keyframes speedStreak {
  0% {
    transform: translateX(60px);
    opacity: 0;
  }
  25% {
    opacity: 0.95;
  }
  55% {
    transform: translateX(-140px);
    opacity: 0;
  }
  100% {
    transform: translateX(-140px);
    opacity: 0;
  }
}

/* 4. Chocolate F1 Car Spotlight Throttle Rev */
.kitkat-car-spotlight {
  position: absolute;
  top: 28%;
  right: 6%;
  width: 44%;
  height: 44%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.16) 0%, transparent 70%);
  pointer-events: none;
  animation: carEngineRev 1.6s ease-in-out infinite alternate;
  z-index: 1;
}

@keyframes carEngineRev {
  0% {
    transform: scale(0.94);
    opacity: 0.35;
  }
  100% {
    transform: scale(1.1);
    opacity: 0.75;
  }
}

/* ================= MOBILE FREQUENTLY BOUGHT SECTION ================= */
.frequently-bought-section {
  width: 100%;
}

.frequently-bought-title {
  font-size: 20px;
  font-weight: 800;
  color: #23272e;
  letter-spacing: -0.3px;
  margin-bottom: 12px;
}

.frequently-bundle-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.frequently-bundle-card {
  background-color: #eaf5f6;
  border-radius: 18px;
  padding: 10px 8px 12px 8px;
  cursor: pointer;
  user-select: none;
  border: none;
  box-shadow: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.frequently-bundle-card:hover {
  transform: translateY(-2px);
}

.frequently-bundle-card:active {
  transform: scale(0.98);
}

.bundle-thumbs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  align-items: center;
  width: 100%;
}

.bundle-thumb-sq {
  width: 100%;
  min-width: 0;
  aspect-ratio: 1 / 1;
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.bundle-thumb-sq img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  display: block;
  padding: 2px;
}

.bundle-thumb-sq.thumb-cover img {
  padding: 0;
  object-fit: cover;
}

.bundle-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #23272e;
  text-align: center;
  margin-top: 11px;
  line-height: 1.25;
  letter-spacing: -0.1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-see-all-products {
  background-color: #eaf5f6;
  border-radius: 14px;
  padding: 10px 16px;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  border: none;
  box-shadow: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn-see-all-products:hover {
  opacity: 0.94;
}

.btn-see-all-products:active {
  transform: scale(0.99);
}

.see-all-cluster {
  display: flex;
  align-items: center;
  justify-content: center;
}

.see-all-stack-img {
  height: 28px;
  width: auto;
  object-fit: contain;
  display: block;
}

.see-all-text {
  font-size: 15.5px;
  font-weight: 700;
  color: #2c3f76;
  letter-spacing: -0.2px;
}

.see-all-caret {
  width: 9px;
  height: 9px;
  fill: #2c3f76;
  flex-shrink: 0;
  margin-left: 2px;
}

/* ================= MOBILE FEATURED THIS WEEK ================= */
.featured-week-section {
  width: 100%;
}

.featured-week-title {
  font-size: 20px;
  font-weight: 800;
  color: #23272e;
  letter-spacing: -0.3px;
  margin-bottom: 12px;
}

.featured-cards-scroller {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
}

.featured-banner-item {
  flex-shrink: 0;
  width: 205px; /* Generous width so promotional text and graphics render big and crystal clear */
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
}

.featured-banner-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.featured-banner-item:active {
  transform: scale(0.98);
}

.featured-banner-img {
  width: 100%;
  height: auto !important; /* Preserves crisp natural high-res ratio */
  object-fit: cover;
  display: block;
  border-radius: 18px;
  image-rendering: -webkit-optimize-contrast;
}

.featured-card-title {
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

/* ================= EVERYDAY ESSENTIALS PRODUCT GRID ================= */
.product-card {
  display: flex !important;
  flex-direction: column !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08) !important;
}

.product-card .card {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  height: 100% !important;
  border-radius: 16px !important;
  border: 1px solid #eef0f3 !important;
  padding: 10px !important;
  background: #ffffff !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03) !important;
}

.product-img-box {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  height: auto !important; /* Strictly fluid square box that scales across all devices */
  background-color: #f8fafc !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  position: relative !important;
  margin-bottom: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.product-img-box img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 10px !important;
  image-rendering: -webkit-optimize-contrast;
}

.product-time-badge {
  font-size: 8.5px !important;
  font-weight: 800 !important;
  background-color: rgba(255, 255, 255, 0.95) !important;
  padding: 3px 6px !important;
  border-radius: 6px !important;
}

.product-discount-badge {
  font-size: 8.5px !important;
  font-weight: 700 !important;
  padding: 3px 6px !important;
  border-radius: 6px !important;
}

.product-unit {
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #64748b !important;
  height: 16px !important;
  line-height: 16px !important;
  margin-bottom: 4px !important;
  display: block !important;
}

.product-title {
  font-size: 12.5px !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  line-height: 1.25 !important;
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  margin-bottom: 6px !important;
}

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

.product-btn-wrapper {
  min-width: 68px;
  height: 32px;
}

/* Helper Utilities for perfect line clamping and text sizing */
.fs-8 {
  font-size: 10px !important;
}

.text-truncate-2 {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.btn-add {
  cursor: pointer;
  user-select: none;
  font-weight: 800;
}

.qty-counter-box {
  display: none;
  animation: popIn 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
  0% { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* ================= FLOATING BOTTOM CART BAR (MOBILE ONLY) ================= */
.floating-cart-bar {
  display: none;
  position: fixed;
  bottom: 66px;
  left: 14px;
  right: 14px;
  background-color: var(--brand-green);
  z-index: 1010;
  cursor: pointer;
  user-select: none;
  animation: slideUpFloat 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.15);
}

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

/* ================= NATIVE MOBILE BOTTOM NAVIGATION ================= */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 56px;
  background-color: #ffffff;
  border-top: 1px solid #f1f2f4;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.03);
}

.nav-item-mobile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  flex: 1;
  height: 100%;
  padding-top: 2px;
  transition: transform 0.1s ease;
}

.nav-item-mobile:active {
  transform: scale(0.95);
}

.nav-active-indicator {
  display: none;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 34px;
  height: 3px;
  background-color: #1a1a1a;
  border-radius: 0 0 3px 3px;
}

.nav-item-mobile.active .nav-active-indicator {
  display: block;
}

.nav-custom-icon {
  height: 25px;
  width: auto;
  max-width: 28px;
  object-fit: contain;
  display: block;
  margin-bottom: 3px;
}

.nav-item-mobile span {
  font-size: 11px;
  font-weight: 600;
  color: #5c6577;
  line-height: 1.1;
  letter-spacing: -0.1px;
}

.nav-item-mobile.active span {
  color: #1a1a1a;
  font-weight: 800;
}

.nav-item-district {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.district-badge-img {
  height: 38px;
  width: auto;
  max-width: 62px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 5px rgba(115, 39, 229, 0.25));
  transition: transform 0.15s ease;
}

.nav-item-district:active .district-badge-img {
  transform: scale(0.95);
}

/* ================= SLIDE-UP BOTTOM SHEET DRAWER (CART) ================= */
.custom-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.custom-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

.bottom-sheet-drawer {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 100%);
  width: 100%;
  max-width: 480px;
  background-color: #ffffff;
  border-radius: 24px 24px 0 0;
  max-height: 85vh;
  z-index: 1060;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
}

.bottom-sheet-drawer.show {
  transform: translate(-50%, 0);
}

.sheet-handle-pill {
  width: 40px;
  height: 4px;
  background-color: #d1d5db;
  border-radius: 4px;
  margin: 10px auto 4px auto;
  cursor: pointer;
}

.drawer-img {
  width: 46px;
  height: 46px;
  background-color: #f9fafb;
}

.drawer-item-title {
  max-width: 170px;
}

.drawer-item-unit {
  font-size: 11px;
}

.tip-pill {
  cursor: pointer;
  user-select: none;
}

.tip-pill.active {
  background-color: var(--brand-green-light) !important;
  border-color: var(--brand-green) !important;
  color: var(--brand-green) !important;
  font-weight: 800 !important;
}

.btn-proceed-pay {
  background-color: var(--brand-green) !important;
  cursor: pointer;
}
.btn-proceed-pay:hover {
  background-color: var(--brand-green-hover) !important;
}

/* ================= LOCATION MODAL ================= */
.location-modal-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1070;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.location-modal-container.show {
  display: flex;
}

.location-card {
  background-color: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 400px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  animation: modalPop 0.2s ease;
}

@keyframes modalPop {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.location-option {
  cursor: pointer;
  user-select: none;
}

/* ================= ORDER SUCCESS SCREEN ================= */
.order-success-screen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #fff;
  z-index: 2000;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  overflow: hidden;
}

.order-success-screen.show {
  display: flex;
}

.rider-avatar {
  width: 90px;
  height: 90px;
  background-color: var(--brand-green-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  animation: bounceRider 1.4s infinite alternate;
}

@keyframes bounceRider {
  0% { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}

.order-success-desc {
  max-width: 320px;
}

#close-order-btn {
  background-color: var(--brand-green) !important;
  border-color: var(--brand-green) !important;
}

/* Falling Confetti */
.confetti-box {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.confetti-bit {
  position: absolute;
  width: 8px;
  height: 14px;
  background-color: #f8cb46;
  opacity: 0.8;
  animation: fallConfetti 3s linear infinite;
}

.confetti-bit:nth-child(1) { left: 10%; animation-delay: 0s; background-color: #0c831f; }
.confetti-bit:nth-child(2) { left: 20%; animation-delay: 0.5s; background-color: #ef4444; }
.confetti-bit:nth-child(3) { left: 35%; animation-delay: 1.2s; background-color: #3b82f6; }
.confetti-bit:nth-child(4) { left: 50%; animation-delay: 0.2s; background-color: #f59e0b; }
.confetti-bit:nth-child(5) { left: 65%; animation-delay: 0.8s; background-color: #8b5cf6; }
.confetti-bit:nth-child(6) { left: 80%; animation-delay: 1.5s; background-color: #10b981; }
.confetti-bit:nth-child(7) { left: 90%; animation-delay: 0.3s; background-color: #ec4899; }
.confetti-bit:nth-child(8) { left: 15%; animation-delay: 1.8s; background-color: #0c831f; }
.confetti-bit:nth-child(9) { left: 45%; animation-delay: 2.1s; background-color: #f8cb46; }
.confetti-bit:nth-child(10) { left: 75%; animation-delay: 2.4s; background-color: #ef4444; }

@keyframes fallConfetti {
  0% { transform: translateY(-20px) rotate(0deg); }
  100% { transform: translateY(100vh) rotate(720deg); }
}

/* ================= DESKTOP FOOTER ================= */
.desktop-footer {
  background-color: #f8fafc;
  border-top: 1px solid #e2e8f0;
  color: #475569;
}

.desktop-footer-title {
  font-size: 15px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 14px;
}

.desktop-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.desktop-footer-links li {
  margin-bottom: 8px;
}

.desktop-footer-links a {
  color: #64748b;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

.desktop-footer-links a:hover {
  color: #0c831f;
}

.desktop-app-badge {
  height: 38px;
  border-radius: 8px;
}

.desktop-social-icon {
  width: 36px;
  height: 36px;
  background-color: #1e293b;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 14px;
  transition: opacity 0.2s;
}

.desktop-social-icon:hover {
  opacity: 0.85;
  color: #ffffff;
}

/* ================= Search Bar Upward Marquee / Sliding Placeholder ================= */
.search-marquee-wrapper {
  position: absolute;
  left: 46px;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  height: 24px;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.search-marquee-mobile {
  left: 44px;
  right: 44px;
}

.search-marquee-track {
  display: flex;
  flex-direction: column;
  animation: marqueeSlideUp 14s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.search-marquee-item {
  height: 24px;
  line-height: 24px;
  font-size: 13px;
  color: #94a3b8;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

/* Smooth Pause & Upward Slide Keyframes */
@keyframes marqueeSlideUp {
  0%, 11%   { transform: translateY(0); }
  14%, 25%  { transform: translateY(-24px); }
  28%, 39%  { transform: translateY(-48px); }
  42%, 53%  { transform: translateY(-72px); }
  56%, 67%  { transform: translateY(-96px); }
  70%, 81%  { transform: translateY(-120px); }
  85%, 96%  { transform: translateY(-144px); }
  100%      { transform: translateY(-144px); }
}

/* Hide marquee when user focuses or has text */
.search-input-field:focus ~ .search-marquee-wrapper,
.search-input-field.has-value ~ .search-marquee-wrapper {
  opacity: 0 !important;
  visibility: hidden !important;
}

/* ================= MOBILE CELEBRATE GANESH CHATURTHI ================= */
.ganesh-chaturthi-section {
  width: 100%;
}

.ganesh-festive-card {
  background: linear-gradient(180deg, #fff9ed 0%, #fef3df 100%);
  border: 1px solid #f6e2c2;
  border-radius: 20px;
  overflow: hidden;
  padding-bottom: 12px;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.08);
}

.ganesh-header-box {
  width: 100%;
  overflow: hidden;
  background-color: #fcedd8;
}

.ganesh-header-img {
  width: 100%;
  height: auto;
  display: block;
}

.ganesh-tabs-scroller {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 6px 10px 0 10px;
  align-items: flex-end;
  position: relative;
  z-index: 1;
}

.ganesh-tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
  min-width: 66px;
  max-width: 72px;
  padding: 6px 4px 6px 4px;
  cursor: pointer;
  user-select: none;
  border-radius: 14px 14px 0 0;
  border: 1.5px solid transparent;
  border-bottom: none;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.ganesh-tab-item:active {
  transform: scale(0.96);
}

.ganesh-tab-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #ecd9ba; /* Warm tan circular disc matching reference screenshot */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(180, 83, 9, 0.08);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.ganesh-tab-icon-box img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}

.ganesh-tab-text {
  font-size: 10px;
  font-weight: 600;
  color: #4a2810;
  margin-top: 5px;
  text-align: center;
  line-height: 1.15;
  white-space: normal;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  transition: all 0.2s ease;
}

/* Selected Tab: Arched white container with gold border outline */
.ganesh-tab-item.active {
  background-color: #ffffff;
  border: 1.5px solid #d49a5b;
  border-bottom: 2px solid #ffffff;
  box-shadow: 0 -3px 10px rgba(212, 154, 91, 0.16);
  margin-bottom: -1px;
  padding: 8px 6px 8px 6px;
  z-index: 2;
}

.ganesh-tab-item.active .ganesh-tab-icon-box {
  background-color: transparent;
  box-shadow: none;
  transform: scale(1.06);
}

.ganesh-tab-item.active .ganesh-tab-text {
  color: #873800;
  font-weight: 800;
  font-size: 10.5px;
}

.ganesh-products-scroller {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.ganesh-prod-card {
  min-width: 144px;
  max-width: 144px;
  height: 295px;
  min-height: 295px;
  max-height: 295px;
  background-color: #ffffff;
  border-radius: 14px;
  border: 1px solid #f3e5cb;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.ganesh-prod-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto !important; /* NO FIXED HEIGHT: fluid square box that scales across all devices */
  background-color: #ffffff;
  position: relative;
  overflow: hidden;
}

.ganesh-prod-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  image-rendering: -webkit-optimize-contrast;
}

.ganesh-wishlist-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  color: #ef4444;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  cursor: pointer;
}

.ganesh-prod-body {
  padding: 8px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ganesh-unit {
  font-size: 11px;
  font-weight: 500;
  color: #6b7280;
}

.ganesh-add-btn {
  background-color: #ffffff;
  color: #0c831f;
  border: 1px solid #0c831f;
  font-weight: 700;
  font-size: 11px;
  padding: 2px 14px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ganesh-add-btn:hover {
  background-color: #0c831f;
  color: #ffffff;
}

.ganesh-price-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 2px;
}

.ganesh-price {
  font-size: 14.5px;
  font-weight: 800;
  color: #111827;
}

.ganesh-price.price-highlight {
  background-color: #fef08a;
  padding: 0 3px;
  border-radius: 3px;
}

.ganesh-mrp {
  font-size: 11px;
  color: #9ca3af;
  text-decoration: line-through;
}

.ganesh-discount-tag {
  font-size: 10px;
  font-weight: 700;
  color: #2563eb;
  line-height: 1.2;
}

.ganesh-prod-title {
  font-size: 11.5px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.25;
  margin-top: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 29px;
}

.ganesh-chips-row {
  display: flex;
  gap: 4px;
  margin-top: 4px;
}

.ganesh-chip {
  font-size: 9.5px;
  background-color: #fef3c7;
  color: #92400e;
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 600;
}

.ganesh-eco-tag {
  font-size: 9.5px;
  background-color: #fef9c3;
  color: #854d0e;
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 600;
  margin-top: 3px;
  display: inline-block;
  width: fit-content;
}

.ganesh-delivery-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: #4b5563;
  font-weight: 600;
  margin-top: 5px;
}

.ganesh-stock {
  background-color: #fee2e2;
  color: #b91c1c;
  padding: 0 4px;
  border-radius: 3px;
  font-size: 9px;
}

.ganesh-more-link {
  font-size: 10px;
  color: #059669;
  font-weight: 600;
  text-decoration: none;
  margin-top: 6px;
  display: block;
}

.ganesh-see-all-bar {
  background-color: #ffffff;
  border-radius: 12px;
  margin: 10px 8px 0;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  user-select: none;
  transition: opacity 0.15s ease;
}

.ganesh-see-all-bar:active {
  opacity: 0.9;
}

.ganesh-see-all-stack-img {
  height: 24px;
  width: auto;
  object-fit: contain;
}

.ganesh-see-all-text {
  font-size: 13.5px;
  font-weight: 700;
  color: #2c3f76;
}

/* ================= MOBILE 20 CATEGORIES GRID ================= */
.mobile-categories-section {
  width: 100%;
}

.mobile-categories-title {
  font-size: 20px;
  font-weight: 800;
  color: #23272e;
  letter-spacing: -0.3px;
  margin-bottom: 12px;
}

.mobile-categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px 8px;
  padding: 4px 0;
}

.mobile-cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  user-select: none;
  transition: transform 0.15s ease;
}

.mobile-cat-card:hover {
  transform: translateY(-2px);
}

.mobile-cat-card:active {
  transform: scale(0.95);
}

.mobile-cat-img-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto !important; /* NO FIXED HEIGHT: fluid square box */
  background-color: transparent;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: transform 0.15s ease;
}

.mobile-cat-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  image-rendering: -webkit-optimize-contrast;
}

.mobile-cat-label {
  font-size: 11.5px;
  font-weight: 600;
  color: #23272e;
  margin-top: 6px;
  line-height: 1.25;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 29px;
  padding: 0 2px;
}

/* ================= EVERYDAY ESSENTIALS TITLE ================= */
.everyday-essentials-title {
  font-size: 18px;
  font-weight: 800;
  color: #23272e;
  letter-spacing: -0.3px;
}

.essentials-delivery-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 4px 10px;
}

@media (min-width: 769px) {
  .everyday-essentials-title {
    font-size: 22px;
  }
}

/* ============================================================
   CATEGORY PRODUCT LISTING PAGE (DUAL PANE PLP SCREEN)
   ============================================================ */
.category-plp-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1045;
  background-color: #ffffff;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.category-plp-screen.show {
  display: flex !important;
  animation: plpSlideIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.plp-top-header {
  background-color: #ffffff;
  padding: 10px 14px;
  border-bottom: 1px solid #f1f3f5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  z-index: 10;
}

.plp-back-btn {
  font-size: 20px;
  color: #1e293b;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.plp-back-btn:active {
  transform: scale(0.92);
}

#plp-category-title {
  font-size: 16px;
  font-weight: 800;
  color: #1e293b;
  margin: 0;
  line-height: 1.2;
}

#plp-location-sub {
  font-size: 11px;
  color: #64748b;
  line-height: 1.2;
}

.plp-filter-bar {
  display: flex;
  gap: 8px;
  padding: 8px 12px;
  background: #ffffff;
  border-bottom: 1px solid #f1f3f5;
  overflow-x: auto;
  flex-shrink: 0;
  white-space: nowrap;
}

.plp-filter-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  font-size: 11.5px;
  font-weight: 600;
  color: #475569;
  background: #ffffff;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
}

.plp-filter-pill.active {
  border-color: #0c831f;
  color: #0c831f;
  background: #f0fdf4;
  font-weight: 700;
}

.plp-body-split {
  display: flex;
  flex: 1;
  overflow: hidden;
  height: calc(100vh - 98px);
}

/* Left Subcategory Rail */
.plp-subcat-rail {
  width: 82px;
  min-width: 82px;
  max-width: 82px;
  background-color: #f8fafc;
  border-right: 1px solid #e2e8f0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding-bottom: 80px;
}

.plp-subcat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 4px 12px 4px;
  cursor: pointer;
  position: relative;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.15s ease;
  user-select: none;
}

.plp-subcat-item.active {
  background: #ffffff;
}

.plp-subcat-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 4px;
  background: #0c831f;
  border-radius: 0 4px 4px 0;
}

.plp-subcat-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  background: #edf2f7;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: transform 0.15s;
  padding: 0;
}

.plp-subcat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.plp-subcat-item.active .plp-subcat-avatar {
  border: 2px solid #0c831f;
  box-shadow: 0 0 0 2px rgba(12, 131, 31, 0.15);
}

.plp-subcat-label {
  font-size: 10px;
  font-weight: 600;
  color: #475569;
  text-align: center;
  margin-top: 5px;
  line-height: 1.2;
  word-break: break-word;
  max-width: 72px;
}

.plp-subcat-item.active .plp-subcat-label {
  color: #0c831f;
  font-weight: 800;
}

/* Right Products Pane */
.plp-products-pane {
  flex: 1;
  overflow-y: auto;
  padding: 10px 10px 100px 10px;
  background: #ffffff;
}

.plp-banner-header {
  font-size: 13.5px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.plp-banner-count {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
}

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

.plp-prod-card {
  background: #ffffff;
  border: 1px solid #eef0f3;
  border-radius: 12px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  transition: transform 0.15s;
}

.plp-prod-img-box {
  width: 100%;
  height: 112px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.plp-prod-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.plp-time-badge {
  position: absolute;
  bottom: 4px;
  left: 4px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 8.5px;
  font-weight: 700;
  color: #334155;
  padding: 2px 5px;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 2px;
}

.plp-stock-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  background: #dc2626;
  color: #ffffff;
  font-size: 8px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 3px;
}

.plp-discount-tag {
  position: absolute;
  top: 4px;
  left: 4px;
  background: #2563eb;
  color: #ffffff;
  font-size: 8px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 3px;
}

.plp-wishlist-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #94a3b8;
  cursor: pointer;
  transition: color 0.15s;
}

.plp-wishlist-btn.active {
  color: #dc2626;
}

.plp-unit {
  font-size: 10.5px;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 2px;
}

.plp-title {
  font-size: 11.5px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.25;
  height: 29px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
}

.plp-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.plp-price-wrap {
  display: flex;
  flex-direction: column;
}

.plp-price {
  font-size: 13px;
  font-weight: 800;
  color: #111827;
}

.plp-mrp {
  font-size: 10px;
  color: #94a3b8;
  text-decoration: line-through;
}

.plp-btn-wrapper {
  position: relative;
  width: 62px;
  height: 30px;
}

.plp-add-btn {
  width: 100%;
  height: 100%;
  border: 1px solid #0c831f;
  background: #f0fdf4;
  color: #0c831f;
  font-weight: 800;
  font-size: 11px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.plp-add-btn:active {
  transform: scale(0.95);
}

.plp-qty-box {
  width: 100%;
  height: 100%;
  background: #0c831f;
  color: #ffffff;
  border-radius: 6px;
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
}

.plp-qty-btn {
  border: none;
  background: transparent;
  color: #ffffff;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
}

.plp-qty-num {
  font-size: 11.5px;
  font-weight: 700;
}

/* ============================================================
   NATIVE CHECKOUT SCREEN (BLINKIT MATCHING LAYOUT)
   ============================================================ */
.checkout-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1050;
  background-color: #f4f6f8;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.checkout-screen.show {
  display: flex !important;
  animation: checkoutSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.checkout-top-header {
  background-color: #ffffff;
  padding: 12px 16px;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  z-index: 10;
}

.checkout-back-btn {
  font-size: 20px;
  color: #1e293b;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.checkout-scroll-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 12px 140px 12px;
}

.checkout-card {
  background: #ffffff;
  border: 1px solid #eaedf0;
  border-radius: 14px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  margin-bottom: 12px;
  overflow: hidden;
}

/* Cart Items in Checkout */
.checkout-cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
}

.checkout-cart-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.checkout-cart-item:first-child {
  padding-top: 0;
}

.checkout-cart-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f8fafc;
}

.checkout-cart-info {
  flex: 1;
  padding: 0 10px;
}

.checkout-cart-title {
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.25;
}

.checkout-cart-unit {
  font-size: 10px;
  color: #64748b;
  margin-top: 2px;
}

.checkout-cart-price {
  font-size: 12.5px;
  font-weight: 800;
  color: #111827;
  margin-top: 2px;
}

.checkout-cart-mrp {
  font-size: 10px;
  color: #94a3b8;
  text-decoration: line-through;
  margin-left: 4px;
}

.checkout-stepper-box {
  display: inline-flex;
  align-items: center;
  background: #0c831f;
  color: #ffffff;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  gap: 8px;
}

.checkout-stepper-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

/* Recommendations Row */
.recommendations-scroll-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.rec-prod-card {
  transition: transform 0.15s ease;
}

.rec-prod-card:active {
  transform: scale(0.97);
}

.rec-heart-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(255, 255, 255, 0.85);
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #64748b;
  cursor: pointer;
}

/* Bill Details & Blue Savings Strip */
.savings-blue-strip {
  background-color: #e0f2fe;
  color: #0369a1;
  padding: 8px 14px;
  border-top: 1px dashed #bae6fd;
}

/* Delivery Instructions Card */
.delivery-inst-card {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
}

.delivery-inst-card.active {
  border-color: #0c831f !important;
  background-color: #f0fdf4 !important;
}

/* Feeding India & Tip Pills */
.donation-pill {
  border-radius: 8px;
  font-weight: 700;
  font-size: 12px;
  padding: 5px 12px;
  cursor: pointer;
  transition: all 0.15s;
}

.donation-pill.active {
  background-color: #0c831f !important;
  color: #ffffff !important;
  border-color: #0c831f !important;
}

.tip-pill {
  border-radius: 8px;
  font-weight: 700;
  font-size: 11.5px;
  padding: 5px 10px;
  cursor: pointer;
  transition: all 0.15s;
}

.tip-pill.active {
  background-color: #0c831f !important;
  color: #ffffff !important;
  border-color: #0c831f !important;
}

/* Sticky Bottom Checkout Bar */
.checkout-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  padding: 10px 14px;
  z-index: 1055;
}

.place-order-cta-btn {
  background-color: #0c831f !important;
  color: #ffffff !important;
  border-radius: 10px !important;
  border: none !important;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease;
  height: 48px;
}

.place-order-cta-btn:hover {
  background-color: #086617 !important;
}

.place-order-cta-btn:active {
  transform: scale(0.98);
}

/* ============================================================
   BANNER SCROLLER (MINIMALIST SPF 50 & PROMOTIONS)
   ============================================================ */
.spotlight-banner-scroller {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 2px 18px 2px;
  margin-bottom: 18px;
}

.spotlight-banner-card {
  min-width: 86vw;
  max-width: 440px;
  flex-shrink: 0;
  scroll-snap-align: center;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  user-select: none;
  transition: transform 0.15s ease;
}

.spotlight-banner-card:active {
  transform: scale(0.98);
}

.spotlight-banner-card.minimalist-card {
  background: linear-gradient(135deg, #f8f9fa 0%, #eceff2 100%);
  border: 1px solid #e2e8f0;
}

.spotlight-banner-card.summer-fresh-card {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1px solid #bbf7d0;
}

.spotlight-banner-card.snack-fest-card {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border: 1px solid #fed7aa;
}

.spotlight-banner-title {
  font-size: 20px;
  font-weight: 900;
  line-height: 1.18;
  color: #111827;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.spotlight-banner-sub {
  font-size: 12.5px;
  color: #475569;
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 16px;
}

.btn-spotlight-shop {
  background-color: #0f172a;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 8px;
  padding: 8px 20px;
  border: none;
  display: inline-block;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
  transition: transform 0.15s ease;
}

.btn-spotlight-shop:active {
  transform: scale(0.95);
}

.spotlight-brand-tag {
  font-size: 12.5px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: 0.2px;
  margin-bottom: 6px;
  text-align: right;
}

.spotlight-banner-img-box {
  width: 140px;
  height: 135px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.spotlight-banner-img-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.spotlight-ad-badge {
  position: absolute;
  bottom: 8px;
  right: 10px;
  background-color: #64748b;
  color: #ffffff;
  font-size: 8.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: 0.3px;
}

/* ============================================================
   STORES IN SPOTLIGHT & PICKS FOR YOUR LIFESTYLE
   ============================================================ */
.section-spotlight-title {
  font-size: 20px;
  font-weight: 900;
  color: #111827;
  letter-spacing: -0.4px;
  margin-bottom: 12px;
}

.stores-spotlight-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 26px;
}

.store-spotlight-card {
  height: 146px;
  border-radius: 18px;
  padding: 10px 8px 8px 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  transition: transform 0.15s ease;
}

.store-spotlight-card:hover {
  transform: translateY(-2px);
}

.store-spotlight-card:active {
  transform: scale(0.95);
}

.store-spotlight-label {
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.25;
  height: 30px;
  z-index: 2;
  margin-top: 2px;
  margin-left: 2px;
}

.store-spotlight-img-box {
  width: 100%;
  height: 96px;
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  border-radius: 12px;
}

.store-spotlight-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  transition: transform 0.2s ease;
}

.store-spotlight-card:hover .store-spotlight-img-box img {
  transform: scale(1.05);
}

/* Lifestyle Picks 4x2 Grid */
.lifestyle-picks-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px 8px;
  margin-bottom: 26px;
}

.lifestyle-pick-card {
  height: 142px;
  border-radius: 18px;
  padding: 10px 8px 8px 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  transition: transform 0.15s ease;
}

.lifestyle-pick-card:hover {
  transform: translateY(-2px);
}

.lifestyle-pick-card:active {
  transform: scale(0.95);
}

.lifestyle-pick-label {
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  height: 28px;
  z-index: 2;
  margin-top: 2px;
  margin-left: 2px;
  display: flex;
  align-items: flex-start;
}

.lifestyle-pick-img-box {
  width: 100%;
  height: 88px;
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  border-radius: 12px;
}

.lifestyle-pick-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  transition: transform 0.2s ease;
}

.lifestyle-pick-card:hover .lifestyle-pick-img-box img {
  transform: scale(1.05);
}

/* Sunscreen Sponsored Shelf */
.sunscreen-sponsored-title {
  font-size: 19px;
  font-weight: 900;
  color: #111827;
  letter-spacing: -0.3px;
  margin-bottom: 0;
}

.sunscreen-sponsored-sub {
  font-size: 11.5px;
  color: #64748b;
  font-weight: 600;
  letter-spacing: 0.2px;
  margin-bottom: 12px;
  text-transform: capitalize;
}

.sunscreen-products-scroller {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 14px;
  align-items: stretch;
}

.sunscreen-prod-card {
  width: 148px;
  min-width: 148px;
  max-width: 148px;
  height: 244px;
  flex-shrink: 0;
  background: #ffffff;
  border: 1px solid #eef0f3;
  border-radius: 14px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.sunscreen-img-box {
  width: 100%;
  height: 110px;
  min-height: 110px;
  border-radius: 10px;
  overflow: hidden;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  position: relative;
}

.sunscreen-img-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.sunscreen-rating {
  font-size: 9.5px;
  font-weight: 700;
  color: #d97706;
  margin-bottom: 2px;
}

.sunscreen-title {
  font-size: 11.5px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.25;
  height: 32px;
  min-height: 32px;
  max-height: 32px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}
