/* Lightbox Add to Cart Button */
.lightbox-add-to-cart {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.8);
    border: none;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1002;
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
}

.lightbox-add-to-cart:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.lightbox-add-to-cart:active {
    transform: scale(0.95);
}

.lightbox-add-to-cart svg {
    width: 20px;
    height: 20px;
}

/* Lightbox Zoom Controls */
.lightbox-zoom-controls {
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    border-radius: 25px;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1002;
    backdrop-filter: blur(10px);
}

.lightbox-zoom-controls button {
    background: transparent;
    border: none;
    color: white;
    font-size: 20px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.lightbox-zoom-controls button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-zoom-controls button:active {
    transform: scale(0.9);
}

.zoom-level {
    color: white;
    font-size: 14px;
    font-weight: 500;
    min-width: 50px;
    text-align: center;
    user-select: none;
}

.zoom-reset {
    margin-left: 10px;
    font-size: 18px !important;
}

/* Lightbox image wrapper for zoom */
.lightbox-image-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* Container that holds both image and watermark together */
.lightbox-image-container {
    position: relative;
    display: inline-block;
    transform-origin: center center;
}

.lightbox-image {
    transition: none; /* No transition for instant response */
    transform-origin: center center;
    user-select: none;
    -webkit-user-drag: none;
}

.lightbox-image.zooming {
    cursor: grab;
}

.lightbox-image.panning {
    cursor: grabbing;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .lightbox-zoom-controls {
        bottom: 80px;
    }
}