﻿.small-card {
    width: 140px;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.small-img {
    height: 100px;
    width: 100%;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

.small-text {
    font-size: 13px;
    line-height: 1.2;
}


.card-body {
    padding: 8px;
}

.owl-nav {
    display: flex !important;
    justify-content: space-between;
    position: absolute;
    top: 40%;
    left: 0;
    right: 0;
    padding: 0 10px;
    pointer-events: none;
}

    .owl-nav button {
        pointer-events: all;
        background: #717172 !important;
        border: 1px solid #717172 !important;
        font-size: 20px;
        width: 30px;
        height: 30px;
        color: #fff !important;
        line-height: 30px;
        border-radius: 50%;
        box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    }

        .owl-nav button:hover {
            background-color: #717172 !important;
            color: #fff !important;
        }

.card-title {
    line-height: 1.4; /* More readable */
    height: 2.8em; /* 1.4 * 2 lines */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Clamp to 2 lines */
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
   
}

#bestSellingMedicine a img {
    width: auto;
    height: 220px;
    max-width: 100%;
    display: block;
    margin-left: auto;
    margin-right: auto;
    object-fit: contain;
}

#bestSellingMedicine .card {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important; /* soft shadow */
    transition: box-shadow 0.3s ease !important;
    border: 1px solid lightgray;
}

    #bestSellingMedicine .card:hover {
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important; /* stronger on hover */
    }
/* Position for larger screens */
.add-to-cart-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
}
.discperOnImg {
    display: none !important;
    font-size: 10px !important;
}
/*============================================================================================*/

.TopFamilyCare a img, .Ayurveda a img {
    width: auto !important;
    height: 220px !important;
    max-width: 100% !important;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    object-fit: contain !important;
}

/* Fix for small screens */
@media (max-width: 576px) {
    .add-to-cart-btn {
        position: static;
        text-align: center;
        margin-top: 10px;
        display: flex;
        justify-content: center;
    }
    .add-to-cart-btn button {
            font-size: 12px!important; /* Smaller text */
            padding: 3px 8px!important; /* Less padding */
    }
    .card-body {
        padding-bottom: 10px;
        padding: 0.60rem !important;
    }
    .stars-rating, .displayqty {
        display: none;
    }
    .card-title {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.4;
        height: auto; /* Optional: or line-height */
    }    
    .discper {
        font-size:10px;
    }
    .col-6, .col-3 {
        padding-right: 0px;
        padding-left: 0px;
    }
    #bestSellingMedicine a img {
        width: auto;
        height: 140px;
        max-width: 100%;
        display: block;
        margin-left: auto;
        margin-right: auto;
        object-fit: contain;
    }
    .discperOnImg {
        display: block !important;
        font-size: 10px!important;
    }
    .discper {
        display: none !important;
        visibility: hidden;
    }   
}