/* ===================================================================
   OFFERI — Clean Design System v3
   =================================================================== */

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  line-height: 1.5;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ---- TOKENS ---- */
:root {
  --brand:       #2563eb;
  --brand-dark:  #1d4ed8;
  --brand-light: #eff6ff;
  --bg:          #f1f5f9;
  --surface:     #ffffff;
  --surface2:    #f8fafc;
  --border:      #e2e8f0;
  --text:        #0f172a;
  --text2:       #475569;
  --text3:       #94a3b8;
  --radius:      8px;
  --radius-lg:   12px;
  --shadow-sm:   0 1px 4px rgba(0,0,0,.07);
  --shadow:      0 2px 10px rgba(0,0,0,.09);
  --tr:          0.15s ease;
}

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ====================================================================
   HEADER
   ==================================================================== */
.header {
  background: #0f172a;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 10px rgba(0,0,0,.2);
}
.header-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  max-width: 1300px;
  margin: 0 auto;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 8px; cursor: pointer; flex-shrink: 0; }
.logo-icon { font-size: 1.4rem; }
.logo-text { font-size: 1.25rem; font-weight: 800; color: #fff; letter-spacing: -.5px; }
.logo-text span { color: var(--brand); }

/* Search */
.search-bar {
  flex: 1;
  display: flex;
  align-items: center;
  background: #1e293b;
  border-radius: 8px;
  padding: 0 12px;
  gap: 8px;
  max-width: 560px;
}
.search-icon { color: var(--text3); font-size: .95rem; }
.search-bar input {
  flex: 1;
  border: none;
  background: none;
  color: #fff;
  font-size: .93rem;
  padding: 9px 0;
  outline: none;
}
.search-bar input::placeholder { color: var(--text3); }
.search-btn {
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--tr);
}
.search-btn:hover { background: var(--brand-dark); }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  background: #1e293b;
  border: none;
  border-radius: 8px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: background var(--tr);
}
.icon-btn:hover { background: #334155; }

/* ---- NAV ---- */
.main-nav {
  background: #1e293b;
  border-top: 1px solid #334155;
  overflow-x: auto;
  scrollbar-width: none;
}
.main-nav::-webkit-scrollbar { display: none; }
.nav-inner {
  display: flex;
  gap: 2px;
  padding: 0 16px;
  max-width: 1300px;
  margin: 0 auto;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  color: #94a3b8;
  font-size: .82rem;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color var(--tr), border-color var(--tr);
  user-select: none;
}
.nav-item:hover { color: #fff; }
.nav-item.active { color: #fff; border-bottom-color: var(--brand); }
.nav-icon { width: 16px; height: 16px; flex-shrink: 0; }
.nav-item-bf { color: #f59e0b !important; font-weight: 700 !important; }
.nav-item-bf:hover, .nav-item-bf.active { color: #fbbf24 !important; border-bottom-color: #f59e0b !important; }

/* ====================================================================
   LAYOUT CONTAINERS
   ==================================================================== */
.page-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}
.home-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 20px 20px 60px;
}

/* ====================================================================
   BREADCRUMB
   ==================================================================== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  color: var(--text3);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--brand); cursor: pointer; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--text3); }

/* ====================================================================
   SECTION HEADS
   ==================================================================== */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}
.see-all {
  font-size: .82rem;
  color: var(--brand);
  cursor: pointer;
  font-weight: 500;
}
.see-all:hover { text-decoration: underline; }

.page-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.page-header h1 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
}
.count-badge {
  background: var(--brand-light);
  color: var(--brand);
  font-size: .78rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
}

/* ====================================================================
   HOME — STORES BAR
   ==================================================================== */
.stores-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.stores-bar-scroll {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 16px;
}
.stores-bar-scroll::-webkit-scrollbar { display: none; }
.store-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 12px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--tr);
  border-radius: 0;
}
.store-pill:hover { background: var(--surface2); }
.store-pill img {
  width: 40px;
  height: 28px;
  object-fit: contain;
}
.store-pill span {
  font-size: .68rem;
  color: var(--text2);
  white-space: nowrap;
  font-weight: 500;
}

/* ====================================================================
   HOME — CATS ROW
   ==================================================================== */
.cats-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
  margin-bottom: 24px;
}
.cats-row::-webkit-scrollbar { display: none; }
.cat-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text2);
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--tr);
  flex-shrink: 0;
}
.cat-chip:hover, .cat-chip.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.cat-chip-icon { font-size: 1rem; }

/* ====================================================================
   HOME — SECTIONS
   ==================================================================== */
.home-section { margin-bottom: 40px; }

.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}
.section-subtitle {
  font-size: .8rem;
  color: var(--text3);
  font-weight: 400;
}

/* ====================================================================
   PROMO CARD
   ==================================================================== */
.promo-card {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.promo-card-text h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.3;
}
.promo-card-text p {
  font-size: .85rem;
  color: rgba(255,255,255,.85);
  line-height: 1.5;
  max-width: 500px;
}
.promo-card-btn {
  background: #fff;
  color: #ea580c;
  font-size: .9rem;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background var(--tr), transform var(--tr);
  display: inline-block;
}
.promo-card-btn:hover {
  background: #fff7ed;
  transform: translateY(-1px);
}

/* ====================================================================
   TOP STORES GRID
   ==================================================================== */
.top-stores-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.top-store-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 10px 12px;
  cursor: pointer;
  transition: box-shadow var(--tr), border-color var(--tr), transform var(--tr);
  text-align: center;
  text-decoration: none;
}
.top-store-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--brand);
  transform: translateY(-2px);
}
.top-store-logo {
  width: 70px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.top-store-logo img {
  max-width: 70px;
  max-height: 48px;
  object-fit: contain;
}
.top-store-abbr {
  font-size: .78rem;
  font-weight: 800;
  color: var(--text2);
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}
.top-store-name {
  font-size: .72rem;
  color: var(--text2);
  font-weight: 500;
  line-height: 1.3;
  max-width: 100%;
  word-break: break-word;
}

/* ====================================================================
   COUNTRIES SECTION
   ==================================================================== */
.countries-section .section-title {
  font-size: .82rem;
  font-weight: 700;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.countries-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.country-card {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 18px;
  cursor: pointer;
  transition: box-shadow var(--tr), border-color var(--tr);
  text-decoration: none;
  color: var(--text2);
  font-size: .85rem;
  font-weight: 500;
}
.country-card:hover { box-shadow: var(--shadow-sm); border-color: var(--brand); color: var(--brand); }
.country-flag { font-size: 1.4rem; }
.country-name { font-size: .85rem; }

/* ====================================================================
   ADS GRID
   ==================================================================== */
.ads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.ads-grid-home {
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

/* ---- AD CARD ---- */
.ad-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--tr), box-shadow var(--tr);
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
  border: 1px solid var(--border);
}
.ad-card:hover { transform: translateY(-3px); box-shadow: 0 6px 24px rgba(0,0,0,.12); }

.ad-thumb {
  aspect-ratio: 3/4;
  background: #f1f5f9;
  position: relative;
  overflow: hidden;
}
.ad-thumb-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ad-thumb-bg { display: none; }
.ad-thumb-logo {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
}

.save-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255,255,255,.9);
  border: none;
  border-radius: 6px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  cursor: pointer;
  backdrop-filter: blur(4px);
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
  z-index: 2;
}

.ad-body { padding: 12px 14px 14px; flex: 1; }
.ad-title {
  font-size: .92rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ad-dates { font-size: .75rem; color: var(--text3); margin-bottom: 6px; }
.ad-store {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .75rem;
  color: var(--text2);
  font-weight: 500;
}
.ad-store-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.ad-store-logo {
  width: 18px;
  height: 14px;
  object-fit: contain;
  flex-shrink: 0;
}
.ad-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: .65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  z-index: 2;
}
.badge-new { background: #22c55e; color: #fff; }
.badge-sale { background: #ef4444; color: #fff; }
.badge-special { background: var(--brand); color: #fff; }

/* ====================================================================
   STORES GRID
   ==================================================================== */
.stores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
}
.store-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 10px 12px;
  cursor: pointer;
  transition: box-shadow var(--tr), border-color var(--tr);
  text-align: center;
}
.store-card:hover { box-shadow: var(--shadow); border-color: var(--brand); }
.store-card img { width: 60px; height: 38px; object-fit: contain; }
.store-card-abbr { font-size: .78rem; font-weight: 800; color: var(--text2); }
.store-card-name { font-size: .72rem; color: var(--text2); font-weight: 500; }

/* ====================================================================
   CATEGORY PAGE — STORE CHIPS
   ==================================================================== */
.stores-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}
.store-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 500;
  color: var(--text2);
  cursor: pointer;
  transition: all var(--tr);
}
.store-chip:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-light); }
.store-chip img { width: 20px; height: 14px; object-fit: contain; }

/* ====================================================================
   STORE PAGE
   ==================================================================== */
.store-hero {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.store-hero-logo {
  width: 80px;
  height: 60px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}
.store-hero-logo img { max-width: 70px; max-height: 50px; object-fit: contain; }
.store-hero h1 { font-size: 1.3rem; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.store-hero-desc { font-size: .85rem; color: var(--text2); margin-bottom: 8px; }
.store-hero-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.meta-chip {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 10px;
  font-size: .75rem;
  color: var(--text2);
  font-weight: 500;
}

/* ---- FLYER LIST ---- */
.flyers-list { display: flex; flex-direction: column; gap: 10px; }
.flyer-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  cursor: pointer;
  transition: box-shadow var(--tr), border-color var(--tr);
  position: relative;
}
.flyer-row:hover { box-shadow: var(--shadow); border-color: var(--brand); }
.flyer-row-cover {
  width: 70px;
  height: 90px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #f1f5f9;
}
.flyer-row-cover img { width: 100%; height: 100%; object-fit: cover; }
.flyer-no-cover {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .65rem;
  font-weight: 800;
  color: #fff;
  background: var(--brand);
}
.flyer-row-info { flex: 1; }
.flyer-row-title { font-size: .9rem; font-weight: 600; color: var(--text); margin-bottom: 5px; line-height: 1.3; }
.flyer-row-dates { font-size: .78rem; color: var(--text3); }
.flyer-row--expired { opacity: .55; }
.flyer-row .save-btn { position: static; background: var(--surface2); box-shadow: none; border: 1px solid var(--border); }

/* ====================================================================
   FLYER VIEWER
   ==================================================================== */
.flyer-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.flyer-header-logo {
  width: 60px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.flyer-header-logo img { max-width: 52px; max-height: 36px; object-fit: contain; }
.flyer-header-info { flex: 1; }
.flyer-header h1 { font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 4px; line-height: 1.3; }
.flyer-validity { font-size: .8rem; color: var(--text3); }

.save-ad-btn {
  padding: 8px 16px;
  background: var(--brand-light);
  color: var(--brand);
  border: 1px solid var(--brand);
  border-radius: var(--radius);
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--tr);
}
.save-ad-btn:hover, .save-ad-btn.saved {
  background: var(--brand);
  color: #fff;
}

.flyer-viewer {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.flyer-viewer > img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius);
  object-fit: contain;
  margin: 0 auto;
}
.flyer-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 14px;
}
.flyer-btn {
  padding: 7px 18px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--tr);
}
.flyer-btn:hover:not(:disabled) { background: var(--brand); color: #fff; border-color: var(--brand); }
.flyer-btn:disabled { opacity: .35; cursor: default; }
.flyer-count { font-size: .85rem; color: var(--text2); font-weight: 600; }
.flyer-thumbs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin-top: 12px;
  padding: 4px 0;
  scrollbar-width: none;
}
.flyer-thumbs::-webkit-scrollbar { display: none; }
.flyer-thumb {
  width: 56px;
  height: 72px;
  object-fit: cover;
  border-radius: 5px;
  flex-shrink: 0;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: .6;
  transition: all var(--tr);
}
.flyer-thumb.active { border-color: var(--brand); opacity: 1; }
.flyer-thumb:hover { opacity: .85; }

/* ====================================================================
   SEARCH PAGE
   ==================================================================== */

/* ====================================================================
   MAGAZINE
   ==================================================================== */
.articles-list { display: flex; flex-direction: column; gap: 14px; }
.article-row {
  display: flex;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.article-row-type {
  font-size: .7rem;
  font-weight: 700;
  color: var(--brand);
  background: var(--brand-light);
  padding: 2px 8px;
  border-radius: 4px;
  height: fit-content;
  white-space: nowrap;
  flex-shrink: 0;
}
.article-row-title { font-size: .9rem; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.article-row-date { font-size: .75rem; color: var(--text3); margin-bottom: 4px; }
.article-row-excerpt { font-size: .82rem; color: var(--text2); line-height: 1.45; }

/* ====================================================================
   DEALS PAGE — STORE SECTIONS
   ==================================================================== */
.deals-store-section {
  margin-bottom: 44px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--border);
}
.deals-store-section:last-child { border-bottom: none; }

.deals-store-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}
.deals-store-logo-wrap {
  width: 72px;
  height: 52px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--tr);
}
.deals-store-logo-wrap:hover { border-color: var(--brand); }
.deals-store-logo-wrap img { max-width: 64px; max-height: 44px; object-fit: contain; }
.deals-store-abbr { font-size: .75rem; font-weight: 800; color: var(--text2); }

.deals-store-info { flex: 1; min-width: 0; }
.deals-store-name {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  transition: color var(--tr);
}
.deals-store-name:hover { color: var(--brand); }
.deals-store-desc {
  font-size: .8rem;
  color: var(--text3);
  line-height: 1.5;
  margin: 0;
}
.deals-store-all {
  font-size: .82rem;
  font-weight: 600;
  color: var(--brand);
  white-space: nowrap;
  flex-shrink: 0;
  padding: 6px 14px;
  border: 1px solid var(--brand);
  border-radius: var(--radius);
  transition: all var(--tr);
}
.deals-store-all:hover { background: var(--brand); color: #fff; }

/* ====================================================================
   HOME SEO DESCRIPTION
   ==================================================================== */
.home-seo-desc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  margin-top: 8px;
  color: var(--text2);
  line-height: 1.75;
  font-size: .9rem;
}
.home-seo-desc h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 28px 0 10px;
}
.home-seo-desc h2:first-child { margin-top: 0; }
.home-seo-desc h3 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
  margin: 20px 0 8px;
}
.home-seo-desc p { margin-bottom: 12px; }
.home-seo-desc strong { color: var(--text); }
.seo-store-link {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--tr);
}
.seo-store-link:hover { border-bottom-color: var(--brand); }

/* ====================================================================
   EMPTY STATE
   ==================================================================== */
.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--text3);
}
.empty-state p { font-size: .95rem; margin-bottom: 8px; }

/* ====================================================================
   DESC BOX
   ==================================================================== */
.desc-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  margin-top: 32px;
  font-size: .88rem;
  color: var(--text2);
  line-height: 1.65;
  max-height: 180px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent);
  mask-image: linear-gradient(to bottom, black 60%, transparent);
  position: relative;
}
.desc-box.expanded {
  max-height: none;
  -webkit-mask-image: none;
  mask-image: none;
}
.desc-box h2 { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.desc-box h3 { font-size: .9rem; font-weight: 700; color: var(--text); margin: 12px 0 6px; }
.desc-box p { margin-bottom: 8px; }
.desc-box ul { margin-left: 18px; list-style: disc; }
.desc-box li { margin-bottom: 4px; }
.read-more-btn {
  display: block;
  margin: 12px auto 0;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 16px;
  font-size: .8rem;
  color: var(--brand);
  cursor: pointer;
  font-weight: 600;
}

/* ====================================================================
   TOAST
   ==================================================================== */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: #0f172a;
  color: #fff;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 9999;
  white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ====================================================================
   LOADING
   ==================================================================== */
.loading-screen {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--text3);
}
.loading-squirrel { font-size: 3rem; animation: bounce .8s infinite alternate; }
@keyframes bounce { from { transform: translateY(0); } to { transform: translateY(-10px); } }

/* ====================================================================
   FOOTER
   ==================================================================== */
footer, .footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 40px 20px 24px;
  margin-top: 48px;
}
.footer-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
}
.footer-brand { max-width: 240px; }
.footer-tagline {
  font-size: .8rem;
  color: #64748b;
  line-height: 1.55;
  margin-top: 4px;
}
.pwa-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand);
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 6px;
  transition: background var(--tr);
}
.pwa-btn:hover { background: var(--brand-dark); }
.footer-col h4 { color: #fff; font-size: .82rem; font-weight: 700; margin-bottom: 12px; text-transform: uppercase; letter-spacing: .04em; }
.footer-col a {
  display: block;
  font-size: .8rem;
  color: #64748b;
  margin-bottom: 7px;
  cursor: pointer;
  transition: color var(--tr);
  text-decoration: none;
}
.footer-col a:hover { color: #e2e8f0; }
.footer-bottom {
  max-width: 1300px;
  margin: 28px auto 0;
  padding-top: 18px;
  border-top: 1px solid #1e293b;
  text-align: center;
  font-size: .75rem;
  color: #475569;
}

@media (max-width: 768px) {
  .footer-inner { gap: 24px; }
  .footer-brand { max-width: 100%; }
}

/* ====================================================================
   RESPONSIVE
   ==================================================================== */
@media (max-width: 1100px) {
  .ads-grid-home { grid-template-columns: repeat(4, 1fr); }
  .top-stores-grid { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 768px) {
  .header-top { padding: 8px 14px; gap: 8px; }
  .logo-text { font-size: 1.1rem; }
  .search-bar { max-width: none; }
  .page-container, .home-container { padding: 16px 14px 48px; }
  .ads-grid { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 10px; }
  .ads-grid-home { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .stores-grid { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; }
  .top-stores-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .store-hero { flex-direction: column; gap: 14px; }
  .flyer-header { flex-wrap: wrap; gap: 12px; }
  .page-header h1 { font-size: 1.15rem; }
}

@media (max-width: 480px) {
  .ads-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .ads-grid-home { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .stores-grid { grid-template-columns: repeat(3, 1fr); }
  .top-stores-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .nav-item { padding: 9px 10px; font-size: .76rem; }
}
