/* ============================================
   WooCommerce Video Product Carousel
   Styles
   ============================================ */

/* Container */
.wc-video-carousel-wrapper {
    position: relative;
    width: 100%;
    padding: 0 50px;
    box-sizing: border-box;
    overflow: hidden;
}

/* Carousel track */
.wc-video-carousel {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    padding: 10px 0;
    gap: 16px;
    scroll-snap-type: x mandatory;
}

.wc-video-carousel::-webkit-scrollbar {
    display: none;
}

/* Individual Card */
.wc-video-card {
    flex: 0 0 280px;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    scroll-snap-align: start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 500px;
    max-height: 500px;
}

.wc-video-card:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* Video Container */
.wc-video-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

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

/* Play/Pause Overlay */
.wc-video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wc-video-card:hover .wc-video-overlay {
    opacity: 0.8;
}

.wc-play-icon {
    width: 56px;
    height: 56px;
}

.wc-play-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

/* Product Info Card (bottom overlay) */
.wc-product-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0;
    z-index: 2;
}

.wc-product-info-inner {
    background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.98) 100%);
    padding: 14px 16px;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

/* Product Thumbnail */
.wc-product-thumb {
    float: left;
    width: 56px;
    height: 56px;
    border-radius: 10px;
    overflow: hidden;
    margin-right: 12px;
    background: #f5f5f5;
    flex-shrink: 0;
}

.wc-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Details */
.wc-product-details {
    overflow: hidden;
}

.wc-product-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
    line-height: 1.3;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.wc-product-name:hover {
    color: #2d7a3a;
}

.wc-product-price {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #2d7a3a;
    line-height: 1.3;
}

.wc-product-price del {
    color: #999;
    font-weight: 400;
    margin-right: 6px;
    font-size: 12px;
}

.wc-product-price ins {
    text-decoration: none;
    color: #2d7a3a;
    font-weight: 700;
}

/* Add to Cart Actions */
.wc-product-actions {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    clear: both;
}

.wc-cart-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #2d7a3a;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    text-transform: uppercase;
}

.wc-cart-btn:hover {
    background: #1e5a28;
    transform: translateY(-1px);
}

.wc-cart-btn.wc-out-of-stock {
    background: #666;
    cursor: default;
}

.wc-cart-btn.wc-out-of-stock:hover {
    background: #666;
    transform: none;
}

/* Mini cart button */
.wc-add-to-cart-ajax {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #2d7a3a;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    flex-shrink: 0;
}

.wc-add-to-cart-ajax svg {
    width: 18px;
    height: 18px;
}

.wc-add-to-cart-ajax:hover {
    background: #1e5a28;
    transform: translateY(-1px);
}

.wc-add-to-cart-ajax.loading {
    background: #999;
    pointer-events: none;
}

.wc-add-to-cart-ajax.added {
    background: #4caf50;
}

/* Loading spinner */
.wc-loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: wc-spin 0.6s linear infinite;
}

@keyframes wc-spin {
    to { transform: rotate(360deg); }
}

/* Navigation Arrows */
.wc-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: background 0.2s ease, transform 0.15s ease, opacity 0.2s ease;
    color: #1a1a1a;
}

.wc-carousel-nav svg {
    width: 20px;
    height: 20px;
}

.wc-carousel-nav:hover {
    background: #ffffff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

.wc-carousel-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.wc-nav-prev {
    left: 0;
}

.wc-nav-next {
    right: 0;
}

/* Notice */
.wc-video-carousel-notice {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
    background: #f9f9f9;
    border-radius: 12px;
}

/* Responsive */
@media (max-width: 1200px) {
    .wc-video-card {
        flex: 0 0 260px;
        height: 460px;
    }
}

@media (max-width: 768px) {
    .wc-video-carousel-wrapper {
        padding: 0 16px;
    }

    .wc-video-card {
        flex: 0 0 260px;
        height: 420px;
    }

    .wc-carousel-nav {
        width: 36px;
        height: 36px;
    }

    .wc-carousel-nav svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    .wc-video-card {
        flex: 0 0 240px;
        height: 380px;
    }

    .wc-product-info-inner {
        padding: 10px 12px;
    }

    .wc-product-thumb {
        width: 48px;
        height: 48px;
    }

    .wc-product-name {
        font-size: 12px;
    }

    .wc-product-price {
        font-size: 12px;
    }
}
