/* ============================================
   FirstHotDeals.com — Premium Design System
   3D Glassmorphism | Dark UI | Vibrant Gradients
   ============================================ */

/* ===== CSS Variables / Design Tokens ===== */
:root {
    /* Core Dark Palette */
    --bg-primary: #07070f;
    --bg-secondary: #0d0d1a;
    --bg-tertiary: #131326;
    --bg-card: rgba(18, 18, 42, 0.65);
    --bg-glass: rgba(255, 255, 255, 0.04);
    --bg-glass-hover: rgba(255, 255, 255, 0.08);

    /* Accent Gradients */
    --accent-1: #6366f1;
    --accent-2: #8b5cf6;
    --accent-3: #ec4899;
    --accent-4: #f43f5e;
    --accent-5: #06b6d4;
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    --gradient-hot: linear-gradient(135deg, #f43f5e 0%, #fb923c 50%, #fbbf24 100%);
    --gradient-deal: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    --gradient-shine: linear-gradient(135deg, rgba(99,102,241,0.15) 0%, rgba(139,92,246,0.1) 50%, rgba(236,72,153,0.05) 100%);

    /* Text */
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-accent: #a5b4fc;

    /* Borders */
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(99, 102, 241, 0.3);

    /* Shadows */
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-card-hover: 0 20px 60px rgba(99, 102, 241, 0.15), 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.2);

    /* Layout */
    --container-max: 1320px;
    --header-height: 118px; /* 68px nav row + 50px search row */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-pill: 50px;

    /* Typography */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --font-heading: 'Outfit', 'Inter', sans-serif;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.2s var(--ease-out);
    --transition-med: 0.35s var(--ease-out);
    --transition-slow: 0.5s var(--ease-out);

    /* Source Colors */
    --source-amazon: #ff9900;
    --source-flipkart: #2874f0;
    --source-aliexpress: #e62e04;
    --source-walmart: #0071dc;
    --source-demo: #8b5cf6;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ambient background glow */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 600px;
    background: radial-gradient(ellipse at 30% 0%, rgba(99,102,241,0.12) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 0%, rgba(236,72,153,0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

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

a:hover { color: var(--accent-2); }

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

ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

.container-fluid { width: 90%; max-width: 1800px; margin: 0 auto; padding: 0 20px; }
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

.header-container { width: 90%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    position: relative; /* Positioning context for mega menu */
}

/* ===== Gradient Text Utility ===== */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Glass Panel Utility ===== */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb {
    background: var(--accent-1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--accent-2); }

/* ============================================
   HEADER
   ============================================ */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(7, 7, 15, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-glass);
    transition: background var(--transition-med), box-shadow var(--transition-med);
}

.main-header.scrolled {
    background: rgba(7, 7, 15, 0.95);
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px; /* Fixed height for top row */
    gap: 16px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-icon {
    font-size: 28px;
    filter: drop-shadow(0 0 8px rgba(244,63,94,0.4));
    animation: fireGlow 2s ease-in-out infinite alternate;
}

@keyframes fireGlow {
    0% { filter: drop-shadow(0 0 6px rgba(244,63,94,0.3)); transform: scale(1); }
    100% { filter: drop-shadow(0 0 14px rgba(244,63,94,0.6)); transform: scale(1.06); }
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.logo-accent {
    background: var(--gradient-hot);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-categories {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    transition: all var(--transition-fast);
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
}

.nav-link:hover {
    background: var(--bg-glass-hover);
    color: var(--text-primary);
}

.nav-icon { font-size: 15px; }

/* Nav dropdown */
.nav-more-wrap {
    position: relative;
}

/* Mega Menu Styles */
.main-nav {
    position: static; /* Allows mega menu to stretch full width of header */
}

.nav-item.has-mega-menu {
    /* No position: relative here so the child absolute aligns to .header-inner or viewport */
}

.mega-menu {
    position: absolute;
    top: 100%; /* Drop below the full .header-container (both rows) */
    left: 0;
    right: 0;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 30px 40px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-med);
    z-index: 1500; /* Above search row (1100) and other elements */
}

/* Use a pseudo-element bridge so it doesn't close when moving cursor down to the mega menu */
.nav-item.has-mega-menu .nav-link::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 70px; /* Covers the gap across the search bar row down to the mega menu */
}

.nav-item.has-mega-menu:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-inner {
    display: flex;
    gap: 40px;
    justify-content: flex-start;
    flex-wrap: wrap;
    max-width: var(--container-max);
    margin: 0 auto;
}

.mega-column {
    flex: 0 0 calc(20% - 32px); /* 5 columns max */
    min-width: 180px;
}

.mega-title {
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #1e293b; /* Dark text for light bg */
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
}

.mega-title a {
    color: inherit;
}

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

.mega-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mega-list li a {
    font-size: 13px;
    color: #475569; /* Darker grey text */
    transition: color var(--transition-fast);
    display: block;
}

.mega-list li a:hover {
    color: var(--accent-1);
    transform: translateX(4px);
}


.nav-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    min-width: 220px;
    background: var(--bg-tertiary);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    padding: 8px;
    display: none;
    z-index: 100;
}

.nav-dropdown.show { display: block; animation: fadeSlideDown 0.2s var(--ease-out); }

.nav-dropdown-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.nav-dropdown-link:hover {
    background: var(--bg-glass-hover);
    color: var(--text-primary);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Country Switcher */
.country-switcher { position: relative; }

.country-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-pill);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.country-btn:hover {
    background: var(--bg-glass-hover);
    border-color: var(--border-glow);
}

.country-flag { font-size: 18px; }
.country-currency {
    color: var(--text-muted);
    font-size: 12px;
}

.country-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    min-width: 260px;
    background: var(--bg-tertiary);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    padding: 8px;
    display: none;
    z-index: 200;
}

.country-dropdown.show { display: block; animation: fadeSlideDown 0.2s var(--ease-out); }

.country-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.country-option:hover {
    background: var(--bg-glass-hover);
    color: var(--text-primary);
}

.country-option.active {
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent-1);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.country-name { flex: 1; }
.country-cur {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Navigation */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1100;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-med);
}

.mobile-nav-overlay.show {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    max-width: 85%;
    height: 100vh;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-glass);
    z-index: 1200;
    transform: translateX(100%);
    transition: transform var(--transition-med);
    overflow-y: auto;
    padding: 0 0 40px;
}

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

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border-glass);
}

.mobile-nav-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 28px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

.mobile-nav-links {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    font-size: 15px;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.mobile-nav-link:hover {
    background: var(--bg-glass-hover);
    color: var(--text-primary);
}

.mobile-nav-countries {
    padding: 12px 20px;
    border-top: 1px solid var(--border-glass);
    margin-top: 8px;
}

.mobile-nav-countries h4 {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 12px;
    font-weight: 600;
}

.mobile-nav-countries .country-option {
    padding: 10px 12px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    position: relative;
    padding: 60px 0 30px;
    text-align: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 30%, rgba(99,102,241,0.12) 0%, transparent 65%),
                radial-gradient(ellipse at 20% 80%, rgba(236,72,153,0.06) 0%, transparent 40%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 14px;
    letter-spacing: -1px;
}

.hero-fire {
    display: inline-block;
    animation: fireGlow 2s ease-in-out infinite alternate;
}

.hero-country {
    display: block;
    font-size: 0.5em;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0;
    margin-top: 6px;
}

.hero-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   CATEGORY PILLS
   ============================================ */
.category-pills-section {
    padding: 20px 0;
    position: relative;
    z-index: 1;
}

.category-pills {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 40px;
    margin: 0 -40px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-padding: 0 40px;
}

.category-pills::-webkit-scrollbar { display: none; }

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: var(--radius-pill);
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    transition: all var(--transition-fast);
    cursor: pointer;
    flex-shrink: 0;
}

.pill:hover {
    background: var(--bg-glass-hover);
    color: var(--text-primary);
    border-color: var(--border-glow);
    transform: translateY(-1px);
}

.pill.active {
    background: var(--gradient-primary);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(99,102,241,0.3);
}

/* ============================================
   PRODUCTS SECTION
   ============================================ */
.products-section {
    padding: 20px 0 60px;
    position: relative;
    z-index: 1;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.view-all-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color var(--transition-fast);
}

.view-all-link:hover {
    color: var(--accent-2);
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-icon { font-size: 24px; }

.product-count {
    font-size: 13px;
    color: var(--text-muted);
    background: var(--bg-glass);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-glass);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* ===== Product Card — 3D Glassmorphism ===== */
.product-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    transition: all var(--transition-med);
    transform: perspective(800px) rotateX(0deg) rotateY(0deg);
    transform-style: preserve-3d;
    display: flex;
    flex-direction: column;
    animation: cardFadeIn 0.5s var(--ease-out) backwards;
}

.product-card:nth-child(1) { animation-delay: 0s; }
.product-card:nth-child(2) { animation-delay: 0.05s; }
.product-card:nth-child(3) { animation-delay: 0.1s; }
.product-card:nth-child(4) { animation-delay: 0.15s; }
.product-card:nth-child(5) { animation-delay: 0.2s; }
.product-card:nth-child(6) { animation-delay: 0.25s; }
.product-card:nth-child(7) { animation-delay: 0.3s; }
.product-card:nth-child(8) { animation-delay: 0.35s; }
.product-card:nth-child(9) { animation-delay: 0.4s; }
.product-card:nth-child(10) { animation-delay: 0.45s; }
.product-card:nth-child(11) { animation-delay: 0.5s; }
.product-card:nth-child(12) { animation-delay: 0.55s; }

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: perspective(800px) translateY(30px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: perspective(800px) translateY(0) scale(1);
    }
}

.product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    background: var(--gradient-shine);
    opacity: 0;
    transition: opacity var(--transition-med);
    pointer-events: none;
    z-index: 1;
}

.product-card:hover {
    transform: perspective(800px) translateY(-8px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--border-glow);
}

.product-card:hover::before {
    opacity: 1;
}

/* Product Image */
.product-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.product-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
    transition: transform var(--transition-med);
}

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

/* Badges */
.discount-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--gradient-hot);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    z-index: 2;
    box-shadow: 0 2px 8px rgba(244, 63, 94, 0.3);
}

.source-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.source-amazon { background: rgba(255,153,0,0.2); color: var(--source-amazon); border: 1px solid rgba(255,153,0,0.3); }
.source-flipkart { background: rgba(40,116,240,0.2); color: var(--source-flipkart); border: 1px solid rgba(40,116,240,0.3); }
.source-aliexpress { background: rgba(230,46,4,0.2); color: var(--source-aliexpress); border: 1px solid rgba(230,46,4,0.3); }
.source-walmart { background: rgba(0,113,220,0.2); color: var(--source-walmart); border: 1px solid rgba(0,113,220,0.3); }
.source-demo { background: rgba(139,92,246,0.2); color: var(--source-demo); border: 1px solid rgba(139,92,246,0.3); }

/* Product Info */
.product-link {
    display: block;
    text-decoration: none;
    color: inherit;
    flex: 1;
}

.product-info {
    padding: 14px 16px 8px;
}

.product-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
    transition: color var(--transition-fast);
}

.product-card:hover .product-title {
    color: var(--text-accent);
}

/* Stars */
.stars {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 8px;
}

.star {
    font-size: 13px;
    line-height: 1;
}

.star.full { color: #fbbf24; }
.star.half { color: #fbbf24; opacity: 0.6; }
.star.empty { color: var(--text-muted); opacity: 0.3; }

.rating-num {
    font-size: 12px;
    color: var(--text-muted);
    margin-left: 4px;
}

/* Price */
.product-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.current-price {
    font-size: 20px;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.original-price {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: line-through;
}

/* Deal Button */
.btn-deal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    background: var(--gradient-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    z-index: 2;
    flex: 1;
}

.btn-deal::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.btn-deal:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99,102,241,0.4);
    color: #fff;
}

.btn-deal:hover::before { opacity: 1; }

/* Product Card Actions Row */
.product-card-actions {
    display: flex;
    gap: 8px;
    padding: 0 12px 12px;
    align-items: stretch;
}

/* Amazon Button */
.btn-amazon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 10px 12px;
    background: #FF9900;
    color: #111;
    font-size: 12px;
    font-weight: 700;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-amazon:hover {
    background: #e68900;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,153,0,0.4);
    color: #111;
}

/* No Products */
.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

.no-products-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.no-products h3 {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

/* ============================================
   AUTO-FETCH LOADING STATE
   ============================================ */
.auto-fetch-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    animation: fadeIn 0.5s ease;
}

.auto-fetch-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
}

.fetch-spinner {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--accent-1);
    border-right-color: var(--accent-2);
    animation: fetchSpin 1.2s linear infinite;
    box-shadow: 0 0 20px rgba(99,102,241,0.4);
}

@keyframes fetchSpin {
    to { transform: rotate(360deg); }
}

.fetch-emoji {
    font-size: 48px;
    animation: fetchPulse 2s ease-in-out infinite;
}

@keyframes fetchPulse {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.15); }
}

.auto-fetch-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auto-fetch-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.fetch-progress-bar {
    width: 280px;
    height: 6px;
    background: rgba(255,255,255,0.08);
    border-radius: 99px;
    margin: 0 auto 14px;
    overflow: hidden;
}

.fetch-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--gradient-primary);
    border-radius: 99px;
    transition: width 0.8s ease;
    animation: fetchBarPulse 2s ease-in-out infinite;
}

@keyframes fetchBarPulse {
    0%   { opacity: 1; }
    50%  { opacity: 0.6; }
    100% { opacity: 1; }
}

.auto-fetch-eta {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}



/* ============================================
   SCROLL LOADER
   ============================================ */
.scroll-loader {
    text-align: center;
    padding: 40px 0;
    color: var(--text-muted);
}

.loader-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 12px;
}

.loader-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-1);
    animation: loaderBounce 1.4s ease-in-out infinite;
}

.loader-dots span:nth-child(2) { animation-delay: 0.16s; }
.loader-dots span:nth-child(3) { animation-delay: 0.32s; }

@keyframes loaderBounce {
    0%, 80%, 100% { transform: scale(0.4); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

.scroll-sentinel { height: 1px; }

/* ============================================
   SEO CONTENT BLOCK
   ============================================ */
.seo-content-section {
    padding: 40px 0 60px;
    position: relative;
    z-index: 1;
}

.seo-content-block {
    padding: 40px;
}

.seo-content-block h2 {
    font-size: 22px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.seo-content-block h3 {
    font-size: 17px;
    margin: 20px 0 10px;
    color: var(--text-accent);
}

.seo-content-block p,
.seo-content-block li {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.seo-content-block ul {
    padding-left: 20px;
}

.seo-content-block ul li {
    list-style: disc;
    margin-bottom: 6px;
}

.internal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.internal-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-pill);
    font-size: 13px;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.internal-link:hover {
    background: var(--bg-glass-hover);
    color: var(--text-primary);
    border-color: var(--border-glow);
}

/* ============================================
   CATEGORY PAGE
   ============================================ */
.category-header {
    padding: 50px 0 20px;
    text-align: center;
}

.category-header h1 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    margin-bottom: 10px;
}

.category-intro {
    font-size: 15px;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 20px;
    line-height: 1.7;
}

/* Breadcrumbs */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    padding: 16px 0;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--text-secondary);
}

.breadcrumb a:hover {
    color: var(--accent-1);
}

.breadcrumb-sep {
    color: var(--text-muted);
    opacity: 0.4;
}

/* FAQ Section */
.faq-section {
    padding: 40px 0;
}

.faq-item {
    border-bottom: 1px solid var(--border-glass);
    padding: 18px 0;
}

.faq-question {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.faq-answer {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   PRODUCT DETAIL PAGE
   ============================================ */
.product-detail {
    padding: 40px 0 60px;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.product-detail-image {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

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

.product-detail-info h1 {
    font-size: 24px;
    margin-bottom: 16px;
    line-height: 1.3;
}

.product-detail-source {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    margin-bottom: 16px;
}

.product-detail-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.product-detail-price {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 8px;
}

.product-detail-price .current-price {
    font-size: 32px;
}

.product-detail-price .original-price {
    font-size: 18px;
}

.product-detail-discount {
    display: inline-flex;
    padding: 6px 14px;
    background: var(--gradient-hot);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border-radius: var(--radius-pill);
    margin-bottom: 24px;
}

.product-detail-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 40px;
    background: var(--gradient-primary);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    margin-bottom: 30px;
}

.product-detail-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(99,102,241,0.4);
    color: #fff;
}

/* 3D Big Deal Button */
.btn-deal-big {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    margin-top: 24px;
    margin-bottom: 24px;
    padding: 18px 32px;
    background: linear-gradient(to bottom, #f43f5e, #e11d48);
    color: #ffffff !important;
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 8px 0 #be123c, 0 15px 25px rgba(244, 63, 94, 0.4);
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    top: 0;
    border: 1px solid rgba(255,255,255,0.2);
    overflow: hidden;
}

/* Shine effect */
.btn-deal-big::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: buttonShine 4s infinite;
}

@keyframes buttonShine {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

.btn-deal-big:hover {
    background: linear-gradient(to bottom, #fb7185, #f43f5e);
    box-shadow: 0 5px 0 #be123c, 0 10px 20px rgba(244, 63, 94, 0.4);
    top: 3px;
    color: #ffffff;
}

.btn-deal-big:active {
    box-shadow: 0 0 0 #be123c, 0 5px 10px rgba(244, 63, 94, 0.4);
    top: 8px;
}

.btn-deal-big svg {
    transition: transform 0.2s ease;
}

.btn-deal-big:hover svg {
    transform: translateX(4px);
}

/* Product Detail CTA wrapper — stacks View Deal + Amazon button */
.product-detail-cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.product-detail-cta .btn-deal-big {
    margin-top: 0;
    margin-bottom: 0;
}

/* Large Amazon Button for product detail page */
.btn-amazon-big {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 16px 32px;
    background: #FF9900;
    color: #111 !important;
    font-size: 17px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 6px 0 #cc7a00, 0 12px 20px rgba(255,153,0,0.35);
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    top: 0;
    border: 1px solid rgba(255,255,255,0.25);
}

.btn-amazon-big:hover {
    background: #ffad33;
    box-shadow: 0 4px 0 #cc7a00, 0 8px 16px rgba(255,153,0,0.35);
    top: 2px;
    color: #111;
}

.btn-amazon-big:active {
    box-shadow: 0 0 0 #cc7a00;
    top: 6px;
}

.btn-amazon-big svg {
    transition: transform 0.2s ease;
}

.btn-amazon-big:hover svg {
    transform: scale(1.1);
}

.product-detail-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 20px;
}

.meta-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 16px;
}

.meta-card-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.meta-card-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

/* ============================================
   SEARCH PAGE
   ============================================ */
.search-header {
    padding: 50px 0 20px;
    text-align: center;
}

.search-header h1 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    margin-bottom: 8px;
}

.search-count {
    color: var(--text-muted);
    font-size: 14px;
}

/* ============================================
   STATIC PAGE
   ============================================ */
.page-content {
    padding: 50px 0 60px;
}

.page-content .glass-panel {
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.page-content h1 {
    font-size: 28px;
    margin-bottom: 20px;
}

.page-content h2 {
    font-size: 22px;
    margin: 30px 0 12px;
    color: var(--text-primary);
}

.page-content h3 {
    font-size: 18px;
    margin: 24px 0 10px;
    color: var(--text-accent);
}

.page-content p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 14px;
}

.page-content ul,
.page-content ol {
    padding-left: 24px;
    margin-bottom: 14px;
}

.page-content li {
    list-style: disc;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 6px;
}

.page-content a {
    color: var(--accent-1);
}

.page-content a:hover {
    color: var(--accent-2);
    text-decoration: underline;
}

/* ============================================
   FOOTER
   ============================================ */
.main-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-glass);
    padding: 60px 0 30px;
    position: relative;
    z-index: 1;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.footer-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.footer-affiliate-notice {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
}

.footer-affiliate-notice small {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    font-size: 14px;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.footer-col ul li a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    border-top: 1px solid var(--border-glass);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-muted);
}

.footer-seo-text {
    font-size: 12px !important;
    color: var(--text-muted) !important;
    opacity: 0.5;
    margin-top: 8px;
}

/* ============================================
   404 ERROR PAGE
   ============================================ */
.error-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 0;
}

.error-page h1 {
    font-size: 72px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
}

.error-page p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.error-page a {
    display: inline-flex;
    padding: 12px 28px;
    background: var(--gradient-primary);
    color: #fff;
    border-radius: var(--radius-md);
    font-weight: 600;
}

/* ============================================
   TAG PAGE
   ============================================ */
.tag-header {
    padding: 50px 0 20px;
    text-align: center;
}

.tag-header h1 {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    margin-bottom: 10px;
}

.tag-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: rgba(99,102,241,0.15);
    border: 1px solid rgba(99,102,241,0.2);
    border-radius: var(--radius-pill);
    font-size: 13px;
    color: var(--accent-1);
    font-weight: 600;
    margin-bottom: 20px;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeSlideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Shimmer loading skeleton */
.skeleton {
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-glass-hover) 50%, var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: var(--radius-sm);
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 30px; }
}

@media (max-width: 992px) {
    .main-nav { display: none; }
    .mobile-menu-btn { display: flex; }
    .products-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .product-detail-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .hero-title { font-size: 1.8rem; }
    .hero-section { padding: 40px 0 20px; }
    .seo-content-block { padding: 24px; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .product-detail-price .current-price { font-size: 26px; }
    .product-detail-meta { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .container-fluid { width: 90%; max-width: 1800px; margin: 0 auto; padding: 0 20px; }
.container { padding: 0 14px; }
    .header-inner { height: 56px; }
    .logo-text { font-size: 18px; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .product-info { padding: 10px 12px 6px; }
    .product-title { font-size: 13px; }
    .current-price { font-size: 16px; }
    .btn-deal { margin: 6px 10px 12px; padding: 10px; font-size: 12px; }
    .pill { padding: 8px 12px; font-size: 12px; }
    .country-btn { padding: 6px 10px; }
    .country-code { display: none; }
    .section-title { font-size: 18px; }
}

/* ============================================
   PLACEHOLDER IMAGE
   ============================================ */
.product-image-wrap img[src$="placeholder.svg"] {
    opacity: 0.3;
    filter: grayscale(1);
}

/* ============================================
   HEADER SEARCH BUTTON
   ============================================ */
.header-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-pill);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.header-search-btn:hover {
    background: var(--bg-glass-hover);
    border-color: var(--border-glow);
    color: var(--text-primary);
    box-shadow: var(--shadow-glow);
}

/* ============================================
   SEARCH OVERLAY
   ============================================ */
.search-overlay {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    z-index: 999;
    background: rgba(7, 7, 15, 0.97);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-bottom: 1px solid var(--border-glow);
    padding: 20px 0 16px;
    transform: translateY(-110%);
    opacity: 0;
    transition: transform 0.35s var(--ease-out), opacity 0.3s var(--ease-out);
    pointer-events: none;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.search-overlay.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.search-overlay-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

.search-overlay-form { width: 100%; }

.search-overlay-input-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-xl);
    padding: 12px 20px;
    box-shadow: 0 0 30px rgba(99,102,241,0.1);
}

.search-overlay-input-wrap svg {
    color: var(--text-muted);
    flex-shrink: 0;
}

.search-overlay-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    font-size: 18px;
    color: var(--text-primary);
    font-family: var(--font-body);
    caret-color: var(--accent-1);
}

.search-overlay-input::placeholder { color: var(--text-muted); }

.search-overlay-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    line-height: 1;
    flex-shrink: 0;
}

.search-overlay-close:hover {
    background: var(--bg-glass-hover);
    color: var(--text-primary);
}

/* Typeahead suggestions */
.search-suggestions {
    margin-top: 12px;
    display: none;
    flex-direction: column;
    gap: 4px;
    max-height: 380px;
    overflow-y: auto;
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-glass);
    padding: 8px;
}

.search-suggestions.has-results { display: flex; }

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background var(--transition-fast);
    text-decoration: none;
    color: var(--text-primary);
}

.suggestion-item:hover { background: var(--bg-glass-hover); }

.suggestion-img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    background: var(--bg-secondary);
}

.suggestion-info { flex: 1; min-width: 0; }

.suggestion-title {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggestion-price {
    font-size: 12px;
    color: var(--accent-1);
    font-weight: 600;
    margin-top: 2px;
}

.suggestion-source {
    font-size: 11px;
    color: var(--text-muted);
}

.suggestion-view-all {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    font-size: 13px;
    color: var(--accent-1);
    font-weight: 600;
    border-top: 1px solid var(--border-glass);
    margin-top: 4px;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.suggestion-view-all:hover {
    background: rgba(99,102,241,0.1);
    color: var(--accent-2);
}

/* ============================================
   SEARCH PAGE — INLINE SEARCH BAR
   ============================================ */
.search-bar-section {
    padding: 20px 0 0;
    position: relative;
    z-index: 1;
}

.search-form-inline {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    padding: 12px 18px;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-input-wrap:focus-within {
    border-color: var(--border-glow);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}

.search-input-icon { color: var(--text-muted); flex-shrink: 0; }

.search-input-field {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    font-size: 16px;
    color: var(--text-primary);
    font-family: var(--font-body);
    caret-color: var(--accent-1);
}

.search-input-field::placeholder { color: var(--text-muted); }

.search-clear-btn {
    color: var(--text-muted);
    font-size: 14px;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    cursor: pointer;
    text-decoration: none;
}

.search-clear-btn:hover {
    background: var(--bg-glass-hover);
    color: var(--text-primary);
}

.btn-search-submit {
    padding: 12px 24px;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-xl);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
    font-family: var(--font-body);
}

.btn-search-submit:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99,102,241,0.3);
}

/* ============================================
   FILTER BAR
   ============================================ */
.filter-bar-section {
    padding: 16px 0 4px;
    position: relative;
    z-index: 1;
}

.filter-bar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(12px);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    min-width: 70px;
}

.sort-pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.sort-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    transition: all var(--transition-fast);
    text-decoration: none;
    cursor: pointer;
}

.sort-pill:hover {
    background: var(--bg-glass-hover);
    color: var(--text-primary);
    border-color: var(--border-glow);
}

.sort-pill.active {
    background: var(--gradient-primary);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 3px 12px rgba(99,102,241,0.3);
}

/* Source-colored pills */
.source-pill.source-amazon.active { background: var(--source-amazon); }
.source-pill.source-flipkart.active { background: var(--source-flipkart); }
.source-pill.source-aliexpress.active { background: var(--source-aliexpress); }
.source-pill.source-walmart.active { background: var(--source-walmart); }

/* Active filter chips */
.active-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 8px;
    border-top: 1px solid var(--border-glass);
}

.filter-chip-active {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(99,102,241,0.15);
    border: 1px solid rgba(99,102,241,0.3);
    border-radius: var(--radius-pill);
    font-size: 12px;
    color: var(--accent-1);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.filter-chip-active:hover {
    background: rgba(99,102,241,0.25);
    color: var(--text-primary);
}

.chip-remove {
    font-size: 10px;
    opacity: 0.7;
}

.filter-chip-clear {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: underline;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.filter-chip-clear:hover { color: var(--accent-3); }

/* ============================================
   SUBCATEGORY TABS
   ============================================ */
.subcategory-tabs-section {
    padding: 16px 0 0;
    position: relative;
    z-index: 1;
}

.subcategory-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 4px 40px;
    margin: 0 -40px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.subcategory-tabs::-webkit-scrollbar { display: none; }

.sub-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: var(--radius-pill);
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    transition: all var(--transition-fast);
    cursor: pointer;
    flex-shrink: 0;
    text-decoration: none;
}

.sub-tab:hover {
    background: var(--bg-glass-hover);
    color: var(--text-primary);
    border-color: var(--border-glow);
}

.sub-tab.active {
    background: rgba(99,102,241,0.2);
    color: var(--accent-1);
    border-color: rgba(99,102,241,0.4);
    font-weight: 600;
}

/* ============================================
   TAGS CLOUD
   ============================================ */
.tags-cloud-section {
    padding: 32px 0 48px;
    position: relative;
    z-index: 1;
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.tag-cloud-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.tag-cloud-pill:hover {
    background: rgba(99,102,241,0.15);
    border-color: rgba(99,102,241,0.3);
    color: var(--accent-1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99,102,241,0.15);
}

.tag-cloud-more {
    background: var(--gradient-primary);
    border-color: transparent;
    color: #fff !important;
    font-weight: 600;
}

.tag-cloud-more:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99,102,241,0.3);
}

/* Tag page meta */
.tag-page-badge { margin-bottom: 10px; }
.page-meta {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 6px;
}

/* ============================================
   TAGS INDEX PAGE
   ============================================ */
.tags-index-section {
    padding: 32px 0 60px;
    position: relative;
    z-index: 1;
}

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

.tag-index-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px;
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all var(--transition-med);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    min-height: 90px;
}

.tag-index-card::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity var(--transition-med);
    background: rgba(255,255,255,0.06);
}

.tag-index-card:hover::before { opacity: 1; }

.tag-index-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}

/* Gradient variants */
.tag-index-card.grad-purple  { background: linear-gradient(135deg, rgba(99,102,241,0.25), rgba(139,92,246,0.15)); border-color: rgba(99,102,241,0.3); }
.tag-index-card.grad-pink    { background: linear-gradient(135deg, rgba(236,72,153,0.25), rgba(244,63,94,0.15)); border-color: rgba(236,72,153,0.3); }
.tag-index-card.grad-orange  { background: linear-gradient(135deg, rgba(251,146,60,0.25), rgba(251,191,36,0.15)); border-color: rgba(251,146,60,0.3); }
.tag-index-card.grad-teal    { background: linear-gradient(135deg, rgba(6,182,212,0.25), rgba(16,185,129,0.15)); border-color: rgba(6,182,212,0.3); }
.tag-index-card.grad-blue    { background: linear-gradient(135deg, rgba(59,130,246,0.25), rgba(6,182,212,0.15)); border-color: rgba(59,130,246,0.3); }
.tag-index-card.grad-green   { background: linear-gradient(135deg, rgba(16,185,129,0.25), rgba(6,182,212,0.15)); border-color: rgba(16,185,129,0.3); }

.tag-index-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-heading);
}

.tag-index-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tag-index-count {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: auto;
}

/* Browse all button */
.btn-browse-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 12px 28px;
    background: var(--gradient-primary);
    color: #fff;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.btn-browse-all:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99,102,241,0.3);
    color: #fff;
}

/* ============================================
   RESPONSIVE — NEW ELEMENTS
   ============================================ */
@media (max-width: 768px) {
    .search-form-inline { flex-direction: column; }
    .btn-search-submit { width: 100%; justify-content: center; }

    .filter-bar { padding: 12px 14px; }
    .filter-group { flex-direction: column; align-items: flex-start; gap: 6px; }
    .filter-label { min-width: unset; }

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

    .search-overlay-input { font-size: 16px; }
}

@media (max-width: 480px) {
    .tags-index-grid { grid-template-columns: repeat(2, 1fr); }
    .tag-index-card { padding: 14px; min-height: 70px; }
    .tag-index-name { font-size: 13px; }
}

/* ============================================
   CATEGORY PAGE — SEARCH WITHIN CATEGORY
   ============================================ */
.category-search-section {
    padding: 20px 0 0;
    position: relative;
    z-index: 1;
}

.category-search-form { width: 100%; }

.cat-search-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    padding: 13px 18px;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    position: relative;
}

.cat-search-wrap:focus-within {
    border-color: var(--border-glow);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.12), 0 4px 20px rgba(99,102,241,0.08);
}

.cat-search-icon {
    color: var(--text-muted);
    flex-shrink: 0;
    transition: color var(--transition-fast);
}

.cat-search-wrap:focus-within .cat-search-icon {
    color: var(--accent-1);
}

.cat-search-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    font-size: 15px;
    color: var(--text-primary);
    font-family: var(--font-body);
    caret-color: var(--accent-1);
    min-width: 0;
}

.cat-search-input::placeholder { color: var(--text-muted); }

.cat-search-clear {
    color: var(--text-muted);
    font-size: 13px;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    cursor: pointer;
    text-decoration: none;
    flex-shrink: 0;
    line-height: 1;
}

.cat-search-clear:hover {
    background: var(--bg-glass-hover);
    color: var(--text-primary);
}

.cat-search-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 20px;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-xl);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
    font-family: var(--font-body);
    flex-shrink: 0;
}

.cat-search-btn:hover {
    opacity: 0.88;
    box-shadow: 0 4px 14px rgba(99,102,241,0.35);
}

.cat-search-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    font-size: 13px;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.cat-search-highlight {
    font-weight: 600;
    color: var(--text-primary);
}

.cat-search-reset {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: underline;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.cat-search-reset:hover { color: var(--accent-3); }

/* ============================================
   TAGS PAGE — SEARCH / FILTER BAR
   ============================================ */
.tags-search-section {
    padding: 20px 0 0;
    position: relative;
    z-index: 1;
}

.tags-search-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    padding: 14px 20px;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.tags-search-wrap:focus-within {
    border-color: var(--border-glow);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.12), 0 4px 20px rgba(99,102,241,0.08);
}

.tags-search-wrap:focus-within .cat-search-icon {
    color: var(--accent-1);
}

.tags-search-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    font-size: 16px;
    color: var(--text-primary);
    font-family: var(--font-body);
    caret-color: var(--accent-1);
    min-width: 0;
}

.tags-search-input::placeholder { color: var(--text-muted); }

.tags-search-clear {
    display: none;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--bg-glass-hover);
    border: none;
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.tags-search-clear:hover {
    background: rgba(244,63,94,0.15);
    color: var(--accent-3);
}

.tags-search-meta {
    margin-top: 10px;
    font-size: 13px;
    color: var(--text-secondary);
    padding: 0 4px;
}

.tags-no-results {
    text-align: center;
    padding: 60px 20px;
}

.tags-no-results .no-products-icon { font-size: 48px; margin-bottom: 16px; }

.tags-clear-inline {
    background: none;
    border: none;
    color: var(--accent-1);
    font-size: inherit;
    cursor: pointer;
    text-decoration: underline;
    font-family: inherit;
    padding: 0;
}

.tags-clear-inline:hover { color: var(--accent-2); }

/* Responsive tweaks for search bars */
@media (max-width: 640px) {
    .cat-search-btn {
        padding: 9px 14px;
        font-size: 12px;
    }
    .cat-search-btn svg { display: none; }
    .tags-search-input { font-size: 15px; }
}

/* ============================================
   UNIVERSAL SEARCH BAR
   ============================================ */

/* Remove old overlay button if it still appears */
.header-search-btn { display: none !important; }

/* --- Search row (below nav row) --- */
.header-search-row {
    padding: 8px 0 10px;
    border-top: 1px solid var(--border-glass);
    position: relative;
    z-index: 10; /* Below mega menu (1500) */
}

/* --- Container inside search row --- */
.universal-search {
    width: 100%;
    max-width: 100%;
    position: relative;
    margin: 0;
    z-index: 1200; /* Search dropdown must float above page content */
}

/* --- Input wrap --- */
.usearch-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-tertiary);
    border: 1.5px solid var(--border-glass);
    border-radius: var(--radius-pill);
    padding: 9px 10px 9px 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.usearch-wrap:focus-within {
    border-color: var(--accent-1);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.15), 0 4px 24px rgba(99,102,241,0.08);
    background: var(--bg-card);
}

.usearch-icon {
    color: var(--text-muted);
    flex-shrink: 0;
    transition: color 0.15s;
}

.usearch-wrap:focus-within .usearch-icon { color: var(--accent-1); }

/* --- Text input --- */
.usearch-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    font-size: 14px;
    font-family: var(--font-body);
    color: var(--text-primary);
    caret-color: var(--accent-1);
    min-width: 0;
}

.usearch-input::placeholder { color: var(--text-muted); font-size: 13px; }

/* --- Clear button --- */
.usearch-clear {
    display: none;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--bg-glass-hover);
    border: none;
    border-radius: 50%;
    color: var(--text-muted);
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.15s;
}

.usearch-clear:hover { background: rgba(244,63,94,0.15); color: var(--accent-3); }

/* --- Submit button --- */
.usearch-submit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
    font-family: var(--font-body);
    flex-shrink: 0;
}

.usearch-submit:hover { opacity: 0.88; box-shadow: 0 4px 14px rgba(99,102,241,0.35); }

/* --- Dropdown panel --- */
.usearch-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 60px rgba(0,0,0,0.45), 0 0 0 1px rgba(99,102,241,0.08);
    overflow: hidden;
    display: none;
    z-index: 1200;
    max-height: 480px;
    overflow-y: auto;
    animation: dropdownIn 0.2s cubic-bezier(0.16,1,0.3,1);
}

.usearch-dropdown.open { display: block; }

@keyframes dropdownIn {
    from { opacity: 0; transform: translateY(-8px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.usearch-dropdown-inner { padding: 8px 0; }

/* --- Section headers --- */
.usearch-section-label {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    border-top: 1px solid var(--border-glass);
    margin-top: 4px;
}

.usearch-section-label:first-child { border-top: none; margin-top: 0; }

/* --- Product suggestion rows --- */
.usearch-product {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    text-decoration: none;
    color: var(--text-primary);
    transition: background 0.12s;
    cursor: pointer;
}

.usearch-product:hover { background: var(--bg-glass-hover); }

.usearch-product-img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    flex-shrink: 0;
}

.usearch-product-info { flex: 1; min-width: 0; }

.usearch-product-title {
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-primary);
}

.usearch-product-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 3px;
}

.usearch-product-price {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-1);
}

.usearch-product-discount {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    background: rgba(16,185,129,0.15);
    color: var(--accent-success, #10b981);
    border-radius: 4px;
}

.usearch-product-source {
    font-size: 10px;
    color: var(--text-muted);
    margin-left: auto;
    flex-shrink: 0;
}

/* --- Category / Tag rows --- */
.usearch-cat,
.usearch-tag {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    transition: background 0.12s, color 0.12s;
    cursor: pointer;
}

.usearch-cat:hover,
.usearch-tag:hover {
    background: var(--bg-glass-hover);
    color: var(--text-primary);
}

.usearch-cat-icon,
.usearch-tag-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 14px;
    flex-shrink: 0;
}

.usearch-cat-icon { background: rgba(99,102,241,0.12); }
.usearch-tag-icon { background: rgba(236,72,153,0.12); }

.usearch-cat-arrow,
.usearch-tag-arrow {
    margin-left: auto;
    font-size: 11px;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* --- View All footer row --- */
.usearch-view-all {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 16px;
    border-top: 1px solid var(--border-glass);
    margin-top: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-1);
    text-decoration: none;
    transition: background 0.12s;
    cursor: pointer;
}

.usearch-view-all:hover { background: rgba(99,102,241,0.06); }
.usearch-view-all-arrow { font-size: 16px; }

/* --- Empty / loading state --- */
.usearch-empty {
    padding: 24px 16px;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

.usearch-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 18px;
    color: var(--text-muted);
    font-size: 13px;
}

.usearch-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-glass);
    border-top-color: var(--accent-1);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================
   MOBILE SEARCH BAR (below header on mobile)
   ============================================ */
.mobile-search-bar {
    display: none;
    padding: 8px 16px 12px;
    border-top: 1px solid var(--border-glass);
}

.mobile-search-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-pill);
    padding: 9px 14px;
}

.mobile-search-wrap svg { color: var(--text-muted); flex-shrink: 0; }

.mobile-search-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    font-size: 14px;
    color: var(--text-primary);
    font-family: var(--font-body);
    caret-color: var(--accent-1);
}

.mobile-search-input::placeholder { color: var(--text-muted); }

.mobile-search-submit {
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
    transition: opacity 0.15s;
}

.mobile-search-submit:hover { opacity: 0.85; }

/* ============================================
   RESPONSIVE: UNIVERSAL SEARCH
   ============================================ */
@media (max-width: 1024px) {
    .usearch-submit span { display: none; }
    .usearch-submit { padding: 7px 10px; }
}

@media (max-width: 768px) {
    /* Hide search row on mobile — mobile bar shows instead */
    .header-search-row { display: none !important; }
    /* Show mobile search bar below header */
    .mobile-search-bar { display: block; }
}

@media (max-width: 480px) {
    .mobile-search-bar { padding: 6px 12px 10px; }
}
/* ============================================
   HOMEPAGE SIDEBAR LAYOUT
   ============================================ */
.page-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    align-items: start;
    margin-top: 20px;
}

.sidebar-panel {
    position: sticky;
    top: calc(var(--header-height) + 20px);
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    z-index: 100;
}

.sidebar-header-mobile {
    display: none;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-glass);
}
.sidebar-header-mobile h3 { font-size: 18px; font-weight: 600; }
.mobile-filter-close {
    background: none; border: none; font-size: 24px; color: var(--text-muted); cursor: pointer;
}

.sidebar-widget {
    margin-bottom: 25px;
}
.sidebar-widget:last-child { margin-bottom: 0; }

.sidebar-widget-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Category List */
.sidebar-cat-list { list-style: none; padding: 0; margin: 0; }
.sidebar-cat-list > li { margin-bottom: 8px; }
.sidebar-cat-link {
    display: flex; align-items: center; gap: 8px;
    color: var(--text-primary); text-decoration: none; font-weight: 500; font-size: 15px;
    transition: color 0.2s ease;
}
.sidebar-cat-link:hover { color: var(--accent-1); }
.sidebar-cat-link .cat-icon { font-size: 18px; }

.sidebar-subcat-list {
    list-style: none; padding-left: 26px; margin: 6px 0 0 0;
}
.sidebar-subcat-list li { margin-bottom: 6px; }
.sidebar-subcat-list a {
    color: var(--text-secondary); text-decoration: none; font-size: 14px;
    transition: color 0.2s ease;
}
.sidebar-subcat-list a:hover { color: var(--accent-1); }

/* Price Form */
.sidebar-price-form {
    display: flex; align-items: center; gap: 8px;
}
.sidebar-price-form input {
    width: 100%; min-width: 0;
    padding: 8px 10px;
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    background: var(--bg-body);
    color: var(--text-primary);
    font-size: 14px;
}
.sidebar-price-form span { color: var(--text-secondary); }
.sidebar-price-form button {
    background: var(--gradient-primary); color: #fff;
    border: none; border-radius: var(--radius-sm);
    padding: 8px 14px; font-weight: 600; cursor: pointer; transition: opacity 0.2s;
}
.sidebar-price-form button:hover { opacity: 0.9; }

/* Filter List */
.sidebar-filter-list { list-style: none; padding: 0; margin: 0; }
.sidebar-filter-list li { margin-bottom: 8px; }
.sidebar-filter-list a {
    color: var(--text-secondary); text-decoration: none; font-size: 14px;
    transition: color 0.2s ease;
}
.sidebar-filter-list a:hover { color: var(--accent-1); text-decoration: underline; }

.mobile-filter-btn {
    display: none;
    width: 100%; align-items: center; justify-content: center; gap: 8px;
    background: var(--bg-card); border: 1px solid var(--border-glass);
    color: var(--text-primary); font-weight: 600; font-size: 15px;
    padding: 12px; border-radius: var(--radius-md); margin-bottom: 20px; cursor: pointer;
    box-shadow: var(--shadow-sm);
}

@media (max-width: 1024px) {
    .page-layout {
        grid-template-columns: 1fr;
    }
    .mobile-filter-btn {
        display: flex;
    }
    .sidebar-panel {
        position: fixed;
        top: 0; left: 0; bottom: 0; width: 300px;
        z-index: 2500;
        border-radius: 0; border: none; border-right: 1px solid var(--border-glass);
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
    }
    .sidebar-panel.open {
        transform: translateX(0);
    }
    .sidebar-header-mobile { display: flex; }
}




