﻿:root {
    --main-color: #1a73e8;
    --second-color: #305b9b;
    --accent-color: #a6ffec;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: #f5f5f5;
    color: #333;
}

/* ================= NAV & HEADER ================= */
nav {
    height: 80px;
    background: var(--main-color);
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

    nav ul {
        list-style: none;
        display: flex;
    }

        nav ul li {
            margin: 0 15px;
        }

            nav ul li a {
                color: white;
                text-decoration: none;
                font-size: 17px;
                padding: 10px 15px;
                transition: 0.3s;
                border-radius: 5px;
            }

                nav ul li a:hover {
                    background: #ffca28;
                    color: black;
                }

/* ================= HOME PAGE ================= */
.home-container {
    margin-top: 100px;
    padding: 20px 5%;
}

.hero-section {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1441986300917-64674bd600d8?q=80&w=1920');
    background-size: cover;
    background-position: center;
    height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    border-radius: 20px;
}

    .hero-section h1 {
        font-size: 3.5rem;
        margin-bottom: 10px;
    }

    .hero-section p {
        font-size: 1.2rem;
        margin-bottom: 25px;
    }

.btn-shop {
    background: var(--main-color);
    color: white;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

    .btn-shop:hover {
        background: #1557b0;
        transform: scale(1.05);
    }

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.feature-card {
    background: white;
    padding: 30px;
    text-align: center;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

    .feature-card i {
        font-size: 45px;
        color: var(--main-color);
        margin-bottom: 15px;
    }

/* ================= PRODUCTS / ITEMS PAGE ================= */
.products-page {
    padding: 120px 5% 50px;
}

.products-header {
    text-align: center;
    margin-bottom: 40px;
}

    .products-header h2 {
        font-size: 36px;
        color: #333;
        font-weight: bold;
    }

.filter-menu {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 25px;
    border: 2px solid var(--main-color);
    background: transparent;
    color: var(--main-color);
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

    .filter-btn:hover, .filter-btn.active {
        background: var(--main-color);
        color: white;
    }

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
}

.product-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: 0.3s;
    position: relative;
    text-align: center;
}

    .product-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    }

.img-container {
    overflow: hidden;
    position: relative;
}

.product-img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img {
    transform: scale(1.1);
}

.product-info {
    padding: 20px;
}

.product-title {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.product-price {
    color: var(--main-color);
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
}

.add-cart-btn {
    display: inline-block;
    width: 100%;
    padding: 12px;
    background: #222;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.3s;
}

    .add-cart-btn:hover {
        background: var(--main-color);
    }
