/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-thumb {
    background-color: #666;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: #ffffff;
    color: #222;
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
.header {
    background: #ffffff;
    border-bottom: 1px solid #eaeaea;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 999;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-weight: bold;
    font-size: 1.4rem;
    color: #222;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
}

/* Cancel Button */
.cancel-btn {
    display: none;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
    position: absolute;
    top: 1rem;
    right: 1rem;
}

/* Navigation */
.desktop-nav {
    display: flex;
    gap: 1.5rem;
}

.desktop-nav.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
    transition: transform 0.3s ease;
    transform: translateX(0);
}

.desktop-nav.active .cancel-btn {
    display: block;
}

.desktop-nav a {
    color: #444;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.desktop-nav .btn.login {
    background-color: #f3f4f6;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.3s;
}

.desktop-nav .btn.login:hover {
    background-color: #e2e4e7;
}

/* Hero Section */
.hero {
    padding: 6rem 0;
    background-color: #f9fafb;
}

.hero-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.hero-text h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-text p {
    margin-bottom: 1.5rem;
    color: #555;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image {
    width: 50%;
    height: 20%;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    transition: all 0.3s;
}

.btn.primary {
    background-color: #222;
    color: #fff;
}

.btn.primary:hover {
    background-color: #444;
}

.btn.secondary {
    background-color: #f3f4f6;
    color: #222;
}

.btn.secondary:hover {
    background-color: #e2e4e7;
}

/* Maintain consistent section padding for layout */
.featured-products,
.categories,
.why-us,
.how-it-works,
.testimonials,
.faq,
.affiliate {
    padding: 4rem 0;
}

/* Headings */
h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-top: 3rem;
    margin-bottom: 2rem;
    text-align: center;
}

/* Grid utilities */
.grid {
    display: grid;
    gap: 2rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

/* Product Card */
.product-card {
    background-color: #fff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.product-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Card Content */
.product-details {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    color: #222;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
}

.product-location {
    font-size: 0.9rem;
    color: #666;
}

.product-location i {
    color: #555;
    margin-right: 6px;
}

/* Verified Badge and Cart Icon Container */
.product-badge-cart {
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

/* Verified Badge */
.product-badge.verified {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background-color: #e6f6ec;
    color: #1c6b3f;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
}

/* Cart Icon Link */
.buy-now-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0f172a;
    font-size: 1.3rem;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0;
}

.buy-now-btn:hover {
    color: #1e293b;
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    text-align: center;
}

/* Individual Category Card */
.category-card {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 2.5rem 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    outline-offset: 4px;
}

.category-card:hover,
.category-card:focus {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #d4af37;
    outline: none;
}

/* Icon Container */
.category-icon {
    font-size: 2.8rem;
    color: #222;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Category Title */
.category-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 0.75rem;
}

/* Category Link */
.category-link {
    font-weight: 600;
    color: #d4af37;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.category-link:hover,
.category-link:focus {
    color: #ff6b35;
    text-decoration: underline;
}

/* Visually Hidden (for sr-only paragraphs) */
.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Trust Cards */
.trust-grid {
    background-color: #f9fafb;
    padding: 50px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    text-align: center;
}

.trust-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 2.5rem 2rem;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
}

.trust-card:hover,
.trust-card:focus {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
    outline: none;
}

.trust-card i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #1f2937;
}

.trust-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.6rem;
}

.trust-card p {
    font-size: 1rem;
    color: #4b5563;
    line-height: 1.5;
    margin: 0;
}

/* Steps Grid */
.steps-grid {
    background-color: #f9fbfd;
    padding: 30px;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    text-align: center;
}

/* Individual Step Card */
.step-card {
    background-color: #fff;
    padding: 2.5rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
}

.step-card:focus,
.step-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-6px);
    outline: none;
}

/* Icon Wrapper */
.icon-wrapper {
    font-size: 2.5rem;
    color: #0f172a;
    margin-bottom: 1.2rem;
}

/* Step Title */
.step-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 0.8rem;
}

/* Step Description */
.step-description {
    font-size: 1rem;
    color: #555;
    line-height: 1.4;
    max-width: 280px;
}

/* Testimonials Grid */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

/* Testimonial Card */
.testimonial-card {
    background: #f9f9f9;
    border-left: 4px solid #222;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Testimonial Header: Image + Info */
.testimonial-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* User Image */
.testimonial-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* User Info: Name + Rating */
.testimonial-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* User Name */
.testimonial-name {
    font-weight: 700;
    font-size: 1rem;
    color: #222;
}

/* Star Rating */
.testimonial-rating {
    color: #f5b50a;
    font-size: 1rem;
}

/* Testimonial Text */
.testimonial-text {
    font-style: italic;
    color: #555;
    line-height: 1.4;
}

/* EARN / AFFILIATE SECTION */
.affiliate {
    background: #f8f9fa;
    padding: 50px;
    margin: 20px;
    text-align: center;
}

.affiliate .section-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #222;
}

.affiliate .section-description {
    font-size: 1rem;
    color: #444;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.affiliate-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.step {
    background: #fff;
    border-radius: 8px;
    padding: 2rem 1rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.step-icon {
    background: #e1e1e1;
    color: #1c1c1c;
    font-size: 1.5rem;
    width: 48px;
    height: 48px;
    line-height: 48px;
    border-radius: 50%;
    display: inline-block;
    margin-bottom: 1rem;
}

.step h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #111;
}

.step p {
    font-size: 0.95rem;
    color: #555;
}

.affiliate .cta {
    margin-top: 3rem;
}

.affiliate .btn.primary {
    background-color: #1f1f1f;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.affiliate .btn.primary:hover {
    background-color: #333;
}

/* FAQ */
.faq-list details {
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #eaeaea;
    cursor: pointer;
}

/* Footer */
.footer {
    background: #e5e7e9;
    padding: 3rem 0 2rem;
    font-family: 'Inter', sans-serif;
    color: #333;
}

.footer-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.footer h4 {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #222;
}

.footer-logo {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #222;
}

.footer-column p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: #444;
    display: flex;
    text-align: center;
    align-items: center;
    gap: 0.5rem;
}

.footer-column a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: #444;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: #000;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.social-links a {
    font-size: 1.4rem;
    color: #444;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #000;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #666;
}

/* Responsive Styles */
@media (max-width: 1000px) {
    .desktop-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .desktop-nav.active {
        display: flex;
    }

    .container {
        width: 94%;
    }

    /* HERO SECTION FIX */
    .hero {
        padding: 3rem 1rem;
        text-align: center;
    }

    .hero-content {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }

    .hero-text h1 {
        font-size: 1.6rem;
        line-height: 1.4;
    }

    .hero-text p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        color: #444;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
        font-size: 1rem;
    }

    .hero-image {
        width: 100%;
        max-width: 320px;
    }

    .hero-image img {
        width: 100%;
        height: auto;
        border-radius: 8px;
        object-fit: cover;
    }

    /* PRODUCT GRID FIX */
    .product-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* CATEGORY GRID */
    .category-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* TRUST CARDS */
    .trust-grid {
        padding: 2rem 1rem;
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* STEPS GRID */
    .steps-grid {
        padding: 2rem 1rem;
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* TESTIMONIALS */
    .testimonial-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* AFFILIATE SECTION */
    .affiliate-steps {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* FOOTER */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .footer-column p,
    .footer-column a {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }
}