

/* Start:/local/templates/izzi/components/bitrix/catalog.element/product/style.css?17679641388179*/
/**
 * Дополнительные стили для компонента catalog.element (product)
 * Основные стили находятся в глобальных SCSS файлах проекта
 * Здесь только специфичные для Bitrix стили
 */

/* Статусы кнопок при добавлении в корзину */
.product-hero__cart-btn--loading {
    opacity: 0.7;
    cursor: wait;
}

.product-hero__cart-btn--success {
    background-color: #00A9A7 !important;
}

.product-hero__cart-btn--error {
    background-color: #EF6150 !important;
}

.product-hero__cart-btn--disabled {
    background-color: #9A9A9A !important;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Thumbnails */
.product-hero__thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

/* Активная миниатюра */
.product-hero__thumb--active {
    border-color: #EF6150 !important;
    opacity: 1 !important;
}

.product-hero__thumb {
    width: 48px;
    height: 48px;
    border: 2px solid transparent;
    transition: border-color 0.2s, opacity 0.2s;
    cursor: pointer;
    opacity: 0.6;
    padding: 0;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-hero__thumb:hover {
    opacity: 1;
}

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

/* Активный цвет */
.product-hero__color--active {
    border-color: #EF6150;
}

.product-hero__color {
    border: 2px solid transparent;
    transition: border-color 0.2s;
    cursor: pointer;
    display: inline-block;
}

.product-hero__color:hover {
    border-color: #EE2375;
}

/* Вкладки */
.product-details__tab--active {
    color: #EF6150;
    border-bottom-color: #EF6150;
}

/* На десктопе все панели видны, табы скрыты */
.product-details__column {
    display: block;
}

.product-details__tabs {
    display: none;
}

/* На мобильной версии табы работают */
@media (max-width: 767px) {
    .product-details__tabs {
        display: flex;
    }

    .product-details__column {
        display: none;
    }

    .product-details__column.is-active {
        display: block;
    }
}

/* Видео модальное окно */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    cursor: pointer;
}

.video-modal__content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    z-index: 1;
}

.video-modal__close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.video-modal__close:hover {
    color: #EF6150;
}

.video-modal__video {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-modal__video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Предотвращаем прокрутку при открытом модальном окне */
body.modal-open {
    overflow: hidden;
}

/* Избранное - активное состояние */
.product-hero__favorite-btn.is-favorite {
    color: #EE2375;
}

.product-hero__favorite-btn.is-favorite svg path {
    fill: #EE2375;
    stroke: #EE2375;
}

/* Счетчики */
[data-cart-count],
[data-favorites-count] {
    display: none;
}

[data-cart-count].is-visible,
[data-favorites-count].is-visible {
    display: inline-block;
}

/* Отзывы - декор */
.reviews__decor-icon {
    position: absolute;
    bottom: 20px;
    left: 20px;
    opacity: 0.3;
}

.reviews__decor-icon--right {
    left: auto;
    right: 20px;
}

/* Адаптивность для слайдеров */
@media (max-width: 767px) {
    .video-modal__content {
        width: 95%;
    }

    .video-modal__close {
        top: -35px;
        font-size: 30px;
    }
}

/* Swiper navigation buttons */
.product-hero__nav {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    transition: opacity 0.2s;
}

.product-hero__nav:hover {
    opacity: 0.7;
}

.product-hero__nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Рейтинг отзывов */
.reviews__rating svg {
    display: block;
}

/* Инструкции */
.product-details__instruction {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 46px;
}

.product-details__instruction:last-of-type {
    margin-bottom: 0;
}

.product-details__instruction img {
    max-width: 100%;
    height: auto;
}

.product-details__instruction--full {
    width: auto;
    max-width: 260px;
}

.product-details__instruction--full img {
    width: auto;
    max-width: 100%;
}

.product-details__instruction-label {
    font-family: var(--font-family-base);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    color: #2E2E22;
}

/* Сертификаты */
.product-details__certificates {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.product-details__certificates img {
    max-width: 100%;
    height: auto;
}

.product-details__certificates a {
    transition: opacity 0.2s;
}

.product-details__certificates a:hover {
    opacity: 0.8;
}

/* Видео-инструкция внутри вкладки */
.product-details__instruction-video {
    margin-top: 32px;
}

.product-details__instruction-video .instruction-video__card {
    display: block;
    max-width: 400px;
    text-decoration: none;
}

.product-details__instruction-video .instruction-video__image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
}

.product-details__instruction-video .instruction-video__image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.product-details__instruction-video .instruction-video__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease;
}

.product-details__instruction-video .instruction-video__card:hover .instruction-video__play {
    transform: translate(-50%, -50%) scale(1.1);
}

.product-details__instruction-video .instruction-video__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #102330;
    margin: 0;
}

@media (max-width: 767px) {
    .product-details__instruction-video .instruction-video__title {
        font-size: 14px;
    }

    .product-details__instruction-video .instruction-video__play svg {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 1450px) {
    .product-details__instruction {
        margin-bottom: 0;
    }

    .product-details__certificates {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        gap: 16px;
    }
}

/* Пустое состояние галереи */
.product-hero__slide img {
    width: 100%;
    height: auto;
    display: block;
}

/* Swiper lazy loading */
.product-hero__slide {
    position: relative;
    min-height: 300px;
}

.swiper-lazy-preloader {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin-left: -20px;
    margin-top: -20px;
    border: 3px solid #E5E5E5;
    border-top-color: #EF6150;
    border-radius: 50%;
    animation: swiper-preloader-spin 0.8s linear infinite;
    z-index: 10;
}

@keyframes swiper-preloader-spin {
    100% {
        transform: rotate(360deg);
    }
}

.swiper-lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

.swiper-lazy-loaded {
    opacity: 1;
}

/* End */
/* /local/templates/izzi/components/bitrix/catalog.element/product/style.css?17679641388179 */
