body .pswp .pswp__container {
    transition: transform .5s ease-out;
    transition: transform 1s cubic-bezier(.3, 0, 0, 1);
}

/* Основные стили галереи */
.product-gallery__featured {
    position: relative;
    /* margin-bottom: 20px; */
}

/* Общие стили для изображений */
.product-gallery__featured .image--type--product .image__body,
.image--type--category .image__body {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
}

.image--type--product .image__tag,
.image--type--category .image__tag {
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Основной слайдер */
.product-gallery__featured .swiper {
    width: 100%;
    /* max-width: 520px; */
    margin: 0 auto;
    aspect-ratio: 8/5;
    position: relative;
}

.product-gallery__featured .swiper-wrapper {
    width: 100%;
    height: 100%;
}

.product-gallery__featured .swiper-slide {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-gallery__featured .swiper-slide a {
    width: 100%;
    height: 100%;
    display: block;
}

.product-gallery__featured .swiper-slide .image__body {
    padding-bottom: 0 !important;
    height: 100%;
}

.product-gallery__featured .image__tag {
    position: relative;
    height: 100%;
    width: 100%;
    object-fit: contain;
}

/* Скрываем стрелки в основной галерее */
.product-gallery__featured .swiper-button-next,
.product-gallery__featured .swiper-button-prev {
    display: none !important;
}

/* Стили для миниатюр */
.product-gallery__thumbnails {
    margin-top: 20px;
}

.product-gallery__thumbnails {
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.product-gallery__thumbnails .swiper {
    width: auto;
    max-width: 100%;
    height: 62px;
    position: relative;
    overflow: hidden;
    padding: 0 35px 0 0;
    box-sizing: border-box;
}

.product-gallery__thumbnails .swiper-wrapper {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: nowrap;
    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
    height: 100%;
    width: 100% !important;
}

.product-gallery__thumbnails .swiper-slide {
    width: 62px !important;
    height: 62px !important;
    cursor: pointer;
    flex: 0 0 auto;
    margin: 0 5px;
    padding: 2px;
    position: relative;
    opacity: 1;
    border: 2px solid #f2f2f2;
    transition: border-color 0.3s ease;
}

/* Сброс границ для внутренних элементов */
.product-gallery__thumbnails .swiper-slide *,
.product-gallery__thumbnails .swiper-slide .image--type--product,
.product-gallery__thumbnails .swiper-slide .product-gallery__thumbnails-item,
.product-gallery__thumbnails .swiper-slide .image__body {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    margin: 0 !important;
}

/* Стили состояний миниатюр */
.product-gallery__thumbnails .swiper-slide:hover {
    border-color: #e0e0e0;
}

.product-gallery__thumbnails .swiper-slide.swiper-slide-thumb-active {
    border-color: #7550A6;
    opacity: 1;
}

/* Размеры внутренних элементов миниатюр */
.product-gallery__thumbnails .product-gallery__thumbnails-item,
.product-gallery__thumbnails .image--type--product,
.product-gallery__thumbnails .image__body {
    width: 100% !important;
    height: 100% !important;
    position: relative;
    display: block;
}

.product-gallery__thumbnails .image__tag {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Стили для навигации миниатюр */
.product-gallery__thumbnails .swiper-button-next,
.product-gallery__thumbnails .swiper-button-prev {
    width: 20px;
    height: 20px;
    color: #333;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
}

.product-gallery__thumbnails .swiper-button-next:after,
.product-gallery__thumbnails .swiper-button-prev:after {
    font-size: 12px;
    font-weight: bold;
}

.product-gallery__thumbnails .swiper-button-disabled {
    opacity: 0.35;
    cursor: auto;
    pointer-events: none;
}

/* Стили для кнопки зума */
.product-gallery__zoom {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    z-index: 2;
    transition: background-color 0.3s;
}

.product-gallery__zoom:hover {
    background: rgba(255, 255, 255, 0.8);
}

.product-gallery__zoom svg {
    width: 100%;
    height: 100%;
    fill: #333;
}