/*--------------------------------------------------------------
# Страница отдельного товара
--------------------------------------------------------------*/

.product-page {
    width: 100%;

    padding: 24px 0 60px;
}

/*--------------------------------------------------------------
# Hero товара
--------------------------------------------------------------*/

.product-page__hero {
    display: grid;
    grid-template-columns: 5fr 7fr;
    min-width: 0;
    margin-bottom: 24px;
    overflow: hidden;
    background: #fff;

    border: 1px solid #e8e8e8;
    border-radius: 16px;

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

/*--------------------------------------------------------------
# Изображение товара
--------------------------------------------------------------*/

.product-page__hero-image {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 0;
    min-height: 430px;

    padding: 40px;
    background: #fafafa;
    border-right: 1px solid #ececec;
    overflow: hidden;
}

.product-page__image {
    display: block;
    width: 100%;
    max-width: 100%;
    max-height: 370px;
    object-fit: contain;
    transition: transform .3s ease;
}

.product-page__hero:hover .product-page__image {
    transform: scale(1.015);
}

/*--------------------------------------------------------------
# Placeholder изображения
--------------------------------------------------------------*/

.product-page__image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    min-height: 300px;

    color: #cfcfcf;

    font-size: 64px;
}

/*--------------------------------------------------------------
# Контент Hero
--------------------------------------------------------------*/

.product-page__hero-content {
    display: flex;
    flex-direction: column;

    min-width: 0;

    padding: 40px;
}

/*--------------------------------------------------------------
# Заголовок товара
--------------------------------------------------------------*/

.product-page__title {
    position: relative;
    display: inline-block;

    width: fit-content;
    max-width: 100%;
    margin: 0 0 26px;
    padding-bottom: 12px;

    color: #222;

    font-size: 32px;
    font-weight: 600;
    line-height: 1.35;
}

.product-page__title::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: 0;

    width: 65px;
    height: 3px;
    background: #00743C;
    border-radius: 3px;
}

/*--------------------------------------------------------------
# Описание товара
--------------------------------------------------------------*/

.product-page__description {
    color: #666;

    font-size: 17px;
    line-height: 1.7;
}

.product-page__description p {
    margin-top: 0;
    margin-bottom: 14px;
}

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

.product-page__description ul,
.product-page__description ol {
    margin-top: 12px;
    margin-bottom: 16px;

    padding-left: 22px;
}

.product-page__description img {
    display: block;

    max-width: 100%;
    height: auto;

    margin: 16px 0;

    border-radius: 8px;
}

/*--------------------------------------------------------------
# Ссылка на внешний ресурс
--------------------------------------------------------------*/

.product-page__external-link {
    margin-top: 24px;
}

.product-page__external-link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    max-width: 100%;
    padding: 12px 18px;

    color: #00743C;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;

    background: #f4faf6;
    border: 1px solid #b9d6c5;
    border-radius: 10px;

    transition:
        color .2s ease,
        background-color .2s ease,
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

.product-page__external-link-button:hover {
    color: #005a2e;
    background: #eaf6ef;
    border-color: #00743C;
    box-shadow: 0 4px 12px rgba(0, 116, 60, .10);
    transform: translateY(-1px);
}

.product-page__external-link-button i {
    flex-shrink: 0;

    font-size: 13px;
}

/*--------------------------------------------------------------
# Нижняя часть Hero
--------------------------------------------------------------*/

.product-page__hero-bottom {
    margin-top: auto;
    padding-top: 32px;
}

/*--------------------------------------------------------------
# Цена
--------------------------------------------------------------*/

.product-page__price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 20px;
    background: #fbfbfb;
    border: 1px solid #ececec;
    border-radius: 12px;
}

.product-page__price-label {
    color: #666;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
}

.product-page__price-value {
    flex-shrink: 0;
    color: #8B0000;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

/*--------------------------------------------------------------
# Общая секция
--------------------------------------------------------------*/

.product-page__section {
    margin-top: 24px;
    padding: 32px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .02);
}

/*--------------------------------------------------------------
# Заголовок секции
--------------------------------------------------------------*/

.product-page__section-header {
    margin-bottom: 24px;
}

.product-page__section-title {
    position: relative;

    display: inline-block;

    margin: 0;
    padding-bottom: 9px;
    color: #00743C;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
}


.product-page__section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: #00743C;
    border-radius: 3px;
}

/*--------------------------------------------------------------
# Характеристики
--------------------------------------------------------------*/

.product-page__characteristics {
    overflow: hidden;

    border: 1px solid #d8e4dd;
    border-radius: 12px;
}


/*--------------------------------------------------------------
# Строка характеристики
--------------------------------------------------------------*/

.product-page__characteristic {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 30px;
    min-height: 54px;
    padding: 15px 18px;
    background: #ffffff !important;
    border-bottom: 1px solid #e1e9e4;
    transition: background-color .15s ease;
}

/*--------------------------------------------------------------
# Полосатость — каждая вторая строка
--------------------------------------------------------------*/

.product-page__characteristic:nth-child(even) {
    background: #f1f7f3 !important;
}

/*--------------------------------------------------------------
# Hover — немного темнее текущего фона
--------------------------------------------------------------*/

.product-page__characteristic:hover {
    background: #e5f0e9 !important;
}

/*--------------------------------------------------------------
# Последняя строка
--------------------------------------------------------------*/

.product-page__characteristic:last-child {
    border-bottom: none;
}

/*--------------------------------------------------------------
# Название характеристики
--------------------------------------------------------------*/

.product-page__characteristic-name {
    min-width: 0;
    color: #555;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
}

/*--------------------------------------------------------------
# Значение характеристики
--------------------------------------------------------------*/

.product-page__characteristic-value {
    min-width: 0;
    color: #222;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    text-align: right;
    overflow-wrap: anywhere;
}

/*--------------------------------------------------------------
# Галерея
--------------------------------------------------------------*/

.product-gallery {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 112px;
    gap: 16px;
    min-width: 0;
}

/*--------------------------------------------------------------
# Основное изображение галереи
--------------------------------------------------------------*/

.product-gallery__main {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 500px;
    padding: 32px;
    background: #fafafa;
    border: 1px solid #ececec;
    border-radius: 12px;
    overflow: hidden;
}


.product-gallery__main-image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 450px;
    object-fit: contain;
    transition: opacity .2s ease;
}

/*--------------------------------------------------------------
# Миниатюры
--------------------------------------------------------------*/

.product-gallery__thumbs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}


.product-gallery__thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 88px;
    padding: 7px;
    background: #fafafa;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    cursor: pointer;
    overflow: hidden;
    transition:
        background-color .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}


.product-gallery__thumb:hover {
    background: #f4faf6;
    border-color: #b9d6c5;
}


.product-gallery__thumb.is-active {
    background: #f4faf6;
    border: 2px solid #00743C;
    box-shadow: 0 0 0 2px rgba(0, 116, 60, .06);
}

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

/*--------------------------------------------------------------
# Видео
--------------------------------------------------------------*/

.product-videos {
    display: grid;

    grid-template-columns: 1fr;

    gap: 28px;
}


.product-video {
    min-width: 0;
}


.product-video__title {
    margin: 0 0 14px;

    color: #333;

    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}


.product-video__wrapper {
    position: relative;

    width: 100%;

    padding-top: 56.25%;

    overflow: hidden;

    background: #111;

    border-radius: 12px;

    box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
}


.product-video__wrapper iframe {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    border: 0;
}


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

@media (max-width: 991px) {

    .product-page__hero {
        grid-template-columns: 1fr 1fr;
    }


    .product-page__hero-image {
        min-height: 360px;

        padding: 30px;
    }


    .product-page__image {
        max-height: 310px;
    }


    .product-page__hero-content {
        padding: 30px;
    }


    .product-page__title {
        font-size: 28px;
    }


    .product-gallery {
        grid-template-columns: minmax(0, 1fr) 96px;
    }


    .product-gallery__main {
        min-height: 420px;
    }


    .product-gallery__thumb {
        height: 76px;
    }

}


/*--------------------------------------------------------------
# Mobile
--------------------------------------------------------------*/

@media (max-width: 768px) {

    .product-page {
        padding: 20px 0 40px;
    }


    /*----------------------------------------------------------
       Hero
    ----------------------------------------------------------*/

    .product-page__hero {
        display: block;

        margin-bottom: 16px;
    }


    .product-page__hero-image {
        min-height: 280px;

        padding: 24px;

        border-right: none;
        border-bottom: 1px solid #ececec;
    }


    .product-page__image {
        max-height: 250px;
    }


    .product-page__hero-content {
        padding: 24px 20px;
    }


    .product-page__title {
        margin-bottom: 20px;

        font-size: 24px;
    }


    .product-page__description {
        font-size: 16px;
    }


    /*----------------------------------------------------------
       Внешняя ссылка
    ----------------------------------------------------------*/

    .product-page__external-link {
        margin-top: 20px;
    }


    .product-page__external-link-button {
        width: 100%;
    }


    /*----------------------------------------------------------
       Цена
    ----------------------------------------------------------*/

    .product-page__hero-bottom {
        padding-top: 24px;
    }


    .product-page__price {
        padding: 16px;
    }


    .product-page__price-value {
        font-size: 25px;
    }


    /*----------------------------------------------------------
       Sections
    ----------------------------------------------------------*/

    .product-page__section {
        margin-top: 16px;

        padding: 24px 20px;
    }


    .product-page__section-header {
        margin-bottom: 20px;
    }


    .product-page__section-title {
        font-size: 20px;
    }


    /*----------------------------------------------------------
       Characteristics
    ----------------------------------------------------------*/

    .product-page__characteristic {
        grid-template-columns: 1fr;

        gap: 4px;

        min-height: auto;

        padding: 13px 15px;
    }


    .product-page__characteristic-name,
    .product-page__characteristic-value {
        font-size: 15.5px;
    }


    .product-page__characteristic-value {
        text-align: left;
    }


    /*----------------------------------------------------------
       Gallery
    ----------------------------------------------------------*/

    .product-gallery {
        display: flex;
        flex-direction: column;

        gap: 12px;
    }


    .product-gallery__main {
        min-height: 300px;

        padding: 20px;
    }


    .product-gallery__main-image {
        max-height: 280px;
    }


    .product-gallery__thumbs {
        display: grid;

        grid-template-columns: repeat(4, 1fr);

        gap: 8px;
    }


    .product-gallery__thumb {
        height: 70px;
    }


    /*----------------------------------------------------------
       Video
    ----------------------------------------------------------*/

    .product-videos {
        gap: 22px;
    }


    .product-video__title {
        font-size: 17px;
    }

}


/*--------------------------------------------------------------
# Маленькие мобильные
--------------------------------------------------------------*/

@media (max-width: 480px) {

    .product-page__hero-image {
        min-height: 240px;

        padding: 20px;
    }


    .product-page__image {
        max-height: 210px;
    }


    .product-page__hero-content {
        padding: 22px 18px;
    }


    .product-page__title {
        font-size: 22px;
    }


    .product-page__price {
        align-items: flex-start;

        flex-direction: column;

        gap: 6px;
    }


    .product-page__section {
        padding: 20px 16px;
    }


    .product-gallery__thumbs {
        grid-template-columns: repeat(3, 1fr);
    }


    .product-gallery__thumb {
        height: 64px;
    }

}
