/* ============================================================
   AuCatalogues — Main Stylesheet
   ============================================================ */

/* ── Lucide icons ─────────────────────────────────────────── */
[data-lucide] { display:inline-block; vertical-align:middle; width:16px; height:16px; stroke-width:2; flex-shrink:0; }
.logo-icon [data-lucide]    { width:20px; height:20px; }
.search-icon [data-lucide]  { width:15px; height:15px; }
.menu-toggle [data-lucide]  { width:20px; height:20px; }
.mobile-nav-close [data-lucide] { width:20px; height:20px; }
.cat-icon [data-lucide]     { width:15px; height:15px; }
.hero-eyebrow [data-lucide] { width:14px; height:14px; margin-right:3px; }

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary:      #1a1a2e;
  --accent:       #C1272D;
  --accent-dark:  #9a1e23;
  --green:        #006233;
  --bg:           #f4f6f9;
  --bg-card:      #ffffff;
  --text:         #1a1a2e;
  --text-muted:   #6c7a89;
  --border:       #e2e8f0;
  --shadow-sm:    0 2px 8px rgba(0,0,0,.07);
  --shadow-md:    0 6px 24px rgba(0,0,0,.10);
  --shadow-lg:    0 16px 48px rgba(0,0,0,.14);
  --radius-sm:    8px;
  --radius-md:    14px;
  --radius-lg:    20px;
  --transition:   .25s ease;
  --max-width:    1280px;
  --header-h:     68px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
ul, ol { list-style: none; }

/* ── Utilities ────────────────────────────────────────────── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
/* Offset anchor targets so sticky header doesn't cover them */
[id] { scroll-margin-top: calc(var(--header-h) + 12px); }
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .03em;
}
.badge-red   { background: #fff0f0; color: var(--accent); }
.badge-green { background: #e6faf6; color: var(--green); }
.badge-blue  { background: #eef4ff; color: #3b82f6; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  height: var(--header-h);
  background: var(--primary);
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  white-space: nowrap;
}
.site-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.site-logo .logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
}
.site-logo .logo-text span { color: var(--accent); }

/* Main Nav */
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  color: rgba(255,255,255,.75);
  font-size: .9rem;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.main-nav a:hover,
.main-nav a.active { color: #fff; background: rgba(255,255,255,.1); }

/* Search */
.header-search-wrap {
  position: relative;
  flex: 0 1 300px;
}
.header-search {
  display: flex;
  align-items: center;
  position: relative;
}
.header-search input {
  width: 100%;
  padding: 8px 32px 8px 40px;
  border-radius: 30px;
  border: none;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: .9rem;
  outline: none;
  transition: background var(--transition);
}
.header-search input::placeholder { color: rgba(255,255,255,.5); }
.header-search input:focus { background: rgba(255,255,255,.2); }
.header-search .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,.5);
  pointer-events: none;
}
.header-search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,.5);
  font-size: .8rem;
  padding: 2px 4px;
  background: none;
  border: none;
  cursor: pointer;
}
.header-search-clear:hover { color: white; }
/* Dropdown anchored under header search */
.header-search-wrap .search-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  left: auto;
  width: 380px;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  color: white;
  font-size: 1.4rem;
}

/* Mobile nav — hidden globally, shown only when .open is toggled via JS */
.mobile-nav { display: none; }

/* ── Search dropdown ── */
.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: white;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,.18);
  overflow: hidden;
  z-index: 200;
  max-height: 380px;
  overflow-y: auto;
}
.search-dropdown[hidden] { display: none; }
.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background .15s;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--border);
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover,
.search-result-item.focused { background: var(--bg); }
.search-result-thumb {
  width: 44px; height: 44px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f0f0f0;
}
.search-result-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.search-result-store-icon {
  width: 44px; height: 44px;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 800; color: white;
  text-align: center; line-height: 1.2;
  padding: 4px;
}
.search-result-info { flex: 1; min-width: 0; }
.search-result-title {
  font-size: .9rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-result-sub {
  font-size: .78rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.search-no-results {
  padding: 24px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: .9rem;
}

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
  flex-wrap: wrap;
}
.section-title {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--text);
}
.section-title span { color: var(--accent); }
.section-sub { color: var(--text-muted); font-size: .9rem; margin-top: 4px; }

/* Store logo beside section title */
.section-header-store {
  display: flex;
  align-items: center;
  gap: 16px;
}
.section-store-logo {
  width: 72px;
  height: 52px;
  background: white;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.section-store-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.view-all {
  color: var(--accent);
  font-size: .9rem;
  font-weight: 600;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition);
}
.view-all:hover { gap: 8px; }

/* ============================================================
   CATEGORY FILTER TABS
   ============================================================ */
.category-tabs-section { padding: 48px 0 0; }

.category-tabs-wrap {
  position: relative;
}
/* fade hint on right edge */
.category-tabs-wrap::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 48px;
  background: linear-gradient(to right, transparent, var(--bg, #f4f6f9) 90%);
  pointer-events: none;
  z-index: 1;
}

.category-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.cat-tab {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 20px;
  border-radius: 30px;
  font-size: .9rem;
  font-weight: 600;
  border: 2px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  white-space: nowrap;
  transition: all var(--transition);
}
.cat-tab:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.cat-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  box-shadow: 0 4px 16px rgba(193,39,45,.35);
}
.cat-tab .cat-icon { font-size: 1rem; }

/* ============================================================
   STORE CAROUSEL
   ============================================================ */
.stores-carousel-wrap {
  position: relative;
}

/* Gradient fade on edges */
.stores-carousel-wrap::before,
.stores-carousel-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}
.stores-carousel-wrap::before { left: 0;  background: linear-gradient(to right, var(--bg), transparent); }
.stores-carousel-wrap::after  { right: 0; background: linear-gradient(to left,  var(--bg), transparent); }

/* Arrow buttons */
.carousel-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 3;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: white;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  color: var(--text);
  transition: all var(--transition);
  cursor: pointer;
}
.carousel-arrow:hover { background: var(--accent); color: white; border-color: var(--accent); }
.carousel-arrow.prev { left: -18px; }
.carousel-arrow.next { right: -18px; }
.carousel-arrow:disabled { opacity: .3; pointer-events: none; }

/* Scrollable track */
.stores-grid {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 8px 4px 16px;
}
.stores-grid::-webkit-scrollbar { display: none; }

/* Each store card — fixed width so they don't stretch */
.store-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
  border: 2px solid var(--border);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  flex: 0 0 150px;   /* fixed width, no shrink */
  min-width: 0;
}
.store-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--store-color, var(--accent));
  transform: scaleX(0);
  transition: transform var(--transition);
}
.store-card:hover { border-color: var(--store-color, var(--accent)); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.store-card:hover::before { transform: scaleX(1); }

.store-logo-wrap {
  width: 80px; height: 50px;
  display: flex; align-items: center; justify-content: center;
}
.store-logo-wrap img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  filter: grayscale(20%);
  transition: filter var(--transition);
}
.store-card:hover .store-logo-wrap img { filter: grayscale(0%); }

.store-name  { font-size: .85rem; font-weight: 700; color: var(--text); }
.store-count { font-size: .75rem; color: var(--text-muted); }

/* hidden cards just collapse out of the flex row */
.store-card[hidden] { display: none; }

/* ── Category section spacing ────────────────────────────────── */
#categorySections .cat-section:first-child { padding-top: 56px; }
#categorySections .cat-section { padding: 48px 0; }
#categorySections hr:last-child { display: none; }

/* ============================================================
   CATALOGUE CARDS
   ============================================================ */
.catalogues-section { padding: 56px 0; }

/* ── Slider wrapper ── */
.catalogues-slider {
  position: relative;
  padding: 0 22px;   /* room for the arrow buttons */
}
/* right-edge fade — always visible, fades out when fully scrolled */
.catalogues-slider::after {
  content: '';
  position: absolute;
  top: 0; right: 22px; bottom: 8px;
  width: 64px;
  background: linear-gradient(to right, transparent, var(--bg-card, #fff) 90%);
  pointer-events: none;
  z-index: 1;
  transition: opacity .25s;
}
.catalogues-slider.at-end::after { opacity: 0; }

.catalogues-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: white;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}
.catalogues-slider-btn:hover { background: var(--accent); color: white; border-color: var(--accent); }
.catalogues-slider-btn.prev { left: -18px; }
.catalogues-slider-btn.next { right: -18px; }
.catalogues-slider-btn[hidden] { display: none; }

.catalogues-grid {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  /* hide scrollbar */
  scrollbar-width: none;
}
.catalogues-grid::-webkit-scrollbar { display: none; }

.catalogue-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  flex: 0 0 240px;
  width: 240px;
  scroll-snap-align: start;
}
.catalogue-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }

/* Ad card inside slider / grid */
.catalogue-card-ad {
  background: #fafafa;
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px;
  text-align: center;
  flex: 0 0 240px;
  width: 240px;
  scroll-snap-align: start;
  min-height: 200px;
}
.catalogue-card-ad:hover { transform: none; box-shadow: none; }
.cat-ad-label {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.cat-ad-body { width: 100%; }

/* ── Expired overlay (home page + store page) ── */
.catalogue-card.is-expired { opacity: .7; }
.expired-overlay {
  position: absolute; inset: 0; z-index: 5;
  background: rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: .78rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  pointer-events: none;
  border-radius: inherit;
}

.catalogue-thumb {
  position: relative;
  aspect-ratio: 3/4;
  background: #f0f0f0;
  overflow: hidden;
}
.catalogue-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.catalogue-card:hover .catalogue-thumb img { transform: scale(1.04); }

.catalogue-store-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: white;
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 5px;
}
.catalogue-store-badge img { width: 18px; height: 18px; object-fit: contain; border-radius: 3px; }
.catalogue-store-badge span { font-size: .72rem; font-weight: 700; color: var(--text); }

.catalogue-pages-badge {
  position: absolute;
  top: 10px; right: 10px;
  background: rgba(0,0,0,.65);
  color: white;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 600;
}

.catalogue-body { padding: 14px 16px 18px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.catalogue-title { font-size: .95rem; font-weight: 700; line-height: 1.35; color: var(--text); }
.catalogue-dates {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-muted);
  font-size: .8rem;
}
.catalogue-dates svg { color: var(--green); flex-shrink: 0; }

.catalogue-footer {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
}
.btn-view {
  flex: 1;
  text-align: center;
  padding: 9px 0;
  background: var(--accent);
  color: white;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  font-weight: 700;
  transition: background var(--transition);
}
.btn-view:hover { background: var(--accent-dark); }
.btn-icon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: .9rem;
  transition: all var(--transition);
  flex-shrink: 0;
}
.btn-icon:hover { border-color: var(--accent); color: var(--accent); }

/* ============================================================
   CATEGORY PAGE HERO BANNER
   ============================================================ */
.cat-hero {
  background: var(--primary);
  padding: 48px 0 52px;
  margin-bottom: 0;
}
.cat-hero-inner {
  display: flex;
  align-items: center;
  gap: 28px;
}
.cat-hero-logo {
  width: 90px; height: 70px;
  background: white;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  padding: 10px;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
}
.cat-hero-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cat-hero-info h1 { color: white; font-size: 2rem; font-weight: 800; margin-bottom: 6px; }
.cat-hero-info p  { color: rgba(255,255,255,.6); font-size: .95rem; }
.cat-hero-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.cat-hero-meta span {
  color: rgba(255,255,255,.8);
  font-size: .85rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ============================================================
   NEWSLETTER / CTA BANNER
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--accent) 0%, #9a1e23 100%);
  padding: 60px 0;
  text-align: center;
  margin: 0;
}
.cta-banner h2 { color: white; font-size: 1.9rem; font-weight: 800; margin-bottom: 10px; }
.cta-banner p  { color: rgba(255,255,255,.8); font-size: 1rem; margin-bottom: 28px; }
.newsletter-form {
  display: flex;
  max-width: 460px;
  margin: 0 auto;
  background: white;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.newsletter-form input {
  flex: 1;
  border: none;
  padding: 14px 22px;
  font-size: .95rem;
  outline: none;
}
.newsletter-form button {
  background: var(--primary);
  color: white;
  padding: 0 24px;
  font-size: .9rem;
  font-weight: 700;
  white-space: nowrap;
  border-radius: 0 50px 50px 0;
  transition: background var(--transition);
}
.newsletter-form button:hover { background: #0d0d1e; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,.65);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand .logo-text { font-size: 1.3rem; font-weight: 800; color: white; letter-spacing: -.02em; margin-bottom: 12px; }
.footer-brand .logo-text span { color: var(--accent); }
.footer-brand p { font-size: .88rem; line-height: 1.7; max-width: 280px; }

.footer-col h4 { color: white; font-size: .9rem; font-weight: 700; margin-bottom: 16px; letter-spacing: .02em; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: .87rem; transition: color var(--transition); }
.footer-col a:hover { color: white; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .83rem;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { transition: color var(--transition); }
.footer-bottom a:hover { color: white; }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .83rem;
  color: var(--text-muted);
  padding: 14px 0;
}
.breadcrumb a { color: var(--accent); }
.breadcrumb span { color: var(--border); }

/* ============================================================
   SKELETON LOADERS
   ============================================================ */
@keyframes shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position: 600px 0; }
}
.skeleton {
  background: linear-gradient(90deg, #e8e8e8 25%, #f5f5f5 50%, #e8e8e8 75%);
  background-size: 600px 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius-sm);
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}
.empty-state .empty-icon { font-size: 3.5rem; margin-bottom: 16px; }
.empty-state h3 { font-size: 1.2rem; color: var(--text); margin-bottom: 8px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --header-h: 60px; }

  .main-nav,
  .header-search { display: none; }

  .menu-toggle { display: flex; }

  /* Shrink logo text on tablet */
  .site-logo .logo-text { font-size: 1rem; }

  /* Mobile nav drawer */
  .mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--primary);
    z-index: 999;
    padding: 80px 24px 40px;
    flex-direction: column;
    gap: 8px;
  }
  .mobile-nav.open { display: flex; }
  .mobile-nav a {
    color: rgba(255,255,255,.8);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
  }
  .mobile-nav a:hover { background: rgba(255,255,255,.1); color: white; }
  .mobile-nav-close {
    position: absolute;
    top: 18px; right: 20px;
    color: white;
    font-size: 1.8rem;
    padding: 8px;
  }

  .category-tabs {
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
    margin-bottom: 24px;
  }
  .category-tabs::-webkit-scrollbar { display: none; }
  .cat-tab {
    padding: 7px 14px;
    font-size: .82rem;
    scroll-snap-align: start;
    flex-shrink: 0;
  }

  .stores-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }

  .catalogues-grid { gap: 14px; }
  .catalogue-card { flex: 0 0 210px; width: 210px; }

  /* Section header: stack on tablet */
  .section-header { flex-direction: row; align-items: center; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }

  .cat-hero-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .cat-hero-info h1 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .stores-grid { grid-template-columns: repeat(3, 1fr); }
  /* On very small screens: shrink logo text, keep it visible */
  .site-logo .logo-text { font-size: .88rem; }

  /* Smaller buttons inside the slider on mobile */
  .catalogues-slider { padding: 0; }
  .catalogues-slider::after { right: 0; }
  .catalogues-slider-btn {
    width: 30px; height: 30px;
    background: rgba(255,255,255,.92);
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
  }
  .catalogues-slider-btn.prev { left: 4px; }
  .catalogues-slider-btn.next { right: 4px; }

  /* Show 1.8 cards so users see it scrolls — uses viewport width */
  .catalogues-grid { gap: 10px; }
  .catalogue-card {
    flex: 0 0 calc(52vw - 18px);
    width: calc(52vw - 18px);
    min-width: 140px;
    max-width: 180px;
  }

  /* Tighter card body on small screens */
  .catalogue-body { padding: 10px 12px 14px; gap: 6px; }
  .catalogue-title {
    font-size: .82rem;
    /* Clamp to 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .catalogue-dates { font-size: .74rem; }

  /* Hide store-link icon — saves space, logo badge already shows store */
  .btn-icon { display: none; }

  /* Compact view button */
  .btn-view { padding: 7px 0; font-size: .78rem; }

  /* Tighter section padding */
  #categorySections .cat-section { padding: 32px 0; }
  .section-header { margin-bottom: 18px; }
  .section-store-logo { width: 52px; height: 38px; }
  .section-title { font-size: 1.2rem; }
}
