/* Visor de imÃ¡genes compartido por categorÃ­as y productos */

.product-image-open{
    position:relative;
    width:100%;
    height:100%;
    padding:0;
    border:0;
    background:transparent;
    cursor:zoom-in;
}

.category-product-image-open{
    position:relative;
    display:grid;
    place-items:center;
    width:100%;
    height:100%;
    padding:0;
    border:0;
    background:transparent;
    cursor:zoom-in;
}

.product-image-zoom-hint{
    position:absolute;
    right:10px;
    bottom:10px;
    padding:7px 10px;
    border-radius:30px;
    color:#fff;
    background:rgba(16,42,67,.88);
    font-size:.68rem;
    font-weight:850;
    opacity:0;
    transform:translateY(4px);
    transition:opacity .18s ease,transform .18s ease;
}

.product-image-open:hover .product-image-zoom-hint,
.product-image-open:focus-visible .product-image-zoom-hint,
.category-product-image-open:hover .product-image-zoom-hint,
.category-product-image-open:focus-visible .product-image-zoom-hint{
    opacity:1;
    transform:translateY(0);
}

.product-image-open:focus-visible{
    outline:3px solid rgba(217,163,43,.65);
    outline-offset:4px;
}

.category-product-image-open:focus-visible{
    outline:3px solid rgba(217,163,43,.65);
    outline-offset:-3px;
}

.lightbox-open{
    overflow:hidden;
}

.product-lightbox{
    width:min(96vw,1400px);
    height:min(94vh,1000px);
    max-width:none;
    max-height:none;
    padding:0;
    border:0;
    overflow:visible;
    background:transparent;
}

.product-lightbox::backdrop{
    background:rgba(5,16,25,.88);
    backdrop-filter:blur(4px);
}

.product-lightbox-panel{
    position:relative;
    display:grid;
    width:100%;
    height:100%;
    padding:24px 70px 18px;
    border-radius:14px;
    color:#fff;
    background:#fff;
    box-shadow:0 30px 90px rgba(0,0,0,.45);
}

.product-lightbox figure{
    display:grid;
    grid-template-rows:minmax(0,1fr) auto;
    min-width:0;
    min-height:0;
    margin:0;
}

.product-lightbox figure img{
    width:100%;
    height:100%;
    min-height:0;
    object-fit:contain;
}

.product-lightbox figcaption{
    padding-top:10px;
    color:#475467;
    font-size:.76rem;
    font-weight:750;
    text-align:center;
}

.product-lightbox-close,
.product-lightbox-nav{
    position:absolute;
    z-index:2;
    display:grid;
    place-items:center;
    border:0;
    border-radius:50%;
    color:#fff;
    background:rgba(16,42,67,.92);
    cursor:pointer;
}

.product-lightbox-nav[hidden]{
    display:none;
}

.product-lightbox-close{
    top:12px;
    right:12px;
    width:42px;
    height:42px;
    font-size:1.8rem;
    line-height:1;
}

.product-lightbox-nav{
    top:50%;
    width:48px;
    height:64px;
    border-radius:9px;
    font-size:2.3rem;
    transform:translateY(-50%);
}

.product-lightbox-prev{
    left:12px;
}

.product-lightbox-next{
    right:12px;
}

.product-lightbox-close:hover,
.product-lightbox-nav:hover{
    background:var(--accent-dark);
}

.product-lightbox-close:focus-visible,
.product-lightbox-nav:focus-visible{
    outline:3px solid var(--accent);
    outline-offset:3px;
}

@media(max-width:700px){
.product-lightbox{
        width:100vw;
        height:100vh;
    }

    .product-lightbox-panel{
        padding:58px 12px 50px;
        border-radius:0;
    }

    .product-lightbox-nav{
        top:auto;
        bottom:8px;
        width:44px;
        height:38px;
        transform:none;
    }

    .product-lightbox-prev{
        left:calc(50% - 52px);
    }

    .product-lightbox-next{
        right:calc(50% - 52px);
    }
}
