.product-card {
    transition: box-shadow 0.1s ease; /* Smooth transition for the shadow */
}
.product-card:hover {
    box-shadow: 0 0 17px rgba(0, 0, 0, 0.2); /* Box shadow on hover */
}
.add-to-cart {
    border-radius: 17px;
}

.product-image {
    display: flex; 
    justify-content: center; 
    align-items: center; 
    width: 100%;
    height: 300px; 
    overflow: hidden;
    /* background-color: #f8f9fa;  */
}
.product-image img {
    max-width: 100%; 
    max-height: 100%; 
    object-fit: contain; 
}
@media all and (max-width: 425px) {
    .product-image {
        height: 120px;
    }
}
@media all and (max-width: 1024px) {
    .product-image {
        height: 220px;
    }
}

.product-title {
    font-size: 24px; 
    margin: 18px 0;
}
.product-price {
    font-size: 18px;
}
@media all and (max-width: 768px) {
    .product-title {
        font-size: 20px; 
    }
    .product-price {
        font-size: 17px;
    }
}
@media all and (max-width: 425px) {
    .product-title {
        font-size: 18px;
    }
    .product-price {
        font-size: 16px;
    }
    .product-description {
        display: none;
    }
}
@media all and (max-width: 320px) {
    .product-title {
        font-size: 16px;
    }
    .product-price {
        font-size: 14px;
    }
    .product-description {
        display: none;
    }
}

/* dynamic font-size for the product name*/
.text-container {
    height: 80px;
    overflow: hidden;
    display: flex;
    margin: 18px 0;
    font-size: 18px;
}



/* icon badge */
.icon-badge-group .icon-badge-container {
    display: inline-block;
    margin-left:15px;
}

.icon-badge-group .icon-badge-container:first-child { 
  margin-left:0
}

.icon-badge-container {
    margin-top:10px;
    position:relative;
}

.icon-badge-icon {
    font-size: 20px;
    position: relative;
}

.icon-badge {
    background-color: #007bff;
    font-size: 12px;
    color: white;
    text-align: center;
    width:20px;
    height:20px;
    border-radius: 35%;
    position: absolute; /* changed */
    top: -5px; /* changed */
    left: 18px; /* changed */
}


/* Override SweetAlert2 styles for dark mode */
/* .swal2-popup {
    background-color: #2d2d2d !important;
    color: #ffffff !important;
}

.swal2-title {
    color: #ffffff !important;
}

.swal2-content {
    color: #ffffff !important;
}

.toast-progress {
    background-color: #ffffff !important;
}

.swal2-progress {
    background-color: #ffffff !important; 
}

.swal2-timer-progress-bar {
    width: 100%;
    height: 0.25em;
    background: #ffffff !important;
} */


/* cart item */
.cart-image {
    display: flex; 
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 120px; 
    overflow: hidden;
    /* background-color: #f8f9fa; */
}

.cart-image img {
    max-width: 100%; /* Ensure the image does not exceed the width of the container */
    max-height: 100%; /* Ensure the image does not exceed the height of the container */
    object-fit: contain; /* Maintain aspect ratio and fit within the container */
}

.cart-item .product-price {
    font-size: 18px;
}
.cart-item .product-name {
    font-size: 22px;
}

@media all and (max-width: 768px) {
    .cart-item .product-price {
        font-size: 16px;
    }
    .cart-item .product-name {
        font-size: 18px;
    }
}
@media all and (max-width: 425px) {
    .cart-item .product-price {
        font-size: 15px;
    }
    .cart-item .product-name {
        font-size: 16px;
    }
}
@media all and (max-width: 320px) {
    .cart-item .product-price {
        font-size: 13px;
    }
    .cart-item .product-name {
        font-size: 15px;
    }
}

.quantity-container {
    display: flex;
    align-items: right;
    justify-content: right;
}

.quantity-input {
    width: 50px; /* Set a fixed width for the input */
    text-align: center; /* Center the text in the input */
    margin: 0 2px; /* Add some margin between buttons and input */
}

/* Hide the number input arrows in Chrome, Safari, and Edge */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none; /* Remove default styling */
    margin: 0; /* Remove margin */
}

/* Hide the number input arrows in Firefox */
input[type=number] {
    -moz-appearance: textfield; /* Change appearance to textfield */
}