/* =========================
   CONTENEDOR RELATIVO
   (necesario para el icono)
========================= */
.woocommerce ul.products li.product,
.woocommerce div.product div.images {
    position: relative;
}

/* =========================
   ICONO DE MEDIDAS
========================= */
.mpl-icono-medidas {
    position: absolute;
    top: 20px;               /* separación superior */
    left: 15px;
    width: 42px;
    height: 42px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 50;             /* por encima del link de WC */
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    pointer-events: auto;    /* asegura que reciba el click */
}

.mpl-icono-medidas img {
    width: 22px;
    height: 22px;
    display: block;
}

/* Hover */
.mpl-icono-medidas:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

/* =========================
   LIGHTBOX
========================= */
.mpl-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    animation: mplFadeIn 0.2s ease;
}

.mpl-lightbox img {
    max-width: 90%;
    max-height: 90%;
    background: #ffffff;
    padding: 10px;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

/* Animación */
@keyframes mplFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
