.product-gallery__item--video{position:relative;overflow:hidden;aspect-ratio:1/1;background:#000}
.product-gallery__video-poster{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;object-position:center}
.product-gallery__item--video .product-gallery__play{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.5);border:none;cursor:pointer}
.product-gallery__item--video .product-gallery__play-icon{width:73px;height:73px;background-image:url(../images/play_button.svg);background-size:contain;background-repeat:no-repeat}
.product-media-modal--video .product-media-modal__content{width:80vw;max-width:1280px;height:80vh;max-height:720px;display:flex}
.product-media-modal--video .product-media-modal__inner{width:100%;height:100%}
.product-media-modal__inner iframe{width:100%;height:100%;border:none;border-radius:26px}

.product-gallery__item[data-slide-index]:not(.product-gallery__item--video){cursor:zoom-in}

/* Единственное изображение — центрируем в двухколоночной сетке, ширину сохраняем как у одной колонки */
.product-gallery__grid > .product-gallery__item:only-child{grid-column:1 / -1;justify-self:center;width:calc(50% - 10px)}

/* === Кнопки попапа (close + prev/next): прозрачный фон, белая обводка и иконка === */

/* Стрелки prev/next */
.product-media-modal__nav{display:none;position:absolute;top:50%;transform:translateY(-50%);width:48px;height:48px;border-radius:50%;background:transparent;border:2px solid rgba(255,255,255,.92);cursor:pointer;z-index:3;align-items:center;justify-content:center;transition:border-color .15s ease}
.product-media-modal__nav:hover{background:transparent;border-color:rgba(255,255,255,1)}
.product-media-modal__nav::before{content:'';width:12px;height:12px;border-top:2px solid rgba(255,255,255,.92);border-left:2px solid rgba(255,255,255,.92);display:block;transition:border-color .15s ease}
.product-media-modal__nav:hover::before{border-top-color:rgba(255,255,255,1);border-left-color:rgba(255,255,255,1)}
.product-media-modal__nav--prev{left:-72px}
.product-media-modal__nav--next{right:-72px}
.product-media-modal__nav--prev::before{transform:rotate(-45deg);margin-left:4px}
.product-media-modal__nav--next::before{transform:rotate(135deg);margin-right:4px}
.product-media-modal--image .product-media-modal__nav{display:flex}

/* Крестик в режиме картинки: тот же стиль (прозрачный, белая обводка/иконка),
   на десктопе — снаружи попапа справа сверху (как стрелки — снаружи) */
.product-media-modal--image .product-media-modal__close{top:0;right:-70px;width:48px;height:48px;border:2px solid rgba(255,255,255,.92);border-radius:50%;background:transparent;z-index:4;transition:border-color .15s ease}
.product-media-modal--image .product-media-modal__close:hover{background:transparent;border-color:rgba(255,255,255,1)}
.product-media-modal--image .product-media-modal__close span{display:none}
.product-media-modal--image .product-media-modal__close::before,
.product-media-modal--image .product-media-modal__close::after{content:'';position:absolute;width:18px;height:2px;background:rgba(255,255,255,.92);top:50%;left:50%;transition:background .15s ease}
.product-media-modal--image .product-media-modal__close::before{transform:translate(-50%,-50%) rotate(45deg)}
.product-media-modal--image .product-media-modal__close::after{transform:translate(-50%,-50%) rotate(-45deg)}
.product-media-modal--image .product-media-modal__close:hover::before,
.product-media-modal--image .product-media-modal__close:hover::after{background:rgba(255,255,255,1)}

/* Попап-режим: переносим мобильный слайдер (тот же Swiper) в .product-media-modal__inner */
.product-media-modal--image .product-media-modal__content{width:90vw;max-width:1200px;height:90vh;max-height:900px;display:flex;padding:24px 24px 40px}
.product-media-modal--image .product-media-modal__inner{width:100%;height:100%;display:flex;align-items:center;justify-content:center}
.product-media-modal--image .product-gallery__slider{display:block!important;width:100%;height:100%;margin:0;position:relative}
.product-media-modal--image .product-gallery__slider .swiper{width:100%;height:100%;overflow:hidden}
.product-media-modal--image .product-gallery__slider .swiper-wrapper{height:100%;align-items:center}
.product-media-modal--image .product-gallery__slider .swiper-slide{width:100%!important;max-width:100%;height:100%!important;margin:0!important;border-radius:0;background:transparent;display:flex;align-items:center;justify-content:center;aspect-ratio:auto;flex-shrink:0}
.product-media-modal--image .product-gallery__slider .product-gallery__item picture{display:flex;align-items:center;justify-content:center;width:100%;height:100%}
.product-media-modal--image .product-gallery__slider .product-gallery__image{width:auto!important;height:auto!important;max-width:100%;max-height:100%;object-fit:contain;border-radius:0}
.product-media-modal--image .product-gallery__slider .product-gallery__item--video{position:relative;background:transparent;width:100%;height:100%;overflow:hidden;display:flex;align-items:center;justify-content:center;border-radius:0}
.product-media-modal--image .product-gallery__slider .product-gallery__video-poster{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
/* iframe пропорции 16:9 — над и под ним остаются чёрные поля,
   на которых работает свайп Swiper (iframe сам перехватывает тач-события) */
.product-media-modal--image .product-gallery__slider .product-gallery__item--video iframe{width:100%;max-width:100%;aspect-ratio:16/9;max-height:100%;border:0;display:block;background:#000;border-radius:12px}
.product-media-modal--image .product-gallery__slider-pagination{display:flex!important;justify-content:center;align-items:center;gap:4px;position:absolute;left:0;right:0;bottom:-22px;z-index:2}
.product-media-modal--image .product-gallery__slider-pagination .swiper-pagination-bullet{background-color:rgba(255,255,255,.5)}
.product-media-modal--image .product-gallery__slider-pagination .swiper-pagination-bullet-active{background-color:rgba(255,255,255,1)}

@media (max-width:1100px){
    .product-media-modal--image .product-media-modal__close{top:52px;right:12px}
}
@media (max-width:600px){
    .product-media-modal--image .product-media-modal__content{width:100vw;height:100vh;max-width:none;max-height:none;padding:16px 16px 32px}
    /* На мобиле — только свайп, без стрелок */
    .product-media-modal--image .product-media-modal__nav{display:none}
}

.product-tabs__description-header{font-size:20px;font-weight:700;margin:0 0 16px;line-height:130%;color:#2f3334}

.product-tabs__text h1{font-size:24px;font-weight:700;margin:24px 0 12px;line-height:130%}
.product-tabs__text h2{font-size:20px;font-weight:700;margin:20px 0 10px;line-height:130%}
.product-tabs__text h3{font-size:17px;font-weight:700;margin:16px 0 8px;line-height:140%}
.product-tabs__text h4{font-size:15px;font-weight:700;margin:14px 0 6px;line-height:140%}
.product-tabs__text p{margin:0 0 12px;line-height:150%}
.product-tabs__text ul,.product-tabs__text ol{margin:0 0 12px;padding-left:20px}
.product-tabs__text li{margin-bottom:6px;line-height:150%}
.product-tabs__text img{max-width:100%;height:auto;border-radius:8px;margin:12px 0}
.product-tabs__text a{color:#f81029;text-decoration:underline}
.product-tabs__text a:hover{text-decoration:none}
.product-tabs__text table{width:100%;border-collapse:collapse;margin:12px 0}
.product-tabs__text th,.product-tabs__text td{padding:8px 12px;border-bottom:1px solid #e5e5e5;text-align:left;font-size:14px}
.product-tabs__text th{font-weight:700}
.product-tabs__text blockquote{margin:12px 0;padding:12px 20px;border-left:3px solid #f81029;background:#f5f6f8;border-radius:0 8px 8px 0}
.product-tabs__text hr{border:none;border-top:1px solid #e5e5e5;margin:20px 0}
.product-tabs__text>:first-child{margin-top:0}
.product-tabs__text>:last-child{margin-bottom:0}

.breadcrumbs {display: block !important;}