/* Custom Image Magnify Effect - E-commerce Style */
.magnify-container {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: zoom-in;
}

.bigView a.fullVeiw {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    cursor: zoom-in;
}

.magnify-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
    pointer-events: none;
}

.magnify-lens {
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 120px;
    height: 120px;
    pointer-events: none;
    display: none;
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1), 
                0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 100;
    background-repeat: no-repeat;
    background-size: 200% 200%;
    background-position: 0 0;
    cursor: zoom-in;
    margin: 0;
    padding: 0;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    background-color: rgba(255, 255, 255, 0.2);
}

.magnify-result {
    position: absolute;
    width: 400px;
    height: 400px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    display: none;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    background-color: #fff;
    background-repeat: no-repeat;
    background-size: 200% 200%;
    background-position: 0 0;
    margin: 0;
    padding: 0;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

/* When inside pro-details-summery-view */
.pro-details-summery-view {
    position: relative;
}

.pro-details-summery-view .magnify-result {
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100%;
    height: 100%;
}

/* Fallback for body positioning */
body > .magnify-result {
    position: fixed;
    top: 0;
    right: -420px;
}

body > .magnify-result.magnify-left {
    /* right: auto; */
    /* left: -420px; */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .magnify-result {
        width: 300px;
        height: 300px;
        right: -320px;
    }
    
    .magnify-container.magnify-left .magnify-result {
        left: -320px;
    }
}

@media (max-width: 768px) {
    .magnify-result {
        display: none !important;
    }
    
    .magnify-lens {
        width: 100px;
        height: 100px;
    }
    
    .magnify-container {
        cursor: default;
    }
}

/* Smooth transitions */
.magnify-lens,
.magnify-result {
    transition: opacity 0.2s ease, visibility 0.2s ease;
}
