/* ==========================================================================
   DESI MANDI — DYNAMIC WEB, MOBILE & KIOSK APPLICATION STYLESHEET
   Supports 4 Live Themes + 3 Interactive Device Templates (Web, Mobile, iPad Kiosk)
   Prepared by Harinath Mallepally
   ========================================================================== */

:root,
[data-theme="mandi-fresh"] {
  --bg-page: #f7f6f1;
  --bg-surface: #ffffff;
  --bg-elevated: #eff6f1;
  --bg-hero: linear-gradient(135deg, #0d4a2b 0%, #15693f 55%, #0a351e 100%);
  --bg-flash: linear-gradient(135deg, #2a090d 0%, #5b1118 55%, #1e0b16 100%);
  --primary: #12633b;
  --primary-hover: #0d4a2b;
  --primary-light: #e6f4ec;
  --accent: #d92626;
  --accent-hover: #b81c1c;
  --gold: #f59e0b;
  --gold-light: #fef3c7;
  --text-main: #14241b;
  --text-muted: #526358;
  --text-on-Hero: #ffffff;
  --border-color: #dce5df;
  --card-shadow: 0 10px 28px -6px rgba(18, 99, 59, 0.08), 0 4px 10px -3px rgba(0, 0, 0, 0.04);
  --badge-bg: #d92626;
  --badge-text: #ffffff;
  --price-color: #d92626;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

/* THEME 2: FESTIVE UTSAV ROYALE (DIWALI MAROON & TEMPLE GOLD) */
[data-theme="diwali-utsav"] {
  --bg-page: #fdf8ee;
  --bg-surface: #ffffff;
  --bg-elevated: #faeed7;
  --bg-hero: linear-gradient(135deg, #540b14 0%, #7c1320 50%, #3d060d 100%);
  --bg-flash: linear-gradient(135deg, #3b0724 0%, #6d123f 55%, #240415 100%);
  --primary: #7c1320;
  --primary-hover: #540b14;
  --primary-light: #fce8ea;
  --accent: #c2410c;
  --accent-hover: #9a3412;
  --gold: #d97706;
  --gold-light: #fef3c7;
  --text-main: #2b0f13;
  --text-muted: #6e4f53;
  --text-on-Hero: #fffbeb;
  --border-color: #edd5b1;
  --card-shadow: 0 12px 30px -6px rgba(124, 19, 32, 0.12), 0 4px 12px -2px rgba(217, 119, 6, 0.08);
  --badge-bg: #b45309;
  --badge-text: #ffffff;
  --price-color: #991b1b;
}

/* THEME 3: NIGHT BAZAAR 8 PM FLASH (MODERN DARK MODE) */
[data-theme="night-bazaar"] {
  --bg-page: #0b101b;
  --bg-surface: #151e30;
  --bg-elevated: #1e2940;
  --bg-hero: linear-gradient(135deg, #092218 0%, #113c29 50%, #0b1528 100%);
  --bg-flash: linear-gradient(135deg, #3b0a1e 0%, #701432 50%, #121829 100%);
  --primary: #10b981;
  --primary-hover: #059669;
  --primary-light: rgba(16, 185, 129, 0.16);
  --accent: #f43f5e;
  --accent-hover: #e11d48;
  --gold: #fbbf24;
  --gold-light: rgba(251, 191, 36, 0.16);
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-on-Hero: #ffffff;
  --border-color: #26344d;
  --card-shadow: 0 14px 32px -6px rgba(0, 0, 0, 0.55);
  --badge-bg: #f43f5e;
  --badge-text: #ffffff;
  --price-color: #fbbf24;
}

/* THEME 4: CLEAN EXPRESS INSTACART (MINIMALIST WHITE RETAIL) */
[data-theme="clean-express"] {
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-elevated: #f1f5f9;
  --bg-hero: linear-gradient(135deg, #111827 0%, #1f2937 100%);
  --bg-flash: linear-gradient(135deg, #7f1d1d 0%, #991b1b 100%);
  --primary: #059669;
  --primary-hover: #047857;
  --primary-light: #ecfdf5;
  --accent: #e11d48;
  --accent-hover: #be123c;
  --gold: #eab308;
  --gold-light: #fef9c3;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-on-Hero: #ffffff;
  --border-color: #e2e8f0;
  --card-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  --badge-bg: #0f172a;
  --badge-text: #ffffff;
  --price-color: #e11d48;
}

/* ==========================================================================
   BASE RESET & HUMAN EDITORIAL TYPOGRAPHY
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  transition: background-color 0.25s ease, color 0.25s ease;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.55;
  padding-bottom: 68px; /* Space for collapsible bottom demo switcher */
}

h1, h2, .hero-title, .section-title-group h2, .flash-title-area h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.015em;
}

/* Authentic Desi Mandi Store Sign Brush Script Inline Wordmark */
.brand-inline-script {
  font-family: 'Kalam', cursive;
  font-weight: 700;
  font-size: 1.12em;
  background: #ffffff;
  padding: 1px 10px 2px;
  border-radius: 99px;
  display: inline-block;
  line-height: 1.15;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.brand-inline-script .dm-desi {
  color: #e61919;
}

.brand-inline-script .dm-mandi {
  color: #38b449;
}

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

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

.container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   1. FLOATING DEMO PREVIEW SWITCHER (MOVED OFF TOP OF WEBSITE TO BOTTOM DOCK)
   ========================================================================== */
.studio-control-bar {
  position: fixed;
  bottom: 12px;
  left: 16px;
  right: 16px;
  max-width: 1320px;
  margin: 0 auto;
  z-index: 1200;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(12px);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 8px 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.studio-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.studio-badge-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.studio-pill {
  background: #f59e0b;
  color: #0f172a;
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
}

.studio-title {
  font-size: 0.8rem;
  font-weight: 500;
  color: #cbd5e1;
}

.studio-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.control-group {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(30, 41, 59, 0.9);
  padding: 3px 8px;
  border-radius: 8px;
  border: 1px solid #334155;
}

.control-label {
  font-size: 0.7rem;
  color: #94a3b8;
  font-weight: 600;
}

.studio-select {
  background: #0f172a;
  color: #f8fafc;
  border: 1px solid #334155;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 0.76rem;
  font-weight: 500;
  cursor: pointer;
}

.template-switcher {
  display: flex;
  gap: 3px;
}

.tpl-btn {
  background: transparent;
  color: #cbd5e1;
  border: 1px solid transparent;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.tpl-btn:hover {
  background: #1e293b;
  color: #ffffff;
}

.tpl-btn.active {
  background: #16a34a;
  color: #ffffff;
  font-weight: 600;
}

.json-inspect-btn {
  background: #1e293b;
  color: #e2e8f0;
  border: 1px solid #475569;
  padding: 5px 10px;
  border-radius: 7px;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.json-inspect-btn:hover {
  background: #334155;
  color: #ffffff;
}

.demo-minimize-btn {
  background: rgba(239, 68, 68, 0.16);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.35);
  padding: 5px 10px;
  border-radius: 7px;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
}

.demo-minimize-btn:hover {
  background: #dc2626;
  color: #ffffff;
}

.demo-restore-fab {
  position: fixed;
  bottom: 14px;
  left: 16px;
  z-index: 1200;
  background: #0f172a;
  color: #f8fafc;
  border: 1.5px solid #f59e0b;
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   2. PRICE MATCH TICKER & AUTHENTIC DESI MANDI STORE HEADER
   ========================================================================== */
.price-match-ticker {
  background: #b91c1c;
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 500;
  padding: 8px 16px;
  text-align: center;
}

.price-match-ticker span.highlight-pill {
  background: #fef08a;
  color: #7f1d1d;
  padding: 2px 9px;
  border-radius: 99px;
  font-weight: 700;
  margin-right: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
}

.site-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  gap: 14px;
  flex-wrap: nowrap;
}

@media (max-width: 1120px) {
  .header-inner {
    flex-wrap: wrap;
  }
}

.brand-area {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  background: #ffffff;
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid rgba(234, 88, 12, 0.22);
}

.brand-lockup-img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.store-info-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-elevated);
  padding: 7px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  font-size: 0.78rem;
  flex-shrink: 0;
}

.store-info-pill .loc-icon {
  font-size: 1.05rem;
}

.store-info-pill .loc-details strong {
  display: block;
  color: var(--text-main);
  font-size: 0.8rem;
  font-weight: 700;
}

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

.store-info-pill .loc-details span.store-hours-line {
  color: var(--primary);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-main);
  text-decoration: none;
  transition: all 0.2s;
}

.nav-action-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.nav-action-btn.flash-btn {
  background: #c2410c;
  color: #ffffff;
  border: none;
}

.nav-action-btn.flash-btn:hover {
  background: #9a3412;
  color: #ffffff;
}

.nav-action-btn.cart-btn {
  background: var(--primary);
  color: #ffffff;
  border: none;
}

.cart-count-badge {
  background: #fde047;
  color: #111827;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
}

/* ==========================================================================
   3. HERO BANNER & WEEKLY ANNOUNCEMENT HUB
   ========================================================================== */
.hero-section {
  background: var(--bg-hero);
  color: var(--text-on-Hero);
  padding: 40px 0;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.22fr 0.98fr;
  gap: 32px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(2rem, 3.3vw, 2.85rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 14px;
  letter-spacing: -0.015em;
}

.hero-title span.gold-accent {
  color: #fde047;
  font-style: italic;
}

.hero-subtitle {
  font-size: 1.04rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 24px;
  max-width: 620px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.btn-primary-gold {
  background: #fbbf24;
  color: #111827;
  font-weight: 800;
  padding: 13px 24px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-size: 0.94rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 8px 20px rgba(251, 191, 36, 0.3);
}

.btn-primary-gold:hover {
  transform: translateY(-2px);
  background: #f59e0b;
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  font-weight: 700;
  padding: 13px 22px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.94rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.22);
}

.hero-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.pillar-mini-card {
  background: rgba(0, 0, 0, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 12px;
}

.pillar-mini-card strong {
  display: block;
  color: #fde047;
  font-size: 0.88rem;
  margin-bottom: 2px;
}

.pillar-mini-card span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.82);
}

/* Right Side Hero Spotlight Card */
.hero-spotlight-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
}

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

.spotlight-header span.tag {
  background: #dc2626;
  color: #fff;
  font-weight: 800;
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 99px;
  text-transform: uppercase;
}

.spotlight-collage {
  width: 100%;
  height: 290px;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.25s;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.spotlight-collage:hover {
  transform: scale(1.02);
}

.spotlight-footer {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}

/* ==========================================================================
   4. SECTION HEADERS
   ========================================================================== */
.section-block {
  padding: 52px 0;
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 28px;
}

.section-title-group .eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 6px;
}

.section-title-group h2 {
  font-size: clamp(1.55rem, 2.5vw, 2.15rem);
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.section-title-group p {
  color: var(--text-muted);
  font-size: 0.94rem;
  margin-top: 4px;
}

/* ==========================================================================
   5. AFTER-8 PM FRESH KITCHEN FLASH RESCUE SECTION
   ========================================================================== */
.flash-rescue-section {
  background: var(--bg-flash);
  color: #ffffff;
  border-radius: 26px;
  padding: 36px;
  margin: 36px 0;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.flash-top-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.flash-badge-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #dc2626;
  color: #ffffff;
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.pulse-dot {
  width: 9px;
  height: 9px;
  background: #fde047;
  border-radius: 50%;
  animation: pulseGlow 1.4s infinite;
}

@keyframes pulseGlow {
  0% { transform: scale(0.95); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.5; }
  100% { transform: scale(0.95); opacity: 1; }
}

.flash-title-area h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  font-weight: 900;
  color: #fde047;
}

.flash-title-area p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.94rem;
  max-width: 680px;
  margin-top: 6px;
}

.countdown-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1.5px solid rgba(253, 224, 71, 0.45);
  border-radius: 16px;
  padding: 14px 20px;
  text-align: center;
  min-width: 240px;
}

.countdown-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fde047;
  font-weight: 700;
  margin-bottom: 4px;
}

.countdown-timer {
  font-size: 1.65rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: #ffffff;
}

.flash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(275px, 1fr));
  gap: 20px;
}

.flash-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, border-color 0.2s;
}

.flash-card:hover {
  transform: translateY(-4px);
  border-color: #fde047;
}

.flash-img-wrap {
  position: relative;
  height: 185px;
  overflow: hidden;
}

.flash-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flash-discount-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #dc2626;
  color: #fff;
  font-weight: 900;
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 8px;
}

.flash-remaining-pill {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.8);
  color: #fde047;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 99px;
}

.flash-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.flash-card-title {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: #ffffff;
}

.inventory-bar-track {
  height: 7px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 12px;
}

.inventory-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #fbbf24, #ef4444);
  border-radius: 99px;
}

.flash-cross-sell {
  font-size: 0.76rem;
  background: rgba(0, 0, 0, 0.28);
  color: #fef08a;
  padding: 8px 10px;
  border-radius: 8px;
  margin-bottom: 14px;
}

.flash-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.flash-price-group .now-price {
  font-size: 1.45rem;
  font-weight: 900;
  color: #4ade80;
}

.flash-price-group .was-price {
  font-size: 0.85rem;
  text-decoration: line-through;
  color: rgba(255, 255, 255, 0.6);
  margin-left: 6px;
}

.reserve-box-btn {
  background: #fde047;
  color: #111827;
  border: none;
  padding: 9px 14px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.2s;
}

.reserve-box-btn:hover {
  background: #facc15;
}

/* ==========================================================================
   6. INTERACTIVE WEEKLY FLYERS SHOWCASE (FROM weekly-visuals FOLDER)
   ========================================================================== */
.flyer-filter-tabs,
.catalog-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-tab-btn {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1.5px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-tab-btn:hover {
  border-color: var(--primary);
}

.filter-tab-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.flyers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
  gap: 22px;
}

.flyer-poster-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  display: flex;
  flex-direction: column;
}

.flyer-poster-card:hover {
  transform: translateY(-5px);
}

.flyer-img-container {
  position: relative;
  height: 330px;
  background: #111827;
  overflow: hidden;
  cursor: pointer;
}

.flyer-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.35s ease;
}

.flyer-poster-card:hover .flyer-img-container img {
  transform: scale(1.04);
}

.flyer-badge-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--badge-bg);
  color: var(--badge-text);
  font-size: 0.74rem;
  font-weight: 800;
  padding: 5px 11px;
  border-radius: 99px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

.flyer-region-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.75);
  color: #fde047;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 6px;
}

.flyer-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.flyer-card-body h3 {
  font-size: 1.02rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.flyer-dates {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 10px;
}

.flyer-highlights {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.flyer-highlights li {
  font-size: 0.73rem;
  background: var(--bg-elevated);
  color: var(--text-main);
  padding: 3px 9px;
  border-radius: 6px;
  font-weight: 600;
  border: 1px solid var(--border-color);
}

.inspect-flyer-btn {
  width: 100%;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 9px 12px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s;
}

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

/* ==========================================================================
   7. DYNAMIC WEEKLY DEALS CATALOG GRID (JSON-DRIVEN)
   ========================================================================== */
.deals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  gap: 20px;
}

.deal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.deal-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
}

.deal-img-box {
  position: relative;
  height: 195px;
  background: #ffffff;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

.deal-img-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
  transition: transform 0.25s ease;
}

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

.deal-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--badge-bg);
  color: var(--badge-text);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 6px;
  text-transform: uppercase;
}

.deal-cat-tag {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(15, 23, 42, 0.78);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}

.deal-body {
  padding: 15px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.deal-title {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
  line-height: 1.3;
}

.deal-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.deal-price-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-color);
}

.price-block .sale-price {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--price-color);
  line-height: 1;
}

.price-block .unit-label {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-muted);
}

.price-block .reg-price {
  display: block;
  font-size: 0.74rem;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-top: 2px;
}

.add-deal-btn {
  background: var(--primary);
  color: #ffffff;
  border: none;
  padding: 8px 13px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s;
}

.add-deal-btn:hover {
  background: var(--primary-hover);
}

/* ==========================================================================
   8. RECEIPT QR & IN-STORE IPAD KIOSK PREVIEW BANNER (ON DESKTOP VIEW)
   ========================================================================== */
.kiosk-promo-banner {
  background: var(--bg-elevated);
  border: 2px solid var(--border-color);
  border-radius: 22px;
  padding: 32px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
}

.kiosk-steps-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 20px 0;
}

.kiosk-step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 14px;
  border-radius: 12px;
}

.kiosk-step-card .step-num {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 99px;
  margin-bottom: 6px;
}

.kiosk-step-card h4 {
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.kiosk-step-card p {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* ==========================================================================
   9. MOBILE APP SIMULATOR VIEW (WHEN TEMPLATE = MOBILE)
   ========================================================================== */
.device-stage-wrapper {
  display: none;
  padding: 36px 16px 60px;
  background: radial-gradient(circle at center, #1e293b 0%, #090d16 100%);
  min-height: calc(100vh - 55px);
}

body[data-template="mobile"] .desktop-view-wrapper,
body[data-template="kiosk"] .desktop-view-wrapper,
body[data-template="admin"] .desktop-view-wrapper {
  display: none;
}

body[data-template="mobile"] #mobileStageWrapper {
  display: block;
}

body[data-template="kiosk"] #kioskStageWrapper {
  display: block;
}

body[data-template="admin"] #adminStageWrapper {
  display: block;
}

.stage-Caption {
  text-align: center;
  color: #e2e8f0;
  margin-bottom: 22px;
}

.stage-Caption h2 {
  font-size: 1.4rem;
  color: #fde047;
}

.stage-Caption p {
  font-size: 0.88rem;
  color: #94a3b8;
}

.phone-frame {
  width: 412px;
  max-width: 100%;
  height: 820px;
  margin: 0 auto;
  background: var(--bg-page);
  color: var(--text-main);
  border-radius: 46px;
  border: 12px solid #1e293b;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.65), 0 0 0 2px #475569;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.phone-status-bar {
  background: var(--primary);
  color: #ffffff;
  padding: 10px 22px 8px;
  display: flex;
  justify-content: space-between;
  font-size: 0.74rem;
  font-weight: 700;
}

.phone-app-header {
  background: var(--primary);
  color: #ffffff;
  padding: 10px 16px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.phone-app-header .app-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.phone-app-header img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid #fde047;
}

.phone-scroll-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
}

.phone-bottom-nav {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 8px 6px 12px;
}

.phone-tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
}

.phone-tab-btn.active {
  color: var(--primary);
}

.phone-tab-btn span.ico {
  font-size: 1.2rem;
}

/* ==========================================================================
   10. IN-STORE IPAD KIOSK SIMULATOR VIEW (WHEN TEMPLATE = KIOSK)
   ========================================================================== */
.ipad-frame {
  max-width: 1060px;
  margin: 0 auto;
  min-height: 670px;
  background: var(--bg-surface);
  color: var(--text-main);
  border-radius: 32px;
  border: 16px solid #1e293b;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 0 2px #475569;
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
}

.kiosk-left-panel {
  background: var(--bg-hero);
  color: #ffffff;
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.kiosk-right-panel {
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.emoji-rating-row {
  display: flex;
  gap: 10px;
  margin: 10px 0 18px;
}

.emoji-btn {
  flex: 1;
  padding: 12px 8px;
  border-radius: 12px;
  border: 2px solid var(--border-color);
  background: var(--bg-page);
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

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

/* ==========================================================================
   11. MODALS & SLIDE-OVER DRAWER (LIGHTBOX, CART, JSON INSPECTOR)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 13, 22, 0.8);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-card {
  background: var(--bg-surface);
  color: var(--text-main);
  border-radius: 20px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  border: 1px solid var(--border-color);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  position: relative;
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--bg-elevated);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
}

.json-pre-box {
  background: #0d1322;
  color: #38bdf8;
  padding: 16px;
  border-radius: 12px;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.78rem;
  overflow-x: auto;
  max-height: 55vh;
  margin-top: 14px;
}

/* Footer */
.site-footer {
  background: #090d16;
  color: #cbd5e1;
  padding: 48px 0 32px;
  margin-top: 40px;
  border-top: 3px solid var(--gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  margin-bottom: 28px;
}

.footer-col h4 {
  color: #fde047;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.footer-col p, .footer-col li {
  font-size: 0.83rem;
  color: #94a3b8;
  margin-bottom: 6px;
  list-style: none;
}

/* Responsive adjustments */
@media (max-width: 920px) {
  .hero-grid,
  .kiosk-promo-banner,
  .ipad-frame {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   12. DESIMATE AI MOBILE AGENT INTERFACE (CONVERSATIONAL GROCERY & FLASH AGENT)
   ========================================================================== */
.desimate-agent-header {
  background: var(--bg-hero);
  color: #ffffff;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.desimate-identity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.desimate-avatar-ring {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fde047;
  padding: 2px;
  flex-shrink: 0;
}

.desimate-avatar-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.desimate-online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  background: #22c55e;
  border: 2px solid #090d16;
  border-radius: 50%;
}

.desimate-title-block h3 {
  font-size: 0.96rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 6px;
}

.desimate-ai-badge {
  background: #fde047;
  color: #111827;
  font-size: 0.62rem;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: 99px;
  text-transform: uppercase;
}

.desimate-title-block p {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.85);
}

.desimate-chat-stream {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-page);
}

.dm-msg {
  display: flex;
  flex-direction: column;
  max-width: 92%;
  animation: fadeInMsg 0.22s ease-out;
}

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

.dm-msg.bot {
  align-self: flex-start;
}

.dm-msg.user {
  align-self: flex-end;
}

.dm-bubble {
  padding: 11px 14px;
  border-radius: 16px;
  font-size: 0.81rem;
  line-height: 1.45;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.dm-msg.bot .dm-bubble {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-top-left-radius: 4px;
}

.dm-msg.user .dm-bubble {
  background: var(--primary);
  color: #ffffff;
  border-bottom-right-radius: 4px;
  font-weight: 600;
}

.dm-sender-label {
  font-size: 0.66rem;
  font-weight: 800;
  color: var(--text-muted);
  margin-bottom: 3px;
  padding: 0 4px;
}

.dm-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.dm-mini-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 9px;
  display: flex;
  gap: 10px;
  align-items: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.dm-mini-card img {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}

.dm-mini-card-info {
  flex: 1;
  min-width: 0;
}

.dm-mini-card-info h4 {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
  margin-bottom: 2px;
}

.dm-mini-card-info .dm-meta {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.dm-mini-card-info .dm-price-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.dm-mini-card-info .dm-price {
  font-size: 0.92rem;
  font-weight: 900;
  color: var(--price-color);
}

.dm-action-chip-btn {
  background: var(--primary);
  color: #ffffff;
  border: none;
  padding: 5px 10px;
  border-radius: 7px;
  font-size: 0.7rem;
  font-weight: 800;
  cursor: pointer;
}

.dm-prompt-tray {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 8px 10px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.dm-prompt-tray::-webkit-scrollbar {
  display: none;
}

.dm-prompt-pill {
  flex-shrink: 0;
  background: var(--bg-elevated);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.dm-prompt-pill:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.dm-input-bar {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 10px 12px 14px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.dm-text-input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--border-color);
  background: var(--bg-page);
  color: var(--text-main);
  font-size: 0.8rem;
}

.dm-text-input:focus {
  outline: none;
  border-color: var(--primary);
}

.dm-send-btn {
  background: var(--primary);
  color: #ffffff;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 0.95rem;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Floating DesiMate Button on Desktop View */
.desimate-floating-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 950;
  background: linear-gradient(135deg, #12633b, #0d4a2b);
  color: #ffffff;
  border: 2px solid #fde047;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.88rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.2s;
}

.desimate-floating-fab:hover {
  transform: translateY(-3px) scale(1.02);
}

body[data-template="mobile"] .desimate-floating-fab,
body[data-template="kiosk"] .desimate-floating-fab {
  display: none;
}

/* ==========================================================================
   13. GEMINI GENERATIVE AI SEARCH BAR, VOICE ASSISTANT & CONSULTATIVE CARDS
   ========================================================================== */
.genai-search-container {
  flex: 1;
  max-width: 490px;
  min-width: 260px;
  position: relative;
}

.genai-search-box {
  display: flex;
  align-items: center;
  background: var(--bg-page);
  border: 2px solid var(--primary);
  border-radius: 999px;
  padding: 3px 6px 3px 14px;
  box-shadow: 0 4px 16px rgba(18, 99, 59, 0.12);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.genai-search-box:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-light);
}

.genai-sparkle-icon {
  font-size: 1rem;
  margin-right: 8px;
}

.genai-search-input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-main);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 8px 4px;
}

.genai-search-input:focus {
  outline: none;
}

.voice-mic-btn {
  background: var(--bg-elevated);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.2s;
  flex-shrink: 0;
}

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

.voice-mic-btn.listening {
  background: #dc2626;
  color: #ffffff;
  border-color: #dc2626;
  animation: micPulse 1s infinite;
}

@keyframes micPulse {
  0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(220, 38, 38, 0); }
  100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

.genai-ask-btn {
  background: linear-gradient(135deg, var(--primary), #0d4a2b);
  color: #ffffff;
  border: none;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  margin-left: 5px;
  cursor: pointer;
  white-space: nowrap;
}

/* Desktop Generative AI Consultative Answer Panel */
.web-genai-panel {
  background: var(--bg-surface);
  border: 2px solid var(--primary);
  border-radius: 20px;
  padding: 22px 26px;
  margin-bottom: 28px;
  box-shadow: 0 16px 40px rgba(18, 99, 59, 0.14);
  display: none;
  animation: fadeInMsg 0.25s ease-out;
}

.web-genai-panel.active {
  display: block;
}

.genai-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 14px;
}

.genai-intent-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0;
}

.genai-intent-btn {
  background: var(--bg-elevated);
  color: var(--text-main);
  border: 1.5px solid var(--primary);
  padding: 9px 15px;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.18s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.genai-intent-btn:hover {
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
}

.dm-intent-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 9px;
}

.dm-intent-choice-btn {
  background: var(--bg-elevated);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s;
}

.dm-intent-choice-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* ==========================================================================
   14. HUMAN-CRAFTED REFINEMENTS: MOBILE PILL BUTTONS, NATIVE SCROLLBARS & BANNERS
   ========================================================================== */
.concierge-helper-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 16px 20px;
  border-radius: 16px;
  margin-bottom: 24px;
  box-shadow: var(--card-shadow);
}

.mobile-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.mobile-top-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border: none;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 6px 10px;
  cursor: pointer;
  transition: opacity 0.15s;
}

.mobile-top-pill-btn.voice-pill {
  background: rgba(255, 255, 255, 0.18);
  color: #fde047;
}

.mobile-top-pill-btn.icon-pill {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  padding: 6px 9px;
}

.mobile-top-pill-btn.list-pill {
  background: #fde047;
  color: #111827;
  font-weight: 700;
}

/* Hide clunky desktop scrollbars inside the mobile simulator */
.desimate-chat-stream,
.phone-scroll-body {
  scrollbar-width: thin;
  scrollbar-color: rgba(100, 116, 139, 0.25) transparent;
}

.desimate-chat-stream::-webkit-scrollbar,
.phone-scroll-body::-webkit-scrollbar {
  width: 4px;
}

.desimate-chat-stream::-webkit-scrollbar-thumb,
.phone-scroll-body::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.28);
  border-radius: 99px;
}

/* Soften harsh 800/900 weights across cards & buttons for a natural human feel */
.section-title-group h2,
.flash-title-area h2 {
  font-weight: 600;
}

.deal-title,
.flyer-card-body h3,
.flash-card-title {
  font-weight: 700;
}

.genai-search-Container,
.genai-search-container {
  flex: 1;
  max-width: 420px;
  min-width: 220px;
}

.genai-search-box {
  border-width: 1.5px;
  box-shadow: 0 2px 10px rgba(18, 99, 59, 0.07);
}

.genai-search-input {
  font-weight: 500;
  font-size: 0.84rem;
}

/* ==========================================================================
   15. DYNAMIC MULTI-TAB "CURRENT DEALS & KITCHEN MARQUEE"
       (Auto-switches every 15s, 5-min Backend Sync, Hides 8 PM in Morning)
   ========================================================================== */
.marquee-experience {
  transition: background 0.45s ease, border-color 0.45s ease;
  padding: 28px 32px 34px;
}

.marquee-experience[data-marquee-theme="marquee-green"] {
  background: linear-gradient(135deg, #0d4a2b 0%, #14633b 55%, #09301c 100%);
  border-color: rgba(134, 239, 172, 0.35);
}

.marquee-experience[data-marquee-theme="marquee-saffron"] {
  background: linear-gradient(135deg, #7c2d12 0%, #9a3412 55%, #431407 100%);
  border-color: rgba(253, 224, 71, 0.38);
}

.marquee-experience[data-marquee-theme="marquee-terracotta"] {
  background: linear-gradient(135deg, #4c1d24 0%, #7f1d1d 55%, #311018 100%);
  border-color: rgba(252, 165, 165, 0.35);
}

.marquee-experience[data-marquee-theme="marquee-gold"] {
  background: linear-gradient(135deg, #422006 0%, #713f12 55%, #271203 100%);
  border-color: rgba(253, 224, 71, 0.4);
}

.marquee-experience[data-marquee-theme="marquee-evening"] {
  background: linear-gradient(135deg, #2a090d 0%, #5b1118 55%, #1e0b16 100%);
  border-color: rgba(251, 191, 36, 0.4);
}

.marquee-control-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.marquee-tabs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.marquee-tab-btn {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.marquee-tab-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.marquee-tab-btn.active {
  background: #fde047;
  color: #111827;
  border-color: #fde047;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(253, 224, 71, 0.3);
}

.marquee-backend-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.marquee-sync-pill {
  font-size: 0.72rem;
  font-weight: 600;
  color: #bbf7d0;
  background: rgba(0, 0, 0, 0.28);
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(187, 247, 208, 0.25);
}

.marquee-time-sim-group {
  display: inline-flex;
  background: rgba(0, 0, 0, 0.35);
  padding: 3px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.marquee-time-btn {
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  border: none;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
}

.marquee-time-btn.active {
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  font-weight: 700;
}

.marquee-progress-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 22px;
}

.marquee-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #fde047, #4ade80);
  border-radius: 999px;
  transition: width 0.2s linear;
}




