/* Product Video PLP Styles */

.product-video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.product-plp-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.8s ease;
}

/* Fade out video when ending (for non-loop) */
.product-plp-video.fading-out {
    opacity: 0;
}

/* Fallback image */
.product-fallback-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.product-fallback-image.show {
    opacity: 1;
    z-index: 1;
}

.product-fallback-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Play icon - informational, always visible */
.product-video-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

/* Triangle play arrow */
.product-video-icon::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 5px 0 5px 9px;
    border-color: transparent transparent transparent #333;
    margin-left: 2px;
}

/* Hide icon on hover (video is playing) */
.azooga-product-item:hover .product-video-icon {
    opacity: 0;
}
