/* =====================================================
   MEDICINE DETAILS
===================================================== */

.medicine-details-page {
    background: #f5f7f9;
    min-height: 100vh;
    padding-bottom: 50px;
}


/* =====================================================
   BREADCRUMB
===================================================== */

.medicine-details-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 0;
    font-size: 15px;
    color: #7d8791;
}

.medicine-details-breadcrumb a {
    color: #07876b;
    text-decoration: none;
}

.medicine-details-breadcrumb i {
    font-size: 8px;
}


/* =====================================================
   PRODUCT CARD
===================================================== */

.product-details-card {
    background: #fff;
    border: 1px solid #e4e8eb;
    border-radius: 12px;
    overflow: hidden;
}


/* =====================================================
   GALLERY
===================================================== */

.product-gallery {
    padding: 25px;
    border-right: 1px solid #edf0f2;
}

.main-product-image {
    height: 430px;
    background: #f8fafb;
    border-radius: 10px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.main-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 30px;
}


/* Wishlist */

.details-wishlist {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border: 1px solid #e1e5e8;
    background: #fff;
    border-radius: 50%;
    color: #5f6873;
    z-index: 5;
}

.details-wishlist:hover {
    color: #e74c3c;
}


/* Offer */

.product-offer-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #e7f7f2;
    color: #07876b;
    padding: 6px 9px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 700;
    z-index: 5;
}


/* Thumbnails */

.product-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.product-thumb {
    width: 68px;
    height: 68px;
    background: #fff;
    border: 1px solid #e0e5e8;
    border-radius: 7px;
    padding: 5px;
    cursor: pointer;
}

.product-thumb.active {
    border: 2px solid #07876b;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


/* Gallery dots */

.gallery-dots {
    display: none;
}


/* =====================================================
   PRODUCT INFORMATION
===================================================== */

.product-information {
    padding: 28px 30px;
}

.product-brand {
    font-size: 17px;
    font-weight: 700;
    color: #07876b;
    text-decoration: none;
}

.product-information h1 {
    margin: 7px 0;
    font-size: 27px;
    line-height: 1.3;
    font-weight: 750;
    color: #18212f;
}

.product-short-info {
    color: #737e89;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
}


/* Rating */

.product-rating-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.product-rating-row a {
    color: #07876b;
    text-decoration: none;
}

.product-rating {
    background: #07876b;
    color: #fff;
    border-radius: 5px;
    padding: 5px 8px;
    font-size: 13px;
    font-weight: 700;
}

.product-rating i {
    font-size: 8px;
}

.rating-divider {
    width: 1px;
    height: 16px;
    background: #dce1e5;
}


/* Price */

.product-price-box {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 17px;
}

.selling-price {
    font-size: 28px;
    font-weight: 750;
    color: #17202e;
}

.product-price-box del {
    font-size: 16px;
    color: #929aa3;
}

.discount {
    background: #e7f7f2;
    color: #07876b;
    padding: 5px 7px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 700;
}

.tax-info {
    color: #929ba5;
    font-size: 12px;
    margin: 3px 0 17px;
}


/* Pack */

.product-pack {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    margin-bottom: 18px;
}

.product-pack > span {
    color: #717c87;
}

.pack-option {
    background: #fff;
    border: 1px solid #dce2e5;
    border-radius: 5px;
    padding: 7px 11px;
    font-size: 13px;
    color: #4c5865;
}

.pack-option.active {
    color: #07876b;
    border-color: #07876b;
    background: #f0faf7;
}


/* =====================================================
   OFFERS
===================================================== */

.product-offers {
    background: #f8fafb;
    border: 1px solid #e8ecef;
    border-radius: 8px;
    padding: 13px;
    margin-bottom: 17px;
}

.offers-heading {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
}

.offers-heading i {
    color: #07876b;
    margin-right: 5px;
}

.offer-item {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 10px;
}

.offer-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: #e7f7f2;
    color: #07876b;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
}

.offer-item strong {
    display: block;
    font-size: 13px;
}

.offer-item p {
    margin: 2px 0 0;
    font-size: 11px;
    color: #818b95;
}


/* =====================================================
   DELIVERY
===================================================== */

.delivery-check {
    margin-bottom: 18px;
}

.delivery-title {
    display: flex;
    gap: 6px;
    align-items: center;
    font-size: 16px;
    margin-bottom: 8px;
}

.delivery-title i {
    color: #07876b;
}

.pincode-box {
    display: flex;
    width: 300px;
    border: 1px solid #dce2e5;
    border-radius: 6px;
    overflow: hidden;
}

.pincode-box input {
    flex: 1;
    border: 0;
    outline: 0;
    padding: 9px 10px;
    font-size: 13px;
}

.pincode-box button {
    border: 0;
    border-left: 1px solid #dce2e5;
    background: #fff;
    color: #07876b;
    padding: 0 15px;
    font-size: 13px;
    font-weight: 700;
}

.delivery-check > small {
    display: block;
    margin-top: 5px;
    color: #929ba4;
    font-size: 11px;
}


/* =====================================================
   QUANTITY
===================================================== */

.quantity-section {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 16px;
    font-size: 16px;
    color: #697480;
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid #dce2e5;
    border-radius: 6px;
    overflow: hidden;
}

.quantity-control button {
    width: 32px;
    height: 32px;
    border: 0;
    background: #f7f9fa;
    font-size: 19px;
    color: #4c5864;
}

.quantity-control input {
    width: 35px;
    height: 32px;
    border: 0;
    border-left: 1px solid #e2e6e9;
    border-right: 1px solid #e2e6e9;
    text-align: center;
    font-size: 18px;
}


/* =====================================================
   ACTIONS
===================================================== */

.product-detail-actions {
    display: flex;
    gap: 10px;
}

.product-detail-actions button {
    height: 46px;
    border-radius: 7px;
    font-size: 16px;
    font-weight: 700;
}

.detail-add-cart {
    flex: 1;
    background: #fff;
    border: 1px solid #07876b;
    color: #07876b;
}

.detail-buy-now {
    flex: 1;
    background: #07876b;
    border: 1px solid #07876b;
    color: #fff;
}


/* =====================================================
   PRESCRIPTION
===================================================== */

.prescription-notice {
    display: flex;
    align-items: center;
    gap: 11px;
    background: #fff9ed;
    border: 1px solid #f3e4c4;
    border-radius: 8px;
    padding: 12px;
    margin-top: 16px;
}

.prescription-icon {
    width: 37px;
    height: 37px;
    border-radius: 7px;
    background: #fff0d1;
    color: #a36d08;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prescription-notice strong {
    font-size: 13px;
}

.prescription-notice p {
    margin: 2px 0;
    font-size: 11px;
    color: #8a806c;
}

.prescription-notice a {
    color: #07876b;
    font-size: 11px;
    text-decoration: none;
    font-weight: 700;
}


/* =====================================================
   SERVICES
===================================================== */

.product-services {
    display: flex;
    gap: 25px;
    margin-top: 20px;
    padding-top: 17px;
    border-top: 1px solid #edf0f2;
}

.product-services div {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #697581;
    font-size: 13px;
}

.product-services i {
    color: #07876b;
    font-size: 17px;
}


/* =====================================================
   INFORMATION
===================================================== */

.product-information-section {
    margin-top: 18px;
}

.product-info-card {
    background: #fff;
    border: 1px solid #e5e9ec;
    border-radius: 11px;
    overflow: hidden;
}

.product-detail-tabs {
    padding: 0 18px;
    border-bottom: 1px solid #e8ecef;
}

.product-detail-tabs .nav-link {
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    padding: 15px 17px;
    color: #737d88;
    font-size: 14px;
    font-weight: 600;
}

.product-detail-tabs .nav-link.active {
    color: #07876b;
    border-bottom-color: #07876b;
}

.product-info-card .tab-content {
    padding: 22px;
}

.product-info-card h3 {
    margin-bottom: 12px;
    font-size: 19px;
}

.product-info-card p {
    color: #6e7883;
    font-size: 15px;
    line-height: 1.8;
}


/* Composition */

.composition-table {
    max-width: 600px;
    border: 1px solid #e5e9ec;
    border-radius: 7px;
    overflow: hidden;
}

.composition-table div {
    display: flex;
    justify-content: space-between;
    padding: 12px 15px;
    border-bottom: 1px solid #edf0f2;
    font-size: 15px;
}

.composition-table div:last-child {
    border-bottom: 0;
}

.composition-table span {
    color: #78828c;
}


/* Lists */

.highlight-list,
.safety-list {
    padding-left: 0;
    list-style: none;
}

.highlight-list li {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    color: #68737e;
    font-size: 11px;
}

.highlight-list i {
    color: #07876b;
}

.safety-list li {
    color: #68737e;
    font-size: 11px;
    margin-bottom: 10px;
}


/* =====================================================
   SECTION TITLES
===================================================== */

.section-title {
    margin-bottom: 13px;
}

.section-title h2 {
    margin: 0;
    font-size: 19px;
    font-weight: 750;
}

.section-title p {
    margin: 3px 0 0;
    color: #7f8994;
    font-size: 10px;
}


/* =====================================================
   FAQ
===================================================== */

/* .medicine-faq-section {
    margin-top: 20px;
}

.medicine-accordion {
    background: #fff;
    border: 1px solid #e5e9ec;
    border-radius: 10px;
    overflow: hidden;
}

.medicine-accordion .accordion-item {
    border: 0;
    border-bottom: 1px solid #edf0f2;
}

.medicine-accordion .accordion-item:last-child {
    border-bottom: 0;
}

.medicine-accordion .accordion-button {
    padding: 15px 17px;
    font-size: 11px;
    font-weight: 650;
    box-shadow: none;
}

.medicine-accordion .accordion-button:not(.collapsed) {
    color: #07876b;
    background: #f5fbf9;
}

.medicine-accordion .accordion-body {
    color: #717b86;
    font-size: 10px;
    line-height: 1.7;
}
 */

/* =====================================================
   REVIEWS
===================================================== */

.medicine-reviews-section {
    margin-top: 20px;
}

.reviews-card {
    background: #fff;
    border: 1px solid #e5e9ec;
    border-radius: 11px;
    padding: 22px;
}

.reviews-summary {
    display: flex;
    gap: 70px;
    padding: 15px 0 20px;
    border-bottom: 1px solid #edf0f2;
}

.overall-rating {
    text-align: center;
    min-width: 130px;
}

.overall-rating strong {
    display: block;
    font-size: 35px;
}

.stars {
    color: #f5a623;
    font-size: 19px;
}

.overall-rating span {
    display: block;
    color: #89929b;
    font-size: 14px;
    margin-top: 4px;
}


/* Rating bars */

.rating-bars {
    width: 400px;
}

.rating-bars > div {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 8px;
}

.rating-bars span {
    width: 30px;
    font-size: 18px;
}

.rating-bars > div > div {
    height: 6px;
    flex: 1;
    background: #edf0f2;
    border-radius: 5px;
    overflow: hidden;
}

.rating-bars i {
    display: block;
    height: 100%;
    background: #07876b;
}

.rating-bars small {
    width: 30px;
    font-size: 16px;
    color: #89929b;
}


/* Customer review */

.customer-review {
    padding: 17px 0;
    border-bottom: 1px solid #edf0f2;
}

.customer-review:last-child {
    border-bottom: 0;
}

.review-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.review-user {
    display: flex;
    align-items: center;
    gap: 8px;
}

.review-user span {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e8f7f3;
    color: #07876b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    font-weight: 700;
}

.review-user strong {
    font-size: 16px;
}

.verified-review {
    color: #07876b;
    font-size: 13px;
}

.review-rating {
    color: #f5a623;
    font-size: 50px;
    margin: 7px 0;
}

.customer-review p {
    margin: 0 0 3px;
    color: #5f6a76;
    font-size: 15px;
}

.customer-review > small {
    color: #99a1a9;
    font-size: 13px;
}


/* =====================================================
   RELATED PRODUCTS
===================================================== */

.related-medicines-section {
    margin-top: 22px;
}

.related-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.related-title > a {
    color: #07876b;
    font-size: 17px;
    text-decoration: none;
    font-weight: 700;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 13px;
}

.related-product {
    background: #fff;
    border: 1px solid #e5e9ec;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.related-image {
    height: 190px;
    background: #f8fafb;
    position: relative;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.related-image span {
    position: absolute;
    left: 8px;
    bottom: 8px;
    background: #e7f7f2;
    color: #07876b;
    padding: 4px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
}

.related-content {
    padding: 10px;
}

.related-content small {
    font-size: 11px;
    color: #8c959f;
}

.related-content h3 {
    margin: 3px 0 6px;
    font-size: 15px;
    line-height: 1.4;
}

.related-rating {
    display: inline-block;
    background: #07876b;
    color: #fff;
    border-radius: 4px;
    padding: 3px 5px;
    font-size: 11px;
}

.related-price {
    margin-top: 7px;
    font-size: 19px;
    font-weight: 700;
}

.related-price del {
    margin-left: 5px;
    font-size: 13px;
    color: #9ba2aa;
    font-weight: 400;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 991px) {

    .product-gallery {
        border-right: 0;
        border-bottom: 1px solid #edf0f2;
    }

    .medicine-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 767px) {

    .medicine-details-page {
        padding-bottom: 30px;
    }

    .medicine-details-breadcrumb {
        padding: 10px 0;
        font-size: 9px;
        white-space: nowrap;
        overflow: hidden;
    }


    /* Gallery */

    .product-gallery {
        padding: 10px;
    }

    .main-product-image {
        height: 300px;
        border-radius: 8px;
    }

    .main-product-image img {
        padding: 20px;
    }

    .details-wishlist {
        width: 34px;
        height: 34px;
        top: 10px;
        right: 10px;
    }

    .product-offer-badge {
        top: 10px;
        left: 10px;
        font-size: 11px;
    }


    /* Hide desktop thumbnails */

    .product-thumbnails {
        display: none;
    }

    .gallery-dots {
        display: flex;
        justify-content: center;
        gap: 5px;
        margin-top: 9px;
    }

    .gallery-dots span {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #d7dde1;
    }

    .gallery-dots span.active {
        width: 18px;
        border-radius: 5px;
        background: #07876b;
    }


    /* Information */

    .product-information {
        padding: 17px 13px;
    }

    .product-information h1 {
        font-size: 19px;
    }

    .product-short-info {
        font-size: 10px;
    }

    .product-rating-row {
        font-size: 9px;
    }

    .product-rating {
        padding: 4px 6px;
        font-size: 8px;
    }


    /* Price */

    .product-price-box {
        margin-top: 13px;
    }

    .selling-price {
        font-size: 23px;
    }

    .product-price-box del {
        font-size: 13px;
    }

    .discount {
        font-size: 11px;
    }


    /* Pack */

    .product-pack {
        flex-wrap: wrap;
        font-size: 9px;
    }

    .pack-option {
        font-size: 11px;
        padding: 6px 9px;
    }


    /* Offers */

    .product-offers {
        padding: 10px;
    }

    .offers-heading {
        font-size: 10px;
    }

    .offer-item strong {
        font-size: 9px;
    }

    .offer-item p {
        font-size: 8px;
    }


    /* Delivery */

    .pincode-box {
        width: 100%;
    }


    /* Quantity */

    .quantity-section {
        font-size: 10px;
    }


    /* Buttons */

    .product-detail-actions {
        position: sticky;
        bottom: 0;
        z-index: 100;
        background: #fff;
        margin: 0 -13px;
        padding: 8px 13px;
        border-top: 1px solid #e6eaed;
    }

    .product-detail-actions button {
        height: 43px;
        font-size: 10px;
    }


    /* Services */

    .product-services {
        gap: 10px;
        justify-content: space-between;
    }

    .product-services div {
        font-size: 11px;
        gap: 4px;
    }

    .product-services i {
        font-size: 14px;
    }


    /* Tabs */

    .product-detail-tabs {
        padding: 0 5px;
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .product-detail-tabs .nav-item {
        flex: 0 0 auto;
    }

    .product-detail-tabs .nav-link {
        padding: 13px 10px;
        font-size: 11px;
    }

    .product-info-card .tab-content {
        padding: 15px;
    }

    .product-info-card h3 {
        font-size: 14px;
    }

    .product-info-card p {
        font-size: 11px;
    }


    /* FAQ */

    .section-title h2 {
        font-size: 16px;
    }

    .medicine-accordion .accordion-button {
        padding: 13px;
        font-size: 10px;
    }

    .medicine-accordion .accordion-body {
        padding: 13px;
        font-size: 9px;
    }


    /* Reviews */

    .reviews-card {
        padding: 15px;
    }

    .reviews-summary {
        gap: 20px;
    }

    .overall-rating {
        min-width: 85px;
    }

    .overall-rating strong {
        font-size: 28px;
    }

    .rating-bars {
        width: auto;
        flex: 1;
    }


    /* Related */

    .related-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .related-image {
        height: 140px;
    }

    .related-content {
        padding: 8px;
    }

    .related-content h3 {
        font-size: 9px;
    }

    .related-price {
        font-size: 12px;
    }

}