/* ANTIGRAVITY v3: Vivid Nature (Traditional + Modern) */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,700;1,300&family=Poppins:wght@400;500;600;800&display=swap');
@import url('style-socials.css');
@import url('style-auth.css?v=1716002');


:root {
  /* Vibrant "Fresh Harvest" Palette */
  --primary: #43a047;
  /* Rich Green */
  --primary-light: #76d275;
  /* Bright Sprout */
  --primary-dark: #2e7d32;
  --accent: #ff9800;
  /* Golden Harvest */
  --accent-pop: #ff5722;
  /* Alert/Sale */
  --bg-color: #f1f8e9;
  /* Very light green tint */
  --card-bg: #ffffff;

  /* Modern Elements */
  --glass: rgba(255, 255, 255, 0.9);
  --glass-stroke: rgba(255, 255, 255, 0.5);
  --shadow-float: 0 15px 35px rgba(46, 125, 50, 0.15);
  --shadow-deep: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --neumorph: 8px 8px 16px #d1d9ce, -8px -8px 16px #ffffff;

  --radius-lg: 30px;
  --radius-sm: 12px;

  /* Fonts */
  --font-head: 'Merriweather', serif;
  /* Traditional touch */
  --font-body: 'Poppins', sans-serif;
  /* Modern feel */

  --ease-elastic: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

html {
  font-size: 95%;
  /* Global Scale Down (5% reduction) */
  width: 100%;
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  background-color: var(--bg-color);
  /* Subtle traditional pattern overlay */
  background-image:
    radial-gradient(var(--primary-light) 0.5px, transparent 0.5px),
    radial-gradient(var(--primary-light) 0.5px, var(--bg-color) 0.5px);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
  font-family: var(--font-body);
  color: #1a1a1a;
  overflow-x: hidden;
}

/* --- ANIMATIONS --- */
@keyframes floatY {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

@keyframes floatX {

  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(5px);
  }
}

@keyframes scrollLeft {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-100%);
  }
}

.animate-float {
  animation: floatY 6s ease-in-out infinite;
}

.animate-delay-1 {
  animation-delay: 1s;
}

/* MARQUEE */
.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  padding: 40px 0;
  background: white;
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
  display: inline-flex;
  gap: 30px;
  animation: scrollLeft 30s linear infinite;
}

.marquee-content:hover {
  animation-play-state: paused;
}

.usage-card {
  background: #f1f8e9;
  border-radius: 20px;
  padding: 20px 25px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: 0.3s;
}

.usage-card:hover {
  transform: translateY(-5px);
  background: #e8f5e9;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.usage-icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.usage-title {
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.usage-sub {
  font-size: 0.85rem;
  color: #666;
  white-space: normal;
}


/* --- TYPOGRAPHY & BUTTONS --- */
h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-head);
  margin: 0;
  color: var(--primary-dark);
}

a {
  text-decoration: none;
  color: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #ffffff !important;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 10px 20px rgba(67, 160, 71, 0.3);
  transition: transform 0.3s var(--ease-elastic), box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
}

/* --- GLOBAL MOBILE APP OVERRIDES --- */
@media (max-width: 767px) {
  body {
    padding-bottom: calc(70px + env(safe-area-inset-bottom)) !important;
    overflow-x: hidden !important;
  }
}

.bottom-nav {
  display: none;
}

@media (max-width: 767px) {
  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: calc(65px + env(safe-area-inset-bottom));
    background: white;
    border-top: 1px solid #eee;
    z-index: 5000;
    justify-content: space-around;
    align-items: center;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
  }

  .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #666;
    flex: 1;
    min-width: 44px;
    min-height: 44px;
    transition: 0.2s;
  }

  .bottom-nav-item i,
  .bottom-nav-item svg {
    width: 24px;
    height: 24px;
    margin-bottom: 2px;
  }

  .nav-label {
    font-size: 0.65rem;
    font-weight: 600;
  }

  .bottom-nav-item:active {
    transform: scale(0.9);
    color: var(--primary);
  }

  /* Center FAB styles removed */

  .cart-badge-bottom {
    position: absolute;
    top: -5px;
    right: -10px;
    background: #ff4757;
    color: white;
    font-size: 0.6rem;
    font-weight: 800;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* SIDEBAR HIDING ON SHOP PAGE (App Style) */
  .filter-sidebar {
    display: none !important;
  }

  /* Floating Filter button for mobile */
  .mobile-filter-trigger {
    display: flex !important;
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 4000;
    align-items: center;
    justify-content: center;
    border: none;
    transition: 0.3s;
  }

  .mobile-filter-trigger:active {
    transform: scale(0.9);
  }

  .shop-layout {
    display: block !important;
    padding: 0 !important;
  }

  /* CARD BASED PRODUCT DISPLAY */
  .shop-grid-view {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    padding: 12px !important;
    width: 100% !important;
    margin-top: 64px !important;
  }

  .card {
    border-radius: 20px !important;
    /* Heavily rounded */
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
    border: 1px solid rgba(0, 0, 0, 0.03) !important;
    background: white !important;
    padding: 0 !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
  }

  .card:active {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
  }

  .card-img-box {
    height: 160px !important;
    border-radius: 0 !important;
    position: relative;
  }

  /* Quick Add (+) Floating Button on Card */
  .quick-add-float {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 5;
    font-size: 1.4rem;
    font-weight: bold;
    border: none;
    transition: 0.2s;
  }

  .quick-add-float:active {
    transform: scale(0.8);
    background: var(--primary);
    color: white;
  }

  .card-content {
    padding: 12px !important;
  }

  .card-title {
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    margin-bottom: 4px !important;
    color: var(--text-dark) !important;
  }

  .card-desc {
    display: none !important;
    /* Cleaner app look */
  }

  .add-cart-btn {
    display: none !important;
    /* Replaced by Quick Add float + Bottom Action */
  }

  .card-controls {
    padding: 0 !important;
  }

  .size-select {
    width: 100% !important;
    border: none !important;
    background: #f5f5f5 !important;
    font-size: 0.8rem !important;
    padding: 6px !important;
    border-radius: 8px !important;
    margin-bottom: 8px !important;
  }

  .price-box {
    justify-content: space-between !important;
    align-items: center !important;
  }

  .shop-layout {
    display: block !important;
    padding: 0 !important;
  }

  /* CARD BASED PRODUCT DISPLAY */
  .shop-grid-view {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
    padding: 15px !important;
    width: 100% !important;
  }

  /* MOBILE SEARCH OVERLAY FIX */
  #pillSearch.expanded {
    display: flex !important;
    position: fixed !important;
    top: 60px !important;
    left: 0 !important;
    width: 100% !important;
    height: 60px !important;
    background: white !important;
    z-index: 5500 !important;
    padding: 10px 15px !important;
    border-bottom: 1px solid #eee !important;
    border-radius: 0 !important;
  }

  #pillSearch.expanded .pill-body {
    display: flex !important;
    opacity: 1 !important;
    width: 100% !important;
  }

  #pillSearch.expanded input {
    width: 100% !important;
    padding: 12px 15px !important;
    font-size: 1rem !important;
  }

  .slider-container {
    padding: 30px 20px !important;
    scroll-padding: 20px !important;
  }

  .use-card {
    flex: 0 0 260px !important;
    height: 480px !important;
  }

  .card {
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    border: none !important;
    background: white !important;
    padding: 0 !important;
  }

  .card iframe {
    width: 100% !important;
    height: 100% !important;
    display: block;
    object-fit: cover;
  }

  .card-img-box {
    height: 140px !important;
    border-radius: 0 !important;
  }

  .card-content {
    padding: 12px !important;
  }

  .card-title {
    font-size: 0.95rem !important;
    margin-bottom: 5px !important;
  }

  .add-cart-btn {
    width: 100% !important;
    height: 44px !important;
    border-radius: 10px !important;
    font-size: 1.1rem !important;
  }

  /* HOME PAGE CAROUSEL FIX FOR 2 COLS */
  .carousel-slide {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
    padding: 15px !important;
  }

  .home-card {
    padding: 10px !important;
    border-radius: 15px !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05) !important;
  }
}

html {
  font-size: 95%;
  /* Global Scale Down (5% reduction) */
  width: 100%;
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  background-color: var(--bg-color);
  /* Subtle traditional pattern overlay */
  background-image:
    radial-gradient(var(--primary-light) 0.5px, transparent 0.5px),
    radial-gradient(var(--primary-light) 0.5px, var(--bg-color) 0.5px);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
  font-family: var(--font-body);
  color: #1a1a1a;
  overflow-x: hidden;
}

/* --- ANIMATIONS --- */
@keyframes floatY {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

@keyframes floatX {

  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(5px);
  }
}

@keyframes scrollLeft {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-100%);
  }
}

.animate-float {
  animation: floatY 6s ease-in-out infinite;
}

.animate-delay-1 {
  animation-delay: 1s;
}

/* --- HERO IMAGE & FLOATERS (Old Design Restored) --- */
.hero-image-box {
  position: relative;
  width: 100%;
  max-width: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-main-img {
  width: 90%;
  border-radius: 40px;
  transform: rotate(-3deg);
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.15);
  z-index: 1;
}

.hero-image-box:hover .hero-main-img {
  transform: rotate(0deg) scale(1.05) translateY(-10px);
}

.floater {
  position: absolute;
  background: white;
  padding: 12px 24px;
  border-radius: 50px;
  box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.15);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
  animation: floatY 5s ease-in-out infinite;
  white-space: nowrap;
}

.f1 {
  top: 10%;
  right: -20px;
  animation-delay: 0.5s;
}

.f2 {
  bottom: 15%;
  left: -30px;
  animation-delay: 2.5s;
}

/* MARQUEE */
.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  padding: 40px 0;
  background: white;
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
  display: inline-flex;
  gap: 30px;
  animation: scrollLeft 30s linear infinite;
}

.marquee-content:hover {
  animation-play-state: paused;
}

.usage-card {
  background: #f1f8e9;
  border-radius: 20px;
  padding: 20px 25px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: 0.3s;
}

.usage-card:hover {
  transform: translateY(-5px);
  background: #e8f5e9;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.usage-icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.usage-title {
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.usage-sub {
  font-size: 0.85rem;
  color: #666;
  white-space: normal;
}


/* --- TYPOGRAPHY & BUTTONS --- */
h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-head);
  margin: 0;
  color: var(--primary-dark);
}

a {
  text-decoration: none;
  color: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #ffffff !important;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 10px 20px rgba(67, 160, 71, 0.3);
  transition: transform 0.3s var(--ease-elastic), box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:visited,
.btn-primary:hover,
.btn-primary:active,
.btn-primary span {
  color: #ffffff !important;
}

.btn-primary:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 15px 30px rgba(67, 160, 71, 0.4);
}

.btn-secondary {
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 700;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--primary);
  color: white;
}

/* --- NAVBAR & HEADER --- */

.header-layout-wrapper {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  position: sticky;
  top: 15px;
  z-index: 999;
  pointer-events: none;
  /* Allow clicks through empty space */
}

.navbar {
  margin: 0 !important;
  /* Reset margin since wrapper centers it */
  pointer-events: auto;
  /* Re-enable pointer events */
  width: auto !important;
  /* Let it shrink */
  flex-grow: 1;
  max-width: none !important;
  /* Remove max-width restriction on nav itself */

  /* Original Styles */
  padding: 15px 30px;
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-float);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.lang-pill-container {
  pointer-events: auto;
  margin-left: 15px;
  background: white;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 5px;
  /* Optional spacing */
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 45px;
  transition: transform 0.3s var(--ease-elastic);
}

.brand:hover .logo-img {
  transform: rotate(-10deg) scale(1.1);
}

.brand-txt {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-dark);
}

.nav-links {
  display: flex;
  gap: 30px;
}

.menu-toggle {
  display: none;
}


.nav-link {
  font-weight: 600;
  color: #444;
}

.nav-link:hover {
  color: var(--primary);
}

.cart-icon-wrap {
  position: relative;
  background: var(--bg-color);
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s var(--ease-elastic);
}

.cart-icon-wrap:hover {
  transform: scale(1.1);
  background: #e8f5e9;
}

.cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--accent-pop);
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

/* --- HERO --- */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px 100px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  position: relative;
}

.hero-content h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-content span {
  color: var(--primary);
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 40px;
  max-width: 500px;
}

.hero-image-box {
  position: relative;
  perspective: 1000px;
}

.hero-main-img {
  width: 100%;
  border-radius: 50px;
  transform: rotateY(-10deg) rotateX(5deg);
  box-shadow: var(--shadow-deep);
  transition: transform 0.5s ease;
  border: 8px solid white;
}

.hero-image-box:hover .hero-main-img {
  transform: rotateY(0deg) rotateX(0deg) scale(1.02);
}

.floater {
  position: absolute;
  background: white;
  padding: 12px 20px;
  border-radius: 20px;
  box-shadow: var(--shadow-float);
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.f1 {
  top: 10%;
  right: -20px;
  animation: floatY 5s infinite 0.5s;
}

.f2 {
  bottom: 10%;
  left: -40px;
  animation: floatY 7s infinite 1s;
}

@media (max-width: 900px) {
  .menu-toggle {
    display: block !important;
    margin-right: 15px;
    /* Spacing */
  }
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.section-header p {
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.product-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  /* Decrease min width */
  gap: 40px;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  margin: 0 auto;
}

@media (max-width: 768px) {

  /* SHOP PAGE: 2-Column Grid */
  .product-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 10px;
    overflow-x: visible;
  }

  .product-container .card {
    min-width: 0;
    width: auto;
  }

  /* HOME PAGE: Horizontal Slider */
  #homeCarouselTrack {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 15px;
    padding: 10px 20px 30px 20px;
    margin: 0 -20px;
    width: auto !important;
    background: transparent;
    /* Ensure no grid bg */
  }

  /* Target ANY child (card, home-card, div) */
  #homeCarouselTrack>* {
    min-width: 260px;
    max-width: 260px;
    scroll-snap-align: center;
    flex: 0 0 auto;
    display: block;
    /* Override any inline flex/grid */
  }
}

/* Compact Card Design (Redesigned) */
.card,
.home-card {
  position: relative;
  background: white;
  border-radius: 24px;
  padding: 15px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.02);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(46, 125, 50, 0.15);
}

.offer-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #ff5722;
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.7rem;
  z-index: 5;
  box-shadow: 0 4px 10px rgba(255, 87, 34, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-img-box {
  border-radius: 20px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  position: relative;
  overflow: hidden;
  background: #f4f8f4;
}

/* Remove the circle background for the slider view */
.card-img-box::after {
  display: none;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 5px;
  color: #1a1a1a;
  line-height: 1.3;
}

.card-desc {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 15px;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-controls {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.size-select {
  width: 100%;
  padding: 10px 15px;
  border-radius: 12px;
  border: 1px solid #eee;
  background: white;
  font-size: 0.9rem;
  color: #444;
  cursor: pointer;
  outline: none;
  transition: border 0.3s;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23444%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 15px top 50%;
  background-size: 10px auto;
}

.size-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(67, 160, 71, 0.1);
}

.price-box {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  /* Align to bottom for button */
}

.price-text-box {
  display: flex;
  flex-direction: column;
}

.price-mrp {
  text-decoration: line-through;
  color: #bbb;
  font-size: 0.75rem;
  margin-bottom: 2px;
}

.price-val {
  font-size: 1.3rem;
  font-weight: 900;
  color: #2e7d32;
  line-height: 1;
}

.save-tag {
  font-size: 0.65rem;
  color: #ff5722;
  font-weight: 800;
  background: rgba(255, 87, 34, 0.08);
  padding: 2px 6px;
  border-radius: 6px;
  margin-left: 8px;
  display: inline-block;
  vertical-align: middle;
}

.add-cart-btn {
  background: #ff9800;
  color: white;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.4rem;
  font-weight: 400;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(255, 152, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 4px;
  /* Visual center */
}

.add-cart-btn:hover {
  transform: scale(1.15) rotate(90deg);
  background: #f57c00;
  box-shadow: 0 8px 20px rgba(255, 152, 0, 0.4);
}

/* Smart Info Tags */
.delivery-est-tag {
  font-size: 0.7rem;
  color: #2e7d32;
  background: #e8f5e9;
  padding: 4px 10px;
  border-radius: 6px;
  margin-top: 8px;
  display: inline-block;
  font-weight: 600;
}

.meal-cost-display {
  display: block;
  font-size: 0.75rem;
  color: #e65100;
  font-weight: 600;
  margin-top: 4px;
}

/* --- DRAWER --- */
.carousel-track-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
}

.drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

#addressModal {
  align-items: flex-start;
  padding-top: 80px;
}

#addressModal .auth-card {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  animation: none !important;
  margin: 0 auto !important;
  max-width: 500px;
}

#paymentModal {
  align-items: flex-start;
  padding-top: 80px;
}

#paymentModal .auth-card {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  animation: none !important;
  margin: 0 auto !important;
}

.cart-drawer {
  position: fixed;
  top: 10px;
  right: 10px;
  bottom: 10px;
  width: 400px;
  max-width: 90%;
  background: var(--glass);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-radius: 30px;
  border: 1px solid white;
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.2);
  z-index: 2000;
  transform: translateX(120%);
  transition: transform 0.5s var(--ease-elastic);
  display: flex;
  flex-direction: column;
}

.cart-drawer.open {
  transform: translateX(0);
}

.drawer-head {
  padding: 25px;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.cart-item {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  background: white;
  padding: 10px;
  border-radius: 15px;
}

.cart-item img {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  object-fit: cover;
}

.drawer-foot {
  padding: 25px;
  background: rgba(255, 255, 255, 0.5);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 0 0 30px 30px;
}

.checkout-btn {
  width: 100%;
  padding: 18px;
  background: #25D366;
  color: white;
  border: none;
  border-radius: 20px;
  font-weight: 700;
  margin-top: 10px;
  cursor: pointer;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-image-box {
    order: -1;
    margin-bottom: 30px;
  }

  .cart-drawer {
    width: 100%;
    top: 0;
    bottom: 0;
    right: 0;
    border-radius: 0;
    z-index: 12000 !important;
    /* Ensure on top of WA button */
  }

  .cart-drawer .drawer-foot {
    border-radius: 0;
    background: #fff;
    /* Solid background for cleaner look */
    padding-bottom: 30px;
    /* Extra bottom space */
  }

  .nav-links {
    display: none;
  }
}

/* --- SHOP PAGE STYLES (Redesigned) --- */
.shop-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
  max-width: 1300px;
  margin: 40px auto;
  padding: 0 20px;
  align-items: start;
}

.filter-sidebar {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 100px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.sidebar-header {
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f0f0f0;
  background: #fff;
}

.sidebar-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary-dark);
}

.clear-all {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.clear-all:hover {
  text-decoration: underline;
}

.sidebar-section {
  padding: 20px 25px 10px;
}

.filter-title-static {
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 15px;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 15px;
  border-radius: 10px;
  color: #555;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s;
  text-decoration: none;
}

.sidebar-link:hover,
.sidebar-link.active {
  background: #f0f8f0;
  color: var(--primary-dark);
  font-weight: 600;
}

.sidebar-divider {
  height: 1px;
  background: #f0f0f0;
  margin: 10px 25px;
}

/* Accordion */
.filter-accordion {
  border-bottom: 1px solid #f9f9f9;
}

.accordion-header {
  padding: 15px 25px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: #333;
  transition: background 0.2s;
}

.accordion-header:hover {
  background: #fafafa;
  color: var(--primary);
}

.accordion-header .chevron {
  font-size: 0.7rem;
  color: var(--primary);
  font-weight: bold;
  transition: transform 0.3s;
}

.filter-accordion.open .chevron {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
  background: #fff;
  padding: 0;
  /* Base state */
}

.filter-accordion.open .accordion-content {
  max-height: 500px;
  padding: 5px 0 15px;
  /* Added padding for better alignment */
}

/* Specific Content Styles */
.search-box-modern {
  padding: 0 25px 20px;
  position: relative;
}

.search-box-modern input {
  width: 100%;
  padding: 10px 35px 10px 15px;
  border: 1px solid #eee;
  border-radius: 8px;
  font-size: 0.9rem;
  outline: none;
  transition: border 0.2s;
  color: #444;
}

.search-box-modern input:focus {
  border-color: var(--primary);
}

.search-icon {
  position: absolute;
  right: 35px;
  top: 38%;
  color: #aaa;
  font-size: 0.9rem;
  pointer-events: none;
}

/* Dual Slider */
.range-slider-container {
  padding: 0 25px 25px;
}

.range-display {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 15px;
  text-align: center;
}

.dual-range-wrapper {
  position: relative;
  height: 20px;
  margin-bottom: 20px;
}

.slider-track-bg {
  position: absolute;
  width: 100%;
  height: 6px;
  background: #eee;
  top: 7px;
  border-radius: 5px;
}

.slider-track-fill {
  position: absolute;
  height: 6px;
  background: var(--primary);
  top: 7px;
  z-index: 1;
  border-radius: 5px;
  left: 0;
  width: 100%;
}

.dual-range-wrapper input[type="range"] {
  position: absolute;
  width: 100%;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
  background: none;
  z-index: 2;
  top: -2px;
  /* Align thumb */
  margin: 0;
}

.dual-range-wrapper input[type="range"]::-webkit-slider-thumb {
  pointer-events: auto;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: var(--primary);
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  margin-top: 1px;
}

.range-inputs {
  display: flex;
  gap: 10px;
}

.input-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  font-size: 0.75rem;
  color: #777;
}

.input-wrap input {
  width: 100%;
  padding: 6px;
  border: 1px solid #eee;
  border-radius: 5px;
  margin-top: 4px;
  font-size: 0.85rem;
  outline: none;
}

.input-wrap input:focus {
  border-color: var(--primary);
}

/* Checkboxes */
.checkbox-item {
  display: flex;
  align-items: flex-start;
  padding: 8px 25px 8px 40px;
  /* Increased left padding from 25px to 40px for nesting */
  cursor: pointer;
  color: #555;
  font-size: 0.95rem;
  transition: 0.2s;
  width: 100%;
  box-sizing: border-box;
}

.checkbox-item:hover {
  background: #fdfdfd;
  color: var(--primary);
}

.checkbox-item input {
  accent-color: var(--primary);
  margin-right: 12px;
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  cursor: pointer;
  margin-top: 3px;
}

/* Categories */
.sidebar-link-small {
  display: block;
  padding: 8px 25px;
  color: #555;
  text-decoration: none;
  font-size: 0.95rem;
  transition: 0.2s;
}

.sidebar-link-small:hover {
  color: var(--primary);
  padding-left: 30px;
  background: #fafafa;
}

#catFilters {
  padding: 0;
}

/* Responsive */
@media (max-width: 900px) {
  .shop-layout {
    grid-template-columns: 1fr;
  }

  .filter-sidebar {
    position: static;
    margin-bottom: 30px;
    z-index: 20;
  }

  /* Banners etc */
  .shop-banner {
    width: 100%;
    height: 200px;
    border-radius: var(--radius-lg);
    background: #eee;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
  }
}


/* CAROUSEL GRID FIX */
.carousel-track-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  min-height: 400px;
  /* Force height */
}

#homeCarouselTrack {
  display: flex;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  min-width: 100%;
  width: 100%;
  flex-shrink: 0;
  box-sizing: border-box;
}

.carousel-slide-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  /* Default 4 columns */
  gap: 25px;
  padding: 10px;
  width: 100%;
}

@media (max-width: 1200px) {
  .carousel-slide-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .carousel-slide-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .carousel-slide-grid {
    display: flex !important;
    flex-direction: column;
    gap: 15px;
  }
}

/* --- FAQ SECTION --- */
/* --- FAQ SECTION --- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faq-item {
  background: white;
  border-radius: 20px;
  padding: 5px 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: 0.3s;
  cursor: pointer;
}

.faq-item:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.faq-item.active {
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-weight: 600;
  color: #333;
}

.faq-icon {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--primary);
  transition: 0.3s;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  color: #666;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  /* Approximate max height */
  margin-bottom: 20px;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

/* 2-Column Balanced FAQ Layout */
.faq-layout-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

/* .faq-center-header removed (Inline styles used in HTML for simplicity) */

/* Right Content Zone (Hidden for Accordion Layout) */
.faq-content-zone {
  display: none;
}



.faq-answer-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.faq-answer-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsiveness */
@media (max-width: 1100px) {
  .faq-layout-split {
    grid-template-columns: 1fr;
  }

  .faq-layout-split {
    grid-template-columns: 1fr;
  }


  .faq-content-zone {
    display: none;
    /* Revert to accordion on mobile */
  }
}

.faq-answer.open {
  padding-bottom: 20px;
}

/* --- TESTIMONIALS --- */
/* Styles moved to testimonials.css */

/* Mobile Reset */
@media (max-width: 900px) {

  .geo-wide,
  .geo-big,
  .geo-tall {
    grid-column: span 1;
    grid-row: span 1;
    min-height: auto;
  }
}

/* Responsive FAQ */
@media (max-width: 768px) {
  .faq-layout {
    grid-template-columns: 1fr !important;
  }

  .faq-sticky-side {
    position: static !important;
    margin-bottom: 30px;
    text-align: center;
  }
}

/* --- Pincode Gatekeeper (Advanced) --- */
.blur-active>*:not(#pincodeModal) {
  filter: blur(8px);
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}

#pincodeModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 20000;
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  display: none;
  /* JS toggles this */
  justify-content: center;
  align-items: center;
}

#pincodeModal .modal-content {
  background: white;
  width: 90%;
  max-width: 400px;
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  animation: zoomIn 0.3s ease;
  font-family: var(--font-body);
  padding: 0;
  /* Reset */
}

.gate-header {
  background: #f0fdf4;
  padding: 20px;
  text-align: center;
  border-bottom: 1px solid #e0e0e0;
}

.gate-header h2 {
  color: var(--primary-dark);
  font-size: 1.25rem;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.meal-cost-display {
  display: block;
  width: fit-content;
  font-size: 11px;
  color: #e67e22;
  background: transparent;
  font-weight: 500;
  padding: 0;
  border-radius: 0;
  margin-top: 2px;
}

.gate-tabs {
  display: flex;
  border-bottom: 1px solid #eee;
}

.gate-tab {
  flex: 1;
  padding: 15px;
  text-align: center;
  cursor: pointer;
  background: #f9f9f9;
  color: #666;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.gate-tab.active {
  background: white;
  color: var(--primary);
  border-bottom: 3px solid var(--primary);
  font-weight: 700;
}

.gate-body {
  padding: 25px;
}

.gate-input-group {
  margin-bottom: 15px;
  text-align: left;
}

.gate-input-group label {
  display: block;
  margin-bottom: 5px;
  font-size: 0.85rem;
  color: #555;
  font-weight: 600;
}

.gate-input {
  width: 100%;
  padding: 12px;
  border: 2px solid #eee;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  transition: 0.2s;
}

.gate-input:focus {
  border-color: var(--primary);
  background: #fdfdfd;
}

.gate-btn {
  width: 100%;
  padding: 12px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  transition: 0.2s;
}

.gate-btn:hover {
  background: var(--primary-dark);
}

.gate-btn.secondary {
  background: white;
  border: 2px solid var(--primary);
  color: var(--primary);
  margin-top: 0;
}

.gate-error {
  color: #d32f2f;
  background: #ffebee;
  padding: 10px;
  border-radius: 6px;
  font-size: 0.85rem;
  margin-top: 15px;
  display: none;
  text-align: center;
}

.hidden-tab {
  display: none;
}

@keyframes zoomIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* --- Smart Product Card Features --- */

/* Price Per Meal Tag */
.price-meal-tag {
  font-size: 0.75rem;
  color: #555;
  margin-top: 4px;
  font-weight: 500;
}

/* Delivery Estimate Tag */
.delivery-est-tag {
  font-size: 0.7rem;
  color: #2e7d32;
  background: #e8f5e9;
  padding: 3px 8px;
  border-radius: 4px;
  margin-top: 5px;
  display: inline-block;
}

/* Before/After Slider */
.ba-slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 20px;
}

.ba-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Ensure full visibility inside box */
  position: absolute;
  top: 0;
  left: 0;
}

.ba-before {
  z-index: 1;
  /* Raw Rice (Bottom) */
}

.ba-after {
  z-index: 2;
  /* Cooked Rice (Top) */
  width: 100% !important;
  /* Initial Clip */
  overflow: hidden;
  border-left: 3px solid rgba(255, 255, 255, 0.8);
  /* Divider Line */
  clip-path: inset(0 0 0 50%);
  transition: clip-path 0.1s;
}

/* Range Input for Control */
.ba-range {
  position: absolute;
  bottom: 15px;
  left: 15%;
  width: 70%;
  z-index: 10;
  opacity: 0.9;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  height: 4px;
}

.ba-range::-webkit-slider-track {
  background: rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  height: 4px;
}

.ba-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  background: #007aff;
  /* Blue Thumb */
  border: 3px solid white;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  margin-top: -10px;
}

.ba-label {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  z-index: 5;
  pointer-events: none;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ba-label.raw {
  left: 15px;
}

.ba-label.cooked {
  right: 15px;
}

/* --- HEADER PILLS (Double Expandable) --- */
.header-pills {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-right: 10px;
}

.pill-wrap {
  position: relative;
  height: 50px;
  display: flex;
  align-items: center;
  border-radius: 50px;
  transition: width 0.4s ease-out, background-color 0.4s ease-out;
  background: transparent;
}

/* --- 1. SEARCH PILL --- */
#pillSearch {
  width: 50px;
  justify-content: flex-end;
}

#pillSearch.expanded {
  width: 250px;
  background: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.s-head {
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  position: absolute;
  right: 0;
  transition: transform 0.3s;
}

#pillSearch.expanded .s-head {
  transform: rotate(90deg);
}

.pill-body {
  position: absolute;
  left: 0;
  width: calc(100% - 50px);
  height: 100%;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-out 0.1s;
  padding-left: 15px;
}

#pillSearch.expanded .pill-body {
  opacity: 1;
  visibility: visible;
}

#pillSearchInput {
  border: none;
  background: transparent;
  width: 100%;
  outline: none;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  color: #333;
}

.pill-mic {
  margin-right: 5px;
  cursor: pointer;
  color: var(--primary);
  padding: 5px;
}

.pill-mic:hover {
  background: #f0fdf4;
  border-radius: 50%;
}

/* --- 2. LANGUAGE PILL (VERTICAL DROPDOWN) --- */
#pillLang {
  position: relative;
  width: auto;
  margin: 0;
  padding: 0;
  background: transparent;
  /* Changed from white to prevent stuck box */
  border-radius: 50%;
  transition: all 0.3s ease;
  z-index: 2000;
  overflow: visible !important;
  /* Ensure dropdown isn't clipped */
}

#pillLang.expanded {
  background: transparent;
  box-shadow: none;
}

.l-head {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #555;
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  z-index: 5;
}

#pillLang.expanded .l-head {
  color: var(--primary);
}

/* Vertical Dropdown Body */
.l-body {
  position: absolute;
  top: 45px;
  right: -10px;
  background: #f8faf8;
  /* Light minty base for the dropdown */
  min-width: 150px;
  border-radius: 15px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  pointer-events: none;
  z-index: 999999 !important;
  /* Absolute top priority */
  border: 1px solid rgba(46, 125, 50, 0.1);
}

/* Expanded State for Dropdown */
#pillLang.expanded .l-body {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.l-body span {
  display: block;
  padding: 10px 16px;
  font-size: 0.95rem;
  color: #2e7d32;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
  text-align: left;
  border-radius: 10px;
  background: transparent;
}

.l-body span:hover,
.l-body span.active-lang {
  background: white !important;
  color: #1b5e20 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  font-weight: 700;
  transform: translateX(5px);
}

/* Back-side clipping fix: ensure parent containers don't hide the dropdown */
.nav-icons-group,
.navbar,
.header-layout-wrapper,
.lang-pill-container {
  overflow: visible !important;
}

/* --- MOBILE RESPONSIVENESS FIXES (ANTIGRAVITY v3.1) --- */

/* 1. Tablet & Mobile Range (<1024px) */
@media (max-width: 1024px) {
  .hero {
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    margin-bottom: 40px;
  }

  /* Override inline JS grid (3 columns -> 2 columns) */
  .carousel-slide {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
    padding: 20px !important;
  }
}

/* 2. Mobile Range (<600px) */
@media (max-width: 600px) {

  /* Reduce Hero Size */
  .hero-content h1 {
    font-size: 2.2rem;
    line-height: 1.25;
    margin-bottom: 15px;
    word-wrap: break-word;
  }

  .hero-content p {
    font-size: 1rem;
    padding: 0 5px;
  }

  .hero-image-box {
    margin: 20px auto;
    width: 90%;
    max-width: 320px;
  }

  /* Force Single Column for Slides */
  .carousel-slide {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
    padding: 10px !important;
    display: flex !important;
    flex-direction: column !important;
  }

  /* Hero spacing fixes */
  .hero {
    padding: 30px 15px !important;
    min-height: initial !important;
  }

  .hero-content {
    margin-bottom: 30px !important;
  }

  /* Ensure cards act responsively */
  .home-card {
    min-width: unset;
    width: 100%;
  }

  /* Global Container Padding for Safe Area */
  .section-header,
  .marquee-container,
  #testimonials,
  #faq,
  footer,
  .uses-hero {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .uses-hero {
    padding-top: 100px !important;
    min-height: initial !important;
  }

  /* Adjust Button Size/Width */
  .hero .btn-primary,
  .hero .btn-secondary {
    width: 100%;
    justify-content: center;
    margin-bottom: 12px;
    padding: 12px 20px;
  }

  /* Fix Floater Overflows */
  .f1 {
    right: 5px !important;
    top: 5% !important;
  }

  .f2 {
    left: 5px !important;
    bottom: 5% !important;
  }

  .floater {
    padding: 8px 12px !important;
    font-size: 0.75rem !important;
  }
}

/* --- NAVBAR FIXES (MOBILE ICONS) --- */

/* 1. Hide Search Pill on Mobile */
@media (max-width: 768px) {
  #pillSearch {
    display: none !important;
  }
}

/* 2. Adjust Navbar Layout for Mobile */
@media (max-width: 768px) {
  .navbar {
    padding: 10px 15px !important;
    /* Reduce padding to fit icons */
    justify-content: space-between;
  }

  .brand-txt {
    font-size: 1.2rem;
    /* Reduce logo text size slightly */
  }

  .nav-icons-group {
    gap: 8px !important;
    /* Tighter gap for icons */
  }

  /* Language Pill Mobile Adjustments */
  .lang-pill-container {
    box-shadow: none !important;
    /* Remove shadow for cleaner integrated look */
    background: transparent !important;
    /* Seamless integration */
  }

  /* Ensure Dropdown aligns correctly on mobile */
  #userDropdown {
    right: -10px;
    width: 200px;
  }
}

/* --- MOBILE RESPONSIVENESS PATCH (ANTIGRAVITY v3.2) --- */

/* 1. Ultra-Narrow Devices (<450px) */
@media (max-width: 450px) {
  .header-layout-wrapper {
    width: 96% !important;
    margin: 0 auto !important;
    left: 2% !important;
    /* Force center if auto fails */
    top: 10px !important;
  }

  .navbar {
    padding: 8px 12px !important;
    gap: 0px !important;
    /* Remove gap between brand and icons */
  }

  .brand {
    gap: 4px !important;
  }

  .brand-txt {
    font-size: 0.9rem !important;
    letter-spacing: -0.5px;
  }

  .logo-img {
    height: 28px !important;
  }

  .nav-icons-group {
    gap: 8px !important;
    /* Increased from 2px for better spacing */
  }

  .cart-icon-wrap,
  .menu-toggle,
  .l-head {
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    background: #f0fdf4 !important;
    /* Subtle green circle for ALL icons */
    transition: 0.3s ease !important;
    box-shadow: none !important;
  }

  .cart-icon-wrap svg,
  .l-head svg {
    width: 18px !important;
    height: 18px !important;
    color: var(--primary-dark) !important;
    stroke: var(--primary-dark) !important;
  }

  .menu-toggle {
    font-size: 1.1rem !important;
    color: var(--primary-dark) !important;
    background: #f0fdf4 !important;
    margin: 0 !important;
  }

  .cart-badge {
    width: 15px !important;
    height: 15px !important;
    font-size: 0.6rem !important;
    top: -2px !important;
    right: -2px !important;
    background: #ff4757 !important;
  }

  /* Reset pill wrapper background/shadow specifically for language on mobile */
  #pillLang {
    background: transparent !important;
    box-shadow: none !important;
    width: 36px !important;
    height: 36px !important;
    position: relative !important;
  }

  /* LANGUAGE DROPOWN MOBILE FIX */
  .l-body {
    right: -25px !important;
    /* Adjusted for better alignment */
    top: 42px !important;
    min-width: 140px !important;
    background: #f8faf8 !important;
    border-radius: 15px !important;
    padding: 8px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
    border: 1px solid rgba(46, 125, 50, 0.1) !important;
  }

  .l-body span {
    padding: 10px 15px !important;
    font-size: 0.9rem !important;
    margin-bottom: 2px !important;
    border-radius: 8px !important;
    border-bottom: none !important;
    background: transparent !important;
  }

  .l-body span:hover,
  .l-body span.active-lang {
    background: white !important;
    color: #1b5e20 !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08) !important;
  }

  .lang-pill-container {
    margin-left: 0 !important;
    padding: 0 !important;
  }

  /* Fix Hero Title Size to prevent line breaks in weird places */
  .hero-content h1 {
    font-size: 1.6rem !important;
    margin-bottom: 15px !important;
  }

  .hero-content p {
    font-size: 0.9rem !important;
    margin-bottom: 25px !important;
  }
}

/* Hide brand text on super tiny screens */
@media (max-width: 340px) {
  .brand-txt {
    display: none !important;
  }
}

/* Fix for WhatsApp Button Overlap */
.mobile-wa-btn {
  width: 50px !important;
  height: 50px !important;
  bottom: 85px !important;
  /* Raised to clear bottom nav */
  right: 15px !important;
}

.mobile-wa-btn svg {
  width: 25px !important;
  height: 25px !important;
}

/* 2. Shop Page Mobile Grid (Force 2-column or 1-column) */
.shop-grid-view {
  width: 100% !important;
  margin: 0 !important;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

@media (max-width: 650px) {
  .shop-grid-view {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
    padding: 0 !important;
  }

  /* In 2-column mode, make cards more compact */
  .shop-grid-view .card {
    padding: 10px;
  }

  .shop-grid-view .card-img-box {
    height: 160px;
  }

  .shop-grid-view .card-title {
    font-size: 1rem;
  }
}

@media (max-width: 360px) {
  .shop-grid-view {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
}

/* 3. iOS WebKit Fixes & DVH support */
:root {
  /* Fallback for browsers not supporting dvh */
  --header-height: auto;
}

@supports (height: 100dvh) {
  #sideMenu {
    height: 100dvh !important;
  }

  .cart-drawer {
    height: 100dvh !important;
    top: 0 !important;
    bottom: 0 !important;
    right: 0 !important;
  }

  #addressModal,
  #paymentModal {
    min-height: 100dvh;
  }
}

/* Fix for blurry elements on WebKit */
.navbar,
.card,
.btn-primary {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* Avoid auto-zoom on iOS */
@media screen and (-webkit-min-device-pixel-ratio:0) {

  select,
  input,
  textarea {
    font-size: 16px !important;
  }
}

/* Smooth Scrolling for iOS */
html {
  scroll-behavior: smooth;
  overflow-x: hidden !important;
  width: 100%;
}

/* ============================================================
   NATIVE MOBILE APP EXPERIENCE OVERHAUL (End of Chain)
   ============================================================ */

@media (max-width: 767px) {

  /* Global Layout */
  body {
    padding-bottom: calc(75px + env(safe-area-inset-bottom)) !important;
    overflow-x: hidden !important;
  }

  /* Sticky Bottom Navigation Bar Modernized */
  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0px;
    left: 0;
    width: 100%;
    height: calc(75px + env(safe-area-inset-bottom));
    background: white;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 12000;
    justify-content: space-around;
    align-items: center;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.08);
  }

  .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #999;
    flex: 1;
    height: 100%;
    gap: 4px;
  }

  .bottom-nav-item.active {
    color: var(--primary);
  }

  .bottom-nav-item.active .nav-icon {
    background: #e8f5e9;
    border-radius: 20px;
    padding: 2px 15px;
  }

  .nav-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 6px;
    transition: 0.2s;
  }

  .nav-label {
    font-size: 11px;
    font-weight: 700;
    color: #888;
    letter-spacing: 0.2px;
  }

  .account-fab {
    position: relative;
    overflow: visible !important;
  }

  .fab-circle {
    width: 60px;
    height: 60px;
    background: #2ed573;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -30px;
    /* Pull it up */
    margin-bottom: 5px;
    box-shadow: 0 8px 20px rgba(46, 213, 115, 0.4);
    border: 4px solid white;
    transition: 0.3s;
  }

  .account-fab:active .fab-circle {
    transform: scale(0.9) translateY(5px);
  }

  .bottom-nav-item:active:not(.account-fab) .nav-icon {
    transform: translateY(-4px);
    color: var(--primary);
  }

  .cart-badge-bottom {
    position: absolute;
    top: -5px;
    right: -8px;
    background: #ff5722;
    color: white;
    font-size: 10px;
    font-weight: 900;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
  }

  /* Simplified App Header (Top) */
  .header-layout-wrapper {
    padding: 0 !important;
    width: 100% !important;
    left: 0 !important;
    top: 0 !important;
  }

  .navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 64px !important;
    padding: 0 15px !important;
    background: white !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    border-radius: 0 !important;
    z-index: 9998 !important;
    display: grid !important;
    grid-template-columns: 50px 1fr 50px !important;
    align-items: center !important;
    border-bottom: 1px solid #f0f0f0;
  }

  .menu-toggle.mobile-only-icon {
    display: flex !important;
    grid-column: 1;
    justify-content: flex-start;
  }

  .brand {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    grid-column: 2;
  }

  .nav-icons-group {
    display: flex !important;
    justify-content: flex-end !important;
    grid-column: 3;
  }

  /* Hide desktop items, but allow our new mobile icons */
  .nav-links,
  .desktop-only-pill,
  .deck-cart-wrap,
  .deck-user-wrap,
  .lang-pill-container {
    display: none !important;
  }

  .mobile-only-icon {
    display: flex !important;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    box-shadow: none !important;
  }

  .brand {
    gap: 10px !important;
  }

  .logo-img {
    height: 32px !important;
  }

  .brand-txt {
    display: block !important;
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    color: var(--primary-dark) !important;
    letter-spacing: -0.5px;
  }

  /* Card-Based Layout (Shop/Grid) */
  .shop-layout {
    display: block !important;
  }

  .filter-sidebar {
    display: none !important;
  }

  .shop-grid-view {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    padding: 12px !important;
    width: 100% !important;
    margin-top: 64px !important;
    /* Offset for header */
  }

  .card {
    border-radius: 20px !important;
    border: 1px solid #f0f0f0 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
    background: white !important;
    padding: 0 !important;
    overflow: hidden !important;
    display: flex;
    flex-direction: column;
  }

  .fav-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    background: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    font-size: 14px;
    transition: 0.2s;
  }

  .card-img-box {
    height: 180px !important;
    border-radius: 0 !important;
    position: relative;
  }

  .card-content {
    padding: 15px !important;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
  }

  .card-title {
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    color: var(--primary-dark);
    margin-bottom: 5px !important;
  }

  .size-pill-container {
    margin-bottom: 12px;
  }

  .size-select {
    width: 100% !important;
    background: #f8f9f8 !important;
    border: 1px solid #eee !important;
    border-radius: 10px !important;
    padding: 8px 12px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    color: #555 !important;
  }

  .card-price-row {
    margin-bottom: 10px;
  }

  .mrp-old {
    font-size: 0.8rem;
    color: #bbb;
    text-decoration: line-through;
    display: block;
    margin-bottom: 2px;
  }

  .price-and-tag {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .price-main {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--primary);
  }

  .save-tag {
    background: #fff0f0 !important;
    color: #ff5252 !important;
    font-size: 0.65rem !important;
    font-weight: 800 !important;
    padding: 3px 8px !important;
    border-radius: 6px !important;
    border: 1px solid #ffe0e0 !important;
  }

  .meal-cost-tag {
    font-size: 0.8rem;
    color: #d84315;
    font-weight: 700;
    margin-top: 4px;
  }

  .delivery-tag {
    background: #f0fbf0;
    color: #2e7d32;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 8px;
    margin-top: auto;
    margin-bottom: 10px;
    border: 1px solid #e0f5e0;
  }

  .calc-prompt {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
  }

  /* Modified Bottom Nav for taller action */
  .bottom-nav {
    height: calc(90px + env(safe-area-inset-bottom)) !important;
    padding-bottom: calc(10px + env(safe-area-inset-bottom)) !important;
  }

  .fab-circle {
    width: 65px !important;
    height: 65px !important;
    margin-top: -35px !important;
    background: #2ed573 !important;
    box-shadow: 0 10px 25px rgba(46, 213, 115, 0.4) !important;
  }

  /* Search Overlay Mobile */
  #pillSearch.expanded {
    display: flex !important;
    position: fixed !important;
    top: 64px !important;
    left: 0 !important;
    width: 100% !important;
    background: white !important;
    height: 70px !important;
    z-index: 10001 !important;
    padding: 10px !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
  }

  .cart-drawer {
    width: 100% !important;
    border-radius: 30px 30px 0 0 !important;
    height: 92dvh !important;
    bottom: 0 !important;
    top: auto !important;
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.32, 0.72, 0, 1) !important;
    z-index: 13000 !important;
  }

  /* Uses Page Adjustment */
  .uses-hero {
    padding-top: 120px !important;
    padding-bottom: 100px !important;
  }
}

/* NATIVE ANDROID BOTTOM SHEET & RIFFLE EFFECTS */
.bottom-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 11000;
  display: none;
  align-items: flex-end;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bottom-sheet-overlay.active {
  display: flex;
  opacity: 1;
}

.bottom-sheet-content {
  width: 100%;
  background: rgba(255, 255, 255, 0.85);
  /* Glass base */
  -webkit-backdrop-filter: blur(15px);
  /* Glassmorphism */
  backdrop-filter: blur(15px);
  border-radius: 30px 30px 0 0;
  padding: 15px 20px;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
  position: relative;
  max-height: 80dvh;
}

.bottom-sheet-overlay.active .bottom-sheet-content {
  transform: translateY(0);
}

.bs-handle {
  width: 40px;
  height: 4px;
  background: #ccc;
  border-radius: 2px;
  margin: 5px auto 15px;
}

.bs-body {
  overflow-y: auto;
  max-height: 60dvh;
  padding-bottom: 20px;
}

.bs-section label {
  display: block;
  font-weight: 700;
  margin: 15px 0 10px;
  color: #666;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.bs-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bs-option {
  padding: 14px 18px;
  background: #f0f3f0;
  border-radius: 12px;
  font-weight: 600;
  transition: 0.2s;
}

.bs-option.active {
  background: var(--primary-light);
  color: var(--primary-dark);
  box-shadow: inset 0 0 0 2px var(--primary);
}

.bs-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.bs-chip {
  padding: 8px 16px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

.bs-chip.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Floating Action Buttons Area */
.bs-float-actions {
  position: absolute;
  bottom: 30px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 30px;
  pointer-events: none;
}

.bs-fab {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  pointer-events: auto;
  transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bs-fab:active {
  transform: scale(0.9);
}

.bs-fab.cancel {
  background: white;
  color: #ff5252;
}

.bs-fab.confirm {
  background: #2ed573;
  color: white;
}

/* RIPPLE EFFECT */
.ripple {
  position: relative;
  overflow: hidden;
}

.ripple-effect {
  position: absolute;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  pointer-events: none;
  width: 100px;
  height: 100px;
  margin-top: -50px;
  margin-left: -50px;
  animation: ripple-animation 0.6s linear;
  transform: scale(0);
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Modern Entry Animations for Cards */
.reveal-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

@media only screen and (max-width: 768px) {

  /* GLOBAL APP STYLES */
  body {
    background-color: #f7f9f7 !important;
    margin-bottom: 90px !important;
  }

  .card {
    border-radius: 20px !important;
    border: none !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
    background: white !important;
    padding: 12px !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    transition: transform 0.2s cubic-bezier(0.33, 1, 0.68, 1) !important;
  }

  .card:active {
    transform: scale(0.96) !important;
  }

  .card-img-box {
    margin-bottom: 12px !important;
    aspect-ratio: 1/1;
    height: auto !important;
    border-radius: 15px !important;
    overflow: hidden;
    background: #f9f9f9;
  }

  .card-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .mobile-only-grid-content {
    display: block !important;
    width: 100%;
    pointer-events: auto !important;
  }

  /* Wishlist Button on Image (Mobile) */
  .mobile-fav-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    background: white !important;
    border: none !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 5;
    font-size: 14px;
    padding: 0;
  }

  /* Floating Price Tag (Mobile) */
  .mobile-price-tag {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: #007aff;
    /* Blue in image, but we can use brand-adjusted blue or primary */
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.85rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 5;
  }

  .mobile-stock-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #ff5252;
    margin-bottom: 2px;
  }

  .mobile-rating {
    font-size: 0.75rem;
    font-weight: 700;
    color: #333;
    display: flex;
    align-items: center;
    gap: 4px;
  }

  /* Circular Add Button on Mobile */
  .mobile-add-btn {
    width: 36px;
    height: 36px;
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 300;
    color: #333;
    transition: 0.2s;
    pointer-events: auto !important;
    cursor: pointer !important;
    z-index: 10 !important;
  }

  .mobile-add-btn:active {
    background: var(--primary);
    color: white;
    transform: scale(0.9);
  }

  /* AGGRESSIVE HIDE FOR 2-STAGE GRID Stage 1 (Grid Card only) */
  .card .desktop-only-content,
  .card .desktop-only-details,
  .card .fav-btn,
  .card .badge,
  .card .offer-tag,
  .card .offer-badge,
  .card .quick-add-float,
  .card .card-desc,
  .card .size-pill-container,
  .card .card-price-row,
  .card .price-side,
  .card .mrp-old,
  .card .price-and-tag,
  .card .meal-cost-tag,
  .card .delivery-tag,
  .card .delivery-est-tag,
  .card .calc-prompt,
  .card .card-controls,
  .card .ba-label,
  .card .ba-range {
    display: none !important;
  }

  .mobile-only-grid-content {
    display: block !important;
    width: 100%;
    pointer-events: none;
  }

  .mobile-only-price {
    display: none !important;
  }

  /* Requirement 3: MODAL / BOTTOM SHEET REFINEMENT */
  .bottom-sheet-overlay {
    background: rgba(0, 0, 0, 0.4);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
  }

  .detail-bs {
    background: white !important;
    border-radius: 30px 30px 0 0 !important;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1) !important;
  }

  .bs-handle {
    width: 40px;
    height: 5px;
    background: #e0e0e0;
    margin: 15px auto 10px;
    border-radius: 10px;
  }

  .bs-body {
    padding: 20px 24px 140px 24px !important;
    overflow-y: auto;
    max-height: 85vh;
  }

  .bs-section {
    margin-top: 25px;
    border-top: 1px solid #f5f5f5;
    padding-top: 20px;
  }

  .bs-section h4 {
    margin: 0 0 12px 0;
    font-size: 0.85rem;
    color: #9e9e9e;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 800;
  }

  .bs-detail-slider {
    margin-bottom: 0px;
    height: auto;
    border-radius: 20px;
    background: none;
    box-shadow: none;
    position: relative;
    display: flex;
    justify-content: center;
  }

  .bs-close-detail {
    position: absolute;
    top: 5px;
    left: 0px;
    width: 36px;
    height: 36px;
    background: white;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    font-size: 1.2rem;
    color: #333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    cursor: pointer;
  }

  .bs-title {
    font-size: 1.5rem !important;
    font-weight: 950 !important;
    color: #1a1a1a;
    line-height: 1.25;
    margin-bottom: 5px !important;
    letter-spacing: -0.5px;
  }

  .bs-desc {
    font-size: 0.85rem !important;
    color: #777;
    line-height: 1.6;
    margin-bottom: 15px;
    font-weight: 500;
  }

  /* WEIGHT DROPDOWN STYLE */
  .bs-weight-dropdown {
    width: 100%;
    padding: 12px 15px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    background: white;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    margin: 10px 0;
  }

  .bs-meal-cost {
    color: #ff8f00;
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: 4px;
    display: block;
  }

  /* ORANGE CIRCLE ADD BUTTON */
  .bs-add-fab {
    position: absolute;
    bottom: -15px;
    right: 15px;
    width: 60px;
    height: 60px;
    background: #ff9800 !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white !important;
    font-size: 2.2rem;
    line-height: 1;
    font-weight: 300;
    box-shadow: 0 10px 20px rgba(255, 152, 0, 0.3) !important;
    border: none !important;
    cursor: pointer;
    z-index: 50;
    transition: 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }

  .bs-add-fab:active {
    transform: scale(0.9);
  }

  .bs-action-bar {
    position: fixed;
    bottom: 0px;
    left: 0;
    width: 100%;
    padding: 18px 24px calc(20px + env(safe-area-inset-bottom)) 24px;
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 15000;
  }

  /* Modern Large Add to Cart Button for Modal */
  #bsAddToCartBtn {
    background: #a3cc39 !important;
    /* Premium Brand Green */
    color: white !important;
    padding: 16px 30px !important;
    border-radius: 50px !important;
    font-weight: 800 !important;
    font-size: 1.1rem !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px;
    flex: 1;
    margin-left: 15px;
    box-shadow: 0 10px 25px rgba(163, 204, 57, 0.4) !important;
    pointer-events: auto !important;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  }

  #bsAddToCartBtn:active {
    transform: scale(0.95);
  }

  .bs-detail-slider {
    width: 100%;
    height: 320px;
    border-radius: 20px;
    overflow: hidden;
    margin-top: 10px;
  }

  .bs-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.2;
  }

  .bs-desc {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #666;
    margin-bottom: 20px;
  }

  .bs-q-row {
    font-size: 0.95rem !important;
    margin-bottom: 4px !important;
  }

  .cart-qty-controls {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-top: 8px !important;
  }

  .cart-qty-btn {
    width: 28px !important;
    height: 28px !important;
    border-radius: 8px !important;
    background: #f0f0f0 !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 900 !important;
  }

  .drawer-foot {
    padding: 20px 24px 40px 24px !important;
    border-radius: 30px 30px 0 0 !important;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.05) !important;
    background: white !important;
  }
}

/* Visibility Utilities for Mobile/Desktop Splits */
.mobile-only-grid-content {
  display: none !important;
}

@media (max-width: 767px) {

  .desktop-only-content,
  .desktop-only-details {
    display: none !important;
  }

  .mobile-only-grid-content {
    display: block !important;
  }
}

.price-mrp {
  text-decoration: line-through;
  color: #aaa;
  font-size: 0.85rem;
  margin-right: 8px;
}

/* Final Layout Fixes */
.offer-tag {
  top: 10px !important;
  left: 10px !important;
}

.ba-slider {
  background: #f0f0f0 !important;
}

/* Final Corrections */
.fav-btn {
  position: absolute !important;
  right: 10px !important;
  left: auto !important;
  top: 10px !important;
  z-index: 20 !important;
  background: white !important;
  border: none !important;
  border-radius: 50% !important;
  width: 32px !important;
  height: 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05) !important;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  cursor: pointer !important;
}

.fav-btn:hover {
  transform: scale(1.15) !important;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1) !important;
}

.card:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 20px 40px rgba(46, 125, 50, 0.15) !important;
}

.price-main {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary) !important;
}

/* --- MOBILE APP SHELL (Max-Width: 768px Only) -- */
@media (max-width: 768px) {

  /* HIDE DESKTOP NAV */
  .glass-header,
  .site-header {
    display: none !important;
  }

  /* MOBILE BOTTOM NAV */
  .bottom-nav {
    width: 100%;
    height: 70px;
    background: white;
    position: fixed;
    bottom: 0px;
    left: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
  }

  .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 0.7rem;
    padding: 10px;
    text-decoration: none;
  }

  .bottom-nav-item.active {
    color: #43a047;
    font-weight: 700;
  }

  .bottom-nav-item svg {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
    stroke-width: 2px;
  }

  /* MOBILE STICKY HEADER */
  .mobile-app-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  }

  .mobile-logo {
    height: 30px;
  }

  .mobile-notif-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* --- MOBILE GRID & MODAL (Stage 1 & 2) --- */
@media (max-width: 768px) {

  /* STAGE 1: GRID VIEW */
  .product-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 15px !important;
    padding: 85px 15px 80px 15px !important;
    /* Top for header, Bottom for nav */
    width: 100% !important;
    margin: 0 !important;
    max-width: 100% !important;
  }

  .card {
    border-radius: 16px !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05) !important;
    border: none !important;
    padding: 10px !important;
    display: flex !important;
    flex-direction: column !important;
    background: white;
    height: auto !important;
  }

  .card:hover {
    transform: none !important;
  }

  /* STAGE 2: MODAL (Velora Style) */
  #productDetailBottomSheet {
    z-index: 2000 !important;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    padding-top: 50px;
    /* Top safe area */
    align-items: flex-end;
    /* Bottom sheet style */
  }

  .detail-bs {
    border-radius: 20px 20px 0 0 !important;
    max-height: 90vh;
    overflow-y: auto;
    padding-bottom: 90px !important;
    /* Space for Sticky Add Button */
  }

  .bs-add-btn-sticky {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: var(--primary);
    color: white;
    height: 50px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 10px 25px rgba(46, 125, 50, 0.3);
    z-index: 2010;
  }
}

/* --- VELORA MOBILE CARD STYLES --- */
@media (max-width: 768px) {
  .m-card-img-box {
    width: 100%;
    height: 150px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    background: #f8f8f8;
    margin-bottom: 8px;
  }

  .m-card-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
  }

  .m-fav-btn {
    position: absolute !important;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 50 !important;
    cursor: pointer;
    pointer-events: auto !important;
  }

  .m-price-pill {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: #008f37;
    /* Green */
    color: white;
    font-weight: 800;
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 10;
    box-shadow: 0 4px 8px rgba(0, 143, 55, 0.3);
  }

  .m-card-details {
    padding: 0 4px;
  }

  .m-stock-text {
    color: #ff1744;
    font-size: 0.65rem;
    font-weight: 700;
    margin-bottom: 2px;
  }

  .m-rating-row {
    display: flex;
    align-items: center;
    font-size: 0.75rem;
    margin-bottom: 4px;
  }

  .m-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .m-title {
    font-size: 0.9rem;
    font-weight: 800;
    margin: 0;
    color: #1a1a1a;
    line-height: 1.2;
    max-width: 75%;
  }

  .m-add-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f0f0f0;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 300;
    color: #1a1a1a;
  }
}

/* --- FLOATING PILL NAV (Mobile Only - 320px to 768px) --- */
@media (min-width: 320px) and (max-width: 768px) {
  .navbar {
    position: fixed !important;
    top: 20px !important;
    left: 5% !important;
    width: 90% !important;
    background: white !important;
    border-radius: 50px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1) !important;
    padding: 5px 20px !important;
    margin: 0 auto !important;
    z-index: 9999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border: 1px solid rgba(0, 0, 0, 0.03) !important;
  }

  /* Ensure Body Pushes Content Down */
  body {
    padding-top: 100px !important;
    /* Space for floating nav */
  }

  /* Adjust Logo Size for Pill */
  .brand-txt {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
  }

  .logo-img {
    height: 32px !important;
    width: auto !important;
  }

  /* Background pattern needs to be fixed so it doesn't move with scroll behind transparent parts if any */
  body {
    background-attachment: fixed;
  }
}

/* --- MOBILE BADGE VISIBILITY FIX --- */
.mobile-only-icon {
  display: none !important;
}

.deck-cart-wrap {
  display: flex !important;
}

@media (max-width: 768px) {
  .mobile-only-icon {
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
  }

  .deck-cart-wrap {
    display: none !important;
  }
}

/* FIX: Razorpay Z-Index Issue */
.razorpay-container {
  z-index: 2147483647 !important;
}

iframe[name^='razorpay'] {
  z-index: 2147483647 !important;
}

/* FIX: Modal z-index hierarchy */
.drawer-overlay {
  z-index: 11000 !important;
}

.header-layout-wrapper {
  z-index: 900 !important;
}


/* FIX: Cart Drawer visibility over overlay */
#cartDrawer,
.cart-drawer {
  z-index: 12000 !important;
}

/* SWEETALERT Z-INDEX FIX - Ensure Toast is visible over Modal (11000) */
div:where(.swal2-container) {
  z-index: 20000 !important;
}

/* PROMO BANNERS CSS */
.promo-slider-section {
  width: 100%;
  overflow: hidden;
  background: #fcfcfc;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

.promo-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: promoScroll 40s linear infinite;
  padding: 0 20px;
}

.promo-track:hover {
  animation-play-state: paused;
}

.promo-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
  min-width: 280px;
  max-width: 320px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s;
}

.promo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.promo-img {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.promo-info h4 {
  font-size: 0.95rem;
  margin: 0 0 4px 0;
  color: #1e293b;
  font-weight: 700;
}

.promo-info p {
  font-size: 0.8rem;
  margin: 0 0 8px 0;
  color: #64748b;
  line-height: 1.3;
}

.promo-btn-xs {
  font-size: 0.75rem;
  background: var(--primary);
  color: white;
  padding: 4px 10px;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
}

.promo-badge-xs {
  font-size: 0.65rem;
  background: #fff7ed;
  color: #c2410c;
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 4px;
  display: inline-block;
  font-weight: 600;
}

@keyframes promoScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}