/* =========================================================================
   Site theme - purple/slate coupon layout
   Sections: tokens, reset, layout, header, hero, cards, sections, footer
   ========================================================================= */

/* ---------- Tokens ---------- */
:root {
    --purple: #741FA2;
    --purple-600: #6A1B9A;
    --purple-700: #5C1880;
    --purple-050: #F3EEF8;
    --purple-100: #EADCF5;
    --purple-light: #A44FD0;
    --purple-violet: #8B5CF6;
    --purple-bar: #B892D6;
    --purple-line: rgba(116, 31, 162, .22);
    --purple-wash: rgba(116, 31, 162, .1);
    --purple-shadow: rgba(116, 31, 162, .12);

    --ink: #0F172A;
    --ink-2: #334155;
    --body: #64748B;
    --muted: #94A3B8;

    --surface: #FFFFFF;
    --canvas: #FBFAFD;
    --soft: #F4F4F7;
    --line: #E7E3EE;

    --ok: #16A34A;
    --ok-bg: #ECFDF3;
    --amber: #F59E0B;

    --r-sm: 10px;
    --r: 16px;
    --r-lg: 22px;
    --pill: 999px;

    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
    --shadow: 0 6px 20px rgba(15, 23, 42, .07);
    --shadow-lg: 0 18px 40px rgba(92, 24, 128, .14);

    --wrap: 1480px;
    --nav-h: 72px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--body);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 { margin: 0; color: var(--ink); line-height: 1.25; font-weight: 800; }
p { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 44px; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border: 1px solid transparent; border-radius: var(--pill);
    padding: 11px 22px; font-size: 14px; font-weight: 700;
    transition: background-color .18s, color .18s, border-color .18s, transform .18s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--purple); color: #fff; }
.btn-primary:hover { background: var(--purple-700); }
.btn-outline { border-color: var(--purple-line); color: var(--purple); background: #fff; }
.btn-outline:hover { background: var(--purple-050); border-color: var(--purple); }
.btn-ghost { color: var(--purple); background: var(--purple-050); }
.btn-ghost:hover { background: var(--purple-100); }
.btn-light { background: #fff; color: var(--purple); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 60;
    background: #fff; border-bottom: 1px solid var(--line);
}

.topbar { background: var(--purple-700); color: rgba(255, 255, 255, .9); font-size: 12.5px; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; }
.topbar a { color: #fff; opacity: .92; }
.topbar a:hover { opacity: 1; text-decoration: underline; }
.topbar-links { display: flex; align-items: center; gap: 18px; }

.nav-bar { display: flex; align-items: center; gap: 22px; min-height: var(--nav-h); }

.logo { display: inline-flex; align-items: center; flex: none; }
.logo img { max-height: 44px; width: auto; }
.logo-text { font-size: 22px; font-weight: 900; letter-spacing: -.02em; color: var(--ink); }
.logo-text .b1 { color: var(--purple); }

.nav { display: flex; align-items: center; gap: 4px; flex: 1 1 auto; }
.nav > a, .nav-drop-btn {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 9px 12px; border-radius: var(--r-sm);
    font-size: 14.5px; font-weight: 600; color: var(--ink-2);
    background: none; border: 0;
    transition: color .16s, background-color .16s;
}
.nav > a:hover, .nav-drop-btn:hover { color: var(--purple); background: var(--purple-050); }
.nav > a.active { color: var(--purple); background: var(--purple-050); }

.nav-drop { position: relative; }
.nav-drop-menu {
    position: absolute; top: calc(100% + 8px); left: 0; min-width: 240px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--r);
    box-shadow: var(--shadow); padding: 8px;
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .16s, transform .16s, visibility .16s;
}
.nav-drop:hover .nav-drop-menu,
.nav-drop:focus-within .nav-drop-menu { opacity: 1; visibility: visible; transform: none; }
.nav-drop-menu a {
    display: block; padding: 9px 12px; border-radius: var(--r-sm);
    font-size: 14px; font-weight: 500; color: var(--ink-2);
}
.nav-drop-menu a:hover { background: var(--purple-050); color: var(--purple); }
.nav-drop-menu .all { margin-top: 4px; border-top: 1px solid var(--line); padding-top: 10px; color: var(--purple); font-weight: 700; }

.nav-right { display: flex; align-items: center; gap: 10px; flex: none; }

.search-mini { position: relative; display: flex; align-items: center; }
.search-mini input {
    width: 230px; padding: 9px 36px 9px 14px;
    border: 1px solid var(--line); border-radius: var(--pill);
    background: var(--soft); font-size: 13.5px; color: var(--ink);
}
.search-mini input::placeholder { color: var(--muted); }
.search-mini input:focus { outline: none; border-color: var(--purple); background: #fff; }
.search-mini button {
    position: absolute; right: 4px; display: grid; place-items: center;
    width: 30px; height: 30px; border: 0; border-radius: 50%;
    background: none; color: var(--muted);
}
.search-mini button:hover { color: var(--purple); }

.icon-btn {
    display: none; place-items: center; width: 40px; height: 40px;
    border: 1px solid var(--line); border-radius: var(--r-sm);
    background: #fff; color: var(--ink-2); font-size: 18px;
}
.icon-btn:hover { border-color: var(--purple); color: var(--purple); }

/* Mobile drawer */
.mobile-menu { display: none; border-top: 1px solid var(--line); background: #fff; padding: 12px 0 18px; }
.mobile-menu.open { display: block; }
.mobile-menu a {
    display: block; padding: 11px 4px; border-bottom: 1px solid var(--line);
    font-size: 15px; font-weight: 600; color: var(--ink-2);
}
.mobile-menu a:last-child { border-bottom: 0; }
.mobile-menu a.active { color: var(--purple); }
.mobile-search { display: flex; gap: 8px; padding: 8px 0 14px; }
.mobile-search input {
    flex: 1; padding: 11px 14px; border: 1px solid var(--line);
    border-radius: var(--pill); background: var(--soft); font-size: 14px;
}
.mobile-search input:focus { outline: none; border-color: var(--purple); background: #fff; }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, var(--purple-700) 0%, var(--purple) 55%, var(--purple-light) 100%);
    color: #fff; padding: 76px 0 84px; text-align: center;
}
.hero::before,
.hero::after {
    content: ""; position: absolute; border-radius: 50%;
    background: rgba(255, 255, 255, .07); pointer-events: none;
}
.hero::before { width: 460px; height: 460px; top: -180px; left: -120px; }
.hero::after { width: 380px; height: 380px; bottom: -200px; right: -90px; }
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { color: #fff; font-size: clamp(32px, 5vw, 56px); font-weight: 700; letter-spacing: -.02em; }
.hero .sub {
    max-width: 660px; margin: 16px auto 0;
    color: rgba(255, 255, 255, .85); font-size: clamp(15px, 1.6vw, 18px);
}

.hero-search {
    display: flex; max-width: 680px; margin: 30px auto 0;
    background: #fff; border-radius: 37px; padding: 7px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
}
.hero-search input { flex: 1; border: 0; background: none; padding: 12px 20px; font-size: 15px; color: var(--ink); }
.hero-search input:focus { outline: none; }
.hero-search button { border: 0; border-radius: var(--pill); background: var(--purple); color: #fff; padding: 12px 28px; font-size: 14.5px; font-weight: 700; }
.hero-search button:hover { background: var(--purple-700); }

.hero-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 34px; }
.hero-chip {
    display: grid; place-items: center; width: 74px; height: 74px;
    border-radius: 15px; background: rgba(255, 255, 255, .15);
    color: #fff; font-weight: 800; font-size: 17px;
    overflow: hidden; transition: transform .18s, background-color .18s;
}
.hero-chip:hover { transform: translateY(-3px); background: rgba(255, 255, 255, .26); }
.hero-chip:has(img) { background: #fff; }
.hero-chip img { width: 100%; height: 100%; object-fit: contain; padding: 9px; }
.hero-chip svg { width: 100%; height: 100%; display: block; }

/* ---------- Section shell ---------- */
.section { padding: 52px 0; }
.section.tinted { background: var(--canvas); }

.sec-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 20px; margin-bottom: 26px;
}
.sec-head h2 { font-size: clamp(22px, 2.6vw, 32px); font-weight: 800; letter-spacing: -.01em; }
.sec-head p { margin-top: 8px; color: var(--body); font-size: 15px; }
.sec-more { flex: none; color: var(--purple); font-weight: 700; font-size: 14px; white-space: nowrap; }
.sec-more:hover { text-decoration: underline; }

.grid { display: grid; gap: 26px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
.g-5 { grid-template-columns: repeat(5, 1fr); }

/* ---------- Brand pick card ---------- */
.pick-card {
    display: flex; flex-direction: column; position: relative;
    background: #fff; border: 1px solid var(--purple-line); border-radius: var(--r-lg);
    overflow: hidden; transition: box-shadow .2s, transform .2s, border-color .2s;
}
.pick-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--purple); }
.pick-card .banner {
    height: 118px; overflow: hidden;
    background: linear-gradient(120deg, var(--purple), var(--purple-light));
}
.pick-card .banner img,
.pick-card .banner svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.pick-card .avatar {
    width: 60px; height: 60px; margin: -30px auto 0; position: relative; z-index: 1;
    display: grid; place-items: center; border-radius: 50%;
    background: #fff; border: 2px solid #fff; box-shadow: 0 4px 10px rgba(0, 0, 0, .15);
    color: var(--purple); font-weight: 900; font-size: 20px; overflow: hidden;
}
.pick-card .avatar img { width: 100%; height: 100%; object-fit: contain; padding: 7px; display: block; }
.pick-card .avatar svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.pick-card .body { padding: 14px 18px 22px; text-align: center; }
.pick-card .body h3 { font-size: 17px; font-weight: 800; }
.pick-card .body h3 a:hover { color: var(--purple); }
.pick-card .meta { margin-top: 10px; font-size: 13px; color: var(--muted); }
.pick-card .btn { margin-top: 14px; }

/* Sponsored placements reuse the pick card with a marker and no call to action. */
.pick-card.sponsored .body { padding-bottom: 24px; }
.pick-card .sponsor-flag {
    position: absolute; top: 12px; left: 12px; z-index: 2;
    padding: 3px 10px; border-radius: var(--pill);
    background: rgba(15, 23, 42, .55); color: #fff;
    font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}

/* ---------- Verified coupon card ---------- */
.vc-card {
    position: relative; display: flex; flex-direction: column;
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: 22px 20px 20px; transition: box-shadow .2s, transform .2s, border-color .2s;
}
.vc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--purple-line); }
.vc-verified {
    position: absolute; top: 14px; right: 14px;
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 10px; border-radius: var(--pill);
    background: var(--ok-bg); color: var(--ok);
    font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
}
.vc-head { display: flex; align-items: center; gap: 14px; }
.vc-logo {
    width: 52px; height: 52px; flex: none; display: grid; place-items: center;
    border-radius: 14px; background: var(--purple-050); border: 1px solid var(--line);
    color: var(--purple); font-weight: 900; font-size: 18px; overflow: hidden;
}
.vc-logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.vc-logo svg { width: 100%; height: 100%; display: block; }
.vc-pct { line-height: 1; }
.vc-num { display: block; font-size: 30px; font-weight: 900; color: var(--purple); letter-spacing: -.03em; }
.vc-off { display: block; margin-top: 4px; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.vc-title {
    margin-top: 16px; font-size: 15.5px; font-weight: 700; color: var(--ink);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 48px;
}
.vc-title a:hover { color: var(--purple); }
.vc-brand { margin-top: 6px; font-size: 13px; color: var(--muted); }
.vc-brand a:hover { color: var(--purple); }

.vc-exp { margin-top: 12px; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }

/* ---------- Deal card ---------- */
.dc-card {
    position: relative; display: flex; flex-direction: column;
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: 22px 20px 20px; transition: box-shadow .2s, transform .2s, border-color .2s;
}
.dc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--purple-line); }
.dc-verified {
    position: absolute; top: 14px; right: 14px;
    padding: 4px 10px; border-radius: var(--pill);
    background: var(--ok-bg); color: var(--ok);
    font-size: 11px; font-weight: 800;
}
.dc-head { display: flex; align-items: center; gap: 14px; }
.dc-logo {
    width: 52px; height: 52px; flex: none; display: grid; place-items: center;
    border-radius: 14px; background: var(--purple-050); border: 1px solid var(--line);
    color: var(--purple); font-weight: 900; font-size: 18px; overflow: hidden;
}
.dc-logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.dc-logo svg { width: 100%; height: 100%; display: block; }
.dc-offer { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--purple); }
.dc-brand { margin-top: 2px; font-size: 14px; font-weight: 700; color: var(--ink); }
.dc-title {
    margin-top: 16px; font-size: 15px; font-weight: 700; color: var(--ink);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 46px;
}
.dc-title a:hover { color: var(--purple); }
.dc-btn { margin-top: 16px; }
.dc-exp { margin-top: 12px; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }

/* ---------- Category tiles ---------- */
/* Tiles hold their ~128px size and the row fills itself, whatever the count. */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 15px; }
.cat { display: block; text-align: center; }
.cat .circle {
    aspect-ratio: 1; display: grid; place-items: center;
    border-radius: 50%; background: linear-gradient(135deg, var(--purple-050), var(--purple-100));
    color: var(--purple); font-size: 40px;
    transition: transform .18s, box-shadow .18s;
}
.cat:hover .circle { transform: translateY(-4px); box-shadow: var(--shadow); }
.cat span { display: block; margin-top: 12px; font-size: 13px; font-weight: 500; color: var(--ink); }
.cat small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }

/* ---------- Store list ---------- */
.store-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.store-row {
    display: flex; align-items: center; gap: 15px;
    padding: 15px; border-radius: 15px;
    background: #fff; border: 0;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .12);
    transition: transform .18s, box-shadow .18s;
}
.store-row:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(92, 24, 128, .2); }
.store-row .logo-box {
    width: 59px; height: 59px; flex: none; display: grid; place-items: center;
    border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px var(--line);
    color: var(--purple); font-weight: 900; font-size: 18px; overflow: hidden;
}
.store-row .logo-box img { width: 100%; height: 100%; object-fit: contain; padding: 8px; display: block; }
.store-row .logo-box svg { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.store-row .info { min-width: 0; }
.store-row .name { font-size: 17px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.store-row .cnt { font-size: 13px; color: var(--purple); }

/* ---------- Bonus band ---------- */
.bonus {
    display: flex; align-items: center; justify-content: space-between; gap: 28px;
    padding: 38px 44px; border-radius: var(--r-lg);
    background: linear-gradient(to right, var(--purple), var(--purple-violet));
    color: #fff; box-shadow: var(--shadow-lg);
}
.bonus h2 { color: #fff; font-size: clamp(20px, 2.4vw, 28px); }
.bonus p { margin-top: 8px; color: rgba(255, 255, 255, .85); max-width: 560px; font-size: 15px; }

/* ---------- Editorial ---------- */
.editorial { display: grid; grid-template-columns: 1.33fr 1fr 1fr; gap: 30px; align-items: start; }
.feature {
    display: flex; flex-direction: column; background: #fff;
    border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
    transition: box-shadow .2s, border-color .2s;
}
.feature:hover { box-shadow: var(--shadow-lg); border-color: var(--purple-line); }
.feature-img { aspect-ratio: 16 / 9; background: var(--purple-050); }
.feature-img img { width: 100%; height: 100%; object-fit: cover; }
.feature-body { padding: 24px; }
.eyebrow-tag {
    display: inline-block; padding: 4px 12px; border-radius: var(--pill);
    background: var(--purple-050); color: var(--purple);
    font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.feature-body h3 { margin-top: 12px; font-size: clamp(19px, 2.2vw, 25px); }
.feature-body h3 a:hover { color: var(--purple); }
.feature-body p { margin-top: 10px; font-size: 14.5px; color: var(--body); }
.feature-body .link { display: inline-block; margin-top: 14px; color: var(--purple); font-weight: 700; font-size: 14px; }
.feature-body .link:hover { text-decoration: underline; }

/* Middle column: stacked vertical article cards */
.side-cards { display: flex; flex-direction: column; gap: 22px; }
.mini-article {
    display: flex; flex-direction: column; background: #fff;
    border: 1px solid var(--line); border-radius: 15px; overflow: hidden;
    transition: border-color .18s, box-shadow .18s;
}
.mini-article:hover { border-color: var(--purple-line); box-shadow: var(--shadow-sm); }
.mini-article .img { aspect-ratio: 40 / 21; background: var(--purple-050); }
.mini-article .img img { width: 100%; height: 100%; object-fit: cover; }
.mini-article .txt { padding: 16px 18px 18px; }
.mini-article .eyebrow-tag { padding: 3px 10px; font-size: 10px; }
.mini-article h3 { margin-top: 9px; font-size: 15px; font-weight: 700; line-height: 1.4; }
.mini-article h3 a:hover { color: var(--purple); }
.mini-article p {
    margin-top: 8px; font-size: 13.5px; color: var(--body);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* Right column: topic chips + newsletter */
.editorial-aside h2 { font-size: 19px; margin-bottom: 16px; }
.trending { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; }
.trending a {
    display: block; padding: 8px 16px; border-radius: var(--pill);
    background: #fff; border: 1px solid var(--line);
    font-size: 13px; font-weight: 600; color: var(--ink);
    text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    transition: background-color .18s, color .18s, border-color .18s;
}
.trending a:hover { background: var(--purple); color: #fff; border-color: var(--purple); }

.newsletter-box {
    margin-top: 28px; padding: 30px; border-radius: var(--r-lg);
    background: linear-gradient(to right, var(--purple), var(--purple-violet)); color: #fff;
    box-shadow: var(--shadow-lg);
}
.newsletter-box h3 { color: #fff; font-size: 20px; }
.newsletter-box p { margin-top: 8px; font-size: 14px; color: rgba(255, 255, 255, .85); }
.newsletter-box input {
    width: 100%; margin-top: 16px; padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, .25); border-radius: 11px;
    background: rgba(255, 255, 255, .12); color: #fff; font-size: 14px;
}
.newsletter-box input::placeholder { color: rgba(255, 255, 255, .6); }
.newsletter-box input:focus { outline: none; border-color: #fff; background: rgba(255, 255, 255, .18); }
.newsletter-box button {
    width: 100%; margin-top: 10px; padding: 13px;
    border: 0; border-radius: 11px; background: #fff; color: var(--purple);
    font-size: 14.5px; font-weight: 700;
}
.newsletter-box button:hover { background: var(--purple-050); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq > h2 { text-align: center; font-size: clamp(22px, 2.6vw, 32px); margin-bottom: 26px; }
.faq-hl { color: var(--purple); }
.faq-list { display: flex; flex-direction: column; gap: 15px; }
.faq details {
    background: #fff; border: 1px solid #E6E6EF; border-radius: 13px;
    padding: 16px 20px; transition: border-color .18s;
}
.faq details[open] { border-color: var(--purple-line); }
.faq summary {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    font-size: 15px; font-weight: 700; color: var(--ink); cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: ""; flex: none; width: 10px; height: 10px;
    border-right: 2px solid var(--purple); border-bottom: 2px solid var(--purple);
    transform: rotate(45deg) translate(-2px, -2px); transition: transform .18s;
}
.faq details[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.faq details p { margin-top: 12px; font-size: 14.5px; color: var(--body); }
.faq-contact { margin-top: 26px; text-align: center; font-size: 14.5px; }
.faq-contact a { color: var(--purple); font-weight: 700; }
.faq-contact a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { background: var(--purple); color: rgba(255, 255, 255, .85); }
.footer-top { padding-block: 52px 40px; }
.footer-grid {
    display: grid; gap: 38px;
    /* minmax(0,…) so a long column heading can't starve its neighbours */
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr);
}
.footer-col h5 { color: #fff; font-size: 17px; font-weight: 700; margin-bottom: 14px; }
.footer-col a { display: block; padding: 5px 0; font-size: 13px; color: rgba(255, 255, 255, .85); }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-sub p { font-size: 13px; margin-bottom: 14px; }
.footer-sub form { display: flex; gap: 8px; }
.footer-sub input {
    flex: 1; min-width: 0; padding: 11px 16px; border: 1px solid rgba(255, 255, 255, .28);
    border-radius: var(--pill); background: rgba(255, 255, 255, .12); color: #fff; font-size: 14px;
}
.footer-sub input::placeholder { color: rgba(255, 255, 255, .6); }
.footer-sub input:focus { outline: none; border-color: #fff; background: rgba(255, 255, 255, .18); }
.footer-sub .btn-light:hover { background: var(--purple-050); }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
    display: grid; place-items: center; width: 38px; height: 38px; padding: 0;
    border-radius: 50%; background: rgba(255, 255, 255, .15); color: #fff; font-size: 16px;
}
.footer-social a:hover { background: rgba(255, 255, 255, .28); }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .18); padding-block: 20px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    font-size: 13px;
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-bottom a:hover { text-decoration: underline; }
.footer-note { max-width: 820px; font-size: 12.5px; color: rgba(255, 255, 255, .7); padding-bottom: 22px; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
    .editorial { grid-template-columns: 1.25fr 1fr; }
    .editorial-aside { grid-column: 1 / -1; }
    .editorial-aside .newsletter-box { margin-top: 20px; }
    .trending { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 1240px) {
    .g-5 { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 1080px) {
    .g-4 { grid-template-columns: repeat(2, 1fr); }
    .g-5 { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .search-mini { display: none; }
}

@media (max-width: 900px) {
    .nav { display: none; }
    .icon-btn { display: grid; }
    .nav-right > .btn-outline { display: none; }   /* moves into the drawer */
    .nav-bar { justify-content: space-between; }
    .editorial { grid-template-columns: 1fr; }
    .g-3, .g-5, .store-list { grid-template-columns: repeat(2, 1fr); }
    .wrap { padding-inline: 20px; }
    .bonus { flex-direction: column; text-align: center; }
    .bonus p { max-width: none; }
    .section { padding: 42px 0; }
    .sec-head { flex-direction: column; align-items: flex-start; gap: 10px; }
}

@media (max-width: 620px) {
    .g-2, .g-3, .g-4, .g-5, .cat-grid, .store-list { grid-template-columns: repeat(2, 1fr); }
    .trending { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-bottom { flex-direction: column; text-align: center; }
    .hero { padding: 52px 0 60px; }
    .hero-search { flex-direction: column; border-radius: var(--r-lg); }
    .hero-search button { border-radius: var(--pill); }
    .bonus { padding: 30px 24px; }
}

@media (max-width: 420px) {
    .g-4, .g-5, .cat-grid, .store-list { grid-template-columns: 1fr; }
}

/* =========================================================================
   Store pages — A-Z listing and single-store detail
   ========================================================================= */

/* ---------- Breadcrumb ---------- */
.crumbs { padding: 18px 0 0; font-size: 13.5px; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.crumbs li { display: inline-flex; align-items: center; gap: 8px; }
.crumbs a { color: var(--body); }
.crumbs a:hover { color: var(--purple); }
.crumbs .sep { color: var(--muted); font-size: 11px; }
.crumbs .now { color: var(--ink); font-weight: 600; }

/* ---------- Stores listing ---------- */
.storelist-hero { max-width: 924px; margin-inline: auto; text-align: center; }
.storelist-hero h1 { font-size: clamp(30px, 4vw, 49px); font-weight: 800; }
.storelist-hero p { margin-top: 12px; font-size: 17px; color: #666667; }

.storelist-search {
    display: flex; align-items: center; gap: 12px;
    margin: 29px auto 0; max-width: 740px;
    padding: 10px 12px 10px 27px; border: 1px solid var(--purple); border-radius: 41px;
    background: #fff;
}
.storelist-search i { color: var(--purple); font-size: 18px; }
.storelist-search input { flex: 1; min-width: 0; border: 0; background: none; font-size: 16px; color: var(--ink); }
.storelist-search input:focus { outline: none; }
.storelist-search button {
    flex: none; border: 0; border-radius: var(--pill); background: var(--purple); color: #fff;
    padding: 10px 24px; font-size: 14px; font-weight: 700;
}
.storelist-search button:hover { background: var(--purple-700); }

.letter-hint {
    margin-top: 41px; text-align: center; font-size: 13px;
    letter-spacing: 3px; text-transform: uppercase; color: #666667;
}

.letter-grid { display: grid; grid-template-columns: repeat(9, 1fr); gap: 20px; margin-top: 18px; }
.letter-card {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    padding: 22px 8px; border-radius: 12px; background: #DCDCDC;
    transition: background-color .18s, transform .18s;
}
.letter-card:hover { background: var(--purple-100); transform: translateY(-3px); }
.letter-card.is-empty { opacity: .4; pointer-events: none; }
.letter-card .letter { font-size: 28px; font-weight: 800; color: var(--ink); line-height: 1; }
.letter-card .letter-count { font-size: 13px; color: var(--ink-2); }

.featured-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.featured-head h2 { font-size: clamp(22px, 2.8vw, 35px); font-weight: 800; }
.featured-viewmore { font-size: 16px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.featured-viewmore:hover { color: var(--purple); }

.featured-circles { display: flex; flex-wrap: wrap; gap: 49px; margin-top: 26px; }
.fbrand { width: 144px; text-align: center; }
.fcircle {
    width: 131px; height: 131px; margin-inline: auto;
    display: grid; place-items: center; overflow: hidden;
    border-radius: 50%; background: #F2F2F2;
    box-shadow: 0 0 6px rgba(0, 0, 0, .15);
    color: var(--purple); font-weight: 900; font-size: 30px;
    transition: transform .18s, box-shadow .18s;
}
.fbrand:hover .fcircle { transform: translateY(-4px); box-shadow: 0 8px 18px rgba(92, 24, 128, .25); }
.fcircle img { width: 100%; height: 100%; object-fit: contain; padding: 20px; }
.fcircle svg { width: 100%; height: 100%; object-fit: cover; }
.fbrand-name { margin-top: 16px; font-size: 18px; font-weight: 700; color: #17224D; }
.fbrand:hover .fbrand-name { color: var(--purple); }
.fbrand-coupons { margin-top: 4px; font-size: 14px; color: #17224D; }

.stores-cta { max-width: 780px; margin-inline: auto; text-align: center; }
.stores-cta h2 { font-size: clamp(24px, 3vw, 35px); font-weight: 800; color: var(--purple); }
.stores-cta p { margin-top: 12px; font-size: 16px; }
.stores-cta .checkout-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 24px; }

/* ---------- Store detail: hero ---------- */
.store-hero { display: grid; grid-template-columns: 370px 1fr; gap: 25px; align-items: stretch; }

.store-id-card {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 33px 25px; border: 1px solid #E6E6EF; border-radius: 25px;
    background: #fff; box-shadow: 0 4px 14px var(--purple-shadow); text-align: center;
}
.store-id-logo {
    width: 111px; height: 111px; display: grid; place-items: center; overflow: hidden;
    border: 1px solid #E6E6EF; border-radius: 50%; background: #fff;
    color: var(--purple); font-weight: 900; font-size: 30px;
}
.store-id-logo img { width: 100%; height: 100%; object-fit: contain; padding: 16px; }
.store-id-logo svg { width: 100%; height: 100%; object-fit: cover; }
.store-id-name { margin-top: 16px; font-size: 22px; font-weight: 800; color: var(--ink); }
.store-id-name a:hover { color: var(--purple); }
.store-id-rating { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 14px; }
.store-id-rating .rate { font-weight: 800; color: var(--ink); }
.store-id-rating .stars { color: #D8D3E2; letter-spacing: 1px; }
.store-id-rating .reviews { color: var(--muted); }
.store-review-btn {
    display: inline-block; margin-top: 16px; padding: 10px 22px;
    border: 1px solid var(--purple); border-radius: var(--pill);
    background: #fff; color: var(--purple); font-size: 14px; font-weight: 700;
}
.store-review-btn:hover { background: var(--purple-050); }

.store-banner {
    display: flex; flex-direction: column; justify-content: center; gap: 22px;
    padding: 25px 41px; border-radius: 25px;
    background: linear-gradient(120deg, var(--purple-700), var(--purple)); color: #fff;
}
.store-banner-pill {
    align-self: flex-start; padding: 6px 14px; border-radius: 20px;
    background: rgba(255, 255, 255, .16); font-size: 12px; font-weight: 700;
}
.store-banner-main { display: flex; align-items: center; justify-content: space-between; gap: 33px; flex-wrap: wrap; }
.store-banner h1 { color: #fff; font-size: clamp(24px, 3.2vw, 38px); font-weight: 800; }
.store-banner-copy p { margin-top: 10px; color: rgba(255, 255, 255, .8); max-width: 520px; font-size: 15px; }
.store-banner-stats { display: flex; gap: 14px; flex: none; }
.store-stat { padding: 18px 23px; border-radius: 16px; background: rgba(255, 255, 255, .12); text-align: center; }
.store-stat .num { display: block; font-size: 28px; font-weight: 800; line-height: 1; }
.store-stat .cap {
    display: block; margin-top: 6px; font-size: 11px;
    letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .75);
}

/* ---------- Store detail: layout ---------- */
.store-layout { display: grid; grid-template-columns: 390px 1fr; gap: 25px; align-items: start; margin-top: 32px; }
.content-block + .content-block { margin-top: 44px; }
.content-h2 { font-size: clamp(21px, 2.6vw, 35px); font-weight: 800; }
.content-sub { margin-top: 8px; font-size: 15px; color: var(--body); }

.deals-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.filter {
    padding: 8px 19px; border: 1px solid var(--purple-line); border-radius: var(--pill);
    background: #fff; color: var(--purple); font-size: 14px; font-weight: 500;
    transition: background-color .16s, color .16s;
}
.filter:hover { background: var(--purple-050); }
.filter.active { background: var(--purple); border-color: var(--purple); color: #fff; }

.deal-list { display: flex; flex-direction: column; gap: 16px; margin-top: 22px; }
.deal-row {
    display: flex; align-items: center; gap: 20px;
    padding: 20px; border: 1px solid #E6E6EF; border-radius: 16px; background: #fff;
    transition: border-color .18s, box-shadow .18s;
}
.deal-row:hover { border-color: var(--purple-line); box-shadow: var(--shadow); }
.deal-row.is-hidden { display: none; }
.deal-badge {
    flex: none; width: 115px; min-height: 99px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 8px; border-radius: 12px; background: var(--purple-100); color: var(--purple);
}
.deal-badge .num { font-size: 26px; font-weight: 900; line-height: 1.1; }
.deal-badge .cap { font-size: 13px; font-weight: 600; }
.deal-copy { flex: 1; min-width: 0; }
.deal-tagrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.deal-tag {
    padding: 4px 11px; border-radius: var(--pill);
    background: var(--purple); color: #fff;
    font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.deal-verified { font-size: 12.5px; font-weight: 600; color: var(--ok); }
.deal-copy h3 { margin-top: 10px; font-size: 17px; font-weight: 700; }
.deal-copy h3 a:hover { color: var(--purple); }
.deal-copy p { margin-top: 8px; font-size: 14px; color: var(--body); }
.deal-cta { flex: none; display: flex; flex-direction: column; align-items: center; gap: 8px; width: 165px; }
.deal-btn {
    width: 100%; padding: 12px 18px; border: 0; border-radius: var(--pill);
    background: var(--purple); color: #fff; font-size: 14px; font-weight: 700; text-align: center;
}
.deal-btn:hover { background: var(--purple-700); }
.deal-btn.ghost { background: var(--purple-050); color: var(--purple); }
.deal-btn.ghost:hover { background: var(--purple-100); }
.deal-exp { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* ---------- Discount table ---------- */
.disc-table { margin-top: 22px; border: 1px solid #E6E6EF; border-radius: 16px; overflow: hidden; }
.disc-head, .disc-row { display: grid; grid-template-columns: 150px 1fr 150px; gap: 16px; padding: 14px 20px; }
.disc-head { background: var(--purple-050); font-size: 13px; font-weight: 800; color: var(--ink); }
.disc-row { border-top: 1px solid #E6E6EF; font-size: 14px; }
.disc-row span:first-child { font-weight: 700; color: var(--purple); }
.disc-row span:nth-child(2) { color: var(--ink-2); }

/* ---------- Activity chart ---------- */
.chart-card { margin-top: 22px; padding: 29px 33px; border-radius: 25px; background: var(--purple-050); }
.chart-card h3 { font-size: 19px; font-weight: 700; }
.bar-legend { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; color: var(--body); }
.bar-legend .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--purple-bar); }
.bar-wrap { position: relative; margin-top: 24px; }
.bar-chart { position: relative; display: flex; align-items: flex-end; gap: 8px; height: 220px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.bar-val { font-size: 12px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.bar { width: 100%; max-width: 57px; background: var(--purple-bar); border-radius: 8px 8px 0 0; min-height: 3px; }
.avg-line { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--purple); }
.avg-tip {
    position: absolute; right: 0; top: -11px; padding: 2px 10px; border-radius: var(--pill);
    background: var(--purple); color: #fff; font-size: 11px; font-weight: 700; white-space: nowrap;
}
.bar-months { display: flex; gap: 8px; margin-top: 10px; }
.bar-months span { flex: 1; text-align: center; font-size: 12px; color: var(--body); }

/* ---------- Competitor cards ---------- */
.comp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 24px; }
.comp-card {
    position: relative; padding: 25px; border: 1px solid #E6E6EF; border-radius: 25px; background: #fff;
    transition: transform .18s, box-shadow .18s, border-color .18s;
}
.comp-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--purple-line); }
.comp-verified {
    position: absolute; top: 16px; right: 16px; padding: 4px 10px; border-radius: var(--pill);
    background: var(--ok-bg); color: var(--ok); font-size: 11px; font-weight: 800; text-transform: uppercase;
}
.comp-top { display: flex; align-items: center; gap: 14px; }
.comp-logo {
    width: 56px; height: 56px; flex: none; display: grid; place-items: center; overflow: hidden;
    border-radius: 14px; border: 1px solid var(--line); background: #fff;
    color: var(--purple); font-weight: 900;
}
.comp-logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.comp-logo svg { width: 100%; height: 100%; object-fit: cover; }
.comp-pct { font-size: 28px; font-weight: 900; color: var(--purple); line-height: 1.1; }
.comp-pct small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.comp-card h3 {
    margin-top: 16px; font-size: 15.5px; font-weight: 700; min-height: 46px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.comp-card h3 a:hover { color: var(--purple); }
.comp-reveal { display: flex; margin-top: 16px; }
.comp-code {
    flex: 1; display: flex; align-items: center; padding: 11px 14px;
    border: 1px dashed var(--purple-line); border-right: 0; border-radius: var(--pill) 0 0 var(--pill);
    background: var(--purple-050); color: var(--purple);
    font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; font-weight: 700;
    letter-spacing: .06em; white-space: nowrap; overflow: hidden;
}
.comp-btn {
    flex: none; border: 0; border-radius: 0 var(--pill) var(--pill) 0;
    background: var(--purple); color: #fff; padding: 11px 18px; font-size: 13px; font-weight: 700;
}
.comp-btn:hover { background: var(--purple-700); }
.comp-exp { margin-top: 12px; font-size: 12px; color: var(--muted); }

/* ---------- Sidebar widgets ---------- */
.store-sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 92px; }
.widget { padding: 25px; border: 1px solid #E6E6EF; border-radius: 25px; background: #fff; }
.widget-title { font-size: 21px; font-weight: 700; color: var(--ink); }
.widget-title.ruled { padding-bottom: 12px; border-bottom: 1px solid #E6E6EF; }
.summary-list { margin-top: 14px; }
.summary-list li {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14px;
}
.summary-list li:last-child { border-bottom: 0; }
.summary-list b { color: var(--ink); font-weight: 800; }
.summary-list b.hot { color: var(--purple); }

.widget.trust .trust-head { display: flex; align-items: center; gap: 10px; }
.widget.trust .trust-icon { color: var(--purple); font-size: 22px; display: grid; place-items: center; }
.widget.trust h3 { font-size: 19px; font-weight: 700; }
.widget.trust p { margin-top: 12px; font-size: 14px; }
.trust-list { margin-top: 14px; display: flex; flex-direction: column; gap: 9px; }
.trust-list li { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; color: var(--ink-2); }
.trust-list i { color: var(--ok); font-size: 14px; line-height: 1.5; }

.similar-grid { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 14px; }
.similar-item {
    padding: 8px 15px; border: 1px solid var(--line); border-radius: var(--pill);
    font-size: 13px; font-weight: 600; color: var(--ink-2);
    transition: background-color .16s, color .16s, border-color .16s;
}
.similar-item:hover { background: var(--purple); border-color: var(--purple); color: #fff; }

/* ---------- Store copy blocks ---------- */
.store-prose { margin-top: 18px; font-size: 15px; color: var(--body); }
.store-prose h2, .store-prose h3 { margin-top: 22px; color: var(--ink); }
.store-prose h2 { font-size: 22px; }
.store-prose h3 { font-size: 18px; }
.store-prose p { margin-top: 12px; }
.store-prose ul, .store-prose ol { margin-top: 12px; padding-left: 22px; list-style: revert; }
.store-prose li { margin-top: 6px; }
.store-prose a { color: var(--purple); font-weight: 600; }

.ur-head h2 { font-size: clamp(21px, 2.1vw, 29px); font-weight: 800; }
.ur-empty {
    margin-top: 20px; padding: 34px; border: 1px dashed var(--purple-line); border-radius: 25px;
    background: var(--purple-050); text-align: center; font-size: 15px; color: var(--body);
}

/* ---------- Store pages: responsive ---------- */
@media (max-width: 1240px) {
    .letter-grid { grid-template-columns: repeat(7, 1fr); }
    .comp-grid { grid-template-columns: repeat(2, 1fr); }
    .featured-circles { gap: 30px; }
}

@media (max-width: 1080px) {
    .store-hero { grid-template-columns: 1fr; }
    .store-layout { grid-template-columns: 1fr; }
    .store-sidebar { position: static; }
    .letter-grid { grid-template-columns: repeat(6, 1fr); }
}

@media (max-width: 900px) {
    .deal-row { flex-wrap: wrap; }
    .deal-copy { flex-basis: calc(100% - 135px); }
    .deal-cta { width: 100%; flex-direction: row; justify-content: space-between; align-items: center; }
    .deal-btn { width: auto; flex: 1; }
    .disc-head, .disc-row { grid-template-columns: 100px 1fr; }
    .disc-head span:last-child, .disc-row span:last-child { display: none; }
    .comp-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
    .letter-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
    .comp-grid { grid-template-columns: 1fr; }
    .featured-circles { gap: 20px; justify-content: center; }
    .fbrand { width: 120px; }
    .fcircle { width: 104px; height: 104px; }
    .store-banner { padding: 24px; }
    .store-banner-stats { width: 100%; }
    .store-stat { flex: 1; }
    .chart-card { padding: 22px 18px; }
    .bar-chart { height: 170px; }
    .bar-val, .bar-months span { font-size: 10px; }
    .storelist-search { flex-wrap: wrap; border-radius: 24px; padding: 12px; }
    .storelist-search input { flex-basis: 100%; padding: 4px 8px 10px; }
    .storelist-search button { flex: 1; }
}

/* ---------- Store detail: editorial content blocks ---------- */

/* The FAQ block is reused inside the store column, where it must fill the
   column rather than sit centred at reading width. */
.faq.flush { max-width: none; margin-inline: 0; }
.faq.flush > h2 { text-align: left; }

.content-block .store-prose:first-child { margin-top: 14px; }

/* Small facts strip under the intro copy. */
.fact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; margin-top: 20px; }
.fact {
    display: flex; align-items: center; gap: 13px;
    padding: 16px 18px; border: 1px solid #E6E6EF; border-radius: 16px; background: #fff;
}
.fact-icon {
    width: 42px; height: 42px; flex: none; display: grid; place-items: center;
    border-radius: 12px; background: var(--purple-050); color: var(--purple); font-size: 18px;
}
.fact .cap { display: block; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.fact .val { display: block; margin-top: 2px; font-size: 15px; font-weight: 700; color: var(--ink); }

/* Section dividers keep the long copy readable without extra chrome. */
.content-block.ruled { padding-top: 40px; border-top: 1px solid #E6E6EF; }

/* =========================================================================
   Coupon reveal — list button, and the dialog it opens
   ========================================================================= */

/* ---------- List: dashed code plate with a button sitting over it ---------- */
.code-reveal {
    position: relative; display: flex; align-items: center; justify-content: center;
    height: 50px; margin-top: 16px;
    border: 2px dashed #A8B4E8; border-radius: 10px;
    background: #EEF2FF;
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 15px; font-weight: 700; letter-spacing: .16em;
    color: var(--ink); text-transform: uppercase;
    overflow: hidden;
}
.code-reveal .code-text {
    padding-inline: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.code-btn {
    position: absolute; top: 0; bottom: 0; left: 0; width: 76%;
    display: grid; place-items: center;
    border: 0; border-radius: 8px;
    background: var(--purple); color: #fff;
    font-family: inherit; font-size: 13.5px; font-weight: 700; letter-spacing: 0;
    text-transform: none; white-space: nowrap;
    transition: width .22s ease, background-color .18s;
}
.code-reveal:hover .code-btn { width: 66%; }
.code-btn:hover { background: var(--purple-700); }
.code-reveal.revealed .code-btn { display: none; }
.code-reveal.revealed { border-color: var(--purple-line); background: var(--purple-050); color: var(--purple); }

/* Code-less deals: the whole plate is the action. */
.deal-reveal { margin-top: 16px; }

/* ---------- Dialog ---------- */
.cf-modal-backdrop {
    position: fixed; inset: 0; z-index: 100; display: none;
    place-items: center; padding: 20px; overflow-y: auto;
    background: rgba(15, 23, 42, .55); backdrop-filter: blur(3px);
}
.cf-modal-backdrop.open { display: grid; }

.cf-modal {
    width: 100%; max-width: 560px; background: #fff; border-radius: 16px;
    text-align: center; box-shadow: 0 24px 60px rgba(15, 23, 42, .3);
    position: relative; overflow: hidden; margin-block: auto;
}
.cf-modal .close {
    position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; z-index: 2;
    display: grid; place-items: center; border: 0; border-radius: 50%;
    background: #F1F1F4; color: var(--ink-2); font-size: 20px; line-height: 1;
}
.cf-modal .close:hover { background: var(--purple-050); color: var(--purple); }

.cf-modal-body { padding: 34px 40px 30px; }

.cf-modal .m-logo {
    height: 40px; margin: 0 auto 22px;
    display: flex; align-items: center; justify-content: center;
    color: var(--ink); font-weight: 900; font-size: 20px;
}
.cf-modal .m-logo img { max-height: 40px; width: auto; object-fit: contain; }
.cf-modal .m-logo svg { width: 40px; height: 40px; border-radius: 10px; }

.cf-modal h3 { font-size: clamp(20px, 3vw, 27px); font-weight: 800; line-height: 1.3; }
.cf-modal .m-paste { margin-top: 16px; font-size: 15.5px; color: var(--ink-2); }
.cf-modal .m-paste a { color: #3B5BDB; font-weight: 600; }
.cf-modal .m-paste a:hover { text-decoration: underline; }

.m-code {
    position: relative; display: flex; align-items: center; justify-content: center;
    max-width: 430px; margin: 20px auto 0; height: 62px;
    border: 2px dashed #A8B4E8; border-radius: 8px; background: #EEF2FF;
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 26px; font-weight: 700; letter-spacing: .22em; color: var(--ink);
}
.m-code #cmCode { padding-inline: 90px 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-code button {
    position: absolute; top: -2px; bottom: -2px; right: -2px; width: 96px;
    border: 0; border-radius: 8px; background: #3B5BDB; color: #fff;
    font-family: Inter, system-ui, sans-serif; font-size: 13px; font-weight: 700;
    letter-spacing: .06em; text-transform: uppercase;
}
.m-code button:hover { background: #2F4BC4; }
.m-code button.done { background: var(--ok); }

.m-go {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
    padding: 15px 28px; border-radius: 8px;
    background: #EEF2FF; color: #3B5BDB; font-size: 16px; font-weight: 600;
}
.m-go:hover { background: #E0E7FF; }

.m-hint { margin-top: 14px; font-size: 13.5px; color: var(--muted); }

.m-vote { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 24px; font-size: 15px; color: var(--ink-2); }
.m-vote button {
    width: 42px; height: 42px; display: grid; place-items: center;
    border: 1px solid var(--line); border-radius: 50%;
    background: #fff; color: var(--body); font-size: 16px;
    transition: border-color .16s, color .16s, background-color .16s;
}
.m-vote button:hover { border-color: var(--purple); color: var(--purple); background: var(--purple-050); }
.m-vote button.picked { border-color: var(--ok); background: var(--ok-bg); color: var(--ok); }
.m-vote.voted { color: var(--ok); }

.m-details { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); text-align: left; }
.m-details h4 { font-size: 15px; font-weight: 700; color: var(--ink); }
.m-details p { margin-top: 10px; font-size: 15px; color: var(--ink-2); }
.m-details .m-expiry { margin-top: 14px; font-size: 14.5px; color: var(--ink); }
.m-details .m-expiry b { font-weight: 700; }

.cf-modal-foot { padding: 28px 40px 30px; background: #2C3A47; color: rgba(255, 255, 255, .82); }
.cf-modal-foot h4 { color: #fff; font-size: clamp(18px, 2.4vw, 24px); font-weight: 800; }
.cf-modal-foot p { margin-top: 8px; font-size: 14.5px; }
.cf-modal-foot .btn { margin-top: 18px; background: #EEF2FF; color: #3B5BDB; border-radius: 8px; padding: 13px 26px; font-size: 15px; }
.cf-modal-foot .btn:hover { background: #fff; }

@media (max-width: 620px) {
    .cf-modal-body { padding: 30px 22px 26px; }
    .cf-modal-foot { padding: 24px 22px 26px; }
    .m-code { height: 56px; font-size: 20px; letter-spacing: .14em; }
    .m-code #cmCode { padding-inline: 84px 10px; }
    .m-code button { width: 84px; }
    .code-btn { width: 72%; font-size: 12.5px; }
}

/* =========================================================================
   Coupon card + reveal control — v2
   Overrides the earlier definitions further up this file.
   ========================================================================= */

.vc-card {
    position: relative; display: flex; flex-direction: column;
    padding: 29px 27px 25px; border: 0; border-radius: 20px;
    background: #fff; box-shadow: 0 0 20px rgba(0, 0, 0, .15);
    transition: box-shadow .2s, transform .2s;
}
.vc-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(92, 24, 128, .22); }

.vc-verified {
    position: absolute; top: 24px; right: 24px;
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 12px; border-radius: 20px;
    background: var(--purple-wash); color: var(--purple);
    font-size: 12.5px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
}

.vc-head { display: flex; flex-direction: row; align-items: center; gap: 18px; }
.vc-logo {
    width: 94px; height: 94px; flex: none;
    display: grid; place-items: center; overflow: hidden;
    border: 0; border-radius: 50%; background: #fff;
    box-shadow: 0 0 8px rgba(0, 0, 0, .25);
    color: var(--purple); font-weight: 900; font-size: 26px;
}
.vc-logo img { width: 100%; height: 100%; object-fit: contain; padding: 16px; display: block; }
.vc-logo svg { width: 100%; height: 100%; object-fit: cover; display: block; }

.vc-pct { line-height: 1.05; }
.vc-num { display: block; font-size: clamp(30px, 3.4vw, 43px); font-weight: 800; color: var(--purple); letter-spacing: -.02em; }
.vc-off {
    display: block; margin-top: 5px; font-size: 13px; font-weight: 700;
    letter-spacing: 1px; text-transform: uppercase; color: #666667;
}

.vc-title {
    margin-top: 22px; min-height: 60px;
    font-size: clamp(17px, 1.6vw, 22.5px); font-weight: 700; color: var(--ink); line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.vc-title a:hover { color: var(--purple); }

.vc-exp { margin-top: 14px; text-align: center; font-size: 13px; color: #666667; display: block; }

/* ---------- The reveal control ---------- */
/* A grey track holds the code at its right edge; the purple button sits over
   the left of it with a slanted trailing edge, so the code's tail shows. */
.code-reveal {
    position: relative; display: flex; align-items: center; justify-content: flex-end;
    height: 47px; margin-top: 20px;
    border: 0; border-radius: 24px; background: #ECECF1;
    overflow: hidden;
    font-family: inherit; letter-spacing: normal; text-transform: none;
}
.code-reveal .code-text {
    padding-right: 22px; padding-left: 0;
    font-size: 15px; font-weight: 600; letter-spacing: .5px; color: #666667;
    white-space: nowrap;
}
.code-btn {
    position: absolute; top: 0; bottom: 0; left: 0; right: 43px; width: auto;
    display: flex; align-items: center; justify-content: center;
    border: 0; border-radius: 24px 0 24px 24px;
    clip-path: polygon(0 0, 100% 0, calc(100% - 16px) 100%, 0 100%);
    background: var(--purple); color: #fff;
    font-family: inherit; font-size: 15px; font-weight: 700; letter-spacing: normal;
    text-transform: none; white-space: nowrap;
    transition: background-color .18s, right .22s ease;
}
.code-reveal:hover .code-btn { right: 58px; background: var(--purple-700); }
.code-reveal.revealed .code-btn { display: none; }
.code-reveal.revealed {
    justify-content: center; background: var(--purple-wash);
    border: 2px dashed var(--purple-line);
}
.code-reveal.revealed .code-text {
    padding-right: 0; color: var(--purple); font-weight: 700;
    font-family: ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .12em;
}

/* Narrow columns (store page rail, 3-up grids) need a smaller label. */
@media (max-width: 1080px) {
    .vc-logo { width: 76px; height: 76px; }
    .vc-logo img { padding: 13px; }
    .vc-title { min-height: 52px; }
}

@media (max-width: 620px) {
    .vc-card { padding: 24px 20px 22px; }
    .vc-logo { width: 68px; height: 68px; }
    .vc-logo img { padding: 11px; }
    .code-btn { font-size: 13.5px; right: 40px; }
    .code-reveal .code-text { font-size: 13.5px; padding-right: 16px; }
}

/* ---------- Dialog: match the card's purple, not the old blue ---------- */
.cf-modal .m-brand {
    margin-top: 14px; font-size: 13px; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.cf-modal .m-logo {
    width: 108px; height: 108px; margin: 0 auto; overflow: hidden;
    display: grid; place-items: center; border-radius: 50%; background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, .16);
    color: var(--purple); font-weight: 900; font-size: 30px;
}
.cf-modal .m-logo img { max-height: none; width: 100%; height: 100%; object-fit: contain; padding: 20px; }
.cf-modal .m-logo svg { width: 100%; height: 100%; border-radius: 0; }
.cf-modal h3 { margin-top: 12px; }

.m-code {
    height: 68px; border: 2px dashed var(--purple); border-radius: 999px;
    background: #fff; padding: 0 8px 0 26px;
    justify-content: space-between; gap: 14px;
}
.m-code #cmCode {
    padding: 0; font-size: 22px; letter-spacing: .06em; font-weight: 700;
    color: var(--ink); text-align: left; flex: 1; min-width: 0;
}
.m-code button {
    position: static; width: auto; height: 50px; padding: 0 30px;
    border-radius: 999px; background: var(--purple); color: #fff;
    font-size: 14px; font-weight: 700; letter-spacing: .06em;
}
.m-code button:hover { background: var(--purple-700); }
.m-code button.done { background: var(--ok); }

.cf-modal .m-paste { margin-top: 16px; font-size: 15px; color: var(--ink-2); font-weight: 600; }
.cf-modal .m-paste a { color: var(--purple); text-decoration: underline; }

.m-go { background: var(--purple-050); color: var(--purple); border-radius: 999px; }
.m-go:hover { background: var(--purple-100); }

.m-disclosure { margin-top: 16px; font-size: 12.5px; color: var(--muted); }

@media (max-width: 620px) {
    .cf-modal .m-logo { width: 86px; height: 86px; }
    .m-code { height: 60px; padding: 0 6px 0 18px; }
    .m-code #cmCode { font-size: 17px; }
    .m-code button { height: 46px; padding: 0 20px; font-size: 13px; }
}

/* The store page's action column is narrower than a card, so the reveal
   control fills it and drops its card-spacing margin. */
.deal-cta { width: 210px; }
.deal-cta .code-reveal { width: 100%; margin-top: 0; }
.deal-cta .code-btn { right: 38px; font-size: 14px; }
.deal-cta .code-reveal:hover .code-btn { right: 52px; }
.deal-cta .code-reveal .code-text { padding-right: 16px; font-size: 14px; }

@media (max-width: 900px) {
    .deal-cta { width: 100%; }
}

/* =========================================================================
   Card title scale — one size for every coupon/store card
   The reference runs a larger title because its cards carry less around them;
   at our sizes 22px read as a heading rather than a card title.
   ========================================================================= */
.vc-title,
.dc-title,
.comp-card h3 {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.32;
    min-height: 45px;
}
.vc-title { margin-top: 20px; }

/* `.cat span` also matches the icon circle, which then picks up the label's
   top margin. Keep the label rule to the label. */
.cat .circle { margin-top: 0; }

/* =========================================================================
   Announcement bar + footer — matched to the reference
   ========================================================================= */

/* ---------- Rotating announcement bar ---------- */
.topbar { background: var(--purple); color: #fff; font-size: 13.5px; }
.topbar-carousel { position: relative; height: 38px; }
.topbar-slide {
    position: absolute; inset: 0;
    opacity: 0; visibility: hidden;
    transition: opacity .6s ease-in-out, visibility .6s;
}
.topbar-slide.is-active { opacity: 1; visibility: visible; }
.topbar-slide .wrap {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    height: 38px; padding-block: 8px;
    white-space: nowrap; overflow: hidden;
}
.topbar-slide b { font-weight: 700; }
.topbar-slide span { font-weight: 400; opacity: .95; }
.topbar-slide .cta { font-weight: 700; text-decoration: underline; }
.topbar-slide .cta:hover { text-decoration: none; }

/* A single static line is fine too — no carousel chrome needed. */
.topbar-carousel:has(.topbar-slide:only-child) .topbar-slide { position: static; opacity: 1; visibility: visible; }

/* ---------- Footer ---------- */
.site-footer { background: var(--purple); color: rgba(255, 255, 255, .85); }
.footer-top { padding-block: 50px 0; }

.footer-grid {
    display: grid; gap: 41px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 400px);
}
.footer-col h5 { color: #fff; font-size: 18.5px; font-weight: 700; margin-bottom: 18px; letter-spacing: normal; text-transform: none; }
.footer-col a { display: block; padding: 0; font-size: 14.5px; line-height: 23px; color: rgba(255, 255, 255, .85); }
.footer-col a:hover { color: #fff; text-decoration: underline; }

/* Newsletter column: white pill wrapping the field and its button. */
.footer-sub { text-align: center; }
.footer-sub form {
    display: flex; gap: 0; max-width: 472px; margin-inline: auto;
    padding: 6px; border-radius: 31px; background: #fff;
}
.footer-sub input {
    flex: 1; min-width: 0; padding: 10px 18px;
    border: 0; border-radius: 31px; background: none;
    color: var(--ink); font-size: 16px;
}
.footer-sub input::placeholder { color: var(--muted); }
.footer-sub input:focus { outline: none; }
.footer-sub button {
    flex: none; padding: 12px 27px; border: 0; border-radius: 31px;
    background: var(--purple); color: #fff; font-size: 16px; font-weight: 700;
}
.footer-sub button:hover { background: var(--purple-700); }
.footer-sub .sub-note { margin-top: 16px; font-size: 13.5px; color: rgba(255, 255, 255, .85); }

.footer-social { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }

/* Bottom band: one centred pipe-separated row, then the legal line. */
.footer-bottom {
    display: block; text-align: center;
    margin-top: 49px; padding: 29px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, .22);
    font-size: 13.5px; line-height: 24px; color: rgba(255, 255, 255, .8);
}
.footer-bottom .links { margin-bottom: 12px; }
.footer-bottom .links a { color: #fff; margin-inline: 6px; }
.footer-bottom .links a:hover { text-decoration: underline; }
.footer-bottom .links .sep { color: rgba(255, 255, 255, .45); }

@media (max-width: 1080px) {
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-sub { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
    .footer-sub form { flex-direction: column; gap: 8px; border-radius: 22px; }
    .footer-sub button { width: 100%; }
    .topbar-slide .wrap { gap: 7px; font-size: 12px; padding-inline: 12px; }
    .topbar-slide span { display: none; }
    .footer-bottom { margin-top: 32px; }
}

/* =========================================================================
   Store page headings
   Ten identical 35px slabs down one column read as noise. Smaller type, a
   small eyebrow for scanning, and the store name picked out in purple.
   ========================================================================= */
.block-head { margin-bottom: 18px; }

.block-eyebrow {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 5px 13px; margin-bottom: 12px;
    border-radius: var(--pill); background: var(--purple-050);
    color: var(--purple); font-size: 11.5px; font-weight: 800;
    letter-spacing: .1em; text-transform: uppercase;
}
.block-eyebrow i { font-size: 12px; }

.content-h2 {
    font-size: clamp(21px, 2.1vw, 29px);
    font-weight: 800; line-height: 1.25; letter-spacing: -.01em;
}
.content-h2 .hl { color: var(--purple); }

.content-sub { margin-top: 10px; font-size: 15px; color: var(--body); max-width: 720px; }

/* The FAQ block borrows .content-h2, so keep its highlight consistent. */
.faq.flush > h2 { font-size: clamp(21px, 2.1vw, 29px); }

/* =========================================================================
   Categories, contact and blog
   Built on the same tokens as the store pages: purple accents, white
   sections, soft-shadow cards, eyebrow pills.
   ========================================================================= */

/* ---------- Shared page header ---------- */
.page-head { max-width: 800px; margin-inline: auto; text-align: center; }
.page-head .block-eyebrow { margin-bottom: 14px; }
.page-head h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; letter-spacing: -.02em; }
.page-head h1 .hl { color: var(--purple); }
.page-head p { margin-top: 14px; font-size: 17px; color: var(--body); }
.page-head .storelist-search { margin-top: 26px; }

/* ---------- Category cards ---------- */
.cat-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

.cat-card {
    display: flex; flex-direction: column;
    padding: 26px; border-radius: 20px; background: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, .12);
    transition: transform .2s, box-shadow .2s;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(92, 24, 128, .2); }
.cat-card .cc-top { display: flex; align-items: center; gap: 16px; }
.cat-card .cc-icon {
    width: 60px; height: 60px; flex: none; display: grid; place-items: center;
    border-radius: 16px; font-size: 25px; color: #fff;
    background: linear-gradient(135deg, var(--purple), var(--purple-light));
}
.cat-card h3 { font-size: 19px; font-weight: 800; }
.cat-card h3 a:hover { color: var(--purple); }
.cat-card .cc-count { margin-top: 3px; font-size: 13.5px; color: var(--muted); }
.cat-card p { margin-top: 16px; font-size: 14.5px; color: var(--body);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.cc-brands { display: flex; align-items: center; margin-top: 18px; }
.cc-brands .avatar {
    width: 36px; height: 36px; margin-right: -10px; overflow: hidden;
    display: grid; place-items: center; border-radius: 50%;
    background: #fff; box-shadow: 0 0 0 2px #fff, 0 1px 4px rgba(0, 0, 0, .2);
    color: var(--purple); font-weight: 800; font-size: 12px;
}
.cc-brands .avatar img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.cc-brands .avatar svg { width: 100%; height: 100%; object-fit: cover; }
.cc-brands .more { margin-left: 18px; font-size: 13px; color: var(--muted); }

.cat-card .cc-foot {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    margin-top: auto; padding-top: 20px;
    font-size: 14px; font-weight: 700; color: var(--purple);
}
.cat-card:hover .cc-foot i { transform: translateX(4px); }
.cat-card .cc-foot i { transition: transform .18s; }

/* ---------- Category detail banner ---------- */
.cat-banner {
    display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
    padding: 34px 41px; border-radius: 25px;
    background: linear-gradient(120deg, var(--purple-700), var(--purple)); color: #fff;
}
.cat-banner-main { display: flex; align-items: center; gap: 22px; }
.cat-banner .cb-icon {
    width: 78px; height: 78px; flex: none; display: grid; place-items: center;
    border-radius: 22px; background: rgba(255, 255, 255, .16); font-size: 32px;
}
.cat-banner h1 { color: #fff; font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; }
.cat-banner p { margin-top: 8px; color: rgba(255, 255, 255, .82); max-width: 560px; font-size: 15px; }
.cat-banner .cb-stats { display: flex; gap: 14px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px; align-items: start; }

.contact-card {
    padding: 32px; border-radius: 20px; background: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, .12);
}
.contact-card h2 { font-size: 24px; font-weight: 800; }
.contact-card > p { margin-top: 10px; font-size: 15px; color: var(--body); }

.ct-form { margin-top: 22px; display: grid; gap: 16px; }
.ct-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ct-field label { display: block; margin-bottom: 7px; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.ct-field input, .ct-field select, .ct-field textarea {
    width: 100%; padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px;
    background: var(--soft); font: inherit; font-size: 15px; color: var(--ink);
}
.ct-field textarea { min-height: 150px; resize: vertical; }
.ct-field input:focus, .ct-field select:focus, .ct-field textarea:focus {
    outline: none; border-color: var(--purple); background: #fff;
}
.ct-note { font-size: 13px; color: var(--muted); }

.ct-side { display: flex; flex-direction: column; gap: 18px; }
.ct-item {
    display: flex; align-items: flex-start; gap: 15px;
    padding: 22px; border-radius: 18px; background: #fff;
    box-shadow: 0 0 16px rgba(0, 0, 0, .1);
    transition: transform .18s, box-shadow .18s;
}
a.ct-item:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(92, 24, 128, .18); }
.ct-item .ct-ico {
    width: 46px; height: 46px; flex: none; display: grid; place-items: center;
    border-radius: 14px; background: var(--purple-050); color: var(--purple); font-size: 19px;
}
.ct-item .lbl { display: block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ct-item .val { display: block; margin-top: 4px; font-size: 15.5px; font-weight: 700; color: var(--ink); word-break: break-word; }
.ct-item .val.sm { font-size: 14.5px; font-weight: 500; color: var(--ink-2); }

/* ---------- Blog ---------- */
.chip-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chip-nav a {
    padding: 9px 18px; border-radius: var(--pill);
    background: #fff; border: 1px solid var(--line);
    font-size: 13.5px; font-weight: 600; color: var(--ink-2);
    transition: background-color .18s, color .18s, border-color .18s;
}
.chip-nav a:hover { border-color: var(--purple); color: var(--purple); }
.chip-nav a.active { background: var(--purple); border-color: var(--purple); color: #fff; }

.post-lead {
    display: grid; grid-template-columns: 1.15fr 1fr; gap: 0;
    border-radius: 22px; overflow: hidden; background: #fff;
    box-shadow: 0 0 22px rgba(0, 0, 0, .13);
}
.post-lead .pl-img { min-height: 320px; background: var(--purple-050); }
.post-lead .pl-img img { width: 100%; height: 100%; object-fit: cover; }
.post-lead .pl-body { padding: 36px; display: flex; flex-direction: column; justify-content: center; }
.post-lead h2 { margin-top: 14px; font-size: clamp(23px, 2.4vw, 31px); font-weight: 800; line-height: 1.25; }
.post-lead h2 a:hover { color: var(--purple); }
.post-lead p { margin-top: 14px; font-size: 15.5px; color: var(--body); }

.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.post-card {
    display: flex; flex-direction: column; border-radius: 18px; overflow: hidden;
    background: #fff; box-shadow: 0 0 18px rgba(0, 0, 0, .11);
    transition: transform .2s, box-shadow .2s;
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(92, 24, 128, .18); }
.post-card .pc-img { aspect-ratio: 16 / 9; background: var(--purple-050); }
.post-card .pc-img img { width: 100%; height: 100%; object-fit: cover; }
.post-card .pc-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.post-card h3 { margin-top: 12px; font-size: 17px; font-weight: 700; line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card h3 a:hover { color: var(--purple); }
.post-card p { margin-top: 10px; font-size: 14px; color: var(--body);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: auto; padding-top: 16px; font-size: 12.5px; color: var(--muted); }
.post-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); }

/* ---------- Article ---------- */
.article-head { max-width: 800px; margin-inline: auto; text-align: center; }
.article-head h1 { margin-top: 16px; font-size: clamp(28px, 3.6vw, 44px); font-weight: 800; line-height: 1.2; letter-spacing: -.02em; }
.article-head .post-meta { justify-content: center; padding-top: 0; margin-top: 20px; font-size: 14px; }
.article-cover { margin-top: 32px; border-radius: 22px; overflow: hidden; background: var(--purple-050); }
.article-cover img { width: 100%; height: auto; display: block; }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; margin-top: 40px; }
.article-body { font-size: 16.5px; line-height: 1.75; color: var(--ink-2); }
.article-body > * + * { margin-top: 18px; }
.article-body h2 { margin-top: 34px; font-size: 27px; font-weight: 800; color: var(--ink); }
.article-body h3 { margin-top: 26px; font-size: 21px; font-weight: 700; color: var(--ink); }
.article-body ul, .article-body ol { padding-left: 24px; list-style: revert; }
.article-body li + li { margin-top: 8px; }
.article-body img { border-radius: 16px; }
.article-body a { color: var(--purple); font-weight: 600; text-decoration: underline; }
.article-body blockquote {
    padding: 18px 24px; border-left: 4px solid var(--purple);
    background: var(--purple-050); border-radius: 0 14px 14px 0; font-style: italic;
}
.article-body table { width: 100%; border-collapse: collapse; font-size: 15px; }
.article-body th, .article-body td { padding: 11px 14px; border: 1px solid var(--line); text-align: left; }
.article-body th { background: var(--purple-050); color: var(--ink); font-weight: 700; }

.author-box {
    display: flex; align-items: center; gap: 18px; margin-top: 40px;
    padding: 24px; border-radius: 20px; background: var(--purple-050);
}
.author-box .av {
    width: 64px; height: 64px; flex: none; overflow: hidden;
    display: grid; place-items: center; border-radius: 50%;
    background: var(--purple); color: #fff; font-weight: 800; font-size: 22px;
}
.author-box .av img { width: 100%; height: 100%; object-fit: cover; }
.author-box .lbl { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--purple); }
.author-box h4 { margin-top: 3px; font-size: 18px; font-weight: 800; }
.author-box p { margin-top: 6px; font-size: 14px; color: var(--body); }

.article-side { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 92px; }
.side-list { display: flex; flex-direction: column; gap: 16px; margin-top: 14px; }
.side-post { display: flex; gap: 13px; }
.side-post .thumb { width: 74px; height: 60px; flex: none; border-radius: 11px; overflow: hidden; background: var(--purple-050); }
.side-post .thumb img { width: 100%; height: 100%; object-fit: cover; }
.side-post h4 { font-size: 14px; font-weight: 700; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.side-post h4 a:hover { color: var(--purple); }
.side-post time { display: block; margin-top: 5px; font-size: 12px; color: var(--muted); }

/* ---------- Pagination (Bootstrap-flavoured markup, our styling) ---------- */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 40px; padding: 0; list-style: none; }
.pagination .page-item .page-link {
    display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 14px;
    border: 1px solid var(--line); border-radius: 12px;
    background: #fff; color: var(--ink-2); font-size: 14px; font-weight: 600;
    transition: background-color .16s, color .16s, border-color .16s;
}
.pagination .page-item .page-link:hover { border-color: var(--purple); color: var(--purple); }
.pagination .page-item.active .page-link { background: var(--purple); border-color: var(--purple); color: #fff; }
.pagination .page-item.disabled .page-link { opacity: .45; pointer-events: none; }
.pagination svg { width: 16px; height: 16px; }

/* ---------- Empty state ---------- */
.empty-state {
    padding: 48px 30px; border: 1px dashed var(--purple-line); border-radius: 22px;
    background: var(--purple-050); text-align: center;
}
.empty-state i { font-size: 34px; color: var(--purple); }
.empty-state h3 { margin-top: 14px; font-size: 20px; font-weight: 800; }
.empty-state p { margin-top: 8px; font-size: 15px; color: var(--body); }
.empty-state .btn { margin-top: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
    .article-layout { grid-template-columns: 1fr; }
    .article-side { position: static; flex-direction: row; flex-wrap: wrap; }
    .article-side > * { flex: 1 1 300px; }
}

@media (max-width: 1080px) {
    .cat-cards, .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .contact-grid { grid-template-columns: 1fr; }
    .post-lead { grid-template-columns: 1fr; }
    .post-lead .pl-img { min-height: 240px; aspect-ratio: 16 / 9; }
}

@media (max-width: 620px) {
    .cat-cards, .post-grid { grid-template-columns: 1fr; }
    .ct-row { grid-template-columns: 1fr; }
    .cat-banner { padding: 26px 22px; }
    .cat-banner-main { gap: 16px; }
    .cat-banner .cb-icon { width: 60px; height: 60px; font-size: 25px; }
    .cat-banner .cb-stats { width: 100%; }
    .cat-banner .cb-stats .store-stat { flex: 1; }
    .post-lead .pl-body { padding: 24px; }
    .contact-card { padding: 24px; }
    .author-box { flex-direction: column; text-align: center; }
}

/* Generated article artwork fills its frame the same way a real image would. */
.pc-img svg.gen-cover,
.pl-img svg.gen-cover,
.feature-img svg.gen-cover,
.mini-article .img svg.gen-cover,
.side-post .thumb svg.gen-cover,
.article-cover svg.gen-cover { width: 100%; height: 100%; display: block; object-fit: cover; }

.pl-img { display: block; }
.pl-img svg.gen-cover { min-height: 320px; }

/* =========================================================================
   Header at mid widths
   Six nav items plus the search field and the Advertise button no longer fit
   between ~900px and ~1300px, so shed the optional pieces before the labels
   start wrapping.
   ========================================================================= */
.nav > a, .nav-drop-btn { white-space: nowrap; }

@media (max-width: 1300px) {
    .search-mini { display: none; }
}

@media (max-width: 1200px) {
    .nav-bar { gap: 14px; }
    .nav > a, .nav-drop-btn { padding-inline: 9px; font-size: 14px; }
}

@media (max-width: 1140px) {
    /* Still reachable from the drawer and the footer. */
    .nav-right > .btn-outline { display: none; }
}

/* =========================================================================
   Coupon listing + single offer
   ========================================================================= */

/* The filter pills are anchors on the listing page and buttons on the store
   page, so give them their own box either way. */
.filter { display: inline-flex; align-items: center; gap: 7px; }
.filter i { font-size: 13px; }

/* ---------- Single offer ---------- */
.coupon-detail { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 34px; align-items: start; }

.offer-card {
    position: relative; padding: 34px 30px 30px; border-radius: 22px;
    background: #fff; box-shadow: 0 0 22px rgba(0, 0, 0, .14);
    text-align: center; position: sticky; top: 92px;
}
.offer-flag {
    position: absolute; top: 18px; right: 18px;
    padding: 5px 13px; border-radius: var(--pill);
    background: var(--purple-wash); color: var(--purple);
    font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.offer-flag.expired { background: #FEF2F2; color: #DC2626; }

.offer-logo {
    width: 96px; height: 96px; margin: 0 auto; overflow: hidden;
    display: grid; place-items: center; border-radius: 50%; background: #fff;
    box-shadow: 0 0 8px rgba(0, 0, 0, .22);
    color: var(--purple); font-weight: 900; font-size: 26px;
}
.offer-logo img { width: 100%; height: 100%; object-fit: contain; padding: 16px; }
.offer-logo svg { width: 100%; height: 100%; object-fit: cover; }

.offer-brand { margin-top: 14px; font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.offer-brand a:hover { color: var(--purple); }

.offer-disc { margin-top: 10px; font-size: 48px; font-weight: 800; line-height: 1; color: var(--purple); letter-spacing: -.02em; }
.offer-disc small { display: block; margin-top: 6px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #666667; }

.offer-card h1 { margin-top: 16px; font-size: 21px; font-weight: 700; line-height: 1.35; }

.offer-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.offer-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 12px; border-radius: var(--pill);
    background: var(--soft); color: var(--ink-2); font-size: 12.5px; font-weight: 600;
}
.offer-badge.ok { background: var(--ok-bg); color: var(--ok); }

.offer-card .code-reveal { margin-top: 22px; }
.offer-expiry {
    display: flex; align-items: center; justify-content: center; gap: 7px;
    margin-top: 14px; font-size: 13.5px; color: var(--muted);
}

.offer-info .content-block:first-child { margin-top: 0; }

@media (max-width: 1080px) {
    .coupon-detail { grid-template-columns: 1fr; }
    .offer-card { position: static; max-width: 520px; margin-inline: auto; }
}

@media (max-width: 620px) {
    .offer-card { padding: 28px 22px 26px; }
    .offer-logo { width: 80px; height: 80px; }
    .offer-disc { font-size: 40px; }
    .deals-tabs { justify-content: flex-start; }
    .filter { font-size: 13px; padding: 8px 14px; }
}

/* ---------- Footer brand row (logo, tagline, social) ---------- */
.footer-brand {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 24px;
    padding-bottom: 32px; margin-bottom: 36px;
    border-bottom: 1px solid rgba(255, 255, 255, .18);
}
.fb-id { max-width: 520px; }
/* flex:none + an explicit height, or the logo collapses: an inline-flex box
   sized by its content can't resolve an image that is sized by its box. */
.fb-logo { display: inline-flex; align-items: center; flex: none; }
.fb-logo img { max-height: 46px; width: auto; }
.fb-logo .logo-text { color: #fff; font-size: 24px; font-weight: 900; letter-spacing: -.02em; }
.fb-id p { margin-top: 10px; font-size: 14.5px; color: rgba(255, 255, 255, .82); }
.footer-brand .footer-social { margin-top: 0; }

@media (max-width: 620px) {
    .footer-brand { padding-bottom: 24px; margin-bottom: 26px; }
    .footer-brand .footer-social { width: 100%; justify-content: flex-start; }
}

/* Brand banner behind the store header, when one is uploaded. */
.store-banner { position: relative; overflow: hidden; }
.store-banner > * { position: relative; z-index: 1; }
.store-banner.has-image::before {
    content: ""; position: absolute; inset: 0; z-index: 0;
    background-image: var(--banner-img);
    background-size: cover;
    background-position: center;
    opacity: .3;
}

/* ---------- Legal / about sidebar nav ---------- */
.legal-nav { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; }
.legal-nav a {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border-radius: 11px;
    font-size: 14.5px; font-weight: 600; color: var(--ink-2);
    transition: background-color .16s, color .16s;
}
.legal-nav a i { font-size: 15px; color: var(--muted); }
.legal-nav a:hover { background: var(--purple-050); color: var(--purple); }
.legal-nav a:hover i { color: var(--purple); }
.legal-nav a.active { background: var(--purple); color: #fff; }
.legal-nav a.active i { color: #fff; }

.legal-updated {
    display: inline-flex; align-items: center; gap: 7px; margin-top: 16px;
    padding: 7px 15px; border-radius: var(--pill);
    background: var(--purple-050); color: var(--purple);
    font-size: 13.5px; font-weight: 600;
}
