.main-details-page .product-section {
    padding: 28px 0 34px;
}

.main-details-page .product-section > .container {
    max-width: 1240px;
}

.main-details-page .product-section > .container > .row {
    align-items: stretch;
    row-gap: 22px;
}

.main-details-page .product-section > .container > .row > .col-sm-6:first-child {
    padding: 18px;
    border: 1px solid #e8ece8;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 36px rgba(24, 42, 28, .07);
}

.main-details-page .details_slider .dimage_item {
    display: grid;
    min-height: 390px;
    place-items: center;
    border-radius: 13px;
    background: #f6f7f3;
    overflow: hidden;
}

/* Keep the first product photo visible if Owl Carousel fails or is delayed. */
.main-details-page .details_slider.owl-carousel:not(.owl-loaded) {
    display: block !important;
    width: 100%;
}

.main-details-page .details_slider.owl-carousel:not(.owl-loaded) .dimage_item:not(:first-child) {
    display: none;
}

.main-details-page .details_slider .block__pic {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 390px;
    max-height: 390px;
    object-fit: contain;
    object-position: center;
    mix-blend-mode: multiply;
}

.main-details-page .details_slider .dimage_item img.block__pic {
    height: 390px !important;
    max-height: 390px;
}

.main-details-page .indicator_thumb {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    overflow-x: auto;
}

.main-details-page .indicator-item {
    flex: 0 0 68px;
    width: 68px;
    height: 68px;
    padding: 4px;
    border: 1px solid #e2e8e1;
    border-radius: 9px;
    background: #fff;
    cursor: pointer;
}

.main-details-page .indicator-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.main-details-page .details_right {
    height: 100%;
    padding: clamp(18px, 3vw, 32px);
    border: 1px solid #e8ece8;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 36px rgba(24, 42, 28, .07);
}

.main-details-page .details_right .product .name {
    margin: 10px 0 12px;
    color: #1d2821;
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 750;
    line-height: 1.22;
}

.main-details-page .details_right .details-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 11px;
    color: #186638;
    font-size: clamp(25px, 3vw, 34px);
    font-weight: 800;
}

.main-details-page .details_right .details-price del {
    color: #8b948c;
    font-size: .58em;
    font-weight: 500;
}

.main-details-page .details-ratting-wrapper {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 12px 0 18px;
}

.main-details-page .details-ratting-wrapper .fa-star {
    color: #efa923;
}

.main-details-page .product-code {
    color: #69756c;
    font-size: 13px;
}

.main-details-page .single_product {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.main-details-page .single_product .btn {
    flex: 1 1 0;
    min-height: 48px;
    border: 0;
    border-radius: 9px;
    font-weight: 700;
    transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

.main-details-page .single_product .btn:hover {
    transform: translateY(-2px);
    filter: brightness(.96);
    box-shadow: 0 8px 18px rgba(20, 40, 26, .14);
}

.main-details-page .add_cart_btn {
    color: #fff;
    background: #1f6a3b;
}

.main-details-page .order_now_btn {
    color: #fff;
    background: #f36a21;
}

.main-details-page .details_right .call_now_btn {
    min-height: 46px;
    border-radius: 9px;
}

.main-details-page .description-nav-wrapper {
    display: block !important;
    margin: 10px auto 0;
}

.main-details-page .description-nav {
    border-bottom: 1px solid #e2e8e1;
}

.main-details-page .desc-nav-ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-details-page .desc-nav-ul a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 9px 9px 0 0;
    color: #59645c;
    font-weight: 700;
    text-decoration: none;
}

.main-details-page .desc-nav-ul a.is-active,
.main-details-page .desc-nav-ul a:hover {
    color: #176435;
    background: #eef5ef;
}

.main-details-page .pro_details_area {
    padding: 24px 0 38px;
}

.main-details-page .pro_details_area .description,
.main-details-page .pro_details_area .pro_vide,
.main-details-page .pro_details_area #writeReview {
    padding: clamp(16px, 3vw, 28px);
    border: 1px solid #e7ece7;
    border-radius: 14px;
    background: #fff;
}

.mas-product-bundle {
    margin: 10px auto 30px;
}

.mas-product-bundle > .container {
    padding: clamp(18px, 3vw, 30px);
    border: 1px solid #e3e9e3;
    border-radius: 18px;
    background: linear-gradient(135deg, #f7faf6, #fff 68%);
}

.mas-product-bundle__eyebrow {
    color: #f36a21;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.mas-product-bundle__heading h2 {
    margin: 5px 0;
    color: #1d2a21;
    font-size: clamp(20px, 2.4vw, 27px);
    font-weight: 750;
}

.mas-product-bundle__heading p {
    margin: 0 0 18px;
    color: #69756c;
}

.mas-product-bundle__panel {
    padding: clamp(18px, 3vw, 30px);
    border: 1px solid #e3e9e3;
    border-radius: 18px;
    background: linear-gradient(135deg, #f7faf6, #fff 68%);
}

.mas-product-bundle__heading {
    margin: 0 0 5px;
    color: #1d2a21;
    font-size: clamp(20px, 2.4vw, 27px);
    font-weight: 750;
}

.mas-product-bundle__intro {
    margin: 0 0 18px;
    color: #69756c;
}

.mas-product-bundle__items {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 12px;
}

.mas-product-bundle__item {
    position: relative;
    display: flex;
    flex: 1 1 220px;
    min-width: 0;
    align-items: center;
    gap: 11px;
    padding: 12px;
    border: 1px solid #e5ebe5;
    border-radius: 12px;
    background: #fff;
}

.mas-product-bundle__item--main {
    padding-top: 30px;
}

.mas-product-bundle__main-mark {
    position: absolute;
    top: 8px;
    left: 12px;
    color: #69756c;
    font-size: 11px;
    font-weight: 750;
    text-transform: uppercase;
}

.mas-product-bundle__image {
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
}

.mas-product-bundle__item img {
    display: block;
}

.mas-product-bundle__copy {
    display: grid;
    min-width: 0;
    gap: 5px;
}

.mas-product-bundle__copy strong {
    color: #28342b;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.4;
}

.mas-product-bundle__copy span {
    color: #176435;
    font-weight: 750;
}

.mas-product-bundle__plus {
    display: grid;
    flex: 0 0 24px;
    place-items: center;
    color: #f36a21;
    font-size: 24px;
    font-weight: 700;
}

.mas-product-bundle__item img {
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    border-radius: 8px;
    background: #f5f7f4;
    object-fit: contain;
}

.mas-product-bundle__item input[type="checkbox"] {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    accent-color: #1f6a3b;
}

.mas-product-bundle__name {
    display: block;
    color: #28342b;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.4;
}

.mas-product-bundle__price {
    display: block;
    margin-top: 4px;
    color: #176435;
    font-weight: 750;
}

.mas-product-bundle__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 18px;
}

.mas-product-bundle__footer > div {
    display: grid;
    gap: 3px;
    color: #69756c;
}

.mas-product-bundle__footer strong {
    color: #1d2a21;
    font-size: 22px;
}

.mas-product-bundle__total {
    color: #27332a;
    font-weight: 700;
}

.mas-product-bundle__submit {
    min-height: 46px;
    padding: 10px 22px;
    border: 0;
    border-radius: 9px;
    color: #fff;
    background: #1f6a3b;
    font-weight: 750;
}

.mas-product-bundle__submit:hover {
    background: #174f2c;
}

.mas-product-bundle__submit:disabled {
    cursor: not-allowed;
    opacity: .55;
}

@media (max-width: 767px) {
    .main-details-page .product-section {
        padding: 12px 0 22px;
    }

    .main-details-page .product-section > .container > .row > .col-sm-6:first-child {
        padding: 11px;
        border-radius: 13px;
    }

    .main-details-page .details_slider .dimage_item,
    .main-details-page .details_slider .block__pic {
        min-height: 270px;
        height: 270px;
    }

    .main-details-page .details_slider .dimage_item img.block__pic {
        height: 270px !important;
        max-height: 270px;
    }

    .main-details-page .details_right {
        padding: 17px;
        border-radius: 13px;
    }

    .main-details-page .single_product {
        flex-direction: column;
    }

    .main-details-page .single_product .btn {
        flex-basis: auto;
        width: 100%;
    }

    .mas-product-bundle__items {
        display: grid;
        grid-template-columns: 1fr;
    }

    .mas-product-bundle__plus { min-height: 18px; }

    .mas-product-bundle__footer {
        align-items: stretch;
        flex-direction: column;
    }

    .mas-product-bundle__submit {
        width: 100%;
    }

    .main-details-page .pro_details_area img,
    .main-details-page .pro_details_area video,
    .main-details-page .pro_details_area iframe {
        max-width: 100%;
    }

    .main-details-page .pro_details_area table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
    }

    .main-details-page .description-nav-wrapper > .container,
    .main-details-page .pro_details_area > .container,
    .mas-product-bundle > .container {
        width: 100%;
        padding-right: 12px;
        padding-left: 12px;
    }

    .main-details-page .desc-nav-ul {
        flex-wrap: nowrap;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
    }

    .main-details-page .desc-nav-ul::-webkit-scrollbar { display: none; }
}

@media (max-width: 359px) {
    .main-details-page .product-section > .container > .row > .col-sm-6:first-child {
        padding: 8px;
    }

    .main-details-page .details_slider .dimage_item,
    .main-details-page .details_slider .block__pic {
        min-height: 235px;
        height: 235px;
    }

    .main-details-page .details_slider .dimage_item img.block__pic {
        height: 235px !important;
        max-height: 235px;
    }

    .main-details-page .details_right {
        padding: 14px;
    }

    .main-details-page .details_right .product .name {
        font-size: 22px;
    }

    .main-details-page .single_product .btn {
        min-height: 46px;
        padding-right: 10px !important;
        padding-left: 10px !important;
        font-size: 14px;
    }

    .mas-product-bundle > .container {
        padding: 14px 10px;
    }

    .mas-product-bundle__item {
        gap: 8px;
        padding: 10px;
    }

    .mas-product-bundle__image,
    .mas-product-bundle__item img {
        flex-basis: 50px;
        width: 50px;
        height: 50px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .main-details-page .single_product .btn {
        transition: none;
    }
}
