body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f8f8;
}

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

.product {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    width: 200px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.product img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
}

.product h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.product p {
    font-size: 16px;
    color: #555;
    font-weight: bold;
}

@media (max-width: 768px) {
    html, body {
        height: 100%;
        overflow-x: hidden; /* Prevent horizontal scrolling */
        overflow-y: auto; /* Enable vertical scrolling */
    }

    .product-list {
        flex-direction: column; /* Stack products vertically */
        align-items: center; /* Center the products */
    }

    .product {
        width: 90%; /* Adjust the product width to fit the screen */
        max-width: 300px; /* Limit the maximum width */
        margin: 0 auto; /* Center the product horizontally */
    }

    .product img {
        width: 100%; /* Make the image take up the full width of the product */
        height: auto; /* Maintain the aspect ratio */
        margin: 0 auto; /* Center the image horizontally */
    }
}
