/* Reset Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}


/* Header Styles */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #333;
    padding: 15px 30px;
    color: white;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 50px;
    height: 50px;
    margin-right: 10px;
}

.navbar a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-size: 18px;
}

.navbar a:hover {
    color: #f8b400;
}


/* Featured Products */

.featured-products {
    text-align: center;
    padding: 30px;
}

.product-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.product {
    width: 250px;
    padding: 15px;
    border: 1px solid #ddd;
    text-align: center;
    border-radius: 8px;
    transition: transform 0.3s ease-in-out;
}

.product:hover {
    transform: scale(1.05);
}

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

.price {
    font-size: 18px;
    color: #28a745;
    font-weight: bold;
}

.add-to-cart {
    background-color: #f8b400;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.add-to-cart:hover {
    background-color: #e09500;
}


/* Footer */

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px;
    margin-top: 20px;
}


/* 🌍 Responsive Design Using Media Queries */

@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }
    .navbar {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 10px;
    }
    .product-grid {
        flex-direction: column;
        align-items: center;
    }
    .product {
        width: 90%;
    }
}

@media (max-width: 480px) {
    header {
        padding: 10px;
    }
    .logo img {
        width: 40px;
        height: 40px;
    }
    .navbar a {
        font-size: 16px;
    }
    .product {
        width: 100%;
    }
    .add-to-cart {
        padding: 6px 10px;
        font-size: 14px;
    }
}