#imageViewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#imageViewer.active {
    display: flex;
    opacity: 1;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.image-viewer-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    cursor: zoom-out;
}

.image-viewer-backdrop:hover {
    background: rgba(0, 0, 0, 0.95);
}

.image-viewer-content {
    position: relative;
    margin: auto;
    max-width: 90%;
    max-height: 90vh;
    z-index: 10000;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.image-viewer-content img {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8),
                0 0 100px rgba(0, 212, 255, 0.3);
    border: 3px solid rgba(0, 212, 255, 0.5);
    object-fit: contain;
    cursor: zoom-out;
}

.image-viewer-content img:hover {
    border-color: rgba(0, 212, 255, 0.8);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.9),
                0 0 120px rgba(0, 212, 255, 0.5);
}

@media (max-width: 768px) {
    .image-viewer-content {
        max-width: 95%;
    }
}

img.product-image,
img.order-image,
img.item-image {
    cursor: zoom-in !important;
    transition: all 0.3s ease !important;
}

img.product-image:hover,
img.order-image:hover,
img.item-image:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4) !important;
    filter: brightness(1.1) !important;
}

/* Override gallery-specific styles */
.product-card img.product-image {
    cursor: zoom-in !important;
    transition: all 0.3s ease !important;
}

.product-card img.product-image:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4) !important;
    filter: brightness(1.1) !important;
    border-color: rgba(0, 212, 255, 0.8) !important;
}

