/* ============================================================
   STORE-THEME.CSS — both store designs follow the active theme.

   cf-theme.css is loaded last globally and intentionally re-tints the
   whole site to a fixed CouponFollow green/gray palette. Store pages
   opt back into theme.css's light/dark tokens and the visitor's active
   accent preset. Classic uses the tokens directly; Modern maps them to
   its own --sc-* layer in store-simplycodes.css. Layout and behaviour
   stay untouched. Loaded after cf-theme.css, scoped to store pages.
   ============================================================ */

/* The highlights block stays in the store markup (never deleted) but is
   hidden on both store designs as requested. */
body.ch-store-classic .ch-cf-highlights,
body.ch-store-simplycodes .ch-cf-highlights {
    display: none !important;
}

/* Shared one-coupon picker. Modern has its own cosmetic overrides in
   store-simplycodes.css; these rules make Classic use the same behaviour
   so both designs always show exactly one numbered coupon. */
[data-single-coupon="1"] .sc-coupon-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    padding: 10px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

[data-single-coupon="1"] .sc-coupon-nav-label {
    margin-right: auto;
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

[data-single-coupon="1"] .sc-coupon-nav-count {
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

[data-single-coupon="1"] .sc-coupon-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

[data-single-coupon="1"] .sc-coupon-nav-btn,
[data-single-coupon="1"] .sc-coupon-nav-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

[data-single-coupon="1"] .sc-coupon-nav-step {
    min-width: 34px;
    width: 34px;
    padding: 0;
}

[data-single-coupon="1"] .sc-coupon-nav-btn:hover,
[data-single-coupon="1"] .sc-coupon-nav-step:hover {
    border-color: var(--text);
}

[data-single-coupon="1"] .sc-coupon-nav-step:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

[data-single-coupon="1"] .sc-coupon-nav-btn[aria-selected="true"] {
    background: var(--text);
    border-color: var(--text);
    color: var(--bg-card);
}

[data-single-coupon="1"] .ch-store-coupon {
    position: relative;
}

[data-single-coupon="1"] .ch-store-coupon.is-single-hidden,
[data-single-coupon="1"] .ch-store-coupon.is-extra-hidden,
[data-single-coupon="1"] .ch-email-strip,
[data-single-coupon="1"] #chViewMore {
    display: none !important;
}

[data-single-coupon="1"] .sc-coupon-no {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 7px;
    background: var(--text);
    border: 1px solid var(--text);
    border-radius: 8px;
    color: var(--bg-card);
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
}

/* Live counts on the type filter pills (All Types / Coupons / Deals / Sales). */
.ch-cf-typefilters .ch-filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 20px;
    padding: 0 6px;
    background: rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    color: var(--text);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.ch-cf-typefilters a.is-active .ch-filter-count {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

html:not([data-theme="dark"]) body.ch-store-simplycodes .ch-cf-typefilters .ch-filter-count,
html:not([data-theme="dark"]) body.ch-store-simplycodes .ch-cf-typefilters a.is-active .ch-filter-count {
    background: rgba(0, 0, 0, 0.08);
    color: #000;
}

html[data-theme="dark"] .ch-cf-typefilters .ch-filter-count {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text);
}

body.ch-store-classic,
body.ch-store-simplycodes {
    /* Accent ramp comes from html[data-accent] in theme.css. Only the
       supporting colours are restored here, with accent-derived borders
       so every preset (violet, blue, amber, green, ...) works. */
    --accent-2: #0891b2;
    --accent-2-light: #22d3ee;
    --accent-2-glow-soft: rgba(8, 145, 178, 0.10);

    --text: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    --bg: #f8f9fc;
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --bg-elevated: #f1f3f9;
    --bg-input: #f4f6fb;
    --bg-surface-t: rgba(255, 255, 255, 0.66);

    --border: #e2e8f0;
    --border-subtle: #f1f5f9;
    --border-accent: var(--accent-glow);

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.10);
    --shadow-glow: 0 0 30px var(--accent-glow-soft);
    --header-bg: rgba(255, 255, 255, 0.85);
    --header-border: rgba(226, 232, 240, 0.8);
    --hero-bg: linear-gradient(135deg, var(--accent-glow-soft) 0%, var(--bg-surface-t) 55%, var(--bg) 100%);
    --card-hover-shadow: 0 20px 50px var(--accent-glow-soft);

    --ok: #16a34a;
    --ok-soft: rgba(22, 163, 74, 0.10);
    --ok-border: rgba(22, 163, 74, 0.28);
    --heart: #f43f5e;
    --heart-soft: rgba(244, 63, 94, 0.08);
    --heart-border: rgba(244, 63, 94, 0.30);

    --scrollbar-track: #f1f5f9;
    --scrollbar-thumb: #cbd5e1;

    background: var(--bg);
    color: var(--text);
}

html[data-theme="dark"] body.ch-store-classic,
html[data-theme="dark"] body.ch-store-simplycodes {
    --accent-2: #22d3ee;
    --accent-2-light: #67e8f9;
    --accent-2-glow-soft: rgba(34, 211, 238, 0.10);

    --text: #fafafa;
    --text-secondary: #a1a1aa;
    --text-muted: #a1a1aa;

    --bg: #09090b;
    --bg-surface: #111113;
    --bg-card: #18181b;
    --bg-elevated: #1e1e22;
    --bg-input: #27272a;
    --bg-surface-t: rgba(17, 17, 19, 0.62);

    --border: rgba(255, 255, 255, 0.10);
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-accent: var(--accent-glow);

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px var(--accent-glow-soft);
    --header-bg: rgba(9, 9, 11, 0.82);
    --header-border: rgba(255, 255, 255, 0.08);
    --hero-bg: linear-gradient(135deg, var(--accent-glow-soft) 0%, var(--bg-surface) 60%, var(--bg) 100%);
    --card-hover-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 30px var(--accent-glow-soft);

    --ok: #4ade80;
    --ok-soft: rgba(34, 197, 94, 0.10);
    --ok-border: rgba(34, 197, 94, 0.32);
    --heart: #fb7185;
    --heart-soft: rgba(244, 63, 94, 0.10);
    --heart-border: rgba(244, 63, 94, 0.30);

    --scrollbar-track: #18181b;
    --scrollbar-thumb: #3f3f46;
}

/* cf-theme.css hardcodes a few CouponFollow-green tints. Repoint those
   surfaces at the live accent ramp while keeping the existing shapes. */
body.ch-store-classic .ch-btn-reveal .ch-btn-code,
html[data-theme="dark"] body.ch-store-classic .ch-btn-reveal .ch-btn-code {
    background: var(--accent-glow-soft);
    border-color: var(--accent);
    color: var(--text);
}

body.ch-store-classic .ch-btn-reveal:hover .ch-btn-cover,
html[data-theme="dark"] body.ch-store-classic .ch-btn-reveal:hover .ch-btn-cover {
    background: var(--accent-dark);
    color: #fff !important;
}

body.ch-store-classic .ch-proof-badge {
    background: var(--accent-glow-soft);
    border-color: var(--accent-glow);
    color: var(--accent-dark);
}

body.ch-store-classic .ch-proof-badge:hover {
    background: var(--accent-glow);
    color: var(--accent-dark);
}

body.ch-store-classic .ch-cf-faq details {
    box-shadow: var(--shadow-sm);
}

body.ch-store-classic .ch-cf-faq details:hover {
    box-shadow: var(--shadow-md);
}

body.ch-store-classic .ch-cf-faq details[open] {
    box-shadow: 0 10px 28px var(--accent-glow-soft);
}

body.ch-store-classic .ch-cf-offer {
    background: var(--bg-elevated);
}

body.ch-store-classic .ch-proof-img {
    background: var(--bg-input);
}

body.ch-store-classic .ch-cf-faq summary .fa-chevron-down {
    background: var(--accent-glow-soft);
    color: var(--accent-dark);
}

body.ch-store-classic a.ch-curator:hover,
body.ch-store-classic a.ch-curator-mini:hover {
    background: var(--accent-glow-soft);
}

body.ch-store-classic .ch-curator-card-avatar { border-color: var(--bg-card); }

body.ch-store-classic .ch-curator-card-initials {
    background: var(--accent-gradient);
    color: #fff;
}

body.ch-store-classic .ch-curator-card-name i,
body.ch-store-classic .ch-curator-card-role { color: var(--accent); }

body.ch-store-classic .ch-email-strip,
body.ch-store-classic .ch-ft-newsletter {
    background: var(--accent-glow-soft);
    border-color: var(--accent-glow);
}

body.ch-store-classic .ch-section.ch-alt {
    background: var(--bg-elevated);
}

html[data-theme="dark"] body.ch-store-classic .ch-section.ch-alt {
    background: var(--bg-surface);
}


