/* =====================================================================
 * refresh-2026.css
 * Snaggycodes 2026 visual refresh layer — Trust Green (Honey-style).
 * Loaded AFTER main.css + custom.css + color.php so it can override.
 * Phase 1: design tokens + safe baseline (a11y, motion, font smoothing).
 * Phase 4: full component overrides (cards, buttons, mobile sticky, etc).
 * =====================================================================*/

:root {
    /* --- Brand colors (Trust Green) --- */
    --sg-primary:        #00B67A;
    --sg-primary-dark:   #009A66;
    --sg-primary-light:  #E6F8F1;

    /* --- Text --- */
    --sg-text:           #0F172A;   /* slate-900 */
    --sg-text-muted:     #475569;   /* slate-600 */
    --sg-text-soft:      #94A3B8;   /* slate-400 */

    /* --- Surfaces --- */
    --sg-bg:             #FFFFFF;
    --sg-surface:        #F8FAFC;
    --sg-border:         #E2E8F0;

    /* --- Semantic --- */
    --sg-accent:         #FACC15;   /* yellow-400 — verified / hot badge */
    --sg-danger:         #EF4444;   /* red-500 — ending soon */
    --sg-success:        #10B981;
    --sg-info:           #3B82F6;

    /* --- Radius --- */
    --sg-radius-sm:      6px;
    --sg-radius-md:      8px;       /* buttons, inputs */
    --sg-radius-lg:      12px;      /* cards */
    --sg-radius-pill:    999px;

    /* --- Shadow --- */
    --sg-shadow-sm:      0 1px 2px rgba(15, 23, 42, 0.04);
    --sg-shadow:         0 4px 12px rgba(15, 23, 42, 0.05);
    --sg-shadow-md:      0 8px 24px rgba(15, 23, 42, 0.10);
    --sg-shadow-lg:      0 16px 40px rgba(15, 23, 42, 0.12);

    /* --- Motion --- */
    --sg-ease:           cubic-bezier(0.4, 0, 0.2, 1);
    --sg-duration:       180ms;

    /* --- Tap target --- */
    --sg-tap-min:        44px;
}

/* =====================================================================
 * Baseline: font smoothing for crisp text on macOS / iOS.
 * Non-breaking — only sharpens rendering.
 * =====================================================================*/
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* =====================================================================
 * Accessibility: respect prefers-reduced-motion.
 * Disables WOW.js / animate.css / slick auto-play for users who opt out.
 * =====================================================================*/
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* =====================================================================
 * WCAG tap target minimums (44x44px).
 * Safe additive: only enforces minimum size, doesn't change layout.
 * =====================================================================*/
.fav-cta,
.addToWishList,
.modal .btn-close,
.btn-close,
button[aria-label="Close"],
.nav-toggle,
.hamburger,
.menu-toggle {
    min-width: var(--sg-tap-min);
    min-height: var(--sg-tap-min);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Ensure focus-visible ring is always visible for keyboard users */
*:focus-visible {
    outline: 2px solid var(--sg-primary);
    outline-offset: 2px;
    border-radius: var(--sg-radius-sm);
}

/* =====================================================================
 * Image rendering: prevent CLS for images that ship without dimensions
 * by giving them a sensible aspect-ratio default.
 * =====================================================================*/
img {
    max-width: 100%;
    height: auto;
}

/* =====================================================================
 * Coupon card 2026 additions (Phase 3).
 * Trust badges, used-count fire, expiry urgency chips. These layer on top
 * of the existing .coupon-card styles in main.css — no overrides yet
 * (the full card visual refresh ships in Phase 4).
 * =====================================================================*/

/* "Verified by us" trust badge, top of the card-ribbon-wrap */
.sg-card__verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    margin-top: 6px;
    background: var(--sg-primary-light);
    color: var(--sg-primary-dark);
    border-radius: var(--sg-radius-pill);
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
}
.sg-card__verified i {
    font-size: 10px;
}

/* Meta line below the title: used count + expiry urgency */
.sg-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 12px;
    font-size: 12px;
    line-height: 1.2;
}
.sg-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: var(--sg-surface);
    color: var(--sg-text-muted);
    border-radius: var(--sg-radius-pill);
    font-weight: 500;
}
.sg-meta-item i {
    font-size: 10px;
}
/* Color variants for urgency / popularity */
.sg-meta-item--used    { color: #B45309; background: #FEF3C7; }   /* amber - "hot" */
.sg-meta-item--critical{ color: #FFFFFF; background: var(--sg-danger); font-weight: 600; }
.sg-meta-item--soon    { color: #92400E; background: #FEF3C7; }
.sg-meta-item--normal  { color: var(--sg-primary-dark); background: var(--sg-primary-light); }

/* sponsored/affiliate <a rel="..."> — no visual change but keeps tap target consistent */
a[rel~="sponsored"] {
    text-decoration: none;
}

/* =====================================================================
 * PHASE 4 — Full visual refresh layer
 * Component overrides for cards, buttons, modals, breadcrumb, mobile.
 * Specificity slightly higher than main.css so these win without !important.
 *
 * Phase 6 hotfix: brand color is FORCED to Trust Green here because the
 * admin's general.base_color still ships purple. To keep admin control
 * later, change base_color in admin to #00B67A and we can soften these
 * !important rules.
 * =====================================================================*/

/* =====================================================================
 * FORCE Trust Green brand color over the legacy purple theme.
 * Overrides every spot that resolves hsl(var(--base)) or hard-coded purple.
 * =====================================================================*/
:root {
    /* These re-assign the legacy HSL custom property to Trust Green
       (130 deg = green, 100% saturation, 36% lightness ~= #00B67A).
       Anywhere main.css does hsl(var(--base)) now resolves to green. */
    --base: 158 100% 36% !important;
    --base-h: 158 !important;
    --base-s: 100% !important;
    --base-l: 36% !important;
}

/* Belt-and-braces: any hard-coded purples in legacy CSS */
.btn--base,
.btn--base:not(:hover):not(:focus) {
    background-color: var(--sg-primary) !important;
    border-color: var(--sg-primary) !important;
    color: #fff !important;
}
.btn--base:hover,
.btn--base:focus {
    background-color: var(--sg-primary-dark) !important;
    border-color: var(--sg-primary-dark) !important;
    color: #fff !important;
}
.btn--base.outline {
    background-color: transparent !important;
    border: 1px solid var(--sg-primary) !important;
    color: var(--sg-primary) !important;
}
.btn--base.outline:hover {
    background-color: var(--sg-primary) !important;
    color: #fff !important;
}
/* Active page link / brand accents */
.main-menu a.active,
.main-menu a:hover {
    color: var(--sg-primary) !important;
}
/* Pagination active */
.pagination .page-item.active .page-link {
    background: var(--sg-primary) !important;
    border-color: var(--sg-primary) !important;
}

/* "Find Your Coupon" / "Discover more" etc — same button */
a.btn,
button.btn {
    transition: background-color var(--sg-duration) var(--sg-ease),
                border-color var(--sg-duration) var(--sg-ease),
                color var(--sg-duration) var(--sg-ease);
}

/* Purple background section ("We Have a Deal for You!") — make it Trust Green */
.section-bg-base,
.bg--base,
[class*="bg-base"] {
    background-color: var(--sg-primary) !important;
}

/* ---- Coupon card: cleaner 2026 surface ---- */
.coupon-card.sg-card,
.coupon-card {
    border: 1px solid var(--sg-border);
    border-radius: var(--sg-radius-lg);
    background: var(--sg-bg);
    box-shadow: var(--sg-shadow-sm);
    padding: 18px;
    transition: transform var(--sg-duration) var(--sg-ease),
                box-shadow var(--sg-duration) var(--sg-ease);
}
.coupon-card:hover {
    /* Drop the dated scale(1.02) — felt cartoonish; lift only. */
    transform: translateY(-3px);
    box-shadow: var(--sg-shadow-md);
}
.coupon-card .card-content-wrap {
    /* Was a tinted purple panel — make it transparent so the card surface shows */
    background: transparent;
    padding: 12px 0 0;
    gap: 12px;
}
.coupon-card .card-content-wrap .card-title {
    color: var(--sg-text);
    font-size: 15px;
    line-height: 1.4;
    /* Clamp to 2 lines so cards stay even height */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 42px;
}
.coupon-card .card-content-wrap .card-action {
    color: var(--sg-text-muted);
    font-size: 12px;
    font-weight: 500;
}
.coupon-card .card-thumb {
    margin-bottom: 4px;
    width: 100%;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
}
.coupon-card .card-thumb img {
    max-width: 70%;
    max-height: 100%;
    object-fit: contain;
}
/* Wishlist button: real 44x44 tap target with hover feedback */
.coupon-card .fav-cta {
    width: var(--sg-tap-min);
    height: var(--sg-tap-min);
    border-radius: var(--sg-radius-pill);
    background: var(--sg-surface);
    border: 1px solid transparent;
    transition: background var(--sg-duration) var(--sg-ease),
                color var(--sg-duration) var(--sg-ease);
}
.coupon-card .fav-cta:hover {
    background: #FEE2E2;
    border-color: #FCA5A5;
}
.coupon-card .fav-cta .fas.fa-heart {
    color: #EF4444;
}
/* "Featured / Exclusive / Verified" badge: replace yellow tint with green pill */
.coupon-card .ex-cta {
    gap: 6px;
    padding: 5px 10px;
    border-radius: var(--sg-radius-pill);
    background: var(--sg-primary-light);
    color: var(--sg-primary-dark);
}
.coupon-card .ex-cta p {
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    margin: 0;
    color: inherit;
}
.coupon-card .ex-cta i {
    font-size: 10px;
}

/* ---- Buttons: 48px min-height, smoother transitions, mobile padding ---- */
.btn--base {
    min-height: 48px;
    padding: 12px 24px;
    border-radius: var(--sg-radius-md);
    font-weight: 600;
    transition: all var(--sg-duration) var(--sg-ease);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.btn--base:active {
    transform: scale(0.98);
}
.btn--base.btn--sm {
    min-height: 36px;
    padding: 8px 14px;
    font-size: 13px;
}
/* Override main.css aggressive hover that swapped colors on every hover */
.coupon-card .btn--base:hover,
.coupon-card .btn--base:focus {
    border-radius: var(--sg-radius-md);
}

/* ---- Search / filter inputs ---- */
.form--control {
    min-height: 44px;
    border-radius: var(--sg-radius-md);
    border: 1px solid var(--sg-border);
    transition: border-color var(--sg-duration) var(--sg-ease),
                box-shadow var(--sg-duration) var(--sg-ease);
}
.form--control:focus {
    border-color: var(--sg-primary);
    box-shadow: 0 0 0 3px var(--sg-primary-light);
    outline: none;
}

/* ---- Breadcrumb: fix the 130px desktop padding that wraps below 768px ---- */
.breadcumb {
    padding: 100px 24px 24px !important;
}
@media (min-width: 768px) {
    .breadcumb {
        padding: 110px 60px 32px !important;
    }
}
@media (min-width: 1280px) {
    .breadcumb {
        padding: 130px 110px 32px !important;
    }
}
/* coupons.blade.php intentionally hides .breadcumb__wrapper on store /
   category pages because it renders its own .seo-page-h1 (single H1 per
   page). Don't force-show here — would create duplicate H1s. Style the
   wrapper for pages that DO show it (exclusive/feature/blog/etc.). */
.breadcumb__title {
    color: #fff;
    font-size: clamp(1.5rem, 3vw + 0.5rem, 2.5rem);
    font-weight: 700;
    margin: 0 0 12px;
}
.breadcumb__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.breadcumb__item {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
}
.breadcumb__link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color var(--sg-duration) var(--sg-ease);
}
.breadcumb__link:hover {
    color: #fff;
    text-decoration: underline;
}

/* ---- Store container banner (used on coupons.blade.php) ---- */
/* Override the inline <style> block's pink/purple legacy colors. */
.store__container {
    padding: 20px !important;
    background: var(--sg-surface) !important;
    border-radius: var(--sg-radius-lg);
    border: 1px solid var(--sg-border);
}
.store__container .card-img {
    border: 1px solid var(--sg-border) !important;
    background-color: var(--sg-bg) !important;
    border-radius: var(--sg-radius-md) !important;
}
.store__container .store-img {
    border: none !important;
    background-color: transparent !important;
}
.store__container .store-content h3 {
    color: var(--sg-text);
    font-weight: 700;
}
.store__container .ratings p {
    color: var(--sg-text-muted) !important;
}
.store__container .store-verify__tag svg {
    fill: var(--sg-primary) !important;
}
@media (max-width: 575px) {
    .store__container {
        padding: 14px !important;
        flex-direction: column;
        align-items: flex-start !important;
    }
    .store__container .card-img {
        flex: 0 0 80px !important;
        height: 80px !important;
    }
}

/* ---- Modal becomes a bottom sheet on mobile ---- */
@media (max-width: 575px) {
    .modal.fade .modal-dialog {
        transform: translateY(100%);
        transition: transform 250ms var(--sg-ease);
        margin: 0;
        max-width: 100%;
        min-height: 100%;
        display: flex;
        align-items: flex-end;
    }
    .modal.show .modal-dialog {
        transform: translateY(0);
    }
    .modal .modal-content {
        border-radius: 16px 16px 0 0;
        max-height: 90vh;
        overflow-y: auto;
        width: 100%;
    }
    .modal-dialog-centered {
        align-items: flex-end !important;
        min-height: 100% !important;
    }
}

/* ---- Mobile sticky CTA (a Phase 5 component, styles live here) ---- */
.sg-mobile-cta {
    display: none;
}
@media (max-width: 768px) {
    .sg-mobile-cta {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1020;
        background: var(--sg-bg);
        border-top: 1px solid var(--sg-border);
        padding: 12px 16px env(safe-area-inset-bottom, 12px);
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.06);
    }
    .sg-mobile-cta .btn--base {
        flex: 1;
        width: 100%;
    }
    /* Add bottom padding to body so sticky CTA doesn't cover content */
    body.has-mobile-cta {
        padding-bottom: 80px;
    }
}

/* ---- Toast / notification (Sweetalert2 customization, harmless if not loaded) ---- */
.swal2-popup {
    border-radius: var(--sg-radius-lg) !important;
    font-family: inherit !important;
}
.swal2-toast {
    box-shadow: var(--sg-shadow-md) !important;
}

/* ---- Coupon listing grid: tighter on mobile ---- */
@media (max-width: 575px) {
    .row.gy-4 {
        --bs-gutter-y: 1rem;
    }
}

/* ---- Section padding overhaul (main.css uses .py-115 = 115px which is excessive on mobile) ---- */
@media (max-width: 768px) {
    .py-115,
    .pt-115 {
        padding-top: 56px !important;
        padding-bottom: 56px !important;
    }
    .pt-115 { padding-bottom: 0 !important; }
}

/* ---- Header: ensure fixed header doesn't overlap content ---- */
body {
    scroll-padding-top: 90px;
}
.header.fixed-header {
    transition: box-shadow var(--sg-duration) var(--sg-ease),
                background var(--sg-duration) var(--sg-ease);
}
.header.fixed-header.scrolled {
    box-shadow: var(--sg-shadow);
}

/* ---- Hamburger / menu toggle on mobile: real 44x44 tap target ---- */
.hamburger,
.nav-toggle,
.menu-toggle,
.mobile-menu-trigger {
    cursor: pointer;
    border-radius: var(--sg-radius-sm);
    transition: background var(--sg-duration) var(--sg-ease);
}
.hamburger:hover,
.nav-toggle:hover,
.menu-toggle:hover {
    background: var(--sg-surface);
}

/* ---- Pagination: cleaner pills ---- */
.pagination .page-item .page-link {
    border-radius: var(--sg-radius-md);
    min-width: 40px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 2px;
    border: 1px solid var(--sg-border);
}
.pagination .page-item.active .page-link {
    background: hsl(var(--base));
    border-color: hsl(var(--base));
    color: #fff;
}

/* ---- Skeleton loader utility for AJAX areas ---- */
.sg-skeleton {
    background: linear-gradient(
        90deg,
        var(--sg-surface) 25%,
        #F1F5F9 50%,
        var(--sg-surface) 75%
    );
    background-size: 200% 100%;
    animation: sg-skeleton-shimmer 1.4s infinite ease-in-out;
    border-radius: var(--sg-radius-md);
}
@keyframes sg-skeleton-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ---- Section heading helper (used by related stores, how-it-works) ---- */
.sg-section-title {
    font-size: clamp(1.25rem, 1.6vw + 0.5rem, 1.75rem);
    font-weight: 700;
    color: var(--sg-text);
    margin: 0 0 8px;
    line-height: 1.2;
}

/* ---- Related stores tile grid ---- */
.sg-related-stores {
    background: var(--sg-surface);
    border-radius: var(--sg-radius-lg);
}
.sg-related-store-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 10px;
    background: var(--sg-bg);
    border: 1px solid var(--sg-border);
    border-radius: var(--sg-radius-lg);
    text-decoration: none;
    transition: border-color var(--sg-duration) var(--sg-ease),
                box-shadow var(--sg-duration) var(--sg-ease),
                transform var(--sg-duration) var(--sg-ease);
    height: 100%;
}
.sg-related-store-tile:hover {
    border-color: var(--sg-primary);
    box-shadow: var(--sg-shadow);
    transform: translateY(-2px);
}
.sg-related-store-tile__logo {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sg-related-store-tile__logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.sg-related-store-tile__name {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--sg-text);
    text-align: center;
    line-height: 1.3;
}

/* ---- How it works 3-step strip ---- */
.sg-how-it-works {
    padding: 48px 0;
}
.sg-how-step {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 18px;
    background: var(--sg-bg);
    border: 1px solid var(--sg-border);
    border-radius: var(--sg-radius-lg);
    height: 100%;
}
.sg-how-step__num {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--sg-primary);
    color: #fff;
    border-radius: var(--sg-radius-pill);
    font-weight: 700;
    font-size: 14px;
}
.sg-how-step__body h3 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 700;
    color: var(--sg-text);
}
.sg-how-step__body p {
    margin: 0;
    color: var(--sg-text-muted);
    font-size: 13px;
    line-height: 1.5;
}

/* =====================================================================
 * Feature Stores section — the 4-up tile grid on the home page.
 * The original .coupon-card-3 layout looked broken with missing logos.
 * =====================================================================*/
.coupon-card-3 {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    padding: 20px 14px !important;
    background: var(--sg-bg) !important;
    border: 1px solid var(--sg-border) !important;
    border-radius: var(--sg-radius-lg) !important;
    box-shadow: var(--sg-shadow-sm) !important;
    transition: border-color var(--sg-duration) var(--sg-ease),
                box-shadow var(--sg-duration) var(--sg-ease),
                transform var(--sg-duration) var(--sg-ease) !important;
    text-align: center;
    height: 100%;
    min-height: 140px;
}
.coupon-card-3:hover {
    border-color: var(--sg-primary) !important;
    box-shadow: var(--sg-shadow-md) !important;
    transform: translateY(-3px) !important;
}
.coupon-card-3 .card-thumb {
    width: 80px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}
.coupon-card-3 .card-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.coupon-card-3 .title {
    color: var(--sg-text) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.coupon-card-3 .title:hover {
    color: var(--sg-primary) !important;
}
/* hide the empty <span></span> that wraps to a new line */
.coupon-card-3 > span:empty {
    display: none;
}

/* =====================================================================
 * Categories grid (Popular Categories on home).
 * Cards looked grey with tiny icons — improve spacing + add hover.
 * =====================================================================*/
.coupon-card-2 {
    background: var(--sg-bg) !important;
    border: 1px solid var(--sg-border) !important;
    border-radius: var(--sg-radius-lg) !important;
    transition: border-color var(--sg-duration) var(--sg-ease),
                box-shadow var(--sg-duration) var(--sg-ease),
                transform var(--sg-duration) var(--sg-ease) !important;
}
.coupon-card-2:hover {
    border-color: var(--sg-primary) !important;
    box-shadow: var(--sg-shadow-md) !important;
    transform: translateY(-3px) !important;
}
.coupon-card-2 .title-cat,
.coupon-card-2 .title-cat:hover {
    color: var(--sg-text) !important;
}

/* =====================================================================
 * Blog + Plan/Pricing sections — visibility on home page.
 * 2026-05-19: user wants blog visible on home, so blog rule removed.
 * Plan/pricing still hidden by default (B2C coupon site convention).
 * =====================================================================*/
.sg-how-it-works ~ section.plan-section {
    display: none !important;
}
/* Quick visual fix anyway in case admin re-enables it */
.blog-item {
    background: var(--sg-bg);
    border: 1px solid var(--sg-border);
    border-radius: var(--sg-radius-lg);
    overflow: hidden;
    transition: transform var(--sg-duration) var(--sg-ease),
                box-shadow var(--sg-duration) var(--sg-ease);
}
.blog-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--sg-shadow-md);
}
.blog-item__title {
    padding: 0 16px;
    color: var(--sg-text);
}
.blog-item__content {
    padding: 14px 16px 18px;
}

/* =====================================================================
 * Pricing / Plans section — usually hidden on B2C coupon sites.
 * To hide: ensure body has class .hide-pricing OR remove "plan" from
 * Admin -> Pages -> Home -> Sections.
 * =====================================================================*/
.hide-pricing .plan-section,
.hide-pricing section[class*="plan"] {
    display: none !important;
}

/* =====================================================================
 * Header polish — cleaner spacing, better mobile presence.
 * =====================================================================*/
.header {
    background: var(--sg-bg);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    padding: 8px 0;
}
.header .logo-normal img {
    max-height: 44px;
    width: auto;
}
.main-menu {
    gap: 4px;
}
.main-menu a {
    padding: 10px 14px;
    border-radius: var(--sg-radius-md);
    font-weight: 500;
    color: var(--sg-text-muted);
    transition: background var(--sg-duration) var(--sg-ease),
                color var(--sg-duration) var(--sg-ease);
}
.main-menu a:hover {
    background: var(--sg-surface);
}
.main-menu a.active {
    background: var(--sg-primary-light);
    color: var(--sg-primary-dark) !important;
}
.sidebar-menu-show-hide {
    cursor: pointer;
    padding: 10px;
    border-radius: var(--sg-radius-sm);
}
.sidebar-menu-show-hide:hover {
    background: var(--sg-surface);
}
/* Language dropdown styling */
.language-box select.langSel {
    padding: 6px 10px;
    border: 1px solid var(--sg-border);
    border-radius: var(--sg-radius-md);
    font-size: 13px;
    background: var(--sg-bg);
}

/* "Login" / sign-in button in header */
.menu-right-wrapper .btn,
.menu-right-wrapper a {
    text-decoration: none;
}

/* =====================================================================
 * Hero search bar — make it more prominent
 * =====================================================================*/
.hero-search-bar form,
.hero-search-bar-2 form {
    display: flex;
    gap: 8px;
    padding: 6px;
    background: var(--sg-bg);
    border: 1px solid var(--sg-border);
    border-radius: var(--sg-radius-lg);
    box-shadow: var(--sg-shadow);
    max-width: 560px;
}
.hero-search-bar input,
.hero-search-bar-2 input {
    border: none !important;
    box-shadow: none !important;
    flex: 1;
    padding: 12px 14px;
}
.hero-search-bar button,
.hero-search-bar-2 button {
    flex: 0 0 auto;
}

/* =====================================================================
 * COUPON CARD — list variant (TurboTax-style store page rows)
 * Renders one coupon per row with a big discount badge on the left,
 * title + meta in the middle, CTA on the right. Stacks on mobile.
 * =====================================================================*/
.sg-card-list-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.sg-card-list {
    display: grid;
    grid-template-columns: 110px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 18px;
    background: var(--sg-bg);
    border: 1px solid var(--sg-border);
    border-radius: var(--sg-radius-lg);
    box-shadow: var(--sg-shadow-sm);
    transition: border-color var(--sg-duration) var(--sg-ease),
                box-shadow var(--sg-duration) var(--sg-ease),
                transform var(--sg-duration) var(--sg-ease);
}
.sg-card-list:hover {
    border-color: var(--sg-primary);
    box-shadow: var(--sg-shadow-md);
    transform: translateY(-2px);
}

/* The big colored discount badge on the left */
.sg-card-list__discount {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 18px 8px;
    border-radius: var(--sg-radius-md);
    background: var(--sg-primary-light);
    color: var(--sg-primary-dark);
    min-height: 90px;
}
.sg-card-list__amount {
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
}
.sg-card-list__unit {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 4px;
    opacity: 0.85;
}
/* Color the badge differently for codes vs deals */
.sg-discount--code {
    background: var(--sg-primary-light);
    color: var(--sg-primary-dark);
}
.sg-discount--deal {
    background: #FEF3C7;
    color: #92400E;
}

/* Title + description column */
.sg-card-list__body {
    min-width: 0;
}
.sg-card-list__title {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
    color: var(--sg-text);
    line-height: 1.3;
}
.sg-card-list__desc {
    margin: 0 0 10px;
    font-size: 13px;
    color: var(--sg-text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sg-card-list__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
}

/* Right-side CTA column */
.sg-card-list__action {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    min-width: 140px;
}
.sg-card-list__cta {
    min-width: 140px;
    font-size: 14px;
}
.sg-card-list__fav {
    align-self: center;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    background: transparent !important;
    border: 1px solid var(--sg-border) !important;
    border-radius: var(--sg-radius-pill) !important;
}
.sg-card-list__fav:hover {
    background: #FEE2E2 !important;
    border-color: #FCA5A5 !important;
}

/* Mobile: stack everything */
@media (max-width: 575px) {
    .sg-card-list {
        grid-template-columns: 80px 1fr;
        grid-template-rows: auto auto;
        gap: 12px;
        padding: 14px;
    }
    .sg-card-list__discount {
        min-height: 70px;
        padding: 12px 6px;
    }
    .sg-card-list__amount {
        font-size: 20px;
    }
    .sg-card-list__action {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: center;
        min-width: 0;
    }
    .sg-card-list__cta {
        flex: 1;
    }
    .sg-card-list__fav {
        flex: 0 0 44px !important;
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
    }
}

/* =====================================================================
 * COUPON CARD — discount badge on the GRID variant too
 * Sits top-right of the card, smaller than the list variant
 * =====================================================================*/
.coupon-card.sg-card {
    position: relative;
}
.coupon-card .sg-card__discount {
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 10px;
    border-radius: var(--sg-radius-md);
    background: var(--sg-primary-light);
    color: var(--sg-primary-dark);
    line-height: 1;
    z-index: 2;
}
.coupon-card .sg-card__amount {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.01em;
}
.coupon-card .sg-card__unit {
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 2px;
    opacity: 0.85;
}
.coupon-card .sg-discount--deal {
    background: #FEF3C7;
    color: #92400E;
}

/* =====================================================================
 * RetailMeNot-style horizontal scrolling featured stores
 * =====================================================================*/
.sg-featured-stores {
    background: var(--sg-bg);
}
.sg-view-more {
    color: var(--sg-primary-dark);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}
.sg-view-more:hover {
    color: var(--sg-primary);
    text-decoration: underline;
}
.sg-store-scroller {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 8px 0 16px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.sg-store-scroller::-webkit-scrollbar {
    height: 6px;
}
.sg-store-scroller::-webkit-scrollbar-thumb {
    background: var(--sg-border);
    border-radius: var(--sg-radius-pill);
}
.sg-store-tile {
    flex: 0 0 auto;
    width: 96px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    scroll-snap-align: start;
    transition: transform var(--sg-duration) var(--sg-ease);
}
.sg-store-tile:hover {
    transform: translateY(-3px);
}
.sg-store-tile__logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--sg-bg);
    border: 1px solid var(--sg-border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 10px;
    box-shadow: var(--sg-shadow-sm);
    transition: border-color var(--sg-duration) var(--sg-ease),
                box-shadow var(--sg-duration) var(--sg-ease);
}
.sg-store-tile:hover .sg-store-tile__logo {
    border-color: var(--sg-primary);
    box-shadow: var(--sg-shadow);
}
.sg-store-tile__logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.sg-store-tile__name {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--sg-text);
    text-align: center;
    line-height: 1.2;
    /* Truncate long names */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

/* ---- Trust strip (rendered above coupon listings — Phase 5 hook) ---- */
.sg-trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 14px 18px;
    margin-bottom: 18px;
    background: var(--sg-primary-light);
    border: 1px solid #B7EFD4;
    border-radius: var(--sg-radius-lg);
    color: var(--sg-primary-dark);
    font-size: 13px;
    font-weight: 600;
}
.sg-trust-strip__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.sg-trust-strip__item i {
    font-size: 14px;
}

/* =====================================================================
 * Self-hosted Inter (TODO — Phase 4 deferred).
 * Drop the variable font into assets/font/inter/Inter.var.woff2 (download
 * from https://rsms.me/inter/download/) then uncomment the @font-face
 * block below. Removes the Google Fonts request entirely.
 *
 * @font-face {
 *     font-family: "Inter";
 *     src: url("../../font/inter/Inter.var.woff2") format("woff2-variations");
 *     font-weight: 400 700;
 *     font-display: swap;
 *     font-style: normal;
 * }
 * :root {
 *     --heading-font: "Inter", "Plus Jakarta Sans", sans-serif;
 *     --body-font:    "Inter", "Plus Jakarta Sans", sans-serif;
 * }
 * =====================================================================*/

/* =====================================================================
 * Print: hide non-essential UI when users print coupon pages.
 * =====================================================================*/
@media print {
    .cookies-card,
    .fav-cta,
    .social-list,
    .sg-mobile-cta,
    .sg-trust-strip,
    header,
    footer {
        display: none !important;
    }
    .coupon-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #000;
    }
}

/* =====================================================================
 *  PHASE 7 — COMPREHENSIVE UI POLISH
 *  Typography scale, spacing scale, header, sections, footer.
 *  Placed last so it wins on source order across the whole stylesheet.
 * =====================================================================*/

/* ---- Spacing scale (use throughout) ---- */
:root {
    --sg-space-1:  4px;
    --sg-space-2:  8px;
    --sg-space-3:  12px;
    --sg-space-4:  16px;
    --sg-space-5:  20px;
    --sg-space-6:  24px;
    --sg-space-8:  32px;
    --sg-space-10: 40px;
    --sg-space-12: 48px;
    --sg-space-16: 64px;
    --sg-space-20: 80px;
    --sg-container: 1280px;
}

/* ---- Body baseline ---- */
body {
    background: var(--sg-bg);
    color: var(--sg-text);
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
    letter-spacing: -0.005em;
}

/* ---- Typography scale ---- */
h1, .h1, .banner-title {
    font-size: clamp(1.75rem, 2.5vw + 0.75rem, 3rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-weight: 800;
    color: var(--sg-text);
    margin: 0 0 var(--sg-space-4);
}
h2, .h2, .section-title, .sg-section-title {
    font-size: clamp(1.5rem, 1.8vw + 0.5rem, 2.25rem);
    line-height: 1.2;
    letter-spacing: -0.015em;
    font-weight: 700;
    color: var(--sg-text);
    margin: 0 0 var(--sg-space-4);
}
h3, .h3 {
    font-size: clamp(1.125rem, 1vw + 0.5rem, 1.5rem);
    line-height: 1.25;
    font-weight: 700;
    color: var(--sg-text);
    margin: 0 0 var(--sg-space-3);
}
h4, .h4 {
    font-size: 1.125rem;
    line-height: 1.3;
    font-weight: 600;
    color: var(--sg-text);
    margin: 0 0 var(--sg-space-2);
}
p {
    line-height: 1.6;
    color: var(--sg-text-muted);
}
.lead, .subtitle {
    font-size: 1.125rem;
    color: var(--sg-text-muted);
    line-height: 1.55;
}
a {
    color: var(--sg-primary-dark);
    text-decoration: none;
    transition: color var(--sg-duration) var(--sg-ease);
}
a:hover {
    color: var(--sg-primary);
}

/* ---- Container width cap ---- */
.container, .container-fluid {
    max-width: var(--sg-container);
    padding-left: var(--sg-space-5);
    padding-right: var(--sg-space-5);
}
@media (min-width: 768px) {
    .container, .container-fluid {
        padding-left: var(--sg-space-8);
        padding-right: var(--sg-space-8);
    }
}

/* =====================================================================
 *  HEADER — modern, cleaner spacing, prominent search
 * =====================================================================*/
.header-main-area,
.header,
#header,
header.header {
    background: var(--sg-bg) !important;
    border-bottom: 1px solid var(--sg-border);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}
.header {
    padding: 12px 0 !important;
    min-height: 68px;
}
.header-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: var(--sg-space-6);
    width: 100%;
}
.header .logo-wrapper {
    flex: 0 0 auto;
}
.header .logo-normal img,
.header .normal-logo img {
    max-height: 40px !important;
    width: auto !important;
    display: block;
}
.menu-wrapper {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
}
.main-menu {
    display: flex;
    align-items: center;
    gap: var(--sg-space-1);
    margin: 0;
    padding: 0;
    list-style: none;
}
.main-menu li {
    list-style: none;
}
.main-menu a {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px !important;
    border-radius: var(--sg-radius-md);
    font-size: 14px;
    font-weight: 500;
    color: var(--sg-text-muted) !important;
    text-decoration: none;
    transition: background var(--sg-duration) var(--sg-ease),
                color var(--sg-duration) var(--sg-ease);
}
.main-menu a:hover {
    background: var(--sg-surface);
    color: var(--sg-text) !important;
}
.main-menu a.active,
.main-menu .active a {
    background: var(--sg-primary-light) !important;
    color: var(--sg-primary-dark) !important;
    font-weight: 600;
}
.menu-right-wrapper {
    flex: 0 0 auto;
}
.menu-right-wrapper > ul {
    display: flex;
    align-items: center;
    gap: var(--sg-space-3);
    margin: 0;
    padding: 0;
    list-style: none;
}
.menu-right-wrapper li {
    list-style: none;
}
.language-box select.langSel {
    padding: 6px 28px 6px 12px !important;
    border: 1px solid var(--sg-border) !important;
    border-radius: var(--sg-radius-md) !important;
    background: var(--sg-bg);
    font-size: 13px;
    color: var(--sg-text);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%23475569' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
}
.sidebar-menu-show-hide {
    display: none;
    cursor: pointer;
    padding: 10px;
    border-radius: var(--sg-radius-md);
    font-size: 22px;
    color: var(--sg-text);
}
.sidebar-menu-show-hide:hover {
    background: var(--sg-surface);
}
@media (max-width: 991px) {
    .menu-wrapper { display: none !important; }
    .sidebar-menu-show-hide { display: inline-flex !important; }
}

/* =====================================================================
 *  HERO — bigger headline, calmer subtitle, prominent search
 * =====================================================================*/
.hero,
.hero.three,
.hero-2 {
    padding: var(--sg-space-16) 0 var(--sg-space-12);
}
@media (min-width: 992px) {
    .hero,
    .hero.three,
    .hero-2 {
        padding: var(--sg-space-20) 0;
    }
}
.hero-content .subtitle,
.hero-left-content2 .subtitle,
.hero-content-2 .subtitle {
    color: var(--sg-primary-dark);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: var(--sg-space-3);
}
.banner-title {
    margin-bottom: var(--sg-space-4);
}
.short-descriptions {
    color: var(--sg-text-muted);
    font-size: 1.0625rem;
    line-height: 1.6;
    margin-bottom: var(--sg-space-6);
    max-width: 540px;
}
.grp-btn {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sg-space-3);
}
.hero-grp-counter {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sg-space-8);
    margin-top: var(--sg-space-6);
}
.counter-wrap h6 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--sg-text);
    margin: 0;
    letter-spacing: -0.02em;
}
.counter-wrap p {
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--sg-text-soft);
    margin: 4px 0 0;
    font-weight: 600;
}

/* =====================================================================
 *  SECTION SPACING — consistent, calmer than the old .py-115 mess
 * =====================================================================*/
section {
    padding-top: var(--sg-space-12);
    padding-bottom: var(--sg-space-12);
}
@media (min-width: 992px) {
    section { padding-top: var(--sg-space-16); padding-bottom: var(--sg-space-16); }
}
/* Override the legacy .py-115 mass-application */
.py-115     { padding-top: var(--sg-space-12) !important; padding-bottom: var(--sg-space-12) !important; }
.pt-115     { padding-top: var(--sg-space-12) !important; }
.pb-115     { padding-bottom: var(--sg-space-12) !important; }
@media (min-width: 992px) {
    .py-115 { padding-top: var(--sg-space-16) !important; padding-bottom: var(--sg-space-16) !important; }
    .pt-115 { padding-top: var(--sg-space-16) !important; }
    .pb-115 { padding-bottom: var(--sg-space-16) !important; }
}

/* Section heading row (title + "View all" link, used across home sections) */
.section-content .title-wrap,
.title-wrap {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: var(--sg-space-4);
    margin-bottom: var(--sg-space-6);
}
.title-wrap > a {
    color: var(--sg-primary-dark);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}
.title-wrap > a:hover {
    color: var(--sg-primary);
    text-decoration: underline;
}
.section-title {
    margin: 0 !important;
}

/* =====================================================================
 *  CARD CONSISTENCY — every card type uses the same radius/shadow
 * =====================================================================*/
.coupon-card,
.coupon-card-2,
.coupon-card-3,
.sg-card-list,
.blog-item,
.sg-how-step,
.sg-related-store-tile {
    border-radius: var(--sg-radius-lg) !important;
}

/* =====================================================================
 *  FOOTER — clean, 4-column, brand-aware
 * =====================================================================*/
footer,
.footer-section,
.footer {
    background: #0F172A !important;
    color: rgba(255,255,255,0.85);
    padding-top: var(--sg-space-16);
    padding-bottom: var(--sg-space-8);
}
footer a,
.footer-section a,
.footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color var(--sg-duration) var(--sg-ease);
}
footer a:hover,
.footer-section a:hover,
.footer a:hover {
    color: #fff;
}
footer h4, footer h5, footer .footer-title,
.footer-section h4, .footer-section h5,
.footer h4, .footer h5 {
    color: #fff !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: var(--sg-space-4) !important;
}
footer ul, .footer ul, .footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--sg-space-2);
}
footer hr, .footer hr {
    border-color: rgba(255,255,255,0.1);
    margin: var(--sg-space-6) 0;
}
.footer-bottom,
.copyright-area {
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    text-align: center;
    padding-top: var(--sg-space-4);
    border-top: 1px solid rgba(255,255,255,0.08);
}

/* =====================================================================
 *  TRUST STRIP — already styled, just tighter on home
 * =====================================================================*/
.sg-trust-strip {
    padding: var(--sg-space-3) var(--sg-space-5);
    margin: var(--sg-space-3) 0;
    font-size: 13px;
    border-radius: var(--sg-radius-md);
}

/* =====================================================================
 *  PAGINATION — center align + gap
 * =====================================================================*/
.pagination {
    justify-content: center;
    gap: var(--sg-space-1);
    flex-wrap: wrap;
}

/* =====================================================================
 *  ADS / BANNERS — neutralize random colored backgrounds
 * =====================================================================*/
.long-add-wrap,
.sidebar-add-wrap,
.breadcrumb-long-add-wrap {
    background: transparent !important;
}

/* =====================================================================
 *  COUPON CARD (grid) — let the discount badge breathe over the logo
 * =====================================================================*/
.coupon-card .card-ribbon-wrap {
    margin-bottom: var(--sg-space-2);
}
.coupon-card .card-content-wrap {
    margin-top: var(--sg-space-3);
}

/* =====================================================================
 *  STORE BANNER (.store__container) — refresh the inline-styled mess
 * =====================================================================*/
.store__container {
    margin: var(--sg-space-6) 0 var(--sg-space-4) !important;
    gap: var(--sg-space-5) !important;
    padding: var(--sg-space-5) !important;
}
.store__container .ratings p {
    margin: 0 !important;
    font-size: 13px !important;
    color: var(--sg-text-muted) !important;
}

/* =====================================================================
 *  CATEGORY HEADER (when on /category/coupons/{id})
 * =====================================================================*/
.category-header {
    background: var(--sg-primary-light) !important;
    border-color: #B7EFD4 !important;
}
.category-header .store-display-heading {
    color: var(--sg-primary-dark) !important;
}

/* =====================================================================
 *  HOW-IT-WORKS, RELATED STORES, FAQ — uniform top spacing
 * =====================================================================*/
.sg-how-it-works,
.sg-related-stores,
.sg-featured-stores,
.seo-faq-section {
    padding-top: var(--sg-space-12);
    padding-bottom: var(--sg-space-12);
}

/* =====================================================================
 *  MOBILE TIGHTENING
 * =====================================================================*/
@media (max-width: 575px) {
    .container, .container-fluid {
        padding-left: var(--sg-space-4);
        padding-right: var(--sg-space-4);
    }
    section,
    .sg-how-it-works,
    .sg-related-stores,
    .sg-featured-stores,
    .seo-faq-section {
        padding-top: var(--sg-space-8);
        padding-bottom: var(--sg-space-8);
    }
    .header {
        padding: 8px 0 !important;
        min-height: 56px;
    }
    .header .logo-normal img,
    .header .normal-logo img {
        max-height: 32px !important;
    }
    .title-wrap {
        flex-direction: row !important;
        align-items: center;
    }
    .grp-btn .btn--base {
        flex: 1 1 auto;
    }
}

/* =====================================================================
 *  PHASE 8 — FULL VISUAL POLISH
 *  Forms, buttons all variants, modals, accordion, tabs, sidebar, hero,
 *  animations, micro-interactions. Final pass.
 * =====================================================================*/

/* =====================================================================
 *  GLOBAL CONTROLS
 * =====================================================================*/

/* Smooth scrolling for in-page anchors */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Subtle background pattern lift (very light slate dots, almost invisible) */
body {
    background:
        radial-gradient(circle at 1px 1px, rgba(15, 23, 42, 0.02) 1px, transparent 0) 0 0 / 24px 24px,
        var(--sg-bg);
}

/* Selection */
::selection {
    background: var(--sg-primary);
    color: #fff;
}

/* =====================================================================
 *  BUTTONS — every variant, every size, polished
 * =====================================================================*/
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid transparent;
    border-radius: var(--sg-radius-md);
    padding: 12px 20px;
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    transition: background-color var(--sg-duration) var(--sg-ease),
                border-color var(--sg-duration) var(--sg-ease),
                color var(--sg-duration) var(--sg-ease),
                box-shadow var(--sg-duration) var(--sg-ease),
                transform var(--sg-duration) var(--sg-ease);
    text-decoration: none;
    user-select: none;
    white-space: nowrap;
}
.btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--sg-primary-light), 0 0 0 4px var(--sg-primary);
}
.btn:active {
    transform: scale(0.98);
}

/* Primary (.btn--base) — already overridden, just refine */
.btn--base {
    background: var(--sg-primary) !important;
    border-color: var(--sg-primary) !important;
    color: #fff !important;
    box-shadow: 0 1px 2px rgba(0, 182, 122, 0.15);
}
.btn--base:hover,
.btn--base:focus {
    background: var(--sg-primary-dark) !important;
    border-color: var(--sg-primary-dark) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(0, 182, 122, 0.25);
    transform: translateY(-1px);
}
.btn--base:active { transform: translateY(0) scale(0.98); }

/* Outline */
.btn--base.outline,
.btn-outline {
    background: transparent !important;
    border-color: var(--sg-primary) !important;
    color: var(--sg-primary) !important;
    box-shadow: none;
}
.btn--base.outline:hover {
    background: var(--sg-primary-light) !important;
    color: var(--sg-primary-dark) !important;
    border-color: var(--sg-primary) !important;
}

/* Ghost / link */
.btn-ghost, .btn--link, .btn-link {
    background: transparent;
    border-color: transparent;
    color: var(--sg-primary-dark);
}
.btn-ghost:hover, .btn--link:hover, .btn-link:hover {
    background: var(--sg-surface);
    color: var(--sg-primary);
}

/* Sizes */
.btn--sm, .btn-sm {
    padding: 8px 14px;
    font-size: 13px;
    border-radius: var(--sg-radius-sm);
    min-height: 36px;
}
.btn--lg, .btn-lg {
    padding: 16px 28px;
    font-size: 16px;
    border-radius: var(--sg-radius-md);
    min-height: 54px;
}

/* Icon-only buttons */
.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--sg-radius-pill);
    flex: 0 0 auto;
}

/* Pill variant */
.btn--pill, .btn.pill {
    border-radius: var(--sg-radius-pill);
}

/* Disabled */
.btn:disabled, .btn.disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* =====================================================================
 *  FORM CONTROLS — inputs, textareas, selects, checkboxes, radios
 * =====================================================================*/
input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="search"], input[type="tel"],
input[type="url"], input[type="date"], textarea, select,
.form-control, .form--control, .form-select {
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    background: var(--sg-bg);
    border: 1px solid var(--sg-border);
    border-radius: var(--sg-radius-md);
    color: var(--sg-text);
    font-size: 15px;
    line-height: 1.4;
    transition: border-color var(--sg-duration) var(--sg-ease),
                box-shadow var(--sg-duration) var(--sg-ease),
                background-color var(--sg-duration) var(--sg-ease);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}
input:focus, textarea:focus, select:focus,
.form-control:focus, .form--control:focus, .form-select:focus {
    outline: none;
    border-color: var(--sg-primary) !important;
    box-shadow: 0 0 0 3px var(--sg-primary-light), 0 1px 2px rgba(15, 23, 42, 0.05) !important;
}
input::placeholder, textarea::placeholder {
    color: var(--sg-text-soft);
}
textarea { min-height: 100px; resize: vertical; }

/* Form groups + labels */
.form-group, .form--group {
    margin-bottom: var(--sg-space-4);
}
.form-group label, .form--group label, label.form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--sg-text);
}
label.required::after, .required > label::after {
    content: ' *';
    color: var(--sg-danger);
}

/* Custom checkboxes / radios — Bootstrap 5-friendly */
.form-check, .form--check, .check-item, .check-item-stores {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--sg-radius-md);
    transition: background var(--sg-duration) var(--sg-ease);
    cursor: pointer;
}
.form-check:hover, .form--check:hover, .check-item:hover, .check-item-stores:hover {
    background: var(--sg-surface);
}
.form-check-input {
    appearance: none;
    width: 18px;
    height: 18px;
    margin: 0;
    background: var(--sg-bg);
    border: 1.5px solid var(--sg-border);
    border-radius: 5px;
    cursor: pointer;
    transition: all var(--sg-duration) var(--sg-ease);
    flex: 0 0 auto;
    position: relative;
}
.form-check-input[type="radio"] {
    border-radius: 50%;
}
.form-check-input:checked {
    background: var(--sg-primary);
    border-color: var(--sg-primary);
}
.form-check-input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 5px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.form-check-input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
}
.form-check-input:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--sg-primary-light);
}
.form-check-label {
    margin: 0 !important;
    cursor: pointer;
    font-size: 14px !important;
    color: var(--sg-text-muted) !important;
    font-weight: 500;
}
.form-check:has(.form-check-input:checked) .form-check-label,
.form--check:has(.form-check-input:checked) .form-check-label {
    color: var(--sg-text) !important;
    font-weight: 600;
}

/* Search box (sidebar) */
.section-search-box form {
    position: relative;
}
.section-search-box .form--control {
    padding-right: 44px;
}
.section-search-box button {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: var(--sg-primary);
    color: #fff;
    border: none;
    border-radius: var(--sg-radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--sg-duration) var(--sg-ease);
}
.section-search-box button:hover {
    background: var(--sg-primary-dark);
}

/* =====================================================================
 *  SIDEBAR FILTERS — cleaner stacks
 * =====================================================================*/
.side-bar-wrap {
    background: var(--sg-bg);
    border: 1px solid var(--sg-border);
    border-radius: var(--sg-radius-lg);
    padding: var(--sg-space-5);
}
.category-box {
    padding: 0 !important;
}
.category-box .categories {
    padding: var(--sg-space-4) 0;
    border-bottom: 1px solid var(--sg-border);
}
.category-box .categories:last-child { border-bottom: none; padding-bottom: 0; }
.category-box .categories:first-child { padding-top: 0; }
.category-box .title,
.category-box h6.title {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: var(--sg-text) !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: var(--sg-space-3) !important;
}
.category-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.show-more-button, .show-more-button-stores {
    margin-top: var(--sg-space-2) !important;
    align-self: flex-start;
}

/* =====================================================================
 *  HERO — refined, prominent search, calmer background
 * =====================================================================*/
.hero, .hero.three, .hero-2, .hero-3 {
    background: linear-gradient(
        180deg,
        var(--sg-primary-light) 0%,
        var(--sg-bg) 100%
    );
    overflow: hidden;
    position: relative;
}
.hero::before {
    content: '';
    position: absolute;
    top: -120px; right: -120px;
    width: 360px; height: 360px;
    background: radial-gradient(circle, rgba(0, 182, 122, 0.08), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }

/* Hero search bar — card style, prominent */
.hero-search-bar form,
.hero-search-bar-2 form {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px;
    background: var(--sg-bg);
    border: 1px solid var(--sg-border);
    border-radius: var(--sg-radius-pill);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    max-width: 600px;
    margin: var(--sg-space-3) 0;
}
.hero-search-bar input,
.hero-search-bar-2 input {
    flex: 1;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 12px 18px;
    font-size: 15px;
    min-height: 40px;
}
.hero-search-bar input:focus,
.hero-search-bar-2 input:focus {
    box-shadow: none !important;
}
.hero-search-bar .search-btn,
.hero-search-bar-2 .search-btn {
    border-radius: var(--sg-radius-pill) !important;
    min-height: 44px;
    padding: 10px 22px;
    flex: 0 0 auto;
}
.hero-search-bar .search-btn i { margin-right: 4px; }

/* =====================================================================
 *  MODAL — cleaner, smaller, padded
 * =====================================================================*/
.modal-content {
    border: none;
    border-radius: var(--sg-radius-lg);
    box-shadow: 0 25px 70px rgba(15, 23, 42, 0.2);
    overflow: hidden;
}
.modal .btn-wrap {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
}
.modal .btn-wrap button {
    width: 36px;
    height: 36px;
    background: var(--sg-surface);
    border: none;
    border-radius: var(--sg-radius-pill);
    color: var(--sg-text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background var(--sg-duration) var(--sg-ease);
}
.modal .btn-wrap button:hover {
    background: var(--sg-border);
    color: var(--sg-text);
}
.modal-body {
    padding: var(--sg-space-8) var(--sg-space-6) !important;
}
.modal .logo-thumb {
    text-align: center;
    margin-bottom: var(--sg-space-4);
}
.modal .logo-thumb img {
    max-width: 100px;
    max-height: 60px;
    object-fit: contain;
}
.modal .title {
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--sg-text);
    margin: 0 0 var(--sg-space-3);
}
.modal .storeTitle {
    text-align: center;
    font-size: 14px;
    color: var(--sg-text-muted);
    margin-bottom: var(--sg-space-4);
}
.modal .copy-code-input {
    display: flex;
    gap: 6px;
    padding: 6px;
    background: var(--sg-surface);
    border: 1.5px dashed var(--sg-primary);
    border-radius: var(--sg-radius-md);
    margin-bottom: var(--sg-space-4);
}
.modal .copy-code-input .form--control {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    font-weight: 700;
    color: var(--sg-text);
    font-size: 16px;
    letter-spacing: 0.05em;
    text-align: center;
}
.modal .copy-btn {
    flex: 0 0 auto;
    padding: 10px 16px;
    min-height: 40px;
}
.modal .qr-thumb {
    text-align: center;
    color: var(--sg-text-muted);
    font-size: 13px;
    margin-bottom: var(--sg-space-4);
}
.modal .social-wrapper {
    text-align: center;
    padding-top: var(--sg-space-4);
    border-top: 1px solid var(--sg-border);
}
.modal .social-list {
    display: inline-flex;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.modal .social-list__link {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    background: var(--sg-surface);
    color: var(--sg-text-muted);
    border-radius: var(--sg-radius-pill);
    transition: all var(--sg-duration) var(--sg-ease);
}
.modal .social-list__link:hover {
    background: var(--sg-primary);
    color: #fff;
}

/* =====================================================================
 *  ACCORDION — for FAQ
 * =====================================================================*/
.accordion-item, .seo-faq-item {
    border: 1px solid var(--sg-border) !important;
    border-radius: var(--sg-radius-lg) !important;
    margin-bottom: var(--sg-space-3) !important;
    overflow: hidden;
    background: var(--sg-bg);
    transition: border-color var(--sg-duration) var(--sg-ease),
                box-shadow var(--sg-duration) var(--sg-ease);
}
.accordion-item:has(.accordion-button:not(.collapsed)) {
    border-color: var(--sg-primary) !important;
    box-shadow: 0 4px 12px rgba(0, 182, 122, 0.06);
}
.accordion-button {
    padding: var(--sg-space-4) var(--sg-space-5) !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: var(--sg-text) !important;
    background: var(--sg-bg) !important;
    border: none !important;
    box-shadow: none !important;
}
.accordion-button:not(.collapsed) {
    background: var(--sg-primary-light) !important;
    color: var(--sg-primary-dark) !important;
}
.accordion-button:focus {
    box-shadow: 0 0 0 3px var(--sg-primary-light) inset !important;
    border-color: var(--sg-primary) !important;
}
.accordion-button::after {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'><path d='M3 5l4 4 4-4' stroke='%23475569' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") !important;
    background-size: 14px !important;
    transition: transform var(--sg-duration) var(--sg-ease);
}
.accordion-body {
    padding: var(--sg-space-4) var(--sg-space-5) var(--sg-space-5) !important;
    color: var(--sg-text-muted) !important;
    font-size: 14px;
    line-height: 1.65;
    background: var(--sg-bg);
}

/* =====================================================================
 *  TABS / NAV PILLS — for store page filter tabs (future)
 * =====================================================================*/
.nav-pills, .nav-tabs {
    border-bottom: 1px solid var(--sg-border);
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    padding: 0;
    margin-bottom: var(--sg-space-4);
}
.nav-pills .nav-link,
.nav-tabs .nav-link {
    padding: 10px 16px !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    border-bottom: 2px solid transparent !important;
    color: var(--sg-text-muted) !important;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: -1px;
    transition: all var(--sg-duration) var(--sg-ease);
}
.nav-pills .nav-link:hover,
.nav-tabs .nav-link:hover {
    color: var(--sg-text) !important;
}
.nav-pills .nav-link.active,
.nav-tabs .nav-link.active {
    color: var(--sg-primary-dark) !important;
    border-bottom-color: var(--sg-primary) !important;
    background: transparent !important;
}

/* =====================================================================
 *  TOASTS / SweetAlert / Notify
 * =====================================================================*/
.swal2-popup {
    border-radius: var(--sg-radius-lg) !important;
    padding: var(--sg-space-5) !important;
    font-family: inherit !important;
    box-shadow: 0 25px 50px rgba(15, 23, 42, 0.15) !important;
}
.swal2-toast {
    padding: var(--sg-space-3) var(--sg-space-4) !important;
}
.swal2-title {
    color: var(--sg-text) !important;
    font-size: 16px !important;
    font-weight: 700 !important;
}
.swal2-success-ring,
.swal2-success [class*="swal2-success-line"] { background: var(--sg-primary) !important; border-color: var(--sg-primary) !important; }
.swal2-confirm.swal2-styled {
    background: var(--sg-primary) !important;
    border-radius: var(--sg-radius-md) !important;
    font-weight: 600;
}

/* Notification badge (corner pill) */
.cookies-card {
    background: var(--sg-text) !important;
    color: rgba(255,255,255,0.92) !important;
    padding: var(--sg-space-4) var(--sg-space-5) !important;
    border-radius: var(--sg-radius-lg) !important;
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
}
.cookies-card .policy,
.cookies-card a {
    color: var(--sg-primary) !important;
    font-weight: 600;
}

/* =====================================================================
 *  WISHLIST HEART — bounce animation when filled
 * =====================================================================*/
@keyframes sg-heart-pop {
    0%   { transform: scale(1); }
    35%  { transform: scale(1.35); }
    65%  { transform: scale(0.92); }
    100% { transform: scale(1); }
}
.fav-cta .fas.fa-heart {
    animation: sg-heart-pop 380ms var(--sg-ease);
}
.fav-cta {
    transition: background var(--sg-duration) var(--sg-ease),
                border-color var(--sg-duration) var(--sg-ease);
}

/* =====================================================================
 *  IMAGE FADE-IN ON LOAD
 * =====================================================================*/
img[loading="lazy"] {
    opacity: 1;
    transition: opacity 250ms var(--sg-ease);
}

/* =====================================================================
 *  BACK-TO-TOP (CSS-only, scroll-driven via :target / :hover)
 *  Markup needed in footer: <a href="#top" class="sg-back-to-top" aria-label="Back to top"><i class="fas fa-arrow-up"></i></a>
 * =====================================================================*/
.sg-back-to-top {
    position: fixed;
    bottom: var(--sg-space-5);
    right: var(--sg-space-5);
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--sg-primary);
    color: #fff !important;
    border-radius: var(--sg-radius-pill);
    box-shadow: var(--sg-shadow-md);
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity var(--sg-duration) var(--sg-ease),
                transform var(--sg-duration) var(--sg-ease),
                background var(--sg-duration) var(--sg-ease);
    z-index: 1000;
}
.sg-back-to-top:hover {
    background: var(--sg-primary-dark);
    transform: translateY(0) scale(1.05);
}
body.has-mobile-cta .sg-back-to-top {
    bottom: 90px;
}

/* =====================================================================
 *  EMPTY STATE
 * =====================================================================*/
.empty-state, p.text-center.h4, p.text-center:only-child {
    padding: var(--sg-space-12) var(--sg-space-4);
    color: var(--sg-text-soft);
    font-size: 16px;
    text-align: center;
}

/* =====================================================================
 *  TABLES (admin / reports)
 * =====================================================================*/
table.table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    background: var(--sg-bg);
    border-radius: var(--sg-radius-lg);
    overflow: hidden;
    border: 1px solid var(--sg-border);
}
table.table th {
    background: var(--sg-surface);
    color: var(--sg-text);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 12px 16px;
    border-bottom: 1px solid var(--sg-border);
}
table.table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--sg-border);
    color: var(--sg-text-muted);
    font-size: 14px;
}
table.table tr:last-child td {
    border-bottom: none;
}
table.table tr:hover td {
    background: var(--sg-surface);
}

/* =====================================================================
 *  COUPON CARD — refined hover, smoother shadow
 * =====================================================================*/
.coupon-card {
    cursor: default;
    position: relative;
}
.coupon-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    border-color: var(--sg-primary-light);
}
.coupon-card .btn--base {
    margin-top: var(--sg-space-2);
}

/* Discount badge on grid card — bigger, more prominent */
.coupon-card .sg-card__discount {
    top: 12px;
    right: 12px;
    padding: 8px 12px;
    box-shadow: 0 2px 6px rgba(0, 182, 122, 0.15);
}
.coupon-card .sg-card__amount {
    font-size: 18px;
}

/* List card — refined hover */
.sg-card-list:hover {
    transform: translateY(-2px);
    border-color: var(--sg-primary-light);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

/* =====================================================================
 *  FOCUS TRAP / KEYBOARD ACCESSIBILITY
 * =====================================================================*/
:focus { outline: none; }
:focus-visible {
    outline: 2px solid var(--sg-primary);
    outline-offset: 2px;
    border-radius: var(--sg-radius-sm);
}

/* =====================================================================
 *  SCROLLBAR (Webkit / Firefox)
 * =====================================================================*/
* {
    scrollbar-width: thin;
    scrollbar-color: var(--sg-border) transparent;
}
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
    background: var(--sg-border);
    border-radius: var(--sg-radius-pill);
    border: 2px solid var(--sg-bg);
}
*::-webkit-scrollbar-thumb:hover { background: var(--sg-text-soft); }

/* =====================================================================
 *  HEADER STICKY-ON-SCROLL (CSS-only; sticks at top permanently)
 * =====================================================================*/
.header-main-area {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--sg-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* =====================================================================
 *  COUNTER ANIMATION — odometer numbers feel more alive
 * =====================================================================*/
.odometer {
    font-variant-numeric: tabular-nums;
}

/* =====================================================================
 *  IMAGE CONTAINERS — never overflow their parent
 * =====================================================================*/
.card-thumb img,
.sg-store-tile__logo img,
.sg-related-store-tile__logo img,
.coupon-card-3 .card-thumb img {
    transition: transform var(--sg-duration) var(--sg-ease);
}
.coupon-card:hover .card-thumb img,
.coupon-card-3:hover .card-thumb img {
    transform: scale(1.04);
}

/* =====================================================================
 *  BLOCKQUOTE / TESTIMONIAL
 * =====================================================================*/
blockquote, .testimonial-text {
    border-left: 3px solid var(--sg-primary);
    padding: var(--sg-space-3) var(--sg-space-5);
    margin: var(--sg-space-4) 0;
    color: var(--sg-text);
    font-style: italic;
    background: var(--sg-surface);
    border-radius: 0 var(--sg-radius-md) var(--sg-radius-md) 0;
}

/* =====================================================================
 *  DIVIDER / HR
 * =====================================================================*/
hr {
    border: none;
    border-top: 1px solid var(--sg-border);
    margin: var(--sg-space-6) 0;
}

/* =====================================================================
 *  BADGE / CHIP
 * =====================================================================*/
.badge, .chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--sg-radius-pill);
    background: var(--sg-surface);
    color: var(--sg-text-muted);
    font-size: 12px;
    font-weight: 600;
}
.badge-primary { background: var(--sg-primary-light); color: var(--sg-primary-dark); }
.badge-danger  { background: #FEE2E2; color: var(--sg-danger); }
.badge-warning { background: #FEF3C7; color: #92400E; }
.badge-success { background: var(--sg-primary-light); color: var(--sg-primary-dark); }

/* =====================================================================
 *  FINAL MOBILE TIGHTENING
 * =====================================================================*/
@media (max-width: 575px) {
    .hero, .hero.three, .hero-2, .hero-3 {
        padding: var(--sg-space-10) 0 var(--sg-space-8);
    }
    .hero-search-bar form,
    .hero-search-bar-2 form {
        max-width: 100%;
        padding: 4px;
    }
    .hero-search-bar input,
    .hero-search-bar-2 input {
        padding: 10px 14px;
        font-size: 14px;
    }
    .hero-search-bar .search-btn,
    .hero-search-bar-2 .search-btn {
        padding: 8px 14px;
        min-height: 40px;
    }
    .modal-body {
        padding: var(--sg-space-5) var(--sg-space-4) !important;
    }
    .side-bar-wrap {
        padding: var(--sg-space-4);
    }
    .sg-back-to-top {
        bottom: var(--sg-space-3);
        right: var(--sg-space-3);
    }
}

/* =====================================================================
 * PHASE 9 — BOLD 2026 REFRESH
 * User feedback: changes too subtle. This layer is intentionally loud
 * so visual difference is unmistakable. Loaded LAST inside this file,
 * so it overrides every earlier rule here.
 *
 *  - Bigger hero title + gradient background wash
 *  - Gradient primary CTAs (green -> teal) with deeper shadow
 *  - Header: accent gradient bottom line + bolder nav weight + lift on stick
 *  - Coupon / store cards: thicker border, ribbon accent, dramatic hover lift
 *  - Typography: heavier weights, tighter tracking on headings
 *  - Section headings: accent underline bar
 * =====================================================================*/
:root {
    --sg-primary-teal:    #0EA5A0;
    --sg-gradient-brand:  linear-gradient(135deg, #00B67A 0%, #0EA5A0 100%);
    --sg-gradient-brand-soft: linear-gradient(135deg, #E6F8F1 0%, #DBF5F1 100%);
    --sg-gradient-hero:   linear-gradient(160deg, #F0FBF6 0%, #FFFFFF 55%, #F0FAFA 100%);
    --sg-shadow-pop:      0 18px 38px -12px rgba(0, 182, 122, 0.35);
    --sg-shadow-pop-hover:0 24px 52px -14px rgba(0, 182, 122, 0.45);
}

/* ---------- Typography: heavier, tighter ---------- */
body, .body, p { font-weight: 450; }
h1, .h1, .banner-title { font-weight: 800 !important; letter-spacing: -0.02em; }
h2, .h2, .section-heading__title, .section-title { font-weight: 800 !important; letter-spacing: -0.015em; }
h3, .h3 { font-weight: 700 !important; letter-spacing: -0.01em; }
h4, .h4 { font-weight: 700 !important; }
h5, .h5, h6, .h6 { font-weight: 700 !important; }

/* Bold accent underline under every section heading */
.section-heading__title,
.section-title {
    position: relative;
    display: inline-block;
    padding-bottom: 14px;
}
.section-heading__title::after,
.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 64px;
    height: 4px;
    border-radius: 999px;
    background: var(--sg-gradient-brand);
}
.text-center .section-heading__title::after,
.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

/* ---------- Hero: gradient bg + dramatic title scale ---------- */
.hero,
.hero.three,
.hero-2 {
    background: var(--sg-gradient-hero) !important;
    position: relative;
    overflow: hidden;
}
.hero-2 { background-image: var(--sg-gradient-brand) !important; }
.hero-2 .hero-content-2 .title,
.hero-2 .hero-content-2 .subtitle { color: #fff !important; }

/* Soft decorative blob behind the hero text */
.hero::before,
.hero.three::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(0, 182, 122, 0.18) 0%, rgba(0, 182, 122, 0) 70%);
    top: -120px;
    left: -120px;
    z-index: 0;
    pointer-events: none;
}
.hero > .container,
.hero.three > .container,
.hero-2 > .container { position: relative; z-index: 1; }

.banner-title,
.hero-content .banner-title,
.hero-content-2 .title {
    font-size: clamp(2.25rem, 4.6vw + 1rem, 4.75rem) !important;
    line-height: 1.05 !important;
    font-weight: 900 !important;
    letter-spacing: -0.025em !important;
    margin-bottom: 22px !important;
}
.banner-title span { color: var(--sg-primary-dark); }
.hero-content .subtitle,
.hero-content-2 .subtitle {
    display: inline-block;
    background: var(--sg-gradient-brand-soft);
    color: var(--sg-primary-dark) !important;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 22px !important;
}
.hero-content-2 .subtitle {
    background: rgba(255,255,255,0.18);
    color: #fff !important;
}
.hero-content .short-descriptions {
    font-size: 1.125rem;
    color: var(--sg-text-muted);
    max-width: 560px;
}

/* Hero search bar — bigger, softer, more shadow */
.hero-search-bar form,
.hero-search-bar-2 form {
    padding: 8px !important;
    border-radius: 999px !important;
    box-shadow: 0 20px 40px -16px rgba(15, 23, 42, 0.18) !important;
    border: 1px solid rgba(0, 182, 122, 0.15) !important;
    max-width: 620px !important;
}
.hero-search-bar input,
.hero-search-bar-2 input {
    padding: 16px 22px !important;
    font-size: 16px !important;
    background: transparent !important;
}
.hero-search-bar .search-btn,
.hero-search-bar-2 .search-btn {
    border-radius: 999px !important;
    padding: 14px 26px !important;
    font-weight: 700 !important;
    background: var(--sg-gradient-brand) !important;
    border: none !important;
    color: #fff !important;
    box-shadow: var(--sg-shadow-pop) !important;
}

/* Hero counters: pop the numbers */
.hero-grp-counter .counter-wrap h6 {
    font-size: 2rem !important;
    font-weight: 800 !important;
    background: var(--sg-gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.hero-grp-counter .counter-wrap p {
    font-weight: 600;
    letter-spacing: 0.04em;
    font-size: 12px !important;
    color: var(--sg-text-muted) !important;
}

/* ---------- Buttons: gradient primary, deeper shadow ---------- */
.btn.btn--base,
.btn--base:not(.outline) {
    background: var(--sg-gradient-brand) !important;
    border: none !important;
    color: #fff !important;
    box-shadow: var(--sg-shadow-pop) !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    transition: transform 180ms var(--sg-ease), box-shadow 180ms var(--sg-ease) !important;
}
.btn.btn--base:hover,
.btn--base:not(.outline):hover {
    transform: translateY(-2px);
    box-shadow: var(--sg-shadow-pop-hover) !important;
    background: var(--sg-gradient-brand) !important;
    color: #fff !important;
}
.btn--base.outline {
    background: transparent !important;
    border: 2px solid var(--sg-primary) !important;
    color: var(--sg-primary-dark) !important;
    font-weight: 700 !important;
}
.btn--base.outline:hover {
    background: var(--sg-primary-light) !important;
    color: var(--sg-primary-dark) !important;
}

/* ---------- Header: sticky lift + accent gradient line ---------- */
.header {
    padding: 14px 0 !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    backdrop-filter: saturate(180%) blur(8px);
    background: rgba(255, 255, 255, 0.92) !important;
}
.header::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: 2px;
    background: var(--sg-gradient-brand);
    opacity: 0;
    transition: opacity 250ms var(--sg-ease);
}
.header.fixed-header {
    box-shadow: 0 10px 30px -16px rgba(15, 23, 42, 0.18) !important;
}
.header.fixed-header::after { opacity: 1; }
.header .logo-normal img,
.header .logo img { max-height: 48px; width: auto; }
.main-menu a,
.header-wrapper .menu-wrapper ul.main-menu a {
    font-weight: 600 !important;
    font-size: 15px !important;
    color: var(--sg-text) !important;
    padding: 10px 14px !important;
}
.main-menu a:hover,
.header-wrapper .menu-wrapper ul.main-menu a:hover {
    color: var(--sg-primary-dark) !important;
}
.main-menu a.active,
.header-wrapper .menu-wrapper ul.main-menu a.active {
    background: var(--sg-primary-light) !important;
    color: var(--sg-primary-dark) !important;
    border-radius: 8px;
}
.main-menu a.active::before { display: none !important; }

/* Header login/register button — gradient pill */
.login-registration-list__item a {
    background: var(--sg-gradient-brand) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 999px !important;
    padding: 10px 22px !important;
    font-weight: 700 !important;
    box-shadow: var(--sg-shadow-pop) !important;
}
.login-registration-list__item a:hover {
    transform: translateY(-1px);
    box-shadow: var(--sg-shadow-pop-hover) !important;
    color: #fff !important;
}

/* ---------- Coupon / store / category cards: subtle lift only ---------- */
/* 2026-05-19 hotfix: previous -6px lift + animated gradient ribbon felt
   "in your face". Toned down to a calm -2px shift + soft shadow. */
.coupon-card,
.coupon-card-2,
.coupon-card-3,
.sg-card-list,
.sg-store-tile {
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    border-radius: 14px !important;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    transition: transform 180ms var(--sg-ease), box-shadow 180ms var(--sg-ease), border-color 180ms var(--sg-ease) !important;
    position: relative;
}
.coupon-card:hover,
.coupon-card-2:hover,
.coupon-card-3:hover,
.sg-card-list:hover,
.sg-store-tile:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px -10px rgba(15, 23, 42, 0.12) !important;
    border-color: rgba(0, 182, 122, 0.25) !important;
}

/* Card titles bolder */
.coupon-card .card-title,
.coupon-card-2 .title-cat,
.coupon-card-3 .title,
.sg-store-tile h3,
.sg-store-tile .title {
    font-weight: 800 !important;
    letter-spacing: -0.01em;
}

/* Category card icon pop */
.coupon-card-2 .icon-wrap {
    background: var(--sg-gradient-brand-soft) !important;
    border-radius: 16px !important;
    box-shadow: inset 0 0 0 1px rgba(0, 182, 122, 0.12);
}

/* ---------- Footer subtle accent ---------- */
.footer-item__title {
    font-weight: 800 !important;
}
.footer-item__title::after {
    background: var(--sg-gradient-brand) !important;
    height: 3px !important;
}

/* ---------- Breadcrumb: lighter wash + dark bolder title ---------- */
/* 2026-05-19 hotfix: title was white on the new light gradient bg, so it
   was unreadable. Force dark text + dark crumbs on the light layer. */
.breadcumb {
    background: var(--sg-gradient-hero) !important;
}
.breadcumb__title {
    color: var(--sg-text) !important;
    font-size: clamp(1.75rem, 2.4vw + 1rem, 2.5rem) !important;
    font-weight: 800 !important;
    letter-spacing: -0.015em;
}
.breadcumb__item,
.breadcumb__link,
.breadcumb__item-text {
    color: var(--sg-text-muted) !important;
}
.breadcumb__link:hover {
    color: var(--sg-primary-dark) !important;
}

/* ---------- Mobile bold tweaks ---------- */
@media (max-width: 575px) {
    .banner-title,
    .hero-content .banner-title,
    .hero-content-2 .title {
        font-size: clamp(2rem, 8vw, 2.5rem) !important;
    }
    .hero-search-bar form,
    .hero-search-bar-2 form {
        border-radius: 16px !important;
    }
    .hero-search-bar .search-btn,
    .hero-search-bar-2 .search-btn {
        border-radius: 12px !important;
        padding: 12px 18px !important;
    }
}

/* =====================================================================
 *  PHASE 9.1 HOTFIX — footer + list-row coverage
 *  2026-05-19. User feedback: footer broken (social icons stacked
 *  vertically), and listing pages need consistent list-row appearance.
 * =====================================================================*/

/* --- Footer: social icons must be horizontal --- */
/* Phase 4 forced `flex-direction: column` on every footer ul which
   broke .social-list. Re-allow horizontal here. */
footer ul.social-list,
.footer-area ul.social-list,
.footer-section ul.social-list {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
}

/* Description: cap width rather than the old padding-right: 90px which
   pushed text into a too-narrow column on smaller laptops. */
.footer-area .footer-item__desc {
    padding-right: 0 !important;
    max-width: 360px;
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 14px;
    line-height: 1.6;
}

/* Footer title underline accent — keep readable on dark bg */
.footer-area .footer-item__title {
    color: #fff !important;
    font-size: 0.875rem !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 18px !important;
    padding-bottom: 10px;
    position: relative;
}
.footer-area .footer-item__title::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 32px;
    height: 2px;
    background: var(--sg-gradient-brand) !important;
    border-radius: 2px;
}

/* Newsletter input on dark bg — light text, dark placeholder */
.footer-area .subscribe-box .footer-input {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
}
.footer-area .subscribe-box .footer-input::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}
.footer-area .subscribe-box .sub-btn {
    padding: 8px 18px !important;
}

/* Bottom copyright bar */
.footer-area .bottom-footer {
    background: rgba(0, 0, 0, 0.2) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.55) !important;
    margin-top: 32px;
}
.footer-area .bottom-footer-text {
    color: rgba(255, 255, 255, 0.55) !important;
}

/* --- List-rows: consistent spacing across all listing pages --- */
.sg-card-list-wrap {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* On small screens the 110 / auto / auto grid can crush — let it stack */
@media (max-width: 575px) {
    .sg-card-list {
        grid-template-columns: 1fr !important;
        text-align: left;
        gap: 12px !important;
        padding: 16px !important;
    }
    .sg-card-list__discount {
        max-width: 140px;
    }
    .sg-card-list__action {
        flex-direction: row !important;
        align-items: center;
        justify-content: space-between;
    }
}

/* =====================================================================
 *  PHASE 9.2 — Admin ad banners hidden sitewide
 *  2026-05-19. User requested the (currently "Black Friday Sale") promo
 *  banner removed from every page. We hide via CSS rather than gutting
 *  the blade `@if($firstAd)` blocks so admin can re-enable later just by
 *  removing this rule (or pointing the ad image to something different).
 *
 *  Re-enable: delete the block below.
 * =====================================================================*/
.long-add-wrap,
.breadcrumb-long-add-wrap,
.sidebar-add-wrap {
    display: none !important;
}
