/* overflow-x:hidden на html/body (reset) ломает sticky — на PDP ослабляем */
@media (min-width: 768px) {
    html:has(body.product-page-pdp),
    body.product-page-pdp {
        overflow-x: clip;
    }
}

@supports not (overflow: clip) {
    @media (min-width: 768px) {
        html:has(body.product-page-pdp),
        body.product-page-pdp {
            overflow-x: visible;
        }
    }
}

/* Галерея без отдельного scroll-box; правая панель — sticky */
@media (min-width: 768px) {
    .product-top-row {
        align-items: flex-start !important;
    }
    #product-gallery {
        overflow: visible;
        max-height: none;
    }
    .product-top-row > [class*="col-md-4"].product-info-sticky {
        position: -webkit-sticky;
        position: sticky;
        top: 70px;
        align-self: flex-start;
    }
}

/* Краткое описание: единый размер шрифта, форматирование из TinyMCE сохраняется */
.description-wrapper .description-text,
.description-wrapper .description-text * {
    font-size: 12px !important;
    line-height: 1.6;
}

.description-wrapper .description-text p {
    display: inline;
    margin: 0;
}

.description-wrapper .description-text p + p::before {
    content: " ";
}

.description-wrapper .description-text strong,
.description-wrapper .description-text b {
    font-weight: 600;
}

.description-wrapper .description-text em,
.description-wrapper .description-text i {
    font-style: italic;
}

.description-wrapper .description-text u {
    text-decoration: underline;
}

.description-wrapper .description-text :is(h1, h2, h3, h4, h5, h6) {
    font-size: 12px !important;
    margin: 0;
    display: inline;
}

.description-wrapper .description-text [style*="font-weight: bold"],
.description-wrapper .description-text [style*="font-weight:bold"],
.description-wrapper .description-text [style*="font-weight: 700"],
.description-wrapper .description-text [style*="font-weight:700"] {
    font-weight: 600 !important;
}

.description-text {
    display: inline;
    max-height: 12em;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.description-text.expanded {
    max-height: none;
}

/* Скрыть Swiper элементы на десктопе только в галерее товара */
@media (min-width: 768px) {
    .product-gallery-swiper .swiper-slide,
    .product-gallery-swiper .swiper-slide-active {
        display: none;
    }
}

/* Mobile: лайтбокс по тапу на слайд (кнопка zoom убрана) */
@media (min-width: 768px) {
    .product-gallery-mobile-zoom {
        display: none !important;
    }
}

/* Mobile gallery carousel */
@media (max-width: 767px) {
    /* Hide desktop gallery, show mobile carousel */
    .desktop-gallery {
        display: none;
    }
    
    .mobile-gallery {
        display: block;
    }
    
    /* Mobile Swiper styles — пропорции 3:4 */
    .product-gallery-swiper {
        width: 100%;
        height: auto;
    }
    
    .product-gallery-swiper .swiper-slide {
        width: 100%;
        aspect-ratio: 3 / 4;
        cursor: zoom-in;
    }
    
    .product-gallery-swiper .swiper-slide img,
    .product-gallery-swiper .swiper-slide video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .product-gallery-swiper .swiper-pagination {
        bottom: 10px;
    }
    
    .product-gallery-swiper .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
        background: rgba(255, 255, 255, 0.5);
        opacity: 1;
    }
    
    .product-gallery-swiper .swiper-pagination-bullet-active {
        background: #fff;
    }

    .product-gallery-swiper {
        position: relative;
    }

    .mobile-gallery--pdp {
        position: relative;
    }

    /* Кнопка zoom убрана — открытие лайтбокса по тапу на слайд */
    .product-gallery-mobile-zoom {
        display: none !important;
    }

    .mobile-gallery--pdp .product-gallery-pagination {
        display: none;
    }

    .mobile-gallery--pdp.mobile-gallery--multi .product-gallery-pagination {
        display: block;
    }

    .mobile-gallery--pdp .product-gallery-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 5;
        width: 40px;
        height: 40px;
        margin: 0;
        border: none;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.92);
        color: #111;
        display: none;
        align-items: center;
        justify-content: center;
        padding: 0;
        box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12);
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-gallery--pdp.mobile-gallery--multi .product-gallery-arrow {
        display: flex;
    }

    .mobile-gallery--pdp .product-gallery-arrow svg {
        width: 20px;
        height: 20px;
    }

    .mobile-gallery--pdp .product-gallery-arrow-prev {
        left: 8px;
    }

    .mobile-gallery--pdp .product-gallery-arrow-next {
        right: 8px;
    }

    .mobile-gallery--pdp .product-gallery-arrow.swiper-button-disabled {
        opacity: 0.35;
        pointer-events: none;
    }
}

/* Desktop: единая SSR-галерея (mobile-gallery--ssr) как CSS grid */
@media (min-width: 992px) {
    .mobile-gallery--ssr,
    .mobile-gallery--ssr .product-gallery-swiper {
        display: block !important;
        overflow: visible !important;
        height: auto !important;
    }
    .mobile-gallery--ssr .swiper-wrapper {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 !important;
        transform: none !important;
        width: 100% !important;
    }
    .mobile-gallery--ssr .swiper-slide {
        display: block !important;
        width: auto !important;
        max-width: none !important;
        height: auto !important;
        aspect-ratio: auto;
        margin: 0 !important;
        line-height: 0;
        min-width: 0;
        cursor: zoom-in;
    }
    .mobile-gallery--ssr .swiper-slide.full-width-media {
        grid-column: 1 / -1;
    }
    .mobile-gallery--ssr .swiper-slide img,
    .mobile-gallery--ssr .swiper-slide video {
        width: 100%;
       
        object-fit: cover;
        display: block;
        pointer-events: auto !important;
        cursor: zoom-in !important;
    }
    .mobile-gallery--ssr .product-gallery-pagination,
    .mobile-gallery--ssr .product-gallery-arrow {
        display: none !important;
    }
    /* Legacy desktop-gallery больше не используется на PDP */
    .desktop-gallery {
        display: none !important;
    }
}

/* Improve fonts and spacing */
.gender-item {
    color: #000 !important;
    font-weight: 500;
    text-transform: uppercase;
}

.gender-item.active {
    font-weight: 600;
}

/* Ярче хлебные крошки */
.f-color-breadcrumb-gray {
    color: #333 !important;
    font-weight: 500;
}

/* Modern Product Cards */
.related-products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* всегда 4 колонки на десктопе */
    gap: 0.2rem;
    padding: 0 1rem;
}

.product-card-modern {
    background: transparent;
    border: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.desktop-gallery .full-width-media {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
}

.full-width-media img,
.full-width-media video {
    width: 100%;
    display: block;
}

/* Лайтбокс (только для оверлея, без изменения стилей галереи) */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 24px;
}

.lightbox-overlay.open {
    display: block;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
}

.lightbox-content {
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.lightbox-main img {
    max-width: 95vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 6px;
}

.lightbox-thumbs img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 4px;
    opacity: 0.6;
    cursor: pointer;
    border: 2px solid transparent;
}

.lightbox-thumbs img.active {
    opacity: 1;
    border-color: #fff;
}

.lightbox-thumbs .lightbox-thumb {
    border-radius: 4px;
    opacity: 0.6;
    cursor: pointer;
    border: 2px solid transparent;
    flex-shrink: 0;
    box-sizing: border-box;
}

.lightbox-thumbs .lightbox-thumb.active {
    opacity: 1;
    border-color: #fff;
}

.lightbox-thumbs img.lightbox-thumb {
    width: 64px;
    height: 64px;
    object-fit: cover;
}

.lightbox-thumbs .lightbox-thumb--video {
    width: 64px;
    height: 64px;
    background: #2a2a2a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center/42% no-repeat;
}

.lightbox-overlay.lightbox-overlay--mobile {
    padding: 0;
}

.lightbox-overlay.lightbox-overlay--mobile.open {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    touch-action: none;
}

/* Первый экран: фото + thumbs по центру высоты */
.lightbox-overlay.lightbox-overlay--mobile .lightbox-content {
    width: 100%;
    min-height: 100%;
    max-height: 100%;
    padding: 0;
    padding-bottom: 0;
    gap: 12px;
    justify-content: center;
    box-sizing: border-box;
}

.lightbox-overlay.lightbox-overlay--mobile .lightbox-main {
    overflow: hidden;
    width: 100%;
    flex: 1 1 auto;
    height: calc(100dvh - 72px);
    max-height: none;
    min-height: 0;
    align-items: stretch;
    justify-content: stretch;
    touch-action: none;
}

/* Фото как видео: cover на весь экран просмотрщика, без «полей» под chrome */
.lightbox-overlay.lightbox-overlay--mobile .lightbox-main img.zoom-fit {
    max-width: none;
    max-height: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    touch-action: none;
    cursor: grab;
    will-change: transform;
    transition: none;
    transform-origin: 0 0;
    border-radius: 0;
}

/* При pinch не меняем размеры img (иначе «убегает» фокус) — только chrome */
.lightbox-overlay.lightbox-overlay--mobile.is-zoomed .lightbox-main {
    overflow: visible;
}

.lightbox-overlay.lightbox-overlay--mobile.is-zoomed .lightbox-main img.zoom-fit {
    border-radius: 0;
}

.lightbox-overlay.lightbox-overlay--mobile .lightbox-main img.zoom-fit.is-pinch-resetting {
    transition: transform 0.18s ease-out;
}

.lightbox-overlay.lightbox-overlay--mobile .lightbox-main video.lightbox-main-video.zoom-fit {
    max-width: none;
    max-height: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    touch-action: auto;
    cursor: default;
}

.lightbox-overlay.lightbox-overlay--mobile .lightbox-thumbs {
    position: static;
    transform: none;
    left: auto;
    bottom: auto;
    gap: 6px;
    padding: 6px 10px;
    max-width: calc(100% - 24px);
    flex-shrink: 0;
}

.lightbox-overlay.lightbox-overlay--mobile .lightbox-thumbs img.lightbox-thumb,
.lightbox-overlay.lightbox-overlay--mobile .lightbox-thumbs .lightbox-thumb--video {
    width: 48px;
    height: 48px;
}

.lightbox-main video.lightbox-main-video.zoom-fit {
    display: block;
    max-width: 95vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    cursor: default;
}

.lightbox-close-desktop {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10002;
}

.lightbox-close-desktop:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Разрешаем клики по изображениям единой галереи (лайтбокс) */
.mobile-gallery--ssr .swiper-slide img,
.mobile-gallery--ssr .swiper-slide video,
.desktop-gallery img.no-interact {
    pointer-events: auto !important;
    cursor: zoom-in !important;
}

.desktop-gallery img {
    cursor: zoom-in !important;
}

.desktop-gallery video {
    cursor: zoom-in !important;
}

/* Лайтбокс */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: flex-start;
    justify-content: flex-start;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 10000;
    padding: 24px;
}

.lightbox-content {
    position: relative;
    max-width: none;
    max-height: none;
    width: 100%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding-bottom: 110px;
}

.lightbox-main img {
    display: block;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-main img.zoom-fit {
    max-width: 95vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    cursor: zoom-in;
}

.lightbox-main img.zoom-full {
    max-width: none;
    max-height: none;
    /* Оригинал (не _pdp800) на всю ширину — без боковых полей */
    width: 100vw;
    height: auto;
    border-radius: 0;
    cursor: zoom-out;
}

/* Макс. зум (клик desktop / pinch mobile): без «рамки» — padding и скругления уходят */
.lightbox-overlay.is-zoomed {
    padding: 0 !important;
    background: #000;
    /* Чёрный трек скролла справа не нужен — скролл остаётся, полоса скрыта */
    scrollbar-width: none;
}

.lightbox-overlay.is-zoomed::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.lightbox-overlay.is-zoomed .lightbox-content {
    padding-bottom: 0;
    gap: 0;
    width: 100%;
}

.lightbox-overlay.is-zoomed .lightbox-main {
    width: 100%;
    align-items: flex-start;
    justify-content: center;
}

.lightbox-overlay.is-zoomed .lightbox-main img,
.lightbox-overlay.is-zoomed .lightbox-main video.lightbox-main-video {
    border-radius: 0;
}

.lightbox-overlay.is-zoomed .lightbox-thumbs {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.lightbox-overlay:not(.is-zoomed) .lightbox-thumbs {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-main {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    flex-shrink: 0;
}

.lightbox-close-mobile {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10002;
    font-size: 18px;
    line-height: 1;
}

.lightbox-close-mobile:hover {
    background: rgba(0, 0, 0, 0.85);
}

.lightbox-overlay.lightbox-overlay--mobile .lightbox-close-mobile {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 36px);
    right: 14px;
    z-index: 10003;
}

.lightbox-overlay.lightbox-overlay--mobile .lightbox-close-desktop {
    display: none !important;
}

.lightbox-overlay:not(.lightbox-overlay--mobile) .lightbox-close-mobile {
    display: none !important;
}

.lightbox-thumbs {
    position: fixed;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: row;
    gap: 8px;
    max-width: 90vw;
    overflow-x: auto;
    overflow-y: hidden;
    background: rgba(0, 0, 0, 0.45);
    padding: 10px 12px;
    border-radius: 12px;
    z-index: 10001;
}

.lightbox-thumbs img {
    width: 70px;
    height: 70px;
    object-fit: cover;
}

@media (max-width: 768px) {
    .lightbox-thumbs {
        position: static;
        transform: none;
        flex-direction: row;
        max-width: 100%;
        max-height: 120px;
        background: rgba(0,0,0,0.35);
    }
}

/* Удалён дубль .lightbox-overlay — см. блок выше (overflow-y: auto). */

/* Lightbox for desktop gallery */
.image-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 24px;
}

.image-lightbox.open {
    display: flex;
}

.image-lightbox__content {
    max-width: 96vw;
    max-height: 96vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.image-lightbox__main {
    max-width: 96vw;
    max-height: 80vh;
}

.image-lightbox__main img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.image-lightbox__thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px;
}

.image-lightbox__thumbs img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 4px;
    opacity: 0.6;
    cursor: pointer;
    border: 2px solid transparent;
}

.image-lightbox__thumbs img.active {
    opacity: 1;
    border-color: #fff;
}

.image-lightbox__close,
.image-lightbox__prev,
.image-lightbox__next {
    position: absolute;
    top: 16px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.image-lightbox__close { right: 16px; }

.image-lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }

.image-lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }

.image-lightbox__close:hover,
.image-lightbox__prev:hover,
.image-lightbox__next:hover {
    background: rgba(0,0,0,0.8);
}

/* Lightbox for full-size images */
.image-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.image-lightbox img {
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    border-radius: 4px;
}

.image-lightbox__close,
.image-lightbox__prev,
.image-lightbox__next {
    position: absolute;
    top: 16px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.favorite-btn-modern {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 10;
    background: rgba(0, 0, 0, 0.8);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    opacity: 1;
    transform: scale(1);
}

.favorite-btn-modern:hover {
    background: #dc3545;
    transform: scale(1.1);
}

.favorite-btn-modern svg {
    color: #fff;
    transition: color 0.2s ease;
}

.product-link-modern {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-image-container-modern {
    position: relative;
    overflow: hidden;
    aspect-ratio: 9/16;
    background: #f8f8f8;
}

.product-image-modern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top; /* не обрезать сверху */
    transition: all 0.4s ease;
}

.product-image-modern.additional-image {
    opacity: 0;
    transform: scale(1.05);
}

.product-image-container-modern img.product-image-modern,
.product-image-container-modern video.product-image-modern {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-card-modern:hover .product-image-modern.main-image {
    opacity: 0;
}

.product-card-modern:hover .product-image-modern.additional-image:first-of-type {
    opacity: 1;
    transform: scale(1);
}

.product-info-modern {
    padding: 12px 0;
    background: transparent;
}

.product-title-modern {
    font-size: 12px;
    line-height: 1.4;
    margin: 0 0 4px 0;
    color: #000;
    font-weight: 500;
}

.product-price-modern {
    font-size: 12px;
    font-weight: 600;
    color: #000;
}

.add-to-cart-btn-modern {
    background: #000;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.add-to-cart-btn-modern:hover {
    background: #333;
    transform: scale(1.1);
}

.add-to-cart-btn-modern svg {
    color: #fff;
    transition: color 0.2s ease;
}

.cart-btn-compact {
    border-radius: 0 !important;
    height: 55px !important;
    width: 220px;
    max-width: 100%;
}

.color-options-modern {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.product-card-modern:hover .color-options-modern {
    opacity: 1;
    transform: translateY(0);
}

.color-swatches-modern {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.color-swatch-modern {
    width: 20px;
    height: 20px;
    border-radius: 0;
    border: 1px solid #e5e5e5;
    cursor: pointer;
    transition: all 0.15s ease;
}

.color-swatch-modern:hover {
    border-color: #333;
    transform: scale(1.1);
}

.color-more-modern {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #f8f9fa;
    border-radius: 50%;
    border: 1px solid #e9ecef;
    font-size: 0.7rem;
    color: #666;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .related-products-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        padding: 0 1rem;
        -webkit-overflow-scrolling: touch;
    }
    
    .product-card-modern {
        flex: 0 0 280px; /* фиксированная ширина для карусели */
        scroll-snap-align: start;
    }
    
    .product-card-modern:hover {
        transform: none; /* убираем подъем на мобиле */
    }
    

    
    .color-options-modern {
        opacity: 1; /* всегда видны на мобиле */
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .product-card-modern {
        flex: 0 0 260px; /* меньше на маленьких экранах */
    }
}

.produc-title {
    font-weight: 500;
    font-size: 1.8rem;
}

.product-gallery__price {
    font-size: 1.2rem;
    font-weight: 500;
}

/* Стилизация скроллбара для таблицы размеров */
.table-responsive {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.3) transparent;
}

.table-responsive::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.table-responsive::-webkit-scrollbar-track {
    background: transparent;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
    transition: background 0.2s ease;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.5);
}

.table-responsive::-webkit-scrollbar-corner {
    background: transparent;
}

/* Убираем стрелки на концах скроллбара (WebKit) */
.table-responsive::-webkit-scrollbar-button:start:decrement,
.table-responsive::-webkit-scrollbar-button:end:increment,
.table-responsive::-webkit-scrollbar-button:single-button,
.table-responsive::-webkit-scrollbar-button:horizontal,
.table-responsive::-webkit-scrollbar-button:vertical {
    width: 0;
    height: 0;
    display: none;
}

/* Улучшаем UX перетаскивания */
.size-chart-scroll {
    cursor: grab;
    -webkit-overflow-scrolling: touch;
}

.size-chart-scroll:active {
    cursor: grabbing;
}

/* Таблица размеров: первый столбец закреплён, горизонтально крутятся только остальные */
#sizeChartOffcanvas .size-chart-sticky-first-col {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

#sizeChartOffcanvas .size-chart-sticky-first-col table {
    border-collapse: separate;
    border-spacing: 0;
}

#sizeChartOffcanvas .size-chart-sticky-first-col thead th:first-child,
#sizeChartOffcanvas .size-chart-sticky-first-col tbody td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    min-width: 3.25rem;
    border-right: 1px solid var(--bs-border-color, #dee2e6);
    box-shadow: 4px 0 8px -4px rgba(0, 0, 0, 0.12);
}

#sizeChartOffcanvas .size-chart-sticky-first-col thead th:first-child {
    z-index: 3;
    background-color: var(--bs-table-bg, var(--bs-secondary-bg, #e9ecef));
}

#sizeChartOffcanvas .size-chart-sticky-first-col tbody td:first-child {
    background-color: var(--bs-body-bg, #fff);
}

.size-chart-table-section {
    position: relative;
}

.size-chart-scroll-controls {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 8px;
    min-height: 28px;
}

.size-chart-scroll-controls[hidden] {
    display: none !important;
}

.size-chart-scroll-track {
    position: relative;
    width: min(168px, 42vw);
    height: 28px;
    border-radius: 999px;
    background: #f3f3f3;
    border: 1px solid #e8e8e8;
    touch-action: none;
}

.size-chart-scroll-thumb {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(0, -50%);
    width: 44px;
    height: 22px;
    margin: 0;
    padding: 0;
    border: 1px solid #111;
    border-radius: 999px;
    background: #fff;
    color: #111;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.size-chart-scroll-thumb:hover {
    background: #fafafa;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.size-chart-scroll-thumb:active,
.size-chart-scroll-thumb.is-dragging {
    cursor: grabbing;
    background: #111;
    color: #fff;
}

.size-chart-scroll-thumb__icon {
    display: block;
    pointer-events: none;
}

/* ============================================
   ЕДИНЫЙ СТИЛЬ ОПЦИЙ ТОВАРА
   (соответствует стилю фильтров категории)
   ============================================ */

/* Заголовок товара — на ПК чуть меньше, чтобы не залезал под кнопку избранного */
.produc-title {
    font-size: 18px !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
    color: #000;
    margin-top: 0;
    margin-bottom: 0;
    padding-right: 36px;
    min-width: 0;
}

@media (min-width: 992px) {
    .produc-title {
        font-size: 18px !important;
        line-height: 1.25 !important;
        padding-right: 44px;
    }
}

/* Цена товара */
#product-price {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #000;
}

@media (min-width: 992px) {
    #product-price {
        font-size: 16px !important;
    }
}

/* Названия опций */
.option-group > p {
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #000;
    width: 350px;
    margin-left: 6px;
    margin-right: 6px;
}

/* Опции размера (РАЗМЕР: L, M, XS...) - компактные. Невыбранные: без заливки, только рамка */
.option-group:not(.option-group-growth):not(.option-group-wide-tile) .radio-option > div,
.radio-option > div,
.other-option > div {
    width: 52px !important;
    height: 44px !important;
    background: transparent !important;
    background-color: transparent !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.radio-option:hover {
    background-color: #999999 !important;
    border-color: #000 !important;
 
    transition: all 0.15s ease;
}

/* Опции роста (РОСТ: 158-164, 170-176...) — перенос на новую строку если не влезает */
.option-group-growth .radio-options,
.option-group-growth .other-options {
    flex-wrap: wrap !important;
}

.option-group-growth .radio-option,
.option-group-growth .other-option {
    cursor: pointer !important;
    pointer-events: auto !important;
    position: relative;
    z-index: 5;
}

.option-group-growth .radio-option > div,
.option-group-growth .other-option > div {
    width: 100px !important;
    min-width: 100px !important;
    height: 44px !important;
    padding-left: 25px !important;
    padding-right: 25px !important;
}

/* Опция «Индивидуальная длина» — шире, занимает оставшееся место */
.option-group-growth .custom-length-choice > div {
    width: 200px !important;
    min-width: 200px !important;
    flex: 1 1 auto;
    box-sizing: border-box;
    height: 44px !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    justify-content: flex-start !important;
    align-items: center !important;
}

.option-group-growth .custom-length-choice > div span {
    padding-left: 15px;
    padding-right: 15px;
    white-space: normal;
    text-align: center;
    line-height: 1.2;
}

/* Опции роста на мобильной — компактнее, чтобы влезали в одну строку */
@media (max-width: 767px) {
    .option-group-growth .radio-option > div,
    .option-group-growth .other-option > div {
        width: auto !important;
        min-width: 0 !important;
        flex: 1 1 0 !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .option-group-growth .custom-length-choice > div {
        width: auto !important;
        min-width: 120px !important;
        flex: 1 1 0 !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    .option-group-growth .radio-option > div span,
    .option-group-growth .other-option > div span,
    .option-group-growth .custom-length-choice > div span {
        min-width: 0 !important;
        padding-left: 4px !important;
        padding-right: 4px !important;
        font-size: 10px !important;
    }
}

.option-group-growth .radio-option > div span,
.option-group-growth .other-option > div span {
    min-width: 51px;
    display: flex;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
}

/* Монограмма: широкие плитки, стандартное поведение клика (без роста/инд. длины) */
.option-group-wide-tile .radio-options,
.option-group-wide-tile .other-options {
    flex-wrap: wrap !important;
}

.option-group-wide-tile .radio-option,
.option-group-wide-tile .other-option {
    cursor: pointer !important;
    pointer-events: auto !important;
    position: relative;
    z-index: 5;
}

.option-group-wide-tile .radio-option > div,
.option-group-wide-tile .other-option > div {
    width: 100px !important;
    min-width: 100px !important;
    height: 44px !important;
    padding-left: 25px !important;
    padding-right: 25px !important;
}

@media (max-width: 767px) {
    .option-group-wide-tile .radio-option > div,
    .option-group-wide-tile .other-option > div {
        width: auto !important;
        min-width: 0 !important;
        flex: 1 1 0 !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    .option-group-wide-tile .radio-option > div span,
    .option-group-wide-tile .other-option > div span {
        min-width: 0 !important;
        padding-left: 4px !important;
        padding-right: 4px !important;
        font-size: 10px !important;
    }
}

.option-group-wide-tile .radio-option > div span,
.option-group-wide-tile .other-option > div span {
    min-width: 51px;
    display: flex;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
}

.radio-option:hover > div,
.other-option:hover > div {
    border-color: #000 !important;
}

.radio-option.active > div,
.other-option.active > div,
.option-group:not(.option-group-growth):not(.option-group-wide-tile) .radio-option.active > div,
.option-group-growth .radio-option.active > div,
.option-group-wide-tile .radio-option.active > div,
.option-group-growth .custom-length-choice.active > div {
    background: #000 !important;
    background-color: #000 !important;
    border-color: #000 !important;
}

.radio-option.active > div span,
.other-option.active > div span,
.option-group:not(.option-group-growth):not(.option-group-wide-tile) .radio-option.active > div span,
.option-group-growth .radio-option.active > div span,
.option-group-wide-tile .radio-option.active > div span,
.option-group-growth .custom-length-choice.active > div span {
    color: #fff !important;
}

.radio-option > div span,
.other-option > div span {
    font-size: 11px !important;
    font-weight: 500;
    color: rgba(0, 0, 0, 1);
    line-height: 1.2;
}

/* Опция индивидуальной длины - только для РАЗМЕР (если есть без growth) */
.option-group:not(.option-group-growth) .custom-length-choice > div {
    width: 120px !important;
    min-width: 120px !important;
    padding: 4px 8px !important;
}

/* Цветовые опции - квадратные */
.color-option > div {
    width: 36px !important;
    height: 36px !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 0 !important;
    padding: 2px !important;
    transition: all 0.15s ease;
    /* flex + align-items-center схлопывал внутренний .pallete-color — виден только серый фон */
    align-items: stretch !important;
    justify-content: stretch !important;
    background-color: #fff !important;
}

.color-option:hover > div {
    border-color: #000 !important;
}

.color-option.active > div {
    border: 2px solid #000 !important;
}

.color-option .pallete-color {
    width: 100% !important;
    height: 100% !important;
    min-width: 0;
    min-height: 0;
    flex: 1 1 auto;
    align-self: stretch;
    border-radius: 0 !important;
    background-repeat: no-repeat;
}

/* Галочка на цвете — скрыта, оставляем только обводку */
.color-option .color-check {
    display: none !important;
}

/* Кнопка В корзину */
.add-to-cart-btn,
.cart-btn-compact {
    width: 100%;
    background: #000 !important;
    border: 1px solid #000 !important;
    color: #fff !important;
    border-radius: 0 !important;
    font-size: 12px !important;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 20px !important;
    transition: all 0.15s ease;
}

.add-to-cart-btn:hover,
.cart-btn-compact:hover {
    background: #333 !important;
    border-color: #333 !important;
}

/* Скрыть пустой блок «в список желаний / сообщить о наличии», если обе кнопки скрыты */
.product-secondary-actions:has(.btn-add-to-wishlist-out-of-stock.d-none):has(.btn-notify-stock.d-none) {
    display: none !important;
}

/* Кнопка Подбор размера */
.readmore.button-animation {
    background: #fff !important;
    border: 1px solid #e5e5e5 !important;
    color: #000 !important;
    border-radius: 0 !important;
    font-size: 12px !important;
    font-weight: 500;
    padding: 12px 16px !important;
    transition: all 0.15s ease;
}

.readmore.button-animation:hover {
    border-color: #000 !important;
}

/* Стили для недоступных опций — только зачёркивание, клики остаются */
/* Опция «Индивидуальная длина» никогда не зачёркивается и не скрывается */
.custom-length-choice.un-availability,
.radio-option[data-custom-length="1"].un-availability,
.other-option[data-custom-length="1"].un-availability {
    opacity: 1 !important;
}

.custom-length-choice.un-availability::after,
.radio-option[data-custom-length="1"].un-availability::after,
.other-option[data-custom-length="1"].un-availability::after {
    display: none !important;
}

.color-option.un-availability,
.radio-option.un-availability,
.other-option.un-availability {
    opacity: 0.6;
    position: relative;
    overflow: hidden;
}

.color-option.un-availability::after,
.radio-option.un-availability::after,
.other-option.un-availability::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #000;
    transform: rotate(-45deg);
    transform-origin: center center;
    z-index: 1;
    pointer-events: none;
}

.color-option.un-availability .color-check,
.radio-option.un-availability .color-check {
    display: none !important;
}

/* Опции с зачёркиванием остаются кликабельными */
.color-option.un-availability,
.radio-option.un-availability,
.other-option.un-availability {
    cursor: pointer !important;
    pointer-events: auto !important;
}

/* Стили для кнопки предзаказа */
.preorder-btn {
    background-color: #000 !important;
    border-color: #000 !important;
}

.preorder-btn:hover {
    background-color: #333 !important;
    border-color: #333 !important;
}

/* Переключатели пола: полоса на div (активный) и a.gender-link-pdp.gender-item (::after) */
.gender-item {
    display: inline-block !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #666 !important;
    text-decoration: none !important;
    text-decoration-line: none !important;
    line-height: 1.05 !important;
    padding-bottom: 3px !important;
    text-transform: uppercase;
    background: none !important;
    background-image: none !important;
}

.gender-item:hover {
    color: #000 !important;
}

/* Превью связанного товара из серии — только desktop hover */
.product-series-links .gender-link-pdp.has-series-preview {
    position: relative;
}

.product-series-links .product-series-preview {
    display: none;
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%);
    width: 90px;
    aspect-ratio: 3 / 4;
    background: #fff;
    border: 1px solid #e8e8e8;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    z-index: 30;
    pointer-events: none;
    overflow: hidden;
}

.product-series-links .product-series-preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

@media (hover: hover) and (pointer: fine) and (min-width: 992px) {
    .product-series-links .gender-link-pdp.has-series-preview:hover .product-series-preview,
    .product-series-links .gender-link-pdp.has-series-preview:focus-visible .product-series-preview {
        display: block;
    }
}

/* Bootstrap: a { text-decoration: underline }

— иначе две линии: underline + ::after */
a.gender-link-pdp:link,
a.gender-link-pdp:any-link,
a.gender-link-pdp:visited,
a.gender-link-pdp:hover,
a.gender-link-pdp:focus,
a.gender-link-pdp:focus-visible,
a.gender-link-pdp:active {
    text-decoration: none !important;
    text-decoration-line: none !important;
    text-underline-offset: 0 !important;
    text-decoration-thickness: 0 !important;
    -webkit-text-decoration: none !important;
    -webkit-text-decoration-line: none !important;
}

/* Перебивает a.gender-item:hover { text-decoration: underline !important }

— остаётся только ::after */
a.gender-link-pdp.gender-item:link,
a.gender-link-pdp.gender-item:any-link,
a.gender-link-pdp.gender-item:visited,
a.gender-link-pdp.gender-item:hover,
a.gender-link-pdp.gender-item:focus,
a.gender-link-pdp.gender-item:focus-visible,
a.gender-link-pdp.gender-item:active {
    text-decoration: none !important;
    text-decoration-line: none !important;
    text-underline-offset: 0 !important;
    text-decoration-thickness: 0 !important;
    -webkit-text-decoration: none !important;
    -webkit-text-decoration-line: none !important;
}

.gender-item.active {
    color: #000 !important;
    font-weight: 600 !important;
}

/* Секция характеристик */
.accordion-button {
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 16px 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
    color: #000 !important;
    background: transparent !important;
}

.accordion-body {
    font-size: 12px;
    line-height: 1.6;
    padding: 0 0 16px 0 !important;
}

/* Хлебные крошки — скролл в .breadcrumb-scroll */
nav[aria-label="breadcrumb"] {
    overflow-x: visible;
}

/* PDP mobile: только хвост (категория + товар), без overflow-x */
@media (max-width: 991px) {
    .product-page-pdp .pdp-breadcrumb-nav .breadcrumb-scroll {
        overflow-x: hidden;
        scrollbar-width: none;
    }

    .product-page-pdp .pdp-breadcrumb-nav .breadcrumb-scroll::-webkit-scrollbar {
        display: none;
        height: 0;
    }

    .product-page-pdp .pdp-breadcrumb-nav .breadcrumb {
        width: 100%;
        max-width: 100%;
        flex-wrap: nowrap;
        overflow: hidden;
    }

    .product-page-pdp .pdp-breadcrumb-nav .pdp-breadcrumb-item--early {
        display: none !important;
    }

    .product-page-pdp .pdp-breadcrumb-nav .breadcrumb-item {
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .product-page-pdp .pdp-breadcrumb-nav .breadcrumb-item a {
        display: inline-block;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        vertical-align: bottom;
    }
}

.breadcrumb-item a {
    font-size: 12px !important;
    color: #666 !important;
}

.breadcrumb-item a:hover {
    color: #000 !important;
}

/* Единый отступ как у меню (34px на десктопе, 16px на мобиле) */
.content-indent {
    padding-left: 34px;
    padding-right: 34px;
}

@media (max-width: 991px) {
    .content-indent {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    nav[aria-label="breadcrumb"] {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    
    section.container-fluid.mt-5 {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

/* ============================================
   Секция "Другие товары" - ТОЧНАЯ копия с главной
   ============================================ */
:root {
    --content-indent: 34px;
}

.related-products-section {
    background: #fff;
    padding: 0;
    margin-top: 48px;
    position: relative;
    overflow: hidden;
}

.related-products-section .module-header {
    padding-left: var(--content-indent);
    padding-right: 16px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.related-products-section .module-title {
    font-size: 12px !important;
    font-weight: 500 !important;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
    color: #000;
    flex: 1 1 auto;
    min-width: 0;
}

.related-products-section .module-header-nav {
    display: none;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

.related-products-section .module-header-nav .carousel-nav-btn {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
}

.related-products-section .products-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
}

/* Стрелки навигации */
.related-products-section .carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-100%);
    z-index: 10;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #000;
    padding: 0;
    border-radius: 0;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.related-products-section .carousel-nav-btn svg {
    width: 24px;
    height: 24px;
}

.related-products-section .carousel-nav-btn:hover {
    opacity: 0.6;
}

.related-products-section .carousel-nav-btn.hidden {
    opacity: 0;
    pointer-events: none;
}

.related-products-section .carousel-nav-prev {
    left: 8px;
}

.related-products-section .carousel-nav-next {
    right: 8px;
}

.related-products-section .related-products-swiper {
    overflow: hidden;
    width: 100%;
}

/* Не width:100% — иначе обёртка не шире вьюпорта и Swiper не прокручивает все слайды */
.related-products-section .swiper-wrapper {
    display: flex;
    width: max-content;
    min-width: 100%;
    box-sizing: border-box;
    justify-content: flex-start;
}

@media (min-width: 768px) {
    .related-products-section .swiper-slide {
        min-width: 0;
        box-sizing: border-box;
    }
}

/* Карточки товаров — self-contained для PDP (как docs/prodcss); не зависит от product-card-category.css */
.related-products-section .product-card-category {
    position: relative;
    overflow: hidden;
    background: #fff;
    border: none;
}

.related-products-section .product-image-container-category {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    background: #f8f8f8;
}

.related-products-section .product-image-category {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: opacity 0.25s ease;
}

.related-products-section .product-image-container-category video.product-image-category,
.related-products-section .product-image-container-category img.product-image-category {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.related-products-section .product-image-category.additional-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    opacity: 0;
    z-index: 1;
    transform: scale(1.05);
}

.related-products-section [data-hover-swap]:hover .product-image-category.main-image {
    opacity: 0 !important;
}

.related-products-section [data-hover-swap]:hover .product-image-category.additional-image {
    opacity: 1 !important;
    transform: scale(1);
}

/* Кнопка избранного */
.related-products-section .favorite-btn-category {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border: 1px solid #e5e5e5;
    border-radius: 50%;
    background: #fff;
    color: #111;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 20;
}

.related-products-section .favorite-btn-category svg {
    width: 16px;
    height: 16px;
}

.related-products-section .product-card-category:hover .favorite-btn-category {
    opacity: 1;
    pointer-events: auto;
}

/* Информация о товаре */
.related-products-section .product-link-category {
    color: inherit;
    text-decoration: none;
    display: block;
}

.related-products-section .product-link-category:hover .product-title-category {
    text-decoration-color: currentColor;
}

.related-products-section .product-info-category {
    padding: 8px 10px 10px;
    background: transparent;
    margin-left: 0;
    margin-right: 0;
}

.related-products-section .product-info-category--swatches-only {
    padding: 0 10px 10px;
    margin-left: 0;
    margin-right: 0;
}

.related-products-section .product-title-category {
    font-size: 12px !important;
    line-height: 1.4;
    margin: 0 0 0.35rem 0 !important;
    margin-right: 0px;
    padding-left: 0;
    padding-right: 0;
    color: rgba(0, 0, 0, 1);
    font-weight: 500 !important;
}

.related-products-section .product-price-category {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #111;
    margin: 0 !important;
    margin-right: 0px;
}

/* Price row inside product info */
.related-products-section .product-info-category .d-flex.align-items-center.justify-content-between.mb-2 {
    padding-left: 0;
    padding-right: 0;
    margin-left: 0 !important;
}

.related-products-section .product-category-row {
    margin: 0 0 6px 0 !important;
}

/* Цветовые свотчи */
.related-products-section .color-options-category {
    margin-top: 0;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.related-products-section .product-card-category:hover .color-options-category {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.related-products-section .color-swatches-category {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0;
    padding-right: 0;
    width: auto;
    max-width: 100%;
    min-height: 26px;
    height: auto;
}

.related-products-section .color-swatch-category {
    width: 28px;
    height: 28px;
    border-radius: 0;
    border: 1px solid #e9ecef;
    cursor: pointer;
    transition: all 0.2s ease;
}

.related-products-section .color-swatch-category:hover {
    border-color: #000;
}

/* Desktop: related-карточки выравниваются по левому отступу 24px; mobile остаётся без этого сдвига */
@media (min-width: 768px) {
    .related-products-section .module-title {
        padding-left: 24px;
    }

    .related-products-section .product-info-category,
    .related-products-section .product-info-category--swatches-only {
        padding-left: 24px !important;
    }

    .related-products-section .product-info-category--swatches-only .color-swatches-nav-wrap .color-swatches-category {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

.related-products-section .color-swatch-category.out-of-stock-swatch {
    opacity: 0.6;
    position: relative;
}

.related-products-section .color-swatch-category.out-of-stock-swatch::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #666;
    transform: rotate(-45deg);
    z-index: 1;
}

.related-products-section .color-more-category {
    font-size: 11px;
    color: #666;
}

/* Стили слайдов */
.related-products-section .products-carousel {
    padding-left: 0;
    padding-right: 0;
}

.related-products-section .swiper {
    overflow: hidden;
    width: 100%;
}

.related-products-section .swiper-slide {
    height: auto;
    display: flex;
}

.related-products-section .swiper-slide .product-card-category {
    width: 100%;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 767px) {
    .related-products-section {
        --content-indent: 16px;
        margin-top: 32px;
    }


    .related-products-section .products-carousel {
        overflow: hidden;
        width: 100%;
        padding: 0;
    }

    .related-products-section .swiper {
        overflow: hidden;
        width: 100%;
    }

    .related-products-section .swiper-wrapper {
        display: flex;
        box-sizing: border-box;
        width: auto;
        min-width: 0;
        max-width: none;
    }

    .related-products-section .swiper-slide {
        flex: 0 0 auto;
        min-width: 0;
        padding: 0;
        box-sizing: border-box;
    }

    .related-products-section .swiper-slide .product-card-category {
        max-width: 100%;
        min-width: 0;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .related-products-section .product-info-category--swatches-only,
    .related-products-section .color-options-category,
    .related-products-section .color-swatches-nav-wrap {
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    /* Мобилка: свотчи всегда кликабельны и не отдают жест Swiper */
    .related-products-section .color-options-category {
        opacity: 1 !important;
        transform: none !important;
        pointer-events: auto !important;
    }

    .related-products-section .color-swatches-nav-wrap,
    .related-products-section .color-swatches-category {
        touch-action: pan-x;
    }

    .related-products-section .color-swatch-category {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    .related-products-section .module-header-nav {
        display: flex;
    }

    .related-products-section .products-carousel > .carousel-nav-btn {
        display: none;
    }
}

/* Стили для ссылки "Подробнее" в описании */
.readmore-description {
    position: relative;
    text-decoration: none !important;
    display: inline;
    white-space: nowrap;
    color: #000 !important;
    font-weight: 600;
}

.readmore-description::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background-color: currentColor;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.readmore-description:hover {
    color: #000 !important;
    padding-left: 10px;
}

.readmore-description:hover::after {
    transform: scaleX(1);
}

/* justify задаётся на блочном родителе; у inline- span text-align по ширине колонки не работает */
.description-wrapper {
    word-wrap: break-word;
    display: block;
    text-align: justify;
    text-align-last: left;
}

/* Текст и ссылка «ещё» — inline; выравнивание по ширине — у .description-wrapper */
.description-wrapper .description-text {
    display: inline;
    margin: 0;
}

/* Последнее слово и ссылка в одной строке - без переноса */
.last-word-with-readmore {
    white-space: nowrap !important;
    display: inline !important;
}

/* Стили для ссылок дополнительной информации о товаре */
.product-info-links {
    border-top: 1px solid #e5e5e5;
}

.product-info-link {
    display: block;
    text-decoration: none;
    color: #000;
    text-transform: uppercase;
    font-weight: 400;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e5e5e5;
    transition: all 0.15s ease;
}

.product-info-link:hover {
    color: #666;
}

@media (max-width: 767.98px) {
    .product-info-sticky {
        position: relative;
    }
}

.product-info-sticky .fav-btn {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 3;
}

.product-info-sticky > .d-flex.align-items-start.justify-content-between.gap-3 {
    justify-content: flex-start;
    align-items: center;
    gap: 0;
    margin-top: 0;
    margin-bottom: 0;
    margin-left: 6px;
    margin-right: 6px;
}

.custom-length-choice {
    width: 140px !important;
    min-width: 140px !important;
    flex: 0 0 140px !important;
}

.option-group-growth .custom-length-choice {
    width: 200px !important;
    min-width: 200px !important;
    flex: 0 0 200px !important;
}

.custom-length-choice > div {
    width: 140px !important;
    min-width: 140px !important;
}

.custom-length-choice span {
    white-space: normal;
    text-align: center;
}

@media (max-width: 768px) {
    .product-info-sticky .fav-btn {
        top: 8px;
        right: 8px;
    }
}

/* Description text limitation */
.description-text {
    max-height: 12em; /* ~8 lines */
    overflow: hidden;
    transition: max-height 0.3s ease;
    line-height: 1.5;
}

/* Mobile gallery carousel */
@media (max-width: 767px) {
    /* Hide desktop gallery, show mobile carousel */
    .desktop-gallery {
        display: none;
    }
    
    .mobile-gallery {
        display: block;
    }
    
    /* Mobile Swiper styles — пропорции 3:4 */
    .product-gallery-swiper {
        width: 100%;
        height: auto;
    }
    
    .product-gallery-swiper .swiper-slide {
        width: 100%;
        aspect-ratio: 3 / 4;
        cursor: zoom-in;
    }
    
    .product-gallery-swiper .swiper-slide img,
    .product-gallery-swiper .swiper-slide video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .product-gallery-swiper .swiper-pagination {
        bottom: 10px;
    }
    
    .product-gallery-swiper .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
        background: rgba(255, 255, 255, 0.5);
        opacity: 1;
    }
    
    .product-gallery-swiper .swiper-pagination-bullet-active {
        background: #fff;
    }
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 16px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightbox-close { right: 16px; }

.lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); }

.lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); }

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.lightbox-close-inside {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10002;
    font-size: 18px;
    line-height: 1;
}

/* Стилизация скроллбара для таблицы размеров — те же токены, что у страницы (frontend-utilities) */
.table-responsive {
    scrollbar-width: thin;
    scrollbar-color: var(--app-scrollbar-thumb) var(--app-scrollbar-track);
}

.table-responsive::-webkit-scrollbar {
    width: var(--app-scrollbar-width);
    height: var(--app-scrollbar-width);
}

.table-responsive::-webkit-scrollbar-track {
    background: var(--app-scrollbar-track);
}

.table-responsive::-webkit-scrollbar-thumb {
    background-color: var(--app-scrollbar-thumb);
    border-radius: 999px;
    transition: background 0.2s ease;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background-color: var(--app-scrollbar-thumb-hover);
}

/* Опции размера (РАЗМЕР: L, M, XS...) - компактные. Невыбранные: без заливки, только рамка */
.option-group:not(.option-group-growth):not(.option-group-wide-tile) .radio-option > div,
.radio-option > div,
.other-option > div {

    background: transparent !important;
    background-color: transparent !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

@media (max-width: 767px) {
    .option-group-wide-tile .radio-option > div,
    .option-group-wide-tile .other-option > div {
        width: auto !important;
        min-width: 0 !important;
        flex: 1 1 0 !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .option-group-wide-tile .radio-option > div span,
    .option-group-wide-tile .other-option > div span {
        min-width: 0 !important;
        padding-left: 4px !important;
        padding-right: 4px !important;
        font-size: 10px !important;
    }
}

.option-group-wide-tile .radio-option.active > div,
.option-group-wide-tile .other-option.active > div {
    background: #000 !important;
    background-color: #000 !important;
    border-color: #000 !important;
}

.option-group-wide-tile .radio-option.active > div span,
.option-group-wide-tile .other-option.active > div span {
    color: #fff !important;
}

a.gender-link-pdp:link,
a.gender-link-pdp:any-link,
a.gender-link-pdp:visited,
a.gender-link-pdp:hover,
a.gender-link-pdp:focus,
a.gender-link-pdp:focus-visible,
a.gender-link-pdp:active {
    text-decoration: none !important;
    text-decoration-line: none !important;
    text-underline-offset: 0 !important;
    text-decoration-thickness: 0 !important;
    -webkit-text-decoration: none !important;
    -webkit-text-decoration-line: none !important;
}

a.gender-link-pdp.gender-item:link,
a.gender-link-pdp.gender-item:any-link,
a.gender-link-pdp.gender-item:visited,
a.gender-link-pdp.gender-item:hover,
a.gender-link-pdp.gender-item:focus,
a.gender-link-pdp.gender-item:focus-visible,
a.gender-link-pdp.gender-item:active {
    text-decoration: none !important;
    text-decoration-line: none !important;
    text-underline-offset: 0 !important;
    text-decoration-thickness: 0 !important;
    -webkit-text-decoration: none !important;
    -webkit-text-decoration-line: none !important;
}

/* Responsive — блок «Другие товары» */
@media (max-width: 767px) {
    .related-products-section {
        --content-indent: 16px;
        margin-top: 32px;
    }


    .related-products-section .products-carousel {
        overflow: hidden;
        width: 100%;
        padding: 0;
    }

    .related-products-section .swiper {
        overflow: hidden;
        width: 100%;
    }

    /* max-content + % на слайдах ломали ширину; на мобилке ширину слайдов задаёт Swiper (slidesPerView: 1) */
    .related-products-section .swiper-wrapper {
        display: flex;
        box-sizing: border-box;
        width: auto;
        min-width: 0;
        max-width: none;
    }

    .related-products-section .swiper-slide {
        flex: 0 0 auto;
        min-width: 0;
        padding: 0;
        box-sizing: border-box;
    }

    /* Полоса со стрелками + свотчи не должна раздувать слайд шире экрана */
    .related-products-section .swiper-slide .product-card-category {
        max-width: 100%;
        min-width: 0;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    .related-products-section .product-info-category--swatches-only,
    .related-products-section .color-options-category,
    .related-products-section .color-swatches-nav-wrap {
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .related-products-section .color-options-category {
        opacity: 1 !important;
        transform: none !important;
        pointer-events: auto !important;
    }

    .related-products-section .color-swatches-nav-wrap,
    .related-products-section .color-swatches-category {
        touch-action: pan-x;
    }

    .related-products-section .color-swatch-category {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    .related-products-section .module-header-nav {
        display: flex;
    }

    .related-products-section .products-carousel > .carousel-nav-btn {
        display: none;
    }
}

.description-wrapper {
    word-wrap: break-word;
    display: block;
}

/* Текст и ссылка в одной строке */
.description-wrapper .description-text {
    display: inline;
}
