/* ==========================================================================
   MADHAV MART (माधव मार्ट) - Modern Supermarket CSS Design System
   ========================================================================== */

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

:root {
  --primary-rgb: 5, 150, 105;
  --primary: #059669;
  --primary-dark: #047857;
  --primary-light: #ecfdf5;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --accent-light: #fef3c7;
  --dark: #0f172a;
  --dark-surface: #1e293b;
  --text-main: #0f172a;
  --text-muted: #475569;
  --bg-light: #f8fafc;
  --white: #ffffff;
  --border-color: #e2e8f0;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px -4px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 36px -4px rgba(5, 150, 105, 0.15);
  --shadow-xl: 0 24px 48px -8px rgba(15, 23, 42, 0.12);
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Professional Dark Mode Theme Palette (100% Integrated Dark Navbar & Components) */
[data-theme="dark"] {
  --primary: #10b981;
  --primary-dark: #059669;
  --primary-light: rgba(16, 185, 129, 0.15);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --bg-light: #090d16;
  --white: #131b2e;
  --border-color: rgba(255, 255, 255, 0.08);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 16px 36px rgba(16, 185, 129, 0.2);
}

[data-theme="dark"] body {
  background-color: #090d16 !important;
  color: #f8fafc !important;
}

[data-theme="dark"] nav.navbar,
[data-theme="dark"] .glass-nav,
[data-theme="dark"] .navbar-sticky,
[data-theme="dark"] .bg-white,
[data-theme="dark"] .bg-light {
  background: rgba(19, 27, 46, 0.96) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  color: #f8fafc !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .top-announcement {
  background: #090d16 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #94a3b8 !important;
}

[data-theme="dark"] .text-dark {
  color: #f8fafc !important;
}

[data-theme="dark"] .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.25) !important;
}

[data-theme="dark"] .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.95%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

[data-theme="dark"] .text-muted,
[data-theme="dark"] .text-secondary {
  color: #94a3b8 !important;
}

[data-theme="dark"] .brand-title {
  color: #ffffff !important;
}

[data-theme="dark"] .brand-subtitle {
  color: #94a3b8 !important;
}

[data-theme="dark"] .nav-link {
  color: #cbd5e1 !important;
}

[data-theme="dark"] .nav-link:hover {
  color: #10b981 !important;
}

[data-theme="dark"] .nav-link.active {
  background-color: #10b981 !important;
  color: #ffffff !important;
}

[data-theme="dark"] .status-badge-open {
  background-color: rgba(16, 185, 129, 0.15) !important;
  color: #34d399 !important;
  border-color: rgba(16, 185, 129, 0.3) !important;
}

[data-theme="dark"] .btn-secondary-custom {
  background: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
}

[data-theme="dark"] .btn-secondary-custom:hover {
  background: rgba(255, 255, 255, 0.28) !important;
  color: #ffffff !important;
}

[data-theme="dark"] .btn-light {
  background-color: #1e293b !important;
  color: #f8fafc !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}

[data-theme="dark"] .category-card,
[data-theme="dark"] .feature-box,
[data-theme="dark"] .gmb-card,
[data-theme="dark"] .review-card,
[data-theme="dark"] .gallery-item {
  background-color: #131b2e !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: #f8fafc !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .category-card-title,
[data-theme="dark"] .section-title {
  color: #f8fafc !important;
}

[data-theme="dark"] .category-card-desc {
  color: #94a3b8 !important;
}

/* Category Card Footer & Badge Styling in Dark Mode */
[data-theme="dark"] .border-top {
  border-top-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .text-primary,
[data-theme="dark"] .category-body .text-primary {
  color: #34d399 !important;
}

[data-theme="dark"] .bg-success-subtle {
  background-color: rgba(16, 185, 129, 0.2) !important;
  color: #34d399 !important;
}

[data-theme="dark"] .bg-primary-subtle {
  background-color: rgba(59, 130, 246, 0.2) !important;
  color: #60a5fa !important;
}

[data-theme="dark"] .bg-warning-subtle {
  background-color: rgba(245, 158, 11, 0.2) !important;
  color: #fbbf24 !important;
}

[data-theme="dark"] .bg-purple-subtle {
  background-color: rgba(139, 92, 246, 0.2) !important;
  color: #c084fc !important;
}

[data-theme="dark"] .bg-info-subtle {
  background-color: rgba(14, 165, 233, 0.2) !important;
  color: #38bdf8 !important;
}

[data-theme="dark"] .bg-danger-subtle {
  background-color: rgba(236, 72, 153, 0.2) !important;
  color: #f472b6 !important;
}

[data-theme="dark"] .gemini-summary-box {
  background: linear-gradient(135deg, #131b2e 0%, #1e293b 100%) !important;
  border-color: rgba(16, 185, 129, 0.3) !important;
  color: #f8fafc !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="dark"] .gemini-summary-box blockquote {
  color: #e2e8f0 !important;
}

[data-theme="dark"] .cat-pill {
  background: #1e293b;
  color: #cbd5e1;
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .cat-pill.active {
  background: #10b981;
  color: #ffffff;
  border-color: #10b981;
}

[data-theme="dark"] .modal-content {
  background-color: #131b2e !important;
  color: #f8fafc !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
  background-color: #090d16 !important;
  color: #f8fafc !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .review-score-box {
  background: linear-gradient(135deg, #131b2e 0%, #1e293b 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .review-score-box .big-rating {
  color: #ffffff !important;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .review-score-box h5,
[data-theme="dark"] .review-score-box p {
  color: #f8fafc !important;
}

[data-theme="dark"] .progress-star-bar {
  background: rgba(255, 255, 255, 0.12) !important;
}

/* Dark Mode Google Maps Embed Filter */
[data-theme="dark"] .map-container iframe,
[data-theme="dark"] iframe[src*="google.com/maps"] {
  filter: invert(92%) hue-rotate(180deg) contrast(1.15) brightness(0.85);
  border-radius: var(--radius-md);
}

/* Dark Mode Location Section & Plus Code Badge */
[data-theme="dark"] .badge.bg-light.text-dark {
  background-color: #1e293b !important;
  color: #f8fafc !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}

/* Dark Mode Footer Styling */
[data-theme="dark"] footer {
  background-color: #090d16 !important;
  border-top-color: rgba(255, 255, 255, 0.08) !important;
  color: #cbd5e1 !important;
}

[data-theme="dark"] footer h4,
[data-theme="dark"] footer h5,
[data-theme="dark"] footer h6,
[data-theme="dark"] footer .brand-title,
[data-theme="dark"] .footer-brand-title {
  color: #ffffff !important;
}

[data-theme="dark"] footer p,
[data-theme="dark"] footer .text-muted {
  color: #94a3b8 !important;
}

[data-theme="dark"] footer a {
  color: #cbd5e1 !important;
}

[data-theme="dark"] footer a:hover {
  color: #10b981 !important;
}

[data-theme="dark"] .footer-rating-text {
  color: #f8fafc !important;
}

[data-theme="dark"] .mobile-bottom-bar {
  background: rgba(19, 27, 46, 0.96) !important;
  border-top-color: rgba(255, 255, 255, 0.08) !important;
}

/* Custom Utility Helper Classes */
.fs-7 { font-size: 0.8125rem !important; }
.fs-8 { font-size: 0.75rem !important; }
.fw-extrabold { font-weight: 800 !important; }
.py-1\.5 { padding-top: 0.375rem !important; padding-bottom: 0.375rem !important; }
.py-2\.5 { padding-top: 0.625rem !important; padding-bottom: 0.625rem !important; }
.px-2\.5 { padding-left: 0.625rem !important; padding-right: 0.625rem !important; }
.shadow-xs { box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05) !important; }
.shadow-md { box-shadow: var(--shadow-md) !important; }
.shadow-xl { box-shadow: var(--shadow-xl) !important; }
.opacity-90 { opacity: 0.9 !important; }
.font-mono { font-family: monospace, SFMono-Regular, Consolas, monospace !important; }

@media (min-width: 992px) {
  .w-lg-auto { width: auto !important; }
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Outfit', sans-serif;
}

/* Glassmorphism Header & Top Bar */
.top-announcement {
  background: linear-gradient(135deg, var(--dark) 0%, #1e293b 100%);
  color: #f1f5f9;
  font-size: 0.875rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-nav {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-smooth);
  z-index: 1040;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.brand-logo-img {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  object-fit: contain;
  background: #ffffff;
  border-radius: 10px;
  padding: 2px;
  border: 1px solid rgba(5, 150, 105, 0.2);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease;
  margin-right: 6px;
}

.brand-logo-img:hover {
  transform: scale(1.05);
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.1;
  flex-shrink: 0;
}

.brand-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.5px;
  color: var(--dark);
  margin-bottom: 0;
  line-height: 1;
  white-space: nowrap;
}

.brand-title span {
  color: var(--primary);
}

.brand-subtitle {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.2px;
  line-height: 1;
  white-space: nowrap;
}

/* Status Pulse Pill */
.status-badge-open {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  font-weight: 600;
  font-size: 0.775rem;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(16, 185, 129, 0.25);
  white-space: nowrap;
  flex-shrink: 0;
}

.badge-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background-color: #10b981;
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-animation 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse-animation {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* Custom Navigation Pills */
.nav-tab-pills {
  display: flex;
  flex-wrap: nowrap !important;
  align-items: center;
  gap: 2px;
}

.nav-tab-pills .nav-link {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
  border: 1px solid transparent;
  white-space: nowrap;
}

.nav-tab-pills .nav-link:hover {
  color: var(--primary);
  background: rgba(5, 150, 105, 0.08);
}

.nav-tab-pills .nav-link.active {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: 0 3px 10px rgba(5, 150, 105, 0.3);
}

.btn-whatsapp {
  white-space: nowrap;
  flex-shrink: 0;
}

/* Hero Section */
.hero-wrapper {
  position: relative;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #064e3b 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: var(--white);
  box-shadow: var(--shadow-xl);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(15,23,42,0.92) 0%, rgba(15,23,42,0.75) 0%, rgba(15,23,42,0.3) 80%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 4rem 3rem;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  right: 0;
}

.rating-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(5, 150, 105, 0.12);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(5, 150, 105, 0.25);
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 0.875rem;
}

.rating-chip i {
  color: var(--accent);
}

[data-theme="dark"] .rating-chip {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.35);
  color: #34d399;
}

/* Hero Section Background Image Banner (Light & Dark Adaptive with Clear Visibility) */
.hero-split-section {
  position: relative;
  z-index: 1;
  background-color: #0f172a;
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: var(--dark);
  padding: 3.25rem 2.25rem;
  /* border: 1px solid rgba(5, 150, 105, 0.2); */
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
  transition: var(--transition-smooth);
}

/* Background Image Layer - High Visibility */
.hero-split-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -2;
  background-image: url('../images/dust-free.webp');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  transition: background-image 0.4s ease;
}

/* Gradient Overlay - Protects Left Side Text Contrast while keeping Right Side Image Crisp */
.hero-split-section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  background: linear-gradient(100deg, 
    rgba(248, 250, 252, 0.96) 0%, 
    rgba(248, 250, 252, 0.85) 45%, 
    rgba(255, 255, 255, 0.45) 75%, 
    rgba(209, 250, 229, 0.25) 100%
  );
  pointer-events: none;
}

.hero-title {
  color: #0f172a !important;
  line-height: 1.15;
}

.hero-brand-name {
  color: #059669 !important;
}

.hero-hindi-name {
  color: #64748b !important;
}

.hero-lead {
  color: #334155 !important;
}

.hero-stat-card {
  background: #ffffff !important;
  border-color: rgba(5, 150, 105, 0.18) !important;
  transition: var(--transition-fast);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.hero-stat-card span {
  color: #0f172a !important;
}

.hero-stat-card small {
  color: #64748b !important;
}

.hero-stat-card:hover {
  transform: translateY(-2px);
  border-color: #059669 !important;
  box-shadow: 0 8px 20px rgba(5, 150, 105, 0.15);
}

.hero-storefront-wrap {
  border-color: rgba(5, 150, 105, 0.2) !important;
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.12) !important;
}

.hero-floating-card {
  background: rgba(15, 23, 42, 0.94) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: rgba(255, 255, 255, 0.18) !important;
  max-width: 280px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4) !important;
}

/* Dark Mode Overrides for Hero Split Section */
[data-theme="dark"] .hero-split-section {
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5) !important;
  color: #ffffff !important;
}

[data-theme="dark"] .hero-split-section::before {
  background-image: url('../images/shop1.jpg');
}

[data-theme="dark"] .hero-split-section::after {
  background: linear-gradient(100deg, 
    rgba(9, 13, 22, 0.96) 0%, 
    rgba(15, 23, 42, 0.88) 45%, 
    rgba(15, 23, 42, 0.45) 75%, 
    rgba(4, 120, 87, 0.25) 100%
  );
}

[data-theme="dark"] .hero-title {
  color: #f8fafc !important;
}

[data-theme="dark"] .hero-brand-name {
  color: #10b981 !important;
}

[data-theme="dark"] .hero-hindi-name {
  color: #94a3b8 !important;
}

[data-theme="dark"] .hero-lead {
  color: #cbd5e1 !important;
}


[data-theme="dark"] .hero-stat-card {
  background: #131b2e !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: none !important;
}

[data-theme="dark"] .hero-stat-card span {
  color: #f8fafc !important;
}

[data-theme="dark"] .hero-stat-card small {
  color: #94a3b8 !important;
}

[data-theme="dark"] .hero-storefront-wrap {
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6) !important;
}

/* Quick Info Strip / GMB Details Card */
.gmb-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
  transition: var(--transition-smooth);
}

.gmb-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.info-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.info-img-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease;
}

.gmb-card:hover .info-img-box {
  transform: scale(1.08);
}

/* Action Buttons */
.btn-primary-custom {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  border: none;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3);
  transition: var(--transition-smooth);
}

.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4);
  color: var(--white);
}

.btn-secondary-custom {
  background: var(--white);
  color: var(--dark);
  border: 1px solid var(--border-color);
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  transition: var(--transition-smooth);
}

.btn-secondary-custom:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: var(--dark);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: #25D366;
  color: white;
  border: none;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  transition: var(--transition-smooth);
}

.btn-whatsapp:hover {
  background: #1da851;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

/* Gemini AI Summary Banner */
.gemini-summary-box {
  background: linear-gradient(135deg, #f0fdf4 0%, #eff6ff 100%);
  border: 1px solid #bbf7d0;
  border-left: 5px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.8rem;
  position: relative;
  overflow: hidden;
}

.gemini-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #4285F4, #9B51E0);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Section Header Styles */
.section-title-wrap {
  margin-bottom: 2.5rem;
}

.section-subtitle {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--dark);
}

/* Category Filter Cards */
.cat-pill {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background: var(--white);
  color: var(--text-main);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cat-pill:hover, .cat-pill.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

/* Category Cards System */
.category-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: var(--transition-smooth);
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.category-img-wrap {
  position: relative;
  height: 210px;
  overflow: hidden;
  background: #f1f5f9;
}

.category-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.category-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.category-card-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.category-card-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(5, 150, 105, 0.3);
}

.product-img-wrap {
  position: relative;
  height: 200px;
  background: #f8fafc;
  overflow: hidden;
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

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

.product-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(15, 23, 42, 0.85);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(4px);
}

.product-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--dark);
}

.product-desc {
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.product-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border-color);
}

.product-price {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--primary-dark);
}

.product-price del {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 4px;
}

.btn-add-item {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition-fast);
}

.btn-add-item:hover {
  background: var(--primary);
  color: var(--white);
  transform: scale(1.1);
}

/* Feature Spotlight Grid with Images */
.feature-box {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  height: 100%;
  transition: var(--transition-smooth);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.feature-box:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.feature-img-wrap {
  position: relative;
  height: 200px;
  width: 100%;
  overflow: hidden;
  background: #e2e8f0;
}

.feature-img-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

.feature-box:hover .feature-img-wrap img {
  transform: scale(1.08);
}

.feature-badge-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.85);
  color: var(--white);
  font-size: 0.725rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
}

.feature-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Popular Times Visualizer Chart */
.popular-times-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.chart-bars-container {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 180px;
  padding-top: 20px;
  border-bottom: 2px solid var(--border-color);
  gap: 12px;
}

.bar-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  position: relative;
}

.chart-bar {
  width: 100%;
  max-width: 32px;
  background: linear-gradient(180deg, var(--primary) 0%, #34d399 100%);
  border-radius: 6px 6px 0 0;
  transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  cursor: pointer;
}

.chart-bar:hover {
  background: linear-gradient(180deg, var(--accent) 0%, #fbbf24 100%);
}

.bar-tooltip {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark);
  color: var(--white);
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.chart-bar:hover .bar-tooltip {
  opacity: 1;
}

.bar-label {
  margin-top: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Reviews Breakdown */
.review-score-box {
  background: linear-gradient(135deg, var(--dark) 0%, #1e293b 100%);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.big-rating {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  color: var(--white);
}

.stars-gold {
  color: var(--accent);
  font-size: 1.25rem;
  margin: 0.5rem 0;
}

.progress-star-bar {
  height: 8px;
  border-radius: 4px;
  background: #e2e8f0;
  overflow: hidden;
}

.progress-star-fill {
  background: var(--accent);
  height: 100%;
}

.review-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  height: 100%;
  transition: var(--transition-smooth);
}

.review-card:hover {
  border-color: rgba(5, 150, 105, 0.4);
  box-shadow: var(--shadow-md);
}

.user-avatar-img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-light);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  color: var(--white);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

/* Photo Gallery Grid */
.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 240px;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.8) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  color: var(--white);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* Floating WhatsApp Shopping Drawer / Cart */
.floating-cart-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: var(--white);
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  z-index: 1050;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
}

.floating-cart-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
  color: var(--white);
}

/* Floating Back to Top Button */
.back-to-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: 0 8px 24px rgba(5, 150, 105, 0.4);
  z-index: 1045;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.back-to-top-btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top-btn:hover {
  background: var(--primary-dark);
  color: #ffffff;
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 12px 28px rgba(5, 150, 105, 0.55);
}

[data-theme="dark"] .back-to-top-btn {
  background: #10b981;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.45);
}

@media (max-width: 767.98px) {
  .back-to-top-btn {
    bottom: 74px;
    right: 16px;
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--dark);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 800;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
}

/* Offcanvas Cart Customization */
.cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

/* Footer Styling System (Light Mode Base) */
footer {
  background: #f8fafc;
  color: #475569;
  padding-top: 4rem;
  padding-bottom: 2rem;
  border-top: 1px solid #e2e8f0;
}

footer h4, footer h5, footer h6 {
  color: #0f172a;
  font-weight: 700;
}

footer p, footer .text-muted {
  color: #475569;
}

footer a {
  color: #475569;
  text-decoration: none;
  transition: var(--transition-fast);
}

footer a:hover {
  color: #059669;
}

.footer-brand-title {
  color: #0f172a !important;
  font-weight: 800;
}

.footer-rating-text {
  color: #0f172a;
  font-weight: 600;
  font-size: 0.85rem;
}

.btn-whatsapp {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  border-radius: var(--radius-full) !important;
  padding: 10px 20px !important;
  border: none !important;
  box-shadow: 0 4px 16px rgba(5, 150, 105, 0.35) !important;
  transition: var(--transition-smooth) !important;
}

.btn-whatsapp:hover {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.5) !important;
}

/* Responsive Design Rules across Breakpoints */

/* Mobile Bottom Quick Action Bar */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--dark-surface);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 16px;
  z-index: 1040;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.2);
}

/* Custom Glassmorphism Toast Notification System */
/* Custom Glassmorphism Toast Notification System (Centered & Pill Shaped) */
.toast-container {
  z-index: 1100 !important;
  pointer-events: none;
  top: 12px !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
}

.custom-toast {
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.825rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(-20px) scale(0.92);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  margin: 0 auto 8px auto;
  pointer-events: auto;
  white-space: nowrap;
  max-width: 90vw;
}

.custom-toast.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.custom-toast-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* Mobile Toast Overrides (Compact & Centered Top) */
@media (max-width: 767.98px) {
  .toast-container {
    top: 10px !important;
    padding: 0 !important;
    width: 90% !important;
    max-width: 320px !important;
  }
  
  .custom-toast {
    padding: 6px 14px;
    font-size: 0.775rem;
    border-radius: var(--radius-full);
    width: max-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  }

  .custom-toast-icon {
    width: 22px;
    height: 22px;
    font-size: 0.7rem;
  }
}

/* Comprehensive Responsive UI System & Clamp Typography */

.product-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--dark);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.25;
  min-height: 2.5em;
}

.section-title {
  font-size: clamp(1.45rem, 3.5vw, 2.25rem);
  font-weight: 800;
  color: var(--dark);
}

.section-subtitle {
  color: var(--primary);
  font-weight: 700;
  font-size: clamp(0.75rem, 1.8vw, 0.875rem);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.hero-content h1 {
  font-size: clamp(1.65rem, 4.2vw, 3.1rem);
  line-height: 1.15;
}

/* Category horizontal touch scrollbar hiding */
.overflow-x-auto {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.overflow-x-auto::-webkit-scrollbar {
  display: none;
}

.cat-pill {
  flex-shrink: 0;
  white-space: nowrap;
}

/* Mobile Bottom Quick Action Bar */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--dark-surface);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 12px;
  z-index: 1040;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.2);
}

.mobile-bottom-bar .btn {
  font-size: 0.8rem;
  padding: 8px 10px;
  border-radius: var(--radius-full);
}

/* Medium Laptops & Tablets (992px to 1200px) */
@media (min-width: 992px) and (max-width: 1200px) {
  .nav-tab-pills .nav-link {
    padding: 6px 12px;
    font-size: 0.85rem;
  }
  .brand-title {
    font-size: 1.35rem;
  }
  .category-img-wrap {
    height: 190px;
  }
}

/* Tablet & Laptop Viewports (Max 991.98px) */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: var(--white);
    padding: 1.15rem;
    border-radius: var(--radius-md);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.15);
    margin-top: 0.75rem;
    border: 1px solid var(--border-color);
  }

  [data-theme="dark"] .navbar-collapse {
    background: #131b2e !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5) !important;
  }

  .nav-tab-pills {
    flex-direction: column !important;
    width: 100%;
    gap: 6px !important;
  }

  .nav-tab-pills .nav-link {
    width: 100%;
    text-align: left;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
  }

  .hero-content {
    padding: 2.5rem 1.5rem;
  }
  .brand-title {
    font-size: 1.2rem;
  }
  .category-img-wrap {
    height: 180px;
  }
  .category-body {
    padding: 1.25rem;
  }
  .gallery-item {
    height: 190px;
  }
  .review-score-box {
    padding: 1.75rem 1.25rem;
  }
}

/* Mobile Smartphones (Max 767.98px) */
@media (max-width: 767.98px) {
  body {
    padding-bottom: 64px;
    overflow-x: hidden;
  }
  .top-announcement {
    font-size: 0.75rem;
    padding: 6px 0;
  }
  .hero-wrapper {
    min-height: 380px;
    border-radius: var(--radius-md);
  }
  .hero-content {
    padding: 1.75rem 1.15rem;
  }
  .gmb-card {
    padding: 0.75rem 0.65rem;
    border-radius: 12px;
  }
  .info-img-box {
    width: 42px;
    height: 42px;
    border-radius: 10px;
  }
  .gmb-card h6 {
    font-size: 0.825rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .gmb-card small {
    font-size: 0.7rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .category-img-wrap {
    height: 180px;
  }
  .category-body {
    padding: 1.15rem;
  }
  .category-card-title {
    font-size: 1.15rem;
  }
  .category-card-desc {
    font-size: 0.825rem;
    margin-bottom: 1rem;
  }
  .big-rating {
    font-size: 2.75rem;
  }
  .gallery-item {
    height: 170px;
  }
  .mobile-bottom-bar {
    display: flex;
  }

  /* Responsive Hero Split Section Rules */
  .hero-split-section {
    padding: 1.75rem 1.25rem;
    border-radius: var(--radius-md);
  }

  .hero-split-section::after {
    background: linear-gradient(180deg, 
      rgba(248, 250, 252, 0.96) 0%, 
      rgba(248, 250, 252, 0.85) 55%, 
      rgba(255, 255, 255, 0.4) 100%
    );
  }

  [data-theme="dark"] .hero-split-section::after {
    background: linear-gradient(180deg, 
      rgba(9, 13, 22, 0.96) 0%, 
      rgba(15, 23, 42, 0.88) 55%, 
      rgba(15, 23, 42, 0.45) 100%
    );
  }

  .hero-title {
    font-size: clamp(1.5rem, 5.5vw, 2rem) !important;
  }

  .hero-hindi-name {
    font-size: clamp(1rem, 3.8vw, 1.25rem) !important;
  }

  .hero-lead {
    font-size: 0.875rem !important;
    margin-bottom: 1rem !important;
  }

  .hero-stat-card {
    padding: 6px 4px !important;
  }

  .hero-stat-card span {
    font-size: 0.725rem !important;
  }

  .hero-stat-card small {
    font-size: 0.65rem !important;
  }

  .hero-storefront-wrap img {
    min-height: 220px !important;
    max-height: 300px !important;
  }

  .hero-floating-card {
    max-width: calc(100% - 24px) !important;
    margin: 12px !important;
    padding: 10px 12px !important;
  }
}

@media (max-width: 576px) {
  .hero-split-section .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Extra Small Phones (Max 480px) */
@media (max-width: 480px) {
  .brand-title {
    font-size: 1.1rem;
  }
  .brand-subtitle {
    display: none;
  }
  .brand-logo-img {
    height: 38px;
    width: 38px;
  }
  .hero-content h1 {
    font-size: 1.6rem;
  }
  .hero-content p.lead {
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
  }
  .category-img-wrap {
    height: 170px;
  }
  .btn-primary-custom, .btn-secondary-custom {
    padding: 9px 16px;
    font-size: 0.825rem;
    width: 100%;
    text-align: center;
  }
  .gallery-item {
    height: 150px;
  }
  .gemini-summary-box {
    padding: 1.15rem;
  }
}

