#mm-product-lightbox-link {
    display: block;
    width: 100%;
    height: 100%;
    cursor: zoom-in;
}

.mm-custom-lightbox {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    user-select: none;
}

.mm-custom-lightbox-content {
    max-width: 85%;
    max-height: 85%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.mm-custom-lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.mm-custom-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 1000001;
}

.mm-custom-lightbox-close:hover {
    color: #bbb;
}

.mm-custom-lightbox-prev,
.mm-custom-lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    border: none;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, transform 0.2s;
    z-index: 1000001;
    outline: none;
}

.mm-custom-lightbox-prev:hover,
.mm-custom-lightbox-next:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) scale(1.1);
    color: #fff;
}

.mm-custom-lightbox-prev {
    left: 30px;
}

.mm-custom-lightbox-next {
    right: 30px;
}

@media (max-width: 576px) {
    .mm-custom-lightbox-prev {
        left: 15px;
    }
    .mm-custom-lightbox-next {
        right: 15px;
    }
    .mm-custom-lightbox-close {
        top: 15px;
        right: 20px;
        font-size: 35px;
    }
}

.mm-product-main-image {
    position: relative;
}

.mm-product-main-image.mm-image-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 45px;
    height: 45px;
    margin: -22px 0 0 -22px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top-color: #0284c7;
    border-radius: 50%;
    animation: mm-spinner 0.6s linear infinite;
    z-index: 10;
}

.mm-product-main-image.mm-image-loading img {
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.mm-custom-lightbox-content {
    position: relative;
}

.mm-custom-lightbox-content.mm-image-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 45px;
    height: 45px;
    margin: -22px 0 0 -22px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: mm-spinner 0.6s linear infinite;
    z-index: 10;
}

@keyframes mm-spinner {
    to { transform: rotate(360deg); }
}
