:root {
    /* Modern Marketplace Palette */
    --accent: #00ff88;
    --accent-dark: #00cc6a;
    --dark: #121212;
    --light: #FBFBFB;
    --bg-body: #F5F5F5;
    --bg-card: #ffffff;
    --border: #E5E5E5;
    --border-light: #F1F1F1;
    --text-main: #121212;
    --text-muted: #444444;
    /* WCAG 4.5:1 contrast: was #555555 */
    --text-link: #1a1a1a;
    /* High contrast links */
    --focus-ring: #0066cc;
    /* Accessible focus color */
    --transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

/* ============================================
   ACCESSIBILITY UTILITIES
   ============================================ */

/* Screen reader only - visually hidden but accessible */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--dark);
    color: white;
    padding: 10px 20px;
    z-index: 10000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Enhanced focus states for keyboard navigation */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
}

/* Focus visible only for keyboard users */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
    outline: none;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* --- Idea 11: Dark Mode --- */
[data-theme="dark"] {
    --accent: #00ff88;
    --accent-dark: #00cc6a;
    --dark: #FBFBFB;
    --light: #121212;
    --bg-body: #0a0a0a;
    --bg-card: #1a1a1a;
    --border: #2a2a2a;
    --border-light: #222222;
    --text-main: #f0f0f0;
    --text-muted: #b0b0b0;
    /* WCAG 4.5:1 contrast: was #999999 */
}

/* Theme toggle button */
.theme-toggle {
    background: none;
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: var(--bg-card);
    transform: scale(1.05);
}

.theme-toggle .moon-icon {
    display: none;
}

[data-theme="dark"] .theme-toggle .sun-icon {
    display: none;
}

[data-theme="dark"] .theme-toggle .moon-icon {
    display: inline;
}

/* Apply theme colors to key elements */
body,
.header-main,
.quick-view-content,
.spin-wheel-modal {
    transition: background-color 0.4s ease, color 0.4s ease;
}

[data-theme="dark"] .header-main {
    background: var(--bg-card);
    border-color: var(--border);
}

[data-theme="dark"] .quick-view-content {
    background: var(--bg-card);
    color: var(--text-main);
}

[data-theme="dark"] .spin-wheel-modal {
    background: var(--bg-card);
}

[data-theme="dark"] .close-quick-view,
[data-theme="dark"] .close-wheel {
    color: var(--text-main);
}

[data-theme="dark"] .tile-content,
[data-theme="dark"] .deal-card {
    background: var(--bg-card);
}

[data-theme="dark"] .usp-bar {
    background: var(--bg-card);
    border-color: var(--border);
}

[data-theme="dark"] .qv-desc {
    color: var(--text-muted);
}

/* ============================================
   COMPREHENSIVE DARK MODE OVERRIDES
   Fixed: All issues from CSS Audit
   ============================================ */

/* Category Pills - CRITICAL: was invisible */
[data-theme="dark"] .cat-pill {
    background: var(--bg-card);
    color: var(--text-main);
    border-color: var(--border);
}

[data-theme="dark"] .cat-pill:hover {
    background: var(--accent);
    color: var(--dark);
    border-color: var(--accent);
}

/* Search Bar - Medium: jarring light background */
[data-theme="dark"] .search-pill {
    background: var(--bg-card);
    border-color: var(--border);
}

[data-theme="dark"] .search-pill input {
    color: var(--text-main);
}

[data-theme="dark"] .search-pill input::placeholder {
    color: var(--text-muted);
}

[data-theme="dark"] .search-pill:focus-within {
    background: #2a2a2a;
    border-color: var(--accent);
}

/* Product Cards - HIGH: white backgrounds didn't adapt */
[data-theme="dark"] .product-card-luxury {
    background: var(--bg-card);
    border-color: var(--border);
}

[data-theme="dark"] .product-card-luxury .image-wrap {
    background: #222222;
}

[data-theme="dark"] .product-info h4 {
    color: var(--text-muted);
}

[data-theme="dark"] .product-info .price {
    color: var(--text-main);
}

/* Newsletter Section - CRITICAL: white on white text */
[data-theme="dark"] .newsletter-section {
    background: #0d0d0d;
}

[data-theme="dark"] .newsletter-box h2 {
    color: white;
}

[data-theme="dark"] .newsletter-box p {
    color: var(--text-muted);
}

[data-theme="dark"] .newsletter-input {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border-color: rgba(255, 255, 255, 0.15);
}

/* Quick Categories - CRITICAL: bright white didn't adapt */
[data-theme="dark"] .quick-category-scroll {
    background: var(--bg-card);
}

[data-theme="dark"] .quick-cat-item {
    color: var(--text-main);
}

[data-theme="dark"] .quick-cat-item span {
    color: var(--text-muted);
}

/* Trust Badges/Stats Cards - CRITICAL: invisible cards */
[data-theme="dark"] .stat-card,
[data-theme="dark"] .trust-badge-card,
[data-theme="dark"] .marketplace-stat-card {
    background: var(--bg-card) !important;
    color: var(--text-main) !important;
    border-color: var(--border) !important;
}

[data-theme="dark"] .stat-card *,
[data-theme="dark"] .trust-badge-card *,
[data-theme="dark"] .marketplace-stat-card * {
    color: inherit !important;
}

[data-theme="dark"] .stat-number,
[data-theme="dark"] .stat-label {
    color: var(--text-main) !important;
}

/* Bento Grid boxes */
[data-theme="dark"] .bento-box {
    background: var(--bg-card);
    border-color: var(--border);
}

[data-theme="dark"] .bento-1 {
    background: var(--bg-card);
}

/* Spotlight Section */
[data-theme="dark"] .spotlight-wrap {
    background: var(--bg-card);
    border-color: var(--border);
}

/* Category Tiles */
[data-theme="dark"] .tile {
    background: var(--bg-card);
}

/* Footer Links - HIGH: dark blue on black */
[data-theme="dark"] .footer-link,
[data-theme="dark"] footer a {
    color: var(--text-muted) !important;
}

[data-theme="dark"] .footer-link:hover,
[data-theme="dark"] footer a:hover {
    color: var(--accent) !important;
}

[data-theme="dark"] footer h4,
[data-theme="dark"] .footer-heading {
    color: var(--text-main);
}

/* Footer Main Background - CRITICAL: hardcoded white inline style */
[data-theme="dark"] .footer-main {
    background: var(--bg-body) !important;
}

[data-theme="dark"] .footer-brand p,
[data-theme="dark"] .footer-bottom,
[data-theme="dark"] .footer-bottom p {
    color: var(--text-muted);
}

[data-theme="dark"] .footer-brand h3 {
    color: var(--text-main);
}

/* View All Button - Medium: poor visibility */
[data-theme="dark"] .view-all-btn,
[data-theme="dark"] .btn-view-all {
    background: var(--bg-card);
    color: var(--accent);
    border: 1px solid var(--border);
}

[data-theme="dark"] .view-all-btn:hover,
[data-theme="dark"] .btn-view-all:hover {
    background: var(--accent);
    color: var(--dark);
    border-color: var(--accent);
}

/* Data Strip - ensure contrast */
[data-theme="dark"] .data-strip,
[data-theme="dark"] .stats-bar {
    background: var(--bg-card);
}

[data-theme="dark"] .data-number,
[data-theme="dark"] .data-label {
    color: var(--text-main);
}

/* Logo in dark mode */
[data-theme="dark"] .logo-link {
    color: var(--text-main);
}

/* Mobile Nav in dark mode */
[data-theme="dark"] .mobile-nav {
    background: var(--bg-card);
    border-color: var(--border);
}

[data-theme="dark"] .mobile-nav-links a {
    color: var(--text-main);
    border-color: var(--border);
}

[data-theme="dark"] .mobile-nav-links a:hover {
    background: var(--accent);
    color: var(--dark);
}

/* Quick Categories - CRITICAL: hardcoded white background */
[data-theme="dark"] .quick-categories {
    background: var(--bg-card);
}

[data-theme="dark"] .quick-cat {
    color: var(--text-main);
}

[data-theme="dark"] .quick-cat:hover {
    background: var(--bg-body);
}

/* Stats Cards - CRITICAL: hardcoded white backgrounds */
[data-theme="dark"] .stats-card {
    background: var(--bg-card);
    box-shadow: 0 3px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .stats-number {
    color: var(--text-main);
}

[data-theme="dark"] .stats-label {
    color: var(--text-muted);
}

/* Trust Badges Row - CRITICAL: hardcoded white */
[data-theme="dark"] .trust-badges-row {
    background: var(--bg-card);
}

[data-theme="dark"] .trust-item {
    color: var(--text-main);
}

/* Data Point labels - contrast fix */
[data-theme="dark"] .data-point span {
    color: var(--text-main);
}

[data-theme="dark"] .data-point label {
    color: var(--accent);
}

/* Spotlight Card */
[data-theme="dark"] .spotlight-card {
    background: var(--bg-card);
}

[data-theme="dark"] .spotlight-content h3 {
    color: var(--text-main);
}

[data-theme="dark"] .spotlight-content p {
    color: var(--text-muted);
}

/* Section Headers */
[data-theme="dark"] .section-header h2 {
    color: var(--text-main);
}

/* View All Button on section header */
[data-theme="dark"] .section-header .btn-black {
    background: var(--bg-card);
    color: var(--accent);
    border: 1px solid var(--border);
}

[data-theme="dark"] .section-header .btn-black:hover {
    background: var(--accent);
    color: #000;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    margin: 0;
}

h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* --- Luxury Header --- */
.header-main {
    height: 100px;
    display: flex;
    align-items: center;
    background: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.header-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 60px !important;
}

.logo-link {
    text-decoration: none;
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    color: var(--dark);
    font-weight: 900;
}

.search-pill {
    background: #F5F5F5;
    border-radius: 50px;
    padding: 5px 5px 5px 25px;
    display: flex;
    align-items: center;
    width: 450px;
    max-width: 50%;
    flex: 1;
    border: 2px solid transparent;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.search-pill:focus-within {
    background: white;
    border-color: var(--dark);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.search-pill input {
    border: none;
    outline: none;
    flex: 1;
    font-size: 14px;
    background: transparent;
    height: 40px;
    line-height: 40px;
}

.search-pill .btn-circle {
    width: 40px;
    height: 40px;
    background: var(--dark);
    color: white;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Marketplace Best Practices: Category Pills --- */
.category-pill-bar {
    display: flex;
    gap: 15px;
    padding: 30px 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.category-pill-bar::-webkit-scrollbar {
    display: none;
}

.cat-pill {
    background: white;
    border: 1px solid var(--border);
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    color: var(--dark);
    transition: var(--transition);
}

.cat-pill:hover {
    background: var(--dark);
    color: white;
    transform: translateY(-2px);
}

/* --- High-End USP Bar --- */
.usp-bar {
    display: flex;
    justify-content: space-between;
    padding: 25px 60px;
    background: white;
    border-radius: 20px;
    margin-bottom: 40px;
    border: 1px solid var(--border);
}

.usp-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    font-weight: 600;
}

.usp-icon {
    width: 48px;
    height: 48px;
    background: var(--dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

/* --- Category Visual Tiles --- */
.category-tiles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 80px;
}

.tile {
    background: white;
    border-radius: 30px;
    height: 400px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.tile:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-deep);
}

.tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.tile:hover img {
    transform: scale(1.1);
}

.tile-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    padding-top: 80px;
    background: linear-gradient(transparent 0%, rgba(0, 0, 0, 0.85) 100%);
    color: white;
}

.tile-content h3 {
    font-size: 28px;
    margin: 0 0 10px;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.tile-content span {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Product Grids --- */
.market-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 80px;
}

.product-card-luxury {
    background: white;
    padding: 0;
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.product-card-luxury:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.image-wrap {
    height: 250px;
    background: #F9F9F9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-info h4 {
    margin: 0 0 10px;
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    /* Limit to 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}

.product-info .price {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    font-family: 'Playfair Display', serif;
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.product-info .price del {
    color: var(--text-muted);
    font-size: 14px;
}

.product-info .price ins {
    text-decoration: none;
    color: var(--accent);
}

/* HOT Badge Styling */
.badge-tag {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    color: white;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 1px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

/* Product card flex for equal heights */
.product-card-luxury {
    display: flex;
    flex-direction: column;
}

.image-wrap img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* --- Horizontal Deals Scrolling --- */
/* --- Horizontal Deals Scrolling --- */
/* --- Horizontal Deals Scrolling --- */
.deals-container {
    margin-bottom: 80px;
    padding: 40px;
    background: #000;
    border-radius: 30px;
    color: white;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    z-index: 1;
    /* For stacking context */
}

/* Animated Border Effect */
.deals-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00ff88, #00b8ff, #ff0055, #00ff88);
    background-size: 400%;
    z-index: -1;
    border-radius: 32px;
    animation: neonBorder 20s linear infinite;
    opacity: 0.6;
}

/* Inner black background to cover the center of the gradient */
.deals-container::after {
    content: '';
    position: absolute;
    inset: 2px;
    /* Border width */
    background: #000;
    border-radius: 30px;
    z-index: -1;
}

@keyframes neonBorder {
    0% {
        background-position: 0 0;
    }

    50% {
        background-position: 400% 0;
    }

    100% {
        background-position: 0 0;
    }
}

.deals-scroll {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 0;
    scrollbar-width: none;
}

.deals-scroll::-webkit-scrollbar {
    display: none;
}

.deal-card {
    background: #1A1A1A;
    min-width: 320px;
    border-radius: 30px;
    padding: 25px;
    border: 1px solid #333;
    transition: var(--transition);
}

.deal-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}

.deal-card h4 {
    color: white;
    margin-top: 15px;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.5em;
}

/* Deal card footer */
.deal-card>div:last-child {
    gap: 15px;
}

.deal-card .bestseller-badge {
    white-space: nowrap;
}

/* Deal card image container - prevent overflow */
.deal-card .deal-image-wrap {
    height: 180px;
    background: #222;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    overflow: hidden;
    border: 1px solid #333;
}

.deal-card .deal-image-wrap img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* --- How it Works Bento --- */
.bento-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: repeat(2, 300px);
    gap: 30px;
    margin-bottom: 80px;
}

.bento-box {
    background: white;
    border-radius: 40px;
    padding: 50px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    position: relative;
}

.bento-1 {
    grid-row: span 2;
    background: #fdfdfd;
}

.bento-2 {
    background: var(--dark);
    color: white;
}

.bento-3 {
    background: var(--accent);
    color: white;
}

/* Consistent bento headings */
.bento-box h3 {
    font-size: 32px;
    margin: 0 0 15px;
    line-height: 1.2;
}

.bento-1 h3 {
    font-size: 42px;
}

.bento-box p {
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

/* --- Spotlight Section --- */
.spotlight-wrap {
    background: white;
    border-radius: 50px;
    padding: 100px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
    margin-bottom: 80px;
    border: 1px solid var(--border);
}

.spotlight-img {
    width: 100%;
    border-radius: 30px;
    box-shadow: var(--shadow-deep);
}

/* --- Newsletter --- */
.newsletter-section {
    background: var(--dark);
    padding: 120px 0;
    border-radius: 60px;
    text-align: center;
    color: white;
    margin-bottom: 80px;
}

.newsletter-box {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-box h2 {
    font-size: 52px;
    color: white;
    margin-bottom: 30px;
}

.newsletter-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 40px;
    border-radius: 50px;
    width: 100%;
    color: white;
    font-size: 16px;
    outline: none;
    margin-bottom: 20px;
}

.newsletter-input:focus {
    border-color: var(--accent);
}

/* Newsletter subscribe button */
.newsletter-box .btn-black {
    padding: 20px 50px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-box .btn-black:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Global button styles */
.btn-black {
    display: inline-block;
    padding: 15px 40px;
    background: var(--dark);
    color: white;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-black:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* --- Trending Ticker --- */
.trending-ticker {
    background: #000;
    color: var(--accent);
    padding: 12px 0;
    overflow: hidden;
    white-space: nowrap;
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.ticker-wrap {
    display: inline-block;
    animation: ticker 40s linear infinite;
}

.ticker-item {
    display: inline-block;
    padding: 0 50px;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* --- Video Hero Transformation --- */
.hero-video-wrap {
    position: relative;
    height: 85vh;
    border-radius: 40px;
    overflow: hidden;
    margin-bottom: 80px;
    background: #000;
}

.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    opacity: 0.6;
}

.hero-content-overlay {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px;
    color: white;
}

.hero-content-overlay h1 {
    font-size: 92px;
    color: white;
    line-height: 0.9;
    margin: 30px 0;
}

/* --- Infographic Data --- */
.data-strip {
    display: flex;
    justify-content: space-around;
    padding: 80px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 80px;
}

.data-point {
    text-align: center;
}

.data-point span {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 900;
    color: var(--dark);
}

.data-point label {
    font-size: 12px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 2px;
}

/* --- Quick View Modal --- */
.qv-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.qv-content {
    background: white;
    width: 900px;
    height: 600px;
    border-radius: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

/* ========================================
   AMAZON-STYLE HERO GRID
======================================== */
.hero-marketplace {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.hero-main-banner {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f23 100%);
    border-radius: 20px;
    padding: 60px;
    color: white;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-main-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    opacity: 0.15;
}

.hero-banner-content {
    flex: 1;
    z-index: 2;
}

.hero-product-showcase {
    position: relative;
    z-index: 2;
}

.hero-product-img {
    width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 255, 136, 0.3);
    animation: float 3s ease-in-out infinite;
}

.hero-product-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 60%);
    opacity: 0.2;
    z-index: -1;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.2;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.hero-deal-badge {
    background: var(--accent);
    color: black;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 800;
    display: inline-block;
    margin-bottom: 20px;
}

.hero-main-banner h1 {
    font-size: 72px;
    margin: 0;
    line-height: 1;
    color: white;
}

.hero-main-banner h2 {
    font-size: 36px;
    color: var(--accent);
    margin: 10px 0 20px;
}

.hero-main-banner p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    margin-bottom: 30px;
}

.hero-cta {
    background: var(--accent);
    color: black;
    padding: 18px 40px;
    border-radius: 50px;
    font-weight: 800;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
}

.hero-cta:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

.hero-countdown {
    margin-top: 30px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.hero-countdown strong {
    color: #ff6b6b;
    font-family: monospace;
    font-size: 18px;
}

.hero-side-panels {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hero-panel {
    flex: 1;
    border-radius: 16px;
    padding: 25px;
    color: white;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.hero-panel:hover {
    transform: translateX(-5px);
    box-shadow: 5px 5px 30px rgba(0, 0, 0, 0.3);
}

.panel-tag {
    font-size: 11px;
    font-weight: 700;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-panel h3 {
    margin: 10px 0 5px;
    font-size: 20px;
    color: white;
}

.hero-panel p {
    color: var(--accent);
    font-weight: 700;
    margin: 0 0 10px;
    font-size: 14px;
}

.hero-panel .panel-link {
    color: white;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    opacity: 0.7;
}

.hero-panel:hover .panel-link {
    opacity: 1;
}

/* Panel Layout with Product Images */
.hero-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
}

.panel-text {
    flex: 1;
}

.panel-product-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    transition: var(--transition);
}

.hero-panel:hover .panel-product-img {
    transform: scale(1.1) rotate(3deg);
}

/* Panel Color Variations */
.panel-lights {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.panel-vacuum {
    background: linear-gradient(135deg, #0f3460 0%, #16213e 100%);
}

.panel-decor {
    background: linear-gradient(135deg, #533483 0%, #1a1a2e 100%);
}

/* Quick Category Bar */
.quick-categories {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 25px 0;
    background: white;
    border-radius: 16px;
    margin-bottom: 40px;
}

.quick-cat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px 25px;
    text-decoration: none;
    color: var(--text-main);
    border-radius: 12px;
    transition: var(--transition);
}

.quick-cat:hover {
    background: var(--bg-body);
    transform: translateY(-3px);
}

.cat-icon {
    font-size: 28px;
}

.quick-cat span:last-child {
    font-size: 12px;
    font-weight: 600;
}

/* ========================================
   MARKETPLACE STATS GRID
======================================== */
.marketplace-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
    margin-bottom: 60px;
}

.spotlight-card {
    grid-column: span 2;
    grid-row: span 2;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
}

.spotlight-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--accent);
    color: black;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
}

.spotlight-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.spotlight-content {
    padding: 25px;
}

.spotlight-content h3 {
    margin: 0 0 10px;
    font-size: 24px;
}

.spotlight-stars {
    color: #ffc107;
    font-size: 16px;
    margin-bottom: 15px;
}

.spotlight-stars span {
    color: var(--text-muted);
    font-size: 13px;
}

.spotlight-price {
    font-size: 20px;
    margin-bottom: 20px;
}

.spotlight-price del {
    color: var(--text-muted);
    font-size: 16px;
    margin-right: 10px;
}

.spotlight-price strong {
    color: #e63946;
}

.spotlight-btn {
    background: var(--dark);
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    display: inline-block;
    transition: var(--transition);
}

.spotlight-btn:hover {
    background: var(--accent);
    color: black;
}

.stats-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 3px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.stats-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 15px;
}

.stats-number {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 900;
    color: var(--dark);
}

.stats-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 5px;
}

.trust-badges-row {
    grid-column: span 2;
    display: flex;
    justify-content: space-around;
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 3px 20px rgba(0, 0, 0, 0.05);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
}

.trust-item span:first-child {
    font-size: 20px;
}

/* ========================================
   PREMIUM HERO - NIKE90 INSPIRED
======================================== */
.hero-premium {
    position: relative;
    min-height: 500px;
    height: auto;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f23 100%);
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
    padding: 50px;
    padding-bottom: 80px;
}

/* Giant Background Text */
.hero-giant-text {
    position: absolute;
    font-size: 350px;
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.05);
    z-index: 1;
    user-select: none;
    letter-spacing: -15px;
    line-height: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: textFloat 8s ease-in-out infinite alternate;
}

@keyframes textFloat {
    0% {
        transform: translate(-50%, -50%) rotate(0deg) scale(1);
        opacity: 0.05;
    }

    100% {
        transform: translate(-55%, -45%) rotate(2deg) scale(1.05);
        opacity: 0.08;
    }
}

/* Colorful Accent Blocks */
/* Hero Grid Layout */
.hero-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    width: 100%;
    z-index: 5;
    flex: 1;
}

.accent-blocks {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-shrink: 0;
}

.accent-block {
    width: 100px;
    height: 120px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.accent-block:hover {
    transform: scale(1.08) rotate(-2deg);
}

.block-blue {
    background: linear-gradient(135deg, #339af0 0%, #228be6 100%);
    color: white;
}

.block-orange {
    background: linear-gradient(135deg, #ff922b 0%, #fd7e14 100%);
    color: white;
}

.block-yellow {
    background: linear-gradient(135deg, #ffd43b 0%, #fab005 100%);
    color: #212529;
}

.block-number {
    font-size: 36px;
    font-weight: 900;
    font-family: 'Inter', sans-serif;
}

.block-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-top: 5px;
}

.block-sublabel {
    font-size: 10px;
    opacity: 0.8;
}

/* Floating Product */
.hero-floating-product {
    position: relative;
    z-index: 5;
}

.floating-product-img {
    width: 400px;
    height: 400px;
    object-fit: cover;
    border-radius: 30px;
    transform: rotate(-8deg);
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.5);
    animation: productFloat 4s ease-in-out infinite;
    transition: var(--transition);
}

.floating-product-img:hover {
    transform: rotate(-3deg) scale(1.05);
}

.product-shadow {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 50px;
    background: radial-gradient(ellipse, rgba(0, 255, 136, 0.3) 0%, transparent 70%);
    filter: blur(20px);
}

@keyframes productFloat {

    0%,
    100% {
        transform: rotate(-8deg) translateY(0);
    }

    50% {
        transform: rotate(-8deg) translateY(-20px);
    }
}

/* Product Info - Right Side */
.hero-product-info {
    flex-shrink: 0;
}

.price-tag {
    display: flex;
    align-items: flex-start;
    color: white;
    margin-bottom: 25px;
}

.currency {
    font-size: 28px;
    font-weight: 700;
    opacity: 0.7;
}

.price-value {
    font-size: 80px;
    font-weight: 900;
    line-height: 1;
    font-family: 'Inter', sans-serif;
}

.price-decimal {
    font-size: 28px;
    font-weight: 700;
    opacity: 0.7;
    margin-top: 8px;
}

/* Color Swatches */
.color-swatches {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
}

.swatch {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.swatch:hover {
    transform: scale(1.2);
}

.swatch.active {
    border-color: white;
    box-shadow: 0 0 20px currentColor;
}

/* Spec Bars */
.spec-bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
    width: 200px;
}

.spec-bar {
    display: flex;
    align-items: center;
    gap: 15px;
}

.spec-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    width: 50px;
    font-weight: 600;
}

.spec-track {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.spec-fill {
    height: 100%;
    border-radius: 10px;
    animation: fillIn 1.5s ease-out forwards;
}

@keyframes fillIn {
    from {
        width: 0;
    }
}

/* Shop Button */
.hero-shop-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--accent);
    color: #000;
    padding: 18px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    font-size: 14px;
    transition: var(--transition);
}

.hero-shop-btn:hover {
    background: white;
    transform: translateX(5px);
    box-shadow: 0 10px 40px rgba(0, 255, 136, 0.3);
}

.hero-shop-btn svg {
    transition: var(--transition);
}

.hero-shop-btn:hover svg {
    transform: translateX(5px);
}

/* --- Apple-Style Scroll Reveal --- */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
    /* Apple's smooth easing */
    will-change: transform, opacity;
}

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

/* --- 3D Hover Tilt Effects (Category Tiles & Deals) --- */
.tile,
.deal-card {
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
}

.tile:hover,
.deal-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    z-index: 2;
}


/* Hero Bottom Bar */
.hero-bottom-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    z-index: 10;
}

.stat-bubble {
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-num {
    font-size: 16px;
    font-weight: 900;
    color: var(--accent);
}

.stat-icon {
    font-size: 16px;
}

.stat-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

/* --- Idea 7: Social Proof Toast --- */
.social-proof-toast {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 15px 20px;
    color: white;
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(100px) scale(0.9);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 320px;
    pointer-events: none;
}

.social-proof-toast.visible {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.toast-icon {
    font-size: 20px;
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.toast-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.toast-msg {
    margin: 0;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 500;
}

/* Toast dismiss button */
.toast-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.toast-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Light Mode UI Polish Overrides */
body:not([data-theme="dark"]) .search-pill {
    background: #f0f0f0;
    border: 1px solid #ddd;
}

body:not([data-theme="dark"]) .search-pill:focus-within {
    background: white;
    border-color: var(--dark);
}

/* Light Mode - Toast and Spin Wheel adjustments */
body:not([data-theme="dark"]) .social-proof-toast {
    background: rgba(30, 30, 30, 0.95);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

body:not([data-theme="dark"]) .spin-wheel-modal {
    background: white;
    color: var(--text-main);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

body:not([data-theme="dark"]) .spin-wheel-modal h2,
body:not([data-theme="dark"]) .spin-wheel-modal p {
    color: var(--text-main);
}

body:not([data-theme="dark"]) .spin-btn {
    background: var(--dark);
    color: white;
}

/* --- Idea 8: Video Backgrounds --- */
.category-tiles .tile video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    transition: transform 0.5s ease;
}

.category-tiles .tile:hover video {
    transform: scale(1.1);
}

.category-tiles .tile::after {
    /* Improve text contrast over video */
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.category-tiles .tile .tile-content {
    z-index: 2;
}


/* --- Idea 9: Spin Wheel --- */
.spin-wheel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.spin-wheel-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.spin-wheel-modal {
    background: white;
    padding: 40px;
    border-radius: 30px;
    text-align: center;
    position: relative;
    max-width: 90%;
    width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.close-wheel {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
}

.wheel-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 30px auto;
}

.wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 5px solid white;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    /* Conic Gradient for segments */
    background: conic-gradient(#ff0055 0deg 60deg,
            #00ff88 60deg 120deg,
            #00b8ff 120deg 180deg,
            #ffd43b 180deg 240deg,
            #ff0055 240deg 300deg,
            #00ff88 300deg 360deg);
    position: relative;
    transition: transform 5s cubic-bezier(0.1, 0.7, 0.1, 1);
}

.wheel-segment {
    position: absolute;
    width: 100%;
    height: 100%;
    text-align: center;
    transform: rotate(calc(60deg * var(--i) - 30deg));
}

.wheel-segment span {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 800;
    font-size: 14px;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.wheel-pointer {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 30px;
    color: #333;
    z-index: 10;
}

.spin-btn {
    background: #000;
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 800;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s;
}

.spin-btn:hover {
    transform: scale(1.05);
}

.win-result {
    margin-top: 20px;
    font-size: 18px;
    font-weight: bold;
    color: var(--accent);
    min-height: 24px;
    opacity: 0;
    transition: opacity 0.5s;
}

.win-result.show {
    opacity: 1;
}

/* --- Idea 10: Quick View Modal --- */
.quick-view-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 10001;
    /* Above spin wheel */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.quick-view-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.quick-view-content {
    background: white;
    width: 900px;
    max-width: 95%;
    border-radius: 20px;
    padding: 30px;
    position: relative;
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.quick-view-modal.active .quick-view-content {
    transform: translateY(0);
}

.close-quick-view {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 5;
    color: #333;
}

.quick-view-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.quick-view-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}

.quick-view-details h2 {
    font-size: 32px;
    margin-bottom: 10px;
    line-height: 1.1;
}

.qv-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-dark);
    margin-bottom: 20px;
}

.qv-desc {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 30px;
}

.qv-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    background: #f1f1f1;
    border-radius: 50px;
    padding: 5px;
}

.quantity-selector button {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: white;
    cursor: pointer;
    font-weight: bold;
}

.quantity-selector input {
    width: 40px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 600;
}

.qv-add-btn {
    flex-grow: 1;
    background: #000;
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.qv-add-btn:hover {
    background: var(--accent);
    color: black;
    transform: scale(1.02);
}

.qv-meta {
    border-top: 1px solid #eee;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    color: #525252;
    /* WCAG compliant */
}

@media (max-width: 768px) {
    .quick-view-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   MOBILE RESPONSIVE STYLES
   ============================================ */

/* Hamburger menu button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-main);
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile navigation panel */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-body);
    z-index: 999;
    padding-top: 100px;
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}

.mobile-nav.active {
    transform: translateX(0);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.mobile-nav-links a {
    padding: 15px 20px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
}

/* ===== TABLET: 992px ===== */
@media (max-width: 992px) {
    .container {
        padding: 0 20px;
    }

    .header-container {
        padding: 0 20px !important;
    }

    .category-tiles {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .tile {
        height: 300px;
    }

    .market-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .hero-grid {
        gap: 20px;
    }

    .hero-giant-text {
        font-size: 200px !important;
    }

    .deal-card {
        min-width: 280px;
    }

    .usp-bar {
        padding: 20px;
        gap: 20px;
        overflow-x: auto;
    }

    .data-strip {
        flex-wrap: wrap;
        gap: 20px;
    }

    .data-point span {
        font-size: 32px;
    }

    .newsletter-section {
        padding: 60px 20px;
        border-radius: 30px;
    }

    .newsletter-box h2 {
        font-size: 36px;
    }

    .marketplace-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .bento-1 {
        grid-row: auto;
    }
}

/* ===== MOBILE: 768px ===== */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .mobile-nav {
        display: block;
    }

    .header-main {
        height: 70px;
    }

    .header-container {
        padding: 0 15px !important;
    }

    .header-actions a:not(.cart-icon):not(.theme-toggle) {
        display: none;
    }

    .search-pill {
        display: none;
    }

    .logo-link {
        font-size: 24px;
    }

    .theme-toggle {
        padding: 6px 10px;
        font-size: 14px;
    }

    .hero-premium {
        padding: 20px 0;
    }

    .hero-giant-text {
        font-size: 100px !important;
    }

    .hero-grid {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }

    .accent-blocks {
        flex-direction: row !important;
        justify-content: center;
        gap: 10px;
    }

    .accent-block {
        width: 80px !important;
        height: 80px !important;
        padding: 10px !important;
    }

    .block-number {
        font-size: 20px !important;
    }

    .hero-floating-product {
        order: -1;
    }

    .floating-product-img {
        max-width: 200px !important;
    }

    .hero-product-info {
        text-align: center;
    }

    .price-tag {
        justify-content: center;
    }

    .color-swatches {
        justify-content: center;
    }

    .spec-bars {
        max-width: 300px;
        margin: 0 auto;
    }

    .hero-shop-btn {
        margin: 0 auto;
    }

    .hero-bottom-bar {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }

    .stat-bubble {
        flex: 1 1 45%;
        min-width: 140px;
    }

    .quick-categories {
        overflow-x: auto;
        flex-wrap: nowrap !important;
        gap: 10px !important;
        padding: 15px 0;
    }

    .quick-cat {
        flex-shrink: 0;
        padding: 12px 20px !important;
    }

    .category-pill-bar {
        padding: 15px 0;
        gap: 10px;
    }

    .cat-pill {
        padding: 8px 18px;
        font-size: 12px;
    }

    .category-tiles {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .tile {
        height: 250px;
    }

    .tile-content {
        padding: 20px;
    }

    .tile-content h3 {
        font-size: 22px;
    }

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

    .image-wrap {
        height: 180px;
    }

    .product-info {
        padding: 15px;
    }

    .product-info h4 {
        font-size: 13px;
    }

    .product-info .price {
        font-size: 16px;
    }

    .deals-container {
        padding: 20px;
        border-radius: 20px;
        margin-bottom: 40px;
    }

    .deal-card {
        min-width: 260px;
        padding: 20px;
    }

    .deal-card .deal-image-wrap {
        height: 150px;
    }

    .usp-bar {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        border-radius: 15px;
    }

    .usp-item {
        width: 100%;
    }

    .data-strip {
        padding: 40px 0;
        gap: 30px;
    }

    .data-point {
        flex: 1 1 45%;
    }

    .data-point span {
        font-size: 28px;
    }

    .data-point label {
        font-size: 10px;
    }

    .section-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .spin-wheel-modal {
        width: 95%;
        padding: 30px 20px;
    }

    .wheel {
        width: 250px !important;
        height: 250px !important;
    }

    .quick-view-content {
        width: 95%;
        max-height: 90vh;
        overflow-y: auto;
    }

    .quick-view-grid {
        grid-template-columns: 1fr;
    }

    .quick-view-details {
        padding: 20px;
    }

    .newsletter-section {
        padding: 40px 20px;
        border-radius: 20px;
    }

    .newsletter-box h2 {
        font-size: 28px;
    }

    .newsletter-input {
        padding: 15px 20px;
    }

    .marketplace-grid {
        gap: 15px;
    }

    .spotlight-card {
        padding: 20px;
    }

    .stats-card {
        padding: 20px;
    }

    .stats-number {
        font-size: 28px !important;
    }

    .trust-badges-row {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }

    .trending-ticker {
        font-size: 10px;
    }

    .social-proof-toast {
        bottom: 10px;
        left: 10px;
        right: 10px;
        max-width: none;
        padding: 12px 15px;
    }
}

/* ===== SMALL MOBILE: 480px ===== */
@media (max-width: 480px) {
    .hero-giant-text {
        font-size: 70px !important;
    }

    .accent-blocks {
        flex-wrap: wrap;
    }

    .accent-block {
        width: 60px !important;
        height: 60px !important;
    }

    .block-number {
        font-size: 16px !important;
    }

    .block-label,
    .block-sublabel {
        font-size: 7px !important;
    }

    .floating-product-img {
        max-width: 150px !important;
    }

    .price-value {
        font-size: 36px !important;
    }

    .market-grid {
        grid-template-columns: 1fr;
    }

    .trust-badges-row {
        grid-template-columns: 1fr !important;
    }

    .stat-bubble {
        flex: 1 1 100%;
    }

    .wheel {
        width: 200px !important;
        height: 200px !important;
    }

    .spin-wheel-modal h2 {
        font-size: 24px;
    }
}

/* --- PREMIUM CATEGORY PAGES --- */

.fabify-cat-hero {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.fabify-filter-bar {
    position: sticky;
    top: 70px;
    /* Below header */
    z-index: 90;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    padding: 15px 0;
    margin-bottom: 40px;
    transition: var(--transition);
}

[data-theme="dark"] .fabify-filter-bar {
    background: rgba(26, 26, 26, 0.95);
    border-color: var(--border);
}

.filter-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.cat-pills-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.cat-pill-small {
    padding: 6px 15px;
    border-radius: 20px;
    background: var(--dark);
    border: 1px solid var(--border-light);
    font-size: 13px;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
    transition: var(--transition);
}

[data-theme="dark"] .cat-pill-small {
    background: #2a2a2a;
    color: var(--text-main);
    border-color: var(--border);
}

.cat-pill-small:hover {
    background: var(--accent);
    color: var(--bg-body);
    border-color: var(--accent);
}

.filter-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Grid Override */
.fabify-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* Premium Card */
.product-card-premium {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

[data-theme="dark"] .product-card-premium {
    background: var(--bg-card);
    border-color: var(--border);
}

.product-card-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--accent);
}

.card-image-wrap {
    position: relative;
    padding-top: 100%;
    /* 1:1 Aspect Ratio */
    overflow: hidden;
    background: #f9f9f9;
}

[data-theme="dark"] .card-image-wrap {
    background: #111;
}

.card-image-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card-premium:hover .card-image-wrap img {
    transform: scale(1.05);
}

.card-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 2;
}

.badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.badge.sale {
    background: var(--accent);
    color: black;
}

.badge.out {
    background: #ff4444;
    color: white;
}

.card-hover-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    display: flex;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.product-card-premium:hover .card-hover-actions {
    opacity: 1;
    transform: translateY(0);
}

.btn-quick-view {
    padding: 10px 20px;
    background: white;
    color: black;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}

.btn-quick-view:hover {
    transform: scale(1.05);
    background: var(--accent);
}

.card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-cat {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.card-cat a,
.card-cat .cat-name {
    color: var(--text-muted);
    text-decoration: none;
}

.card-cat a:hover {
    color: var(--accent);
}

.card-title {
    text-decoration: none;
    display: block;
}

.card-title h3 {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.4;
    transition: color 0.2s;
}

.card-title:hover h3 {
    color: var(--accent-dark);
}

[data-theme="dark"] .card-title h3 {
    color: white;
}

[data-theme="dark"] .card-title:hover h3 {
    color: var(--accent);
}

.card-rating {
    margin-bottom: 10px;
    font-size: 12px;
}

.star-rating {
    font-size: 12px;
    color: #ffc107;
}

.rating-count {
    color: var(--text-muted);
    margin-left: 5px;
}

.card-footer {
    border-top: 1px solid var(--border-light);
    padding-top: 15px;
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

[data-theme="dark"] .card-footer {
    border-color: var(--border);
}

.price-wrap {
    font-weight: 700;
    color: var(--text-main);
}

.price-wrap ins {
    text-decoration: none;
    color: var(--accent-dark);
}

[data-theme="dark"] .price-wrap {
    color: white;
}

[data-theme="dark"] .price-wrap ins {
    color: var(--accent);
}

.btn-icon-cart {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: all 0.2s;
}

[data-theme="dark"] .btn-icon-cart {
    background: #2a2a2a;
    color: white;
}

.btn-icon-cart:hover {
    background: var(--accent);
    color: black;
    transform: rotate(10deg);
}

/* Responsive */
@media (max-width: 768px) {
    .fabify-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .card-hover-actions {
        opacity: 1;
        /* Always show on mobile because no hover */
        transform: translateY(0);
        padding: 10px;
        background: none;
        position: static;
        flex-direction: column;
    }


}

/* --- HEADER ACTIONS (Icons) --- */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.2s;
}

.action-item svg {
    transition: transform 0.2s;
}

.action-item:hover {
    color: var(--accent);
}

.action-item:hover svg {
    transform: translateY(-2px);
}

[data-theme="dark"] .action-item {
    color: white;
}

[data-theme="dark"] .action-item:hover {
    color: var(--accent);
}

.action-item-dropdown-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* --- MEGA MENU --- */

/* Overlay */
.mega-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mega-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Menu Panel */
.mega-menu {
    position: fixed;
    top: 80px;
    /* Slightly below header */
    left: 0;
    right: 0;
    background: white;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mega-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

[data-theme="dark"] .mega-menu {
    background: var(--bg-card);
    border-color: var(--border);
}

/* Close Button */
.mega-menu-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s;
    z-index: 10;
}

.mega-menu-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-main);
}

[data-theme="dark"] .mega-menu-close {
    color: var(--text-muted);
}

[data-theme="dark"] .mega-menu-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.mega-menu-inner {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 350px;
}

.mega-menu-left {
    background: #f8f9fa;
    padding: 20px 0;
    border-right: 1px solid var(--border-light);
}

[data-theme="dark"] .mega-menu-left {
    background: #1a1a1a;
    border-color: var(--border);
}

.mega-cat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.mega-cat-item:hover,
.mega-cat-item.active {
    background: white;
    color: var(--accent-dark);
    border-left-color: var(--accent);
}

[data-theme="dark"] .mega-cat-item {
    color: var(--text-main);
}

[data-theme="dark"] .mega-cat-item:hover,
[data-theme="dark"] .mega-cat-item.active {
    background: var(--bg-card);
    color: var(--accent);
}

.mega-cat-item .arrow {
    margin-left: auto;
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.2s;
}

.mega-cat-item:hover .arrow,
.mega-cat-item.active .arrow {
    opacity: 1;
    transform: translateX(0);
}

.mega-menu-right {
    padding: 30px 40px;
}

.mega-subcats {
    display: none;
}

.mega-subcats.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mega-subcats h4 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-main);
}

[data-theme="dark"] .mega-subcats h4 {
    color: white;
}

.mega-desc {
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}

.mega-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 25px;
}

.mega-links a {
    color: var(--text-main);
    text-decoration: none;
    padding: 8px 0;
    transition: color 0.2s;
}

.mega-links a:hover {
    color: var(--accent);
}

[data-theme="dark"] .mega-links a {
    color: var(--text-muted);
}

[data-theme="dark"] .mega-links a:hover {
    color: var(--accent);
}

.mega-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--accent);
    color: black;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.2s;
}

.mega-cta:hover {
    background: var(--accent-dark);
    transform: translateX(5px);
}

.chevron-icon {
    transition: transform 0.3s;
}

#mega-menu-toggle[aria-expanded="true"] .chevron-icon {
    transform: rotate(180deg);
}

/* Mobile Mega Menu */
@media (max-width: 768px) {
    .mega-menu {
        top: 0;
        height: 100vh;
        overflow-y: auto;
    }

    .mega-menu-inner {
        grid-template-columns: 1fr;
    }

    .mega-menu-left {
        border-right: none;
        border-bottom: 1px solid var(--border-light);
    }

    .mega-menu-right {
        padding: 20px;
    }

    .mega-links {
        grid-template-columns: 1fr 1fr;
    }
}

/* --- WOOCOMMERCE FILTER BAR STYLING --- */
.woocommerce-result-count {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
}

.woocommerce-ordering select {
    padding: 10px 35px 10px 15px;
    border: 1px solid var(--border-light);
    border-radius: 50px;
    background: white;
    color: var(--text-main);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23666' viewBox='0 0 24 24'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.woocommerce-ordering select:hover {
    border-color: var(--accent);
}

.woocommerce-ordering select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.1);
}

[data-theme="dark"] .woocommerce-ordering select {
    background-color: var(--bg-card);
    color: white;
    border-color: var(--border);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23fff' viewBox='0 0 24 24'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
}

[data-theme="dark"] .woocommerce-result-count {
    color: var(--text-muted);
}

/* Filter bar inner layout */
.filter-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.filter-left,
.filter-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* --- CART BADGE --- */
.cart-icon {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent);
    color: black;
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* --- TRUST BAR (Below Hero) --- */
.trust-bar {
    background: linear-gradient(to right, rgba(var(--accent-rgb), 0.05), rgba(var(--accent-rgb), 0.02));
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    padding: 18px 0;
}

.trust-bar-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.trust-item svg {
    width: 28px;
    height: 28px;
    color: var(--accent);
}

.trust-item span {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-main);
}

[data-theme="dark"] .trust-bar {
    background: linear-gradient(to right, rgba(var(--accent-rgb), 0.08), rgba(var(--accent-rgb), 0.03));
    border-color: var(--border);
}

[data-theme="dark"] .trust-item span {
    color: white;
}

@media (max-width: 768px) {
    .trust-bar-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .trust-item span {
        font-size: 12px;
    }
}

/* --- HERO HEADLINE SECTION (Audit Recommendations) --- */
.hero-headline-section {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.hero-headline {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    color: var(--dark);
    margin: 0 0 16px;
    line-height: 1.1;
    letter-spacing: -1px;
}

[data-theme="dark"] .hero-headline {
    color: white;
}

.hero-subheading {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 28px;
    line-height: 1.6;
}

[data-theme="dark"] .hero-subheading {
    color: var(--text-muted);
}

/* Dual CTA Buttons */
.hero-cta-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--accent);
    color: black;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 224, 150, 0.3);
}

.hero-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 224, 150, 0.4);
}

.hero-cta-primary svg {
    transition: transform 0.3s ease;
}

.hero-cta-primary:hover svg {
    transform: translateX(4px);
}

.hero-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: transparent;
    color: var(--dark);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid var(--border);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.hero-cta-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

[data-theme="dark"] .hero-cta-secondary {
    color: white;
    border-color: var(--border);
}

[data-theme="dark"] .hero-cta-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

@media (max-width: 768px) {
    .hero-headline-section {
        margin-bottom: 30px;
    }

    .hero-cta-group {
        flex-direction: column;
        align-items: center;
    }

    .hero-cta-primary,
    .hero-cta-secondary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

/* --- IMPROVED MOBILE NAVIGATION (Per Audit) --- */
.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-light);
}

.mobile-nav-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
}

.mobile-nav-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-muted);
    padding: 5px;
}

.mobile-search-wrap {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-light);
}

.mobile-search-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-light);
    border-radius: 50px;
    font-size: 14px;
    background: var(--light);
}

.mobile-search-input:focus {
    outline: none;
    border-color: var(--accent);
}

.mobile-nav-section {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-light);
}

.mobile-nav-section-title {
    display: block;
    padding: 0 20px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.mobile-nav-section a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 15px;
    transition: background 0.2s;
}

.mobile-nav-section a:hover {
    background: rgba(0, 0, 0, 0.03);
}

.mobile-nav-section a svg {
    color: var(--text-muted);
}

.mobile-nav-footer {
    padding: 20px;
    display: flex;
    justify-content: space-around;
    font-size: 12px;
    color: var(--text-muted);
    border-top: 1px solid var(--border-light);
    margin-top: auto;
}

[data-theme="dark"] .mobile-nav-header {
    border-color: var(--border);
}

[data-theme="dark"] .mobile-nav-title {
    color: white;
}

[data-theme="dark"] .mobile-search-wrap {
    border-color: var(--border);
}

[data-theme="dark"] .mobile-search-input {
    background: var(--bg-card);
    border-color: var(--border);
    color: white;
}

[data-theme="dark"] .mobile-nav-section {
    border-color: var(--border);
}

[data-theme="dark"] .mobile-nav-section a {
    color: white;
}

[data-theme="dark"] .mobile-nav-section a:hover {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .mobile-nav-footer {
    border-color: var(--border);
}

/* --- PHASE 2: SECTION HEADERS & VIEW ALL CTAs --- */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.section-header-left h2 {
    color: white;
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 700;
}

.section-subheading {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
}

.section-header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.urgency-badge {
    background: var(--accent);
    color: black;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 800;
}

.view-all-link {
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.view-all-link:hover {
    text-decoration: underline;
}

[data-theme="dark"] .section-header-left h2 {
    color: white;
}

@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-header-right {
        flex-wrap: wrap;
    }
}

/* --- PHASE 2: CUSTOMER TESTIMONIALS --- */
.testimonials-section {
    padding: 60px 0;
    background: var(--light);
}

.testimonials-section h2 {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--dark);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-stars {
    color: #ffd43b;
    font-size: 18px;
    margin-bottom: 15px;
}

.testimonial-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-main);
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: black;
}

.testimonial-author-info {
    display: flex;
    flex-direction: column;
}

.testimonial-name {
    font-weight: 600;
    color: var(--dark);
}

.testimonial-location {
    font-size: 12px;
    color: var(--text-muted);
}

[data-theme="dark"] .testimonials-section {
    background: var(--bg-card);
}

[data-theme="dark"] .testimonials-section h2 {
    color: white;
}

[data-theme="dark"] .testimonial-card {
    background: var(--dark);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .testimonial-text {
    color: white;
}

[data-theme="dark"] .testimonial-name {
    color: white;
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-section {
        padding: 40px 0;
    }
}

/* ============================================
   WCAG 4.5:1 CONTRAST FIXES
   Added for Lighthouse 98+ Accessibility
   ============================================ */

/* Breadcrumbs - Higher contrast text */
.woocommerce-breadcrumb,
.fabify-breadcrumbs {
    color: #333333 !important;
}

.woocommerce-breadcrumb a,
.fabify-breadcrumbs a {
    color: #222222 !important;
}

[data-theme="dark"] .woocommerce-breadcrumb,
[data-theme="dark"] .fabify-breadcrumbs {
    color: #cccccc !important;
}

[data-theme="dark"] .woocommerce-breadcrumb a,
[data-theme="dark"] .fabify-breadcrumbs a {
    color: #e0e0e0 !important;
}

/* Trust Badges - Small text contrast */
.fabify-trust-badges small,
.trust-badge small,
.trust-text small {
    color: #444444 !important;
}

[data-theme="dark"] .fabify-trust-badges small,
[data-theme="dark"] .trust-badge small,
[data-theme="dark"] .trust-text small {
    color: #bbbbbb !important;
}

/* Tab Buttons - Higher contrast */
.fabify-tab-btn {
    color: #333333 !important;
    background: #f5f5f5;
    border: 1px solid #ddd;
    padding: 12px 24px;
    font-weight: 500;
}

.fabify-tab-btn.active {
    color: #000000 !important;
    background: #ffffff;
    border-bottom-color: transparent;
}

[data-theme="dark"] .fabify-tab-btn {
    color: #cccccc !important;
    background: var(--bg-card);
    border-color: var(--border);
}

[data-theme="dark"] .fabify-tab-btn.active {
    color: #ffffff !important;
    background: var(--bg-body);
}

/* Sticky Bar - Higher contrast */
.fabify-sticky-bar .sticky-title {
    color: #222222 !important;
}

.fabify-sticky-bar .sticky-price {
    color: #333333 !important;
}

[data-theme="dark"] .fabify-sticky-bar .sticky-title {
    color: #f0f0f0 !important;
}

[data-theme="dark"] .fabify-sticky-bar .sticky-price {
    color: #e0e0e0 !important;
}

/* Product Meta - Higher contrast */
.fabify-meta,
.fabify-meta .meta-item {
    color: #444444 !important;
}

[data-theme="dark"] .fabify-meta,
[data-theme="dark"] .fabify-meta .meta-item {
    color: #bbbbbb !important;
}

/* Tab subheadings - Proper size for h2 */
.tab-subheading {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-main);
}

/* Description heading caution - Fix h3 to be visible but styled smaller */
.desc-heading-caution {
    font-size: 14px;
    font-weight: 600;
    margin-top: 15px;
    margin-bottom: 10px;
}