.woocommerce .product .product-single .product-img,
.product-single .product-img {
    position: relative;
}

.woocommerce .product .product-single .product-img .mp-image-zoom-trigger {
    position: absolute;
    right: 5px;
    bottom: 5px;
    width: 46px;
    height: 46px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2px;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.70);
    color: #fff;
    cursor: pointer;
    z-index: 9999 !important;
    opacity: 1 !important;
    visibility: visible !important;
    overflow: visible !important;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.woocommerce .product .product-single .product-img .mp-image-zoom-trigger:hover,
.woocommerce .product .product-single .product-img .mp-image-zoom-trigger:focus-visible {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.06);
    outline: none;
}

.woocommerce .product .product-single .product-img .mp-image-zoom-trigger svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.woocommerce .product .product-single .product-img .mp-image-zoom-trigger .mp-image-zoom-trigger__text {
    position: static;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.92);
    font-size: 7px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.03em;
    white-space: nowrap;
    pointer-events: none;
    z-index: 1;
}

.mp-image-zoom-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
}

.mp-image-zoom-lightbox[hidden] {
    display: none;
}

.mp-image-zoom-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
}

.mp-image-zoom-lightbox__content {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
}

.mp-image-zoom-lightbox__top {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    z-index: 3;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.mp-image-zoom-lightbox__title {
    color: #fff;
    background: rgba(0, 0, 0, 0.42);
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    max-width: calc(100% - 56px);
}

.mp-image-zoom-lightbox__image {
    max-width: min(96vw, 1400px);
    max-height: 92vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}

.mp-image-zoom-lightbox__close {
    position: static;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.mp-image-zoom-lightbox__close svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.4;
    stroke-linecap: round;
}

.mp-image-zoom-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    z-index: 3;
    cursor: pointer;
}

.mp-image-zoom-lightbox__nav--prev {
    left: 14px;
}

.mp-image-zoom-lightbox__nav--next {
    right: 14px;
}

.mp-image-zoom-lightbox__nav svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mp-image-zoom-lightbox__view-btn {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    padding: 10px 18px;
    border-radius: 999px;
    background: #fff;
    color: #111;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.mp-image-zoom-lightbox__view-btn.is-hidden {
    display: none;
}

@media (max-width: 767px) {
    .mp-image-zoom-lightbox__title {
        font-size: 13px;
    }

    .mp-image-zoom-lightbox__nav {
        width: 38px;
        height: 38px;
    }

    .mp-image-zoom-lightbox__view-btn {
        width: calc(100% - 28px);
        max-width: 320px;
        bottom: 14px;
    }
}

body.mp-image-zoom-open {
    overflow: hidden;
}
