/* WooCommerce Product Video Gallery Pro - Frontend Styles */
.wcvgp-product-gallery {
    position: relative;
    width: 100%;
    margin-bottom: 1.5em;
}
.wcvgp-gallery {
    position: relative;
    overflow: hidden;
}
.wcvgp-gallery-item {
    position: relative;
    overflow: hidden;
    line-height: 0;
}
.wcvgp-gallery-item img {
    width: 100%;
    height: auto;
    transition: opacity 0.3s ease;
}
.wcvgp-thumbnail-wrap {
    position: relative;
    cursor: pointer;
}
.wcvgp-video-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    line-height: 1;
}
.wcvgp-thumbnail-wrap:hover .wcvgp-video-icon {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0.9;
}
.wcvgp-video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}
.wcvgp-video-container iframe,
.wcvgp-video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.wcvgp-popup-button {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    color: #fff;
    background: rgba(0,0,0,0.5);
    border-radius: 4px;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.wcvgp-popup-button:hover {
    opacity: 1;
    color: #fff;
}
.wcvgp-gallery-image {
    width: 100%;
    height: auto;
}
.wcvgp-video-wrapper {
    position: relative;
}
.wcvgp-video-iframe {
    width: 100%;
    height: 100%;
    border: 0;
}
.wcvgp-video-element {
    width: 100%;
    height: auto;
    display: block;
}
.wcvgp-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.wcvgp-thumb-item {
    position: relative;
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}
.wcvgp-thumb-item:hover,
.wcvgp-thumb-item.active {
    border-color: #007cba;
}
.wcvgp-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.wcvgp-thumb-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.8;
}
.wcvgp-thumbnails-vertical {
    flex-direction: column;
}
.wcvgp-popup-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.wcvgp-tab-gallery {
    padding: 15px 0;
}
.wcvgp-shortcode-video {
    margin-bottom: 1em;
}
.wcvgp-shortcode-gallery {
    margin-bottom: 1.5em;
}
.wcvgp-lazy-load .wcvgp-video-container {
    background: #f0f0f0;
}
.wcvgp-product-gallery .swiper {
    width: 100%;
    overflow: hidden;
}
.wcvgp-slider-main .swiper-slide {
    position: relative;
}
.wcvgp-slider-thumbs {
    margin-top: 10px;
}
.wcvgp-slider-thumbs .swiper-slide {
    width: 80px;
    height: 80px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}
.wcvgp-slider-thumbs .swiper-slide-thumb-active {
    opacity: 1;
}
.wcvgp-slider-thumbs .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}
.wcvgp-slider-thumbs-vertical {
    height: 400px;
}
.wcvgp-vertical-layout {
    display: flex;
    gap: 10px;
}
.wcvgp-thumbs-column {
    flex: 0 0 100px;
    order: 0;
}
.wcvgp-main-column {
    flex: 1;
    min-width: 0;
}
.wcvgp-grid {
    display: grid;
    grid-template-columns: repeat(var(--wcvgp-grid-columns, 3), 1fr);
    gap: 10px;
}
.wcvgp-carousel .swiper-slide {
    height: auto;
}
.wcvgp-floating-trigger {
    position: fixed;
    z-index: 9999;
}
.wcvgp-floating-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #007cba;
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}
.wcvgp-floating-btn:hover {
    transform: scale(1.1);
}
.wcvgp-floating-window {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 360px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    z-index: 9998;
    overflow: hidden;
}
.wcvgp-floating-header {
    display: flex;
    justify-content: flex-end;
    padding: 8px;
    background: #f5f5f5;
}
.wcvgp-floating-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0 4px;
    line-height: 1;
}
.wcvgp-floating-content {
    padding: 0;
}
.wcvgp-floating-content .wcvgp-video-wrapper {
    width: 100%;
}
.wcvgp-modal-wrapper {
    display: inline-block;
}
.wcvgp-modal {
    display: none;
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    align-items: center;
    justify-content: center;
}
.wcvgp-modal.active {
    display: flex;
}
.wcvgp-modal-content {
    position: relative;
    width: 80%;
    max-width: 900px;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}
.wcvgp-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 1;
    line-height: 1;
}
.wcvgp-modal-body {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}
.wcvgp-modal-body iframe,
.wcvgp-modal-body video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.wcvgp-fullscreen-overlay {
    display: none;
}
.wcvgp-fullscreen-overlay.active {
    display: block;
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: #000;
}

@media (max-width: 768px) {
    .wcvgp-vertical-layout {
        flex-direction: column;
    }
    .wcvgp-thumbs-column {
        flex: 0 0 auto;
        order: 1;
    }
    .wcvgp-slider-thumbs-vertical {
        height: auto;
    }
    .wcvgp-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .wcvgp-floating-window {
        width: 100%;
        bottom: 0;
        right: 0;
        border-radius: 0;
    }
    .wcvgp-thumb-item {
        width: 60px;
        height: 60px;
    }
    .wcvgp-modal-content {
        width: 95%;
    }
}

@media (max-width: 480px) {
    .wcvgp-grid {
        grid-template-columns: 1fr;
    }
}
