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

body {
    font-family: 'Poppins', sans-serif;
    background: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

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

/* Navbar */
.navbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
}

    .navbar .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #6366f1;
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

    .nav-links a {
        text-decoration: none;
        color: #555;
        font-weight: 500;
        transition: 0.3s;
    }

        .nav-links a:hover, .nav-links a.active {
            color: #6366f1;
        }

.cart-btn {
    background: #6366f1;
    color: white;
    padding: 10px 18px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge {
    background: #ef4444;
    color: white;
    border-radius: 50%;
    padding: 2px 8px;
    font-size: 12px;
}

/* Hero */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, #f0f4ff, #ffffff);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-text h1 {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
}

    .hero-text h1 span {
        color: #6366f1;
    }

.hero-text p {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

.hero-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.btn-primary {
    display: inline-block;
    background: #6366f1;
    color: white;
    padding: 14px 32px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

    .btn-primary:hover {
        background: #4f46e5;
        transform: translateY(-2px);
    }

/* Section */
.section-title {
    font-size: 32px;
    text-align: center;
    margin-bottom: 40px;
    color: #1f2937;
}

.featured, .products-page, .cart-page {
    padding: 60px 0;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 25px;
}

.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: 0.3s;
}

    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    }

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

.product-info {
    padding: 16px;
}

    .product-info h3 {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .product-info .price {
        color: #6366f1;
        font-weight: 700;
        font-size: 18px;
        margin-bottom: 12px;
    }

.add-to-cart {
    width: 100%;
    padding: 10px;
    background: #6366f1;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

    .add-to-cart:hover {
        background: #4f46e5;
    }

/* Features */
.features {
    padding: 60px 0;
    background: white;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.feature-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: 16px;
    background: #f8f9fa;
    transition: 0.3s;
}

    .feature-card:hover {
        background: #eef2ff;
        transform: translateY(-5px);
    }

    .feature-card .icon {
        font-size: 40px;
        margin-bottom: 15px;
    }

    .feature-card h3 {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .feature-card p {
        font-size: 14px;
        color: #666;
    }

/* Filter Bar */
.filter-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

    .filter-bar input, .filter-bar select {
        padding: 12px 18px;
        border: 2px solid #e5e7eb;
        border-radius: 10px;
        font-size: 14px;
        flex: 1;
        min-width: 200px;
    }

        .filter-bar input:focus, .filter-bar select:focus {
            outline: none;
            border-color: #6366f1;
        }

/* Cart */
.cart-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: white;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

    .cart-item img {
        width: 80px;
        height: 80px;
        object-fit: cover;
        border-radius: 10px;
    }

.cart-item-info {
    flex: 1;
}

    .cart-item-info h3 {
        font-size: 16px;
        margin-bottom: 5px;
    }

    .cart-item-info .price {
        color: #6366f1;
        font-weight: 700;
    }

.remove-btn {
    background: #ef4444;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
}

.cart-summary {
    background: white;
    padding: 25px;
    border-radius: 16px;
    margin-top: 30px;
    text-align: right;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

    .cart-summary h3 {
        font-size: 24px;
        margin-bottom: 15px;
        color: #1f2937;
    }

/* Footer */
footer {
    background: #1f2937;
    color: #9ca3af;
    padding: 30px 0;
    text-align: center;
}

    footer .social a {
        color: #9ca3af;
        text-decoration: none;
        margin: 0 8px;
    }

        footer .social a:hover {
            color: #6366f1;
        }

/* Responsive */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-text h1 {
        font-size: 32px;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav-links {
        display: none;
    }
}
