/**
 * ==========================================================================
 * Franklin Soda Deal Tracker — Clean, High-Contrast Light Theme Design
 * ==========================================================================
 */

/* Hero Section */
.soda-hero {
  padding: 3.5rem 0 2rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

.soda-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.95rem;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 9999px;
  color: #1d4ed8;
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

.soda-title {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.15;
  margin-bottom: 0.85rem;
  letter-spacing: -0.02em;
}

.soda-subtitle {
  font-size: 1.12rem;
  color: #334155;
  max-width: 680px;
  margin: 0 auto 2.25rem;
  line-height: 1.6;
  font-weight: 500;
}

.soda-subtitle strong {
  color: #0f172a;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
 * ⚡ Mountain Dew Instant Verdict Banner (Top Quick Answer)
 * -------------------------------------------------------------------------- */
.mtn-dew-verdict-banner {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1.5px solid #86efac;
  border-radius: 20px;
  padding: 1.5rem 1.75rem;
  margin: 0 auto 2.5rem;
  text-align: left;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.12), 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* WAIT — amber/orange */
.mtn-dew-verdict-banner.wait {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-color: #fcd34d;
  box-shadow: 0 4px 16px rgba(217, 119, 6, 0.12), 0 1px 3px rgba(0, 0, 0, 0.05);
}
.mtn-dew-verdict-banner.wait::before { background: #d97706; }
.mtn-dew-verdict-banner.wait .dew-title { color: #92400e; }
.mtn-dew-verdict-banner.wait .dew-body-grid {
  border-color: rgba(217, 119, 6, 0.25);
}

/* DO NOT BUY — red/rose */
.mtn-dew-verdict-banner.bad {
  background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
  border-color: #fca5a5;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.12), 0 1px 3px rgba(0, 0, 0, 0.05);
}
.mtn-dew-verdict-banner.bad::before { background: #dc2626; }
.mtn-dew-verdict-banner.bad .dew-title { color: #7f1d1d; }
.mtn-dew-verdict-banner.bad .dew-body-grid {
  border-color: rgba(239, 68, 68, 0.25);
}

/* SOLID BUY — cyan/sky */
.mtn-dew-verdict-banner.solid-buy {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-color: #7dd3fc;
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.12), 0 1px 3px rgba(0, 0, 0, 0.05);
}
.mtn-dew-verdict-banner.solid-buy::before { background: #0284c7; }
.mtn-dew-verdict-banner.solid-buy .dew-title { color: #0c4a6e; }
.mtn-dew-verdict-banner.solid-buy .dew-body-grid {
  border-color: rgba(14, 165, 233, 0.25);
}

.mtn-dew-verdict-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 6px;
  background: #16a34a;
}

.dew-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.dew-title-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.dew-bolt-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.dew-title {
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #14532d;
}

.dew-verdict-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.95rem;
  border-radius: 9999px;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  background: #15803d;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(21, 128, 61, 0.3);
}

.dew-verdict-badge.wait {
  background: #d97706;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.3);
}

.dew-verdict-badge.bad {
  background: #dc2626;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.3);
}

.dew-verdict-badge.solid-buy {
  background: #0284c7;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.3);
}

.dew-body-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1.25rem;
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 14px;
  padding: 1.15rem 1.35rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.dew-deal-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.25rem;
}

.dew-deal-terms {
  font-size: 0.92rem;
  color: #1e293b;
  line-height: 1.5;
}

.dew-deal-terms strong {
  color: #0f172a;
  font-weight: 700;
}

.dew-stat-block {
  text-align: center;
  border-left: 1px solid #e2e8f0;
  padding-left: 1rem;
}

.dew-stat-val {
  font-size: 1.75rem;
  font-weight: 800;
  color: #15803d;
  font-family: var(--font-mono, monospace);
}

.dew-stat-lbl {
  font-size: 0.78rem;
  text-transform: uppercase;
  color: #475569;
  font-weight: 800;
  letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
 * Hero Spotlights Grid
 * -------------------------------------------------------------------------- */
.soda-spotlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.25rem;
}

.soda-spotlight-card {
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 20px;
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.08), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
}

.soda-spotlight-card:hover {
  transform: translateY(-3px);
  border-color: #0284c7;
  box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.12);
}

.soda-spotlight-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #2563eb, #6366f1);
}

.soda-spotlight-card.bottle-card::before {
  background: linear-gradient(90deg, #059669, #0d9488);
}

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

.spotlight-badge {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.spotlight-badge.bottle {
  background: #ecfdf5;
  color: #065f46;
  border-color: #a7f3d0;
}

.spotlight-urgency {
  font-size: 0.85rem;
  font-weight: 800;
  color: #b45309;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.spotlight-urgency.critical {
  color: #b91c1c;
}

.spotlight-main {
  margin-bottom: 1.25rem;
}

.spotlight-store-brand {
  font-size: 1.4rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.3rem;
}

.spotlight-promo-text {
  font-size: 1rem;
  color: #1e293b;
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.spotlight-pricing-row {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
}

.spotlight-cost-oz {
  font-size: 2.5rem;
  font-weight: 800;
  color: #0284c7;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
}

.spotlight-cost-oz.bottle {
  color: #059669;
}

.spotlight-cost-unit {
  font-size: 0.95rem;
  color: #334155;
  font-weight: 600;
}

.spotlight-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.15rem;
  border-top: 1px solid #e2e8f0;
  font-size: 0.85rem;
}

.spotlight-recommendation {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 800;
  color: #15803d;
}

.spotlight-details-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  padding: 0.45rem 1rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.spotlight-details-btn:hover {
  background: #e0f2fe;
  border-color: #38bdf8;
  color: #0284c7;
}

.store-link {
  color: #0f172a;
  text-decoration: none;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.15s ease;
}

.store-link:hover {
  color: #0284c7;
  text-decoration: underline;
}

.store-link .ext-arrow {
  font-size: 0.75rem;
  color: #0284c7;
  opacity: 0.8;
}

.table-source-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
  margin-left: 0.35rem;
  transition: all 0.2s ease;
}

.table-source-btn:hover {
  background: #f0fdf4;
  border-color: #86efac;
  color: #15803d;
}

.modal-source-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1.25rem;
  background: #0284c7;
  color: #ffffff;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.92rem;
  text-decoration: none;
  transition: background 0.2s ease;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
  box-sizing: border-box;
}

.modal-source-action-btn:hover {
  background: #0369a1;
  color: #ffffff;
}

.spotlight-source-link {
  font-size: 0.82rem;
  font-weight: 800;
  color: #0284c7;
  text-decoration: none;
  margin-right: 0.65rem;
}

.spotlight-source-link:hover {
  text-decoration: underline;
}

.dew-source-link {
  font-size: 0.84rem;
  font-weight: 800;
  color: #0284c7;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.4rem;
}

.dew-source-link:hover {
  text-decoration: underline;
  color: #0369a1;
}

/* --------------------------------------------------------------------------
 * Upcoming Deals Alert Banner
 * -------------------------------------------------------------------------- */
.soda-upcoming-banner {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.upcoming-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.upcoming-icon {
  font-size: 1.7rem;
}

.upcoming-text h4 {
  font-size: 1.02rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.2rem;
}

.upcoming-text p {
  font-size: 0.9rem;
  color: #1e293b;
  font-weight: 500;
}

.upcoming-badge {
  background: #e0e7ff;
  color: #3730a3;
  border: 1px solid #a5b4fc;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
 * Filter & Control Bar
 * -------------------------------------------------------------------------- */
.soda-controls-wrap {
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 18px;
  padding: 1.35rem;
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.soda-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.filter-label {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #0f172a;
  margin-right: 0.25rem;
  letter-spacing: 0.05em;
}

.filter-chip {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  padding: 0.45rem 0.95rem;
  border-radius: 9999px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-chip:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #94a3b8;
}

.filter-chip.active {
  background: #eff6ff;
  border-color: #2563eb;
  color: #1d4ed8;
  font-weight: 800;
}

.soda-search-box {
  position: relative;
  min-width: 260px;
}

.soda-search-input {
  width: 100%;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 0.55rem 1rem 0.55rem 2.25rem;
  color: #0f172a;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.soda-search-input::placeholder {
  color: #64748b;
  font-weight: 500;
}

.soda-search-input:focus {
  outline: none;
  border-color: #2563eb;
  background: #ffffff;
}

.soda-search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #475569;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
 * Deals Matrix Table (Clean, High Contrast)
 * -------------------------------------------------------------------------- */
.soda-table-container {
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 18px;
  overflow-x: auto;
  box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.08);
  margin-bottom: 3rem;
}

.soda-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.soda-table th {
  background: #f1f5f9;
  color: #0f172a;
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1.1rem 1.25rem;
  border-bottom: 2px solid #cbd5e1;
  white-space: nowrap;
}

.soda-table td {
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid #e2e8f0;
  color: #0f172a;
  vertical-align: middle;
  font-weight: 500;
}

.soda-table tr:hover td {
  background: #f8fafc;
}

.soda-table tr:last-child td {
  border-bottom: none;
}

/* Table Specific Cell Styles */
.cell-store {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  color: #0f172a;
}

.store-logo-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid #cbd5e1;
}

.store-logo-pill.publix { background: #005a2c; color: #ffffff; }
.store-logo-pill.kroger { background: #00457c; color: #ffffff; }
.store-logo-pill.walmart { background: #0071ce; color: #ffc220; }
.store-logo-pill.target { background: #cc0000; color: #ffffff; }
.store-logo-pill.walgreens { background: #e31837; color: #ffffff; }

.brand-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 800;
}

.brand-tag.coke { color: #b91c1c; }
.brand-tag.pepsi { color: #0369a1; }
.brand-tag.mtndew { color: #15803d; }

.cell-promo-title {
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.2rem;
}

.cell-promo-sub {
  font-size: 0.82rem;
  color: #334155;
  font-weight: 600;
}

.cell-cost-oz {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 1.25rem;
  font-weight: 800;
  color: #0369a1;
  white-space: nowrap;
}

/* Single Unified Deal Quality Pill */
.deal-quality-pill {
  display: inline-block;
  padding: 0.38rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.deal-quality-pill.stock-up {
  background: #dcfce7;
  color: #14532d;
  border: 1.5px solid #4ade80;
}

.deal-quality-pill.solid-buy {
  background: #ecfdf5;
  color: #065f46;
  border: 1.5px solid #6ee7b7;
}

.deal-quality-pill.fair-price {
  background: #f1f5f9;
  color: #1e293b;
  border: 1.5px solid #cbd5e1;
}

.deal-quality-pill.wait {
  background: #fef3c7;
  color: #92400e;
  border: 1.5px solid #fcd34d;
}

.deal-quality-pill.do-not-buy {
  background: #fee2e2;
  color: #991b1b;
  border: 1.5px solid #fca5a5;
}

/* --------------------------------------------------------------------------
 * Historical Price Benchmark Section
 * -------------------------------------------------------------------------- */
.soda-history-section {
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 20px;
  padding: 2.25rem;
  margin-bottom: 3.5rem;
  box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.08);
}

.history-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.history-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #0f172a;
}

.history-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.history-stat-card {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 14px;
  padding: 1.25rem;
  text-align: center;
}

.history-stat-val {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 1.75rem;
  font-weight: 800;
  color: #0369a1;
  margin-bottom: 0.25rem;
}

.history-stat-lbl {
  font-size: 0.78rem;
  color: #0f172a;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
 * Details Modal (Clean Light Dialog)
 * -------------------------------------------------------------------------- */
.soda-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

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

.soda-modal-content {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 22px;
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.25rem;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  color: #0f172a;
}

.soda-modal-content h2,
#modalHeaderContent h2 {
  color: #0f172a !important;
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.soda-modal-content p,
#modalHeaderContent p {
  color: #0369a1;
}

@keyframes modalPop {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.soda-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  transition: all 0.2s ease;
}

.soda-modal-close:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
}

.modal-math-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin: 1.25rem 0;
}

.modal-math-tile {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  padding: 0.95rem 1.1rem;
}

.modal-math-tile .lbl {
  font-size: 0.75rem;
  color: #334155;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.modal-math-tile .val {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  font-family: var(--font-mono, monospace);
  margin-top: 0.25rem;
}

.modal-flavors-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.flavor-pill {
  font-size: 0.85rem;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
 * Stores Accordion
 * -------------------------------------------------------------------------- */
.soda-stores-accordion {
  position: relative;
  z-index: 2;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 16px;
  padding: 1.35rem 1.65rem;
  margin-bottom: 3.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.stores-accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.stores-accordion-header h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}

.stores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.store-card-item {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  padding: 0.95rem 1.1rem;
}

.store-card-item h5 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
}

.store-card-item p {
  font-size: 0.86rem;
  color: #334155;
  font-weight: 600;
  margin-top: 0.25rem;
}

/* --------------------------------------------------------------------------
 * Dynamic Location Control Bar with Inline ZIP Editor
 * -------------------------------------------------------------------------- */
.soda-location-bar {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 18px;
  padding: 1rem 1.45rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  position: relative;
  z-index: 2;
}

.location-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  width: 100%;
}

.location-current-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.location-eyebrow {
  font-size: 0.8rem;
  font-weight: 800;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.location-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: #0369a1;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.92rem;
  font-weight: 800;
}

.location-badge .loc-pin {
  color: #0284c7;
}

.location-actions-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.soda-edit-loc-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  color: #0f172a;
  padding: 0.45rem 0.95rem;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.soda-edit-loc-btn:hover {
  background: #f0f9ff;
  border-color: #7dd3fc;
  color: #0284c7;
}

.soda-cancel-btn {
  background: #f1f5f9;
  border: 1.5px solid #cbd5e1;
  color: #475569;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.soda-cancel-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.soda-zip-form {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
}

.zip-input-wrap {
  position: relative;
  flex: 1;
  min-width: 240px;
}

.zip-search-icon {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  pointer-events: none;
}

.soda-zip-input {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.4rem;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  color: #0f172a;
  font-size: 0.92rem;
  font-weight: 600;
  outline: none;
  transition: all 0.2s ease;
}

.soda-zip-input:focus {
  border-color: #0284c7;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.soda-zip-btn {
  background: #0284c7;
  color: #ffffff;
  border: none;
  padding: 0.65rem 1.25rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.soda-zip-btn:hover {
  background: #0369a1;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.soda-zip-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.soda-geo-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  color: #15803d;
  padding: 0.45rem 0.95rem;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.soda-geo-btn:hover {
  background: #dcfce7;
  border-color: #4ade80;
  color: #14532d;
}

.soda-location-loading {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #0284c7;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  padding: 0.6rem 1rem;
}

.soda-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #bae6fd;
  border-top-color: #0284c7;
  border-radius: 50%;
  animation: sodaSpin 0.7s linear infinite;
}

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

.soda-location-error {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #991b1b;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: 8px;
  padding: 0.6rem 1rem;
}

/* ==========================================================================
   Mobile Responsive Engine (< 768px & < 480px)
   ========================================================================== */
@media (max-width: 768px) {
  .soda-hero {
    padding: 2.25rem 0 1.25rem;
  }

  .soda-eyebrow {
    font-size: 0.78rem;
    padding: 0.28rem 0.75rem;
  }

  .soda-title {
    font-size: clamp(1.85rem, 6vw, 2.6rem);
    line-height: 1.2;
    margin-bottom: 0.65rem;
  }

  .soda-subtitle {
    font-size: 0.98rem;
    line-height: 1.55;
    margin-bottom: 1.75rem;
  }

  /* Location Bar */
  .soda-location-bar {
    padding: 0.85rem 1rem;
    border-radius: 14px;
    margin-bottom: 1.75rem;
  }

  .soda-location-summary {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.65rem;
  }

  .soda-location-city-wrap {
    justify-content: center;
    text-align: center;
  }

  .soda-zip-form {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .soda-zip-input {
    width: 100%;
    font-size: 16px; /* Prevents iOS auto-zoom */
    min-height: 44px;
  }

  .soda-zip-btn,
  .soda-geo-btn {
    width: 100%;
    justify-content: center;
    min-height: 44px;
    font-size: 0.92rem;
  }

  /* Mountain Dew Banner */
  .mtn-dew-verdict-banner {
    padding: 1.25rem 1.15rem;
    border-radius: 16px;
    margin-bottom: 2rem;
  }

  .dew-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }

  .dew-verdict-badge {
    align-self: flex-start;
    font-size: 0.82rem;
  }

  .dew-body-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    padding: 1rem;
  }

  .dew-stat-block {
    border-left: none;
    border-top: 1px solid #e2e8f0;
    padding-left: 0;
    padding-top: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
  }

  .dew-stat-val {
    font-size: 1.5rem;
  }

  /* Best Deals Spotlights */
  .soda-spotlights-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 2rem;
  }

  .spotlight-card {
    padding: 1.25rem;
    border-radius: 16px;
  }

  .spotlight-actions {
    flex-direction: column;
    gap: 0.5rem;
  }

  .spotlight-details-btn,
  .spotlight-source-btn {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }

  /* Filter Controls & Search */
  .soda-controls-wrap {
    padding: 1rem;
    border-radius: 14px;
    margin-bottom: 1.5rem;
    gap: 1rem;
  }

  .soda-filter-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  .filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .filter-chip {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
  }

  .soda-search-box {
    width: 100%;
    min-width: 100%;
  }

  .soda-search-input {
    font-size: 16px; /* Prevents iOS auto-zoom */
    min-height: 44px;
  }

  /* Responsive Mobile Deal Card View for Table */
  .soda-table-container {
    background: transparent;
    border: none;
    box-shadow: none;
    margin-bottom: 2rem;
    overflow: visible;
  }

  .soda-table,
  .soda-table thead,
  .soda-table tbody,
  .soda-table tr,
  .soda-table td {
    display: block;
    width: 100%;
  }

  .soda-table thead {
    display: none; /* Hide tabular column headers on mobile */
  }

  .soda-table tbody {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .soda-table tr {
    background: #ffffff;
    border: 1.5px solid #d1d5db;
    border-radius: 16px;
    padding: 1.15rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
  }

  .soda-table tr:hover td {
    background: transparent;
  }

  .soda-table td {
    padding: 0;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
  }

  /* Mobile Card Header Row: Store + Brand + Grade */
  .soda-table td:nth-child(1) {
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 0.65rem;
    margin-bottom: 0.25rem;
  }

  .soda-table td:nth-child(2) {
    display: inline-flex;
    margin-bottom: 0.25rem;
  }

  .soda-table td:nth-child(3) {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
  }

  .soda-table td:nth-child(4) {
    flex-direction: column;
    align-items: flex-start;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.65rem 0.85rem;
    margin: 0.35rem 0;
  }

  .soda-table td:nth-child(5) {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 1.05rem;
  }

  .soda-table td:nth-child(5)::before {
    content: "Package Price";
    font-size: 0.82rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
  }

  .soda-table td:nth-child(6) {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.4rem 0;
    border-top: 1px dashed #e2e8f0;
    border-bottom: 1px dashed #e2e8f0;
    margin: 0.25rem 0;
  }

  .soda-table td:nth-child(6)::before {
    content: "Unit Cost";
    font-size: 0.82rem;
    font-weight: 800;
    color: #0369a1;
    text-transform: uppercase;
  }

  .soda-table td:nth-child(6) .cell-cost-oz {
    font-size: 1.4rem;
  }

  .soda-table td:nth-child(7) {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .soda-table td:nth-child(7)::before {
    content: "Deal Grade";
    font-size: 0.82rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
  }

  .soda-table td:nth-child(8) {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.84rem;
    color: #64748b;
  }

  .soda-table td:nth-child(8)::before {
    content: "Expires";
    font-size: 0.82rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
  }

  .soda-table td:nth-child(9) {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding-top: 0.65rem;
    border-top: 1px solid #f1f5f9;
  }

  .soda-table td:nth-child(9) button,
  .soda-table td:nth-child(9) a {
    flex: 1;
    justify-content: center;
    min-height: 42px;
  }

  /* Historical Price Section */
  .soda-history-section {
    padding: 1.25rem;
    border-radius: 16px;
    margin-bottom: 2rem;
  }

  .history-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .history-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }

  .history-stat-card {
    padding: 0.85rem;
  }

  .history-stat-val {
    font-size: 1.25rem;
  }

  .history-stat-lbl {
    font-size: 0.72rem;
  }

  /* Stores Accordion */
  .soda-stores-accordion {
    padding: 1rem;
    border-radius: 14px;
    margin-bottom: 2.5rem;
  }

  .stores-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  /* Modal Dialog */
  .soda-modal {
    padding: 1rem;
    align-items: flex-end;
  }

  .soda-modal-content {
    width: 100%;
    max-width: 100%;
    max-height: 88vh;
    border-radius: 20px 20px 14px 14px;
    padding: 1.35rem;
  }

  .modal-math-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }
}

@media (max-width: 480px) {
  .history-stats-grid {
    grid-template-columns: 1fr;
  }
}
