/*
Theme Name: Coupon Hub
Author: Your Name
Description: Custom coupon and blog theme
Version: 1.0
*/

/* ===== Design System ===== */



/* =========================
   DEFAULT THEME: DARK GREEN
========================= */
:root {
    --mag-font-display: 'Archivo Black', sans-serif;
    --mag-font-body: 'Space Grotesk', sans-serif;

    --mag-bg: #001C15;
    --mag-bg-soft: #002C21;
    --mag-card-bg: #002C21;

    --mag-text: #F9FAFD;
    --mag-text-muted: rgba(249, 250, 253, 0.72);

    --mag-border: rgba(249, 250, 253, 0.12);

    --mag-accent: #0C9B7A;
    --mag-accent-glow: rgba(12, 155, 122, 0.22);
    --mag-accent-2: #075C4A;

    --mag-gradient: linear-gradient(
        135deg,
        #075C4A 0%,
        #087F65 55%,
        #0C9B7A 100%
    );

    --mag-gradient-hover: linear-gradient(
        135deg,
        #064C3E 0%,
        #066B56 55%,
        #078568 100%
    );

    --mag-shadow: 0 10px 30px rgba(0, 0, 0, 0.30);

    --primary-color: var(--mag-accent);
    --primary-dark: #08745D;
    --dark-text: var(--mag-text);
    --gray-text: var(--mag-text-muted);
    --light-bg: var(--mag-bg-soft);
    --border-color: var(--mag-border);
}


/* =========================
   LIGHT THEME
========================= */
[data-theme="light"] {
    --mag-bg: #F8FAFC;
    --mag-bg-soft: #EFF6F3;
    --mag-card-bg: #FFFFFF;

    --mag-text: #10231F;
    --mag-text-muted: #65746F;

    --mag-border: #DDE7E2;

    --mag-accent: #0C9B7A;
    --mag-accent-glow: rgba(12, 155, 122, 0.18);
    --mag-accent-2: #075C4A;

    --mag-gradient: linear-gradient(
        135deg,
        #075C4A 0%,
        #087F65 55%,
        #0C9B7A 100%
    );

    --mag-gradient-hover: linear-gradient(
        135deg,
        #064C3E 0%,
        #066B56 55%,
        #078568 100%
    );

    --mag-shadow: 0 10px 30px rgba(7, 92, 74, 0.10);

    --primary-color: var(--mag-accent);
    --primary-dark: #08745D;
    --dark-text: var(--mag-text);
    --gray-text: var(--mag-text-muted);
    --light-bg: var(--mag-bg-soft);
    --border-color: var(--mag-border);
}


* {
    box-sizing: border-box;
}

body.mag-page {
    background: var(--mag-bg);
    color: var(--mag-text);
    font-family: var(--mag-font-body);
    transition: background 0.2s ease, color 0.2s ease;

    /* Override Bootstrap's own variables at the source so every
       Bootstrap component (cards, text-muted, forms, links) picks
       up our theme automatically instead of using Bootstrap's
       hardcoded near-black defaults. */
    --bs-body-color: var(--mag-text);
    --bs-body-bg: var(--mag-bg);
    --bs-secondary-color: var(--mag-text-muted);
    --bs-heading-color: var(--mag-text);
    --bs-card-color: var(--mag-text);
    --bs-card-bg: var(--mag-card-bg);
    --bs-card-border-color: var(--mag-border);
    --bs-link-color: var(--mag-accent);
    --bs-link-hover-color: var(--mag-accent);
    --bs-border-color: var(--mag-border);
}

a { text-decoration: none; }


/* ===== Header ===== */

.site-header {
    background: var(--mag-bg);
    border-bottom: 1px solid var(--mag-border);
}

.mag-logo {
    display: inline-flex;
    align-items: center;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 200px;

    font-family: var(--mag-font-display);
    font-size: 22px;
    letter-spacing: 1px;
    color: var(--mag-text) !important;
    text-transform: uppercase;
}

/* Header custom logo sizing */

.mag-logo .custom-logo-link {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    line-height: 1;
}

.mag-logo .custom-logo-link img.custom-logo,
.mag-logo img.custom-logo {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 160px !important;
    max-height: 48px !important;
    object-fit: contain;
}

/* Header logo for mobile screens */

@media (max-width: 768px) {
    .mag-logo {
        max-width: 160px;
    }

    .mag-logo .custom-logo-link img.custom-logo,
    .mag-logo img.custom-logo {
        max-width: 135px !important;
        max-height: 42px !important;
    }
}

.mag-nav { flex-wrap: wrap; }
.mag-nav .menu-item { display: flex; align-items: center; }
.mag-nav .menu-item:not(:last-child)::after {
    content: '—';
    color: var(--mag-border);
    margin: 0 14px;
}
.mag-nav .menu-item > a {
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: var(--mag-text-muted);
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}
.mag-nav .menu-item > a:hover,
.mag-nav .current-menu-item > a {
    color: var(--mag-text);
    border-bottom-color: var(--mag-accent);
}

.theme-toggle-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--mag-border);
    background: var(--mag-bg-soft);
    color: var(--mag-text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 15px;
    margin-left: 16px;
    flex-shrink: 0;
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.theme-toggle-btn:hover { transform: rotate(20deg); border-color: var(--mag-accent); }
.theme-icon-dark { display: none; }
[data-theme="dark"] .theme-icon-light { display: none; }
[data-theme="dark"] .theme-icon-dark { display: inline; }

/* ===== Byline ===== */
.mag-byline { font-size: 12px; text-transform: uppercase; letter-spacing: 0.4px; margin-top: 6px; }
.mag-byline-label { color: var(--mag-text-muted); margin-right: 4px; }
.mag-byline-name { color: var(--mag-accent); font-weight: 600; }

/* ===== Main Feature (hero) ===== */
.mag-feature-img {
    height: 460px;
    background-size: cover;
    background-position: center;
    background-color: var(--mag-bg-soft);
    border-left: 4px solid var(--mag-accent);
    transition: box-shadow 0.3s ease;
}
.mag-feature:hover .mag-feature-img { box-shadow: 0 0 0 4px var(--mag-accent-glow); }
.mag-feature-title { font-family: var(--mag-font-display); font-size: clamp(28px, 3.6vw, 44px); line-height: 1.15; color: var(--mag-text); margin: 0 0 16px; transition: color 0.15s ease; }
.mag-feature:hover .mag-feature-title { color: var(--mag-accent); }
.mag-feature-excerpt { color: var(--mag-text-muted); font-size: 16px; line-height: 1.7; max-width: 600px; }

/* ===== Editor's Pick Sidebar ===== */
.mag-sidebar-heading {
    font-family: var(--mag-font-display);
    font-size: 18px; text-transform: uppercase; letter-spacing: 0.5px;
    color: var(--mag-text);
    display: flex; align-items: center; gap: 10px;
    padding-bottom: 16px; border-bottom: 1px solid var(--mag-border);
    margin-bottom: 8px;
}
.mag-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mag-accent); display: inline-block; box-shadow: 0 0 0 4px var(--mag-accent-glow); }
.mag-pick-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--mag-border); transition: padding-left 0.2s ease; }
.mag-pick-row:hover { padding-left: 6px; }
.mag-pick-row:last-child { border-bottom: none; }
.mag-pick-title { font-family: var(--mag-font-body); font-weight: 700; font-size: 15.5px; color: var(--mag-text); line-height: 1.35; margin: 0; transition: color 0.15s ease; }
.mag-pick-row:hover .mag-pick-title { color: var(--mag-accent); }
.mag-pick-thumb { position: relative; width: 90px; height: 68px; flex-shrink: 0; border-radius: 8px; background-size: cover; background-position: center; background-color: var(--mag-bg-soft); overflow: hidden; }
.mag-pick-num { position: absolute; right: 2px; bottom: -14px; font-family: var(--mag-font-display); font-size: 44px; color: rgba(255,255,255,0.4); mix-blend-mode: overlay; }

/* ===== Section title + card grid ===== */
.mag-section-title { font-family: var(--mag-font-display); font-size: 22px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--mag-text); }
.mag-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mag-card {
    background: var(--mag-card-bg);
    border: 1px solid var(--mag-border);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    opacity: 0;
    animation: mag-fade-up 0.5s ease forwards;
}
.mag-card:hover { transform: translateY(-6px); box-shadow: 0 12px 28px var(--mag-accent-glow); border-color: var(--mag-accent); }
.mag-card-img { height: 170px; background-size: cover; background-position: center; background-color: var(--mag-bg-soft); }
.mag-card-body { padding: 16px 18px 18px; }
.mag-chip { display: inline-block; background: var(--mag-accent); color: #fff; font-weight: 700; font-size: 11px; letter-spacing: 0.4px; text-transform: uppercase; padding: 4px 10px; border-radius: 100px; }
.mag-chip-sm { margin-bottom: 8px; }
.mag-card-title { font-family: var(--mag-font-body); font-weight: 700; font-size: 16px; color: var(--mag-text); margin: 2px 0 4px; line-height: 1.3; }
.mag-card-excerpt { font-size: 14px; color: var(--mag-text-muted); line-height: 1.55; margin-bottom: 12px; }
.mag-meta { font-size: 13px; color: var(--mag-text-muted); }

@keyframes mag-fade-up {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
.mag-grid .mag-card:nth-child(1) { animation-delay: 0.03s; }
.mag-grid .mag-card:nth-child(2) { animation-delay: 0.09s; }
.mag-grid .mag-card:nth-child(3) { animation-delay: 0.15s; }
.mag-grid .mag-card:nth-child(4) { animation-delay: 0.21s; }
.mag-grid .mag-card:nth-child(5) { animation-delay: 0.27s; }
.mag-grid .mag-card:nth-child(6) { animation-delay: 0.33s; }

@media (max-width: 992px) { .mag-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) {
    .mag-grid { grid-template-columns: 1fr; }
    .mag-feature-img { height: 280px; }
    .mag-nav .menu-item:not(:last-child)::after { margin: 0 8px; }
}

/* ===== Buttons ===== */
.btn-deal {
    background: var(--mag-accent);
    color: #fff;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 8px;
    transition: all 0.2s ease;
    border: none;
}
.btn-deal:hover { background: var(--primary-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 20px var(--mag-accent-glow); }
.btn-category {
    display: inline-block;
    border: 1px solid var(--mag-border);
    border-radius: 50px;
    padding: 10px 22px;
    font-weight: 500;
    color: var(--mag-text);
    background: var(--mag-card-bg);
    transition: all 0.2s ease;
}
.btn-category.active, .btn-category:hover { background: var(--mag-accent); color: #fff; border-color: var(--mag-accent); }

/* ===== Store Card ===== */
.store-card { aspect-ratio: 1 / 1; border: 1px solid var(--mag-border); border-radius: 50%; background: #ffffff; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 0; transition: all 0.2s ease; }
.store-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px var(--mag-accent-glow); border-color: var(--mag-accent); }
.store-card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.store-card:hover .store-card-img { transform: scale(1.08); }
.store-card-title { text-align: center; margin: 10px 0 0; font-weight: 600; color: var(--mag-text); font-size: 0.95rem; min-height: 2.3em; }

/* ===== Coupon Card / Popup ===== */
.coupon-card { border-radius: 12px; border: 1px solid var(--mag-border); background: var(--mag-card-bg); transition: box-shadow 0.2s ease, border-color 0.2s ease; }
.coupon-card:hover { box-shadow: 0 8px 20px var(--mag-accent-glow); border-color: var(--mag-accent); }
.coupon-modal-content { border-radius: 16px; padding: 6px; background: var(--mag-card-bg); color: var(--mag-text); }
.coupon-code-box { border: 2px dashed var(--mag-accent); border-radius: 10px; padding: 12px 16px; background: var(--mag-bg-soft); }
#couponModalCode { letter-spacing: 1px; color: var(--mag-text); }
.btn-copy-code { background: var(--mag-accent); color: #fff; border: none; border-radius: 8px; padding: 6px 16px; font-weight: 700; font-size: 0.85rem; cursor: pointer; }
.btn-copy-code.copied { background: #22c55e; color: #fff; }

/* ===== Legacy section title ===== */
.section-title { font-family: var(--mag-font-display); font-weight: 400; position: relative; padding-bottom: 12px; color: var(--mag-text); text-transform: uppercase; }
.section-title::after { content: ''; position: absolute; left: 0; bottom: 0; width: 50px; height: 3px; background: var(--mag-accent); }
.hero-card { transition: transform 0.3s ease; }
.hero-card:hover { transform: scale(1.01); }
.hero-overlay { background: linear-gradient(to top, rgba(0,0,0,0.85), transparent); }

/* ===== Search ===== */
.search-input {
    border-radius: 50px !important;
    padding: 8px 16px !important;
    border: 1px solid var(--mag-border) !important;
    width: 180px;
    background: var(--mag-bg-soft) !important;
    color: var(--mag-text) !important;
}
.search-input::placeholder { color: var(--mag-text-muted) !important; opacity: 1; }
.search-input:focus { box-shadow: 0 0 0 3px var(--mag-accent-glow) !important; border-color: var(--mag-accent) !important; }
.btn-search { background: var(--mag-accent); color: #fff; border-radius: 50px; padding: 8px 16px; border: none; font-weight: 600; transition: background 0.15s ease; }
.btn-search:hover { background: var(--primary-dark); }
.search-suggestions-box { display: none; position: absolute; top: 100%; left: 0; width: 260px; background: var(--mag-card-bg); border: 1px solid var(--mag-border); border-radius: 10px; box-shadow: var(--mag-shadow); margin-top: 8px; z-index: 999; overflow: hidden; }
.suggestion-group strong { display: block; padding: 10px 16px 4px; font-size: 0.75rem; text-transform: uppercase; color: var(--mag-text-muted); }
.suggestion-item { display: block; padding: 10px 16px; color: var(--mag-text); font-size: 0.9rem; }
.suggestion-item:hover { background: var(--mag-bg-soft); color: var(--mag-accent); }

/* ===== Single Post ===== */
.single-hero-overlay { background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.1)); }
.single-content { line-height: 1.9; color: var(--mag-text); }
.single-content p { margin-bottom: 1.5rem; }
.single-content h2, .single-content h3 { margin-top: 2.5rem; margin-bottom: 1rem; font-weight: 700; }
.single-content img { border-radius: 12px; margin: 1.5rem 0; }
.author-box img { width: 70px; height: 70px; object-fit: cover; }

.copy-code-btn { font-weight: 600; cursor: pointer; }
.code-text { text-decoration: underline dashed; }


/* ===== Footer ===== */

.site-footer {
    background: linear-gradient(
        135deg,
        #001C15 0%,
        #002C21 55%,
        #075C4A 100%
    );
    color: var(--mag-text);
    border-top: 1px solid var(--mag-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1.2fr;
    gap: 40px;
}

.footer-brand {
    border-left: 3px solid var(--mag-accent);
    padding-left: 20px;
}

/* Footer text logo */

.footer-logo-text {
    font-family: var(--mag-font-display);
    text-transform: uppercase;
    font-size: 24px;
    color: #F9FAFD;
    margin-bottom: 12px;
}

/* Footer image logo sizing */

.footer-logo-img {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 210px !important;
    max-height: 70px !important;
    object-fit: contain;
    margin-bottom: 12px;
}

/* Footer headings */

.footer-heading {
    font-family: var(--mag-font-display);
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
    color: #F9FAFD;
    margin-bottom: 16px;
}

/* Footer description */

.footer-muted {
    color: rgba(249, 250, 253, 0.72);
    line-height: 1.7;
}

.footer-hr {
    border-color: rgba(249, 250, 253, 0.15);
}

/* Footer links */

.footer-link {
    color: rgba(249, 250, 253, 0.78);
    transition: color 0.15s ease;
}

.footer-link:hover {
    color: #0C9B7A;
}

/* Social links */

.footer-social-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-social-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    color: #FFFFFF;
    transition: transform 0.15s ease;
}

.footer-social-card:hover {
    transform: translateX(3px);
    color: #FFFFFF;
}

.footer-social-card i {
    font-size: 20px;
}

.footer-social-card div {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.footer-social-card .fs-name {
    font-weight: 700;
    font-size: 14px;
}

.footer-social-card .fs-sub {
    font-size: 11px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Facebook */

.footer-social-card.fb {
    background: #1877F2;
}

/* Instagram */

.footer-social-card.ig {
    background: linear-gradient(
        45deg,
        #F09433,
        #E6683C,
        #DC2743,
        #CC2366,
        #BC1888
    );
}

/* Mobile footer */

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-brand {
        border-left: none;
        padding-left: 0;
        border-top: 3px solid var(--mag-accent);
        padding-top: 16px;
    }

    .footer-logo-img {
        max-width: 175px !important;
        max-height: 60px !important;
    }
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-brand { border-left: none; padding-left: 0; border-top: 3px solid var(--mag-accent); padding-top: 16px; }
}

/* ===== Trending Now block ===== */
.mag-trending-block { background: var(--mag-accent); border-radius: 16px; padding: 32px; }
.mag-trending-heading { font-family: var(--mag-font-display); text-transform: uppercase; font-size: 20px; color: #fff; margin-bottom: 20px; }
.mag-trending-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 24px; }
.mag-trending-item { display: flex; align-items: center; gap: 12px; transition: transform 0.15s ease; }
.mag-trending-item:hover { transform: translateX(4px); }
.mag-trending-thumb { width: 52px; height: 52px; flex-shrink: 0; border-radius: 10px; background-size: cover; background-position: center; background-color: rgba(255,255,255,0.25); border: 2px solid rgba(255,255,255,0.4); }
.mag-trending-title { font-family: var(--mag-font-body); font-weight: 700; font-size: 15px; color: #fff; margin: 0; line-height: 1.35; }
.mag-byline-on-accent .mag-byline-label { color: rgba(255,255,255,0.7); }
.mag-byline-on-accent .mag-byline-name { color: #fff; }

@media (max-width: 768px) {
    .mag-trending-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
    .mag-trending-list { grid-template-columns: 1fr; }
    .mag-trending-block { padding: 22px; }
}

/* ===== Store Profile Page ===== */
.store-hero {
    background: linear-gradient(135deg, var(--mag-bg-soft) 0%, var(--mag-card-bg) 100%);
    border-bottom: 1px solid var(--mag-border);
    padding: 48px 0;
}
.store-hero-inner { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.store-hero-logo {
    width: 110px; height: 110px;
    background: #fff;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    padding: 14px;
    box-shadow: var(--mag-shadow);
    flex-shrink: 0;
}
.store-hero-logo img { width: 100%; height: 100%; object-fit: contain; }
.store-hero-title {
    font-family: var(--mag-font-display);
    font-size: clamp(22px, 3vw, 32px);
    color: var(--mag-text);
    margin: 0 0 12px;
    text-transform: uppercase;
}
.store-verified-badge {
    background: var(--mag-accent);
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 6px 14px;
    border-radius: 100px;
    display: inline-flex; align-items: center; gap: 6px;
}
.store-stat {
    color: var(--mag-text-muted);
    font-size: 13px;
    font-weight: 600;
}

.store-side-panel {
    background: var(--mag-card-bg);
    border: 1px solid var(--mag-border);
    border-radius: 14px;
    padding: 20px;
}
.store-side-heading {
    font-family: var(--mag-font-display);
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.4px;
    color: var(--mag-text);
    margin-bottom: 14px;
}
.store-side-link {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 12px;
    text-decoration: none;
    color: var(--mag-text);
    font-weight: 600;
    font-size: 14px;
    transition: color 0.15s ease, transform 0.15s ease;
}
.store-side-link:last-child { margin-bottom: 0; }
.store-side-link:hover { color: var(--mag-accent); transform: translateX(3px); }
.store-side-thumb {
    width: 38px; height: 38px;
    object-fit: contain;
    background: #fff;
    border-radius: 8px;
    padding: 4px;
    flex-shrink: 0;
}

.deal-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--mag-card-bg);
    border: 1px solid var(--mag-border);
    border-radius: 14px;
    padding: 22px;
    margin-bottom: 18px;
    flex-wrap: wrap;
    opacity: 0;
    animation: mag-fade-up 0.45s ease forwards;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    position: relative;
    overflow: hidden;
}
.deal-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: var(--mag-accent);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.25s ease;
}
.deal-card:hover {
    border-color: var(--mag-accent);
    box-shadow: 0 10px 28px var(--mag-accent-glow);
    transform: translateY(-2px);
}
.deal-card:hover::before { transform: scaleY(1); }
.deal-card-icon {
    width: 52px; height: 52px;
    border-radius: 12px;
    background: var(--mag-bg-soft);
    color: var(--mag-accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.deal-card-body { flex: 1; min-width: 220px; }
.deal-card-title {
    font-weight: 700;
    font-size: 17px;
    color: var(--mag-text);
    margin: 0 0 4px;
}
.deal-card-desc {
    color: var(--mag-text-muted);
    font-size: 13.5px;
    margin-bottom: 10px;
}
.deal-chip {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 100px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.deal-chip-ok { background: rgba(31,162,255,0.12); color: var(--mag-accent); }
.deal-chip-warn { background: rgba(251, 146, 60, 0.15); color: #fb923c; }

@media (max-width: 576px) {
    .store-hero-inner { flex-direction: column; text-align: center; }
    .deal-card { flex-direction: column; align-items: flex-start; text-align: left; }
    .deal-card .btn-deal { width: 100%; text-align: center; }
}
.breadcrumbs { background: var(--mag-bg-soft); border-bottom: 1px solid var(--mag-border); }
.breadcrumb-link { color: var(--mag-text-muted); font-size: 0.9rem; }
.breadcrumb-link:hover { color: var(--mag-accent); }
.breadcrumbs span { font-size: 0.9rem; color: var(--mag-text); }

/* ===== Static Pages ===== */
.static-page-content { line-height: 1.9; color: var(--mag-text); }
.static-page-content h2, .static-page-content h3 { margin-top: 2rem; margin-bottom: 1rem; font-weight: 700; }
.static-page-content ul, .static-page-content ol { margin-bottom: 1.5rem; padding-left: 1.5rem; }
.static-page-content p { margin-bottom: 1.25rem; }

/* ===== Pagination ===== */
.page-numbers { list-style: none; display: flex; gap: 8px; padding: 0; }
.page-numbers li a, .page-numbers li span { display: block; padding: 8px 16px; border-radius: 8px; color: var(--mag-text); border: 1px solid var(--mag-border); }
.page-numbers li span.current { background: var(--mag-accent); color: #fff; border-color: var(--mag-accent); }
.page-numbers li a:hover { background: var(--mag-bg-soft); }

/* ===== Contact Form ===== */
.contact-form .form-control { border-radius: 10px; padding: 12px 16px; border: 1px solid var(--mag-border); background: var(--mag-bg-soft); color: var(--mag-text); }
.contact-form .form-control:focus { box-shadow: none; border-color: var(--mag-accent); }

/* ===== Global safety net for any leftover default Bootstrap components ===== */
.card { background: var(--mag-card-bg) !important; color: var(--mag-text) !important; border-color: var(--mag-border) !important; }
.card-title, .card-body h1, .card-body h2, .card-body h3, .card-body h4, .card-body h5, .card-body h6,
.card-body p, .card-body a:not(.btn-category):not(.btn-deal) { color: var(--mag-text) !important; }
.text-muted, .text-dark { color: var(--mag-text-muted) !important; }
.form-control, input[type="text"], input[type="email"], input[type="search"], textarea {
    background: var(--mag-bg-soft) !important;
    color: var(--mag-text) !important;
    border-color: var(--mag-border) !important;
}
.form-control::placeholder { color: var(--mag-text-muted) !important; }
.bg-white { background: var(--mag-card-bg) !important; }

/* ===== Entrance animation + hover polish for store/coupon grids ===== */
.row.g-4 > div, .row.g-5 > div {
    opacity: 0;
    animation: mag-fade-up 0.45s ease forwards;
}
.row.g-4 > div:nth-child(1), .row.g-5 > div:nth-child(1) { animation-delay: 0.02s; }
.row.g-4 > div:nth-child(2), .row.g-5 > div:nth-child(2) { animation-delay: 0.07s; }
.row.g-4 > div:nth-child(3), .row.g-5 > div:nth-child(3) { animation-delay: 0.12s; }
.row.g-4 > div:nth-child(4) { animation-delay: 0.17s; }
.row.g-4 > div:nth-child(5) { animation-delay: 0.22s; }
.row.g-4 > div:nth-child(6) { animation-delay: 0.27s; }
.row.g-4 > div:nth-child(7) { animation-delay: 0.32s; }
.row.g-4 > div:nth-child(8) { animation-delay: 0.37s; }

.store-card-img { transition: transform 0.35s ease; }

/* Gentle glow pulse on primary CTA buttons for a bit of life without being distracting */
@keyframes mag-pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 var(--mag-accent-glow); }
    50% { box-shadow: 0 0 0 6px transparent; }
}
.btn-deal:not(:hover) { animation: mag-pulse-glow 2.4s ease-in-out infinite; }

/* ===== Mobile ===== */
@media (max-width: 768px) {
    .single-hero { height: 320px !important; }
    .single-hero h1 { font-size: 1.6rem !important; }
    .hero-card { height: 240px !important; }
    .search-input { width: 130px; }
    .navbar-collapse { padding: 16px 0; }
    .mag-nav .menu-item:not(:last-child)::after { display: none; }
    .mag-nav .menu-item { display: block; margin-bottom: 8px; }
    .author-box { flex-direction: column; text-align: center; }
    .author-box img { margin: 0 0 12px 0 !important; }
}
@media (max-width: 576px) {
    .hero-card { height: 200px !important; }
    .single-hero { height: 280px !important; }
}