.product-container {
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    text-align: center;
}

.product-container img {
    max-width: 100%;
    height: 308px;
    border-radius: 5px;
}

#toastContainer .toast {
    max-width: 100%;
}

@media (min-width: 576px) {
    #toastContainer .toast {
        max-width: 500px;
        /* Adjust based on your preference */
    }
}
.product-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Ensures the button aligns to the bottom */
    height: 600px; /* Fixed height */
    overflow: hidden; /* Hides overflow */
}

.product-container img {
    width: 100%; /* Ensures image takes full container width */
    height: 250px; /* Fixed image height */
    object-fit: cover; /* Ensures image covers the area without distorting */
}

.product-container h2 {
    font-size: 1.25rem;
    margin-top: 10px;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* Adds ellipsis to overly long titles */
}

.product-container p {
    flex-grow: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Limits the text to 3 lines */
    -webkit-box-orient: vertical;
}