/* ===== Deals UAE — Demo Stylesheet ===== */
:root {
  --primary: #E63946;
  --primary-dark: #C81D2A;
  --accent: #FFB703;
  --accent-dark: #F58A07;
  --navy: #1D3557;
  --bg: #F7F7FB;
  --surface: #FFFFFF;
  --border: #E5E7EB;
  --text: #111827;
  --muted: #6B7280;
  --success: #06A77D;
  --danger: #DC2626;

  --store-unioncoop: #0066B3;
  --store-nesto: #00A651;
  --store-aswaaq: #7B2CBF;
  --store-sharafdg: #FF6B00;
  --store-choithrams: #008B8B;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.06), 0 2px 4px -2px rgba(0,0,0,0.04);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Cairo', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  direction: rtl;
  text-align: right;
  font-feature-settings: 'kern';
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

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

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

/* ===== Header ===== */
.top-strip {
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent-dark) 100%);
  color: white;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 0;
  text-align: center;
}

.top-strip span { margin: 0 12px; }

header.site {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 22px;
  color: var(--primary);
  flex-shrink: 0;
}

.logo-mark {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-dark) 100%);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 900; font-size: 20px;
  box-shadow: 0 4px 10px rgba(230,57,70,0.35);
}

.logo-text { color: var(--navy); }
.logo-text b { color: var(--primary); }

.search {
  flex: 1;
  position: relative;
  max-width: 520px;
}
.search input {
  width: 100%;
  border: 2px solid var(--border);
  background: var(--bg);
  border-radius: 12px;
  padding: 11px 44px 11px 16px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color .15s;
}
.search input:focus { border-color: var(--primary); background: white; }
.search-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}

nav.main { display: flex; gap: 6px; }
nav.main a {
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  transition: background .15s;
}
nav.main a:hover { background: var(--bg); }
nav.main a.active { background: var(--primary); color: white; }

.lang {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, #FFF1F1 0%, #FFF8E7 100%);
  padding: 40px 0 30px;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-size: 38px;
  font-weight: 900;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 14px;
}

.hero h1 .highlight {
  background: linear-gradient(180deg, transparent 60%, rgba(255,183,3,0.4) 60%);
  color: var(--primary);
}

.hero p {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 22px;
}

.hero-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.stat-pill {
  background: white;
  border: 1px solid var(--border);
  padding: 10px 16px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.stat-pill b { color: var(--primary); font-size: 18px; margin-left: 4px; }

.hero-visual {
  display: flex;
  gap: 14px;
  justify-content: center;
}
.hero-card {
  width: 130px;
  aspect-ratio: 3/4;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
  color: white;
  font-weight: 800;
  font-size: 13px;
  position: relative;
  overflow: hidden;
  transform: rotate(-4deg);
}
.hero-card:nth-child(2) { transform: rotate(2deg); margin-top: 30px; }
.hero-card:nth-child(3) { transform: rotate(-2deg); }
.hero-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.7) 100%);
}
.hero-card span { position: relative; }
.hero-card .badge-pct {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--accent);
  color: var(--navy);
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 20px;
  font-weight: 900;
}

/* ===== Filter Bar ===== */
.filter-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  position: sticky;
  top: 66px;
  z-index: 40;
}
.filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.filter-row::-webkit-scrollbar { display: none; }
.filter-chip {
  flex-shrink: 0;
  padding: 8px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.filter-chip:hover { border-color: var(--primary); color: var(--primary); }
.filter-chip.active {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}

/* ===== Sections ===== */
section.block { padding: 36px 0; }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.section-head h2 {
  font-size: 24px;
  font-weight: 900;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-head .icon-circ {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex; align-items: center; justify-content: center;
}
.section-head .urgent .icon-circ { background: var(--accent-dark); animation: pulse 1.5s ease infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,183,3,0.5); }
  50% { box-shadow: 0 0 0 8px rgba(255,183,3,0); }
}
.section-head a.more {
  color: var(--primary);
  font-weight: 800;
  font-size: 14px;
}

/* ===== Flyer Cards Grid ===== */
.flyer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}

.flyer-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;
  position: relative;
}
.flyer-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.flyer-cover {
  aspect-ratio: 3/4;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 16px;
  color: white;
  overflow: hidden;
}
.flyer-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,0.18), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(0,0,0,0.3), transparent 60%);
  pointer-events: none;
}
.flyer-cover > * { position: relative; z-index: 1; }

.cover-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.95);
  color: var(--navy);
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
}
.store-badge .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
}
.dot-unioncoop { background: var(--store-unioncoop); }
.dot-nesto { background: var(--store-nesto); }
.dot-aswaaq { background: var(--store-aswaaq); }
.dot-sharafdg { background: var(--store-sharafdg); }
.dot-choithrams { background: var(--store-choithrams); }

.discount-badge {
  background: var(--accent);
  color: var(--navy);
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 900;
  font-size: 14px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  line-height: 1;
  text-align: center;
}
.discount-badge small {
  display: block;
  font-size: 9px;
  font-weight: 700;
  margin-bottom: 2px;
  opacity: 0.7;
}
.discount-badge b { font-size: 18px; }

.cover-spacer { flex: 1; }

.cover-title {
  font-size: 18px;
  font-weight: 900;
  line-height: 1.25;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
  margin-bottom: 6px;
}

.cover-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  opacity: 0.95;
}

.cover-pages {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  z-index: 2;
}

.flyer-meta-bar {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.expires-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FEF3C7;
  color: #92400E;
  padding: 4px 10px;
  border-radius: 30px;
  font-weight: 800;
  font-size: 11px;
}
.expires-pill.urgent {
  background: #FEE2E2;
  color: #991B1B;
  animation: blink 2s ease infinite;
}
.expires-pill.new {
  background: #D1FAE5;
  color: #065F46;
}
@keyframes blink { 50% { opacity: 0.7; } }

.views {
  color: var(--muted);
  font-weight: 700;
  font-size: 11px;
}

/* Cover gradients per store */
.cover-unioncoop { background: linear-gradient(135deg, #0066B3 0%, #003E6B 100%); }
.cover-nesto { background: linear-gradient(135deg, #00A651 0%, #005C2C 100%); }
.cover-aswaaq { background: linear-gradient(135deg, #7B2CBF 0%, #4A1772 100%); }
.cover-sharafdg { background: linear-gradient(135deg, #FF6B00 0%, #C04F00 100%); }
.cover-choithrams { background: linear-gradient(135deg, #008B8B 0%, #005555 100%); }

/* ===== Stores Strip ===== */
.stores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.store-tile {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 22px 16px;
  text-align: center;
  border: 2px solid var(--border);
  transition: all .15s;
  cursor: pointer;
}
.store-tile:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}
.store-logo {
  width: 70px; height: 70px;
  border-radius: 50%;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.5px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.1);
}
.logo-unioncoop { background: linear-gradient(135deg, #0066B3, #003E6B); }
.logo-nesto { background: linear-gradient(135deg, #00A651, #005C2C); }
.logo-aswaaq { background: linear-gradient(135deg, #7B2CBF, #4A1772); }
.logo-sharafdg { background: linear-gradient(135deg, #FF6B00, #C04F00); }
.logo-choithrams { background: linear-gradient(135deg, #008B8B, #005555); }

.store-tile h3 { font-size: 15px; font-weight: 900; color: var(--navy); margin-bottom: 4px; }
.store-tile .count {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}
.store-tile .count b { color: var(--primary); }

/* ===== Compare card on homepage ===== */
.compare-card {
  background: linear-gradient(135deg, var(--navy) 0%, #2C4567 100%);
  border-radius: var(--radius);
  padding: 32px;
  color: white;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.compare-card::before {
  content: '';
  position: absolute;
  top: -50%; left: -10%;
  width: 60%; aspect-ratio: 1;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  opacity: 0.18;
}
.compare-card h2 { font-size: 26px; font-weight: 900; margin-bottom: 8px; position: relative; }
.compare-card p { opacity: 0.9; margin-bottom: 16px; position: relative; max-width: 480px; }
.compare-card .btn { position: relative; }

.btn {
  display: inline-block;
  padding: 12px 22px;
  background: var(--primary);
  color: white;
  border-radius: 10px;
  font-weight: 800;
  font-size: 14px;
  transition: all .15s;
  border: none;
  cursor: pointer;
}
.btn:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: var(--navy); }
.btn-accent:hover { background: var(--accent-dark); color: white; }
.btn-outline { background: transparent; border: 2px solid white; }

.price-preview {
  background: white;
  color: var(--text);
  border-radius: 12px;
  padding: 16px;
  min-width: 280px;
  position: relative;
}
.price-preview h4 {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}
.price-preview .product-name {
  font-weight: 900;
  font-size: 15px;
  margin-bottom: 12px;
  color: var(--navy);
}
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 13px;
}
.price-row:last-child { border-bottom: none; }
.price-row.best { color: var(--success); font-weight: 800; }
.price-row .name { display: flex; align-items: center; gap: 6px; }
.price-row .name .dot { width: 7px; height: 7px; border-radius: 50%; }

/* ===== Footer ===== */
footer.site {
  background: var(--navy);
  color: white;
  padding: 40px 0 24px;
  margin-top: 40px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 24px;
}
.foot-grid h4 { font-size: 14px; margin-bottom: 12px; color: var(--accent); }
.foot-grid a { display: block; padding: 4px 0; font-size: 13px; opacity: 0.85; }
.foot-grid a:hover { opacity: 1; color: var(--accent); }
.foot-grid p { font-size: 13px; opacity: 0.8; line-height: 1.7; }
.foot-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 16px;
  font-size: 12px;
  opacity: 0.7;
  text-align: center;
}

/* ===== Store Page ===== */
.store-hero {
  background: var(--surface);
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
}
.store-hero-inner {
  display: flex;
  align-items: center;
  gap: 24px;
}
.store-hero .store-logo { width: 100px; height: 100px; font-size: 32px; margin: 0; flex-shrink: 0; }
.store-hero h1 { font-size: 32px; font-weight: 900; color: var(--navy); margin-bottom: 6px; }
.store-hero p { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.store-stats { display: flex; gap: 22px; }
.store-stats div { font-size: 13px; }
.store-stats b { color: var(--primary); font-size: 20px; display: block; }

.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--border);
  margin: 24px 0 0;
}
.tab {
  padding: 12px 22px;
  font-weight: 800;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ===== Flyer Viewer ===== */
.viewer-header {
  background: var(--navy);
  color: white;
  padding: 16px 0;
}
.viewer-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.viewer-info { display: flex; align-items: center; gap: 14px; }
.viewer-info .store-logo { width: 48px; height: 48px; font-size: 14px; margin: 0; }
.viewer-info h2 { font-size: 18px; font-weight: 900; margin-bottom: 2px; }
.viewer-info p { font-size: 12px; opacity: 0.8; }
.viewer-actions { display: flex; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 10px;
  color: white;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.icon-btn:hover { background: rgba(255,255,255,0.2); }

.viewer-body {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 18px;
  padding: 22px 0;
}

.thumbs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 75vh;
  overflow-y: auto;
}
.thumb {
  aspect-ratio: 3/4;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  color: white;
  font-weight: 800;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.thumb.active { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(230,57,70,0.2); }

.viewer-main {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  position: relative;
}
.flyer-page {
  aspect-ratio: 3/4;
  display: flex;
  flex-direction: column;
  padding: 30px;
  color: white;
  position: relative;
}
.flyer-page-inner {
  background: rgba(255,255,255,0.95);
  color: var(--text);
  border-radius: var(--radius);
  padding: 22px;
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.product-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
  position: relative;
  font-size: 12px;
}
.product-item .pname { font-weight: 800; color: var(--navy); margin: 6px 0; line-height: 1.3; min-height: 32px; }
.product-item .psize { font-size: 11px; color: var(--muted); margin-bottom: 8px; }
.product-item .pprice { font-weight: 900; color: var(--primary); font-size: 18px; }
.product-item .pold { text-decoration: line-through; color: var(--muted); font-size: 12px; }
.product-item .pdisc {
  position: absolute;
  top: -8px; left: -8px;
  background: var(--accent);
  color: var(--navy);
  font-size: 11px;
  font-weight: 900;
  padding: 4px 8px;
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.product-thumb {
  aspect-ratio: 1;
  border-radius: 8px;
  background: linear-gradient(135deg, #F3F4F6, #E5E7EB);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--muted);
}

.flyer-page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  color: white;
}
.flyer-page-head h3 { font-size: 22px; font-weight: 900; }

.nav-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.nav-buttons button {
  width: 44px; height: 44px;
  background: white;
  border: 2px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  color: var(--navy);
  font-weight: 900;
  transition: all .15s;
}
.nav-buttons button:hover { border-color: var(--primary); color: var(--primary); }
.page-counter {
  background: white;
  padding: 8px 18px;
  border-radius: 30px;
  font-weight: 800;
  font-size: 13px;
  border: 2px solid var(--border);
}
.page-counter b { color: var(--primary); }

/* ===== Compare Page ===== */
.compare-head {
  background: var(--surface);
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.product-hero {
  display: flex;
  gap: 22px;
  align-items: center;
}
.product-hero .product-thumb {
  width: 110px; height: 110px;
  font-size: 50px;
  border-radius: 16px;
  flex-shrink: 0;
}
.product-hero h1 { font-size: 28px; font-weight: 900; color: var(--navy); margin-bottom: 4px; }
.product-hero p { color: var(--muted); margin-bottom: 8px; }
.product-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.compare-table {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-top: 22px;
}

.cmp-row {
  display: grid;
  grid-template-columns: 70px 1.5fr 1fr 1fr 100px;
  gap: 14px;
  padding: 18px 22px;
  align-items: center;
  border-bottom: 1px solid var(--border);
}
.cmp-row.header {
  background: var(--bg);
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 22px;
}
.cmp-row.best {
  background: linear-gradient(90deg, rgba(6,167,125,0.06), transparent);
  border-right: 4px solid var(--success);
}
.cmp-row:last-child { border-bottom: none; }
.cmp-row .store-logo { width: 50px; height: 50px; font-size: 14px; margin: 0; }
.cmp-row .name { font-weight: 800; color: var(--navy); }
.cmp-row .sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.cmp-row .price { font-weight: 900; font-size: 22px; color: var(--navy); }
.cmp-row .price.best-price { color: var(--success); }
.cmp-row .price small { font-size: 12px; color: var(--muted); font-weight: 700; }
.cmp-row .save { color: var(--success); font-weight: 800; font-size: 13px; }
.cmp-row .save-empty { color: var(--muted); font-size: 13px; }
.cmp-row .go { text-align: center; }
.cmp-row .go a {
  display: inline-block;
  padding: 8px 14px;
  background: var(--primary);
  color: white;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}

.best-banner {
  background: linear-gradient(135deg, var(--success) 0%, #048A65 100%);
  color: white;
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
}
.best-banner h3 { font-size: 20px; font-weight: 900; margin-bottom: 4px; }
.best-banner p { font-size: 13px; opacity: 0.95; }
.best-banner .save-big {
  background: rgba(255,255,255,0.2);
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 900;
  font-size: 20px;
  text-align: center;
}
.best-banner .save-big small { display: block; font-size: 11px; font-weight: 700; opacity: 0.9; }

.price-history {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 22px;
  box-shadow: var(--shadow-sm);
}
.price-history h3 { font-size: 18px; font-weight: 900; color: var(--navy); margin-bottom: 16px; }
.chart-area {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 180px;
  padding: 0 6px;
  border-bottom: 2px solid var(--border);
  position: relative;
}
.chart-bar {
  flex: 1;
  background: linear-gradient(180deg, var(--accent), var(--primary));
  border-radius: 6px 6px 0 0;
  position: relative;
  cursor: pointer;
  transition: opacity .15s;
}
.chart-bar:hover { opacity: 0.8; }
.chart-bar .val {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 800;
  color: var(--navy);
  white-space: nowrap;
}
.chart-labels {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  padding: 0 6px;
}
.chart-labels span {
  flex: 1;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
}

/* ===== Mobile ===== */
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero h1 { font-size: 28px; }
  .hero-visual { display: none; }
  .header-inner { gap: 10px; flex-wrap: wrap; }
  .search { order: 10; width: 100%; max-width: none; }
  nav.main { display: none; }
  .compare-card { grid-template-columns: 1fr; padding: 22px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .viewer-body { grid-template-columns: 1fr; }
  .thumbs { flex-direction: row; overflow-x: auto; max-height: none; }
  .thumb { flex-shrink: 0; width: 70px; }
  .cmp-row { grid-template-columns: 50px 1fr; gap: 8px; }
  .cmp-row .price-col, .cmp-row .save-col { grid-column: 2; padding-right: 0; }
  .cmp-row.header { display: none; }
  .store-hero-inner { flex-direction: column; text-align: center; }
  .store-stats { justify-content: center; }
  .flyer-page-inner { grid-template-columns: 1fr 1fr; padding: 14px; gap: 10px; }
}
