nav{
    background-color: #030e5d;
    color:white;
    text-align:center;
}
.addToCartBtn{
    width: auto;
}
/* Ensure that the row stretches correctly */
.product-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Each item panel */
.item_panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}
.item_panel>div>img{
    max-height: 240px;
}
/* Ensures that the product title has reserved space for up to 3 lines of text */
.product-title {
    display: block;
    text-align: center;
    margin-top: 1rem;
    line-height: 1.5rem; /* Control the line height for text */
    min-height: 4.5rem; /* Reserve space for up to 3 lines of text */
}

/* Ensures the button sticks to the bottom */
button {
    margin-top: auto; /* Ensure the button sticks to the bottom of the item panel */
    width: 100%;
}

/* Image settings */
.flex-grow-1 {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive behavior */
@media (min-width: 768px) {
    .col-md-3 {
        flex: 0 0 auto;
        width: 23.5%;
    }
}
@media (max-width: 999px) {
    .col-5 {
        max-width: 100%;
    }
}

@media (max-width: 400px) {
    .product-title {
        min-height: 3rem; /* Reduce minimum height for smaller screens */
    }
}
@media only screen and (max-width: 999px) {
}
@media only screen and (max-width: 767px) {
        .mobileThumbCss{
        margin: 0 auto;
        justify-content: unset !important;
        overflow: auto;
    }
    .itemsContainer{
        padding-left: 0;
        padding-right: 0;
    }

}
    