/* ===== CSS RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

:root {
    /* Updated Color Palette */
    --primary-black: #1A1A1A;
    --secondary-black: #2D2D2D;
    --dark-grey: #404040;
    --medium-grey: #666666;
    --light-grey: #F8F8F8;
    --white: #FFFFFF;
    
    /* Blue Accent Colors */
    --blue-primary: #0066ff;
    --blue-light: #E6F2FF;
    --blue-dark: #0047B3;
    --accent-blue: #009cf7;
    
    /* Text Colors */
    --text-dark: #1A1A1A;
    --text-medium: #404040;
    --text-light: #666666;
    --text-white: #FFFFFF;
    --text-blue: #004499;
    
    /* Gradients */
    --gradient-premium: linear-gradient(135deg, var(--blue-primary) 0%, var(--accent-blue) 100%);
    --gradient-dark: linear-gradient(135deg, #000000 0%, #2D2D2D 100%);
    --gradient-light: linear-gradient(135deg, #FFFFFF 0%, #F8F8F8 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(26, 26, 26, 0.05);
    --shadow-md: 0 4px 16px rgba(26, 26, 26, 0.08);
    --shadow-lg: 0 8px 32px rgba(26, 26, 26, 0.12);
    --shadow-xl: 0 12px 48px rgba(26, 26, 26, 0.15);
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Transitions */
    --transition-fast: all 0.2s ease;
    --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.main-content {
    flex: 1;
    width: 100%;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 1.5rem;
    text-align: center;
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    margin-bottom: 1rem;
}

.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gradient-premium);
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--primary-black);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    transition: var(--transition-normal);
}

.header.scrolled {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-icon {
    width: 40px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text .site-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--blue-primary);
    font-family: 'Poppins', sans-serif;
}

.tagline{
    font-size: 0.7rem;
    color: var(--text-white);
    letter-spacing: 0.5px;
}

/* User Info in Header */
.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 24px;
    color: var(--text-white);
    font-size: 0.9rem;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient-premium);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.user-email {
    color: var(--blue-primary);
    font-weight: 500;
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 24px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 0;
    position: relative;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-links a:hover {
    color: var(--blue-primary);
}

.nav-links a.active {
    color: var(--blue-primary);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-premium);
}

/* Auth Buttons */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 24px;
}

.btn-login {
    background: transparent;
    color: var(--text-white);
    border: none;
    padding: 8px 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-fast);
    font-size: 0.9rem;
}

.btn-login:hover {
    color: var(--blue-primary);
}

.btn-primary {
    background: var(--gradient-premium);
    color: var(--white);
    border: none;
    padding: 10px 24px;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-logout {
    background: transparent;
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ff6b6b;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--blue-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    z-index: 1002;
}

/* ===== HERO SECTION ===== */
.hero-section {
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
    min-height: auto;
    display: flex;
    align-items: center;
    background: var(--gradient-light);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

@media (min-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }
}

.hero-text {
    text-align: center;
}

@media (min-width: 992px) {
    .hero-text {
        text-align: left;
    }
}

.hero-text h1 {
    font-size: clamp(2rem, 6vw, 3.5rem);
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--text-blue);
}

@media (min-width: 768px) {
    .hero-text h1 {
        margin-bottom: 1.5rem;
    }
}

.hero-text p {
    font-size: clamp(1rem, 3vw, 1.25rem);
    color: var(--text-medium);
    margin-bottom: 2rem;
    max-width: 100%;
}

@media (min-width: 768px) {
    .hero-text p {
        margin-bottom: 2.5rem;
        max-width: 500px;
    }
}

@media (min-width: 992px) {
    .hero-text p {
        margin-left: 0;
        margin-right: 0;
    }
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
}

@media (min-width: 576px) {
    .hero-buttons {
        flex-direction: row;
        gap: 16px;
    }
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--blue-primary);
    color: var(--blue-primary);
    padding: 10px 24px;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.btn-secondary:hover {
    background: var(--gradient-premium);
    color: var(--white);
    border-color: transparent;
    transform: translateY(-2px);
}

.hero-illustration {
    display: none;
    position: relative;
}

@media (min-width: 992px) {
    .hero-illustration {
        display: block;
        padding: 20px;
    }
}

.hero-illustration::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(10px);
    z-index: -1;
}

.hero-illustration img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

/* ===== FEATURES SECTION ===== */
.features-section {
    padding: 60px 0;
}

@media (min-width: 768px) {
    .features-section {
        padding: 80px 0;
    }
}

@media (min-width: 992px) {
    .features-section {
        padding: 100px 0;
    }
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
    }
}

.feature-card {
    text-align: center;
    padding: 30px 20px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--blue-primary);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--blue-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    color: var(--blue-primary);
}

.feature-card h3 {
    margin-bottom: 12px;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-medium);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ===== HOW IT WORKS SECTION ===== */
.how-it-works {
    padding: 60px 0;
    background: var(--light-grey);
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .how-it-works {
        padding: 80px 0;
    }
}

@media (min-width: 992px) {
    .how-it-works {
        padding: 100px 0;
    }
}

.steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
    position: relative;
}

@media (min-width: 768px) {
    .steps {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 30px;
    }
}

.step {
    text-align: center;
    padding: 30px 20px;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--gradient-premium);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 auto 20px;
    position: relative;
    z-index: 2;
}

.step h3 {
    margin-bottom: 12px;
    color: var(--text-dark);
}

.step p {
    color: var(--text-medium);
    font-size: 0.95rem;
}

/* ===== GALLERY SECTION ===== */
.gallery-section {
    padding: 60px 0;
}

@media (min-width: 768px) {
    .gallery-section {
        padding: 80px 0;
    }
}

@media (min-width: 992px) {
    .gallery-section {
        padding: 100px 0;
    }
}

.gallery-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 40px;
}

@media (min-width: 992px) {
    .gallery-container {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }
}

.gallery-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.gallery-header {
    text-align: center;
    margin-bottom: 20px;
}

.gallery-header h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    color: var(--blue-primary);
    margin-bottom: 8px;
}

.gallery-header p {
    color: var(--text-medium);
    font-size: 0.95rem;
}

/* Product Gallery */
.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 576px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    border: 1px solid transparent;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--blue-primary);
}

.product-image {
    height: 180px;
    width: 100%;
    overflow: hidden;
}

@media (min-width: 768px) {
    .product-image {
        height: 200px;
    }
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-content {
    padding: 20px;
}

.product-badge {
    display: inline-block;
    background: var(--gradient-premium);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--blue-primary);
    margin-bottom: 12px;
}

.product-seller {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 0.85rem;
}

.product-seller i {
    color: var(--blue-primary);
}

/* Service Provider Gallery */
.provider-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 576px) {
    .provider-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

.provider-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    border: 1px solid transparent;
    text-align: center;
}

.provider-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--blue-primary);
}

.provider-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--blue-primary);
    margin: 0 auto 16px;
}

@media (min-width: 768px) {
    .provider-avatar {
        width: 80px;
        height: 80px;
    }
}

.provider-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.provider-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-dark);
}

.provider-category {
    color: var(--blue-primary);
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.provider-rating {
    color: var(--blue-primary);
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.provider-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--text-light);
    font-size: 0.85rem;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials-section {
    padding: 60px 0;
    background: var(--light-grey);
}

@media (min-width: 768px) {
    .testimonials-section {
        padding: 80px 0;
    }
}

@media (min-width: 992px) {
    .testimonials-section {
        padding: 100px 0;
    }
}

.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 40px;
}

@media (min-width: 768px) {
    .testimonial-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
    }
}

.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--light-grey);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 3rem;
    color: rgba(0, 102, 255, 0.1);
    font-family: serif;
    line-height: 1;
}

.testimonial-content {
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
    position: relative;
    z-index: 1;
    font-size: 0.95rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--blue-primary);
    flex-shrink: 0;
}

.author-info h4 {
    margin-bottom: 2px;
    color: var(--text-dark);
    font-size: 1rem;
}

.author-info p {
    color: var(--text-light);
    font-size: 0.85rem;
}

.testimonial-rating {
    color: var(--blue-primary);
    margin-bottom: 12px;
    font-size: 0.9rem;
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 60px 0;
    background: var(--gradient-premium);
    color: var(--white);
    text-align: center;
}

@media (min-width: 768px) {
    .cta-section {
        padding: 80px 0;
    }
}

@media (min-width: 992px) {
    .cta-section {
        padding: 100px 0;
    }
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: 20px;
}

.cta-content p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
}

@media (min-width: 576px) {
    .cta-buttons {
        flex-direction: row;
        gap: 16px;
    }
}

.btn-dark {
    background: var(--primary-black);
    color: var(--white);
    border: none;
    padding: 12px 32px;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.btn-dark:hover {
    background: var(--secondary-black);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===== LIVE STATS SECTION ===== */
.stats-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #0066ff 0%, #0047B3 100%);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.stat-item {
    text-align: center;
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    opacity: 0.9;
}

.stat-number {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    .stat-number { font-size: 2.5rem; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .stat-number { font-size: 2rem; }
    .stat-icon { font-size: 2rem; }
}

/* ===== FEATURED CATEGORIES ===== */
.categories-section {
    padding: 80px 0;
    background: var(--light-grey);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.category-card {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
}

.category-image {
    width: 100%;
    height: 100%;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 16px;
    text-align: center;
}

.category-overlay i {
    font-size: 2rem;
    margin-bottom: 12px;
    opacity: 0.9;
}

.category-overlay h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.category-overlay span {
    font-size: 0.85rem;
    opacity: 0.8;
}

@media (max-width: 992px) {
    .categories-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 576px) {
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .category-overlay i { font-size: 1.5rem; }
    .category-overlay h3 { font-size: 0.95rem; }
}

/* ===== TRENDING PRODUCTS ===== */
.trending-section {
    padding: 80px 0;
    background: white;
}

.section-header-flex {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 32px;
}

.view-all-link {
    color: var(--blue-primary);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s ease;
}

.view-all-link:hover { gap: 10px; }

.trending-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.trending-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    position: relative;
}

.trending-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.trending-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.trending-image {
    height: 200px;
    overflow: hidden;
}

.trending-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.trending-card:hover .trending-image img {
    transform: scale(1.05);
}

.trending-content {
    padding: 16px;
}

.trending-content h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.trending-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.trending-price .current {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--blue-primary);
}

.trending-price .original {
    font-size: 0.9rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.trending-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-light);
}

.trending-stats i { color: #F59E0B; margin-right: 4px; }

@media (max-width: 992px) {
    .trending-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
    .trending-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .trending-image { height: 150px; }
    .section-header-flex { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ===== POPULAR BRANDS ===== */
.brands-section {
    padding: 60px 0;
    background: var(--light-grey);
    overflow: hidden;
}

.brands-carousel {
    overflow: hidden;
    margin-top: 32px;
}

.brands-track {
    display: flex;
    gap: 60px;
    animation: brands-scroll 25s linear infinite;
}

.brand-logo {
    flex: 0 0 120px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: var(--radius-md);
    padding: 12px 20px;
    box-shadow: var(--shadow-sm);
}

.brand-logo img {
    max-width: 100%;
    max-height: 40px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.brand-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.brand-logo span {
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.9rem;
}

@keyframes brands-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== NEW ARRIVALS ===== */
.new-arrivals-section {
    padding: 80px 0;
    background: white;
}

.new-arrivals-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.arrival-card {
    position: relative;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.arrival-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.new-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #22C55E;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 2;
}

.arrival-image {
    height: 180px;
    overflow: hidden;
}

.arrival-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.arrival-card:hover .arrival-image img {
    transform: scale(1.05);
}

.arrival-content {
    padding: 16px;
}

.arrival-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.arrival-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--blue-primary);
    margin-bottom: 4px;
}

.arrival-date {
    font-size: 0.8rem;
    color: var(--text-light);
}

@media (max-width: 992px) {
    .new-arrivals-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
    .new-arrivals-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .arrival-image { height: 140px; }
}

/* ===== NEWSLETTER ===== */
.newsletter-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #1A1A1A 0%, #2D2D2D 100%);
    color: white;
}

.newsletter-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.newsletter-text h2 {
    text-align: left;
    font-size: 1.75rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.newsletter-text h2 i { color: var(--blue-primary); }

.newsletter-text p {
    color: rgba(255,255,255,0.8);
}

.newsletter-form {
    flex: 1;
    max-width: 500px;
}

.newsletter-input-group {
    display: flex;
    gap: 12px;
}

.newsletter-input-group input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.05);
    color: white;
    font-size: 1rem;
}

.newsletter-input-group input::placeholder {
    color: rgba(255,255,255,0.5);
}

.newsletter-input-group input:focus {
    outline: none;
    border-color: var(--blue-primary);
    background: rgba(255,255,255,0.1);
}

.newsletter-input-group button {
    padding: 14px 24px;
    background: var(--blue-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
}

.newsletter-input-group button:hover {
    background: var(--blue-dark);
    transform: translateY(-2px);
}

.newsletter-disclaimer {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    margin-top: 12px;
}

@media (max-width: 768px) {
    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }
    .newsletter-text h2 { justify-content: center; }
    .newsletter-form { max-width: 100%; }
    .newsletter-input-group { flex-direction: column; }
}

/* ===== APP DOWNLOAD ===== */
.app-download-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.app-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.app-text {
    flex: 1;
}

.coming-soon-badge {
    display: inline-block;
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.app-text h2 {
    text-align: left;
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.app-text > p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 24px;
}

.app-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.app-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    color: var(--text-medium);
}

.app-feature i { color: #22C55E; font-size: 1.2rem; }

.app-buttons {
    display: flex;
    gap: 16px;
}

.app-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: var(--primary-black);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.app-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.app-btn:not(.disabled):hover {
    background: var(--secondary-black);
    transform: translateY(-2px);
}

.app-btn i { font-size: 1.75rem; }

.app-btn div {
    display: flex;
    flex-direction: column;
}

.app-btn span {
    font-size: 0.7rem;
    opacity: 0.8;
}

.app-btn strong {
    font-size: 1rem;
}

.app-mockup {
    flex: 0 0 300px;
}

.app-mockup img {
    width: 100%;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

@media (max-width: 768px) {
    .app-content {
        flex-direction: column;
        text-align: center;
    }
    .app-text h2 { text-align: center; }
    .app-features { align-items: center; }
    .app-buttons { justify-content: center; flex-wrap: wrap; }
    .app-mockup { order: -1; flex: 0 0 auto; max-width: 250px; }
}

/* ===== FOOTER ===== */
.footer {
    background: var(--primary-black);
    color: var(--text-white);
    padding: 50px 0 24px;
    width: 100%;
    margin-top: auto;
}

@media (min-width: 768px) {
    .footer {
        padding: 60px 0 24px;
    }
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 40px;
    }
}

.footer-logo {
    font-size: 1.75rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    color: var(--blue-primary);
    margin-bottom: 20px;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.footer-heading {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-white);
    font-weight: 600;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition-fast);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--blue-primary);
    padding-left: 4px;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-white);
    text-decoration: none;
    transition: var(--transition-normal);
    font-size: 1rem;
}

.social-links a:hover {
    background: var(--gradient-premium);
    color: var(--white);
    transform: translateY(-3px);
}

/* ===== AD BANNER ===== */
.ad-banner {
    width: 100%;
    background: var(--gradient-premium);
    color: var(--white);
    padding: 10px 0;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ad-banner-content {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.ad-banner-track {
    display: flex;
    width: max-content;
    gap: 32px;
    animation: scrollBanner 30s linear infinite;
    will-change: transform;
}

/* Pause animation on hover */
.ad-banner:hover .ad-banner-track {
    animation-play-state: paused;
}

.ad-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 20px;
    white-space: nowrap;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.ad-badge {
    background: var(--white);
    color: var(--blue-primary);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.ad-text {
    font-weight: 500;
    font-size: 0.8rem;
}

@keyframes scrollBanner {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ===== BACKGROUND SHAPES FOR HOW IT WORKS SECTION ===== */
.background-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    display: none;
}

@media (min-width: 768px) {
    .background-shapes {
        display: block;
    }
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    filter: blur(40px);
    animation: float 20s ease-in-out infinite;
}

.shape-1 {
    width: 200px;
    height: 200px;
    background: var(--blue-primary);
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    background: var(--accent-blue);
    bottom: 20%;
    right: 10%;
    animation-delay: 5s;
}

.shape-3 {
    width: 120px;
    height: 120px;
    background: var(--blue-light);
    top: 40%;
    right: 20%;
    animation-delay: 10s;
}

.shape-4 {
    width: 180px;
    height: 180px;
    background: var(--blue-primary);
    bottom: 10%;
    left: 15%;
    animation-delay: 15s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(120deg);
    }
    66% {
        transform: translateY(20px) rotate(240deg);
    }
}

/* Ensure steps are above shapes */
.steps, .step {
    position: relative;
    z-index: 2;
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 991px) {
    .mobile-menu-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 80px 24px 40px;
        box-shadow: var(--shadow-xl);
        z-index: 1001;
        transition: var(--transition-normal);
        justify-content: flex-start;
        align-items: flex-start;
        gap: 40px;
    }

    .main-nav.active {
        left: 0;
    }

    .nav-links {
        flex-direction: column;
        gap: 16px;
        width: 100%;
    }

    .nav-links a {
        color: var(--text-dark);
        font-size: 1rem;
    }

    .auth-buttons {
        margin-left: 0;
        flex-direction: column;
        width: 100%;
        gap: 16px;
    }

    .btn-login, .btn-primary {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .btn-login {
        color: var(--text-dark);
    }

    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-normal);
    }

    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .hero-section {
        padding: 120px 0 60px;
    }
    
    .btn-primary, .btn-dark, .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 16px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .features-grid, .steps, .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .feature-card, .testimonial-card {
        padding: 25px 20px;
    }

    .footer-content {
        text-align: center;
    }

    .footer-links a {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }
    
    .product-grid, .provider-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

/* ===== UTILITY CLASSES ===== */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
