/* Landing Page - Product Grid */

/* Ensure the image container is relatively positioned */
.image-container {
    position: relative;
    display: inline-block;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 20px;
    padding: 40px;
}

.product-card {
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 20px;
    border-radius: 8px;
}

.product-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    border-radius: 8px;
    /* cursor: pointer; */
}

.price {
    display: flex;
    justify-content: center;
    /* Distribute space between items */
    align-items: center;
    /* Align items to the bottom */
    padding-top: 5px;
    font-size: 14px;
    /* You can adjust the font size as needed */
}

@media (max-width: 768px) {

    /* Product Grid */
    .product-grid {
        display: grid !important;
        grid-template-columns: repeat(1, 1fr) !important;
        /* 1 products per row */
        gap: 10px !important;
        /* Space between items */
        padding: 10px !important;
    }

    .product-card img {
        max-width: 100%;
        /* Ensure images scale properly */
        height: auto;
    }

    .product-card {
        padding: 10px;
        text-align: center;
        /* Center-align product details */
    }

    .price {
        font-size: 14px;
        /* Adjust font size for smaller screens */
    }

    .buy-button {
        font-size: 12px;
        padding: 8px;
    }
}