/* MEHERIMA V17.5
   Responsive Gallery & Description
   Product page only
*/

.mh175-product {
    --mh175-gallery-height: clamp(340px, 32vw, 480px);
}

/* TOP ALIGNMENT */

.mh175-product .mh171-grid {
    align-items: start !important;
}

.mh175-product .mh170-gallery {
    align-self: start !important;
    min-width: 0 !important;
    margin-top: 0 !important;
}

.mh175-product .product-slider-wrapper {
    position: relative !important;
    top: auto !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.mh175-product .product-slider-wrapper > .row {
    margin: 0 !important;
    align-items: flex-start !important;
}

.mh175-product .product-slider-wrapper > .row > div {
    min-width: 0 !important;
    padding: 0 !important;
}

/* MAIN GALLERY */

.mh175-product .product-slider-wrapper .main-slider {
    width: 100% !important;
    height: var(--mh175-gallery-height) !important;
    min-height: 0 !important;
    margin: 0 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    background: #f7f8f8 !important;
}

.mh175-product .main-slider > .swiper-wrapper {
    height: 100% !important;
}

.mh175-product .main-slider .swiper-slide {
    height: 100% !important;
    overflow: hidden !important;
    background: #f7f8f8 !important;
}

.mh175-product .main-slider .lightbox-source {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    border-radius: 0 !important;
}

.mh175-product .main-slider video {
    object-fit: contain !important;
}

.mh175-product .main-slider iframe {
    max-width: 100% !important;
    max-height: 100% !important;
}

/* THUMBNAILS */

.mh175-product .product-slider-wrapper .thumb-container {
    height: var(--mh175-gallery-height) !important;
    width: 100% !important;
    margin: 0 !important;
}

.mh175-product .thumb-slider {
    margin: 0 !important;
}

.mh175-product .thumb-slider .swiper-slide {
    border-radius: 7px !important;
}

.mh175-product .thumb-slider .swiper-slide img {
    object-fit: contain !important;
    background: #f7f8f8 !important;
    transition: none !important;
}

.mh175-product .thumb-slider .swiper-slide:hover img {
    transform: none !important;
    opacity: 1 !important;
}

.mh175-product .thumb-slider .swiper-slide-thumb-active {
    border-color: #007f79 !important;
    outline: 2px solid #007f79 !important;
    outline-offset: -2px;
}

/* GALLERY NAVIGATION */

.mh175-product .main-slider .swiper-button-next {
    right: 8px !important;
}

.mh175-product .main-slider .swiper-button-prev {
    left: 8px !important;
}

.mh175-product .main-slider .swiper-button-next,
.mh175-product .main-slider .swiper-button-prev {
    width: 32px !important;
    height: 32px !important;
    transition: none !important;
}

.mh175-product .main-slider .swiper-button-next::after,
.mh175-product .main-slider .swiper-button-prev::after {
    font-size: 13px !important;
}

/* DESKTOP GALLERY */

@media (min-width: 768px) {

    .mh175-product .product-slider-wrapper > .row {
        display: grid !important;
        grid-template-columns: 68px minmax(0, 1fr);
        gap: 8px;
    }

    .mh175-product .product-slider-wrapper > .row > div {
        width: 100% !important;
        max-width: 100% !important;
    }

    .mh175-product .thumb-slider .swiper-slide {
        height: calc(
            (var(--mh175-gallery-height) - 48px) / 5
        ) !important;
    }

    .mh175-product .mh174-discount {
        left: 86px !important;
    }
}

/* DESCRIPTION */

.mh175-product #description,
.mh175-product #description > div,
.mh175-product .mh171-description {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

.mh175-product .mh171-description {
    font-size: 14px !important;
    line-height: 1.7 !important;
    color: #34413f;
    overflow-wrap: anywhere;
}

.mh175-product .mh171-description img {
    max-width: 100% !important;
    height: auto !important;
}

.mh175-product .mh171-description iframe,
.mh175-product .mh171-description video {
    max-width: 100% !important;
}

.mh175-product .mh171-description p {
    margin-bottom: 8px;
}

.mh175-product .mh171-description {
    overflow-x: auto !important;

}

/* SIZE CHART / DESCRIPTION TABLES */

.mh175-product .mh171-description table {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 480px !important;
    table-layout: auto !important;
    border-collapse: collapse !important;
    margin: 12px 0 !important;
    font-size: 13px !important;
}

.mh175-product .mh171-description th,
.mh175-product .mh171-description td {
    padding: 8px !important;
    border: 1px solid #dce6e3 !important;
    width: auto !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    vertical-align: middle;
}

.mh175-product .mh171-description th {
    background: #e3f5f1 !important;
    color: #005d59 !important;
    font-weight: 700 !important;
}

.mh175-product .mh171-description tr:nth-child(even) td {
    background: #f8faf9;
}

/* RELATED PRODUCTS */

.mh175-product .mh171-lower .mh174-card {
    min-width: 0 !important;
    overflow: hidden;
    border-radius: 8px !important;
}

.mh175-product .mh171-lower .mh174-card > .img {
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
}

.mh175-product .mh171-lower .mh174-card h3 {
    font-size: 13px !important;
    line-height: 1.4 !important;
}

/* TABLET */

@media (min-width: 768px) and (max-width: 1199px) {
    .mh175-product {
        --mh175-gallery-height: clamp(360px, 48vw, 480px);
    }
}

/* MOBILE */

@media (max-width: 767px) {

    .mh175-product {
        --mh175-gallery-height: clamp(280px, 100vw, 450px);
    }

    .mh175-product .product-slider-wrapper > .row {
        display: flex !important;
        flex-direction: column !important;
        gap: 7px;
    }

    .mh175-product .product-slider-wrapper > .row > div {
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .mh175-product .product-slider-wrapper .thumb-container {
        height: 65px !important;
    }

    .mh175-product .thumb-slider .swiper-slide {
        width: 65px !important;
        height: 65px !important;
    }

    .mh175-product .thumb-slider-btn {
        display: none !important;
    }

    .mh175-product .mh174-discount {
        left: 10px !important;
        top: 10px !important;
    }

    .mh175-product .mh171-video-actions {
        margin-top: 6px !important;
    }

    .mh175-product .mh171-description {
        font-size: 13px !important;
    }

    .mh175-product .mh171-description table {
        font-size: 12px !important;
    }

    .mh175-product .mh171-description td,
    .mh175-product .mh171-description th {
        padding: 6px !important;
    }

    .mh175-product .mh171-lower {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .mh175-product .mh171-lower > section {
        grid-column: 1 / -1 !important;
        grid-row: auto !important;
    }
}
