/*
Theme Name: Mamasv - Modern Deals & Coupons
Theme URI: https://mamasv.com/
Author: Mamasv Development Team
Author URI: https://mamasv.com/
Description: A high-performance, Wethrift-inspired WordPress theme built for coupon and discount code websites. Features dynamic monthly coupon activity graphs, store-level analytics, trust-first verification metrics, modern scroll animations, and full JSON-LD structured schema.
Version: 1.3.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mamasv
Tags: coupon, deals, discount-codes, affiliate, responsive-layout, seo-friendly, custom-colors, custom-menu
*/

:root {
    --primary: #1ab1b7;
    --primary-hover: #148f94;
    --primary-light: #e6f7f8;
    --accent: #FFA619;
    --accent-hover: #e6910a;
    --accent-light: #fff6e8;
    --success: #10b981;
    --success-light: #ecfdf5;
    --success-border: #a7f3d0;
    --danger: #ef4444;
    --danger-light: #fef2f2;
    --dark: #0f172a;
    --dark-secondary: #334155;
    --muted: #64748b;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --bg-page: #f8fafc;
    --bg-card: #ffffff;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-page);
    color: var(--dark-secondary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button, input, select, textarea {
    font-family: inherit;
}

/* WordPress Core Alignment & Utility Classes */
.alignnone { margin: 5px 20px 20px 0; }
.aligncenter, div.aligncenter { display: block; margin: 15px auto; }
.alignright { float: right; margin: 5px 0 20px 20px; }
.alignleft { float: left; margin: 5px 20px 20px 0; }
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}


/* ==========================================================================
   Mamasv Animations & Micro-interactions
   ========================================================================== */

@keyframes pulseLive {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.pulse-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: var(--success);
    border-radius: var(--radius-full);
    animation: pulseLive 2s infinite;
}

@keyframes floatSlow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.animate-float {
    animation: floatSlow 4s ease-in-out infinite;
}

@keyframes glowBorder {
    0%, 100% {
        border-color: rgba(26, 177, 183, 0.3);
    }
    50% {
        border-color: rgba(26, 177, 183, 0.8);
    }
}

.animate-glow {
    animation: glowBorder 3s infinite;
}

/* Scroll Triggered Animations */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

.reveal-scale {
    opacity: 0;
    transform: scale(0.95) translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-scale.is-visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Shimmer animation for bar charts */
@keyframes barGrow {
    from {
        height: 0;
    }
    to {
        height: var(--bar-height);
    }
}

.bar-animate {
    animation: barGrow 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Toast alert popup */
@keyframes toastSlideIn {
    from {
        transform: translate(-50%, 40px);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

@keyframes toastSlideOut {
    from {
        transform: translate(-50%, 0);
        opacity: 1;
    }
    to {
        transform: translate(-50%, 40px);
        opacity: 0;
    }
}

.toast-container {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    pointer-events: none;
}

.toast-message {
    background: #0f172a;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast-message.toast-hide {
    animation: toastSlideOut 0.3s ease forwards;
}


/* ==========================================================================
   Mamasv Main Theme Stylesheet (Wethrift-Inspired)
   ========================================================================== */

/* Layout & Containers */
.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.site-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.02);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 78px;
    gap: 24px;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 800;
    color: var(--dark);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.header-brand img,
.header-brand .custom-logo,
.header-brand-logo,
.custom-logo-link img {
    max-height: 56px !important;
    height: auto !important;
    width: auto !important;
    max-width: 280px !important;
    display: block !important;
    object-fit: contain !important;
    filter: brightness(0) !important; /* Converts white PNG logo to pure black */
}

.header-brand span,
.header-brand-fallback-text {
    color: var(--dark);
    font-weight: 800;
}

.header-search {
    flex: 1;
    max-width: 480px;
    position: relative;
}

.search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-wrap svg {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    color: var(--muted);
    pointer-events: none;
}

.header-search-input {
    width: 100%;
    height: 42px;
    padding: 8px 16px 8px 42px;
    background: var(--bg-page);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 14px;
    color: var(--dark);
    transition: all var(--transition-fast);
}

.header-search-input:focus {
    outline: none;
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 177, 183, 0.15);
}

.search-results-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 1001;
    max-height: 380px;
    overflow-y: auto;
}

.search-results-dropdown.is-active {
    display: block;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-light);
    color: var(--dark);
    text-decoration: none;
    transition: background var(--transition-fast);
}

.search-result-item:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.search-result-thumb {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    object-fit: contain;
    background: #ffffff;
    border: 1px solid var(--border);
    padding: 2px;
}

.search-result-title {
    font-weight: 600;
    font-size: 14px;
}

.search-result-meta {
    font-size: 12px;
    color: var(--muted);
}

/* Header Dynamic Navigation */
.header-nav-wrap {
    display: flex;
    align-items: center;
}

.header-nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-nav-menu > li {
    position: relative;
    list-style: none;
    margin: 0;
}

.header-nav-menu > li > a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-secondary);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.header-nav-menu > li > a:hover,
.header-nav-menu > li.current-menu-item > a,
.header-nav-menu > li.current_page_item > a {
    color: var(--primary);
    background-color: var(--primary-light);
}

/* Dropdown Sub-menus */
.header-nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
    list-style: none;
    margin: 4px 0 0 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-fast);
    z-index: 1002;
}

.header-nav-menu li:hover > .sub-menu,
.header-nav-menu li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-nav-menu .sub-menu li {
    list-style: none;
    margin: 0;
}

.header-nav-menu .sub-menu li a {
    display: block;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 500;
    color: var(--dark);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.header-nav-menu .sub-menu li a:hover {
    background: var(--primary-light);
    color: var(--primary);
    padding-left: 22px;
}

/* Mobile Toggle Hamburger Button */
.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    justify-content: space-around;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.mobile-nav-toggle:hover {
    background-color: var(--primary-light);
}

.mobile-nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--dark);
    border-radius: 2px;
    transition: all 0.25s ease;
}

/* Breadcrumbs */
.breadcrumbs-bar {
    padding: 16px 0 0 0;
}

.breadcrumbs-list {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
    list-style: none;
}

.breadcrumbs-list a {
    color: var(--muted);
    text-decoration: none;
}

.breadcrumbs-list a:hover {
    color: var(--primary);
}

.breadcrumbs-separator {
    color: #cbd5e1;
}

.breadcrumbs-current {
    color: var(--dark);
    font-weight: 600;
}

/* Store Page Header */
.store-hero {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin: 20px 0 24px 0;
    box-shadow: var(--shadow-sm);
}

.store-hero-inner {
    display: flex;
    gap: 28px;
    align-items: flex-start;
}

.store-hero-logo {
    width: 110px;
    height: 110px;
    min-width: 110px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.store-hero-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.store-hero-content {
    flex: 1;
}

.store-hero-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.25;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.store-hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 12px;
}

.store-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--success-light);
    color: var(--success);
    border: 1px solid var(--success-border);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
}

.store-hero-desc {
    font-size: 14px;
    color: var(--dark-secondary);
    line-height: 1.6;
}

/* Curator / Author Banner */
.curator-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-md);
    padding: 14px 20px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.curator-avatar-wrap {
    position: relative;
    width: 48px;
    height: 48px;
    min-width: 48px;
}

.curator-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid #ffffff;
    box-shadow: var(--shadow-sm);
}

.curator-avatar-wrap .pulse-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    border: 2px solid #ffffff;
}

.curator-info {
    flex: 1;
}

.curator-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}

.curator-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
}

.curator-status {
    font-size: 11px;
    font-weight: 700;
    color: var(--success);
    background: var(--success-light);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.curator-quote {
    font-size: 13px;
    color: var(--dark-secondary);
    margin: 0;
    line-height: 1.45;
}

/* Layout 2-Columns */
.store-page-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    margin-bottom: 48px;
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
}

.filter-tab-btn {
    background: #ffffff;
    border: 1px solid var(--border);
    color: var(--dark-secondary);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-tab-btn .tab-count {
    background: var(--bg-page);
    color: var(--muted);
    padding: 2px 6px;
    border-radius: var(--radius-full);
    font-size: 11px;
}

.filter-tab-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-tab-btn.is-active {
    background: var(--dark);
    color: #ffffff;
    border-color: var(--dark);
}

.filter-tab-btn.is-active .tab-count {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* Top Featured Coupon Card (Wethrift-Style) */
.featured-coupon-card {
    background: #ffffff;
    border: 2px solid var(--primary);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 24px -4px rgba(26, 177, 183, 0.12);
    margin-bottom: 24px;
    overflow: hidden;
    position: relative;
}

.featured-ribbon {
    position: absolute;
    top: 14px;
    right: 18px;
    background: var(--accent);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.featured-card-body {
    padding: 28px;
}

.featured-card-top {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.discount-badge-large {
    min-width: 100px;
    height: 100px;
    background: var(--primary-light);
    border: 2px dashed var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px;
    text-align: center;
}

.discount-badge-large .badge-value {
    font-size: 24px;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
}

.discount-badge-large .badge-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    margin-top: 4px;
}

.featured-details {
    flex: 1;
}

.featured-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 8px;
    line-height: 1.35;
}

.featured-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 12px;
}

.featured-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 16px;
}

/* Coupon Button (The Scissor / Voucher Look) */
.btn-coupon {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    height: 48px;
    padding: 0 20px;
    background: var(--dark);
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    min-width: 170px;
}

.btn-coupon:hover {
    background: #1e293b;
    transform: translateY(-1px);
    box-shadow: 0 6px 12px -1px rgba(0, 0, 0, 0.15);
    color: #ffffff;
}

.btn-coupon .btn-text {
    flex: 1;
    text-align: center;
}

.btn-coupon .code-teaser {
    background: rgba(255, 255, 255, 0.15);
    border-left: 1px dashed rgba(255, 255, 255, 0.4);
    padding: 6px 10px;
    margin-right: -12px;
    margin-left: 12px;
    font-family: monospace;
    font-size: 12px;
    letter-spacing: 1px;
}

.btn-coupon.deal-btn {
    background: var(--accent);
}

.btn-coupon.deal-btn:hover {
    background: var(--accent-hover);
}

.btn-coupon.is-copied {
    background: var(--success);
}

/* Activity History Graph (Wethrift-Style) */
.activity-graph-section {
    background: var(--bg-page);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 18px;
    margin-top: 16px;
}

.graph-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.graph-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 6px;
}

.graph-legend {
    font-size: 12px;
    color: var(--muted);
}

.graph-bars-container {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 70px;
    padding-top: 10px;
    border-bottom: 1px solid #cbd5e1;
}

.graph-bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
    position: relative;
    cursor: pointer;
}

.graph-bar-fill {
    width: 100%;
    max-width: 22px;
    background: #10b981;
    border-radius: 4px 4px 0 0;
    transition: all var(--transition-fast);
    position: relative;
}

.graph-bar-fill.bar-high {
    background: #10b981;
}

.graph-bar-fill.bar-med {
    background: #f59e0b;
}

.graph-bar-fill.bar-low {
    background: #94a3b8;
}

.graph-bar-col:hover .graph-bar-fill {
    opacity: 0.8;
    transform: scaleY(1.05);
}

.graph-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    background: var(--dark);
    color: #ffffff;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
    z-index: 10;
}

.graph-bar-col:hover .graph-tooltip {
    opacity: 1;
}

.graph-x-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
}

.graph-x-label {
    font-size: 10px;
    color: var(--muted);
    flex: 1;
    text-align: center;
}

/* Coupon Table / List of Remaining Codes */
.coupons-list-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.coupon-list-item {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
    overflow: hidden;
}

.coupon-list-item:hover {
    border-color: #cbd5e1;
    box-shadow: var(--shadow-md);
}

.coupon-item-main {
    display: flex;
    align-items: center;
    padding: 20px;
    gap: 20px;
}

.coupon-badge-sm {
    width: 72px;
    min-width: 72px;
    height: 72px;
    background: var(--primary-light);
    border: 1px dashed var(--primary);
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4px;
}

.coupon-badge-sm .badge-val {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
}

.coupon-badge-sm .badge-txt {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
}

.coupon-item-info {
    flex: 1;
}

.coupon-item-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 6px;
    line-height: 1.35;
}

.coupon-item-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12px;
    color: var(--muted);
}

.chance-metric {
    color: var(--success);
    font-weight: 600;
}

.coupon-item-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    min-width: 170px;
}

.btn-toggle-details {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0;
}

.btn-toggle-details:hover {
    color: var(--primary);
}

.coupon-expanded-drawer {
    display: none;
    border-top: 1px solid var(--border-light);
    background: #fafafa;
    padding: 20px;
}

.coupon-expanded-drawer.is-open {
    display: block;
}

.drawer-description {
    font-size: 13px;
    color: var(--dark-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
}

/* Expired / Unverified Section */
.expired-accordion {
    margin-top: 32px;
    background: #ffffff;
    border: 1px dashed var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.expired-accordion-header {
    width: 100%;
    padding: 16px 20px;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 700;
    color: var(--muted);
    cursor: pointer;
}

.expired-accordion-header:hover {
    color: var(--dark);
}

.expired-accordion-content {
    display: none;
    padding: 0 20px 20px 20px;
}

.expired-accordion-content.is-open {
    display: block;
}

/* Store Content & FAQ */
.store-guide-section {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-top: 40px;
}

.section-heading-sm {
    font-size: 22px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 16px;
    letter-spacing: -0.3px;
}

.store-prose {
    font-size: 15px;
    line-height: 1.7;
    color: var(--dark-secondary);
    margin-bottom: 32px;
}

.store-prose p {
    margin-bottom: 14px;
}

/* Content Tables (Store Guides, Pages, Comparison Tables) */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 24px 0;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.store-prose table,
.page-content-wrapper table,
.entry-content table,
table.mamasv-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 20px 0;
    font-size: 14px;
    line-height: 1.6;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table-responsive table {
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.store-prose thead,
.page-content-wrapper thead,
.entry-content thead,
table.mamasv-table thead {
    background: #f8fafc;
}

.store-prose th,
.page-content-wrapper th,
.entry-content th,
table.mamasv-table th {
    background: #f8fafc;
    color: var(--dark);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 18px;
    border-bottom: 2px solid var(--border);
    border-right: 1px solid #f1f5f9;
    text-align: left;
    white-space: nowrap;
}

.store-prose th:last-child,
.page-content-wrapper th:last-child,
.entry-content th:last-child,
table.mamasv-table th:last-child {
    border-right: none;
}

.store-prose td,
.page-content-wrapper td,
.entry-content td,
table.mamasv-table td {
    padding: 13px 18px;
    border-bottom: 1px solid #f1f5f9;
    border-right: 1px solid #f8fafc;
    color: var(--dark-secondary);
    vertical-align: middle;
}

.store-prose td:last-child,
.page-content-wrapper td:last-child,
.entry-content td:last-child,
table.mamasv-table td:last-child {
    border-right: none;
}

.store-prose tr:last-child td,
.page-content-wrapper tr:last-child td,
.entry-content tr:last-child td,
table.mamasv-table tr:last-child td {
    border-bottom: none;
}

.store-prose tbody tr:nth-child(even),
.page-content-wrapper tbody tr:nth-child(even),
.entry-content tbody tr:nth-child(even),
table.mamasv-table tbody tr:nth-child(even) {
    background: #fbfcfe;
}

.store-prose tbody tr:hover,
.page-content-wrapper tbody tr:hover,
.entry-content tbody tr:hover,
table.mamasv-table tbody tr:hover {
    background: #f1f5f9;
    transition: background var(--transition-fast);
}

.store-prose ul,
.store-prose ol {
    margin: 14px 0 20px 24px;
}

.store-prose li {
    margin-bottom: 8px;
}

.store-prose h2,
.store-prose h3,
.store-prose h4 {
    color: var(--dark);
    font-weight: 800;
    margin: 28px 0 14px 0;
    letter-spacing: -0.3px;
}

/* Accordion FAQs */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.faq-question-btn {
    width: 100%;
    padding: 16px 20px;
    background: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
    text-align: left;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.faq-question-btn:hover {
    background: var(--bg-page);
}

.faq-answer-pane {
    display: none;
    padding: 0 20px 18px 20px;
    font-size: 14px;
    color: var(--dark-secondary);
    line-height: 1.6;
    background: #ffffff;
}

.faq-card.is-open .faq-answer-pane {
    display: block;
}

.faq-card.is-open .faq-question-btn {
    border-bottom: 1px solid var(--border-light);
}

/* Sidebar Widgets */
.sidebar-widget {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.sidebar-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
}

.sidebar-stats-list {
    list-style: none;
}

.sidebar-stat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 13px;
    border-bottom: 1px solid var(--border-light);
}

.sidebar-stat-row:last-child {
    border-bottom: none;
}

.stat-label {
    color: var(--muted);
}

.stat-val {
    font-weight: 700;
    color: var(--dark);
}

.btn-visit-store {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 44px;
    background: var(--primary);
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    border-radius: var(--radius-md);
    text-decoration: none;
    margin-top: 16px;
    transition: background var(--transition-fast);
}

.btn-visit-store:hover {
    background: var(--primary-hover);
    color: #ffffff;
}

.similar-stores-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.similar-store-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--dark-secondary);
    font-size: 12px;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.similar-store-pill:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}

.similar-store-thumb {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Homepage Styles */
.hero-homepage {
    padding: 70px 0 50px 0;
    text-align: center;
    background: linear-gradient(180deg, #ffffff 0%, var(--bg-page) 100%);
    border-bottom: 1px solid var(--border);
}

.hero-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-light);
    color: #c27803;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 166, 25, 0.3);
}

.hero-title-main {
    font-size: 46px;
    font-weight: 900;
    color: var(--dark);
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.hero-title-main span {
    color: var(--primary);
}

.hero-subtext {
    font-size: 18px;
    color: var(--muted);
    max-width: 640px;
    margin: 0 auto 32px auto;
}

.hero-search-box {
    max-width: 620px;
    margin: 0 auto 24px auto;
}

.hero-search-input {
    height: 56px;
    font-size: 16px;
    padding-left: 50px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
}

.trending-pills-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.trending-pills-label {
    color: var(--muted);
    font-weight: 600;
}

.trending-pill-link {
    background: #ffffff;
    border: 1px solid var(--border);
    padding: 5px 12px;
    border-radius: var(--radius-full);
    color: var(--dark-secondary);
    font-weight: 600;
    transition: all var(--transition-fast);
}

.trending-pill-link:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}

/* Home Section Layouts */
.home-section {
    padding: 60px 0;
}

.section-header-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 32px;
}

.section-title-big {
    font-size: 28px;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 14px;
    color: var(--muted);
    margin-top: 4px;
}

.stores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.store-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px 16px;
    text-align: center;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.store-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.store-card-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    margin-bottom: 12px;
}

.store-card-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}

.store-card-count {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
}

/* Trust Section (How It Works) */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.trust-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.trust-icon-box {
    width: 64px;
    height: 64px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
}

.trust-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 10px;
}

.trust-text {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
}

/* Live Stats Counter Banner */
.stats-banner {
    background: var(--dark);
    color: #ffffff;
    border-radius: var(--radius-lg);
    padding: 48px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
    margin: 40px 0;
}

.stat-counter-number {
    font-size: 36px;
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-counter-label {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Site Footer */
.site-footer {
    background: #fafbfc;
    border-top: 1px solid var(--border);
    padding: 56px 0 32px 0;
    margin-top: 60px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1.2fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col-brand .header-brand img,
.footer-col-brand .custom-logo,
.footer-col-brand .header-brand-logo {
    max-height: 42px !important;
    filter: brightness(0) !important;
    margin-bottom: 8px;
}

.footer-about-text {
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.6;
    margin-top: 10px;
    max-width: 380px;
}

.footer-heading {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
    letter-spacing: -0.2px;
}

.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links-list a {
    font-size: 14px;
    color: var(--dark-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-links-list a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--muted);
}

.affiliate-disclaimer {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 16px;
    line-height: 1.5;
}

/* Responsive Media Queries */
@media (max-width: 991px) {
    .mobile-nav-toggle {
        display: flex;
    }
    .header-nav-wrap {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: #ffffff;
        border-bottom: 2px solid var(--border);
        box-shadow: var(--shadow-lg);
        padding: 16px 20px 24px;
        z-index: 999;
    }
    .header-nav-wrap.is-active {
        display: block;
    }
    .header-nav-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }
    .header-nav-menu > li > a {
        display: block;
        padding: 10px 14px;
        font-size: 15px;
    }
    .header-nav-menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-left: 2px solid var(--primary);
        margin: 4px 0 8px 16px;
        padding: 0;
        background: transparent;
    }
    .header-nav-menu .sub-menu li a {
        padding: 6px 12px;
        font-size: 14px;
    }
    .store-page-layout {
        grid-template-columns: 1fr;
    }
    .trust-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .stats-banner {
        grid-template-columns: repeat(2, 1fr);
        padding: 32px;
    }
    .footer-top {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .hero-title-main {
        font-size: 34px;
    }
}

@media (max-width: 767px) {
    .header-search {
        display: none;
    }
    .store-hero-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .store-hero-meta {
        justify-content: center;
    }
    .featured-card-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .featured-actions {
        justify-content: center;
    }
    .coupon-item-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .coupon-item-cta {
        width: 100%;
        align-items: stretch;
    }
    .btn-coupon {
        width: 100%;
    }
    .stores-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/* ==========================================================================
   A-Z Stores Directory Page (page-tpl_stores_alt.php & page-tpl_stores.php)
   ========================================================================== */
.directory-page-container {
    padding-top: 24px;
    padding-bottom: 72px;
}

.directory-hero {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 36px auto;
}

.directory-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}

.directory-subtitle {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.6;
}

.directory-search-bar {
    position: relative;
    max-width: 520px;
    margin: 20px auto 0 auto;
    display: flex;
    align-items: center;
}

.directory-search-bar svg {
    position: absolute;
    left: 16px;
    width: 20px;
    height: 20px;
    color: var(--muted);
    pointer-events: none;
}

.directory-search-bar input {
    width: 100%;
    height: 48px;
    padding: 10px 42px 10px 48px;
    background: #ffffff;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 15px;
    color: var(--dark);
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.directory-search-bar input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 177, 183, 0.15);
}

#directory-clear-filter {
    position: absolute;
    right: 14px;
    background: transparent;
    border: none;
    font-size: 20px;
    color: var(--muted);
    cursor: pointer;
    line-height: 1;
}

/* Alphabet Jump Bar */
.alphabet-nav-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 80px;
    z-index: 100;
}

.alphabet-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    color: var(--dark);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.alphabet-pill:hover,
.alphabet-pill.is-active {
    background: var(--primary);
    color: #ffffff;
}

.alphabet-pill.is-empty {
    color: #cbd5e1;
    pointer-events: none;
}

/* Alphabet Group Sections */
.alphabet-group {
    margin-bottom: 44px;
    scroll-margin-top: 150px;
}

.alphabet-group-header {
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.alphabet-letter-badge {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    background: var(--primary-light);
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
}

.alphabet-count {
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
}

.directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.directory-store-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.directory-store-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.directory-card-logo-wrap {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: #ffffff;
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.directory-card-logo {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.directory-card-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.directory-card-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.directory-card-badge {
    font-size: 12px;
    color: var(--muted);
    font-weight: 500;
}

/* ==========================================================================
   Categories Grid Page (page-tpl_categories.php)
   ========================================================================== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.category-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.category-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.category-card-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.category-card-info {
    min-width: 0;
}

.category-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}

.category-card-count {
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
}

/* ==========================================================================
   Blog Posts Grid & Single Post
   ========================================================================== */
.home-blog-section {
    margin-top: 60px;
}

.home-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

.home-blog-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: all var(--transition-fast);
}

.home-blog-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.blog-card-thumb-wrap {
    display: block;
    height: 200px;
    overflow: hidden;
    background: #f1f5f9;
}

.blog-card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.home-blog-card:hover .blog-card-thumb {
    transform: scale(1.04);
}

.blog-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--muted);
    font-weight: 500;
    margin-bottom: 10px;
}

.blog-card-cat {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 11.5px;
    letter-spacing: 0.5px;
}

.blog-card-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 12px;
}

.blog-card-title a {
    color: var(--dark);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.blog-card-title a:hover {
    color: var(--primary);
}

.blog-card-excerpt {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.blog-card-readmore {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.blog-card-readmore:hover {
    text-decoration: underline;
}

/* Single Post Specific */
.single-post-article {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 44px;
    box-shadow: var(--shadow-sm);
}

.single-post-header {
    margin-bottom: 28px;
}

.single-post-cat-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    text-decoration: none;
    margin-bottom: 12px;
}

.single-post-title {
    font-size: 34px;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.25;
    letter-spacing: -0.5px;
    margin-bottom: 14px;
}

.single-post-meta {
    font-size: 13.5px;
    color: var(--muted);
    display: flex;
    gap: 8px;
    align-items: center;
}

.single-post-featured-media {
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 32px;
}

.single-post-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Pagination Bar */
.posts-pagination-bar .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    margin: 0 4px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: #ffffff;
    color: var(--dark);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.posts-pagination-bar .page-numbers.current,
.posts-pagination-bar .page-numbers:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

/* Mini Store Logo in Category / Search Cards */
.card-store-mini-logo {
    max-height: 24px;
    max-width: 70px;
    object-fit: contain;
    margin-bottom: 4px;
}

.coupon-store-tag {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.coupon-store-tag a {
    color: var(--primary);
    text-decoration: none;
}


/* ==========================================================================
   Author / Curator Profile Page Styles
   ========================================================================== */
.author-page-wrapper {
    background: #f8fafc;
    min-height: 80vh;
}

.author-hero-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 40px;
    box-shadow: var(--shadow-sm);
}

.author-hero-grid {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 36px;
    align-items: start;
}

.author-avatar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.author-avatar-frame {
    position: relative;
    width: 180px;
    height: 180px;
    border-radius: var(--radius-full);
    border: 4px solid #ffffff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
    overflow: visible;
}

.author-avatar-lg {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-full);
    object-fit: cover;
    display: block;
}

.author-pulse-dot {
    position: absolute;
    bottom: 10px;
    right: 12px;
    width: 18px;
    height: 18px;
    background: var(--success);
    border: 3px solid #ffffff;
    border-radius: var(--radius-full);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
    animation: pulse 2s infinite;
}

.author-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    background: var(--success-light);
    color: var(--success);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.author-badge-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.badge-verified-curator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ecfdf5;
    color: #065f46;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    border: 1px solid #a7f3d0;
}

.badge-human-tested {
    display: inline-flex;
    align-items: center;
    background: #eff6ff;
    color: #1e40af;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    border: 1px solid #bfdbfe;
}

.author-main-name {
    font-size: 32px;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.2;
    margin: 0 0 6px 0;
}

.author-main-role {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    margin: 0 0 16px 0;
}

.author-quote-box {
    position: relative;
    background: #f8fafc;
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 14px 18px 14px 40px;
    margin: 0 0 18px 0;
    font-style: italic;
    color: var(--dark-secondary);
    font-size: 14.5px;
    line-height: 1.5;
}

.author-quote-box .quote-icon {
    position: absolute;
    left: 12px;
    top: 14px;
    color: var(--primary);
}

.author-meta-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    border: 1px solid #e2e8f0;
}

.author-actions-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.btn-author-social {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.btn-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(188, 24, 136, 0.25);
}

.btn-instagram:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(188, 24, 136, 0.35);
    color: #ffffff;
}

.btn-author-contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    background: var(--dark);
    color: #ffffff;
    transition: all var(--transition-fast);
}

.btn-author-contact:hover {
    background: var(--primary);
    color: #ffffff;
}

.btn-author-report {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    background: #ffffff;
    color: var(--dark-secondary);
    border: 1px solid var(--border);
    transition: all var(--transition-fast);
}

.btn-author-report:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Author Section Cards */
.author-section-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 36px;
    box-shadow: var(--shadow-sm);
}

.author-section-card .section-title-wrap {
    margin-bottom: 24px;
}

.section-subtitle {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--primary);
    margin-bottom: 4px;
}

.author-section-card .section-heading {
    font-size: 22px;
    font-weight: 800;
    color: var(--dark);
    margin: 0;
}

/* Bio Content */
.author-bio-content {
    font-size: 15px;
    line-height: 1.7;
    color: var(--dark-secondary);
}

.author-bio-content .bio-lead {
    font-size: 16.5px;
    font-weight: 500;
    color: var(--dark);
    line-height: 1.65;
    margin-bottom: 16px;
}

.author-bio-content p {
    margin-bottom: 16px;
}

.author-callout-quote {
    background: #f0fdfa;
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 18px 24px;
    margin: 24px 0 8px 0;
}

.author-callout-quote p {
    font-size: 15px;
    color: #134e4a;
    margin-bottom: 6px;
    line-height: 1.6;
}

.author-callout-quote .callout-signoff {
    font-weight: 700;
    color: var(--primary);
    font-size: 13px;
}

/* Certifications Grid */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.cert-card {
    display: flex;
    gap: 16px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: all var(--transition-fast);
}

.cert-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.cert-icon-wrap {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-info .cert-badge {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--primary);
    margin-bottom: 4px;
}

.cert-info .cert-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 6px 0;
    line-height: 1.35;
}

.cert-info .cert-desc {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
    margin: 0;
}

/* 4-Step Verification Grid */
.verification-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.step-card {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 22px 18px;
    position: relative;
    transition: all var(--transition-fast);
}

.step-card:hover {
    background: #ffffff;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.step-num {
    font-size: 26px;
    font-weight: 900;
    color: var(--primary);
    opacity: 0.6;
    line-height: 1;
    margin-bottom: 12px;
}

.step-title {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 8px 0;
    line-height: 1.35;
}

.step-desc {
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.5;
    margin: 0;
}

/* Curated Stores Grid */
.curated-stores-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.curated-store-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.curated-store-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.curated-store-logo-wrap {
    width: 44px;
    height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: var(--radius-sm);
    padding: 4px;
}

.curated-store-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.curated-store-meta {
    flex: 1;
    min-width: 0;
}

.curated-store-name {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 2px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.curated-store-count {
    font-size: 11.5px;
    color: var(--primary);
    font-weight: 600;
}

.curated-store-arrow {
    color: var(--border);
    font-weight: 700;
    transition: all var(--transition-fast);
}

.curated-store-card:hover .curated-store-arrow {
    color: var(--primary);
    transform: translateX(3px);
}

/* Author Contact Banner */
.author-contact-banner {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: var(--radius-lg);
    padding: 36px 40px;
    color: #ffffff;
}

.author-contact-banner .banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.author-contact-banner .banner-title {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 8px 0;
}

.author-contact-banner .banner-desc {
    font-size: 14px;
    color: #94a3b8;
    margin: 0;
    max-width: 580px;
    line-height: 1.5;
}

/* Responsive Author Breakpoints */
@media (max-width: 900px) {
    .author-hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .author-avatar-col {
        margin: 0 auto;
    }
    .author-badge-row,
    .author-meta-pills,
    .author-actions-row {
        justify-content: center;
    }
    .certs-grid {
        grid-template-columns: 1fr;
    }
    .verification-steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .curated-stores-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .author-contact-banner .banner-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .author-hero-card {
        padding: 24px 20px;
    }
    .author-section-card {
        padding: 24px 18px;
    }
    .verification-steps-grid {
        grid-template-columns: 1fr;
    }
    .curated-stores-grid {
        grid-template-columns: 1fr;
    }
}
