/* She Designs - Amazon-Style Product Image Magnifier */
.sd-hover-zoom-active {
    cursor: crosshair !important;
}

.sd-product-zoom-popup {
    position: fixed;
    z-index: 20000;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .15s ease, visibility .15s ease;
    border-radius: 16px;
    border: 4px solid #ffffff;
    background-color: #ffffff;
    box-shadow: 0 16px 40px rgba(40, 25, 35, 0.22), 0 2px 10px rgba(0, 0, 0, 0.08);
}

.sd-product-zoom-popup.is-visible {
    opacity: 1;
    visibility: visible;
}

.sd-product-zoom-popup .sd-zoom-view {
    position: absolute;
    inset: 0;
    overflow: hidden;
    box-sizing: border-box;
    border-radius: 12px;
    background-color: #ffffff;
    background-repeat: no-repeat;
    pointer-events: none;
}

/* Close button on the top right of the zoom popup */
.sd-product-zoom-popup .sd-zoom-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    color: #2b2b2b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
    pointer-events: auto !important;
}

.sd-product-zoom-popup .sd-zoom-close:hover {
    transform: scale(1.08);
    background: #fdfdfd;
    color: #000000;
}

.sd-product-zoom-popup .sd-zoom-close:focus-visible {
    outline: 2px solid #8a3fa8;
    outline-offset: 1px;
}

/* Shop listing cards preview */
.sd-product-zoom-popup:not(.is-main) {
    border-width: 2px;
    border-color: rgba(130, 92, 119, .25);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(40, 25, 35, .18);
    pointer-events: none;
}

.sd-product-zoom-popup:not(.is-main) .sd-zoom-view {
    border-radius: 8px;
}

.sd-product-zoom-popup:not(.is-main) .sd-zoom-close {
    display: none;
}

/* Translucent lens over the main photo */
.sd-zoom-lens {
    position: fixed;
    z-index: 19999;
    box-sizing: border-box;
    border: 2px solid rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.32);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity .1s ease, visibility .1s ease;
}

.sd-zoom-lens.is-visible {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 767px), (hover: none) {
    .sd-product-zoom-popup, .sd-zoom-lens {
        display: none !important;
    }
    .sd-hover-zoom-active {
        cursor: auto !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sd-product-zoom-popup, .sd-zoom-lens {
        transition: none !important;
    }
}
