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

.pdp-gallery-wrap .product-gallery:not(.product-gallery-thumb) .carousel-box {
    cursor: zoom-in;
}

.pdp-gallery-wrap .product-gallery:not(.product-gallery-thumb) .carousel-box img {
    cursor: zoom-in;
}

.pdp-zoom-btn {
    position: absolute;
    bottom: 12px;
    left: 12px;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 1.25rem;
    line-height: 1;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    transition: transform 0.15s ease, background 0.15s ease;
    cursor: pointer;
}

.pdp-zoom-btn:hover,
.pdp-zoom-btn:focus {
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    transform: scale(1.05);
    outline: none;
}

@media (max-width: 767.98px) {
    .pdp-zoom-btn {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }
}

@media (hover: hover) and (pointer: fine) {
    .pdp-gallery-wrap .product-gallery:not(.product-gallery-thumb) .img-zoom {
        position: relative;
        overflow: hidden;
    }

    .pdp-gallery-wrap .product-gallery:not(.product-gallery-thumb) .img-zoom .zoomImg {
        cursor: zoom-in;
    }
}

body.pdp-lb-open {
    overflow: hidden;
}

.pdp-image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    flex-direction: column;
}

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

.pdp-lb-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.94);
}

.pdp-lb-topbar {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    padding-top: max(12px, env(safe-area-inset-top));
}

.pdp-lb-counter {
    min-width: 52px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
}

.pdp-lb-zoom-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.pdp-lb-zoom-in,
.pdp-lb-zoom-out,
.pdp-lb-close {
    border: 0;
    color: #fff;
    cursor: pointer;
    line-height: 1;
    transition: background 0.15s ease;
}

.pdp-lb-zoom-in,
.pdp-lb-zoom-out {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    font-size: 1.6rem;
    font-weight: 700;
}

.pdp-lb-zoom-in:hover,
.pdp-lb-zoom-out:hover {
    background: rgba(255, 255, 255, 0.3);
}

.pdp-lb-zoom-level {
    min-width: 52px;
    text-align: center;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
}

.pdp-lb-close {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    font-size: 1.8rem;
}

.pdp-lb-close:hover {
    background: rgba(255, 255, 255, 0.24);
}

.pdp-lb-stage {
    position: relative;
    z-index: 2;
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 56px;
}

.pdp-lb-viewport {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    touch-action: none;
    cursor: grab;
}

.pdp-image-lightbox.is-zoomed .pdp-lb-viewport {
    cursor: move;
}

.pdp-lb-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transform-origin: center center;
    transition: transform 0.2s ease;
    user-select: none;
    -webkit-user-drag: none;
    will-change: transform;
}

.pdp-lb-image.is-interacting {
    transition: none;
}

.pdp-lb-close,
.pdp-lb-prev,
.pdp-lb-next {
    position: absolute;
    z-index: 4;
    border: 0;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    cursor: pointer;
}

.pdp-lb-prev,
.pdp-lb-next {
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.4rem;
}

.pdp-lb-prev {
    left: 10px;
}

.pdp-lb-next {
    right: 10px;
}

.pdp-lb-prev:hover,
.pdp-lb-next:hover {
    background: rgba(255, 255, 255, 0.24);
}

.pdp-image-lightbox.is-zoomed .pdp-lb-prev,
.pdp-image-lightbox.is-zoomed .pdp-lb-next {
    opacity: 0.35;
}

.pdp-lb-hint {
    position: relative;
    z-index: 5;
    margin: 0;
    padding: 10px 16px 16px;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
    text-align: center;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.8rem;
    transition: opacity 0.2s ease;
}

@media (max-width: 767.98px) {
    .pdp-lb-stage {
        padding: 0 46px;
    }

    .pdp-lb-zoom-in,
    .pdp-lb-zoom-out {
        width: 36px;
        height: 36px;
        font-size: 1.4rem;
    }

    .pdp-lb-prev,
    .pdp-lb-next {
        width: 38px;
        height: 38px;
        font-size: 1.15rem;
    }
}
