/* =========================================================
   TOUCHMEDICAL — SINGLE PRODUCT
========================================================= */


/* =========================================================
   PAGE
========================================================= */

.tm-single-product {
    width: 100%;

    padding-top: 10px;
    padding-bottom: 20px;

    background: #fff;
}


/* =========================================================
   BREADCRUMBS
========================================================= */

.tm-product-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 7px;

    margin: 0;

    color: #66706a;

    font-family: var(--tm-font);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
}

.tm-product-breadcrumbs a {
    color: #66706a !important;
    text-decoration: none !important;
}

.tm-product-breadcrumbs a:hover {
    color: var(--tm-color-button) !important;
}

.tm-product-breadcrumbs-separator {
    color: #aaa;
}

.tm-product-breadcrumbs-current {
    color: #66706a;
}


/* =========================================================
   MAIN PRODUCT
========================================================= */

.tm-product-main {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    gap: 70px;

    margin-top: 26px;
}


/* =========================================================
   GALLERY
========================================================= */

.tm-product-gallery {
    width: 100%;
}

.tm-product-gallery-main {
    position: relative;

    width: 100%;

    aspect-ratio: 1 / 1;

    overflow: hidden;

    background: #fff;

    border: 1px solid #d9d9d9;
    border-radius: 12px;

    box-shadow:
        0 3px 12px rgba(0, 0, 0, 0.04);
}

.tm-product-gallery-slide {
    position: absolute;
    inset: 0;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 18px;

    cursor: zoom-in;
}

.tm-product-gallery-slide.is-active {
    display: flex;
}

.tm-product-gallery-slide img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
}


/* =========================================================
   GALLERY ARROWS
========================================================= */

.tm-product-gallery-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    padding: 0;

    color: var(--tm-color-text) !important;
    background: #fff !important;

    border: 0 !important;
    border-radius: 50% !important;

    box-shadow:
        0 3px 10px rgba(0, 0, 0, 0.10) !important;

    font-family: var(--tm-font) !important;
    font-size: 28px;
    font-weight: 300;

    line-height: 1;

    cursor: pointer;

    transform: translateY(-50%) !important;
}

.tm-product-gallery-arrow:hover {
    color: var(--tm-color-text) !important;
    background: #fff !important;

    transform:
        translateY(-50%) scale(1.03) !important;
}

.tm-product-gallery-arrow-prev {
    left: 14px;
}

.tm-product-gallery-arrow-next {
    right: 14px;
}


/* =========================================================
   THUMBNAILS
========================================================= */

.tm-product-gallery-thumbs {
    display: flex;
    align-items: center;

    gap: 10px;

    margin-top: 16px;
}

.tm-product-gallery-thumb {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 62px;
    height: 62px;

    padding: 3px;

    background: #f1f1f1 !important;

    border: 1px solid transparent !important;
    border-radius: 5px !important;

    box-shadow: none !important;

    cursor: pointer;
}

.tm-product-gallery-thumb:hover,
.tm-product-gallery-thumb.is-active {
    background: #f1f1f1 !important;

    border-color:
        var(--tm-color-accent) !important;

    transform: none !important;

    box-shadow: none !important;
}

.tm-product-gallery-thumb img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
}


/* =========================================================
   LIGHTBOX
========================================================= */

.tm-product-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 50px;

    background: rgba(0, 0, 0, 0.78);

    cursor: zoom-out;
}

.tm-product-lightbox[hidden] {
    display: none !important;
}

.tm-product-lightbox-image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;

    width: min(1100px, 92vw);
    height: min(850px, 90vh);

    padding: 25px;

    background: #fff;

    border-radius: 12px;

    cursor: default;
}

.tm-product-lightbox-image {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
}

.tm-product-lightbox-close {
    position: fixed;

    top: 20px;
    right: 25px;
    z-index: 10;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    padding: 0;

    color: #fff !important;
    background: transparent !important;

    border: 0 !important;
    border-radius: 0 !important;

    box-shadow: none !important;

    font-family: Arial, sans-serif !important;
    font-size: 36px;
    font-weight: 300;

    line-height: 1;

    cursor: pointer;

    transform: none !important;
}

.tm-product-lightbox-close:hover {
    color: #fff !important;
    background: transparent !important;

    transform: none !important;

    box-shadow: none !important;
}


/* =========================================================
   SUMMARY
========================================================= */

.tm-product-summary {
    min-width: 0;
}

.tm-product-category {
    display: inline-block;

    margin-bottom: 12px;

    color: var(--tm-color-accent) !important;

    font-family: var(--tm-font);
    font-size: 14px;
    font-weight: 700;

    line-height: 1.4;

    letter-spacing: 0.04em;
    text-transform: uppercase;

    text-decoration: none !important;
}

.tm-product-category:hover {
    color: var(--tm-color-button) !important;
}

.tm-product-title {
    max-width: 700px;

    margin: 0 !important;

    color: var(--tm-color-text) !important;

    font-family: var(--tm-font) !important;
    font-size: 44px !important;
    font-weight: 600 !important;
    line-height: 1.16 !important;
}

.tm-product-short-description {
    max-width: 620px;

    margin-top: 20px;

    color: #66706a;

    font-family: var(--tm-font);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
}

.tm-product-short-description p {
    margin: 0;
}


/* =========================================================
   PRICE
========================================================= */

.tm-product-price {
    margin-top: 26px;

    color: var(--tm-color-text);

    font-family: var(--tm-font);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}

.tm-product-price del {
    color: #999;
}

.tm-product-price ins {
    color: inherit;
    text-decoration: none;
}




/* =========================================================
   PRICE REQUEST
========================================================= */

.tm-product-price-request {
    display: inline-block;

    color: var(--tm-color-text);

    font-family: var(--tm-font);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}






/* =========================================================
   PRICE NOTE
========================================================= */

.tm-product-price-note {
    margin-top: 7px;

    color: #66706a;

    font-family: var(--tm-font);
    font-size: 14px !important;
    font-weight: 400;
    line-height: 1.4;
}




/* =========================================================
   ADD TO CART
========================================================= */

.tm-product-add-to-cart {
    margin-top: 22px;
}

.tm-product-add-to-cart form.cart {
    display: block;

    margin: 0;
}

.tm-product-add-to-cart .quantity {
    display: none !important;
}

.tm-product-add-to-cart .single_add_to_cart_button {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 52px;

    padding: 0 20px;

    color: #fff !important;
    background: var(--tm-color-button) !important;

    border: 0 !important;
    border-radius:
        var(--tm-button-radius) !important;

    box-shadow:
        0 4px 10px var(--tm-color-shadow) !important;

    font-family: var(--tm-font) !important;
    font-size: 16px;
    font-weight: 600;

    cursor: pointer;

    transition:
        transform var(--tm-transition),
        box-shadow var(--tm-transition);
}

.tm-product-add-to-cart .single_add_to_cart_button:hover {
    color: #fff !important;
    background: var(--tm-color-button) !important;

    transform: translateY(-2px) !important;

    box-shadow:
        0 6px 16px
        rgba(91, 135, 33, 0.4) !important;
}


/* =========================================================
   SPECIALIST
========================================================= */

.tm-product-specialist {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    width: 100%;
    min-height: 42px;

    margin-top: 12px;
    padding: 0 16px;

    color: var(--tm-color-accent) !important;
    background: #fff !important;

    border: 1px solid var(--tm-color-accent);
    border-radius: 4px;

    font-family: var(--tm-font);
    font-size: 15px;
    font-weight: 600;

    text-decoration: none !important;

    transition:
        background-color var(--tm-transition),
        border-color var(--tm-transition);
}

.tm-product-specialist:hover,
.tm-product-specialist:focus,
.tm-product-specialist:active {
    color: var(--tm-color-accent) !important;

    background: #f4faef !important;

    border-color: var(--tm-color-accent);

    transform: none !important;

    box-shadow: none !important;

    outline: none;
}

.tm-product-specialist img {
    display: block;

    width: 23px;
    height: 23px;

    object-fit: contain;

    flex: 0 0 23px;
}


/* =========================================================
   INFO ITEMS
========================================================= */

.tm-product-info-items {
    display: flex;
    flex-direction: column;

    gap: 18px;

    margin-top: 30px;
}

.tm-product-info-item {
    display: flex;
    align-items: flex-start;

    gap: 13px;
}

.tm-product-info-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 28px;

    width: 28px;
    height: 28px;
}

.tm-product-info-icon img {
    display: block;

    width: 28px;
    height: 28px;

    object-fit: contain;
}

.tm-product-info-text {
    padding-top: 2px;

    color: #66706a;

    font-family: var(--tm-font);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.45;
}


/* =========================================================
   DETAILS
========================================================= */

.tm-product-details {
    margin-top: 50px;
}


/* =========================================================
   DESKTOP TABS
========================================================= */

.tm-product-tab-items {
    display: grid;

    grid-template-columns:
        repeat(
            var(--tm-product-tab-count),
            minmax(0, 1fr)
        );

    column-gap: 38px;

    border-bottom: 0;
}

.tm-product-tab-item {
    display: contents;
}

.tm-product-tab {
    position: relative;

    grid-column:
        var(--tm-product-tab-index);

    grid-row: 1;

    display: flex;
    align-items: center;

    min-height: 46px;

    padding: 0;

    color: #66706a !important;
    background: transparent !important;

    border: 0 !important;
    border-radius: 0 !important;

    box-shadow: none !important;

    font-family: var(--tm-font) !important;
    font-size: 16px;
    font-weight: 500;

    cursor: pointer;

    transform: none !important;
}

.tm-product-tab > span {
    display: block;

    line-height: 1.3;
}

.tm-product-tab:hover,
.tm-product-tab:focus,
.tm-product-tab:active {
    color: var(--tm-color-text) !important;
    background: transparent !important;

    border: 0 !important;

    transform: none !important;

    box-shadow: none !important;

    outline: none;
}

.tm-product-tab.is-active {
    color: var(--tm-color-text) !important;
}

.tm-product-tab.is-active::after {
    content: "";

    position: absolute;

    right: 0;
    bottom: -1px;
    left: 0;

    width: auto;
    height: 2px;

    margin: 0;

    background: var(--tm-color-accent);

    border: 0;

    transform: none;
}


/* =========================================================
   DESKTOP PANELS
========================================================= */

.tm-product-panel {
    display: none;

    grid-column: 1 / -1;
    grid-row: 2;

    width: 100%;

    margin-top: 14px;

    background: #f5f8f5;

    border-radius: 12px;

    overflow: hidden;
}

.tm-product-panel.is-active {
    display: block;
}


/* =========================================================
   DESKTOP ATTRIBUTES
========================================================= */

.tm-product-panel[data-panel="attributes"] {
    padding: 18px 22px;
}

.tm-product-attributes {
    position: relative;

    display: grid;

    grid-template-columns:
        1fr 1fr;

    column-gap: 38px;
}

.tm-product-attributes::before {
    content: "";

    position: absolute;

    top: 0;
    bottom: 0;
    left: 50%;

    width: 1px;

    background: #e1e6e1;
}

.tm-product-attribute {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 20px;

    min-height: 38px;

    padding: 9px 0;

    border-bottom: 1px solid #e1e6e1;
}

.tm-product-attribute-name,
.tm-product-attribute-value {
    color: #66706a;

    font-size: 14px;
    line-height: 1.4;
}

.tm-product-attribute-name {
    font-weight: 700;
}

.tm-product-attribute-value {
    font-weight: 400;
}

.tm-product-attribute:last-child {
    border-bottom: 1px solid #e1e6e1;
}

.tm-product-attributes-empty {
    color: #66706a;

    font-size: 14px;
}


/* =========================================================
   RICHTEXT
========================================================= */

.tm-product-richtext {
    padding: 22px;

    color: #66706a;

    font-family: var(--tm-font);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.55;
}

.tm-product-richtext p {
    margin-top: 0;
}

.tm-product-richtext p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   DOCUMENTS
========================================================= */

.tm-product-documents {
    padding: 22px;
}

.tm-product-document-link {
    display: inline-flex;

    color: var(--tm-color-accent) !important;

    font-size: 16px;
    font-weight: 600;

    text-decoration: none !important;
}

.tm-product-document-link:hover {
    color: var(--tm-color-button) !important;
}


/* =========================================================
   WOOCOMMERCE NOTICE
========================================================= */

.tm-product-woocommerce-notices {
    margin-top: 14px;
}

.tm-product-woocommerce-notices .woocommerce-message,
.tm-product-woocommerce-notices .woocommerce-info,
.tm-product-woocommerce-notices .woocommerce-error {
    margin: 0 !important;
    padding: 12px 16px !important;

    color: #66706a;

    background: #edf4ee;

    border: 1px solid #d8e5d8 !important;
    border-radius: 8px;

    font-family: var(--tm-font);
    font-size: 13px;
    line-height: 1.4;
}

.tm-product-woocommerce-notices .woocommerce-message {
    color: #587b48;
}

.tm-product-woocommerce-notices .button {
    margin-left: 10px;

    padding: 6px 12px !important;

    color: #fff !important;
    background: var(--tm-color-button) !important;

    font-size: 12px;
}


/* =========================================================
   LIGHTBOX — BODY LOCK
========================================================= */

body.tm-product-lightbox-open {
    overflow: hidden !important;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {


    /* =====================================================
       PAGE
    ===================================================== */

    .tm-single-product {
        padding-top: 10px;
        padding-bottom: 20px;
    }


    /* =====================================================
       BREADCRUMBS
    ===================================================== */

    .tm-product-breadcrumbs {
        gap: 4px;

        font-size: 12px;

        line-height: 1.4;
    }


    /* =====================================================
       MAIN PRODUCT
    ===================================================== */

    .tm-product-main {
        display: flex;
        flex-direction: column;

        gap: 20px;

        margin-top: 12px;
    }


    /* =====================================================
       GALLERY
    ===================================================== */

    .tm-product-gallery-main {
        aspect-ratio: 1 / 1;

        border-radius: 10px;
    }

    .tm-product-gallery-slide {
        padding: 12px;
    }

    .tm-product-gallery-arrow {
        display: none !important;
    }

    .tm-product-gallery-thumbs {
        gap: 9px;

        margin-top: 9px;
    }

    .tm-product-gallery-thumb {
        width: 52px;
        height: 52px;
    }


    /* =====================================================
       LIGHTBOX
    ===================================================== */

    .tm-product-lightbox {
        padding: 18px;
    }

    .tm-product-lightbox-image-wrap {
        width: 94vw;
        height: 82vh;

        padding: 12px;

        border-radius: 8px;
    }

    .tm-product-lightbox-close {
        top: 8px;
        right: 12px;

        font-size: 32px;
    }


    /* =====================================================
       SUMMARY
    ===================================================== */

    .tm-product-category {
        margin-bottom: 8px;

        font-size: 14px;
    }

    .tm-product-title {
        font-size: 28px !important;
        line-height: 1.18 !important;
    }

    .tm-product-short-description {
        margin-top: 13px;

        font-size: 14px;
        line-height: 1.45;
    }

    .tm-product-price {
        margin-top: 18px;

        font-size: 21px;
    }



.tm-product-price-note {
    margin-top: 5px;

    font-size: 12px !important;
    line-height: 1.35;
}


/* =========================================================
   PRICE REQUEST
========================================================= */

.tm-product-price-request {
    font-size: 21px;

}



    /* =====================================================
       BUTTONS
    ===================================================== */

    .tm-product-add-to-cart {
        margin-top: 16px;
    }

    .tm-product-add-to-cart .single_add_to_cart_button {
        min-height: 48px;

        font-size: 14px;
    }

    .tm-product-specialist {
        min-height: 41px;

        margin-top: 8px;

        font-size: 13px;
    }

    .tm-product-specialist img {
        width: 21px;
        height: 21px;

        flex-basis: 21px;
    }


    /* =====================================================
       INFO
    ===================================================== */

    .tm-product-info-items {
        gap: 14px;

        margin-top: 22px;
    }

    .tm-product-info-item {
        gap: 11px;
    }

    .tm-product-info-icon {
        flex: 0 0 22px;

        width: 22px;
        height: 22px;
    }

    .tm-product-info-icon img {
        width: 24px;
        height: 24px;
    }

    .tm-product-info-text {
        padding-top: 1px;

        font-size: 14px;
        line-height: 1.4;
    }


    /* =====================================================
       DETAILS
    ===================================================== */

    .tm-product-details {
        margin-top: 24px;
    }


    /* =====================================================
       MOBILE TAB STRUCTURE
    ===================================================== */

    .tm-product-tab-items {
        display: block;

        border-bottom: 0;
    }

    .tm-product-tab-item {
        display: block;

        margin-bottom: 8px;
    }

    .tm-product-tab-item:last-child {
        margin-bottom: 0;
    }


    /* =====================================================
       MOBILE TAB BUTTON
    ===================================================== */

    .tm-product-tab {
        position: relative;

        display: flex !important;
        align-items: center;
        justify-content: space-between;

        width: 100%;

        min-height: 42px;

        margin: 0 !important;
        padding: 0 12px !important;

        color: #66706a !important;
        background: #fff !important;

        border: 1px solid #bdbdbd !important;
        border-radius: 7px !important;

        box-shadow: none !important;

        font-family: var(--tm-font) !important;
        font-size: 14px;
        font-weight: 600;

        text-align: left;

        cursor: pointer;

        transform: none !important;
    }

    .tm-product-tab > span {
        display: block;

        line-height: 1.3;
    }

    .tm-product-tab:hover,
    .tm-product-tab:focus,
    .tm-product-tab:active,
    .tm-product-tab.is-active {
        color: #66706a !important;

        background: #fff !important;

        border-color: #bdbdbd !important;

        transform: none !important;

        box-shadow: none !important;

        outline: none !important;
    }


    /* =====================================================
       MOBILE CHEVRON
    ===================================================== */

    .tm-product-tab::after {
        content: "" !important;

        position: static !important;

        display: block !important;

        flex: 0 0 16px !important;

        width: 16px !important;
        height: 16px !important;

        min-width: 16px !important;
        min-height: 16px !important;

        margin: 0 0 0 12px !important;
        padding: 0 !important;

        background-color: transparent !important;
        background-image:
            url("http://touchmedical.lenaless.ru/wp-content/uploads/2026/10/griddy-icons_chevron-up.svg") !important;

        background-repeat: no-repeat !important;
        background-position: center !important;
        background-size: contain !important;

        border: 0 !important;

        box-shadow: none !important;

        transform: rotate(180deg) !important;

        transition:
            transform 0.2s ease;
    }

    .tm-product-tab.is-active::after {
        content: "" !important;

        position: static !important;

        display: block !important;

        flex: 0 0 16px !important;

        width: 16px !important;
        height: 16px !important;

        min-width: 16px !important;
        min-height: 16px !important;

        margin: 0 0 0 12px !important;

        background-color: transparent !important;
        background-image:
            url("http://touchmedical.lenaless.ru/wp-content/uploads/2026/10/griddy-icons_chevron-up.svg") !important;

        background-repeat: no-repeat !important;
        background-position: center !important;
        background-size: contain !important;

        border: 0 !important;

        transform: rotate(0deg) !important;
    }


    /* =====================================================
       MOBILE PANEL
    ===================================================== */

    .tm-product-panel {
        display: none;

        width: 100%;

        margin-top: 6px;

        background: #fff;

        border: 1px solid #bdbdbd;
        border-radius: 7px;

        overflow: hidden;
    }

    .tm-product-panel.is-active {
        display: block;
    }


    /* =====================================================
       MOBILE ATTRIBUTES
    ===================================================== */

    .tm-product-panel[data-panel="attributes"] {
        padding: 9px 11px;

        background: #fff;

        border-radius: 7px;
    }

    .tm-product-attributes {
        display: block;
    }

    .tm-product-attributes::before {
        display: none;
    }

    .tm-product-attribute {
        display: grid;

        grid-template-columns:
            1fr 1fr;

        gap: 10px;

        min-height: 30px;

        padding: 6px 0;

        border-bottom: 1px solid #e1e6e1;
    }

    .tm-product-attribute:last-child {
        border-bottom: 0;
    }

    .tm-product-attribute-name,
    .tm-product-attribute-value {
        font-size: 12px;
        line-height: 1.35;
    }

    .tm-product-attribute-name {
        font-weight: 700;
    }

    .tm-product-attributes-empty {
        padding: 5px 0;

        font-size: 12px;
    }


    /* =====================================================
       MOBILE OTHER PANELS
    ===================================================== */

    .tm-product-richtext {
        padding: 14px 11px;

        font-size: 14px;
        line-height: 1.5;
    }

    .tm-product-documents {
        padding: 14px 11px;
    }

    .tm-product-document-link {
        font-size: 14px;
    }


    /* =====================================================
       MOBILE WOOCOMMERCE NOTICE
    ===================================================== */

    .tm-product-woocommerce-notices {
        margin-top: 10px;
    }

    .tm-product-woocommerce-notices .woocommerce-message,
    .tm-product-woocommerce-notices .woocommerce-info,
    .tm-product-woocommerce-notices .woocommerce-error {
        padding: 10px 12px !important;

        font-size: 11px;
        line-height: 1.4;
    }

    .tm-product-woocommerce-notices .button {
        display: block;

        margin: 8px 0 0;

        font-size: 11px;
    }

}


/* =========================================================
   MOBILE — ACTIVE TAB BORDER FIX
========================================================= */

.tm-product-tab-items .tm-product-tab-item .tm-product-tab.is-active {
    display: flex !important;
    align-items: center;
    justify-content: space-between;

    width: 100% !important;
    min-height: 42px !important;

    margin: 0 !important;
    padding: 0 12px !important;

    color: #66706a !important;
    background: #fff !important;

    border: 1px solid #bdbdbd !important;
    border-radius: 7px !important;

    box-shadow: none !important;

    transform: none !important;
    outline: none !important;
}







/* =========================================================
   DESKTOP — PRODUCT TABS RESET
========================================================= */

@media (min-width: 768px) {

    .tm-product-tab-items .tm-product-tab-item .tm-product-tab,
    .tm-product-tab-items .tm-product-tab-item .tm-product-tab.is-active,
    .tm-product-tab-items .tm-product-tab-item .tm-product-tab:hover,
    .tm-product-tab-items .tm-product-tab-item .tm-product-tab:focus,
    .tm-product-tab-items .tm-product-tab-item .tm-product-tab:active {
        min-height: 46px !important;

        margin: 0 !important;
        padding: 0 !important;

        color: #66706a !important;
        background: transparent !important;

        border: 0 !important;
        border-radius: 0 !important;

        box-shadow: none !important;

        transform: none !important;
        outline: none !important;
    }

    .tm-product-tab-items .tm-product-tab-item .tm-product-tab.is-active {
        color: var(--tm-color-text) !important;
    }

    .tm-product-tab-items .tm-product-tab-item .tm-product-tab.is-active::after {
        content: "";

        position: absolute;

        right: 0;
        bottom: -1px;
        left: 0;

        width: auto;
        height: 2px;

        margin: 0;

        background: var(--tm-color-accent);

        border: 0;

        transform: none;
    }

}





/* =========================================================
   RELATED PRODUCTS — ДОПОЛНИТЕЛЬНЫЕ ТОВАРЫ
========================================================= */

.tm-related-products {
    margin-top: 64px;
    padding-top: 40px;
    border-top: 1px solid #EEEEEE;
}

.tm-related-products-title {
    margin: 0 0 28px;
    font-family: inherit;
    font-size: 32px;
    font-weight: 600;
    line-height: 1.25;
    color: #111111;
}

.tm-related-products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.tm-related-product-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #E5E5E5;
    border-radius: 10px;
    background: #FFFFFF;
    transition: border-color 0.2s ease;
}

.tm-related-product-card:hover {
    border-color: #89C43B;
}

.tm-related-product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    padding: 16px;
    overflow: hidden;
    background: #FFFFFF;
}

.tm-related-product-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tm-related-product-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 16px 18px;
}

.tm-related-product-name {
    display: -webkit-box;
    overflow: hidden;
    margin-bottom: 14px;
    color: #111111;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.45;
    text-decoration: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.tm-related-product-name:hover {
    color: #89C43B;
}

.tm-related-product-price {
    margin-top: auto;
    margin-bottom: 18px;
    color: #111111;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
}

.tm-related-product-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #89C43B;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.tm-related-product-link:hover {
    color: #6FA126;
}

/* Планшеты */

@media (max-width: 1024px) {
    .tm-related-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }

    .tm-related-products-title {
        font-size: 28px;
    }
}

/* Мобильные устройства */

@media (max-width: 767px) {
    .tm-related-products {
        margin-top: 40px;
        padding-top: 28px;
    }

    .tm-related-products-title {
        margin-bottom: 20px;
        font-size: 24px;
    }

    .tm-related-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .tm-related-product-image {
        padding: 10px;
    }

    .tm-related-product-content {
        padding: 0 10px 14px;
    }

    .tm-related-product-name {
        margin-bottom: 12px;
        font-size: 13px;
    }

    .tm-related-product-price {
        margin-bottom: 14px;
        font-size: 15px;
    }

    .tm-related-product-link {
        font-size: 13px;
    }
}

.tm-product-specialist:focus-visible,
.tm-product-consultation-close:focus-visible {
    outline: 2px solid var(--tm-color-accent, #468242);
    outline-offset: 3px;
}

html:has(.tm-product-consultation[open]) {
    overflow: hidden;
}

.tm-product-consultation {
    box-sizing: border-box;
    width: min(540px, calc(100% - 32px));
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: clamp(18px, 4vw, 32px);
    overflow: auto;
    border: 0;
    border-radius: 16px;
    background: #fff;
    color: #222;
    box-shadow: 0 16px 48px rgb(0 0 0 / 22%);
}

.tm-product-consultation:not([open]) {
    display: none;
}

.tm-product-consultation::backdrop {
    background: rgb(0 0 0 / 55%);
}

.tm-product-consultation-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.tm-product-consultation-head h2 {
    margin: 0;
    font-size: clamp(20px, 4vw, 28px);
}

.tm-product-consultation-close {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f2f5f1;
    color: #222;
    font-size: 25px;
    line-height: 1;
}

.tm-product-consultation .tm-product-consultation-form {
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.tm-product-consultation .tm-product-consultation-head h2 {
    font-size: clamp(20px, 4vw, 28px) !important;
    line-height: 1.2;
}

.tm-product-consultation .tm-product-consultation-close {
    border-radius: 50% !important;
    background: #f2f5f1 !important;
    color: #222 !important;
    box-shadow: none !important;
}

.tm-product-consultation .wpcf7 form .wpcf7-response-output {
    margin: 12px 0 0;
}
