.wc-block-swiper-gallery {
    position: relative;
    width: 100%;
    max-width: 100%;
}

.wc-block-swiper-gallery * {
    box-sizing: border-box;
}

.wc-block-swiper-main-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #fff;
}

.wc-block-swiper-main {
    width: 100%;
    overflow: hidden;
}

.wc-block-swiper-main .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    background: #fff;
}

.wc-block-swiper-main .swiper-slide:active {
    cursor: grabbing;
}

.wc-block-swiper-main img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}

.wc-block-swiper-zoom {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 20;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: #111;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, background 0.2s ease;
}

.wc-block-swiper-zoom svg {
    width: 21px;
    height: 21px;
    display: block;
}

.wc-block-swiper-main .swiper-button-next,
.wc-block-swiper-main .swiper-button-prev {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #111;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.16);
}

.wc-block-swiper-main .swiper-button-next:after,
.wc-block-swiper-main .swiper-button-prev:after {
    font-size: 17px;
    font-weight: 700;
}

.wc-block-swiper-thumbs-wrap {
    position: relative;
    width: 100%;
    margin-top: 14px;
    padding: 0 42px;
}

.wc-block-swiper-thumbs {
    width: 100%;
    overflow: hidden;
}

.wc-block-swiper-thumbs .swiper-slide {
    height: auto;
    cursor: pointer;
    opacity: 0.55;
    transition: opacity 0.2s ease, border-color 0.2s ease;
    background: #fff;
}

.wc-block-swiper-thumbs .swiper-slide-thumb-active {
    opacity: 1;
}

.wc-block-swiper-thumbs img {
    display: block;
    width: 100%;
    object-fit: cover;
    user-select: none;
    -webkit-user-drag: none;
}

.wc-block-swiper-thumb-next,
.wc-block-swiper-thumb-prev {
    position: absolute;
    top: 50%;
    z-index: 30;
    width: 32px;
    height: 32px;
    margin-top: -16px;
    border-radius: 50%;
    background: #fff;
    color: #111;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.wc-block-swiper-thumb-prev {
    left: 0;
}

.wc-block-swiper-thumb-next {
    right: 0;
}

.wc-block-swiper-thumb-next:after,
.wc-block-swiper-thumb-prev:after {
    font-size: 13px;
    font-weight: 700;
}

.wc-block-swiper-gallery .swiper-button-disabled {
    opacity: 0.35;
    pointer-events: none;
}

.pswp {
    z-index: 999999;
}

.pswp__bg {
    background: rgba(0, 0, 0, 0.92);
}

.pswp__button {
    opacity: 1;
}

@media (max-width: 767px) {
    .wc-block-swiper-main .swiper-button-next,
    .wc-block-swiper-main .swiper-button-prev {
        width: 34px;
        height: 34px;
    }

    .wc-block-swiper-main .swiper-button-next:after,
    .wc-block-swiper-main .swiper-button-prev:after {
        font-size: 13px;
    }

    .wc-block-swiper-zoom {
        width: 38px;
        height: 38px;
        top: 10px;
        right: 10px;
    }

    .wc-block-swiper-thumbs-wrap {
        padding: 0 36px;
    }

    .wc-block-swiper-thumb-next,
    .wc-block-swiper-thumb-prev {
        width: 28px;
        height: 28px;
        margin-top: -14px;
    }
}