/* ============================================
   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: 68px;
    --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 {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== 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: var(--header-height);
    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;
    overflow: hidden;
}

.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;
}

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

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

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

.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 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.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;
}

.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: 8px;
    margin: 8px 16px 16px;
    padding: 12px 20px;
    background: var(--gradient-primary);
    color: #fff;
    font-size: 13px;
    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;
}

.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; }

/* 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;
}

/* ============================================
   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;
}

.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 { 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);
}
