.product-item .text-center a.text-truncate {
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-item .product-img {
    height: 350px;
    /* Fixed height for the image container */
    display: flex;
    /* Use flexbox to center the image if needed */
    align-items: center;
    /* Center vertically */
    justify-content: center;
    /* Center horizontally */
}

.product-item .product-img img {
    width: 100%;
    /* Ensure image takes full width of its container */
    height: 100%;
    /* Ensure image takes full height of its container */
    object-fit: cover;
    /* Cover the area, cropping if necessary, without distorting */
}

@media (max-width: 767.98px) {

    /* For devices smaller than 768px (mobile) */
    .product-item .product-img {
        height: 200px;
        /* Adjust height for mobile */
    }
}

.bg-light-grey {
    background-color: #3b2c5e;
}

@media (max-width: 415px) {
    .product-actions-container {
        flex-wrap: wrap;
        row-gap: 1rem;
        /* Add space between wrapped rows */
    }

    .product-actions-container .quantity {
        flex-basis: 100%;
        margin-right: 0 !important;
        /* Remove right margin on small screens */
    }
}

.btn-variant {
    min-width: 50px;
    /* Adjust as needed */
    padding: .375rem .75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: .25rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

/* Style for selected variant */
.btn-check:checked+.btn-variant {
    background-color: #f57f20;
    /* Primary color */
    color: #212529;
    border-color: #f57f20;
}

/* Hide the actual radio input */
.btn-check {
    position: absolute;
    clip: rect(0, 0, 0, 0);
    pointer-events: none;
}