:root {
    /* Colors - Light Mode */
    --primary: #2563EB;
    --primary-hover: #1D4ED8;
    --secondary: #1E293B;
    --highlight: #F59E0B;
    --highlight-hover: #D97706;
    --bg-main: #F8FAFC;
    --bg-card: #FFFFFF;
    --text-main: #0F172A;
    --text-muted: #64748B;
    --border-color: #E2E8F0;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(226, 232, 239, 0.5);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark {
    /* Colors - Dark Mode */
    --bg-main: #0F172A;
    --bg-card: #1E293B;
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --border-color: #334155;
    --glass-bg: rgba(15, 23, 42, 0.8);
    --glass-border: rgba(51, 65, 85, 0.5);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.3);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.4);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.5);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: inherit;
}

.btn-primary {
    background-color: var(--primary);
    color: #FFFFFF;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-highlight {
    background-color: var(--highlight);
    color: #FFFFFF;
}

.btn-highlight:hover {
    background-color: var(--highlight-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: #FFFFFF;
    transform: translateY(-2px);
}

.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.125rem; }
.btn-full { width: 100%; }

/* Header */
.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

.header-wrapper {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
}

.dark .logo a { color: var(--text-main); }

.logo-icon {
    color: var(--primary);
    display: flex;
}

.logo-text span span {
    color: var(--primary);
}

.nav-menu ul {
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    font-weight: 600;
    color: var(--text-main);
    opacity: 0.8;
}

.nav-menu a:hover {
    opacity: 1;
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.search-box input {
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-main);
    width: 200px;
    transition: var(--transition);
}

.search-box input:focus {
    width: 250px;
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-box button {
    position: absolute;
    left: 10px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

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

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 160px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-trust {
    display: flex;
    gap: 2rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.trust-item i {
    color: var(--primary);
    width: 18px;
}

.hero-visual {
    position: relative;
}

.hero-img {
    width: 100%;
    border-radius: 30px;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
    transform: rotate(-2deg);
    transition: var(--transition);
}

.hero-img:hover {
    transform: rotate(0deg) scale(1.02);
}

.visual-blob {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.2) 0%, rgba(37, 99, 235, 0) 70%);
    filter: blur(40px);
    z-index: 1;
}

/* Benefits */
.benefits {
    padding: 60px 0;
    background: var(--bg-card);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-card {
    padding: 2rem;
    text-align: center;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

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

.benefit-icon {
    width: 60px;
    height: 60px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.benefit-card h3 {
    margin-bottom: 1rem;
}

.benefit-card p {
    color: var(--text-muted);
}

/* Product Grid */
.featured-products {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--highlight);
    color: #FFFFFF;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
}

.product-img {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition);
    padding: 10px;
}

.product-card:hover .product-img img {
    transform: scale(1.1);
}

.product-info {
    padding: 1.5rem;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.stars { color: #F59E0B; font-size: 0.9rem; }
.rating-count { color: var(--text-muted); font-size: 0.8rem; }

.product-info h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.price-wrapper {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.price-old {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.price-now {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

/* Categories */
.categories {
    padding: 100px 0;
    background: var(--bg-card);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
}

.category-item {
    background: var(--bg-main);
    padding: 2rem 1rem;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 160px;
}

.category-item:hover {
    background: var(--primary);
    color: #FFFFFF;
    transform: translateY(-5px);
}

.cat-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-card);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    transition: var(--transition);
    flex-shrink: 0;
}

.category-item:hover .cat-icon {
    background: #FFFFFF;
    color: var(--primary);
}

/* Lightning Deals */
.lightning-deals {
    padding: 100px 0;
}

.deals-banner {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: #FFFFFF;
    border-radius: 30px;
    padding: 3rem;
    margin-bottom: 3rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.deals-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.deals-header h2 {
    font-size: 2.5rem;
}

.pulse-icon {
    width: 12px;
    height: 12px;
    background: #EF4444;
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(239, 68, 68, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.countdown-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 1.2rem;
}

.countdown {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: monospace;
    background: rgba(0,0,0,0.2);
    padding: 0.2rem 1.5rem;
    border-radius: 10px;
}

.flash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.flash-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 2px solid var(--highlight);
    overflow: hidden;
    position: relative;
    transition: var(--transition);
}

.flash-card:hover {
    transform: scale(1.02);
}

.flash-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--highlight);
    color: #FFFFFF;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8rem;
    z-index: 2;
}

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

.flash-info {
    padding: 1.5rem;
}

.stock-container {
    margin: 1.5rem 0;
}

.stock-bar {
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.stock-progress {
    height: 100%;
    background: linear-gradient(to right, var(--highlight), #F59E0B);
    transition: width 1s ease;
}

.stock-text {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Best Sellers Carousel */
.best-sellers {
    padding: 100px 0;
    background: var(--bg-card);
}

.carousel-container {
    overflow-x: auto;
    padding: 2rem 0;
    scrollbar-width: none;
}

.carousel-track {
    display: flex;
    gap: 2rem;
}

.best-card {
    min-width: 300px;
    background: var(--bg-main);
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    position: relative;
    transition: var(--transition);
}

.best-card:hover {
    transform: translateY(-10px);
}

.rank {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 30px;
    height: 30px;
    background: var(--primary);
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.best-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.best-info h3 {
    margin-bottom: 0.5rem;
}

.stats {
    display: flex;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.stats span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Social Proof */
.social-proof {
    padding: 100px 0;
}

.proof-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.proof-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-muted);
    font-weight: 600;
}

.testimonials h2 {
    margin-bottom: 2rem;
    text-align: center;
}

.testimonial-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-md);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.user-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.user-info div strong {
    display: block;
}

.user-info div span {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
}

.testimonial-card p {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.testimonial-card .stars {
    color: #F59E0B;
}

/* FAQ */
.faq {
    padding: 100px 0;
    background: var(--bg-card);
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-main);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    border: none;
    color: var(--text-main);
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
}

.faq-question:hover {
    background: rgba(37, 99, 235, 0.05);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.5rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 1.5rem 1.5rem;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* Final CTA */
.final-cta {
    padding: 100px 0;
}

.cta-box {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #FFFFFF;
    text-align: center;
    padding: 5rem 2rem;
    border-radius: 40px;
    box-shadow: var(--shadow-lg);
}

.cta-box h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.cta-box p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

/* Footer */
.main-footer {
    padding: 80px 0 40px;
    background: var(--secondary);
    color: #FFFFFF;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand .logo a {
    color: #FFFFFF;
}

.footer-brand .logo-text span span {
    color: var(--highlight);
}

.footer-brand p {
    margin: 1.5rem 0;
    color: #94A3B8;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #94A3B8;
}

.footer-links a:hover {
    color: #FFFFFF;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #64748B;
    font-size: 0.9rem;
}

.affiliate-notice {
    max-width: 600px;
    margin: 1rem auto 0;
    font-size: 0.8rem;
    opacity: 0.6;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-content h1 { font-size: 2.5rem; }
    .hero-btns { justify-content: center; }
    .hero-trust { justify-content: center; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .proof-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--bg-card);
        transition: var(--transition);
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        padding-top: 2rem;
        gap: 2rem;
    }

    .nav-menu a {
        font-size: 1.5rem;
    }

    .header-actions .search-box, .header-actions .btn-sm {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero-content h1 { font-size: 2rem; }
    .footer-grid { grid-template-columns: 1fr; }
}
