.product-video-button-listing {
    position: absolute;
    bottom: 10px;
    left: 10px;
    z-index: 999;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    opacity: 0.8;
}

.product-video-button-listing:hover {
    background-color: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
    opacity: 1;
}

.product-miniature .product-list-reviews {
    position: absolute !important;
}

.video-thumbnails-popup-listing {
    position: absolute;
    bottom: 45px;
    left: 10px;
    z-index: 10000;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    padding: 8px;
    display: none;
    max-width: 220px;
    max-height: 160px;
    overflow-y: auto;
    font-size: 12px;
}

.video-thumbnails-popup-listing h5 {
    margin: 0 0 6px 0;
    font-size: 12px;
    color: #333;
    text-align: center;
}

.video-thumb-item-listing {
    display: inline-block;
    width: 55px;
    height: 35px;
    margin: 3px;
    cursor: pointer;
    position: relative;
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid #eee;
}

.video-thumb-item-listing img,
.video-thumb-item-listing .local-video-preview-listing {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-thumb-item-listing .video-overlay-popup-listing {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.video-thumb-item-listing:hover .video-overlay-popup-listing {
    opacity: 1;
}

.video-thumb-item-listing .video-overlay-popup-listing i {
    color: white;
    font-size: 14px;
}

#product-video-player-popup-global {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.product-video-player-content-global {
    width: 90%;
    max-width: 900px;
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.video-container-player-global {
    width: 100%;
    padding-top: 56.25%;
    background: #000;
    position: relative;
}

.video-container-player-global iframe,
.video-container-player-global video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

#close-product-video-player-global {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    transition: background 0.2s ease;
}

#close-product-video-player-global:hover {
    background: rgba(255, 255, 255, 0.3);
}
/* ================================================================
 * v1.2.8 - La insignia va sobre la imagen, no bajo el precio
 * ================================================================ */

/*
 * El botón y el desplegable originales se pintan dentro de
 * .product-description y se solapaban con los botones del theme. El JS los
 * retira; se ocultan también por CSS para que no parpadeen antes de que
 * arranque, y porque sin JS no hacían nada de todos modos.
 */
.product-video-button-listing,
.video-thumbnails-popup-listing {
    display: none !important;
}

.epv-listing-host {
    position: relative;
}

.epv-listing-trigger {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
    z-index: 4;
    display: block;
}

.epv-listing-trigger .epv-play-badge {
    opacity: .92;
}

.epv-listing-trigger:hover .epv-play-badge {
    background: rgba(0, 0, 0, .82);
    transform: translate(-50%, -50%) scale(1.08);
    opacity: 1;
}

.epv-listing-trigger:focus-visible {
    outline: 2px solid #2fb5d2;
    outline-offset: -2px;
}

.epv-listing-count {
    position: absolute;
    bottom: 8px;
    right: 8px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    background: rgba(0, 0, 0, .72);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 22px;
    text-align: center;
    pointer-events: none;
}
