/* =========================================================
   ECOFISHER — PRODUCT DETAIL
   Optimized final version
   ========================================================= */


/* =========================================================
   DESIGN TOKENS
   ========================================================= */

.eco-product-page {
    --eco-text: #555555;
    --eco-text-dark: #1f1f1f;
    --eco-text-strong: #404040;
    --eco-text-muted: #777777;
    --eco-border: #e9e9e9;

    --eco-max: #5571A7;
    --eco-telegram: #193362;
}


/* =========================================================
   PRODUCT DESCRIPTION
   ========================================================= */

.eco-product-page
.t-catalog__prod-popup__info
.js-catalog-prod-text,

.eco-product-page
.t-catalog__prod-popup__info
.js-catalog-prod-all-text,

.eco-product-page
.t-catalog__prod-popup__info
.t-catalog__prod-popup__text {

    width: 100% !important;
    max-width: none !important;

    box-sizing: border-box !important;

    font-family: "TildaSans", Arial, sans-serif !important;

    font-size: 15px !important;
    line-height: 1.6 !important;
    font-weight: 400 !important;

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

    opacity: 1 !important;
}


/* Tilda иногда стилизует внутренние элементы отдельно */
.eco-product-page
.t-catalog__prod-popup__info
.js-catalog-prod-all-text * {

    font-family: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;

    color: inherit !important;

    opacity: 1 !important;
}


.eco-product-page
.t-catalog__prod-popup__info
.js-catalog-prod-all-text strong,

.eco-product-page
.t-catalog__prod-popup__info
.js-catalog-prod-all-text b {

    font-weight: 600 !important;

    color: var(--eco-text-strong) !important;
}


/* =========================================================
   ACCORDION — BASE
   ========================================================= */

.eco-product-page .t-catalog__tabs,
.eco-product-page .t-catalog__tabs__list,
.eco-product-page .t-catalog__tabs__item {

    width: 100% !important;
    max-width: none !important;
}


.eco-product-page
.t-catalog__tabs__content,

.eco-product-page
.t-catalog__tabs__content.t-desc,

.eco-product-page
.t-catalog__tabs__content.t-desc_xxs {

    width: 100% !important;
    max-width: none !important;

    margin-left: 0 !important;
    margin-right: 0 !important;

    box-sizing: border-box !important;

    font-family: "TildaSans", Arial, sans-serif !important;
}


/* =========================================================
   CONSULTATION BLOCK
   ========================================================= */

.eco-product-page .eco-fast-consult {

    width: 100%;

    margin-top: 22px;

    padding-top: 18px;

    border-top: 1px solid var(--eco-border);

    box-sizing: border-box;

    font-family: "TildaSans", Arial, sans-serif !important;
}


.eco-product-page .eco-fast-consult__head {

    margin-bottom: 12px;
}


.eco-product-page .eco-fast-consult__title {

    margin: 0 0 4px !important;

    font: 600 16px/1.3 "TildaSans", Arial, sans-serif !important;

    color: var(--eco-text-dark) !important;
}


.eco-product-page .eco-fast-consult__subtitle {

    margin: 0 !important;

    font: 400 13px/1.45 "TildaSans", Arial, sans-serif !important;

    color: var(--eco-text-muted) !important;
}


.eco-product-page .eco-fast-consult__buttons {

    display: grid;

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

    gap: 10px;
}


.eco-product-page .eco-fast-consult__btn {

    display: flex;

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

    min-height: 46px;

    padding: 10px 14px;

    box-sizing: border-box;

    border-radius: 8px;

    font: 500 14px/1.2 "TildaSans", Arial, sans-serif !important;

    color: #ffffff !important;

    text-decoration: none !important;

    transition:
        opacity .18s ease,
        transform .18s ease,
        box-shadow .18s ease;
}


.eco-product-page .eco-fast-consult__btn:hover {

    opacity: .94;

    transform: translateY(-1px);

    box-shadow: 0 5px 14px rgba(0, 0, 0, .08);
}


.eco-product-page .eco-fast-consult__btn:active {

    transform: none;

    box-shadow: none;
}


.eco-product-page .eco-fast-consult__max {

    background: var(--eco-max) !important;
}


.eco-product-page .eco-fast-consult__telegram {

    background: var(--eco-telegram) !important;
}


/* =========================================================
   TABLET LANDSCAPE / SMALL LAPTOP
   901–1200
   ========================================================= */

@media (min-width: 901px) and (max-width: 1200px) {

    .eco-product-page
    .t-catalog__prod-popup__info
    .js-catalog-prod-name {

        font-size: 23px !important;
        line-height: 1.25 !important;
    }


    .eco-product-page
    .t-catalog__prod-popup__price-wrapper,
    .eco-product-page
    .js-catalog-price-wrapper {

        font-size: 20px !important;
    }


    .eco-product-page .eco-fast-consult__title {

        font-size: 17px !important;
    }


    .eco-product-page .eco-fast-consult__subtitle {

        font-size: 14px !important;
    }


    .eco-product-page
    .t-catalog__tabs__item-button,
    .eco-product-page
    .t-catalog__tabs__item-button * {

        font-size: 16px !important;
        line-height: 1.35 !important;
        font-weight: 500 !important;
    }


    .eco-product-page
    .t-catalog__tabs__content {

        font-size: 14px !important;
        line-height: 1.6 !important;
    }

}


/* =========================================================
   TABLET PORTRAIT
   641–900
   ========================================================= */

@media (min-width: 641px) and (max-width: 900px) {

    .eco-product-page
    .t-catalog__prod-popup__info
    .js-catalog-prod-name {

        font-size: 22px !important;
        line-height: 1.25 !important;
    }


    .eco-product-page
    .t-catalog__prod-popup__price-wrapper,
    .eco-product-page
    .js-catalog-price-wrapper {

        font-size: 20px !important;
    }


    .eco-product-page .eco-fast-consult {

        margin-bottom: 28px;
    }


    .eco-product-page .eco-fast-consult__title {

        font-size: 18px !important;
    }


    .eco-product-page .eco-fast-consult__subtitle {

        font-size: 14px !important;
    }


    .eco-product-page
    .t-catalog__tabs__item-button,
    .eco-product-page
    .t-catalog__tabs__item-button * {

        font-size: 16px !important;
        line-height: 1.35 !important;
        font-weight: 500 !important;
    }


    .eco-product-page
    .t-catalog__tabs__content {

        font-size: 14px !important;
        line-height: 1.6 !important;
    }


    .eco-product-page
    .t-catalog__relevants__title {

        font-size: 20px !important;
        line-height: 1.3 !important;
        font-weight: 600 !important;
    }

}


/* =========================================================
   MOBILE
   ≤ 640
   ========================================================= */

@media (max-width: 640px) {

    /* ---------- PRODUCT TITLE ---------- */

    .eco-product-page
    .t-catalog__prod-popup__info
    .js-catalog-prod-name {

        font-family: "TildaSans", Arial, sans-serif !important;

        font-size: 22px !important;
        line-height: 1.25 !important;
        font-weight: 600 !important;

        letter-spacing: -.01em !important;

        color: var(--eco-text-dark) !important;
    }


    /* ---------- PRICE ---------- */

    .eco-product-page
    .t-catalog__prod-popup__info
    .t-catalog__prod-popup__price-wrapper,

    .eco-product-page
    .t-catalog__prod-popup__info
    .js-catalog-price-wrapper,

    .eco-product-page
    .t-catalog__prod-popup__info
    .t-catalog__prod-popup__price {

        font-family: "TildaSans", Arial, sans-serif !important;

        font-size: 20px !important;
        line-height: 1.3 !important;
        font-weight: 600 !important;

        color: var(--eco-text-dark) !important;
    }


    /* ---------- CHARACTERISTICS ---------- */

    .eco-product-page
    .t-catalog__prod-popup__options {

        font: 400 14px/1.5 "TildaSans", Arial, sans-serif !important;

        color: #666666 !important;
    }


    /* ---------- CONSULTATION ---------- */

    .eco-product-page .eco-fast-consult {

        margin-top: 22px;
        margin-bottom: 32px;

        padding-top: 22px;
    }


    .eco-product-page .eco-fast-consult__head {

        margin-bottom: 14px;
    }


    .eco-product-page .eco-fast-consult__title {

        margin-bottom: 5px !important;

        font-size: 18px !important;

        letter-spacing: -.01em !important;
    }


    .eco-product-page .eco-fast-consult__subtitle {

        font-size: 15px !important;
    }


    .eco-product-page .eco-fast-consult__buttons {

        grid-template-columns: 1fr;

        gap: 8px;
    }


    .eco-product-page .eco-fast-consult__btn {

        min-height: 46px;

        padding: 10px 14px;

        border-radius: 9px;

        font-size: 15px !important;
    }


    /* ---------- ACCORDION TITLES ---------- */

    .eco-product-page
    .t-catalog__tabs__item-button,

    .eco-product-page
    .t-catalog__tabs__item-button *,

    .eco-product-page
    .js-catalog-tab-button {

        font-family: "TildaSans", Arial, sans-serif !important;

        font-size: 17px !important;
        line-height: 1.35 !important;
        font-weight: 500 !important;

        color: var(--eco-text-dark) !important;
    }


    /* ---------- ACCORDION CONTENT ---------- */

    .eco-product-page
    .t-catalog__tabs__content,
    .eco-product-page
    .t-catalog__tabs__content.t-desc,
    .eco-product-page
    .t-catalog__tabs__content.t-desc_xxs {

        font-size: 14px !important;
        line-height: 1.6 !important;
        font-weight: 400 !important;

        color: #444444 !important;
    }


    .eco-product-page
    .t-catalog__tabs__content strong,

    .eco-product-page
    .t-catalog__tabs__content b {

        font: inherit !important;

        font-weight: 600 !important;

        color: var(--eco-text-dark) !important;
    }


    /* ---------- RECOMMENDATIONS ---------- */

    .eco-product-page
    .t-catalog__relevants__title-wrapper {

        margin-top: 40px !important;
        margin-bottom: 26px !important;
    }


    .eco-product-page
    .t-catalog__relevants__title,
    .eco-product-page
    .t-catalog__relevants__title.t-uptitle,
    .eco-product-page
    .t-catalog__relevants__title.t-uptitle_xxl {

        margin: 0 !important;

        font-family: "TildaSans", Arial, sans-serif !important;

        font-size: 20px !important;
        line-height: 1.3 !important;
        font-weight: 600 !important;

        letter-spacing: -.01em !important;

        text-transform: none !important;

        color: var(--eco-text-dark) !important;
    }

}

/* =========================================================
   BREADCRUMBS
   Убираем в общем каталоге, оставляем в карточке товара
   ========================================================= */

/* Общий каталог — Desktop */
.js-catalog-cont-w-filter .t-catalog__breadcrumbs_desktop {
    display: none !important;
}

/* Общий каталог — Mobile */
.js-sidebar-filters .t-catalog__breadcrumbs_mobile {
    display: none !important;
}

/* Карточка товара — хлебные крошки оставляем */
.t-catalog__prod-popup__breadcrumbs {
    display: block !important;
}

.t-catalog__prod-popup__breadcrumbs .t-catalog__breadcrumbs {
    display: flex !important;
}

@media (max-width: 640px) {

    /* Контейнер кнопки фильтра */
    .t-catalog__filter__controls-wrapper {
        width: 100% !important;
    }

    /* Кнопка "Фильтры" на всю ширину */
    .js-catalog-filter-mob-btn {
        width: 100% !important;
        max-width: none !important;

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

        box-sizing: border-box !important;

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

        font-size: 15px !important;
        line-height: 1.2 !important;

        cursor: pointer;
    }

}