/* =========================================================
   КОМБОГРАД — НОВАЯ КАРТОЧКА ТОВАРА
   DESKTOP
   ========================================================= */

@media (min-width: 1200px) {

    /* =====================================================
       1. РАСШИРЯЕМ ВСЮ КАРТОЧКУ ТОВАРА
       ===================================================== */

    body.single-product .single-section > .container {
        width: calc(100% - 80px) !important;
        max-width: 1480px !important;

        margin-left: auto !important;
        margin-right: auto !important;

        padding-left: 0 !important;
        padding-right: 0 !important;

        box-sizing: border-box !important;
    }


    /* =====================================================
       2. ГАЛЕРЕЯ + БЛОК ПОКУПКИ
       ===================================================== */

    body.single-product .single-section__inner {
        width: 100% !important;

        display: grid !important;

        grid-template-columns:
            minmax(0, 780px)
            minmax(460px, 520px) !important;

        column-gap: 48px !important;

        justify-content: center !important;
        align-items: start !important;

        margin: 0 auto !important;
    }


    body.single-product .single-images {
        width: 100% !important;
        min-width: 0 !important;

        margin: 0 !important;
        padding: 0 !important;
    }


    body.single-product .single-right,
    body.single-product .single-content {
        min-width: 0 !important;
    }


    /* =====================================================
       3. ГЛАВНАЯ ГАЛЕРЕЯ
       ===================================================== */

    body.single-product .woocommerce-product-gallery {
        width: 100% !important;
        max-width: none !important;

        height: 690px !important;

        margin: 0 !important;
        padding: 0 !important;

        position: relative !important;

        overflow: hidden !important;

        border: 1px solid #e2e7e8 !important;
        border-radius: 18px !important;

        background: #ffffff !important;

        box-sizing: border-box !important;
    }


    body.single-product
    .woocommerce-product-gallery
    .swiper-wrapper {
        height: 100% !important;
    }


    /* =====================================================
       4. КАЖДЫЙ БОЛЬШОЙ СЛАЙД
       ===================================================== */

    body.single-product
    .woocommerce-product-gallery__image {
        height: 690px !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        background: #ffffff !important;

        overflow: hidden !important;
    }


    body.single-product
    .woocommerce-product-gallery__image > a {
        width: 100% !important;
        height: 100% !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        overflow: hidden !important;
    }


    /* =====================================================
       5. ГЛАВНОЕ ИЗОБРАЖЕНИЕ
       ===================================================== */

    body.single-product
    .woocommerce-product-gallery__image img {
        width: 100% !important;
        height: 100% !important;

        max-width: 100% !important;
        max-height: none !important;

        object-fit: contain !important;
        object-position: center center !important;

        margin: 0 !important;
        padding: 0 !important;

        display: block !important;

        box-sizing: border-box !important;
    }


    /* =====================================================
       6. СТРЕЛКИ ГЛАВНОГО ФОТО
       ===================================================== */

    body.single-product
    .woocommerce-product-gallery > .swiper-button-prev,

    body.single-product
    .woocommerce-product-gallery > .swiper-button-next {
        width: 46px !important;
        height: 46px !important;

        top: 50% !important;
        margin-top: -23px !important;

        border-radius: 50% !important;

        background: rgba(255,255,255,.96) !important;
        color: #414141 !important;

        box-shadow: 0 3px 12px rgba(0,0,0,.12) !important;

        z-index: 20 !important;
    }


    body.single-product
    .woocommerce-product-gallery > .swiper-button-prev {
        left: 16px !important;
    }


    body.single-product
    .woocommerce-product-gallery > .swiper-button-next {
        right: 16px !important;
    }


    body.single-product
    .woocommerce-product-gallery > .swiper-button-prev::after,

    body.single-product
    .woocommerce-product-gallery > .swiper-button-next::after {
        font-size: 18px !important;
        font-weight: 700 !important;
    }


    /* =====================================================
       7. ЛУПА
       ===================================================== */

    body.single-product
    .woocommerce-product-gallery__trigger {
        top: 18px !important;
        right: 18px !important;

        z-index: 25 !important;
    }


    /* =====================================================
       8. ЛЕНТА МИНИАТЮР
       ===================================================== */

    body.single-product
    .woocommerce-product-gallery-thumb {
        width: 100% !important;
        max-width: none !important;

        height: 124px !important;

        margin: 14px 0 0 !important;

        padding: 10px 54px !important;

        position: relative !important;

        overflow: hidden !important;

        border: 1px solid #e2e7e8 !important;
        border-radius: 14px !important;

        background: #ffffff !important;

        box-sizing: border-box !important;
    }


    body.single-product
    .woocommerce-product-gallery-thumb
    .swiper-wrapper {
        align-items: center !important;
    }


    /* =====================================================
       9. МИНИАТЮРЫ
       ===================================================== */

    body.single-product
    .woocommerce-product-gallery-thumb
    .swiper-slide {
        width: 82px !important;
        height: 100px !important;

        flex: 0 0 82px !important;

        margin-right: 10px !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        overflow: hidden !important;

        border: 1px solid #e2e2e2 !important;
        border-radius: 9px !important;

        background: #ffffff !important;

        cursor: pointer !important;

        box-sizing: border-box !important;
    }


    body.single-product
    .woocommerce-product-gallery-thumb
    .swiper-slide img {
        width: 100% !important;
        height: 100% !important;

        object-fit: contain !important;
        object-position: center !important;

        margin: 0 !important;
        padding: 4px !important;

        box-sizing: border-box !important;
    }


    /* Активная фотография */

    body.single-product
    .woocommerce-product-gallery-thumb
    .swiper-slide-thumb-active {
        border: 2px solid #ff861c !important;
    }


    /* =====================================================
       10. СТРЕЛКИ МИНИАТЮР
       ===================================================== */

    body.single-product
    .woocommerce-product-gallery-thumb
    .swiper-button-prev,

    body.single-product
    .woocommerce-product-gallery-thumb
    .swiper-button-next {
        width: 38px !important;
        height: 38px !important;

        top: 50% !important;
        margin-top: -19px !important;

        border-radius: 50% !important;

        background: #ffffff !important;
        color: #ff861c !important;

        box-shadow: 0 2px 8px rgba(0,0,0,.10) !important;

        z-index: 20 !important;
    }


    body.single-product
    .woocommerce-product-gallery-thumb
    .swiper-button-prev {
        left: 8px !important;
    }


    body.single-product
    .woocommerce-product-gallery-thumb
    .swiper-button-next {
        right: 8px !important;
    }


    body.single-product
    .woocommerce-product-gallery-thumb
    .swiper-button-prev::after,

    body.single-product
    .woocommerce-product-gallery-thumb
    .swiper-button-next::after {
        font-size: 15px !important;
        font-weight: 700 !important;
    }


    /* =====================================================
       11. ПРАВАЯ КАРТОЧКА ПОКУПКИ
       ===================================================== */

    body.single-product .single-right {
        width: 100% !important;
        max-width: 520px !important;

        margin: 0 !important;

        justify-self: start !important;

        box-sizing: border-box !important;
    }


    body.single-product
    .summary.entry-summary {
        width: 100% !important;

        margin: 0 !important;

        box-sizing: border-box !important;
    }


    /* =====================================================
       12. АДАПТАЦИЯ ДЛЯ НЕ ОЧЕНЬ ШИРОКИХ DESKTOP
       ===================================================== */

    @media (max-width: 1450px) {

        body.single-product .single-section > .container {
            width: calc(100% - 48px) !important;
        }

        body.single-product .single-section__inner {
            grid-template-columns:
                minmax(0, 680px)
                minmax(430px, 500px) !important;

            column-gap: 36px !important;
        }

        body.single-product .woocommerce-product-gallery,
        body.single-product .woocommerce-product-gallery__image {
            height: 620px !important;
        }
    }

}

/* Header marquee: cleaner separators and reduced-motion support */
.header-marquee-item::before {
    content: none !important;
    display: none !important;
    background: none !important;
}

@media (prefers-reduced-motion: reduce) {
    .header-marquee-items {
        animation: none !important;
        transform: none !important;
    }

    .header-marquee-items-wrap {
        overflow-x: auto !important;
    }
}
