/* Video Modal Styles */
.product-video-modal {
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.product-video-modal-content {
    position: relative;
    margin: 5% auto;
    width: 90%;
    max-width: 1200px;
}

.product-video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
    z-index: 1000000;
}

.product-video-modal-close:hover,
.product-video-modal-close:focus {
    color: #ccc;
}

.product-video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: #000;
}

.product-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Video Thumbnail Styling */
.woo-product-video-thumbnail {
    position: relative;
    display: block;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.flex-control-thumbs li .woo-product-video-thumbnail {
    width: 100%;
    height: 100%;
}

.woo-product-video-thumbnail:hover {
    opacity: 0.9;
}

.woo-product-video-thumbnail img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Video Play Icon Overlay */
.woo-product-video-thumbnail .video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    z-index: 10;
    transition: all 0.3s ease;
}

.woo-product-video-thumbnail:hover .video-play-icon {
    transform: translate(-50%, -50%) scale(1.2);
    color: #fff;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .product-video-modal-content {
        width: 95%;
        margin: 10% auto;
    }

    .product-video-modal-close {
        top: -35px;
        font-size: 35px;
    }

    .woo-product-video-thumbnail .video-play-icon {
        font-size: 36px;
    }
}
