/* Product listing page only (linked from product.aspx) — image zoom + lightbox */

.prod-list .new-shop-card-img {
    display: block;
    width: 100%;
    overflow: hidden;
    position: relative;
    cursor: zoom-in;
    background: #ffffff;
}

.prod-list .new-shop-card-img a {
    display: block;
    line-height: 0;
}

.prod-list .new-shop-card-img img {
    display: block;
    width: 100%;
    height: auto;
    transform: scale(1);
    transform-origin: center center;
    transition: transform 0.2s ease-out;
    will-change: transform, transform-origin;
    pointer-events: none;
}

.prod-list .new-shop-card-img.is-zooming img {
    transform: scale(1.75);
}

/* Full-screen lightbox */
.prod-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease, background 0.3s ease;
}

.prod-lightbox.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.88);
}

.prod-lightbox__inner {
    position: relative;
    max-width: min(92vw, 1100px);
    max-height: 90vh;
    transform: scale(0.92);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.prod-lightbox.is-open .prod-lightbox__inner {
    transform: scale(1);
    opacity: 1;
}

.prod-lightbox__img {
    display: block;
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    background: #fff;
    object-fit: contain;
    cursor: default;
}

.prod-lightbox__close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: #222;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 2;
    transition: transform 0.2s ease, background 0.2s ease;
}

.prod-lightbox__close:hover {
    background: #f0f0f0;
    transform: scale(1.06);
}

@media (max-width: 600px) {
    .prod-lightbox {
        padding: 16px;
    }

    .prod-lightbox__close {
        top: -10px;
        right: -6px;
    }
}
