﻿/*
Theme Name: Reduceme-Modern
Description: A premium, authoritative coupon theme for reducemeprice.com
Version: 1.0
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@700;800&display=swap');

:root {
    /* Colors */
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #eef2ff;
    --secondary: #10b981;
    --secondary-dark: #059669;
    --emerald: #10b981;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --accent: #f59e0b;
    --danger: #ef4444;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-main: #ffffff;
    --bg-alt: #f8fafc;
    --border: #e2e8f0;
    --border-light: #f1f5f9;

    /* Layout */
    --container-width: 1200px;
    --container-narrow: 800px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    /* Effects */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --glass: rgba(255, 255, 255, 0.82);
    --glass-border: rgba(255, 255, 255, 0.2);
}

/* Base Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    margin-top: 0;
    font-weight: 800;
    letter-spacing: -0.02em;
}

a {
    transition: all 0.2s;
    text-decoration: none;
    color: var(--primary);
    cursor: pointer;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-narrow {
    max-width: var(--container-narrow);
}

/* Full-width container for header */
.container-fluid {
    width: 100%;
    padding-left: 30px;
    padding-right: 30px;
}

/* Header 3-Column Layout */
.header-col-left,
.header-col-right {
    flex: 1;
    min-width: 0;
}

.header-col-center {
    flex: 2;
    min-width: 0;
}

/* Mobile Responsiveness for Header Columns */
@media (max-width: 991px) {
    .header-col-left {
        flex: 1;
    }

    .header-col-center {
        display: none !important;
        /* Nav hidden on mobile, use mobile menu */
    }

    .header-col-right {
        flex: 0 0 auto;
        /* Only take space needed for toggle */
    }
}

.text-center {
    text-align: center;
}

/* Base Visibility Utilities */
@media (min-width: 992px) {
    .hid-desktop {
        display: none !important;
    }

    .show-desktop-flex {
        display: flex !important;
    }

    .hid-mobile {
        display: block !important;
    }
}

@media (max-width: 991px) {
    .hid-desktop {
        display: block !important;
    }

    .show-desktop-flex {
        display: none !important;
    }

    .hid-mobile {
        display: none !important;
    }
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.w-full {
    width: 100%;
}

.max-w-600 {
    max-width: 600px;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.d-flex {
    display: flex;
}

.flex-column {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.align-center {
    align-items: center;
}

.align-end {
    align-items: flex-end;
}

.flex-1 {
    flex: 1;
}

.grid {
    display: grid;
}

.gap-10 {
    gap: 10px;
}

.gap-20 {
    gap: 20px;
}

.gap-30 {
    gap: 30px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col-12,
.col-md-6,
.col-md-4,
.col-lg-8,
.col-lg-4 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

@media (min-width: 768px) {
    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .col-md-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

@media (min-width: 992px) {
    .col-lg-8 {
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
    }

    .col-lg-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

/* Spacing */
.m-0 {
    margin: 0;
}

.mt-10 {
    margin-top: 10px;
}

.mt-15 {
    margin-top: 15px;
}

.mt-20 {
    margin-top: 20px;
}

.mt-30 {
    margin-top: 30px;
}

.mt-40 {
    margin-top: 40px;
}

.mt-60 {
    margin-top: 60px;
}

.mt-80 {
    margin-top: 80px;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-15 {
    margin-bottom: 15px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

.mb-40 {
    margin-bottom: 40px;
}

.mb-60 {
    margin-bottom: 60px;
}

.mb-80 {
    margin-bottom: 80px;
}

.p-10 {
    padding: 10px;
}

.p-20 {
    padding: 20px;
}

.p-30 {
    padding: 30px;
}

.p-60 {
    padding: 60px;
}

.py-60 {
    padding-top: 60px;
    padding-bottom: 60px;
}

.pt-20 {
    padding-top: 20px;
}

.pt-40 {
    padding-top: 40px;
}

.pt-60 {
    padding-top: 60px;
}

.pt-80 {
    padding-top: 80px;
}

.pt-100 {
    padding-top: 100px;
}

.pb-20 {
    padding-bottom: 20px;
}

.pb-40 {
    padding-bottom: 40px;
}

.pb-60 {
    padding-bottom: 60px;
}

.pb-80 {
    padding-bottom: 80px;
}

.pb-100 {
    padding-bottom: 100px;
}

/* Backgrounds */
.bg-alt {
    background-color: var(--bg-alt);
}

.bg-white {
    background-color: #fff;
}

.bg-primary {
    background-color: var(--primary);
}

.bg-dark {
    background-color: var(--slate-800);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    gap: 8px;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 17px;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.2);
}

.btn-secondary {
    background: var(--primary-light);
    color: var(--primary);
}

.btn-secondary:hover {
    background: #e0e7ff;
}

.btn-emerald {
    background: var(--emerald);
    color: #fff;
}

.btn-emerald:hover {
    background: var(--secondary-dark);
}

/* Glass Card */
.glass-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

/* Verified Badge */
.verified-badge {
    display: inline-flex;
    align-items: center;
    background: #ecfdf5;
    color: #059669;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    gap: 6px;
    border: 1px solid #bbf7d0;
}

.verified-badge::before {
    content: '\2713';
    font-weight: 900;
}

/* Typography Helpers */
.text-primary {
    color: var(--primary);
}

.text-emerald {
    color: var(--emerald);
}

.text-white {
    color: #fff;
}

.text-muted {
    color: var(--text-muted);
}

.text-xs {
    font-size: 12px;
}

.font-medium {
    font-weight: 500;
}

.hover-underline:hover {
    text-decoration: underline;
}

.search-result-item:hover .result-name {
    color: var(--primary);
}

.search-stores-section .results-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.premium-list-item h3 a {
    display: block;
}

.item-action-end .btn:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.text-success {
    position: relative;
}

@keyframes pulse-green {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

.text-success .icon {
    animation: pulse-green 2s infinite;
}

.font-bold {
    font-weight: 700;
}

.opacity-70 {
    opacity: 0.7;
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

/* Responsive Utilities */
@media (max-width: 768px) {
    :root {
        --radius-lg: 16px;
        --radius-xl: 20px;
    }

    .container {
        padding: 0 15px;
    }
}

/* --- Premium Navigation & Dropdowns --- */
.header-nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-links li {
    position: relative;
    padding: 25px 0;
    /* Vertical breathing room for hover bridge */
}

.nav-links li a {
    color: var(--text-main);
    font-weight: 700;
    font-size: 15px;
    transition: color 0.2s;
}

.nav-links li:hover>a {
    color: var(--primary);
}

/* Sub-navigation (Dropdowns) */
.sub-nav {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 260px;
    padding: 15px 0;
    margin: 0;
    list-style: none;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
}

/* Show dropdown on hover */
.nav-links li:hover>.sub-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-nav li {
    padding: 0;
    width: 100%;
}

.sub-nav li a {
    display: block !important;
    padding: 12px 25px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--text-main) !important;
    border-bottom: none !important;
    border-top: none !important;
}

.sub-nav li a:hover {
    background: var(--bg-alt);
    color: var(--primary) !important;
    padding-left: 30px !important;
    /* Subtle slide effect */
}

/* Recursive levels (Nested sub-menus) */
.sub-nav .sub-nav {
    top: 0;
    left: 100%;
    margin-left: 5px;
}

.sub-nav li:hover>.sub-nav {
    opacity: 1;
    visibility: visible;
}

/* Mobile responsive logic */
@media (max-width: 991px) {
    .d-md-none {
        display: none !important;
    }

    .menu-toggle {
        display: flex;
    }

    .mobile-nav .sub-nav {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding-left: 20px;
        background: transparent;
        display: block;
    }
}

.btn-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-white);
}

/* Favorite Buttons */
.btn-favorite-full {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 50px;
    background: #fff;
    color: var(--slate-500);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border: 1.5px solid var(--slate-200);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.btn-favorite-full .heart-icon {
    font-size: 14px;
    transition: transform 0.2s;
}

.btn-favorite-full:hover {
    background: var(--slate-50);
    border-color: var(--slate-300);
    color: var(--slate-600);
    transform: translateY(-1px);
}

.btn-favorite-full.active {
    background: #fee2e2;
    border-color: #fca5a5;
    color: var(--danger);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.1);
}

.btn-favorite-full.active .heart-icon {
    transform: scale(1.2);
}

.btn-favorite-list {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 50px;
    background: #fff;
    color: var(--slate-400);
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    border: 1.2px solid var(--slate-200);
    transition: all 0.2s;
    position: absolute;
    top: 15px;
    right: 15px;
}

.btn-favorite-list .heart-icon {
    font-size: 12px;
}

.btn-favorite-list:hover {
    background: var(--slate-50);
    color: var(--slate-600);
    border-color: var(--slate-300);
}

.btn-favorite-list.active {
    background: #fff1f2;
    border-color: #fecaca;
    color: var(--danger);
}

/* Live Search Results */
.search-input-group {
    position: relative;
}

.live-search-results {
    position: absolute;
    top: calc(100% + 15px);
    left: 0;
    width: 100%;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    overflow: hidden;
    display: none;
    text-align: left;
    border: 1px solid var(--border);
}

.search-group-title {
    padding: 8px 15px;
    font-size: 11px;
    font-weight: 800;
    color: var(--slate-400);
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--slate-50);
    border-bottom: 1px solid var(--border);
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.2s;
    border-bottom: 1px solid var(--border-light);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: var(--primary-light);
}

.search-result-item img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--border-light);
}

.search-result-item .result-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.search-result-item .result-name {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
}

.search-result-item .result-meta {
    font-size: 12px;
    color: var(--slate-400);
    font-weight: 500;
}

.result-icon-deal {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fef3c7;
    color: #d97706;
    border-radius: 8px;
    font-weight: 800;
    font-size: 18px;
}

.search-no-results {
    padding: 30px;
    text-align: center;
    color: var(--slate-400);
    font-weight: 600;
    font-size: 14px;
}

/* --- Search Results Layout --- */
.search-grid-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}

@media (max-width: 991px) {
    .search-grid-layout {
        grid-template-columns: 1fr;
    }
}

.search-sidebar {
    position: sticky;
    top: 100px;
}

.results-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.search-context-bar h1 {
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -1.5px;
}

/* --- Professional List Item Refinements --- */
.premium-list-item {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-list-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.border-left-premium {
    border-left: 4px solid var(--primary) !important;
}

.badge-premium-code {
    background: var(--primary);
    color: #fff !important;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
}

.badge-premium-deal {
    background: #f1f5f9;
    color: #475569 !important;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
}

.letter-spacing-1 {
    letter-spacing: 0.1em;
}

.uppercase {
    text-transform: uppercase;
}

.font-bold {
    font-weight: 700;
}

.font-medium {
    font-weight: 500;
}

/* ==========================================================================
   GLOBAL DEAL CARD STYLES (Migrated from store.php)
   ========================================================================== */

/* Deal Cards */
.premium-deal-card {
    display: flex;
    min-width: 0;
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

.premium-deal-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.deal-badge-side {
    flex-shrink: 0;
    width: 140px;
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: 1px dashed var(--border);
    background: var(--slate-50);
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    text-align: center;
}

.deal-type-tag {
    margin-bottom: 8px;
}

.deal-discount-val {
    font-size: 24px;
    line-height: 1.2;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    color: var(--primary);
}

.deal-main-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    padding: 20px 25px;
}

.deal-top-meta {
    margin-bottom: 8px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.deal-card-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
}

.deal-main-info p {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 14px;
    margin: 0;
    color: var(--text-muted);
    line-height: 1.6;
}

.deal-action-side {
    flex-shrink: 0;
    width: 170px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-left: 1px solid var(--border);
    text-align: center;
    background: #fff;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.expiry-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 12px;
}

/* Badges */
.code-label {
    background: #fee2e2;
    color: #ef4444;
    font-size: 10px;
    font-weight: 900;
    padding: 4px 10px;
    border-radius: 4px;
}

.sale-label {
    background: #dcfce7;
    color: #10b981;
    font-size: 10px;
    font-weight: 900;
    padding: 4px 10px;
    border-radius: 4px;
}

.verified-badge {
    background: #ecfdf5;
    color: #059669;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.success-badge {
    background: #e0f2fe;
    color: #0369a1;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.used-badge {
    background: #f1f5f9;
    color: #475569;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.deal-top-meta .icon {
    opacity: 0.8;
    font-size: 11px;
}

/* View Details Link */
.view-details-link {
    font-size: 12px;
    color: var(--slate-500);
    text-decoration: none;
    margin-top: 10px;
    font-weight: 600;
    transition: color 0.2s;
}

.view-details-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Responsive Coupon Card Logic */
@media (max-width: 1200px) {
    .deal-action-side {
        width: 160px;
        padding: 20px;
    }

    .deal-discount-val {
        font-size: 20px;
    }
}

@media (max-width: 991px) {
    .premium-deal-card {
        height: auto;
        min-height: unset;
    }

    .deal-badge-side {
        width: 110px;
        padding: 15px;
    }

    .deal-main-info {
        padding: 15px 20px;
    }

    .deal-action-side {
        width: 150px;
        padding: 15px;
    }

    .deal-card-title {
        font-size: 18px;
        white-space: normal;
    }
}

@media (max-width: 767px) {

    /* Full Column Stack on Mobile */
    .premium-deal-card {
        flex-direction: column !important;
        flex-wrap: nowrap !important;
    }

    .deal-badge-side {
        width: 100% !important;
        border-right: none !important;
        border-bottom: 1px dashed var(--border);
        flex-direction: row !important;
        justify-content: space-between !important;
        padding: 12px 20px !important;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
    }

    .deal-badge-side .deal-type-tag {
        margin-bottom: 0;
    }

    .deal-badge-side .deal-discount-val {
        margin-top: 0 !important;
        font-size: 18px !important;
    }

    .deal-main-info {
        width: 100% !important;
        padding: 20px !important;
        border-bottom: 1px solid var(--border-light);
    }

    .deal-card-title {
        font-size: 17px !important;
        white-space: normal !important;
        display: block !important;
        -webkit-line-clamp: unset !important;
        line-clamp: unset !important;
    }

    .deal-action-side {
        width: 100% !important;
        border-left: none !important;
        border-top: 1px solid var(--border-light) !important;
        border-radius: 0 0 var(--radius-lg) var(--radius-lg) !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 12px 20px !important;
        background: #fdfdfd;
        gap: 15px !important;
    }

    .expiry-label {
        margin-bottom: 0 !important;
        font-size: 11px !important;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: var(--text-muted);
        flex: 1;
        text-align: left;
        padding-right: 15px;
        border-right: 1px solid var(--border-light);
    }

    .deal-action-side .btn {
        flex: 0 0 auto !important;
        min-width: 110px !important;
        padding: 8px 20px !important;
        font-size: 14px !important;
        white-space: nowrap !important;
    }

    .view-details-link {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .deal-action-side {
        padding: 12px 15px !important;
    }

    .deal-action-side .btn {
        min-width: 110px;
        padding: 8px 15px !important;
        font-size: 14px !important;
    }
}

/* RETAILMENOT KILLER: ANIMATIONS & RIBBONS */
.is-hot-deal {
    border: 2px solid var(--primary) !important;
    position: relative;
    box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.2) !important;
}

.is-hot-deal .deal-badge-side,
.is-hot-deal .deal-main-info {
    padding-top: 45px !important;
    /* Move content down to avoid ribbon overlap */
}

.hot-ribbon {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    padding: 6px 16px;
    border-radius: var(--radius-lg) 0 16px 0;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 3px 3px 12px rgba(99, 102, 241, 0.2);
}

.pulse-icon {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 0 rgba(16, 185, 129, 0.4);
    animation: simple-pulse 2s infinite;
}

@keyframes simple-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.verified-badge {
    transition: all 0.3s;
}

.premium-deal-card:hover .verified-badge {
    background: #d1fae5;
    transform: scale(1.05);
}

/* Blog TOC Styling Refinement */
.blog-toc {
    background: #f8fafc;
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.toc-header {
    padding: 15px 20px;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #1e293b;
}

.toc-icon {
    font-size: 18px;
}

.toc-nav {
    padding: 10px 0;
    display: flex;
    flex-direction: column;
}

.toc-item {
    padding: 10px 20px;
    font-size: 14px;
    color: #475569;
    text-decoration: none;
    transition: all 0.2s;
    line-height: 1.4;
    border-left: 3px solid transparent;
}

.toc-item:hover {
    background: #fff;
    color: var(--primary);
    border-left-color: var(--primary);
}

.toc-item-sub {
    padding-left: 35px;
    font-size: 13px;
    color: #64748b;
}

/* Modern Share Buttons */
.blog-share-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.share-label {
    font-weight: 700;
    font-size: 14px;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.share-icons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.share-btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #f1f5f9;
    color: #475569;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid #e2e8f0;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: #fff;
}

.share-twitter:hover {
    color: #000;
    border-color: #000;
}

.share-facebook:hover {
    color: #1877F2;
    border-color: #1877F2;
}

.share-linkedin:hover {
    color: #0077B5;
    border-color: #0077B5;
}

.share-pinterest:hover {
    color: #BD081C;
    border-color: #BD081C;
}

.share-copy.copied {
    background: #22c55e;
    color: #fff;
    border-color: #22c55e;
}


/* Blog Subscription Section */
.blog-subscribe-section {
    position: relative;
    z-index: 10;
}

/* Touching Footer Fix */
.blog-index .main-footer,
.blog-single .main-footer {
    margin-top: 0 !important;
}

.blog-subscribe-section {
    padding-bottom: 80px !important;
}

.blog-subscribe-section h3 {
    font-size: 38px !important;
    margin-bottom: 10px !important;
    font-family: 'Outfit', sans-serif !important;
}

.blog-subscribe-form-wrap {
    max-width: 600px;
    margin: 40px auto 0;
}

.blog-subscribe-form-wrap .subscribe_form form {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    align-items: center !important;
}

.blog-subscribe-form-wrap input[type="email"] {
    width: 100% !important;
    max-width: 450px !important;
    padding: 18px 30px !important;
    border-radius: 50px !important;
    border: 1.5px solid var(--border) !important;
    background: #fff !important;
    font-size: 16px !important;
    box-shadow: var(--shadow-sm) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: block !important;
    color: var(--text-main) !important;
}

.blog-subscribe-form-wrap input[type="email"]:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1) !important;
    outline: none !important;
    transform: translateY(-2px);
}

.blog-subscribe-form-wrap .form_field {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
}

.blog-subscribe-form-wrap .form_field label {
    font-size: 12px !important;
    font-weight: 800 !important;
    color: var(--slate-400) !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
}

.blog-subscribe-form-wrap .form_field div {
    display: flex !important;
    gap: 12px !important;
    align-items: center !important;
    background: #fff !important;
    padding: 8px 15px !important;
    border-radius: 50px !important;
    border: 1.5px solid var(--border) !important;
    box-shadow: var(--shadow-sm) !important;
}

.blog-subscribe-form-wrap .form_field img {
    height: 40px !important;
    border-radius: 8px !important;
    width: auto !important;
}

.blog-subscribe-form-wrap .form_field input {
    border: none !important;
    padding: 8px !important;
    font-size: 15px !important;
    outline: none !important;
    width: 130px !important;
    font-weight: 700 !important;
    background: transparent !important;
}

.blog-subscribe-form-wrap button {
    background: var(--primary) !important;
    color: #fff !important;
    border: none !important;
    padding: 16px 60px !important;
    border-radius: 50px !important;
    font-weight: 800 !important;
    font-size: 17px !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2) !important;
    margin-top: 10px !important;
    display: inline-block !important;
}

.blog-subscribe-form-wrap button:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.3) !important;
}

@media (max-width: 768px) {
    .blog-subscribe-section h3 {
        font-size: 28px !important;
    }
}

/* Blog Sidebar Widgets Styling */
.blog-widget {
    background: #fff;
    padding: 25px;
    border-radius: 20px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.blog-widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

.widget-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

/* Trending Widget Hero & List */
.trending-hero {
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.trending-hero:hover {
    transform: scale(1.02);
}

.trending-hero img {
    transition: transform 0.6s ease;
}

.trending-hero:hover img {
    transform: scale(1.1);
}

.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.trending-item {
    transition: all 0.3s;
}

.trending-item:hover {
    padding-left: 5px;
}

.trending-item:hover h6 {
    color: var(--primary) !important;
}

/* Deal of the Week Premium Card */
.deal-week-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

.deal-week-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.deal-week-meta .text-success::before {
    content: 'âœ“';
    font-weight: 900;
}

.glass-card {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.8);
}

/* Related Posts / Read More Section */

.read-more-section {
    background: #fff;
    position: relative;
    z-index: 10;
    margin-top: 40px;
}

.read-more-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.read-more-card {
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
}

.read-more-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-light);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.1) !important;
}

.rm-card-img {
    height: 200px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.rm-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.read-more-card:hover .rm-card-img img {
    transform: scale(1.08);
}

.rm-card-content h4 {
    line-height: 1.5;
    font-weight: 700;
    transition: color 0.3s;
}

.container-medium {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 991px) {
    .read-more-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 767px) {
    .read-more-grid {
        grid-template-columns: 1fr;
    }

    .read-more-section {
        padding-top: 60px;
        padding-bottom: 60px;
    }
}

/* Restored Utilities */
.glass-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.bg-alt {
    background: var(--bg-alt) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.font-bold {
    font-weight: 700 !important;
}

.font-outfit {
    font-family: 'Outfit', sans-serif !important;
}

.text-xs {
    font-size: 12px !important;
}

.text-sm {
    font-size: 14px !important;
}

.text-emerald {
    color: var(--emerald) !important;
}

.rounded-xl {
    border-radius: 24px !important;
}

.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

.mt-110 {
    margin-top: 110px !important;
}

.pb-0 {
    padding-bottom: 0 !important;
}

.mb-40 {
    margin-bottom: 40px !important;
}

/* Trending Widget Hero & List */
.trending-hero {
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.trending-hero:hover {
    transform: scale(1.02);
}

.trending-hero img {
    transition: transform 0.6s ease;
}

.trending-hero:hover img {
    transform: scale(1.1);
}

.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.trending-item {
    transition: all 0.3s;
}

.trending-item:hover {
    padding-left: 5px;
}

.trending-item:hover h6 {
    color: var(--primary) !important;
}

/* Deal of the Week Premium Card */
.deal-week-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

.deal-week-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.deal-week-meta .text-success::before {
    content: 'âœ“';
    font-weight: 900;
}

.glass-card {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.8);
}

/* Related Posts / Read More Section */

.read-more-section {
    background: #fff;
    position: relative;
    z-index: 10;
    margin-top: 40px;
}

.read-more-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.read-more-card {
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
}

.read-more-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-light);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.1) !important;
}

.rm-card-img {
    height: 200px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.rm-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.read-more-card:hover .rm-card-img img {
    transform: scale(1.08);
}

.rm-card-content h4 {
    line-height: 1.5;
    font-weight: 700;
    transition: color 0.3s;
}

.container-medium {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 991px) {
    .read-more-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 767px) {
    .read-more-grid {
        grid-template-columns: 1fr;
    }

    .read-more-section {
        padding-top: 60px;
        padding-bottom: 60px;
    }
}

/* Restored Utilities */
.glass-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.bg-alt {
    background: var(--bg-alt) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.font-bold {
    font-weight: 700 !important;
}

.font-outfit {
    font-family: 'Outfit', sans-serif !important;
}

.text-xs {
    font-size: 12px !important;
}

.text-sm {
    font-size: 14px !important;
}

.text-emerald {
    color: var(--emerald) !important;
}

.rounded-xl {
    border-radius: 24px !important;
}

.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

.mt-110 {
    margin-top: 110px !important;
}

.pb-0 {
    padding-bottom: 0 !important;
}

.mb-40 {
    margin-bottom: 40px !important;
}

.pt-40 {
    padding-top: 40px !important;
}

.glass {
    background: var(--glass);
    backdrop-filter: blur(10px);
}

/* Fix global form margin */
form {
    margin-bottom: 0;
}

/* ========================================
   Footer Link Sections (RetailMeNot Style)
   ======================================== */
.footer-link-section {
    border: 2px solid var(--slate-200);
    border-radius: 8px;
    margin-bottom: 30px;
    background: #fff;
}

.footer-link-details {
    list-style: none;
}

.footer-link-details summary {
    list-style: none;
    cursor: pointer;
}

.footer-link-details summary::-webkit-details-marker {
    display: none;
}

.footer-link-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 30px;
    border-bottom: 2px solid var(--primary);
    background: #fff;
    transition: background 0.2s;
}

.footer-link-header:hover {
    background: var(--slate-50);
}

.footer-link-title {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-link-header .toggle-icon {
    font-size: 24px;
    font-weight: 300;
    color: var(--text-muted);
    transition: transform 0.2s;
}

.footer-link-details:not([open]) .toggle-icon {
    content: '+';
}

.footer-link-details[open] .toggle-icon::before {
    content: '−';
}

.footer-link-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    padding: 25px 30px;
}

.footer-link-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link-item {
    color: var(--text-main);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
    line-height: 1.4;
}

.footer-link-item:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Responsive Grid */
@media (max-width: 991px) {
    .footer-link-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .footer-link-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 20px;
    }

    .footer-link-header {
        padding: 15px 20px;
    }

    .footer-link-title {
        font-size: 12px;
    }
}

/* ========================================
   Section Headers - RetailMeNot Style
   ======================================== */
.section-header-rmn {
    text-align: left;
    margin-bottom: 40px;
}

.section-title-rmn {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 8px 0;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.section-subtitle-rmn {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .section-title-rmn {
        font-size: 24px;
    }

    .section-subtitle-rmn {
        font-size: 14px;
    }
}