.product-card {
    height: 365px!important;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    position: relative;
    transition: box-shadow 0.3s ease-in-out;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.15);
}
.product-image img {
    width: 100%;
    border-bottom: 1px solid #ddd;
    border-radius: 6px;
}
.wishlist-compare {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .wishlist-compare button {
        background: white;
        border: none;
        border-radius: 50%;
        width: 35px;
        height: 35px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

        .wishlist-compare button:hover {
            background: #f5f5f5;
        }

.cart-button {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: #28a745;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: white;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .cart-button:hover {
        background: #218838;
    }

.product-info {
    padding: 8px;
}
.star-text {
    font-size: 13px;
}
.product-title {
    font-size: 11px !important;
    font-weight: bold;
    text-decoration: none;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limits to a maximum of 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
}

    .product-title:hover {
        color: #007bff;
    }

.product-specs {
    font-size: 13px;
    color: #777;
}

.color-slider {
    display: flex;
    gap: 5px;
    margin-bottom: 5px;
    overflow-x: auto;
    justify-content: center;
    background-color: rgba(248,249,250, 1);
    border-radius: 5px;
}
    .color-slider .variation {
        min-width: 50px;
        height: 20px; /* Small box */
        display: flex; /* Center text */
        align-items: center; /* Center text */
        justify-content: center; /* Center text */
        border-radius: 5px;
        border: 1px solid rgba(32, 51, 84, 0.2);
        cursor: pointer;
        font-size: .675em;
        text-align: center; /* Ensure text is centered */
        margin-top: 9px;
        margin-bottom: 9px;
        background: #fff;
    }
    .color-slider img {
        /*        width: 35px;*/
        height: 40px;
        border-radius: 5px;
        border: 2px solid transparent;
        cursor: pointer;
    }

        .color-slider img.selected {
            border: 2px solid #007bff;
        }

.product-rating {
    /* display: flex; */
    align-items: center;
    gap: 5px;
}

    .product-rating .bi-star-fill {
        color: #fe5900;
    }

.price {
    font-size: 13px !important;
    font-weight: bold;
    color: #000;
}

.codeNumber {
    display: flex;
    justify-content: end;
    align-items: center;
    font-size: 11px !important;
}

.rating {
    text-align: left !important;
}

.product-image-size {
    height: 200px !important;
}
.badge-position {
    position: absolute !important;
    top: 10px;
    left: 10px;
    font-size: 10px;
    font-weight: 600;
    padding: 5px 8px;
    border-radius: 5px;
    z-index: 10;
}
.badge {
    position: unset;
    border-radius: 5px !important;
    padding: 4px;
    font-size: 10px;
    font-weight: 600 !important;
}
.badge-green {
    background-color: #c6e8c4;
    color: #2a5d22;
}
.badge-red {
    background-color: #f0dbdb;
    color: #9c110f;
}
.badge-blue {
    background-color: #E8F1F9;
    color: #477DC0;
}
@media only screen and (max-width: 600px) {
    .product-card {
        height:345px!important;
    }
        .codeNumber {
        display: flex;
        justify-content: start;
        align-items: center;
    }

    .rating {
        text-align: center !important;
    }

    .price-margin {
        margin-top: 10px!important;
    }

    .product-image-size {
        height: 150px!important;
    }
    .badge {
        position: unset;
        border-radius: 5px !important;
        padding: 4px;
        font-size: 10px;
        font-weight: 600 !important;
    }
    .star-text {
        font-size: 11px;
    }
    .total-rating {
        display:none;
    }
}
/* For WebKit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 5px; /* Thin scrollbar */
    height: 5px; /* For horizontal scrollbars */
}

::-webkit-scrollbar-track {
    background: #f1f1f1; /* Track color */
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #888; /* Scrollbar color */
    border-radius: 10px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #555; /* Darker color on hover */
    }