/* Frontend Styles for WooCommerce Video Carousel */

.wvc-carousel-wrapper {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
}

.wvc-carousel-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin: 0 0 30px 0;
    color: #000;
}

/* Carousel Container */
.wvc-carousel {
    position: relative;
    margin: 0 -10px;
}

.wvc-slide {
    padding: 0 10px;
    outline: none;
}

/* Video Container */
.wvc-video-container {
    position: relative;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 9/16;
}

.wvc-video-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.wvc-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Product Overlay */
.wvc-product-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 50%, transparent 100%);
    padding: 20px 15px 15px;
    display: flex;
    align-items: flex-end;
    gap: 12px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.wvc-video-container:hover .wvc-product-overlay {
    opacity: 1;
}

.wvc-product-thumbnail {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

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

.wvc-product-info {
    flex: 1;
    min-width: 0;
}

.wvc-product-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 5px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wvc-product-price {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.wvc-product-price del {
    opacity: 0.7;
    margin-right: 5px;
}

.wvc-product-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    text-indent: -9999px;
    cursor: pointer;
}

/* Slick Carousel Customization */
.wvc-carousel .slick-arrow {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 100;
    transition: all 0.3s ease;
}

.wvc-carousel .slick-arrow:hover {
    background: #fff;
    transform: scale(1.1);
}

.wvc-carousel .slick-arrow::before {
    font-size: 24px;
    color: #333;
    opacity: 1;
}

.wvc-carousel .slick-prev {
    left: -25px;
}

.wvc-carousel .slick-next {
    right: -25px;
}

.wvc-carousel .slick-prev:hover,
.wvc-carousel .slick-next:hover {
    background: #fff;
}

.wvc-carousel .slick-disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Dots */
.wvc-carousel .slick-dots {
    bottom: -40px;
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.wvc-carousel .slick-dots li {
    width: auto;
    height: auto;
    margin: 0;
}

.wvc-carousel .slick-dots li button {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 50%;
    background: #d9d9d9;
    border: none;
    transition: all 0.3s ease;
}

.wvc-carousel .slick-dots li button::before {
    display: none;
}

.wvc-carousel .slick-dots li:hover button {
    background: #999;
}

.wvc-carousel .slick-dots li.slick-active button {
    width: 24px;
    border-radius: 5px;
    background: #333;
}

/* Loading State */
.wvc-carousel.loading {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wvc-carousel.loading::before {
    content: "Loading videos...";
    font-size: 18px;
    color: #666;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .wvc-carousel .slick-prev {
        left: 10px;
    }
    
    .wvc-carousel .slick-next {
        right: 10px;
    }
}

@media (max-width: 768px) {
    .wvc-carousel-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .wvc-carousel-wrapper {
        padding: 0 10px;
    }
    
    .wvc-slide {
        padding: 0 5px;
    }
    
    .wvc-carousel .slick-arrow {
        width: 40px;
        height: 40px;
    }
    
    .wvc-carousel .slick-arrow::before {
        font-size: 18px;
    }
    
    .wvc-product-overlay {
        padding: 15px 10px 10px;
    }
    
    .wvc-product-thumbnail {
        width: 50px;
        height: 50px;
    }
    
    .wvc-product-title {
        font-size: 12px;
    }
    
    .wvc-product-price {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .wvc-carousel .slick-prev,
    .wvc-carousel .slick-next {
        width: 35px;
        height: 35px;
    }
    
    .wvc-carousel .slick-arrow::before {
        font-size: 16px;
    }
    
    .wvc-carousel .slick-prev {
        left: 5px;
    }
    
    .wvc-carousel .slick-next {
        right: 5px;
    }
}

/* Accessibility */
.wvc-video:focus {
    outline: 2px solid #2196f3;
    outline-offset: 2px;
}

.wvc-product-link:focus {
    outline: 2px solid #2196f3;
    outline-offset: -2px;
}

/* Print Styles */
@media print {
    .wvc-carousel .slick-arrow,
    .wvc-carousel .slick-dots {
        display: none !important;
    }
}