.card {
    border: 1px solid #333; /* Thin black border */
    border-radius: 10px; /* Rounded corners for the product cards */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add shadow to make the card stand out */
    position: relative; /* Ensure the card is positioned relative for absolute positioning of the button */
}
.card-body {
    color:#000000;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    border: 1px solid #333; /* Thin black border */
    background-color: #FFF6E3;
}
#products .card-text{
    color: #000000;
    text-shadow: none;
}
/* Hover effect */
.card:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* Increase shadow on hover */
    transform: translateY(-5px); /* Lift the card slightly on hover */
}
#products img{
    border-top-left-radius: 20px; border-top-right-radius: 20px;
    border: 1px solid #333; 
}
#products .addToCartBtn, .soldOut {
    background-color: #ddd7fc; /* Green background */
    border: none;
    color:#000000;
    border: 1px solid #333;
    text-align: center;
    display: block;
    font-size: 16px;
    margin: 0px 5px;
    cursor: pointer;
    border-radius: 20px; /* Rounded corners */
    transition: background-color 0.3s, transform 0.3s;
}

.card:hover .addToCartBtn, .soldOut{
    display: block; /* Show the button on hover */
    z-index: 1; /* Ensure the button is above the image */
}

.addToCartBtn:hover , .soldOut:hover {
    background-color: #e8aaed; /* Darker green on hover */
    transform: scale(1.05); /* Slightly larger on hover */
}

#product-filters .btn, #cart-products .btn{
    background-color: #f7efd8;
    border-color: #ecd8ac;
    color: black;
    font-size: 14px;
    padding: 5px 12px;
    border-radius: 20px;
    border-width: 1px;
    text-decoration: none;
}

#product-filters .btn:hover , #cart-products .btn:hover {
    background-color: #d2b98d;
    border-color: #d2b98d;
    color: black;
}

#product-filters .btn.active , #cart-products .btn.active {
    background-color: #A594F9;
    border-color: #BFECFF;
    color: black;
    border: 1px solid #333;
    text-decoration: underline;
}

#product-filters .btn:focus , #cart-products .btn:focus {
    outline: none;
}

#product-filters .btn:not(.active) , #cart-products .btn:not(.active) {
    color: black;
    border-color: #ecd8ac;
}
#cartContainer {
    display: flex;
    flex-direction: column;
    max-height: 250px; /* Reduced height */
    width: 100%;
    overflow-y: auto;
    padding-right: 10px;
    position: relative;
    border-radius: 8px; /* Slightly smaller border radius */
}

.cart-product {
    width: 100%;
    height: auto;
    border: 1px solid #ccc; /* Lighter border color */
    margin: 2px 0;
    padding: -20px; /* Reduced padding */
    box-sizing: border-box;
    position: relative;
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: 8px; /* Slightly smaller border radius */
    transition: transform 0.2s, box-shadow 0.2s;
}

.cart-product:hover {
    transform: translateY(-3px); /* Slightly smaller lift on hover */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Slightly smaller shadow on hover */
}

.cart-product-title {
    font-size:60%;
    font-weight: bold;
    color: #333;
    margin-left: 5%;
    flex: 1;
}

.cart-product-price {
    font-size:50%;
    color: #666;
    flex: 0 0 auto;
}

.removeFromCartBtn {
    font-size: 16px; /* Reduced font size */
    cursor: pointer;
    color: #ff6b6b;
    background: none;
    border: none;
    transition: color 0.2s;
    margin-left: 10px;
}

.removeFromCartBtn:hover {
    color: #ff3b3b;
}

#cartContainer::-webkit-scrollbar {
    width: 4px; /* Smaller width */
    display: none; /* Hide scrollbar */
}

#cartContainer::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}


#product-filters .btn , #cart-products .btn {
    font-size: 11px;
    padding: 5px 10px;
}

@media (max-width: 768px) {
    #cartContainer {
        max-height: 200px; /* Reduced height */
    }

    .cart-product {
        padding: 10px; /* Reduced padding */
        margin-right: 5px; /* Reduced margin */
    }

    .cart-product-title {
        font-size: 14px; /* Reduced font size */
    }

    .cart-product-price {
        font-size: 12px; /* Reduced font size */
    }

    .removeFromCartBtn {
        font-size: 14px; /* Reduced font size */
    }

    #product-filters .btn , #cart-products .btn {
        font-size: 10px; /* Reduced font size */
        padding: 5px 8px; /* Reduced padding */
    }
}
