/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease-in-out;
}

body {
    background: linear-gradient(to right, #f5f7fa, #c3cfe2);
    margin: 0;
    padding: 0;
}

/* Category Section */
.category {
    background: white;
    margin: 40px auto;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 1200px;
}

.category-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

/* Product Grid */
.products-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.products {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* Product Card */
.product {
    background: white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 10px;
    width: 220px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.product img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
}

/* Product Info */
.product p {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    margin: 10px 0;
}

/* Price */
.product .price {
    font-size: 18px;
    color: #ff5722;
    font-weight: bold;
    background: #ffeb3b;
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block;
    margin-top: 5px;
}

/* View Details Button */
.product a {
    text-decoration: none;
    background: linear-gradient(135deg, #ff9800, #ff5722);
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 14px;
    color: #fff;
    font-weight: bold;
    transition: 0.3s ease;
    display: inline-block;
    margin-top: 5px;
}

.product a:hover {
    background: linear-gradient(135deg, #ff5722, #ff9800);
    transform: scale(1.05);
}

/* Responsive Design */
@media screen and (max-width: 1024px) { /* Tablets */
    .category {
        padding: 30px;
    }
    .product {
        width: 180px;
    }
    .product img {
        height: 160px;
    }
}

@media screen and (max-width: 768px) { /* Mobile */
    .category {
        padding: 20px;
    }

    .products {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 10px;
        padding-bottom: 10px;
        scroll-snap-type: x mandatory;
    }

    .product {
        flex: 0 0 auto;
        width: 160px;
        padding: 10px;
        scroll-snap-align: center;
    }

    .product img {
        height: 140px;
    }

    .product p {
        font-size: 14px;
    }

    .product .price {
        font-size: 16px;
    }
}
