/* ==========================================================================
   MR Web Deals — public stylesheet (v2)
   Mobile-first · Inter · navy/cyan brand from the MR Web Deals logo
   ========================================================================== */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/inter-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Brand */
  --navy-950: #081f38;
  --navy-900: #0b2a4a;
  --navy-800: #11395f;
  --brand: #16507a;
  --brand-600: #1b6194;
  --cyan: #1fa2d4;
  --cyan-600: #1790c0;
  --cyan-100: #d9f1fb;
  --cyan-50: #eef8fd;

  /* Neutrals */
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #f3f6fa;
  --text: #0f1f33;
  --text-2: #3b4a5e;
  --muted: #6b7a8f;
  --border: #e5eaf1;
  --border-2: #d3dce7;

  /* Accents (used sparingly) */
  --deal: #0f9d58;
  --deal-bg: #e8f7ef;
  --loot: #e8590c;
  --loot-bg: #fff3ea;
  --danger: #d62839;

  --grad-brand: linear-gradient(135deg, #16507a 0%, #1b6194 50%, #1fa2d4 100%);
  --grad-cta: linear-gradient(180deg, #1c6aa0 0%, #16507a 100%);

  --r-sm: 6px;
  --r: 10px;
  --r-lg: 16px;
  --r-xl: 22px;
  --shadow-sm: 0 1px 2px rgba(11, 42, 74, .06);
  --shadow: 0 2px 6px rgba(11, 42, 74, .05), 0 6px 20px rgba(11, 42, 74, .06);
  --shadow-hover: 0 4px 10px rgba(11, 42, 74, .08), 0 14px 32px rgba(11, 42, 74, .10);

  --container: 1320px;
  --gutter: 16px;
  --header-h: 64px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  --section-gap: 28px;
}

/* ── Base ────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 130px; }
body {
  margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--text); background: var(--bg);
  overflow-x: hidden; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01";
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--cyan-600); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.2; margin: 0 0 .5em; color: var(--navy-900); letter-spacing: -.02em; font-weight: 800; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.icon { flex-shrink: 0; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 1000; background: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid rgba(31, 162, 212, .55); outline-offset: 2px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 10px 18px; border-radius: 8px; border: 1px solid transparent;
  font-weight: 700; font-size: .92rem; line-height: 1.1; text-align: center; white-space: nowrap;
  transition: background-color .15s, box-shadow .15s, border-color .15s, color .15s, transform .08s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad-cta); color: #fff; box-shadow: 0 1px 2px rgba(11, 42, 74, .2), inset 0 1px 0 rgba(255, 255, 255, .12); }
.btn-primary:hover { color: #fff; background: linear-gradient(180deg, #1f76b0 0%, #1b6194 100%); box-shadow: 0 6px 16px rgba(22, 80, 122, .28); }
.btn-accent { background: var(--cyan); color: #fff; }
.btn-accent:hover { background: var(--cyan-600); color: #fff; }
.btn-outline { background: #fff; border-color: var(--border-2); color: var(--navy-800); }
.btn-outline:hover { border-color: var(--brand-600); color: var(--brand); }
.btn-light { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-light:hover { background: rgba(255, 255, 255, .24); color: #fff; }
.btn-soft { background: var(--cyan-50); color: var(--brand); border-color: var(--cyan-100); }
.btn-soft:hover { background: var(--cyan-100); color: var(--navy-800); }
.btn-telegram { background: #229ed9; color: #fff; }
.btn-telegram:hover { background: #1b8cc2; color: #fff; }
.btn-whatsapp { background: #1faf57; color: #fff; }
.btn-whatsapp:hover { background: #17964a; color: #fff; }
.btn-lg { min-height: 52px; font-size: 1rem; padding: 13px 24px; }
.btn-sm { min-height: 34px; padding: 6px 12px; font-size: .82rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { background: #cfd8e3; color: #fff; box-shadow: none; pointer-events: none; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 8px;
  border: 0; background: transparent; color: var(--navy-800); transition: background-color .15s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--brand); }

/* ── Header ──────────────────────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 0 var(--border); }
.header-main { display: flex; align-items: center; gap: 6px; min-height: 58px; }
.brand { display: flex; align-items: center; flex-shrink: 0; margin-right: 4px; }
.brand img { height: 38px; width: auto; }
.header-search { flex: 1; min-width: 0; display: none; }
.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.header-actions .btn-telegram, .header-actions .ha-join, .header-actions .ha-link { display: none; }
.ha-link { align-items: center; gap: 6px; padding: 8px 10px; border-radius: 8px; font-weight: 700; font-size: .86rem; color: var(--navy-800); white-space: nowrap; }
.ha-link:hover { background: var(--surface-2); color: var(--brand); }
.ha-link .icon { color: var(--cyan); }
.header-mobile-search { padding: 0 0 10px; }

.search-box { position: relative; display: flex; align-items: center; }
.search-box input {
  width: 100%; height: 44px; border: 1.5px solid var(--border-2); border-radius: 10px; background: var(--surface-2);
  padding: 0 96px 0 42px; outline: none; transition: border-color .15s, background-color .15s, box-shadow .15s; font-size: 16px;
}
.search-box input::placeholder { color: #8391a5; }
.search-box input:focus { border-color: var(--cyan); background: #fff; box-shadow: 0 0 0 4px rgba(31, 162, 212, .12); }
.search-box > .icon { position: absolute; left: 14px; color: var(--muted); pointer-events: none; }
.search-box button[type="submit"] {
  position: absolute; right: 4px; height: 36px; padding: 0 16px; border: 0; border-radius: 8px;
  background: var(--brand); color: #fff; font-weight: 700; font-size: .86rem;
}
.search-box button[type="submit"]:hover { background: var(--brand-600); }

.header-nav { border-top: 1px solid var(--border); background: #fff; }
.nav-scroll { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.nav-scroll::-webkit-scrollbar { display: none; }
.nav-link {
  position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 11px 12px; flex-shrink: 0;
  color: var(--text-2); font-weight: 600; font-size: .88rem; white-space: nowrap;
}
.nav-link .icon { color: var(--muted); }
.nav-link:hover { color: var(--brand); }
.nav-link:hover .icon { color: var(--cyan); }
.nav-link.is-active { color: var(--brand); }
.nav-link.is-active .icon { color: var(--cyan); }
.nav-link.is-active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--cyan); }

/* Live search suggestions */
.suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 60; background: #fff; border: 1px solid var(--border);
  border-radius: 12px; box-shadow: var(--shadow-hover); overflow-y: auto; max-height: 70vh;
}
.suggest[hidden] { display: none; }
.suggest-group { padding: 6px 0; border-bottom: 1px solid var(--border); }
.suggest-group:last-child { border-bottom: 0; }
.suggest-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 4px 14px; font-weight: 700; }
.suggest a { display: flex; align-items: center; gap: 12px; padding: 8px 14px; color: var(--text); }
.suggest a:hover, .suggest a.is-active { background: var(--cyan-50); }
.suggest img { width: 48px; height: 36px; object-fit: contain; border-radius: 6px; background: #fff; border: 1px solid var(--border); }
.suggest .s-title { flex: 1; min-width: 0; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest .s-price { font-weight: 800; color: var(--navy-900); font-size: .9rem; }
.suggest .s-off { color: var(--deal); font-size: .78rem; font-weight: 700; }
.suggest .s-all { justify-content: center; font-weight: 700; color: var(--brand-600); }

/* ── Drawer (mobile menu) ────────────────────────────────────────────────── */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(8, 31, 56, .5); z-index: 90; opacity: 0; pointer-events: none; transition: opacity .2s; }
.drawer {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 100; width: min(86vw, 340px); background: #fff;
  transform: translateX(-102%); transition: transform .25s ease; display: flex; flex-direction: column; box-shadow: var(--shadow-hover);
}
body.drawer-open .drawer { transform: none; }
body.drawer-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
body.drawer-open, body.sheet-open { overflow: hidden; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.drawer-head img { height: 34px; width: auto; }
.drawer-body { overflow-y: auto; padding: 6px 0 24px; flex: 1; }
.drawer-title { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding: 16px 18px 6px; }
.drawer a.d-link { display: flex; align-items: center; gap: 12px; padding: 10px 18px; color: var(--text); font-weight: 600; font-size: .94rem; }
.drawer a.d-link:hover { background: var(--cyan-50); }
.drawer a.d-link .icon { color: var(--brand-600); }
.d-thumb { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: var(--surface-2); flex-shrink: 0; }
.drawer .d-count { margin-left: auto; font-size: .74rem; color: var(--muted); font-weight: 600; }
.drawer-social { display: flex; gap: 8px; padding: 12px 18px; flex-wrap: wrap; }

/* ── Bottom nav (mobile) ─────────────────────────────────────────────────── */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: rgba(255, 255, 255, .97); border-top: 1px solid var(--border);
  display: grid; grid-template-columns: repeat(5, 1fr); padding-bottom: env(safe-area-inset-bottom); backdrop-filter: blur(8px);
}
.bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 2px 7px; color: var(--muted); font-size: .68rem; font-weight: 700; }
.bottom-nav a.is-active { color: var(--brand); }
.bottom-nav a.is-active .icon { color: var(--cyan); }
body.has-bottom-nav { padding-bottom: 64px; }

/* ── Section scaffolding ─────────────────────────────────────────────────── */
main { display: block; min-height: 50vh; }
.section { padding: calc(var(--section-gap) / 2) 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h2 { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 1.2rem; }
.section-head .sub { margin: 3px 0 0; color: var(--muted); font-size: .86rem; }
.section-ico { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--cyan-50); color: var(--brand); flex-shrink: 0; }
.section-ico.is-hot { background: #fff1ec; color: #e8590c; }
.see-all { display: inline-flex; align-items: center; gap: 2px; font-weight: 700; font-size: .86rem; white-space: nowrap; color: var(--brand-600); }
.see-all:hover { color: var(--cyan-600); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.panel { padding: 18px; }
.panel h2 { font-size: 1.1rem; }

/* Breadcrumbs */
.breadcrumbs { font-size: .8rem; color: var(--muted); padding: 14px 0 6px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.breadcrumbs::-webkit-scrollbar { display: none; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; align-items: center; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumbs li + li::before { content: "/"; color: var(--border-2); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--brand-600); }
.breadcrumbs [aria-current] { color: var(--text-2); font-weight: 600; max-width: 60vw; overflow: hidden; text-overflow: ellipsis; }

/* ── Homepage layout / ordering ──────────────────────────────────────────── */
.home { display: flex; flex-direction: column; }
.home > * { order: 10; }
/* Mobile order: categories → hero → trending → budget → loot → latest → stores */
.home .o-cats { order: 1; }
.home .o-hero { order: 2; }
.home .o-trending { order: 3; }
.home .o-budget { order: 4; }
.home .o-loot { order: 5; }
.home .o-latest { order: 6; }
.home .o-stores { order: 7; }
.home .o-community { order: 8; }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero { padding: 6px 0 4px; }
.hero-shell {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(31, 162, 212, .35) 0%, rgba(31, 162, 212, 0) 55%),
    radial-gradient(90% 120% at 0% 100%, rgba(8, 31, 56, .55) 0%, rgba(8, 31, 56, 0) 60%),
    linear-gradient(135deg, #0b2a4a 0%, #16507a 55%, #1b6194 100%);
  color: #fff; display: grid; gap: 18px; padding: 22px 18px 18px; isolation: isolate;
}
.hero-shell::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px); background-size: 18px 18px;
  mask-image: linear-gradient(90deg, #000 0%, transparent 70%); -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 70%);
}
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .76rem; font-weight: 700; letter-spacing: .02em; color: #cdeefb; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); padding: 5px 11px; border-radius: 999px; margin-bottom: 12px; }
.hero-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: #3ee08f; box-shadow: 0 0 0 4px rgba(62, 224, 143, .18); }
.hero h1 { color: #fff; font-size: 1.65rem; line-height: 1.15; margin-bottom: 10px; letter-spacing: -.025em; }
.hero h1 em { font-style: normal; color: #7fd6f7; }
.hero-sub { color: rgba(255, 255, 255, .84); margin-bottom: 16px; max-width: 520px; font-size: .95rem; }
.hero-ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-ctas .btn-primary { background: #fff; color: var(--navy-900); box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.hero-ctas .btn-primary:hover { background: var(--cyan-50); color: var(--navy-950); }
.hero-trust { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 16px; font-size: .8rem; color: rgba(255, 255, 255, .78); }
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust strong { color: #fff; }

/* Product collage */
.hero-visual { position: relative; min-height: 0; }
.hero-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hero-strip .hp:nth-child(4) { display: none; }
.hp {
  position: relative; display: block; background: #fff; border-radius: 14px; padding: 6px 6px 8px; color: var(--text);
  box-shadow: 0 10px 24px rgba(4, 18, 36, .28); transition: transform .2s ease, box-shadow .2s ease;
}
.hp:hover { color: var(--text); transform: translateY(-3px); box-shadow: 0 16px 34px rgba(4, 18, 36, .34); }
.hp img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; background: var(--surface-2); }
.hp-meta { display: flex; align-items: baseline; gap: 6px; padding: 6px 4px 0; flex-wrap: wrap; }
.hp-price { font-weight: 800; font-size: .9rem; color: var(--navy-900); }
.hp-off { font-size: .72rem; font-weight: 800; color: var(--deal); }
.hp-name { display: none; }
.hp-badge { position: absolute; top: 12px; left: 12px; background: var(--deal); color: #fff; font-size: .68rem; font-weight: 800; padding: 3px 7px; border-radius: 6px; }
.hero-image img { width: 100%; height: auto; border-radius: var(--r-lg); }

/* Banners carousel */
.banners { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-top: 12px; }
.banners::-webkit-scrollbar { display: none; }
.banner { scroll-snap-align: start; position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--navy-800); color: #fff; min-height: 140px; display: flex; align-items: flex-end; }
.banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner-body { position: relative; padding: 16px; background: linear-gradient(0deg, rgba(8, 31, 56, .85), transparent); width: 100%; }
.banner-body strong { font-size: 1.1rem; display: block; }

/* ── Category tiles ──────────────────────────────────────────────────────── */
.cat-rail { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 6px; scroll-snap-type: x proximity; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); }
.cat-rail::-webkit-scrollbar { display: none; }
.cat-tile { flex: 0 0 auto; width: 82px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; color: var(--text-2); font-size: .76rem; font-weight: 600; scroll-snap-align: start; padding: 4px 2px; border-radius: 12px; }
.cat-tile .c-img {
  width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: #fff; border: 1px solid var(--border);
  display: grid; place-items: center; box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s, transform .15s;
}
.cat-tile .c-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-tile .c-init { font-weight: 800; font-size: 1.2rem; color: var(--brand); background: var(--cyan-50); width: 100%; height: 100%; display: grid; place-items: center; }
.cat-tile:hover { color: var(--brand); }
.cat-tile:hover .c-img { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(31, 162, 212, .15); transform: translateY(-2px); }
.cat-tile.is-active .c-img { border: 2px solid var(--cyan); }
.cat-tile > span:last-child { line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cat-tile.all .c-img { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }

/* ── Budget cards ────────────────────────────────────────────────────────── */
.budget-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.budget-card {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 14px; background: #fff; border: 1px solid var(--border);
  border-radius: var(--r-lg); color: var(--text); overflow: hidden; transition: box-shadow .18s, transform .18s, border-color .18s;
}
.budget-card::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--grad-brand); }
.budget-card:hover { color: var(--text); box-shadow: var(--shadow-hover); transform: translateY(-2px); border-color: var(--cyan-100); }
.budget-card .b-kicker { font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.budget-card .b-amount { font-size: 1.55rem; font-weight: 800; color: var(--navy-900); letter-spacing: -.03em; line-height: 1; }
.budget-card .b-count { font-size: .8rem; color: var(--muted); }
.b-collage { display: flex; }
.b-collage img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(11, 42, 74, .15); background: var(--surface-2); }
.b-collage img + img { margin-left: -12px; }
.budget-card .b-text { display: flex; flex-direction: column; gap: 4px; }
.budget-card .b-cta { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: .84rem; color: var(--brand-600); margin-top: auto; }

/* ── Deal rows & grids ───────────────────────────────────────────────────── */
.carousel { position: relative; }
.deal-row {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc(50% - 5px); gap: 10px; overflow-x: auto;
  scroll-snap-type: x mandatory; scrollbar-width: none; padding: 2px 2px 10px; margin: -2px -2px 0;
}
.deal-row::-webkit-scrollbar { display: none; }
.deal-row > * { scroll-snap-align: start; }
.carousel-btn {
  display: none; position: absolute; top: 38%; z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border);
  background: #fff; color: var(--navy-900); box-shadow: var(--shadow); place-items: center; transition: opacity .15s, background-color .15s;
}
.carousel-btn:hover { background: var(--cyan-50); }
.carousel-btn[disabled] { opacity: 0; pointer-events: none; }
.carousel-btn.prev { left: -14px; }
.carousel-btn.next { right: -14px; }
.deal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

/* ── Deal card ───────────────────────────────────────────────────────────── */
.deal-card {
  position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden; min-width: 0; box-shadow: var(--shadow-sm);
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.deal-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); border-color: #d6e2ee; }
.deal-media { position: relative; display: block; aspect-ratio: 4 / 3; background: #fff; overflow: hidden; }
.deal-media img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s ease; }
.deal-card:hover .deal-media img { transform: scale(1.03); }
.badge-off {
  position: absolute; left: 8px; top: 8px; z-index: 1; background: var(--deal); color: #fff; font-weight: 800; font-size: .72rem;
  padding: 4px 7px; border-radius: 6px; line-height: 1.1; letter-spacing: .01em; box-shadow: 0 2px 6px rgba(15, 157, 88, .3);
}
.deal-flags { position: absolute; right: 8px; top: 8px; z-index: 1; display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.flag { display: inline-flex; align-items: center; gap: 4px; font-size: .64rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 4px 7px; border-radius: 6px; line-height: 1.1; background: rgba(255, 255, 255, .94); box-shadow: 0 1px 4px rgba(11, 42, 74, .14); }
.flag-loot { color: var(--loot); }
.flag-trending { color: #d9480f; }
.flag-best { color: var(--brand); }
.flag-early { color: #a16207; }
.flag-oos, .flag-expired { background: var(--navy-900); color: #fff; }
.deal-body { padding: 10px 11px 11px; display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; border-top: 1px solid var(--border); }
.deal-title { font-size: .85rem; font-weight: 600; line-height: 1.38; color: var(--text); margin: 0; letter-spacing: -.005em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.76em; }
.deal-title a { color: inherit; }
.deal-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.deal-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 7px; }
.price-now { font-size: 1.12rem; font-weight: 800; color: var(--navy-950); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.price-mrp { font-size: .8rem; color: var(--muted); text-decoration: line-through; font-variant-numeric: tabular-nums; }
.price-off { font-size: .78rem; font-weight: 800; color: var(--deal); }
.deal-meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: .72rem; color: var(--muted); min-width: 0; }
.deal-store { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--text-2); min-width: 0; overflow: hidden; }
.deal-store span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.store-dot { width: 20px; height: 20px; border-radius: 6px; color: #fff; font-size: .64rem; font-weight: 800; display: grid; place-items: center; flex-shrink: 0; overflow: hidden; }
.store-dot img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.deal-coupon { display: flex; align-items: center; gap: 6px; font-size: .72rem; background: var(--cyan-50); border: 1px dashed #8fd3ef; color: var(--brand); border-radius: 6px; padding: 3px 7px; font-weight: 700; overflow: hidden; }
.deal-coupon code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .04em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deal-actions { display: flex; gap: 6px; margin-top: auto; padding-top: 4px; position: relative; z-index: 2; }
.deal-actions .btn-primary, .deal-actions .btn-outline { flex: 1; min-height: 38px; padding: 8px; font-size: .84rem; }
.deal-actions .icon-btn { width: 38px; height: 38px; border: 1px solid var(--border); flex-shrink: 0; }
.deal-card.is-expired .deal-media img { filter: grayscale(.85); opacity: .65; }

/* Large card variant (trending) */
.deal-card.is-lg .deal-title { font-size: .92rem; }
.deal-card.is-lg .price-now { font-size: 1.22rem; }

.empty-state { text-align: center; padding: 44px 16px; }
.empty-state .e-ico { width: 56px; height: 56px; border-radius: 50%; background: var(--cyan-50); color: var(--brand); display: grid; place-items: center; margin: 0 auto 10px; }

/* Load more / pagination */
.load-more { display: flex; justify-content: center; padding: 20px 0 6px; }
.load-more .btn { min-width: 220px; }
.pagination { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; padding: 20px 0 6px; }
.pagination a, .pagination span { min-width: 42px; height: 42px; padding: 0 12px; display: inline-grid; place-items: center; border-radius: 8px; border: 1px solid var(--border); background: #fff; font-weight: 700; color: var(--text-2); }
.pagination a:hover { border-color: var(--brand-600); color: var(--brand); }
.pagination .is-current { background: var(--brand); color: #fff; border-color: var(--brand); }
.spinner { width: 22px; height: 22px; border: 3px solid var(--cyan-100); border-top-color: var(--cyan); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Loot band */
.band { border-radius: var(--r-xl); padding: 16px; }
.band-loot { background: linear-gradient(180deg, #fff6ef 0%, #fffaf6 100%); border: 1px solid #fde3d0; }
.band-loot .section-head h2 { color: var(--navy-900); }
.pill-limited { display: inline-flex; align-items: center; gap: 5px; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--loot); background: #fff; border: 1px solid #fcd3b6; padding: 3px 8px; border-radius: 999px; }

/* ── Stores ──────────────────────────────────────────────────────────────── */
.store-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.store-card {
  display: flex; align-items: center; gap: 12px; padding: 12px; background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg);
  color: var(--text); transition: box-shadow .18s, border-color .18s, transform .18s; min-width: 0;
}
.store-card:hover { color: var(--text); box-shadow: var(--shadow-hover); border-color: var(--cyan-100); transform: translateY(-2px); }
.store-logo { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 1.15rem; color: #fff; overflow: hidden; flex-shrink: 0; letter-spacing: -.02em; }
.store-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.store-info { min-width: 0; display: flex; flex-direction: column; }
.store-info strong { font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.store-info small { color: var(--muted); font-size: .76rem; }
.store-info .s-link { font-size: .76rem; font-weight: 700; color: var(--brand-600); margin-top: 2px; }

/* ── Community CTA ───────────────────────────────────────────────────────── */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--r-xl); color: #fff; padding: 24px 20px; display: grid; gap: 16px; align-items: center;
  background: radial-gradient(100% 140% at 100% 0%, rgba(31, 162, 212, .45), rgba(31, 162, 212, 0) 60%), linear-gradient(135deg, #0b2a4a, #16507a);
}
.cta-band h2 { color: #fff; margin-bottom: 4px; font-size: 1.3rem; }
.cta-band p { color: rgba(255, 255, 255, .8); margin: 0; }
.cta-band .cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── Listing pages ───────────────────────────────────────────────────────── */
.listing-head { padding: 4px 0 16px; }
.listing-head h1 { margin-bottom: 6px; font-size: 1.5rem; }
.listing-head p { color: var(--muted); margin: 0; font-size: .92rem; max-width: 760px; }
.listing-layout { display: grid; gap: 18px; align-items: start; }
.toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar .count { font-size: .86rem; color: var(--muted); margin-right: auto; }
.toolbar .count strong { color: var(--text); }
.select { height: 40px; border: 1px solid var(--border-2); border-radius: 8px; background: #fff; padding: 0 30px 0 12px; font-weight: 600; font-size: .86rem; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 6px 11px; border-radius: 999px; background: #fff; color: var(--brand); font-size: .8rem; font-weight: 700; border: 1px solid var(--border-2); }
.chip:hover, .chip.is-on { background: var(--cyan-50); border-color: var(--cyan-100); }
.chip.is-on { background: var(--brand); color: #fff; border-color: var(--brand); }

.filters { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 4px 16px 16px; }
.filter-group { padding: 14px 0; border-bottom: 1px solid var(--border); }
.filter-group:last-of-type { border-bottom: 0; }
.filter-group h3 { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 8px; }
.filter-options { display: flex; flex-direction: column; gap: 1px; max-height: 250px; overflow-y: auto; }
.filter-options label { display: flex; align-items: center; gap: 9px; padding: 5px 2px; font-size: .9rem; cursor: pointer; color: var(--text-2); }
.filter-options input { width: 17px; height: 17px; accent-color: var(--brand); }
.price-range { display: flex; gap: 8px; align-items: center; }
.price-range input { width: 100%; height: 40px; border: 1px solid var(--border-2); border-radius: 8px; padding: 0 10px; font-size: 16px; }
.filter-actions { display: flex; gap: 8px; padding-top: 14px; }
.filter-actions .btn { flex: 1; }
.sheet-head { display: none; }

@media (max-width: 1023px) {
  .filters-panel {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 100; max-height: 88vh; display: flex; flex-direction: column;
    background: #fff; border-radius: 20px 20px 0 0; transform: translateY(105%); transition: transform .25s ease; box-shadow: var(--shadow-hover);
  }
  body.sheet-open .filters-panel { transform: none; }
  body.sheet-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
  .filters-panel .filters { border: 0; border-radius: 0; overflow-y: auto; flex: 1; padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  .sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 8px; border-bottom: 1px solid var(--border); position: relative; }
  .sheet-head::before { content: ""; position: absolute; left: 50%; top: 6px; width: 40px; height: 4px; border-radius: 4px; background: var(--border-2); transform: translateX(-50%); }
  .sheet-head h2 { margin: 0; font-size: 1.05rem; }
  .filter-actions { position: sticky; bottom: 0; background: #fff; }
}

/* ── Deal detail ─────────────────────────────────────────────────────────── */
.deal-detail { display: grid; gap: 16px; padding-bottom: 8px; }
.gallery { padding: 12px; }
.gallery-main { aspect-ratio: 4 / 3; display: grid; place-items: center; background: #fff; border-radius: 12px; position: relative; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-main .badge-off { font-size: .85rem; padding: 6px 10px; left: 12px; top: 12px; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.gallery-thumbs button { flex: 0 0 72px; height: 54px; border: 2px solid var(--border); border-radius: 10px; background: #fff; padding: 2px; }
.gallery-thumbs button.is-active { border-color: var(--cyan); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; border-radius: 6px; }
.deal-info { padding: 18px; }
.deal-info h1 { font-size: 1.35rem; line-height: 1.3; margin-bottom: 12px; letter-spacing: -.02em; }
.detail-store { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.detail-store .store-logo { width: 34px; height: 34px; border-radius: 9px; font-size: .9rem; }
.detail-store .ds-name { font-weight: 700; color: var(--navy-900); font-size: .92rem; }
.detail-store .ds-meta { font-size: .8rem; color: var(--muted); }
.detail-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); }
.tag-loot { background: var(--loot-bg); color: var(--loot); border-color: #fde3d0; }
.tag-hot { background: #fff1ec; color: #d9480f; border-color: #fdd9c9; }
.tag-best { background: var(--cyan-50); color: var(--brand); border-color: var(--cyan-100); }
.price-box { background: linear-gradient(180deg, #f7fafd, #f2f6fb); border: 1px solid var(--border); border-radius: 14px; padding: 16px; margin: 4px 0 14px; }
.price-box .deal-price { gap: 4px 10px; }
.price-box .price-now { font-size: 2rem; }
.price-box .price-mrp { font-size: .95rem; }
.price-box .price-off { font-size: .85rem; background: var(--deal-bg); padding: 4px 9px; border-radius: 6px; }
.save-line { font-size: .86rem; color: var(--deal); font-weight: 700; margin-top: 6px; }
.status-banner { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 12px; font-weight: 600; margin: 4px 0 12px; font-size: .9rem; }
.status-expired { background: #f1f5f9; border: 1px solid var(--border-2); color: #334155; }
.status-oos { background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; }
.status-upcoming { background: #fff8e1; border: 1px solid #fde68a; color: #854d0e; }
.coupon-box { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1.5px dashed #8fd3ef; background: var(--cyan-50); border-radius: 12px; padding: 12px 14px; margin: 0 0 14px; }
.coupon-box small { display: block; color: var(--muted); font-size: .74rem; }
.coupon-box code { font-size: 1.15rem; font-weight: 800; letter-spacing: .08em; color: var(--navy-900); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.buy-row { display: flex; gap: 8px; margin: 0 0 12px; }
.buy-row .btn-primary { flex: 1; min-height: 56px; font-size: 1.05rem; border-radius: 10px; }
.buy-note { display: flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--muted); margin-bottom: 14px; }
.share-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 12px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.share-row .label { font-size: .8rem; color: var(--muted); font-weight: 700; margin-right: 2px; }
.share-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--border); background: #fff; font-weight: 700; font-size: .82rem; color: var(--text-2); }
.share-btn:hover { border-color: var(--brand-600); color: var(--brand); }
.share-btn.wa .icon { color: #1faf57; }
.share-btn.tg .icon { color: #229ed9; }
.share-btn.fb .icon { color: #1877f2; }
.detail-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0; }
.fact { background: var(--surface-2); border-radius: 10px; padding: 9px 11px; font-size: .74rem; color: var(--muted); }
.fact strong { display: block; color: var(--text); font-size: .88rem; margin-top: 1px; }
.highlights { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.highlights li { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; color: var(--text-2); }
.highlights .icon { color: var(--deal); margin-top: 2px; }
.disclosure { display: flex; gap: 8px; font-size: .78rem; color: var(--muted); background: var(--surface-2); border-radius: 10px; padding: 10px 12px; margin-top: 14px; line-height: 1.5; }
.disclosure .icon { color: var(--brand-600); margin-top: 1px; }
.buy-note a { text-decoration: underline; }
.buy-note .icon { flex-shrink: 0; }

/* Price with no amount, price history, expired state */
.price-none { display: flex; align-items: center; gap: 8px; font-size: .95rem; color: var(--text-2); }
.price-none .icon { color: var(--deal); flex-shrink: 0; }
.price-label { font-size: .74rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.price-box.is-expired { background: var(--surface-2); }
.price-box.is-expired .price-now { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 2px; }
.price-box.is-expired .price-off { background: var(--border); color: var(--muted); }
.price-insight { display: flex; align-items: flex-start; gap: 7px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border-2); font-size: .84rem; color: var(--text-2); line-height: 1.4; }
.price-insight .icon { margin-top: 2px; flex-shrink: 0; color: var(--muted); }
.price-insight.is-low strong, .price-insight.is-low .icon { color: var(--deal); }
.price-insight .pi-detail { display: block; font-size: .78rem; color: var(--muted); }
.price-history { margin-top: 6px; font-size: .8rem; }
.price-history summary { cursor: pointer; color: var(--brand-600); font-weight: 700; padding: 4px 0; }
.price-history ul { list-style: none; margin: 6px 0 0; padding: 0; }
.price-history li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px solid var(--border); color: var(--text-2); }
.price-history p { margin: 6px 0 0; font-size: .74rem; color: var(--muted); }
.gallery.is-expired .gallery-main img { filter: grayscale(1); opacity: .6; }
.gallery-main .badge-expired { background: #475569; box-shadow: none; }

/* Join-channel strip (deal page, expired screens) */
.join-strip { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; margin: 0 0 14px; border: 1px solid #cdebd9; background: #f0faf4; }
.join-strip.is-telegram { border-color: var(--cyan-100); background: var(--cyan-50); }
.join-strip .js-ico { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; color: #fff; background: #1faf57; }
.join-strip.is-telegram .js-ico { background: #229ed9; }
.join-strip .js-text { flex: 1; min-width: 0; font-size: .78rem; color: var(--text-2); line-height: 1.35; }
.join-strip .js-text strong { display: block; font-size: .9rem; color: var(--text); }
.join-strip .js-text a { text-decoration: underline; }
.join-strip .btn { flex-shrink: 0; min-height: 40px; padding: 8px 14px; }
.blocked-card { text-align: center; max-width: 640px; margin: 0 auto; }
.blocked-card .join-strip { text-align: left; margin: 16px 0 0; }
.blocked-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.section-head .see-all { font-size: .84rem; font-weight: 700; white-space: nowrap; display: inline-flex; align-items: center; gap: 2px; }
.expired-alternatives { padding-top: 14px; }
.sticky-buy .sb-price .sb-store { font-size: .92rem; max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sticky-buy .sb-price .sb-muted { color: var(--muted); }
.sticky-buy .btn { white-space: nowrap; }

/* Phones: keep the photo, price and Get Deal button within the first screen or so. */
@media (max-width: 639px) {
  .deal-detail { gap: 10px; }
  .gallery { padding: 8px; }
  .gallery-main { aspect-ratio: auto; height: min(62vw, 34vh); min-height: 190px; }
  .gallery-thumbs button { flex-basis: 56px; height: 44px; }
  .deal-info { padding: 14px; }
  .deal-info h1 { font-size: 1.15rem; margin-bottom: 10px; }
  .detail-store { margin-bottom: 8px; }
  .price-box { padding: 12px; margin-bottom: 12px; }
  .price-box .price-now { font-size: 1.75rem; }
  .blocked-actions .btn { flex: 1 1 100%; }
  .detail-store { flex-wrap: nowrap; }
  .detail-store > span:last-child { min-width: 0; }
  .join-strip .js-alt { display: none; }
}
@media (max-width: 359px) {
  .sticky-buy .sb-on { display: none; }
  .join-strip .js-ico { width: 32px; height: 32px; }
}

.detail-below { display: grid; gap: 16px; margin-top: 16px; }
.prose { font-size: .96rem; color: var(--text-2); line-height: 1.75; overflow-wrap: anywhere; }
.prose h2 { font-size: 1.15rem; margin-top: 1.4em; }
.prose h3 { margin-top: 1.2em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.prose a { text-decoration: underline; }
.prose img { border-radius: 10px; margin: 1em 0; }
.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--border); padding: 8px; text-align: left; }

.sticky-buy {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: rgba(255, 255, 255, .98); border-top: 1px solid var(--border);
  padding: 9px 12px calc(9px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 10px; box-shadow: 0 -8px 22px rgba(11, 42, 74, .08);
}
.sticky-buy .sb-price { line-height: 1.1; }
.sticky-buy .sb-price strong { font-size: 1.15rem; font-weight: 800; color: var(--navy-950); display: block; }
.sticky-buy .sb-price span { font-size: .74rem; color: var(--deal); font-weight: 800; }
.sticky-buy .btn { flex: 1; min-height: 48px; }
body.has-sticky-buy { padding-bottom: 78px; }
body.has-sticky-buy .bottom-nav { display: none; }

/* ── Share sheet / toast ─────────────────────────────────────────────────── */
.share-sheet { position: fixed; inset: 0; z-index: 120; display: grid; place-items: end center; background: rgba(8, 31, 56, .5); }
.share-sheet[hidden] { display: none; }
.share-sheet-inner { width: 100%; max-width: 460px; background: #fff; border-radius: 20px 20px 0 0; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); }
.share-sheet h2 { font-size: 1.05rem; display: flex; justify-content: space-between; align-items: center; }
.share-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 8px; }
.share-grid a, .share-grid button { display: flex; flex-direction: column; align-items: center; gap: 6px; border: 0; background: none; font-size: .76rem; font-weight: 700; color: var(--text-2); padding: 4px; }
.share-grid .s-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: #fff; }
.s-wa { background: #1faf57; } .s-tg { background: #229ed9; } .s-fb { background: #1877f2; } .s-cp { background: var(--brand); }
.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%) translateY(20px); background: var(--navy-950); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600; font-size: .9rem; opacity: 0; pointer-events: none; transition: all .2s; z-index: 200; }
.toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Alerts / forms ──────────────────────────────────────────────────────── */
.alert { padding: 12px 14px; border-radius: 10px; margin-bottom: 12px; font-weight: 600; font-size: .92rem; }
.alert-success { background: var(--deal-bg); color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-weight: 700; font-size: .86rem; margin-bottom: 5px; }
.input, textarea.input { width: 100%; min-height: 46px; border: 1px solid var(--border-2); border-radius: 8px; padding: 10px 12px; background: #fff; font-size: 16px; }
.input:focus { border-color: var(--cyan); outline: none; box-shadow: 0 0 0 4px rgba(31, 162, 212, .12); }
.hp-field { position: absolute; left: -9999px; }

/* Category & store index pages */
.cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cat-card { display: flex; align-items: center; gap: 12px; padding: 12px; color: var(--text); transition: box-shadow .18s, border-color .18s, transform .18s; }
.cat-card:hover { color: var(--text); border-color: var(--cyan-100); box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.cat-card .c-img { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--cyan-50); display: grid; place-items: center; font-weight: 800; color: var(--brand); }
.cat-card .c-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-card strong { display: block; font-size: .92rem; line-height: 1.25; }
.cat-card small { color: var(--muted); }

/* Coupons */
.coupon-grid { display: grid; gap: 12px; }
.coupon-card { display: flex; gap: 14px; padding: 14px; align-items: center; }
.coupon-card .cc-off { flex: 0 0 80px; height: 80px; border-radius: 14px; background: var(--grad-brand); color: #fff; display: grid; place-items: center; text-align: center; font-weight: 800; font-size: .88rem; line-height: 1.15; padding: 6px; }
.coupon-card .cc-body { flex: 1; min-width: 0; }
.coupon-card h3 { font-size: .95rem; margin-bottom: 4px; }
.coupon-card .cc-meta { font-size: .76rem; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }
.coupon-card .cc-actions { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.verified { color: var(--deal); font-weight: 700; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer { background: var(--navy-950); color: rgba(255, 255, 255, .72); margin-top: 36px; font-size: .9rem; }
.footer-top { padding-top: 40px; padding-bottom: 12px; }
.site-footer a { color: rgba(255, 255, 255, .72); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 26px; grid-template-columns: 1fr 1fr; }
.footer-brand { grid-column: 1 / -1; max-width: 380px; }
.footer-brand img { height: 50px; width: auto; margin-bottom: 14px; }
.footer-brand p { font-size: .88rem; line-height: 1.65; }
.footer-grid h3 { color: #fff; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .88rem; }
.social { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.social a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .08); }
.social a:hover { background: rgba(255, 255, 255, .14); }
.footer-join { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.footer-stats { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.footer-stats span { background: rgba(255, 255, 255, .06); border-radius: 8px; padding: 6px 10px; font-size: .76rem; }
.footer-stats strong { color: #fff; }
.footer-disclosure { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 26px; padding: 16px 0; font-size: .8rem; line-height: 1.6; display: flex; gap: 10px; }
.footer-disclosure .icon { color: var(--cyan); margin-top: 2px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 14px; padding-bottom: 18px; font-size: .78rem; display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; }
.footer-bottom nav { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 359px) {
  :root { --gutter: 10px; }
  body { font-size: 14px; }
  .deal-grid, .deal-row { gap: 8px; }
  .deal-body { padding: 9px; }
  .price-now { font-size: 1rem; }
  .deal-actions .btn-primary { font-size: .78rem; }
  .deal-actions .icon-btn { width: 34px; height: 34px; }
  .brand img { height: 32px; }
  .hero h1 { font-size: 1.4rem; }
  .cat-tile { width: 72px; }
  .cat-tile .c-img { width: 56px; height: 56px; }
}

@media (min-width: 480px) {
  .deal-row { grid-auto-columns: calc(40% - 6px); }
  .store-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 640px) {
  :root { --gutter: 20px; --section-gap: 36px; }
  .deal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .deal-row { grid-auto-columns: calc(33.333% - 10px); gap: 14px; }
  .budget-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .coupon-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .detail-facts { grid-template-columns: repeat(4, 1fr); }
  .share-sheet { place-items: center; padding: 16px; }
  .share-sheet-inner { border-radius: 20px; }
  .hero-strip { grid-template-columns: repeat(4, 1fr); }
  .hero-strip .hp:nth-child(4) { display: block; }
  .cta-band { grid-template-columns: 1fr auto; padding: 28px 30px; }
}

@media (min-width: 768px) {
  h1 { font-size: 1.9rem; }
  .header-main { gap: 16px; min-height: var(--header-h); }
  .brand img { height: 44px; }
  .header-search { display: block; max-width: 620px; }
  .header-mobile-search { display: none; }
  .header-actions .btn-telegram, .header-actions .ha-join { display: inline-flex; }
  .header-actions [data-focus-search] { display: none; }
  .bottom-nav { display: none; }
  body.has-bottom-nav { padding-bottom: 0; }
  .section-head h2 { font-size: 1.45rem; }
  .deal-title { font-size: .9rem; }
  .price-now { font-size: 1.2rem; }
  .deal-body { padding: 12px 14px 14px; gap: 7px; }
  .deal-detail { grid-template-columns: minmax(0, 11fr) minmax(0, 10fr); align-items: start; gap: 22px; }
  .gallery { position: sticky; top: calc(var(--header-h) + 60px); }
  .deal-info { padding: 24px; }
  .deal-info h1 { font-size: 1.6rem; }
  .detail-below { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
  .sticky-buy { display: none; }
  body.has-sticky-buy { padding-bottom: 0; }
  .toast { bottom: 30px; }
  .store-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .listing-head h1 { font-size: 1.85rem; }
  .carousel-btn { display: grid; }
  .band { padding: 22px; }
  .cat-rail { margin: 0; padding-left: 2px; padding-right: 2px; }
}

@media (min-width: 1100px) {
  .header-actions .ha-link { display: inline-flex; }
}

@media (min-width: 1024px) {
  :root { --section-gap: 44px; }
  /* Desktop order: hero → trending → categories → budget → loot → stores → latest */
  .home .o-hero { order: 1; }
  .home .o-trending { order: 2; }
  .home .o-cats { order: 3; }
  .home .o-budget { order: 4; }
  .home .o-loot { order: 5; }
  .home .o-stores { order: 6; }
  .home .o-latest { order: 7; }
  .home .o-community { order: 8; }

  .hero { padding: 18px 0 8px; }
  .hero-shell { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; padding: 40px 48px 56px; min-height: 380px; align-items: center; }
  .hero h1 { font-size: 2.55rem; }
  .hero-sub { font-size: 1.05rem; }
  .hero-visual { height: auto; }
  .hero-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 520px; margin-left: auto; }
  .hero-strip .hp { padding: 8px 8px 10px; }
  .hero-strip .hp:nth-child(even) { transform: translateY(26px); }
  .hero-strip .hp:nth-child(even):hover { transform: translateY(22px); }
  .hero-strip .hp .hp-name { display: block; font-size: .78rem; font-weight: 600; color: var(--text-2); padding: 2px 4px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  .cat-rail { flex-wrap: nowrap; overflow: visible; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 10px; }
  .cat-tile { width: auto; font-size: .82rem; }
  .cat-tile .c-img { width: 84px; height: 84px; }
  .cat-rail .cat-tile:nth-child(n+11) { display: none; }

  .deal-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .deal-row { grid-auto-columns: calc(25% - 12px); gap: 16px; }
  .listing-layout { grid-template-columns: 260px minmax(0, 1fr); gap: 22px; }
  .listing-layout .deal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filters-panel { position: sticky; top: calc(var(--header-h) + 60px); max-height: calc(100vh - var(--header-h) - 80px); overflow-y: auto; border-radius: var(--r-lg); }
  .filter-toggle { display: none; }
  .store-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .store-card { flex-direction: column; text-align: center; padding: 18px 12px; }
  .store-card .store-logo { width: 56px; height: 56px; font-size: 1.35rem; }
  .store-info { align-items: center; }
  .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .coupon-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.5fr repeat(4, 1fr); }
  .footer-brand { grid-column: auto; }
  .budget-card { padding: 18px 20px; flex-direction: row; align-items: center; justify-content: space-between; min-height: 132px; }
  .budget-card .b-text { display: flex; flex-direction: column; gap: 6px; }
  .budget-card .b-cta { margin-top: 4px; }
  .budget-card .b-amount { font-size: 1.9rem; }
  .b-collage img { width: 54px; height: 54px; }
}

@media (min-width: 1280px) {
  .deal-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .deal-row { grid-auto-columns: calc(20% - 13px); }
  .listing-layout .deal-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero h1 { font-size: 2.75rem; }
}

@media (min-width: 1600px) {
  :root { --container: 1400px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .bottom-nav, .sticky-buy, .site-footer, .share-row { display: none !important; }
}

/* ── Small-phone refinements ─────────────────────────────────────────────── */
@media (max-width: 639px) {
  .hero-shell { padding: 20px 16px 16px; gap: 16px; }
  .hero-ctas { flex-wrap: nowrap; }
  .hero-ctas .btn { flex: 1; min-height: 46px; padding: 10px 12px; font-size: .9rem; }
  .hero-trust { display: none; }
  .hero-sub { font-size: .9rem; margin-bottom: 14px; }
  .pill-limited { display: none; }
}
@media (max-width: 419px) {
  .deal-flags .flag { padding: 4px 5px; }
  .deal-flags .flag .fl-t { display: none; }
  .deal-flags .flag-expired .fl-t, .deal-flags .flag-oos .fl-t { display: inline; }
}

/* ==========================================================================
   v3 — banner carousel, ringed categories, richer deal cards
   ========================================================================== */

/* ── Banner carousel ─────────────────────────────────────────────────────── */
.banner-section { padding: 12px 0 4px; }
.banner-carousel { position: relative; }
.banner-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 92%; gap: 10px; overflow-x: auto;
  scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--r-lg);
}
.banner-track::-webkit-scrollbar { display: none; }
.banner-slide {
  scroll-snap-align: start; position: relative; display: block; aspect-ratio: 3 / 1; border-radius: var(--r-lg); overflow: hidden;
  background: var(--grad-brand); box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.banner-slide:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.banner-slide img { width: 100%; height: 100%; object-fit: cover; }
.banner-text { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 18px 22px; color: #fff; }
.banner-text strong { font-size: 1.2rem; line-height: 1.2; }
.banner-text em { font-style: normal; font-weight: 700; background: #fff; color: var(--navy-900); align-self: flex-start; padding: 6px 12px; border-radius: 999px; font-size: .82rem; }
.banner-carousel .carousel-btn { top: 50%; transform: translateY(-50%); }
.banner-carousel .carousel-btn.prev { left: 8px; }
.banner-carousel .carousel-btn.next { right: 8px; }
.carousel-dots { display: flex; justify-content: center; gap: 6px; padding-top: 10px; }
.carousel-dots button { width: 8px; height: 8px; border-radius: 999px; border: 0; padding: 0; background: var(--border-2); transition: width .2s, background-color .2s; }
.carousel-dots button.is-active { width: 22px; background: var(--brand); }

/* ── Ringed category tiles ───────────────────────────────────────────────── */
.cat-tile .c-img {
  padding: 3px; border: 0;
  background: conic-gradient(from 210deg, #1fa2d4, #16507a, #7fd6f7, #1fa2d4);
  box-shadow: 0 4px 14px rgba(22, 80, 122, .16);
}
.cat-tile .c-img img, .cat-tile .c-img .c-init { border-radius: 50%; border: 3px solid #fff; background: #fff; }
.cat-tile:hover .c-img { box-shadow: 0 8px 22px rgba(22, 80, 122, .26); }
.cat-tile.all .c-img { background: var(--navy-900); padding: 0; }
.cat-tile.is-loot .c-img { background: conic-gradient(from 210deg, #f59f00, #e8590c, #ffd43b, #f59f00); }
.c-loot {
  width: 100%; height: 100%; border-radius: 50%; border: 3px solid #fff; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(circle at 30% 25%, #ffd43b, #f76707 70%); color: #fff; gap: 0;
}
.c-loot b { font-size: .72rem; letter-spacing: .08em; line-height: 1; text-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.cat-tile.is-loot > span:last-child { color: var(--loot); font-weight: 700; }

/* ── Deal card v3 ────────────────────────────────────────────────────────── */
.deal-card { overflow: visible; }
.deal-card .deal-media { border-radius: var(--r-lg) var(--r-lg) 0 0; }
.ribbon {
  position: absolute; top: -1px; left: 50%; transform: translateX(-50%); z-index: 3; white-space: nowrap;
  font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #fff;
  padding: 4px 14px 5px; border-radius: 0 0 10px 10px; box-shadow: 0 3px 8px rgba(11, 42, 74, .18);
}
.rb-top { background: linear-gradient(90deg, #16507a, #1fa2d4); }
.rb-loot { background: linear-gradient(90deg, #e8590c, #f59f00); }
.rb-hot { background: linear-gradient(90deg, #d9480f, #f03e3e); }
.rb-best { background: linear-gradient(90deg, #5f3dc4, #845ef7); }
.rb-early { background: linear-gradient(90deg, #b7791f, #f59f00); }
.rb-expired { background: #d62839; }
.coupon-band {
  position: absolute; left: 0; right: 0; bottom: 12%; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 6px 8px; background: rgba(8, 31, 56, .78); color: #fff; font-size: .74rem; font-weight: 600; backdrop-filter: blur(2px);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.coupon-band strong { letter-spacing: .04em; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.viewed-pill {
  display: flex; align-items: center; justify-content: center; gap: 5px; font-size: .72rem; color: #9a5b00;
  background: #fff8ec; border: 1px solid #fde8c4; border-radius: 6px; padding: 3px 6px; white-space: nowrap; overflow: hidden;
}
.viewed-pill .icon { color: #e8590c; }
.viewed-pill strong { color: #c2410c; }
.viewed-pill.is-new { color: var(--brand); background: var(--cyan-50); border-color: var(--cyan-100); }
.viewed-pill.is-new .icon { color: var(--cyan); }
.price-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-width: 0; }
.price-row .deal-price { flex-wrap: wrap; min-width: 0; row-gap: 0; }
.price-tools { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.off-pct { display: inline-flex; align-items: center; gap: 1px; color: var(--deal); font-weight: 800; font-size: .8rem; }
.mini-btn { width: 30px; height: 30px; display: inline-grid; place-items: center; border-radius: 8px; border: 0; background: transparent; color: var(--navy-800); position: relative; z-index: 2; }
.mini-btn:hover { background: var(--surface-2); color: var(--brand); }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding-top: 8px; margin-top: auto; border-top: 1px dashed var(--border); font-size: .74rem; color: var(--muted); min-width: 0; }
.card-foot time { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.store-pill {
  position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 2px; max-width: 60%; padding: 5px 8px 5px 10px; border-radius: 7px;
  font-size: .74rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 1px 2px rgba(0, 0, 0, .12);
  transition: filter .15s, transform .1s;
}
.store-pill:hover { filter: brightness(1.06) saturate(1.1); transform: translateY(-1px); }
.store-pill.is-muted { background: var(--surface-2); color: var(--muted); box-shadow: none; }
.deal-card .deal-body { gap: 7px; }
.deal-card.is-lg .viewed-pill { font-size: .76rem; }
@media (max-width: 359px) {
  .viewed-pill { font-size: .66rem; }
  .off-pct { font-size: .72rem; }
  .price-row .price-mrp { display: none; }
}

/* ── Layout with banners ─────────────────────────────────────────────────── */
.home .o-banners { order: 0; }
@media (min-width: 640px) {
  .banner-track { grid-auto-columns: calc(50% - 6px); gap: 12px; }
}
@media (min-width: 1024px) {
  .banner-section { padding: 18px 0 4px; }
  .banner-track { grid-auto-columns: calc(33.333% - 8px); }
  .home.has-banners .o-cats { order: 1; }
  .home.has-banners .o-hero { order: 2; }
  .cat-rail { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .cat-rail .cat-tile:nth-child(n+11) { display: flex; }
  .cat-tile .c-img { width: 88px; height: 88px; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .cat-rail { grid-template-columns: repeat(10, minmax(0, 1fr)); }
  .cat-rail .cat-tile:nth-child(n+10):not(.all) { display: none; }
}

/* Price freshness (verified / as posted / not verified) */
.price-fresh { display: flex; align-items: flex-start; gap: 6px; margin-top: 8px; font-size: .8rem; line-height: 1.4; color: var(--muted, #64748b); }
.price-fresh .icon { flex: none; margin-top: 2px; }
.price-fresh.is-verified { color: #15803d; }
.price-fresh.is-stale { color: #b45309; background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: 6px 8px; }
.viewed-pill.is-stale { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.viewed-pill.is-stale .icon { color: #d97706; }

/* ============================================================================
   Live homepage (v4): promo slides, live stats, category chips, channels,
   bottom live bar. Everything is data-driven — see App\Services\HomePage.
   ========================================================================== */
@keyframes mwd-pulse { 0% { box-shadow: 0 0 0 0 rgba(22, 196, 102, .55); } 70% { box-shadow: 0 0 0 7px rgba(22, 196, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(22, 196, 102, 0); } }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #16c466; animation: mwd-pulse 1.8s infinite; flex: none; }

/* Promo slider */
.promo-section { padding: 12px 0 2px; }
.promo-carousel { position: relative; }
.promo-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 12px; overflow-x: auto;
  scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--r-xl);
}
.promo-track::-webkit-scrollbar { display: none; }
.promo-carousel .carousel-btn { top: 50%; transform: translateY(-50%); }
.promo-carousel .carousel-btn.prev { left: 10px; }
.promo-carousel .carousel-btn.next { right: 10px; }
.promo-slide {
  scroll-snap-align: start; position: relative; overflow: hidden; border-radius: var(--r-xl); color: #fff;
  display: grid; grid-template-columns: 1fr; gap: 14px; align-content: center; min-height: 250px; padding: 22px 20px 20px;
  background: var(--grad-brand); isolation: isolate;
}
.promo-slide::before, .promo-slide::after { content: ""; position: absolute; border-radius: 50%; z-index: -1; background: rgba(255, 255, 255, .09); }
.promo-slide::before { width: 340px; height: 340px; right: -90px; top: -140px; }
.promo-slide::after { width: 220px; height: 220px; left: -70px; bottom: -120px; background: rgba(255, 255, 255, .06); }
.promo-slide:hover { color: #fff; }
/* Campaign banner (image slide): the artwork keeps its own frame — 3:1, or 4:3 for the phone image — and is never
   stretched to the height of the text slides next to it; it sits centred in the slider instead. */
.promo-slide.is-image { display: block; align-self: center; width: 100%; padding: 0; min-height: 0; aspect-ratio: 3 / 1; background: var(--surface-2); }
.promo-slide.is-image::before, .promo-slide.is-image::after { content: none; }
.promo-slide.is-image picture { display: contents; }
.promo-slide.is-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 767px) { .promo-slide.is-image.has-mobile { aspect-ratio: 4 / 3; } }
.promo-slide.theme-blue { background: linear-gradient(125deg, #0b2a4a 0%, #16507a 45%, #1fa2d4 100%); }
.promo-slide.theme-orange { background: linear-gradient(125deg, #b4380f 0%, #e8590c 45%, #ff9f1c 100%); }
.promo-slide.theme-purple { background: linear-gradient(125deg, #3b1a7a 0%, #6d28d9 50%, #c026d3 100%); }
.promo-slide.theme-red { background: linear-gradient(125deg, #7f1022 0%, #d62839 50%, #ff6b4a 100%); }
.promo-slide.theme-green { background: linear-gradient(125deg, #064e3b 0%, #0f9d58 55%, #34d399 100%); }
.promo-slide.theme-dark { background: linear-gradient(125deg, #050d18 0%, #0b2a4a 60%, #16507a 100%); }
.promo-slide.theme-telegram { background: linear-gradient(125deg, #0b4f7d 0%, #1c8fd1 50%, #37b6f0 100%); }
.promo-slide.theme-whatsapp { background: linear-gradient(125deg, #064e3b 0%, #128c4f 50%, #25d366 100%); }
.ps-text { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.ps-chip {
  display: inline-flex; align-items: center; gap: 7px; font-size: .74rem; font-weight: 800; letter-spacing: .02em;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28); padding: 5px 11px; border-radius: 999px;
}
.ps-title { font-size: 1.65rem; font-weight: 850; line-height: 1.1; letter-spacing: -.02em; text-wrap: balance; }
.ps-sub { font-size: .94rem; color: rgba(255, 255, 255, .86); max-width: 460px; }
.ps-cta {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 6px; background: #fff; color: var(--navy-900);
  font-weight: 800; font-size: .92rem; padding: 10px 18px; border-radius: 999px; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); transition: transform .15s;
}
.promo-slide:hover .ps-cta { transform: translateX(2px); }
.theme-telegram .ps-cta { color: #1c8fd1; }
.theme-whatsapp .ps-cta { color: #128c4f; }
.ps-deals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ps-deal { position: relative; background: #fff; border-radius: 14px; padding: 8px; box-shadow: 0 8px 22px rgba(0, 0, 0, .18); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ps-deal:nth-child(3) { display: none; }
.pd-img { aspect-ratio: 4 / 3; border-radius: 9px; overflow: hidden; background: var(--surface-2); }
.pd-img img { width: 100%; height: 100%; object-fit: contain; }
.pd-off { position: absolute; top: 6px; left: 6px; background: var(--deal); color: #fff; font-size: .64rem; font-weight: 800; padding: 2px 6px; border-radius: 6px; }
.pd-price { color: var(--navy-900); font-weight: 850; font-size: .9rem; text-align: center; }
.ps-phone {
  display: none; flex-direction: column; gap: 8px; background: rgba(255, 255, 255, .96); color: var(--text); border-radius: 18px;
  padding: 12px; box-shadow: 0 14px 34px rgba(0, 0, 0, .22); max-width: 380px; width: 100%; justify-self: end;
}
.pp-head { display: flex; align-items: center; gap: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--border); font-size: .82rem; line-height: 1.2; }
.pp-head small { display: block; color: var(--muted); font-size: .7rem; }
.pp-logo { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #229ed9; flex: none; }
.theme-whatsapp .pp-logo { background: #1faf57; }
.pp-msg { background: var(--cyan-50); border-radius: 4px 12px 12px 12px; padding: 7px 10px; font-size: .78rem; line-height: 1.35; }
.theme-whatsapp .pp-msg { background: #e8f8ee; }
.pp-msg .pp-t { display: block; font-weight: 600; }
.pp-m { display: flex; justify-content: space-between; gap: 8px; margin-top: 2px; }
.pp-m b { color: var(--deal); }
.pp-m small { color: var(--muted); font-size: .68rem; }

/* Live statistics */
.stats-section { padding: 12px 0 0; }
.stat-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.stat { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 10px 12px; min-width: 0; box-shadow: var(--shadow-sm); }
.stat strong { display: block; font-size: 1.12rem; font-weight: 850; color: var(--navy-900); font-variant-numeric: tabular-nums; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat small { display: block; font-size: .72rem; color: var(--muted); font-weight: 600; }
.stat > span:last-child { min-width: 0; }
.s-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--cyan-50); color: var(--brand); flex: none; }
.s-ico.is-green { background: #e8f8ee; }

/* Category chips */
.cat-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 6px; }
.cat-chips::-webkit-scrollbar { display: none; }
.cat-chip {
  display: inline-flex; align-items: center; gap: 8px; flex: none; background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 6px 12px 6px 6px; color: var(--text); font-weight: 700; font-size: .86rem; box-shadow: var(--shadow-sm); transition: border-color .15s, transform .15s;
}
.cat-chip:hover { border-color: var(--cyan); color: var(--brand); transform: translateY(-1px); }
.cc-ico { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--cyan-50); font-size: 1rem; overflow: hidden; }
.cc-ico img { width: 100%; height: 100%; object-fit: cover; }
.cc-count { font-size: .72rem; font-weight: 800; color: var(--brand); background: var(--cyan-50); border-radius: 999px; padding: 1px 8px; }
.cat-chip.is-loot { background: var(--loot-bg); border-color: #ffd3b5; }
.cat-chip.is-loot .cc-ico { background: var(--loot); color: #fff; }
.cat-chip.is-loot .cc-count { background: #fff; color: var(--loot); }

/* Channel promotion */
.channel-grid { display: grid; gap: 10px; }
.channel-card {
  display: grid; grid-template-columns: auto 1fr; grid-template-areas: "logo text" "cta cta"; gap: 10px 14px; align-items: center;
  padding: 16px; border-radius: var(--r-lg); color: #fff; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s;
}
.channel-card:hover { color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.channel-card.is-telegram { background: linear-gradient(135deg, #0b4f7d, #229ed9); }
.channel-card.is-whatsapp { background: linear-gradient(135deg, #075e54, #1faf57); }
.ch-logo { grid-area: logo; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .18); }
.ch-text { grid-area: text; min-width: 0; }
.ch-text strong { display: block; font-size: 1.02rem; }
.ch-text small { color: rgba(255, 255, 255, .85); }
.ch-cta { grid-area: cta; justify-self: start; display: inline-flex; align-items: center; gap: 6px; background: #fff; color: var(--navy-900); font-weight: 800; font-size: .86rem; padding: 8px 14px; border-radius: 999px; }
.is-telegram .ch-cta { color: #1b8cc2; }
.is-whatsapp .ch-cta { color: #17964a; }
.cta-strong { background: radial-gradient(110% 140% at 100% 0%, rgba(31, 162, 212, .55), rgba(31, 162, 212, 0) 60%), radial-gradient(80% 120% at 0% 100%, rgba(232, 89, 12, .35), rgba(232, 89, 12, 0) 60%), linear-gradient(135deg, #081f38, #16507a); }
.cta-strong h2 { font-size: 1.45rem; }

/* Bottom live bar (sits above the mobile bottom nav; at the very bottom on desktop) */
.live-bar {
  position: fixed; left: 0; right: 0; bottom: calc(64px + env(safe-area-inset-bottom)); z-index: 39;
  background: rgba(8, 31, 56, .96); color: #fff; box-shadow: 0 -4px 18px rgba(8, 31, 56, .18); font-size: .8rem;
}
.lb-inner { display: flex; align-items: center; gap: 10px; min-height: 42px; }
.lb-count { display: inline-flex; align-items: center; gap: 7px; color: #fff; white-space: nowrap; flex: none; }
.lb-count:hover { color: #9fe0fa; }
.lb-count b { font-weight: 800; }
.lb-ticker { position: relative; flex: 1; min-width: 0; height: 20px; overflow: hidden; }
.lb-ticker a { position: absolute; inset: 0; display: block; color: rgba(255, 255, 255, .92); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s; pointer-events: none; }
.lb-ticker a.is-on { opacity: 1; transform: none; pointer-events: auto; }
.lb-ticker a:hover { color: #fff; text-decoration: underline; }
.lb-ticker small { color: rgba(255, 255, 255, .55); }
.lb-new { background: #16c466; color: #04210f; font-size: .6rem; font-weight: 900; padding: 1px 5px; border-radius: 4px; margin-right: 6px; vertical-align: 1px; }
.lb-actions { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.lb-btn { display: inline-flex; align-items: center; gap: 5px; color: #fff; font-weight: 700; padding: 5px 9px; border-radius: 999px; }
.lb-btn.is-telegram { background: #229ed9; }
.lb-btn.is-whatsapp { background: #1faf57; }
.lb-btn:hover { color: #fff; filter: brightness(1.08); }
.lb-close { background: transparent; border: 0; color: rgba(255, 255, 255, .7); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.lb-close:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.lb-hide-sm { display: none; }
body.has-live-bar.has-bottom-nav { padding-bottom: calc(64px + 42px); }

@media (min-width: 640px) {
  .stat-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .channel-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .lb-hide-sm { display: inline; }
  .ps-deals { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ps-deal:nth-child(3) { display: flex; }
}
@media (min-width: 768px) {
  .promo-slide { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); padding: 30px 36px; min-height: 300px; gap: 24px; }
  .ps-phone { display: flex; }
  .ps-title { font-size: 2.2rem; }
  .live-bar { bottom: 0; }
  body.has-live-bar, body.has-live-bar.has-bottom-nav { padding-bottom: 42px; }
}
@media (min-width: 1024px) {
  .promo-slide { min-height: 320px; padding: 34px 56px; }
  .ps-title { font-size: 2.6rem; }
  .stat-strip { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
}
@media (max-width: 359px) {
  .ps-title { font-size: 1.4rem; }
  .lb-ticker { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .live-dot { animation: none; }
  .lb-ticker a { transition: none; }
}

/* v4 homepage: sections render in document order (legacy o-* ordering off) */
.home.home-live > *, .home.home-live .o-cats, .home.home-live .o-hero, .home.home-live .o-trending, .home.home-live .o-budget, .home.home-live .o-loot, .home.home-live .o-latest, .home.home-live .o-stores, .home.home-live .o-community, .home.home-live .o-banners { order: 0 !important; }

/* v4: grid children may shrink (prevents horizontal overflow on phones) */
.promo-slide { grid-template-columns: minmax(0, 1fr); }
.promo-track > * { min-width: 0; }
@media (min-width: 768px) { .promo-slide { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }

/* ============================================================================
   Desktop experience (v5): real desktop header + mega menu, wider layout,
   hero side panel, sticky homepage sidebar, compact cards, no-photo tiles.
   Phones/tablets keep the existing mobile design.
   ========================================================================== */

/* Card: overlay chip on the image instead of a full-width pill row */
.media-chip {
  position: absolute; right: 8px; top: 8px; z-index: 1; display: inline-flex; align-items: center; gap: 5px;
  font-size: .68rem; font-weight: 700; color: var(--text-2); background: rgba(255, 255, 255, .94);
  border: 1px solid var(--border); border-radius: 999px; padding: 3px 8px; box-shadow: var(--shadow-sm); max-width: calc(100% - 16px);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.media-chip.is-new { color: #0b7a3e; }
.media-chip.is-stale { color: #b45309; background: #fffbeb; border-color: #fde68a; }
.deal-card .ribbon ~ .deal-media .media-chip { top: auto; bottom: 8px; }

/* Card: clean tile for deals without a product photo */
.deal-media.no-photo {
  display: grid; place-items: center;
  background:
    radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--tile, #1fa2d4) 22%, transparent), transparent 60%),
    linear-gradient(160deg, color-mix(in srgb, var(--tile, #1fa2d4) 10%, #fff), #f5f8fc);
}
.np-tile { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px; text-align: center; min-width: 0; }
.np-store { font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); background: #fff; border: 1px solid var(--border); padding: 2px 9px; border-radius: 999px; }
.np-big { font-size: 2rem; font-weight: 900; letter-spacing: -.03em; color: var(--navy-900); line-height: 1.05; }
.np-big small { font-size: .9rem; font-weight: 800; margin-left: 3px; color: var(--deal); letter-spacing: 0; }
.np-cat { font-size: .74rem; color: var(--muted); font-weight: 600; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.deal-card:hover .deal-media.no-photo .np-big { color: var(--brand); }

/* Header: mega menu (desktop only; phones use the drawer) */
.nav-cats { position: relative; display: contents; }
.cats-menu { display: none; }
.nav-cats-btn .icon:last-child { display: none; }

/* Hero side panel + homepage sidebar are desktop-only */
.hero-side, .home-sidebar { display: none; }
.with-sidebar { display: block; }

@media (min-width: 1024px) {
  /* A real desktop header: no hamburger, categories in a mega menu */
  .menu-toggle { display: none; }
  .nav-scroll { overflow: visible; gap: 4px; }
  .nav-cats { display: block; }
  .nav-cats-btn { background: var(--navy-900); color: #fff !important; border-radius: 8px; margin: 6px 8px 6px 0; padding: 6px 12px !important; }
  .nav-cats-btn .icon, .nav-cats-btn:hover .icon { color: #fff !important; }
  .nav-cats-btn .icon:last-child { display: inline-block; transition: transform .15s; }
  .nav-cats-btn::after { display: none !important; }
  .nav-cats:hover .nav-cats-btn .icon:last-child, .nav-cats:focus-within .nav-cats-btn .icon:last-child { transform: rotate(180deg); }
  .cats-menu {
    display: block; position: absolute; left: 0; top: calc(100% - 4px); z-index: 70; width: min(760px, 90vw);
    background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 24px 60px rgba(11, 42, 74, .18);
    padding: 14px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s;
  }
  .nav-cats:hover .cats-menu, .nav-cats:focus-within .cats-menu { opacity: 1; visibility: visible; transform: none; }
  .cm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px 10px; }
  .cm-link { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; color: var(--text); font-weight: 600; font-size: .88rem; }
  .cm-link:hover { background: var(--cyan-50); color: var(--brand); }
  .cm-link.is-empty { color: var(--muted); font-weight: 500; }
  .cm-ico { width: 30px; height: 30px; border-radius: 8px; background: var(--surface-2); display: grid; place-items: center; font-size: 1rem; flex: none; }
.cm-ico img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.d-emoji { width: 28px; text-align: center; font-size: 1.1rem; line-height: 1; flex-shrink: 0; }
.sb-ico { width: 18px; height: 18px; object-fit: cover; border-radius: 4px; vertical-align: -3px; }
  .cm-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cm-count { font-size: .72rem; font-weight: 800; color: var(--brand); background: var(--cyan-50); border-radius: 999px; padding: 1px 8px; }
  .cm-foot { display: flex; gap: 18px; border-top: 1px solid var(--border); margin-top: 10px; padding: 10px 10px 0; font-size: .84rem; font-weight: 700; }

  /* Tighter, denser cards on desktop */
  .deal-body { padding: 11px 12px 12px; gap: 8px; }
  .deal-title { font-size: .88rem; }
  .np-big { font-size: 2.2rem; }
}

@media (min-width: 1100px) {
  .hero-grid.has-side { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: stretch; }
  .hero-grid.has-side .promo-slide { min-height: 340px; }
  .hero-grid.has-side .promo-slide.is-image { min-height: 0; }
  .hero-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
  .spot-card {
    flex: 1; display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid var(--border); border-radius: var(--r-xl);
    padding: 14px; color: var(--text); box-shadow: var(--shadow-sm); transition: box-shadow .15s, transform .15s; min-height: 0;
  }
  .spot-card:hover { color: var(--text); box-shadow: var(--shadow-hover); transform: translateY(-2px); }
  .spot-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--loot); }
  .spot-img { position: relative; flex: 1; min-height: 110px; border-radius: 12px; background: var(--surface-2); overflow: hidden; display: grid; place-items: center; }
  .spot-img img { width: 100%; height: 100%; max-height: 170px; object-fit: contain; }
  .spot-img .pd-off { top: 8px; left: 8px; }
  .spot-title { font-weight: 700; font-size: .9rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .spot-meta { display: flex; align-items: baseline; gap: 8px; font-size: .78rem; color: var(--muted); }
  .spot-meta b { font-size: 1.15rem; color: var(--navy-900); }
  .side-join { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r-xl); color: #fff; box-shadow: var(--shadow); }
  .side-join:hover { color: #fff; filter: brightness(1.05); }
  .side-join.is-telegram { background: linear-gradient(135deg, #0b4f7d, #229ed9); }
  .side-join.is-whatsapp { background: linear-gradient(135deg, #075e54, #1faf57); }
  .sj-logo { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .2); }
  .sj-text strong { display: block; font-size: .92rem; }
  .sj-text small { color: rgba(255, 255, 255, .85); font-size: .74rem; }
  .sj-cta { background: #fff; color: #1b8cc2; font-weight: 800; font-size: .8rem; padding: 7px 12px; border-radius: 999px; }
  .side-join.is-whatsapp .sj-cta { color: #17964a; }
}

@media (min-width: 1200px) {
  .with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 20px; align-items: start; }
  .with-sidebar > .deal-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .home-sidebar { display: flex; flex-direction: column; gap: 14px; position: sticky; top: calc(var(--header-h) + 58px); }
  .sb-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 14px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 2px; }
  .sb-card .sb-title, .sb-join > strong { display: flex; align-items: center; gap: 8px; font-size: .92rem; margin-bottom: 6px; color: var(--navy-900); }
  .sb-join { background: linear-gradient(160deg, #eef8fd, #fff); gap: 8px; }
  .sb-join p { margin: 0 0 4px; font-size: .8rem; color: var(--muted); }
  .sb-join .btn { justify-content: center; width: 100%; }
  .sb-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 8px; border-radius: 8px; color: var(--text-2); font-size: .86rem; font-weight: 600; }
  a.sb-row:hover { background: var(--surface-2); color: var(--brand); }
  .sb-row em { font-style: normal; font-size: .74rem; font-weight: 800; color: var(--brand); background: var(--cyan-50); border-radius: 999px; padding: 1px 8px; }
  .sb-row span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: inline-flex; align-items: center; gap: 8px; }
  .sb-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; }
  .sb-more { font-size: .82rem; font-weight: 700; padding: 6px 8px 0; }
  .sb-today .sb-row em { background: #e8f8ee; color: #0b7a3e; }
  /* The sidebar already lists categories and stores on desktop */
  .home-live .o-stores { display: none; }
}

@media (min-width: 1440px) {
  :root { --container: 1480px; }
  .deal-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .deal-row { grid-auto-columns: calc(16.666% - 14px); }
  .with-sidebar > .deal-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .listing-layout .deal-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .hero-grid.has-side { grid-template-columns: minmax(0, 1fr) 340px; }
}

@media (min-width: 1800px) {
  :root { --container: 1600px; }
}

/* v5 fix: keep the nav row scrollable (no page overflow at 1024–1280px);
   the mega menu is positioned against the viewport so the scroller can't clip it. */
@media (min-width: 1024px) {
  .nav-scroll { overflow-x: auto; overflow-y: visible; }
  .cats-menu {
    position: fixed; top: calc(var(--header-h) + 42px);
    left: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  }
}

.np-pick { font-size: 1.4rem; letter-spacing: .02em; color: var(--loot); }

/* ── SEO / monetization additions (content blocks, guides, showcases, ads, consent) ── */
.link-btn { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }

/* Cookie consent: sits above the mobile bottom nav / buy bar, never covers the header. */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); }
.consent[hidden], .consent [hidden] { display: none !important; }
.consent-inner { max-width: 880px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--r-lg); box-shadow: var(--shadow-hover); padding: 14px 16px; }
.consent-text { margin: 0 0 10px; font-size: .86rem; color: var(--text-2); }
.consent-text a { text-decoration: underline; }
.consent-options { display: grid; gap: 6px; margin: 0 0 10px; font-size: .86rem; }
.consent-options label { display: flex; align-items: center; gap: 8px; }
.consent-options small { color: var(--muted); }
.consent-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.consent-actions .btn { flex: 1 1 auto; }
body.has-consent .live-bar { display: none; }
@media (min-width: 640px) { .consent-actions .btn { flex: 0 0 auto; } }

/* Advertisements: neutral box + label, visually distinct from deal cards and deal buttons. */
.ad-slot { display: block; margin: 16px 0; padding: 8px; background: var(--surface-2); border: 1px dashed var(--border-2); border-radius: var(--r); text-align: center; overflow: hidden; min-height: 60px; max-width: 100%; }
.ad-label { display: block; font-size: .66rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; text-align: left; }
.deal-grid > .ad-slot { grid-column: 1 / -1; margin: 4px 0; }
.site-footer .ad-slot { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .15); }
@media (max-width: 767px) { .ad-desktop-only { display: none !important; } }
@media (min-width: 768px) { .ad-mobile-only { display: none !important; } }

/* Content blocks */
.cblock-banner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 12px; margin-bottom: 14px; padding: 16px 18px; border-radius: var(--r-lg); background: var(--grad-brand); color: #fff; overflow: hidden; }
.cblock-banner img { width: 100%; height: auto; border-radius: var(--r); display: block; aspect-ratio: 3 / 1; object-fit: cover; }
.cblock-banner .cb-text strong { display: block; font-size: 1.1rem; line-height: 1.25; }
.cblock-banner .cb-text span { display: block; opacity: .9; font-size: .88rem; margin-top: 3px; }
.cblock-banner .btn { justify-self: start; }
.cblock-banner.has-image { background: var(--surface); color: var(--text); border: 1px solid var(--border); padding: 10px; }
@media (min-width: 768px) {
  .cblock-banner { grid-template-columns: minmax(0, 1fr) auto; }
  .cblock-banner.has-image { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; }
}
.cblock-note { margin: 8px 0 0; font-size: .76rem; color: var(--muted); }
.cblock-desc { margin: -6px 0 12px; color: var(--text-2); font-size: .9rem; max-width: 860px; }

/* Related links / internal linking (deal, category, store, brand, guide pages) */
.explore { margin-top: 18px; }
.explore h2 { font-size: 1.05rem; margin-bottom: 10px; }
.explore .chips { margin-bottom: 0; }
.seo-intro { margin-top: 18px; }
.seo-intro h2 { font-size: 1.05rem; }
.seo-intro p { color: var(--text-2); margin: 0 0 8px; font-size: .92rem; }
.faq details { border-top: 1px solid var(--border); padding: 10px 0; }
.faq details:first-of-type { border-top: 0; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy-800); }
.faq details p { margin: 8px 0 0; color: var(--text-2); font-size: .92rem; }

/* Showcases (daily / weekly) */
.showcase-nav { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 14px; }
.metric-note { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; color: var(--muted); font-weight: 600; }

/* Guides */
.guide-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.guide-card { display: flex; flex-direction: column; overflow: hidden; }
.guide-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface-2); }
.guide-card .gc-body { padding: 14px 16px; }
.guide-card h2 { font-size: 1.02rem; margin: 0 0 6px; }
.guide-card p { color: var(--muted); font-size: .86rem; margin: 0; }
.guide-meta { color: var(--muted); font-size: .82rem; margin: 0 0 12px; }
.guide-hero { width: 100%; height: auto; border-radius: var(--r-lg); margin: 0 0 16px; aspect-ratio: 16 / 9; object-fit: cover; }
.guide-body .cblock { margin: 18px 0; }
.captcha-note { font-size: .74rem; color: var(--muted); margin: 6px 0 12px; }

/* Footer credit link */
.footer-credit { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.footer-credit:hover { color: #fff; }

/* ── Step 4: card Get Deal button, chips, homepage ordering ─────────────── */
.card-foot .cf-store { font-weight: 700; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.card-cta {
  position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 36px; margin-top: 2px;
  padding: 6px 10px; border-radius: 8px; font-size: .8rem; font-weight: 800; white-space: nowrap; overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .12); transition: filter .15s, transform .1s;
}
.card-cta:hover { filter: brightness(1.06) saturate(1.1); transform: translateY(-1px); }
.card-cta.is-muted { background: var(--surface-2); color: var(--muted); box-shadow: none; }
.media-chip.is-ending { color: #b42318; background: #fff5f3; border-color: #fbd1cb; }
.media-chip.is-drop { color: #0b7a3e; background: #f0faf4; border-color: #cdebd9; }
.home-join { padding-top: 4px; }
.home-join .join-strip { margin: 0; }
.o-fresh .section-ico { background: #f0faf4; color: #1faf57; }
@media (max-width: 419px) { .card-cta .cta-on { display: none; } }
/* The sidebar (desktop) or the strip (phones) already offers the channel — not both, and not twice on phones. */
@media (min-width: 1024px) { .home-join { display: none; } }
@media (max-width: 1023px) { .o-channels.has-strip { display: none; } }
/* Phones: deals first. Returning-visitor row, categories, top deals and the WhatsApp strip come
   before the promo slider and the statistics; everything else keeps its order after them. */
@media (max-width: 767px) {
  .home.home-live > *:not(#_) { order: 2 !important; }
  .home.home-live > .o-fresh:not(#_), .home.home-live > .o-cats:not(#_), .home.home-live > .o-latest:not(#_), .home.home-live > .home-join:not(#_) { order: 0 !important; }
  .home.home-live > .promo-section:not(#_), .home.home-live > .stats-section:not(#_) { order: 1 !important; }
  /* While a campaign banner is running, the slider is the first thing on the page on phones too. */
  .home.home-live > .promo-section.has-campaign:not(#_) { order: 0 !important; }
  .home-live > .o-cats { padding-top: 10px; }
}

/* Titles copied from channel posts can contain non-breaking spaces: let a too-long run wrap instead of being cut off. */
.deal-title { overflow-wrap: anywhere; }

/* Cookie banner on phones: compact, and above the Get Deal bar / bottom navigation so neither is covered. */
@media (max-width: 767px) {
  .consent { padding: 0 8px; bottom: calc(66px + env(safe-area-inset-bottom)); }
  body.has-sticky-buy .consent { bottom: calc(80px + env(safe-area-inset-bottom)); }
  .consent-inner { padding: 10px 12px; }
  .consent-text { font-size: .76rem; line-height: 1.35; margin-bottom: 8px; }
  .consent-actions { gap: 6px; flex-wrap: nowrap; }
  .consent-actions .btn { flex: 1 1 0; min-height: 34px; padding: 6px 4px; font-size: .74rem; white-space: nowrap; }
}
@media (max-width: 359px) { .consent-actions { flex-wrap: wrap; } }

/* ── Verified savings / "as posted" discounts ────────────────────────────── */
.off-pct.is-posted { flex-direction: column; align-items: flex-end; gap: 0; line-height: 1.05; color: var(--text-2); font-weight: 700; text-align: right; }
.off-pct.is-posted b { font-weight: 800; font-size: .74rem; white-space: nowrap; }
.off-pct.is-posted small { font-size: .62rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.card-save { font-size: .76rem; font-weight: 800; color: var(--deal); background: var(--deal-bg); border-radius: 6px; padding: 3px 7px; align-self: flex-start; max-width: 100%; }
.np-upto { display: block; font-size: .78rem; font-weight: 800; color: var(--text-2); margin: 0 0 -2px; letter-spacing: 0; }
.np-posted { display: block; font-size: .68rem; font-weight: 700; color: var(--muted); letter-spacing: 0; margin-top: 2px; }
.badge-off.is-posted { background: rgba(255, 255, 255, .95); color: var(--text-2); box-shadow: 0 1px 4px rgba(11, 42, 74, .16); }
.price-box .price-off.is-posted { background: var(--bg, #f3f6fa); color: var(--text-2); font-weight: 700; }
.save-note { font-size: .78rem; color: var(--muted); margin-top: 6px; }
.sticky-buy .sb-price .sb-posted { display: block; color: var(--text-2); font-weight: 700; font-size: .68rem; line-height: 1.2; }
.sticky-buy .sb-price .sb-posted .nw { white-space: nowrap; font-weight: 600; color: var(--muted); font-size: inherit; }
.filter-note { font-size: .74rem; color: var(--muted); margin: -4px 0 8px; }
.pd-off { max-width: calc(100% - 12px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 419px) { .card-save { font-size: .7rem; padding: 3px 6px; } }

/* ── Activity line + Deal Hunter shortcuts ───────────────────────────────── */
.o-hunter { padding-top: 0; }
.hunter { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.hunter.is-compact { margin: -4px 0 14px; }
.activity-pill { display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; max-width: 100%; font-size: .8rem; font-weight: 700; color: var(--text-2); background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 4px 11px; }
.hunt-row { display: flex; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; min-width: 0; }
.hunt-row::-webkit-scrollbar { display: none; }
.hunt-label { display: inline-flex; align-items: center; gap: 5px; flex: none; font-size: .8rem; font-weight: 800; color: var(--navy-900); }
.hunt-chip { display: inline-flex; align-items: center; gap: 5px; flex: none; font-size: .8rem; font-weight: 700; color: var(--text-2); background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 6px 11px; white-space: nowrap; }
.hunt-chip:hover { border-color: var(--brand); color: var(--brand); }
.hunt-chip.is-current { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.hunt-chip .hc-n { font-size: .7rem; font-weight: 800; color: var(--muted); }
.hunt-chip.is-current .hc-n { color: rgba(255, 255, 255, .75); }

/* ── Welcome message (top, under the header — never over Get Deal or the bottom bar) ── */
.welcome-toast { position: fixed; left: 50%; z-index: 45; display: flex; align-items: center; gap: 8px; width: max-content; max-width: min(440px, calc(100vw - 24px));
  background: #fff; color: var(--navy-950); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 6px 22px rgba(11, 42, 74, .16);
  padding: 8px 6px 8px 14px; font-size: .86rem; font-weight: 600; line-height: 1.3; opacity: 0; transform: translate(-50%, -8px); transition: opacity .25s, transform .25s; }
.welcome-toast.is-show { opacity: 1; transform: translate(-50%, 0); }
.wt-close { flex: none; width: 28px; height: 28px; border: 0; background: none; color: var(--muted); font-size: 1.2rem; line-height: 1; border-radius: 8px; cursor: pointer; }
.wt-close:hover { background: var(--border); color: var(--navy-950); }
@media (prefers-reduced-motion: reduce) { .welcome-toast { transition: none; transform: translate(-50%, 0); } }

/* ── "Stay connected" card (under the header — never over Get Deal or the bottom bars) ── */
.conn-card { position: fixed; z-index: 45; left: 12px; right: 12px; margin: 0 auto; max-width: 400px; overflow-y: auto; overscroll-behavior: contain;
  background: #fff; color: var(--navy-950); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 10px 30px rgba(11, 42, 74, .18);
  padding: 12px 14px 12px; opacity: 0; transform: translateY(-8px); transition: opacity .25s, transform .25s; }
.conn-card.is-show { opacity: 1; transform: translateY(0); }
.conn-close { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; border: 0; background: none; color: var(--muted); font-size: 1.35rem; line-height: 1; border-radius: 8px; cursor: pointer; }
.conn-close:hover { background: var(--border); color: var(--navy-950); }
.conn-title { font-weight: 800; font-size: .95rem; margin: 0 30px 6px 0; }
.conn-lines { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 4px; font-size: .8rem; line-height: 1.35; color: var(--text-2); }
.conn-actions { display: flex; gap: 8px; }
.conn-btn { flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 7px 8px; border-radius: 10px; font-size: .8rem; font-weight: 800; color: #fff; text-align: center; white-space: nowrap; }
.conn-btn:hover { color: #fff; filter: brightness(1.06); }
.conn-btn.is-ig { background: linear-gradient(45deg, #f09433, #dc2743 50%, #bc1888); }
.conn-btn.is-tg { background: #229ed9; }
@media (min-width: 900px) { .conn-card { left: auto; right: 20px; margin: 0; width: 380px; } }
@media (max-width: 359px) { .conn-card { padding: 10px 12px; } .conn-lines { font-size: .76rem; } .conn-btn { font-size: .76rem; padding: 6px 4px; } }
@media (prefers-reduced-motion: reduce) { .conn-card { transition: none; transform: none; } }

/* ── Homepage: newest-first main grid, returning-visitor divider, 90% row ─── */
.o-latest.has-fresh .section-ico, .o-high .section-ico { background: #f0faf4; color: #1faf57; }
.o-high .section-ico { background: #fff3ec; color: var(--loot); }
.grid-divider { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; margin: 4px 0 0; font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.grid-divider::before, .grid-divider::after { content: ""; flex: 1 1 0; height: 1px; background: var(--border); }
/* Phones: the Deal Hunter shortcuts sit with the categories, above the deals (they were below the slider). */
@media (max-width: 767px) {
  .home.home-live > .o-hunter:not(#_) { order: 0 !important; }
  .home-live > .o-hunter { padding-bottom: 4px; }
}
/* No-photo tile: a wide chip ("Ends in 5h", "Price may have changed") no longer sits on top of the store or category line. */
.deal-media.no-photo:has(> .media-chip:not(.is-new)) .np-store { visibility: hidden; }
.deal-card .ribbon ~ .deal-media.no-photo:has(> .media-chip:not(.is-new)) .np-store { visibility: visible; }
.deal-card .ribbon ~ .deal-media.no-photo:has(> .media-chip:not(.is-new)) .np-cat { visibility: hidden; }

/* ── Content hub: Blog (/blog) and Money & Earn (/earn) ── */
.article-kicker { margin: 0 0 6px; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--cyan-600); }
.article-kicker.is-money { color: var(--deal); }
.article-featured { display: grid; overflow: hidden; margin-bottom: 20px; color: inherit; }
.article-featured img { width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface-2); }
.article-featured .af-body { padding: 18px; min-width: 0; }
.article-featured h2 { font-size: 1.3rem; margin: 0 0 8px; }
.article-featured p { color: var(--text-2); font-size: .92rem; margin: 0 0 8px; }
.article-latest { font-size: 1.15rem; margin: 6px 0 12px; }
.article-tags { margin: 16px 0 0; }
.earn-head { padding: 18px; margin-bottom: 12px; border-radius: var(--r-lg); background: var(--deal-bg); border: 1px solid #c9ebd8; }
.earn-head h1 { margin: 0 0 6px; font-size: 1.5rem; }
.earn-head p:last-child { margin: 0; color: var(--text-2); font-size: .92rem; max-width: 760px; }
.disclosure-box { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 16px; padding: 10px 12px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); font-size: .82rem; line-height: 1.5; }
.disclosure-box svg { flex: none; margin-top: 3px; color: var(--muted); }
.program-list { margin: 18px 0; }
.program-list > h2 { font-size: 1.15rem; margin: 0 0 12px; }
.program-card { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; padding: 14px; margin: 12px 0; align-items: start; }
.program-card .pc-logo { width: 48px; height: 48px; border-radius: var(--r); background: var(--deal-bg); color: var(--deal); display: grid; place-items: center; overflow: hidden; }
.program-card .pc-logo img { width: 100%; height: 100%; object-fit: contain; margin: 0; border-radius: 0; background: #fff; }
.program-card h3 { margin: 0 0 4px; font-size: 1rem; overflow-wrap: anywhere; }
.program-card .pc-topic { display: inline-block; margin-left: 4px; padding: 2px 8px; border-radius: 999px; background: var(--deal-bg); color: #0b6b3d; font-size: .68rem; font-weight: 700; vertical-align: middle; }
.program-card p { margin: 0 0 6px; color: var(--text-2); font-size: .9rem; overflow-wrap: anywhere; }
.program-card .pc-meta { color: var(--muted); font-size: .76rem; }
.program-card .pc-terms { margin: 0 0 6px; font-size: .82rem; }
.program-card .pc-terms summary { cursor: pointer; font-weight: 700; color: var(--navy-800); }
.program-card .pc-cta { grid-column: 1 / -1; text-decoration: none; }
@media (min-width: 768px) {
  .article-featured { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; }
  .article-featured h2 { font-size: 1.6rem; }
  .earn-head h1 { font-size: 1.85rem; }
  .program-card { grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; }
  .program-card .pc-logo { width: 64px; height: 64px; }
  .program-card .pc-cta { grid-column: auto; }
}

/* ── Multi-link deals (collections): /collections, /collection/{slug}, homepage row, deal page box ── */
.collection-card .cl-labels { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; min-height: 22px; max-height: 48px; overflow: hidden; }
.collection-card .cl-labels span { font-size: .7rem; font-weight: 700; color: var(--brand); background: var(--cyan-50); border: 1px solid var(--cyan-100); border-radius: 999px; padding: 2px 8px; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.collection-card .cl-labels .cl-more { color: var(--muted); background: var(--surface-2); border-color: var(--border); }
.collection-card .cl-posted { font-size: .7rem; color: var(--muted); font-weight: 600; }
.collection-card .np-big.cl-count small { display: block; margin: 2px 0 0; font-size: .82rem; color: var(--brand-600); text-transform: lowercase; }
.collection-card .price-now { font-size: 1rem; }
@media (max-width: 419px) { .collection-card .card-cta { font-size: .78rem; padding-left: 6px; padding-right: 6px; gap: 2px; } }
@media (max-width: 359px) { .collection-card .cl-verb { display: none; } } /* the narrowest phones: "4 products >" (the full wording stays in the button's label for screen readers) */
.cl-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; }
.cl-filters .select { min-width: 0; flex: 1 1 140px; max-width: 240px; }
.cl-filters .count { color: var(--muted); font-size: .84rem; font-weight: 600; margin-left: auto; }
.collection { display: grid; gap: 14px; margin-bottom: 18px; }
.collection-head { display: grid; gap: 14px; padding: 16px; }
.collection-head .ch-media { background: #fff; border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; max-height: 320px; }
.collection-head .ch-media img { width: 100%; height: 100%; object-fit: contain; }
.collection-head .ch-body { min-width: 0; }
.collection-head h1 { font-size: 1.35rem; line-height: 1.3; margin: 8px 0 10px; overflow-wrap: anywhere; }
.ch-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: .84rem; }
.ch-meta .ds-name { font-weight: 800; }
.ch-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; background: linear-gradient(180deg, #f7fafd, #f2f6fb); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin: 0 0 12px; font-size: .84rem; }
.ch-price .price-now { font-size: 1.5rem; }
.ch-context h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 6px; }
.ch-context ul { margin: 0 0 12px; padding-left: 18px; color: var(--text-2); font-size: .92rem; line-height: 1.55; overflow-wrap: anywhere; }
.ch-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; }
.ch-actions .btn { flex: 1 1 220px; min-height: 48px; white-space: normal; text-align: center; }
.ch-updated { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: .8rem; margin: 10px 0 0; }
.cl-section h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; }
.cl-section .cl-n { font-size: .74rem; font-weight: 800; color: var(--brand); background: var(--cyan-50); border-radius: 999px; padding: 2px 9px; }
.cl-list { list-style: none; margin: 0; padding: 0; }
.cl-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "what price" "go go"; align-items: center; gap: 8px 12px; padding: 12px 0; border-top: 1px solid var(--border); }
.cl-row:first-child { border-top: 0; }
.cl-row.is-off { opacity: .6; }
.cl-thumb { display: none; }
.cl-what { grid-area: what; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cl-label { font-size: 1rem; color: var(--text); overflow-wrap: anywhere; }
.cl-label a { color: inherit; }
.cl-label a:hover { color: var(--brand-600); }
.cl-detail, .cl-note { font-size: .82rem; color: var(--muted); overflow-wrap: anywhere; }
.cl-price { grid-area: price; display: flex; flex-direction: column; align-items: flex-end; gap: 0; text-align: right; white-space: nowrap; }
.cl-price .price-now { font-size: 1.05rem; }
.cl-seeprice { font-size: .76rem; color: var(--muted); font-weight: 600; white-space: normal; max-width: 120px; }
.cl-go { grid-area: go; }
.cl-go .btn { width: 100%; min-height: 44px; white-space: normal; text-align: center; }
.cl-box { border: 1px solid var(--cyan-100); background: var(--cyan-50); border-radius: 12px; padding: 12px; margin: 12px 0; display: grid; gap: 8px; }
.cl-box-title { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; color: var(--navy-800); }
.cl-box-links { display: flex; flex-wrap: wrap; gap: 6px; }
.cl-box-all { font-size: .84rem; font-weight: 700; display: inline-flex; align-items: center; gap: 2px; }
@media (min-width: 640px) {
  .cl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cl-row { grid-template-columns: auto minmax(0, 1fr) auto minmax(190px, auto); grid-template-areas: "thumb what price go"; }
  .cl-thumb { display: block; grid-area: thumb; width: 64px; height: 48px; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: #fff; }
  .cl-thumb img { width: 100%; height: 100%; object-fit: contain; }
  .cl-row:not(:has(.cl-thumb)) { grid-template-columns: minmax(0, 1fr) auto minmax(190px, auto); grid-template-areas: "what price go"; }
  .cl-go .btn { min-height: 38px; }
}
@media (min-width: 900px) {
  .collection-head.has-photo { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); align-items: start; padding: 20px; }
  .collection-head h1 { font-size: 1.6rem; }
}
@media (min-width: 1024px) { .cl-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ── Verified visitor counter (bottom-left) and click count on deal cards ───────────────── */
/* The counter sits just above whatever is fixed to the bottom on that screen (bottom nav, live bar),
   never takes a tap, and steps aside for the cookie banner and a phone's Buy bar. */
.visit-pill {
  position: fixed; left: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 38; pointer-events: none;
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; max-width: calc(100vw - 20px);
  background: rgba(8, 31, 56, .92); color: rgba(255, 255, 255, .84); font-size: .72rem; line-height: 1.1; white-space: nowrap;
  box-shadow: 0 4px 14px rgba(8, 31, 56, .22);
}
.visit-pill b { color: #fff; font-weight: 800; }
.visit-pill .vp-sep { opacity: .5; }
.visit-pill .vp-w { display: none; }
body.has-bottom-nav .visit-pill { bottom: calc(64px + 8px + env(safe-area-inset-bottom)); }
body.has-live-bar.has-bottom-nav .visit-pill { bottom: calc(64px + 42px + 8px + env(safe-area-inset-bottom)); }
body.has-sticky-buy .visit-pill, body.has-consent .visit-pill { display: none; }
.cf-clicks { display: inline-flex; align-items: center; gap: 3px; color: var(--text-2); font-weight: 700; white-space: nowrap; flex: none; }
.cf-clicks[hidden] { display: none; }
.cf-clicks .cf-w { display: none; font-weight: 600; }
/* The store name keeps its room: the word "clicks" only where the footer line is wide enough for it, and on the
   narrowest cards a shown count takes the clock's place. (Browsers without container queries show icon + number.) */
.card-foot { container-type: inline-size; }
@container (min-width: 236px) { .cf-clicks .cf-w { display: inline; } }
@container (max-width: 172px) { .card-foot:has(.cf-clicks:not([hidden])) time svg { display: none; } }
@media (min-width: 768px) {
  .visit-pill, body.has-bottom-nav .visit-pill { left: 16px; bottom: 14px; font-size: .78rem; padding: 7px 12px; }
  body.has-live-bar .visit-pill, body.has-live-bar.has-bottom-nav .visit-pill { bottom: calc(42px + 12px); }
  .visit-pill .vp-w { display: inline; }
}
@media print { .visit-pill { display: none; } }
