/* Google Fonts (Inter) loaded asynchronously via wp_head in functions.php — no render-blocking @import */

/*
 * Filename:     assets/css/style.css
 * Purpose:      Main front-end stylesheet. Design: blue-primary SaveHopper system.
 *               Signature component: lottery-ticket perforated coupon card.
 * Created:      2026-04-24
 * Last Updated: 2026-04-25 00:00:00 UTC
 */

/* ─── Design Tokens ──────────────────────────────────────────────────────── */
:root {
  --primary:       #2563EB;
  --primary-deep:  #1E40AF;
  --primary-tint:  #DBEAFE;
  --primary-hair:  #BFDBFE;
  --bg:            #F8FAFF;
  --surface:       #FFFFFF;
  --ink:           #0F172A;
  --muted:         #64748B;
  --border:        #E2E8F0;
  --border-soft:   #F1F5F9;
  --danger:        #EF4444;
  --success:       #10B981;

  /* legacy aliases kept for any JS references */
  --color-orange:      #2563EB;
  --color-orange-dark: #1E40AF;
  --color-navy:        #0F172A;

  --font-sans:  'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:  'JetBrains Mono', 'Fira Code', 'Courier New', monospace;

  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --radius-xl:  16px;
  --radius-full: 9999px;

  --transition: 0.15s ease;

  --header-h:     64px;
  --container-max: 1240px;
  --sidebar-w:    260px;
}

/* ─── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: inherit; }

/* ─── Accessibility ──────────────────────────────────────────────────────── */
.sh-skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 9999;
  padding: 8px 16px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-md);
}
.sh-skip-link:focus { left: 16px; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ─── Layout ─────────────────────────────────────────────────────────────── */
.sh-container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 16px;
}
.sh-main { min-height: calc(100vh - 300px); }
#main-content { padding-bottom: 64px; }
.container { max-width: var(--container-max); margin: 0 auto; }

/* ─── Typography ─────────────────────────────────────────────────────────── */
.sh-page-title    { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 800; color: var(--ink); line-height: 1.2; letter-spacing: -0.03em; }
.sh-section-title { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
@media (max-width: 900px) {
  .sh-section-title { font-size: 18px; }
}
.sh-text-muted    { color: var(--muted); font-size: .875rem; }
.sh-text-danger   { color: var(--danger); }
.text-muted       { color: var(--muted); }
.text-danger      { color: var(--danger); }
.text-primary     { color: var(--primary); }
.muted-small      { font-size: 12px; color: var(--muted); }

/* ─── Header ─────────────────────────────────────────────────────────────── */
.sh-header {
  position: relative; /* non-sticky */
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.sh-header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 0;
}

/* Logo (left) */
.sh-header__logo, .sh-logo {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  text-decoration: none;
  margin-right: auto; /* push nav to center + actions to right on mobile */
}
.sh-logo-mark {
  width: 30px; height: 30px;
  background: var(--primary);
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  position: relative;
  flex-shrink: 0;
}
.sh-logo-mark::after {
  content: '';
  position: absolute;
  width: 8px; height: 8px;
  background: #fff;
  border-radius: 50%;
  top: -3px; right: -3px;
  border: 2px solid var(--primary);
}
.sh-logo-text { font-size: 20px; }
.sh-header__logo-text { display: flex; align-items: center; gap: 8px; }

/* Nav (center — desktop only) */
.sh-nav {
  display: none; /* hidden on mobile */
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.sh-nav__menu { display: flex; gap: 8px; }
.sh-nav__menu a,
.sh-nav__menu li a {
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  transition: background var(--transition), color var(--transition);
}
.sh-nav__menu a:hover { background: var(--bg); color: var(--primary); }
.sh-nav__menu .current-menu-item > a,
.sh-nav__menu a.active { background: var(--primary-tint); color: var(--primary); font-weight: 600; }

/* Right-side actions group */
.sh-header__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* Search toggle icon button */
.sh-search-toggle {
  width: 38px; height: 38px;
  border-radius: var(--radius-md);
  display: none; /* hidden on mobile; shown at 768px+ */
  place-items: center;
  color: var(--ink);
  border: none;
  background: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.sh-search-toggle:hover,
.sh-search-toggle[aria-expanded="true"] { background: var(--primary-tint); color: var(--primary); }

/* Search panel (slides open below header bar) */
/* Search panel — smooth slide-down via grid-template-rows trick */
.sh-search-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.22s cubic-bezier(.4,0,.2,1),
              opacity 0.2s ease;
  opacity: 0;
  border-top: 1px solid transparent;
  background: var(--surface);
  overflow: hidden;
}
.sh-search-panel[hidden] {
  display: grid; /* keep in flow for animation */
  visibility: hidden;
  pointer-events: none;
}
.sh-search-panel.sh-search-panel--open {
  grid-template-rows: 1fr;
  opacity: 1;
  border-top-color: var(--border);
  visibility: visible;
  pointer-events: auto;
}
.sh-search-panel__inner-wrap {
  overflow: hidden;
  padding: 12px 0 14px;
}
.sh-search-panel__inner { position: relative; }
.sh-search-panel__form {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-full);
  padding: 10px 18px;
  background: var(--bg);
}
.sh-search-panel__icon { color: var(--muted); flex-shrink: 0; }
.sh-search-panel__input {
  flex: 1;
  border: none;
  background: none;
  outline: none;
  font-size: 15px;
  color: var(--ink);
}
.sh-search-panel__input::placeholder { color: var(--muted); }
.sh-search-panel__close {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: none;
  background: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--muted);
  flex-shrink: 0;
  transition: background var(--transition), color var(--transition);
}
.sh-search-panel__close:hover { background: #FEF2F2; color: var(--danger); }

/* Desktop header inline search — hidden everywhere until JS adds --open */
.sh-hdr-search { display: none !important; }

@media (min-width: 768px) {
  /* Kill the slide-down panel on desktop */
  .sh-search-panel,
  .sh-search-panel[hidden],
  .sh-search-panel.sh-search-panel--open { display: none !important; }

  /* Only shown when magnifier is clicked */
  .sh-hdr-search.sh-hdr-search--open {
    display: flex !important;
    align-items: center;
    position: relative;
  }
  .sh-hdr-search__sizer { display: flex; align-items: center; }
  .sh-hdr-search__form {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 264px;
    height: 38px;
    border: 1.5px solid var(--primary);
    border-radius: var(--radius-full);
    padding: 0 6px 0 16px;
    background: var(--bg);
  }
  .sh-hdr-search__input {
    flex: 1;
    min-width: 0;
    border: none;
    background: none;
    outline: none;
    font-size: 14px;
    color: var(--ink);
  }
  .sh-hdr-search__input::placeholder { color: var(--muted); }
  .sh-hdr-search__close {
    width: 26px; height: 26px;
    border-radius: 50%;
    border: none;
    background: none;
    cursor: pointer;
    display: grid;
    place-items: center;
    color: var(--muted);
    flex-shrink: 0;
    transition: background var(--transition), color var(--transition);
  }
  .sh-hdr-search__close:hover { background: #FEF2F2; color: var(--danger); }
  .sh-hdr-search__dd {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    min-width: 300px;
  }
}

/* User dropdown */
.sh-user-menu { position: relative; }
.sh-user-trigger {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px 5px 5px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--surface);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.sh-user-trigger:hover,
.sh-user-trigger[aria-expanded="true"] { border-color: var(--primary); background: var(--primary-tint); }
.sh-user-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.sh-user-name { font-size: 13px; font-weight: 500; color: var(--ink); max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-user-chevron { color: var(--muted); transition: transform var(--transition); flex-shrink: 0; }
.sh-user-trigger[aria-expanded="true"] .sh-user-chevron { transform: rotate(180deg); }

.sh-user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 190px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 28px rgba(0,0,0,0.10);
  z-index: 300;
  overflow: hidden;
}
.sh-user-dropdown[hidden] { display: none; }
.sh-user-dropdown__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.sh-user-dropdown__item:last-child { border-bottom: none; }
.sh-user-dropdown__item:hover { background: var(--bg); }
.sh-user-dropdown__item--logout { color: var(--danger); }
.sh-user-dropdown__item--logout:hover { background: #FEF2F2; }

/* Single login button */
.sh-header__login-btn { white-space: nowrap; }

/* Hamburger (mobile only, hidden on desktop) */
.sh-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px; height: 38px;
  padding: 8px;
  border-radius: var(--radius-md);
  border: none;
  background: none;
  cursor: pointer;
}
.sh-hamburger__line {
  display: block;
  width: 20px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .22s ease, opacity .22s ease;
}
.sh-hamburger[aria-expanded="true"] .sh-hamburger__line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sh-hamburger[aria-expanded="true"] .sh-hamburger__line:nth-child(2) { opacity: 0; }
.sh-hamburger[aria-expanded="true"] .sh-hamburger__line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Mobile full-screen nav drawer ──────────────────────────────────────── */
.sh-mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: var(--surface);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  padding: 0 0 40px;
}
.sh-mobile-nav.sh-mobile-nav--open { transform: translateX(0); }

.sh-mobile-nav__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  height: var(--header-h);
  border-bottom: 1px solid var(--border);
}
.sh-mobile-nav__close {
  width: 38px; height: 38px;
  border-radius: var(--radius-md);
  border: none;
  background: none;
  display: grid;
  place-items: center;
  color: var(--ink);
  cursor: pointer;
  transition: background var(--transition);
}
.sh-mobile-nav__close:hover { background: var(--bg); }

.sh-mobile-nav__search {
  padding: 16px;
  border-bottom: 1px solid var(--border);
}
.sh-mobile-nav__search form {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  padding: 7px 14px;
}
.sh-mobile-nav__search input {
  flex: 1; border: none; background: none; outline: none;
  /* 16px minimum prevents iOS Safari from zooming on focus */
  font-size: 16px; color: var(--ink);
}
.sh-mobile-nav__search input::placeholder { color: var(--muted); }

.sh-mobile-nav__nav { padding: 8px 12px; }
.sh-mobile-nav__link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: background var(--transition), color var(--transition);
}
.sh-mobile-nav__link:hover { background: var(--bg); color: var(--primary); }
.sh-mobile-nav__link--cta {
  background: var(--primary);
  color: #fff;
  justify-content: center;
  margin-top: 8px;
  font-weight: 600;
}
.sh-mobile-nav__link--cta:hover { background: var(--primary-deep); color: #fff; }
.sh-mobile-nav__link--logout { color: var(--danger); }
.sh-mobile-nav__link--logout:hover { background: #FEF2F2; color: var(--danger); }
.sh-mobile-nav__divider { height: 1px; background: var(--border); margin: 8px 12px; }
.sh-mobile-nav__user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

/* Overlay backdrop */
.sh-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 499;
  background: rgba(0,0,0,0.45);
}
.sh-nav-overlay.sh-nav-overlay--visible { display: block; }

/* ─── Search forms ───────────────────────────────────────────────────────── */
.sh-search, .sh-search-form--hero .sh-search-form__wrap {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--primary);
  border-radius: 10px;
  background: var(--surface);
  overflow: hidden;
  width: 100%;
}
.sh-search input,
.sh-search-form__input {
  flex: 1;
  border: none;
  padding: 14px 18px;
  font-family: inherit;
  font-size: 15px;
  outline: none;
  color: var(--ink);
  background: transparent;
}
.sh-search input::placeholder,
.sh-search-form__input::placeholder { color: var(--muted); }
.sh-search button,
.sh-search-form--hero .sh-btn {
  border: none;
  background: var(--primary);
  color: #fff;
  padding: 0 24px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  border-radius: 0;
  transition: background var(--transition);
}
.sh-search button:hover,
.sh-search-form--hero .sh-btn:hover { background: var(--primary-deep); }

/* Header search form (compact) */
.sh-search-form { position: relative; }
.sh-search-form__wrap { display: flex; gap: 8px; }
.sh-search-form--header .sh-search-form__input {
  padding: 8px 12px 8px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  outline: none;
  transition: border-color var(--transition);
}
.sh-search-form--header .sh-search-form__input:focus { border-color: var(--primary); }
.sh-search-form--header .sh-search-form__btn {
  position: absolute;
  right: 8px; top: 50%;
  transform: translateY(-50%);
  background: none;
  color: var(--muted);
  padding: 4px;
  transition: color var(--transition);
}
.sh-search-form--header .sh-search-form__btn:hover { color: var(--primary); }

/* Search dropdown */
.sh-search-dropdown {
  position: absolute;
  top: calc(100% + 8px); left: 0; right: 0;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  z-index: 500;
  overflow: hidden;
  display: none;
}
.sh-search-dropdown.sh-search-dropdown--visible { display: block; }
.sh-search-dropdown__section { padding: 12px; }
.sh-search-dropdown__heading { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 8px; }
.sh-search-result-item { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: var(--radius-md); transition: background var(--transition); }
.sh-search-result-item:hover { background: var(--bg); }
.sh-search-result-item__title { font-size: .9rem; font-weight: 500; }
.sh-search-result-item__sub { font-size: .8rem; color: var(--muted); }

/* ─── Buttons ─────────────────────────────────────────────────────────────── */
.sh-btn, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1.4;
}
.sh-btn:active, .btn:active { transform: translateY(1px); }

.sh-btn--primary, .btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.sh-btn--primary:hover, .btn-primary:hover { background: var(--primary-deep); border-color: var(--primary-deep); }

.sh-btn--outline, .btn-outline { background: var(--surface); color: var(--primary); border-color: var(--primary); }
.sh-btn--outline:hover, .btn-outline:hover { background: var(--primary-tint); }

.sh-btn--ghost, .btn-ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.sh-btn--ghost:hover, .btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

.sh-btn--sm, .btn-sm { padding: 6px 12px; font-size: 12px; }
.sh-btn--lg, .btn-lg { padding: 14px 22px; font-size: 15px; }
.sh-btn--full, .btn-block { width: 100%; }
.sh-btn[disabled] { opacity: .5; cursor: not-allowed; pointer-events: none; }

/* Reveal button */
.sh-btn--reveal, .sh-btn--reveal-lg, .coupon__reveal {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  letter-spacing: 0.02em;
  transition: background var(--transition);
}
.sh-btn--reveal:hover, .sh-btn--reveal-lg:hover, .coupon__reveal:hover { background: var(--primary-deep); }
.coupon__reveal .code { letter-spacing: 0.4em; font-weight: 700; }
/* Revealed state — green, shows actual code */
.coupon__reveal.sh-revealed,
.coupon__reveal.sh-revealed:hover,
.coupon__reveal.sh-revealed:focus { background: #16a34a; cursor: pointer; letter-spacing: 0.06em; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 8px; }
.sh-coupon-single-wrap .coupon__reveal.sh-revealed { font-size: 18px; }

/* ─── Inputs ─────────────────────────────────────────────────────────────── */
.sh-form-input, .input {
  font-family: inherit;
  font-size: 14px;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink);
  width: 100%;
  outline: none;
  transition: border-color var(--transition);
}
.sh-form-input:focus, .input:focus { border-color: var(--primary); }
.sh-form-input::placeholder, .input::placeholder { color: var(--muted); }
.label, .sh-form-label { display: block; font-size: 13px; font-weight: 500; color: var(--ink); margin-bottom: 6px; }

/* ─── Category pill ──────────────────────────────────────────────────────── */
.sh-category-pill, .cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-tint);
  color: var(--primary-deep);
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
}
.sh-category-pill:hover, .cat-pill:hover { border-color: var(--primary); }
.sh-category-pill.active, .cat-pill.active { background: var(--primary); color: #fff; }
.sh-category-pill__count { font-size: 11px; color: var(--primary-deep); opacity: .7; }
.sh-category-pill.active .sh-category-pill__count { color: rgba(255,255,255,.75); }

/* ─── Homepage category 3-row marquee ────────────────────────────────────── */
.sh-cats-marquee-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sh-cats-marquee-row {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(to right, transparent 0%, #000 7%, #000 93%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 7%, #000 93%, transparent 100%);
}
.sh-cats-marquee-track {
  display: flex;
  gap: 10px;
  width: max-content;
  animation: sh-cats-fwd 50s linear infinite;
}
.sh-cats-marquee-row--reverse .sh-cats-marquee-track {
  animation: sh-cats-rev 58s linear infinite;
}
.sh-cats-marquee-track:hover { animation-play-state: paused; }
@keyframes sh-cats-fwd {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes sh-cats-rev {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* ─── Brand card ─────────────────────────────────────────────────────────── */
.sh-brand-card, .brand-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 16px 22px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
  min-width: 140px;
}
.sh-brand-card:hover, .brand-card:hover { border-color: var(--primary); box-shadow: 0 4px 16px rgba(37,99,235,.08); }

.sh-brand-card__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.sh-brand-card__logo, .brand-logo {
  width: 96px; height: 96px;
  border-radius: var(--radius-lg);
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  overflow: hidden;
  background: #F1F5F9;
}
.sh-brand-card__logo img {
  width: 100%; height: 100%; object-fit: contain;
}
.sh-brand-card__name, .brand-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.sh-brand-card__count, .brand-count { font-size: 11px; color: var(--muted); margin-top: 4px; }
.sh-brand-card__info { text-align: center; }

/* Placeholder logo (letter avatar) */
.sh-brand-logo--placeholder, .sh-brand-logo {
  display: flex; align-items: center; justify-content: center;
  background: var(--primary);
  color: #fff;
  font-size: .75rem; font-weight: 800;
  width: 100%; height: 100%;
  text-align: center;
  border-radius: var(--radius-md);
}

/* ─── Section header ─────────────────────────────────────────────────────── */
.sh-section-header, .section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
@media (max-width: 900px) {
  .sh-section-header, .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
.sh-section-more, .section-link {
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.sh-section-more:hover, .section-link:hover { text-decoration: underline; }
.section-title { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.section-sub { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ─── Section padding ─────────────────────────────────────────────────────── */
.section { padding: 48px 32px; }
.sh-home-section { padding: 48px 0; }
.sh-home-section + .sh-home-section { border-top: 1px solid var(--border); }

/* ─── Grid ───────────────────────────────────────────────────────────────── */
.sh-grid, .grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.sh-brand-grid { grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); }

/* ─── Homepage brand marquee (infinite auto-scroll) ──────────────────────── */
.sh-brands-marquee {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.sh-brands-marquee__track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: sh-marquee 32s linear infinite;
}
.sh-brands-marquee__track:hover { animation-play-state: paused; }
@keyframes sh-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
/* Square brand cards inside the marquee */
.sh-brands-marquee .sh-brand-card {
  width: 132px;
  min-width: 132px;
  height: 132px;
  flex-shrink: 0;
  overflow: hidden;
}
.sh-brands-marquee .sh-brand-card__link {
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 10px 12px;
  gap: 8px;
}
.sh-brands-marquee .sh-brand-card__logo {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}
.sh-brands-marquee .sh-brand-card__info {
  text-align: center;
  width: 100%;
}
.sh-brands-marquee .sh-brand-card__name {
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  line-height: 1.2;
}
@media (max-width: 639px) {
  .sh-brands-marquee .sh-brand-card { width: 112px; min-width: 112px; height: 112px; }
  .sh-brands-marquee .sh-brand-card__logo { width: 54px; height: 54px; }
}
/* Hide on mobile (≤767px) */
@media (max-width: 767px) {
  .sh-hide-mobile { display: none !important; }
}

/* "View all brands" CTA — mobile only */
.sh-brands-mobile-cta {
  display: none;
  text-align: center;
  margin-top: 20px;
}
@media (max-width: 767px) {
  .sh-brands-mobile-cta { display: block; }
}
.sh-brands-mobile-cta .sh-btn--outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  border: 2px solid var(--primary);
  border-radius: var(--radius-full);
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}
.sh-brands-mobile-cta .sh-btn--outline:hover {
  background: var(--primary);
  color: #fff;
}

.sh-hscroll, .hscroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
}
.sh-hscroll::-webkit-scrollbar, .hscroll::-webkit-scrollbar { height: 6px; }
.sh-hscroll::-webkit-scrollbar-thumb, .hscroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.sh-hscroll > *, .hscroll > * { scroll-snap-align: start; flex-shrink: 0; }

/* ══════════════════════════════════════════════════════════════════════════
   COUPON CARD — lottery-ticket / perforated tear design
   ══════════════════════════════════════════════════════════════════════════ */
.coupon, .sh-coupon-card {
  position: relative;
  display: flex;
  background: var(--surface);
  border: 1.5px solid var(--primary-hair);
  border-radius: var(--radius-lg);
  min-height: 200px;
  overflow: visible;
}
.sh-coupon-card:hover { box-shadow: none; transform: none; }

/* Stub */
.coupon__stub {
  width: 64px;
  background: var(--primary);
  border-radius: 10.5px 0 0 10.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}
.coupon__stub-text {
  transform: rotate(-90deg);
  white-space: nowrap;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  text-transform: uppercase;
}
.coupon__stub-text .stub-big {
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.01em;
}
.coupon__stub-text .stub-small {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.18em;
  opacity: 0.88;
  line-height: 1;
}

/* Tear line (perforation) */
.coupon__tear {
  width: 0;
  border-left: 3px dashed var(--border-col); /* uses --border-col so hover turns blue */
  position: relative;
  flex-shrink: 0;
  margin: 0;
}
/* Top & bottom semicircles at tear line.
   Circle center must sit on the card's outer border edge (y=0 / y=100%).
   Card has border-top/bottom: 1.5px, so content-top is 1.5px inside outer edge.
   Tear div top aligns with content-top → center must be at -1.5px from div top.
   top: -(radius + 1.5px) = -(12 + 1.5) = -13.5px puts center exactly on outer border edge.
   clip-path: inset(0 -10px) on the article then clips the outer half, leaving a clean semicircle. */
.coupon__tear::before,
.coupon__tear::after {
  content: '';
  position: absolute;
  width: 24px;   /* 12px radius = 24px diameter */
  height: 24px;
  /* Same ring style as corner quadrants and left/right chains */
  background: radial-gradient(circle, var(--surface) 9.5px, var(--border-col) 9.5px, var(--border-col) 11px, transparent 11.5px);
  border-radius: 50%;
  left: -12px;   /* center on the tear line (element width:0) */
  z-index: 8;    /* above corner quadrant (z-index:7) */
}
.coupon__tear::before { top: -13.5px; }
.coupon__tear::after  { bottom: -13.5px; }
/* on-white variant — override inner fill to white */
.coupon.on-white .coupon__tear::before,
.coupon.on-white .coupon__tear::after {
  background: radial-gradient(circle, #fff 9.5px, var(--border-col) 9.5px, var(--border-col) 11px, transparent 11.5px);
}
/* Scissors icon — vertically centered on tear line, blades pointing down (rotate 90°).
   White background interrupts the dashed line behind it.
   color: var(--border-col) → SVG stroke inherits it → turns blue on card hover. */
.coupon__scissors {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(90deg);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  color: var(--border-col);
  z-index: 9;
  flex-shrink: 0;
}

/* Body */
.coupon__body {
  flex: 1;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.coupon__info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.coupon__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ─── Most Used This Week — 2-col desktop, mobile carousel ───────────────── */
.sh-coupon-scroll-wrap {
  position: relative;
}
/* Desktop: 2 columns, arrow buttons + clones hidden */
@media (min-width: 768px) {
  .sh-most-used-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .sh-coupon-scroll-btn { display: none; }
  [data-mu-clone], [data-lc-clone], [data-ls-clone] { display: none !important; }
}
/* Mobile: horizontal scroll carousel */
@media (max-width: 767px) {
  .sh-most-used-grid {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: scroll;
    overflow-y: hidden;
    touch-action: pan-x;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    gap: 14px;
    padding: 4px 4px 8px;
  }
  .sh-most-used-grid::-webkit-scrollbar { display: none; }
  .sh-most-used-grid > * {
    flex: 0 0 88vw;
    max-width: 360px;
    scroll-snap-align: start;
  }
  .sh-coupon-scroll-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    background: var(--ink);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0,0,0,.25);
    flex-shrink: 0;
    transition: background .15s;
  }
  .sh-coupon-scroll-btn:hover { background: #1E293B; }
  .sh-coupon-scroll-btn--prev { left: -6px; }
  .sh-coupon-scroll-btn--next { right: -6px; }
}

/* ─── Coupon list view — one per row (long ticket) ───────────────────────── */
.sh-coupon-grid { grid-template-columns: 1fr !important; gap: 22px; }
/* Most Used + Search: 2-col on desktop (placed after .sh-coupon-grid so !important order wins) */
@media (min-width: 768px) {
  .sh-coupon-grid.sh-most-used-grid,
  .sh-coupon-grid.sh-search-coupon-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
.sh-coupon-grid .coupon {
  --border-col: var(--primary-hair); /* cascades to all children + pseudo-elements */
  height: auto;
  min-height: 160px;
  /* left/right borders drawn by ::before/::after chains so they interrupt at semicircles */
  border-top: 1.5px solid var(--border-col);
  border-bottom: 1.5px solid var(--border-col);
  border-left: none !important;
  border-right: none !important;
  border-radius: 0 !important;
  box-shadow: 0 2px 10px rgba(0,0,0,.07);
  overflow: visible;
  clip-path: inset(0 0);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.sh-coupon-grid .coupon:hover {
  --border-col: var(--primary); /* propagates to pseudo-elements + corner quadrants */
  border-color: var(--primary);
  box-shadow: 0 6px 24px rgba(37,99,235,.18);
  transform: scale(1.015);
}
/* Ticket design — responsive scalloped chains + segmented border.
   Strategy: top/bottom:0 fills full content area. background-position:center
   with repeat-y symmetrically distributes circles at any card height.
   Any partial circles at the very top/bottom edges fall inside the corner-quadrant's
   12px coverage zone — the corner (z-index:7) paints over them, so they never show.
   This self-heals at any card height or zoom level. */
.sh-coupon-grid .coupon::before,
.sh-coupon-grid .coupon::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 16px;
  z-index: 6;
  pointer-events: none;
}
/* Left chain — border stripe at x=8 (card left content edge) */
.sh-coupon-grid .coupon::before {
  left: -8px;
  clip-path: inset(0 0 0 8px);
  background:
    radial-gradient(circle, var(--card-fill, var(--surface)) 6.5px, var(--border-col) 6.5px, var(--border-col) 8px, transparent 8.5px) center / 16px 24px repeat-y,
    linear-gradient(var(--border-col), var(--border-col)) 8px 0 / 1.5px 100% no-repeat;
}
/* Right chain — border stripe at x=6.5 (1.5px inward from card right content edge) */
.sh-coupon-grid .coupon::after {
  right: -8px;
  clip-path: inset(0 8px 0 0);
  background:
    radial-gradient(circle, var(--card-fill, var(--surface)) 6.5px, var(--border-col) 6.5px, var(--border-col) 8px, transparent 8.5px) center / 16px 24px repeat-y,
    linear-gradient(var(--border-col), var(--border-col)) 6.5px 0 / 1.5px 100% no-repeat;
}
/* Corner quadrant cuts — 12px radius.
   inset: -1.5px 0 extends past top/bottom borders only (no left/right border to extend past).
   --border-col inherited from .coupon so corners also update on hover. */
.sh-coupon-grid .coupon__corners {
  position: absolute;
  inset: -1.5px 0;
  z-index: 7;
  pointer-events: none;
  display: block;
}
.sh-coupon-grid .coupon__corners::before,
.sh-coupon-grid .coupon__corners::after {
  content: '';
  position: absolute;
  inset: 0;
}
.sh-coupon-grid .coupon__corners::before {
  background:
    radial-gradient(circle at top    left,  var(--card-fill, var(--surface)) 10.5px, var(--border-col) 10.5px, var(--border-col) 12px, transparent 12.5px) 0    0    / 24px 24px no-repeat,
    radial-gradient(circle at bottom left,  var(--card-fill, var(--surface)) 10.5px, var(--border-col) 10.5px, var(--border-col) 12px, transparent 12.5px) 0    100% / 24px 24px no-repeat;
}
.sh-coupon-grid .coupon__corners::after {
  background:
    radial-gradient(circle at top    right, var(--card-fill, var(--surface)) 10.5px, var(--border-col) 10.5px, var(--border-col) 12px, transparent 12.5px) 100% 0    / 24px 24px no-repeat,
    radial-gradient(circle at bottom right, var(--card-fill, var(--surface)) 10.5px, var(--border-col) 10.5px, var(--border-col) 12px, transparent 12.5px) 100% 100% / 24px 24px no-repeat;
}
/* on-white cards (brand page, homepage): fill circles with white, not --surface */
.sh-coupon-grid .coupon.on-white { --card-fill: #fff; }
.sh-coupon-grid .coupon__stub { width: 106px; flex-shrink: 0; border-radius: 0; }
.sh-coupon-grid .coupon__body { flex-direction: row; align-items: stretch; gap: 24px; padding: 0 20px 0 0; overflow: visible; }
.sh-coupon-grid .coupon__info { flex: 1; gap: 6px; padding: 16px 0 16px 22px; justify-content: flex-start; overflow: visible; }
.sh-coupon-grid .coupon__title { font-size: 22px; font-weight: 800; line-height: 1.35; letter-spacing: -0.02em; color: #0B1426; min-height: calc(2 * 1.35em); max-height: calc(2 * 1.35em); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; white-space: normal; }
.sh-coupon-grid .coupon__desc { -webkit-line-clamp: 2; font-size: 12.5px; color: #94A3B8; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.sh-coupon-grid .coupon__badge { font-size: 11px; padding: 4px 10px; }
/* Actions column: bookmark sits at top-right, foot + reveal pushed to bottom */
.sh-coupon-grid .coupon__actions { flex-shrink: 0; width: 180px; align-items: flex-end; justify-content: center; padding: 16px 0 20px; gap: 12px; }
.sh-coupon-grid .coupon__actions .coupon__bookmark { position: absolute; top: 14px; right: 14px; margin-bottom: 0; }
.sh-coupon-grid .coupon__foot { flex-direction: column; align-items: flex-end; gap: 4px; margin-top: 0; }
.sh-coupon-grid .coupon__reveal { width: 100%; white-space: nowrap; padding: 14px 24px; font-size: 15px; font-weight: 700; border-radius: var(--radius-lg); letter-spacing: 0.01em; }
/* Reset any stray absolute on bookmark */
.coupon .coupon__bookmark { position: static; background: none; width: auto; height: auto; border-radius: 0; backdrop-filter: none; }
@media (max-width: 640px) {
  .sh-coupon-grid .coupon { min-height: 0; height: auto; }
  .sh-coupon-grid .coupon__body { flex-direction: column; align-items: stretch; padding: 0; gap: 0; }
  .sh-coupon-grid .coupon__info { padding: 14px 16px 12px; }
  .sh-coupon-grid .coupon__badge { display: none; }
  .sh-coupon-grid .coupon__title { font-size: 17px; min-height: unset; max-height: unset; }
  .sh-coupon-grid .coupon__desc  { display: none; }
  .sh-coupon-grid .coupon__actions { width: 100%; align-items: flex-start; padding: 0 16px 16px; gap: 10px; }
  .sh-coupon-grid .coupon__actions .coupon__bookmark { display: none; }
  .sh-coupon-grid .coupon__foot { flex-direction: row; align-items: center; }
}
.coupon__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
/* Full-card click overlay — sits beneath all interactive children */
.coupon__card-link {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
}

.coupon__brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.coupon__brand-logo {
  width: 54px; height: 54px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  flex-shrink: 0;
  overflow: hidden;
  position: relative; z-index: 1; /* above card-link */
}
.coupon__brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.coupon__brand-logo-link { display: contents; } /* transparent wrapper, logo itself is the clickable */
a.coupon__brand-logo { text-decoration: none; } /* letter-avatar as <a> */

.coupon__brand-name {
  font-size: 14px; font-weight: 700; color: var(--ink);
  position: relative; z-index: 1; /* above card-link */
  text-decoration: none;
}
a.coupon__brand-name:hover { color: var(--primary); }

/* Elevate all other interactive elements above the card-link overlay */
.coupon__badge,
.coupon__title,
.coupon__bookmark,
.coupon__reveal,
.coupon__foot { position: relative; z-index: 1; }
.coupon__bookmark {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 2px;
  display: grid;
  place-items: center;
  transition: color var(--transition);
}
.coupon__bookmark:hover,
.coupon__bookmark.active { color: var(--primary); }
.coupon__badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--primary-tint);
  color: var(--primary-deep);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  width: fit-content;
}
.coupon__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.coupon__title a { color: inherit; text-decoration: none; }
.coupon__title a:hover { color: var(--primary); }
.coupon__desc {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.coupon__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  gap: 10px;
}
.coupon__expiry {
  font-size: 11.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
}
.coupon__expiry.urgent { color: var(--danger); font-weight: 600; }

/* ── Single Coupon Page Hero — same ticket design, bigger ─────────────────── */
.sh-coupon-single-wrap { display: block; }
/* height: auto overrides the 148px fixed height from .sh-coupon-grid .coupon */
.sh-coupon-single-wrap .coupon {
  height: auto;
  min-height: 50vh;
  --border-col: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 4px 32px rgba(37,99,235,.13);
}
.sh-coupon-single-wrap .coupon__body { overflow: visible; gap: 28px; padding: 0 32px 0 0; }
/* Stub: bigger */
.sh-coupon-single-wrap .coupon__stub { width: 180px; }
.sh-coupon-single-wrap .coupon__stub-text .stub-big  { font-size: 80px; }
.sh-coupon-single-wrap .coupon__stub-text .stub-small { font-size: 22px; }
/* Info column: more breathing room, unclamped */
.sh-coupon-single-wrap .coupon__info { gap: 18px; padding: 40px 0 40px 36px; overflow: visible; justify-content: center; }
.sh-coupon-single-wrap .coupon__title { font-size: 38px; font-weight: 800; line-height: 1.2; min-height: 0; max-height: none; display: block; -webkit-line-clamp: unset; }
.sh-coupon-single-wrap .coupon__desc  { display: block; max-height: none; -webkit-line-clamp: unset; font-size: 17px; color: var(--muted); }
.sh-coupon-single-wrap .coupon__badge { font-size: 14px; padding: 6px 16px; }
.sh-coupon-single-wrap .coupon__brand-name { font-size: 18px; font-weight: 700; color: var(--ink); }
.sh-coupon-single-wrap .coupon__brand-logo { width: 80px; height: 80px; border-radius: 16px; font-size: 28px; }
/* Actions column: centered vertically, bookmark stays pinned top-right via absolute */
.sh-coupon-single-wrap .coupon__actions { width: 280px; padding: 28px 0; justify-content: center; gap: 14px; }
.sh-coupon-single-wrap .coupon__foot   { flex-direction: column; align-items: flex-end; gap: 6px; margin-top: 0; }
.sh-coupon-single-wrap .coupon__reveal { width: 100%; padding: 20px 24px; font-size: 18px; font-weight: 700; white-space: normal; text-align: center; }
/* Secondary buttons stacked below reveal */
.sh-single-secondary { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.sh-single-secondary .sh-btn { width: 100%; justify-content: center; }

/* Tablet (641–900px): pull desktop overrides back a touch */
@media (max-width: 900px) {
  .sh-coupon-single-wrap .coupon          { min-height: 50vh; }
  .sh-coupon-single-wrap .coupon__stub    { width: 160px; }
  .sh-coupon-single-wrap .coupon__stub-text .stub-big   { font-size: 72px; }
  .sh-coupon-single-wrap .coupon__stub-text .stub-small { font-size: 20px; }
  .sh-coupon-single-wrap .coupon__info    { gap: 16px; padding: 32px 0 32px 28px; }
  .sh-coupon-single-wrap .coupon__title   { font-size: 32px; }
  .sh-coupon-single-wrap .coupon__desc    { font-size: 15px; }
  .sh-coupon-single-wrap .coupon__badge   { font-size: 13px; padding: 5px 14px; }
  .sh-coupon-single-wrap .coupon__brand-logo { width: 70px; height: 70px; border-radius: 14px; }
  .sh-coupon-single-wrap .coupon__brand-name { font-size: 17px; }
  .sh-coupon-single-wrap .coupon__actions { width: 230px; padding: 28px 0; }
  .sh-coupon-single-wrap .coupon__reveal  { font-size: 16px; padding: 18px 20px; }
}
/* Mobile (≤640px): stacked layout with generous sizing to fill 50vh */
@media (max-width: 640px) {
  .sh-coupon-single-wrap .coupon          { min-height: 50vh; height: auto; }
  .sh-coupon-single-wrap .coupon__stub    { width: 90px; }
  .sh-coupon-single-wrap .coupon__stub-text .stub-big   { font-size: 42px; }
  .sh-coupon-single-wrap .coupon__stub-text .stub-small { font-size: 12px; }
  /* Body: stacked by .sh-coupon-grid mobile rule */
  .sh-coupon-single-wrap .coupon__body    { overflow: hidden; padding: 0; gap: 0; }
  .sh-coupon-single-wrap .coupon__info    { padding: 20px 16px 14px; gap: 10px; justify-content: center; flex: 1; }
  .sh-coupon-single-wrap .coupon__title   { font-size: 22px; min-height: unset; max-height: none; -webkit-line-clamp: unset; }
  .sh-coupon-single-wrap .coupon__desc    { display: block; font-size: 13px; }
  .sh-coupon-single-wrap .coupon__badge   { display: inline-flex; font-size: 12px; }
  .sh-coupon-single-wrap .coupon__brand-logo { width: 52px; height: 52px; font-size: 18px; border-radius: 10px; }
  .sh-coupon-single-wrap .coupon__brand-name { font-size: 15px; }
  /* Actions: full width, centered */
  .sh-coupon-single-wrap .coupon__actions { width: 100%; padding: 0 16px 20px; gap: 10px; align-items: flex-start; justify-content: flex-end; }
  .sh-coupon-single-wrap .coupon__actions .coupon__bookmark { display: none; }
  .sh-coupon-single-wrap .coupon__foot    { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 0; }
  .sh-coupon-single-wrap .coupon__reveal  { padding: 16px 24px; font-size: 16px; white-space: normal; }
  .sh-coupon-single-wrap .coupon__reveal.sh-revealed { font-size: 16px; }
}


/* ─── Badges / tags ──────────────────────────────────────────────────────── */
.sh-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.2;
}
.sh-badge--percent { background: var(--primary-tint); color: var(--primary); }
.sh-badge--flat    { background: rgba(16,185,129,.12); color: var(--success); }
.sh-badge--free    { background: var(--primary-tint); color: var(--primary-deep); }
.sh-badge--category { background: var(--primary-tint); color: var(--primary-deep); }
.tag { background: var(--bg); color: var(--ink); font-size: 12px; font-weight: 500; padding: 6px 12px; border-radius: var(--radius-full); border: 1px solid var(--border); }

/* ─── Hero ───────────────────────────────────────────────────────────────── */
.sh-hero, .hero {
  padding: 72px 32px 56px;
  position: relative;
  background: var(--surface);
  overflow: hidden;
}
.sh-hero__bg, .hero-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--primary-hair) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse at center, black 35%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 35%, transparent 75%);
  pointer-events: none;
}
.sh-hero__inner, .hero-inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.sh-hero__headline, .hero h1 {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--ink);
  margin: 0 0 16px;
}
.sh-hero__headline em, .hero h1 em { font-style: normal; color: var(--primary); }
.sh-hero__sub, .hero p { font-size: 17px; color: var(--muted); margin: 0 0 32px; line-height: 1.5; }
.sh-hero__live-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-tint);
  color: var(--primary-deep);
  border: 1px solid var(--primary-hair);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 20px;
}
.sh-hero__live-dot {
  width: 7px; height: 7px;
  background: #16a34a;
  border-radius: 50%;
  animation: pulse-dot 1.5s ease-in-out infinite;
}
@keyframes pulse-dot { 0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(22,163,74,0.6); } 50% { opacity: .6; box-shadow: 0 0 0 4px rgba(22,163,74,0); } }
.sh-hero__chips, .hero-chips {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.sh-hero__chip, .hero-chip {
  font-size: 12px;
  color: var(--muted);
  background: var(--bg);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
}
/* Hero search: allow dropdown to overflow the form */
.sh-hero__search { overflow: visible; position: relative; }
/* keep old visual alive on non-hero sections */
.sh-hero__visual { display: none; }
.sh-hero__copy { width: 100%; }

/* ─── Expiring section ───────────────────────────────────────────────────── */
.sh-expiring-section .sh-section-title { color: var(--danger); }

/* ─── Coupons listing layout ─────────────────────────────────────────────── */
.sh-coupons-layout {
  display: flex;
  gap: 32px;
  padding-top: 0;
  padding-bottom: 48px;
  align-items: flex-start;
}
.sh-coupons-layout__sidebar { display: none; width: var(--sidebar-w); flex-shrink: 0; position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.sh-coupons-layout__sidebar::-webkit-scrollbar { width: 4px; }
.sh-coupons-layout__sidebar::-webkit-scrollbar-track { background: transparent; }
.sh-coupons-layout__sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.sh-coupons-layout__main { flex: 1; min-width: 0; }
.sh-coupons-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.sh-coupons-toolbar__actions { display: flex; align-items: center; gap: 12px; }
.sh-coupons-count { font-size: .875rem; color: var(--muted); }
.sh-count-green { color: #16a34a; font-weight: 700; }

/* ─── Filter sidebar ─────────────────────────────────────────────────────── */
.sh-filter-sidebar, .filter-panel {
  background: var(--surface);
  border: 1.5px solid #93C5FD;
  border-radius: var(--radius-lg);
  padding: 12px;
}
.sh-filter-sidebar__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.sh-filter-sidebar__title { font-size: 12.5px; font-weight: 700; color: var(--ink); }
.sh-filter-sidebar__reset, .filter-clear {
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  text-decoration: none;
}
.sh-filter-sidebar__close { display: none; color: var(--muted); }
.sh-filter-group, .filter-group { margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--border-soft); }
.sh-filter-group:last-child, .filter-group:last-child { border: none; margin-bottom: 0; padding-bottom: 0; }
.sh-filter-group__label, .filter-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.sh-filter-select, .filter-select {
  width: 100%;
  padding: 6px 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink);
  font-size: 12.5px;
  outline: none;
  cursor: pointer;
}
.sh-filter-select:focus, .filter-select:focus { border-color: var(--primary); }
/* Brand filter — header row + search box */
.sh-filter-group__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.sh-filter-group__header .sh-filter-group__label { margin-bottom: 0; }
.sh-brand-search-btn {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  padding: 0;
  flex-shrink: 0;
  transition: background .15s, color .15s, border-color .15s;
}
.sh-brand-search-btn:hover { background: var(--border-soft); color: var(--ink); }
.sh-brand-search-btn.is-active { background: var(--border-soft); color: var(--ink); border-color: var(--border); }
/* Inline brand search — input lives in the same header row */
.sh-brand-header { gap: 6px; margin-bottom: 8px; }
.sh-brand-search-input {
  display: none;
  flex: 1;
  border: none;
  border-bottom: 1.5px solid var(--primary);
  background: transparent;
  color: var(--ink);
  font-size: 12.5px;
  outline: none;
  min-width: 0;
  padding: 0 2px 2px;
}
.sh-brand-search-input::placeholder { color: var(--muted); }
/* Open state: hide label, show input, swap icon */
.sh-brand-header.is-open .sh-brand-label { display: none; }
.sh-brand-header.is-open .sh-brand-search-input { display: block; }
.sh-icon-close { display: none; }
.sh-brand-header.is-open .sh-icon-search { display: none; }
.sh-brand-header.is-open .sh-icon-close { display: flex; }
/* Inline category search — mirrors brand search */
.sh-cat-search-btn {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  padding: 0;
  flex-shrink: 0;
  transition: background .15s, color .15s, border-color .15s;
}
.sh-cat-search-btn:hover { background: var(--border-soft); color: var(--ink); }
.sh-cat-search-btn.is-active { background: var(--border-soft); color: var(--ink); border-color: var(--border); }
.sh-cat-header { gap: 6px; margin-bottom: 8px; }
.sh-cat-search-input {
  display: none;
  flex: 1;
  border: none;
  border-bottom: 1.5px solid var(--primary);
  background: transparent;
  color: var(--ink);
  font-size: 12.5px;
  outline: none;
  min-width: 0;
  padding: 0 2px 2px;
}
.sh-cat-search-input::placeholder { color: var(--muted); }
.sh-cat-header.is-open .sh-cat-label { display: none; }
.sh-cat-header.is-open .sh-cat-search-input { display: block; }
.sh-cat-header.is-open .sh-icon-search { display: none; }
.sh-cat-header.is-open .sh-icon-close { display: flex; }
.sh-brands-more-hint {
  font-size: 11px;
  color: var(--primary);
  font-weight: 600;
  margin-top: 6px;
  margin-bottom: 0;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}
.sh-brands-more-hint:hover { text-decoration: underline; }
.sh-brands-no-results { font-size: 12px; color: var(--muted); padding: 6px 0; list-style: none; }

/* ─── All-brands modal ───────────────────────────────────────────────────── */
.sh-brands-modal {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.45);
  z-index: 1200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.sh-brands-modal.is-open { opacity: 1; pointer-events: auto; }
.sh-brands-modal__box {
  background: var(--surface);
  width: 100%;
  max-width: 680px;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 56px rgba(0,0,0,.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: calc(100vh - 56px);
}
/* Header */
.sh-brands-modal__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--bg);
}
.sh-brands-modal__search {
  width: 160px;
  flex-shrink: 0;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 5px 10px;
  font-size: 12px;
  outline: none;
  color: var(--ink);
  background: var(--surface);
  font-family: inherit;
}
.sh-brands-modal__search:focus { border-color: var(--primary); }
/* A–Z nav — primary pill chips, single scrollable row */
.sh-brands-modal__az {
  flex: 1;
  display: flex;
  flex-wrap: nowrap;
  gap: 3px;
  overflow-x: auto;
  align-items: center;
  padding-bottom: 4px;
  scrollbar-width: thin;
  scrollbar-color: #94A3B8 var(--bg);
}
.sh-brands-modal__az::-webkit-scrollbar { height: 6px; }
.sh-brands-modal__az::-webkit-scrollbar-thumb { background: #94A3B8; border-radius: 4px; }
.sh-brands-modal__az::-webkit-scrollbar-thumb:hover { background: var(--muted); }
.sh-brands-modal__az::-webkit-scrollbar-track { background: var(--bg); border-radius: 4px; }
.sh-brands-az-link {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  padding: 3px 7px;
  border-radius: var(--radius-full);
  background: var(--primary-tint);
  border: 1px solid var(--primary-hair);
  flex-shrink: 0;
  transition: background .12s, color .12s;
  cursor: pointer;
  line-height: 1.4;
}
.sh-brands-az-link:hover { background: var(--primary); color: #fff; }
.sh-brands-modal__close {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  flex-shrink: 0;
  transition: background .12s, color .12s;
}
.sh-brands-modal__close:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
/* Body — 2-column magazine flow */
.sh-brands-modal__body {
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  padding: 2px 14px 12px;
  scrollbar-width: thin;
  scrollbar-color: #94A3B8 var(--bg);
}
.sh-brands-modal__body::-webkit-scrollbar { width: 6px; }
.sh-brands-modal__body::-webkit-scrollbar-track { background: var(--bg); border-radius: 4px; }
.sh-brands-modal__body::-webkit-scrollbar-thumb { background: #94A3B8; border-radius: 4px; }
.sh-brands-modal__body::-webkit-scrollbar-thumb:hover { background: var(--muted); }
.sh-brands-flow {
  column-count: 2;
  column-gap: 0;
  column-rule: 1px solid var(--border);
}
.sh-brand-group-section { break-inside: auto; }
.sh-brand-group-letter {
  font-size: 12px;
  font-weight: 800;
  color: var(--primary);
  background: var(--primary-tint);
  padding: 4px 10px;
  margin-top: 6px;
  letter-spacing: .04em;
  break-after: avoid; /* keep heading glued to first brand */
}
.sh-brand-group-item { break-inside: avoid; }
.sh-brand-group-item label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  font-size: 12px;
  cursor: pointer;
  color: var(--ink);
  white-space: nowrap;
}
.sh-brand-group-item label:hover { color: var(--primary); }
.sh-brand-group-item input { accent-color: var(--primary); width: 12px; height: 12px; flex-shrink: 0; cursor: pointer; }
.sh-brand-group-count { color: var(--muted); font-size: 10.5px; margin-left: 2px; }
.sh-brands-modal__msg { padding: 16px; color: var(--muted); font-size: 12.5px; }
/* Category modal — title replaces A-Z nav in the header */
.sh-cats-modal__title {
  flex: 1;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
.sh-filter-checklist, .filter-checklist { display: flex; flex-direction: column; gap: 1px; }
.sh-filter-check-label, .filter-check {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 2px 0;
  cursor: pointer;
  font-size: 12px;
  color: var(--ink);
}
.sh-filter-check-label input, .filter-check input { accent-color: var(--primary); width: 13px; height: 13px; flex-shrink: 0; }
.sh-filter-check-count, .filter-check .count {
  margin-left: auto;
  font-size: 10.5px;
  color: var(--muted);
  background: var(--bg);
  padding: 1px 6px;
  border-radius: var(--radius-full);
}

/* ─── Sort tabs ──────────────────────────────────────────────────────────── */
.sh-sort-tabs, .sort-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg);
  padding: 4px;
  border-radius: 10px;
  width: fit-content;
  border: 1px solid var(--border);
}
.sh-sort-tab, .sort-tab {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  background: transparent;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: all var(--transition);
}
.sh-sort-tab.active, .sort-tab.active { background: var(--surface); color: var(--ink); font-weight: 600; }
@media (max-width: 640px) {
  .sh-sort-tabs, .sort-tabs {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .sh-sort-tabs::-webkit-scrollbar, .sort-tabs::-webkit-scrollbar { display: none; }
  .sh-sort-tab, .sort-tab { padding: 7px 12px; font-size: 12.5px; }
}

/* ─── Mobile overlay ─────────────────────────────────────────────────────── */
.sh-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(15,23,42,.45);
  z-index: 800;
}
.sh-overlay--visible { display: block; }

/* ─── Loader dots ────────────────────────────────────────────────────────── */
.sh-loader-dots, .loader-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 32px;
}
.sh-loader-dots span, .loader-dots span {
  width: 10px; height: 10px;
  background: var(--primary);
  border-radius: 50%;
  animation: bounce 1.2s infinite;
}
.sh-loader-dots span:nth-child(2), .loader-dots span:nth-child(2) { animation-delay: 0.15s; }
.sh-loader-dots span:nth-child(3), .loader-dots span:nth-child(3) { animation-delay: 0.30s; }
@keyframes bounce { 0%, 80%, 100% { transform: scale(.6); opacity: .5; } 40% { transform: scale(1); opacity: 1; } }

/* ─── Skeleton ───────────────────────────────────────────────────────────── */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@keyframes shimmer { 0% { background-position: -600px 0; } 100% { background-position: 600px 0; } }
.sh-skel-block, .skeleton {
  background: var(--border-soft);
  border-radius: 6px;
  animation: pulse 1.5s ease-in-out infinite;
}
.sh-skel-block--badge { width: 60px; height: 22px; }
.sh-skel-block--logo  { width: 80px; height: 36px; }
.sh-skel-block--title { width: 100%; height: 18px; }
.sh-skel-block--text  { width: 75%; height: 14px; }
.sh-skel-block--btn   { width: 120px; height: 36px; border-radius: var(--radius-full); }

/* ─── Empty state ─────────────────────────────────────────────────────────── */
.sh-empty-state, .empty {
  text-align: center;
  padding: 64px 32px;
  grid-column: 1 / -1;
}
.sh-empty-state__icon, .empty-icon {
  width: 72px; height: 72px;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  color: var(--primary);
}
.sh-empty-state__message, .empty p { color: var(--muted); font-size: 14px; margin: 0 0 24px; }
.empty h3 { font-size: 18px; font-weight: 700; margin: 0 0 8px; }

/* ─── Toast ───────────────────────────────────────────────────────────────── */
.sh-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(24px);
  background: var(--ink);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: .875rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  z-index: 2000;
  white-space: nowrap;
}
.sh-toast--visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.sh-toast--success { background: var(--success); }
.sh-toast--error   { background: var(--danger); }

/* ─── Stat cards ─────────────────────────────────────────────────────────── */
.stat-card, .sh-stat-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.stat-label { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 12px; }
.stat-value { font-size: 34px; font-weight: 800; color: var(--primary); letter-spacing: -0.03em; line-height: 1; }
.stat-delta { font-size: 12px; color: var(--success); margin-top: 8px; font-weight: 600; }

/* ─── Single coupon page ─────────────────────────────────────────────────── */
.sh-single-coupon { padding-top: 32px; padding-bottom: 64px; overflow-x: hidden; }
.sh-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--muted); margin-bottom: 24px; flex-wrap: wrap; }
.sh-breadcrumb a:hover { color: var(--primary); }
.sh-breadcrumb span[aria-hidden] { color: var(--border); }
.sh-single-coupon__grid { display: grid; gap: 32px; align-items: start; }
.sh-single-coupon__card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 32px;
  border: 1.5px solid var(--border);
}
.sh-single-coupon__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.sh-single-coupon__brand-name { font-size: .9rem; font-weight: 600; color: var(--muted); }
.sh-single-coupon__title { font-size: clamp(1.25rem, 3vw, 1.75rem); font-weight: 700; color: var(--ink); line-height: 1.2; margin-bottom: 16px; }
.sh-single-coupon__cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.sh-single-coupon__discount { display: flex; align-items: baseline; gap: 8px; margin-bottom: 20px; }
.sh-discount-value { font-size: 3rem; font-weight: 800; color: var(--primary); line-height: 1; }
.sh-discount-label { font-size: .875rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.sh-single-coupon__meta { display: grid; gap: 8px; margin-bottom: 24px; }
.sh-meta-row { display: flex; justify-content: space-between; gap: 16px; font-size: .875rem; padding: 8px 0; border-bottom: 1px solid var(--border-soft); }
.sh-meta-row dt { color: var(--muted); font-weight: 500; }
.sh-meta-row dd { font-weight: 600; color: var(--ink); }
.sh-meta-row--danger dt, .sh-meta-row--danger dd { color: var(--danger); }

/* Code box */
.sh-code-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 2px dashed var(--primary-hair);
  border-radius: var(--radius-lg);
  background: rgba(37,99,235,.03);
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.sh-code-box__masked {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  color: var(--primary);
  letter-spacing: .15em;
  filter: blur(5px);
  user-select: none;
  flex: 1;
}
.sh-code-box__revealed {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  color: var(--primary);
  letter-spacing: .15em;
  font-weight: 700;
  flex: 1;
}
.sh-code { font-family: var(--font-mono); font-size: .9rem; padding: 8px 12px; border: 1.5px dashed var(--primary-hair); border-radius: var(--radius-md); color: var(--primary); background: var(--primary-tint); letter-spacing: .1em; min-width: 90px; text-align: center; }
.sh-code--masked { filter: blur(4px); user-select: none; }
.sh-code--free   { border-style: solid; color: var(--success); border-color: var(--success); background: rgba(16,185,129,.06); }
.sh-single-coupon__cta { display: flex; flex-direction: column; gap: 12px; }
.sh-single-coupon__disclaimer { font-size: .75rem; color: var(--muted); text-align: center; margin-top: 8px; }
.sh-related__title { font-size: 1.1rem; font-weight: 700; color: var(--ink); margin-bottom: 20px; }
.sh-related-list { display: flex; flex-direction: column; gap: 16px; }

/* ─── Page hero (All Coupons / All Brands / Category) ───────────────────── */
.sh-page-hero {
  background: var(--surface);
  border-bottom: 1.5px solid var(--primary-hair);
  padding: 40px 0 40px;
  margin-bottom: 40px;
  min-height: 180px;
  display: flex;
  align-items: center;
}
.sh-page-hero__inner { text-align: center; max-width: 640px; margin: 0 auto; }
.sh-page-hero__icon  { font-size: 52px; display: block; margin-bottom: 16px; line-height: 1; }
.sh-page-hero__title { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; color: var(--ink); letter-spacing: -0.03em; margin-bottom: 10px; }
.sh-page-hero__desc  { color: var(--muted); font-size: 15px; line-height: 1.7; margin: 0 auto; }
@media (max-width: 640px) {
  .sh-page-hero { padding: 40px 0; min-height: 180px; }
  .sh-page-hero__icon { font-size: 40px; margin-bottom: 12px; }
}

/* ─── Brand hero ─────────────────────────────────────────────────────────── */
.sh-brand-hero {
  background: var(--surface);
  border-bottom: 1.5px solid var(--primary-hair);
  padding: 48px 0;
  text-align: center;
}
.sh-brand-hero__logo {
  width: 84px; height: 84px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 18px;
  overflow: hidden;
  margin: 0 auto 16px;
  border: 1.5px solid var(--border);
}
.sh-brand-hero__logo img { max-width: 80%; max-height: 80%; object-fit: contain; }
.sh-brand-hero__name { font-size: clamp(1.5rem, 4vw, 2.25rem); font-weight: 800; color: var(--ink); margin-bottom: 6px; letter-spacing: -0.03em; }
.sh-brand-hero__meta { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.sh-brand-hero__desc { color: var(--muted); max-width: 560px; margin: 0 auto 20px; font-size: 14px; line-height: 1.7; }
.sh-brand-hero__actions { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.sh-brand-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  margin-top: 32px;
}
.sh-brand-stat { padding: 20px; text-align: center; border-right: 1px solid var(--border); }
.sh-brand-stat:last-child { border-right: none; }
.sh-brand-stat__value { font-size: 22px; font-weight: 800; color: var(--primary); letter-spacing: -0.02em; }
.sh-brand-stat__label { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ─── Auth pages ─────────────────────────────────────────────────────────── */
.sh-auth-page { display: flex; justify-content: center; align-items: center; padding: 24px 16px; background: var(--bg); min-height: calc(100vh - var(--header-h)); }
.sh-auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--border);
  padding: 32px 28px;
  margin: auto 0;
}
.sh-auth-card__logo-block {
  width: 52px; height: 52px;
  background: var(--primary);
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  margin: 0 auto 24px;
}
.sh-auth-card__title { font-size: 24px; font-weight: 800; color: var(--ink); margin-bottom: 6px; text-align: center; letter-spacing: -0.02em; }
.sh-auth-card__sub { font-size: .875rem; color: var(--muted); margin-bottom: 16px; text-align: center; }
.sh-auth-card__footer { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border-soft); text-align: center; }
.sh-auth-card__switch { font-size: .875rem; color: var(--muted); }
.sh-auth-link { color: var(--muted); font-size: .875rem; }
.sh-auth-link--accent { color: var(--primary); font-weight: 600; }
.sh-auth-link--accent:hover { text-decoration: underline; }
.sh-auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--muted); font-size: 13px; }
.sh-auth-divider::before, .sh-auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.sh-auth-social { display: flex; gap: 10px; }
.sh-auth-social .sh-btn { flex: 1; border-color: var(--border); color: var(--ink); font-size: 13px; }

/* WP login form overrides (old page-login.php only — page-login-register uses custom markup) */
#loginform { display: flex; flex-direction: column; gap: 16px; }
#loginform p { margin: 0; }
#loginform label { font-size: .875rem; font-weight: 500; color: var(--muted); margin-bottom: 4px; display: block; }
#loginform input[type="text"],
#loginform input[type="password"],
#loginform input[type="email"] {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: .9rem;
  outline: none;
  transition: border-color var(--transition);
}
#loginform input:focus { border-color: var(--primary); }
#loginform .button-primary {
  background: var(--primary);
  border-color: var(--primary);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 700;
  width: 100%;
  cursor: pointer;
  color: #fff;
  transition: background var(--transition);
}
#loginform .button-primary:hover { background: var(--primary-deep); }

/* ─── Forms ───────────────────────────────────────────────────────────────── */
.sh-form { display: flex; flex-direction: column; gap: 14px; }
.sh-form-group { display: flex; flex-direction: column; gap: 4px; }
.sh-required { color: var(--danger); }
.sh-form-textarea { resize: vertical; min-height: 140px; }
.sh-form-hint { font-size: .78rem; color: var(--muted); }
.sh-form-legal { font-size: .78rem; color: var(--muted); text-align: center; line-height: 1.5; }
.sh-form-legal a { color: var(--primary); }
.sh-form-errors {
  background: rgba(239,68,68,.06);
  border: 1px solid rgba(239,68,68,.2);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: var(--danger);
  font-size: .875rem;
  margin-bottom: 8px;
}
.sh-form-errors ul { list-style: disc; padding-left: 20px; }
.sh-notice { padding: 16px 20px; border-radius: var(--radius-md); margin-bottom: 24px; font-size: .9rem; font-weight: 500; }
.sh-notice--success { background: rgba(16,185,129,.1); color: #065f46; border: 1px solid rgba(16,185,129,.2); }
.sh-notice--error   { background: rgba(239,68,68,.1);  color: #991b1b; border: 1px solid rgba(239,68,68,.2); }

/* ─── Auth brand block ───────────────────────────────────────────────────── */
.sh-auth-brand {
  text-align: center;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-soft);
}
.sh-auth-brand__logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  margin-bottom: 6px;
}
.sh-auth-brand__logo .sh-logo-mark {
  width: 36px; height: 36px;
  background: var(--primary);
  color: #fff;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 800;
}
.sh-auth-brand__tagline {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

/* ─── Auth tabs (login-register combined page) ───────────────────────────── */
.sh-auth-card--wide {
  max-width: 480px;
}
.sh-auth-tabs {
  display: flex;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  padding: 3px;
  margin: 0 0 20px;
  background: var(--bg);
  gap: 3px;
}
.sh-auth-tab {
  flex: 1;
  text-align: center;
  padding: 9px 0;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  transition: background var(--transition), color var(--transition);
}
.sh-auth-tab.is-active { background: var(--primary); color: #fff; }
.sh-auth-tab:not(.is-active):hover { background: var(--border-soft); color: var(--ink); }
/* Panels wrapper: both panels share the same grid cell so card height never changes */
.sh-auth-panels {
  display: grid;
  grid-template-columns: 1fr;
}
.sh-auth-panel { grid-row: 1; grid-column: 1; align-self: start; }
.sh-auth-panel--hidden { visibility: hidden !important; pointer-events: none !important; }
.sh-auth-panel__head { margin-bottom: 16px; text-align: center; }
.sh-auth-icon-wrap + .sh-auth-panel__head { margin-top: 4px; }
.sh-auth-panel__foot { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border-soft); text-align: center; }
/* Only direct-child links (e.g. "Forgot password") go block; inline switch links stay inline */
.sh-auth-panel__foot > .sh-auth-link { display: block; margin-bottom: 8px; }
.sh-auth-panel__foot .sh-auth-card__switch { margin: 0; font-size: .875rem; color: var(--muted); white-space: nowrap; }

/* "Keep me logged in" checkbox row */
.sh-form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .875rem;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}
.sh-form-check input[type="checkbox"] { accent-color: var(--primary); width: 15px; height: 15px; cursor: pointer; }

/* Password show/hide wrapper */
.sh-pw-wrap { position: relative; }
.sh-pw-wrap .sh-form-input { padding-right: 44px; width: 100%; }
.sh-pw-toggle {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  padding: 4px;
  color: var(--muted);
  line-height: 0;
  border: none;
  background: none;
}
.sh-pw-toggle:hover { color: var(--ink); }

/* ── Password reset step indicator ─────────────────────────────────────── */
.sh-pw-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 24px;
}
.sh-pw-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.sh-pw-step__dot {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  background: var(--bg);
  border: 2px solid var(--border);
  color: var(--muted);
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.sh-pw-step span {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}
.sh-pw-step--active .sh-pw-step__dot {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.sh-pw-step--active span { color: var(--primary); font-weight: 600; }
.sh-pw-step--done .sh-pw-step__dot {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.sh-pw-step--done span { color: var(--ink); }
.sh-pw-step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  min-width: 28px;
  max-width: 48px;
  margin-bottom: 18px; /* aligns with dot centres */
  transition: background var(--transition);
}
.sh-pw-step-line--done { background: var(--primary); }

/* Auth icon (sent / error / success states) */
.sh-auth-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--primary-tint);
  color: var(--primary);
  margin: 0 auto 20px;
}
.sh-auth-icon-wrap--error { background: rgba(239,68,68,.1); color: var(--danger); }

/* ─── Data table ─────────────────────────────────────────────────────────── */
.data-table, .sh-data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.data-table th, .sh-data-table th {
  background: var(--bg);
  text-align: left;
  padding: 14px 18px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
}
.data-table td, .sh-data-table td { padding: 14px 18px; border-bottom: 1px solid var(--border-soft); font-size: 13.5px; }
.data-table tr:last-child td, .sh-data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td, .sh-data-table tr:hover td { background: var(--bg); }

/* ─── Toggle ─────────────────────────────────────────────────────────────── */
.toggle, .sh-toggle {
  position: relative;
  width: 36px; height: 20px;
  background: var(--border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background var(--transition);
  border: none;
  padding: 0;
}
.toggle::after, .sh-toggle::after {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  background: #fff;
  border-radius: 50%;
  top: 3px; left: 3px;
  transition: left var(--transition);
}
.toggle.on, .sh-toggle.on { background: var(--primary); }
.toggle.on::after, .sh-toggle.on::after { left: 19px; }

/* ─── File dropzone ──────────────────────────────────────────────────────── */
.dropzone {
  border: 2px dashed var(--primary-hair);
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
}
.dropzone.active { border-color: var(--primary); background: var(--primary-tint); }
.dropzone .icon { color: var(--primary); margin-bottom: 12px; }

/* ─── Prose / static pages ───────────────────────────────────────────────── */
.sh-static-page, .prose { max-width: 680px; margin: 0 auto; padding: 64px 32px; }
.prose h1, .sh-static-page h1 { font-size: 38px; font-weight: 800; letter-spacing: -0.03em; margin: 0 0 12px; }
.prose h2, .sh-static-page h2 { font-size: 22px; font-weight: 700; margin: 36px 0 12px; letter-spacing: -0.015em; }
.prose p, .sh-static-page p { color: #334155; line-height: 1.7; font-size: 15px; margin: 0 0 16px; }
.prose .meta, .sh-static-page .meta { color: var(--muted); font-size: 13px; margin-bottom: 40px; }
.sh-static-page__content h2 { font-size: 1.25rem; font-weight: 700; color: var(--ink); margin: 32px 0 12px; }
.sh-static-page__content p, .sh-static-page__content li { color: var(--muted); line-height: 1.7; }
.sh-static-page__content ul, .sh-static-page__content ol { padding-left: 24px; margin-bottom: 16px; }
.sh-static-page__content ul { list-style: disc; }
.sh-static-page__content ol { list-style: decimal; }
.sh-legal-updated { font-size: .8rem; color: var(--muted); margin-top: 8px; }

/* ─── Legal pages (Terms / Privacy) ─────────────────────────────────────── */
/* Mobile-first responsive padding for legal pages */
.sh-legal-page { padding: 28px 20px 56px; }
@media (min-width: 640px)  { .sh-legal-page { padding: 36px 32px 64px; } }
@media (min-width: 768px)  { .sh-legal-page { padding: 40px 48px 72px; } }
@media (min-width: 1024px) { .sh-legal-page { padding: 48px 64px 80px; } }
.sh-legal-header { text-align: center; margin-bottom: 40px; }
.sh-legal-eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); margin-bottom: 8px; }
.sh-legal-header h1 { font-size: clamp(1.6rem,4vw,2.25rem); font-weight: 800; color: var(--ink); margin: 0 0 10px; letter-spacing: -.02em; }
.sh-legal-meta { font-size: .875rem; color: var(--muted); }
.sh-legal-body { max-width: 760px; margin: 0 auto; }
.sh-legal-toc { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 36px; }
.sh-legal-toc__label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 10px; }
.sh-legal-toc ol { margin: 0 0 0 18px; padding: 0; columns: 2; column-gap: 24px; }
.sh-legal-toc li { font-size: .85rem; margin-bottom: 5px; break-inside: avoid; }
.sh-legal-toc a { color: var(--primary); text-decoration: none; }
.sh-legal-toc a:hover { text-decoration: underline; }
@media (max-width: 640px) {
  .sh-legal-toc { padding: 16px; }
  .sh-legal-toc ol { columns: 1; }
  .sh-legal-body h2 { font-size: 1rem; margin: 28px 0 8px; }
  .sh-legal-body p, .sh-legal-body ul, .sh-legal-body ol { font-size: .9rem; }
}
.sh-legal-body h2 { font-size: 1.05rem; font-weight: 700; color: var(--ink); margin: 36px 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--border-soft); scroll-margin-top: 80px; }
.sh-legal-body h3 { font-size: .9375rem; font-weight: 600; color: var(--ink); margin: 18px 0 6px; }
.sh-legal-body p { font-size: .9375rem; line-height: 1.75; color: var(--body,#334155); margin: 0 0 14px; }
.sh-legal-body ul, .sh-legal-body ol { font-size: .9375rem; line-height: 1.75; color: var(--body,#334155); margin: 0 0 14px 22px; }
.sh-legal-body li { margin-bottom: 5px; }
.sh-legal-body a { color: var(--primary); text-decoration: underline; }
.sh-legal-body strong { color: var(--ink); font-weight: 600; }
.sh-legal-highlight { background: var(--primary-tint,#eff6ff); border-left: 3px solid var(--primary); border-radius: 0 var(--radius-sm,4px) var(--radius-sm,4px) 0; padding: 12px 16px; margin-bottom: 14px; font-size: .9rem; line-height: 1.65; color: var(--ink); }
.sh-legal-region { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.sh-legal-badge { display: inline-block; font-size: .75rem; font-weight: 600; padding: 3px 10px; border-radius: var(--radius-full); background: rgba(255,255,255,.18); color: inherit; border: 1px solid rgba(255,255,255,.3); }
.sh-legal-footer-note { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--border-soft); font-size: .8125rem; color: var(--muted); text-align: center; }
.sh-page-content { padding: 28px 20px 56px; }
@media (min-width: 640px)  { .sh-page-content { padding: 32px 32px 64px; } }
@media (min-width: 768px)  { .sh-page-content { padding: 36px 48px 72px; } }
@media (min-width: 1024px) { .sh-page-content { padding: 40px 64px 80px; } }
.sh-brands-page-content { padding-top: 24px; padding-bottom: 60px; }
.sh-page-header { margin-bottom: 28px; }
.sh-brands-hero, .sh-coupons-hero { text-align: center; margin-bottom: 28px; }
.sh-brands-page-content .sh-page-header { margin-bottom: 0; }
.sh-page-desc { color: var(--muted); margin-top: 8px; }
.sh-page-header__controls { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 16px; }
.sh-page-header__controls select { padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius-full); font-size: .875rem; background: var(--surface); cursor: pointer; }

/* ─── 404 ─────────────────────────────────────────────────────────────────── */
.sh-404-page, .e404 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 80px 32px;
  text-align: center;
}
.sh-404-inner { text-align: center; max-width: 500px; }
.sh-404-number, .e404 .big {
  font-size: 180px;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.08em;
  line-height: 0.9;
  margin: 0;
}
.sh-404-title, .e404 h2 { font-size: 26px; font-weight: 700; margin: 12px 0 10px; }
.sh-404-sub, .e404 p { color: var(--muted); margin: 0 0 32px; font-size: 15px; }
.sh-404-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.sh-search-form--404 .sh-search-form__wrap,
.sh-search-form--404 .sh-search { max-width: 480px; margin: 0 auto 32px; }

/* ─── Save button (coupon bookmark) ─────────────────────────────────────── */
.sh-save-btn, .coupon__bookmark {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 2px;
  display: grid;
  place-items: center;
  transition: color var(--transition);
}
.sh-save-btn:hover,
.sh-save-btn--saved { color: var(--primary); }
.sh-save-btn--saved svg { fill: var(--primary); stroke: var(--primary); }

/* ─── Saved count chip ───────────────────────────────────────────────────── */
.sh-saved-count:not(:empty)::before { content: '('; }
.sh-saved-count:not(:empty)::after  { content: ')'; }
.sh-page-count { font-size: .875rem; color: var(--muted); display: inline-block; margin-top: 8px; }

/* ─── Pagination ─────────────────────────────────────────────────────────── */
.sh-pagination { display: flex; justify-content: center; margin-top: 40px; }
.sh-pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.sh-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: .875rem;
  color: var(--muted);
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  padding: 0 12px;
}
.sh-pagination .page-numbers:hover,
.sh-pagination .page-numbers.current { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ─── Load more ──────────────────────────────────────────────────────────── */
.sh-load-more-wrap { text-align: center; margin-top: 40px; }
.sh-load-more-btn.sh-loading { opacity: .6; pointer-events: none; }
/* Auto-scroll: hide button when IO is available; keep height for sentinel */
.sh-has-io .sh-load-more-wrap { visibility: hidden; overflow: hidden; height: 48px; margin-top: 8px; }

/* ─── Brands toolbar ─────────────────────────────────────────────────────── */
.sh-brands-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  margin: 16px 0 12px;
  padding: 12px 20px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 12px;
}
/* Category label+select stacked on desktop */
.sh-brands-toolbar__item { display: flex; flex-direction: column; gap: 4px; }
/* Push reset + toggle to the far right on desktop */
.sh-brands-toolbar__item--reset { margin-left: auto; }

/* ─── Brands toolbar — mobile sticky bottom bar ──────────────────────────── */
@media (max-width: 767px) {
  .sh-brands-toolbar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 200;
    margin: 0;
    border-radius: 0;
    background: #0F172A;
    border-top: 1.5px solid rgba(255,255,255,0.08);
    border-left: none; border-right: none; border-bottom: none;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.32);
    padding: 10px 14px;
    gap: 8px;
    align-items: center;
  }
  /* Category item stretches, label hidden */
  .sh-brands-toolbar__item:not(.sh-brands-toolbar__item--reset):not(.sh-brands-toolbar__item--toggle) {
    flex: 1;
    min-width: 0;
  }
  .sh-filter-label { display: none; }
  /* Select styled for dark bg — white arrow replaces grey one */
  .sh-brands-toolbar .sh-filter-select {
    width: 100%;
    font-size: 13px;
    padding: 8px 32px 8px 12px;
    background-color: rgba(255,255,255,0.10);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    color: #fff;
    border-color: rgba(255,255,255,0.18);
  }
  .sh-brands-toolbar .sh-filter-select option { background: #0F172A; color: #fff; }
  /* Reset stays auto-left (after category) */
  .sh-brands-toolbar__item--reset { margin-left: 0; }
  /* Compact buttons styled for dark bg */
  .sh-brands-toolbar .sh-brands-reset-btn,
  .sh-brands-toolbar .sh-brands-toggle-btn {
    padding: 8px 12px;
    font-size: 12px;
    white-space: nowrap;
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.15);
    color: #fff;
  }
  .sh-brands-toolbar .sh-brands-reset-btn:hover  { background: rgba(239,68,68,0.2);  border-color: rgba(239,68,68,0.5);  color: #FCA5A5; }
  .sh-brands-toolbar .sh-brands-toggle-btn:hover { background: rgba(37,99,235,0.2);  border-color: rgba(37,99,235,0.5);  color: #93C5FD; }
  /* Extra bottom padding so last brand section isn't hidden under sticky bar */
  .sh-brands-page-content { padding-bottom: 72px; }
}

/* Desktop: keep label visible */
@media (min-width: 768px) {
  .sh-filter-label { display: block; }
  .sh-brands-toolbar__item--reset { display: flex; flex-direction: row; align-items: center; gap: 8px; }
  .sh-brands-toolbar__item--toggle { display: flex; flex-direction: row; align-items: center; }
}
.sh-filter-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.sh-filter-select {
  padding: 9px 36px 9px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  color: var(--ink);
}
.sh-filter-select:focus { outline: none; border-color: var(--primary); }

/* ─── Brands reset + toggle buttons ─────────────────────────────────────── */
.sh-brands-toolbar__item--reset,
.sh-brands-toolbar__item--toggle { justify-content: flex-end; }
.sh-brands-reset-btn,
.sh-brands-toggle-btn {
  padding: 9px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--surface);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.sh-brands-reset-btn:hover  { border-color: var(--danger);  color: var(--danger);  background: #FEF2F2; }
.sh-brands-toggle-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-tint); }

/* ─── A-Z brand sections ──────────────────────────────────────────────────── */
.sh-brands-az-wrap { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.sh-brands-empty   { text-align: center; color: var(--muted); padding: 40px; font-size: 15px; }

.sh-brand-az-section {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.sh-brand-az-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  background: var(--surface);
  color: var(--ink);
  border: none;
  border-bottom: 1.5px solid var(--border);
  cursor: pointer;
  text-align: left;
  transition: background var(--transition);
  -webkit-appearance: none;
}
.sh-brand-az-header:hover { background: var(--primary-tint); }
.sh-brand-az-header[aria-expanded="false"] { border-bottom: none; }

.sh-brand-az-letter {
  font-size: 20px;
  font-weight: 900;
  min-width: 28px;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--primary);
}
.sh-brand-az-count {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin-left: auto;
  margin-right: 4px;
}
.sh-brand-az-chevron {
  width: 18px; height: 18px;
  flex-shrink: 0;
  color: var(--primary);
  transition: transform 0.2s ease;
}
.sh-brand-az-header[aria-expanded="false"] .sh-brand-az-chevron {
  transform: rotate(-90deg);
}

.sh-brand-az-body { background: var(--surface); }
.sh-brand-az-body[hidden] { display: none; }

.sh-brand-az-items {
  display: grid;
  grid-template-columns: 1fr;
}

.sh-brand-az-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), color var(--transition);
  min-width: 0;
}
.sh-brand-az-item:last-child { border-bottom: none; }
.sh-brand-az-item:hover {
  background: var(--primary-tint);
  color: var(--primary-deep);
}

.sh-brand-az-item__logo {
  width: 64px; height: 64px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--border-soft);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
}
.sh-brand-az-item__logo img {
  width: 100%; height: 100%; object-fit: contain; padding: 6px;
}
.sh-brand-az-item__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sh-brand-az-item__name {
  font-weight: 600;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sh-brand-az-item__count {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.sh-brand-az-item:hover .sh-brand-az-item__count { color: var(--primary); }

/* 2 columns at 600px+ */
@media (min-width: 600px) {
  .sh-brand-az-items { grid-template-columns: 1fr 1fr; }
  .sh-brand-az-item  { border-bottom: 1px solid var(--border); }
  /* re-apply last-child: only works for 1-col; let body clip the rest */
}

/* 3 columns at 960px+ */
@media (min-width: 960px) {
  .sh-brand-az-items { grid-template-columns: repeat(3, 1fr); }
}

/* 4 columns at 1200px+ */
@media (min-width: 1200px) {
  .sh-brand-az-items { grid-template-columns: repeat(4, 1fr); }
}

/* ─── Search page hero ───────────────────────────────────────────────────── */
.sh-search-hero { margin-bottom: 0; }
.sh-search-hero__inner {
  max-width: 760px;
  text-align: left;
  margin-left: 0;
  margin-right: auto;
}
.sh-search-hero__inner .sh-page-hero__icon { text-align: left; }
.sh-search-hero__form {
  margin-top: 24px;
  margin-left: 0;
  max-width: 620px;
  width: 100%;
}
.sh-search-hero__form input[type="search"] {
  background: #fff !important;
}
/* ─── Search page ─────────────────────────────────────────────────────────── */
.sh-search-page-header { margin-bottom: 32px; }
.sh-search-page-header .sh-page-title { margin-bottom: 16px; }
.sh-search-section { margin-bottom: 48px; margin-top: 48px; }
/* Short query quirky message */
.sh-short-query-msg {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 40px 0 32px;
  padding: 18px 22px;
  background: #fff5f5;
  border: 1.5px solid #fca5a5;
  border-radius: 12px;
  color: #dc2626;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
}
.sh-short-query-msg__badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background: #dc2626;
  color: #fff;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
}
.sh-search-section__header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 20px; }
.sh-search-controls { display: flex; gap: 12px; flex-wrap: wrap; }
/* Brand grid on search — fixed card size, left-aligned so a single result doesn't stretch */
.sh-brand-grid--search {
  grid-template-columns: repeat(auto-fill, minmax(130px, 160px)) !important;
  justify-content: start;
}
@media (max-width: 639px) {
  .sh-search-form--page { flex-direction: row; }
  .sh-search-controls { width: 100%; }
  .sh-search-controls select { flex: 1; min-width: 0; }
  .sh-search-section__header { flex-direction: column; align-items: flex-start; }
}

/* ─── Admin sidebar layout ───────────────────────────────────────────────── */
.admin-layout { display: grid; grid-template-columns: 240px 1fr; height: 100%; }
.admin-sidebar { background: var(--surface); border-right: 1px solid var(--border); padding: 22px 14px; }
.admin-nav { display: flex; flex-direction: column; gap: 2px; margin-top: 16px; }
.admin-nav a { padding: 10px 14px; border-radius: var(--radius-md); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 10px; }
.admin-nav a:hover { background: var(--bg); }
.admin-nav a.active { background: var(--primary-tint); color: var(--primary-deep); font-weight: 600; }
.admin-main { padding: 32px; overflow: auto; background: var(--bg); }

/* ─── Utility ─────────────────────────────────────────────────────────────── */
.row { display: flex; align-items: center; gap: 12px; }
.spread { display: flex; justify-content: space-between; align-items: center; }
.stack-24 > * + * { margin-top: 24px; }

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.sh-footer {
  background: var(--ink);
  color: #fff;
  padding: 48px 0 0;
}
.sh-footer__inner, .sh-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}
.sh-footer__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  text-decoration: none;
}
.sh-footer__logo-mark {
  width: 26px; height: 26px;
  background: var(--primary);
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}
.sh-footer__tagline, .sh-footer-about { font-size: 13px; color: #94A3B8; line-height: 1.6; max-width: 280px; margin-top: 12px; }
.sh-footer__nav h4, .sh-footer h4 { font-size: 13px; font-weight: 700; margin: 0 0 14px; letter-spacing: 0.04em; text-transform: uppercase; color: #fff; }
.sh-footer__nav ul, .sh-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.sh-footer__nav a, .sh-footer a { color: #94A3B8; text-decoration: none; font-size: 13px; transition: color var(--transition); }
.sh-footer__nav a:hover, .sh-footer a:hover { color: #fff; }
.sh-footer__bottom, .sh-footer-bottom {
  border-top: 1px solid #1E293B;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #64748B;
}
.sh-footer__copy a { color: var(--primary); }
.sh-footer__disclaimer { color: rgba(255,255,255,.35); font-size: .8rem; }

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (min-width: 640px) {
  .sh-container { padding: 0 24px; }
  .sh-brand-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .sh-footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
  .sh-nav { display: flex; }
  .sh-header__search { display: block; }
  .sh-header__auth { display: flex; }
  .sh-hamburger { display: none; }
  .sh-search-toggle { display: grid; } /* magnifier visible on desktop only */
  .sh-filter-toggle { display: none; }
  .sh-coupons-layout__sidebar { display: block; }
  .sh-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
  .sh-single-coupon__grid { grid-template-columns: 1fr 320px; }
  .sh-related-list { display: grid; grid-template-columns: 1fr; }
}

@media (min-width: 1024px) {
  .sh-grid, .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .sh-brand-grid { grid-template-columns: repeat(5, 1fr); }
  .sh-footer__inner { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

@media (min-width: 1280px) {
  .sh-container { padding: 0 32px; }
}

/* ─── Mobile sticky filter bar (coupons page) ───────────────────────────── */
.sh-mobile-filter-bar {
  display: none; /* shown only on mobile via media query */
}

/* Mobile sidebar as bottom-sheet */
@media (max-width: 767px) {
  /* Hide desktop search elements completely on mobile */
  .sh-search-toggle,
  .sh-hdr-search,
  .sh-search-panel,
  .sh-search-panel[hidden],
  .sh-search-panel.sh-search-panel--open { display: none !important; }

  /* Hide the toolbar filter toggle — replaced by sticky bar */
  .sh-filter-toggle { display: none !important; }

  /* Centre the "Showing N verified offers" text when filter button is hidden */
  .sh-coupons-toolbar { justify-content: center; }

  /* Sticky bottom filter bar — full-width black rectangle */
  .sh-mobile-filter-bar {
    display: flex;
    align-items: stretch;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 850;
    padding: 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--ink);
    box-shadow: 0 -2px 16px rgba(15,23,42,0.28);
  }
  .sh-mobile-filter-bar__btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 52px;
    background: var(--ink);
    color: #fff;
    border: none;
    border-radius: 0;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: background var(--transition);
    -webkit-tap-highlight-color: transparent;
    width: 100%;
  }
  .sh-mobile-filter-bar__btn:active { background: #1E293B; }
  .sh-mobile-filter-bar__btn svg { flex-shrink: 0; }
  .sh-mobile-filter-bar__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
  }
  .sh-mobile-filter-bar__badge[data-count="0"],
  .sh-mobile-filter-bar__badge:empty { display: none; }

  /* Apply filters confirmation pill — shown when filters are active */
  .sh-filter-apply-pill {
    display: none;
    position: fixed;
    bottom: 68px;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    z-index: 920; /* above sidebar (900), overlay (899), X button (910) */
    background: var(--ink);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 10px 28px;
    font-size: 14px;
    font-weight: 700;
    font-family: var(--font-sans);
    letter-spacing: 0.01em;
    box-shadow: 0 4px 20px rgba(15,23,42,0.45);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
  }
  .sh-filter-apply-pill.is-visible {
    display: block;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  /* Extra bottom padding so content isn't hidden under the sticky bar */
  .sh-coupons-layout__main { padding-bottom: 76px; }

  /* Hide old header X — replaced by floating close button */
  .sh-filter-sidebar__close { display: none !important; }

  /* Overlay sits behind the filter panel — tapping it closes the panel */
  .sh-overlay--visible {
    display: block;
    z-index: 899; /* just below the sidebar (900) */
  }

  /* Full-screen filter panel above sticky bar */
  .sh-coupons-layout__sidebar {
    display: block !important;
    position: fixed;
    top: 0;
    bottom: 52px; /* sits above the sticky bar */
    left: 0; right: 0;
    width: 100%; /* override base width: var(--sidebar-w) */
    height: auto;
    max-height: none;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    border-radius: 0;
    background: var(--surface);
    z-index: 900;
    transform: translateX(-100%);
    /* delay visibility:hidden until after the slide-out finishes */
    transition: transform .32s cubic-bezier(.4,0,.2,1), visibility 0s .32s;
    pointer-events: none;
    visibility: hidden;
  }
  .sh-coupons-layout__sidebar::before { display: none; }
  .sh-coupons-layout__sidebar.sh-sidebar--open {
    transform: translateX(0);
    pointer-events: auto;
    visibility: visible;
    /* visibility:visible applies immediately on open, no delay */
    transition: transform .32s cubic-bezier(.4,0,.2,1), visibility 0s 0s;
  }

  /* Floating round close button — bottom-right, above sticky bar */
  .sh-mobile-close-btn {
    display: none; /* hidden by default */
    position: fixed;
    bottom: calc(52px + 14px);
    right: 16px;
    z-index: 910;
    width: 46px; height: 46px;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    border: none;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.28);
    transition: background .15s, transform .15s;
    -webkit-tap-highlight-color: transparent;
  }
  .sh-mobile-close-btn:active { background: #1E3A5F; transform: scale(0.93); }
  /* Show only when sidebar is open */
  .sh-sidebar--open ~ * .sh-mobile-close-btn,
  body.sh-filter-open .sh-mobile-close-btn { display: flex; }
  /* Direct sibling approach — toggled via JS class on the button itself */
  .sh-mobile-close-btn.is-visible { display: flex; }

  /* ── Filter sidebar: mobile-friendly content ─────────────────────────── */
  .sh-filter-sidebar, .filter-panel {
    border-radius: 0;
    border: none;
    border-bottom: 1.5px solid #93C5FD;
    padding: 0 18px 100px; /* big bottom padding so content clears floating X */
  }
  .sh-filter-sidebar__header {
    position: sticky;
    top: 0;
    background: var(--surface);
    z-index: 2;
    padding: 16px 0 13px;
    margin-bottom: 6px;
    border-bottom: 1.5px solid var(--border-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .sh-filter-sidebar__title { font-size: 16px; font-weight: 700; }
  /* Reset pill — top right */
  .sh-filter-sidebar__reset {
    font-size: 13px;
    padding: 5px 14px;
    border: 1.5px solid var(--primary);
    border-radius: var(--radius-full);
    color: var(--primary);
    background: transparent;
    font-weight: 600;
  }
  .sh-filter-sidebar__reset:active { background: var(--primary-tint); }
  .sh-filter-group, .filter-group {
    margin-bottom: 14px;
    padding-bottom: 14px;
  }
  .sh-filter-group__label, .filter-title {
    font-size: 11.5px;
    margin-bottom: 8px;
  }
  /* Larger touch-friendly selects */
  .sh-filter-select, .filter-select {
    padding: 11px 14px;
    font-size: 14px;
    min-height: 44px;
    border-radius: var(--radius-md);
    background-size: 14px;
  }
  /* Bigger checkbox touch targets */
  .sh-filter-check-label, .filter-check {
    padding: 7px 0;
    font-size: 13.5px;
    gap: 10px;
  }
  .sh-filter-check-label input, .filter-check input {
    width: 17px; height: 17px;
  }
  .sh-filter-check-count, .filter-check .count { font-size: 11.5px; }
  /* Brand/cat search buttons — bigger tap target */
  .sh-brand-search-btn, .sh-cat-search-btn {
    width: 34px; height: 34px;
  }
  .sh-brand-search-input, .sh-cat-search-input {
    font-size: 14px;
    padding: 2px 4px 4px;
  }
  /* More-brands/cats hint */
  .sh-brands-more-hint {
    font-size: 13px;
    padding: 6px 0;
    display: block;
    margin-top: 4px;
  }

  /* ── Brands & Categories modal: bottom-sheet on mobile ────────────────── */
  .sh-brands-modal {
    align-items: flex-end;
    padding: 0;
  }
  .sh-brands-modal__box {
    max-width: 100%;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    max-height: 88vh;
  }
  /* Drag handle on modal box */
  .sh-brands-modal__box::before {
    content: '';
    display: block;
    width: 36px;
    height: 4px;
    background: var(--border);
    border-radius: var(--radius-full);
    margin: 10px auto 0;
    flex-shrink: 0;
  }
  .sh-brands-modal__head {
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 14px 10px;
  }
  /* Search takes full width on its own row */
  .sh-brands-modal__search {
    width: 100%;
    order: 3; /* below A-Z and close button */
    font-size: 14px;
    padding: 8px 12px;
    min-height: 40px;
  }
  /* A-Z stays in first row with close button */
  .sh-brands-modal__az { order: 1; }
  .sh-brands-modal__close { order: 2; }
  /* Category modal: title + search stacked */
  .sh-cats-modal__title { font-size: 14px; order: 1; }
  /* Bigger body items */
  .sh-brand-group-item label {
    padding: 6px 10px;
    font-size: 13px;
    white-space: normal;
  }
  .sh-brand-group-item input { width: 15px; height: 15px; }
  .sh-brand-group-letter { font-size: 12.5px; padding: 5px 10px; }
  /* Single column on narrow phones */
  .sh-brands-flow { column-count: 1; }
  @media (min-width: 480px) {
    .sh-brands-flow { column-count: 2; }
  }

  .sh-footer__inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .sh-single-coupon__grid { grid-template-columns: 1fr; }
  .sh-hero { padding: 48px 16px 40px; }
  .sh-hero__headline { font-size: 36px; }
  .sh-brand-hero__inner { flex-direction: column; text-align: center; }
  .sh-brand-stats { grid-template-columns: repeat(2, 1fr); }
  .sh-brand-stat { border-bottom: 1px solid var(--border); }
}

/* ─── Single coupon page — mobile polish ─────────────────────────────────── */
@media (max-width: 640px) {
  .sh-single-coupon { padding-top: 16px; padding-bottom: 40px; }
  .sh-breadcrumb { font-size: 0.72rem; gap: 5px; margin-bottom: 14px; }
  .sh-single-coupon h3 { font-size: 16px !important; }
}

@media print {
  .sh-header, .sh-footer, .sh-save-btn, .sh-btn--reveal, .sh-load-more-wrap { display: none; }
  body { padding-top: 0; }
}
