.vpc-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #f8f9fa;
    border-radius: 20px;
    padding: 20px;
}

.vpc-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 15px;
    padding: 10px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.vpc-carousel::-webkit-scrollbar {
    display: none;
}

.vpc-slide {
    position: relative;
    flex: 0 0 auto;
    width: 300px;
    scroll-snap-align: start;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.vpc-slide:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

.vpc-video-container {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.vpc-slide video {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.vpc-slide:hover video {
    transform: scale(1.02);
}

/* Video controls */
.vpc-fullscreen-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.6);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 6;
}

.vpc-fullscreen-btn:hover {
    background: rgba(0,0,0,0.8);
    transform: scale(1.1);
}

.vpc-sound-indicator {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 5;
    cursor: pointer;
}

.vpc-sound-indicator:hover {
    background: rgba(0,0,0,0.8);
    transform: scale(1.1);
}

/* Overlay Layout */
.vpc-product-info.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.3));
    color: #fff;
    padding: 20px;
    border-radius: 0 0 15px 15px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 3;
}

/* Below Layout */
.vpc-product-info.below {
    position: relative;
    background: #ffffff;
    color: #333;
    padding: 20px;
    margin-top: 0;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.vpc-product-name {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vpc-price {
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.vpc-sale-price {
    color: #e74c3c;
    font-weight: 700;
    font-size: 18px;
}

.vpc-regular-price {
    text-decoration: line-through;
    color: #999;
    font-size: 14px;
    margin-left: 8px;
}

.vpc-discount {
    color: #27ae60;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
    background: rgba(39, 174, 96, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

.vpc-current-price {
    color: #e74c3c;
    font-weight: 700;
    font-size: 18px;
}

.vpc-buy-btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    z-index: 4;
    position: relative;
}

.vpc-buy-btn:hover {
    background: linear-gradient(135deg, #5a6fd8, #6a4190);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: #ffffff;
    text-decoration: none;
}

/* Navigation dots */
.vpc-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.vpc-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vpc-dot.active {
    background: #667eea;
    transform: scale(1.2);
}

.vpc-dot:hover {
    background: #999;
}

/* Full-screen modal */
.vpc-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vpc-modal-content {
    position: relative;
    width: 95%;
    height: 95%;
    max-width: 1400px;
    max-height: 900px;
}

.vpc-close-modal {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
    z-index: 10000;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Fullscreen carousel */
.vpc-fullscreen-carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 15px;
}

.vpc-fullscreen-carousel {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.vpc-fullscreen-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 30px;
    box-sizing: border-box;
}

.vpc-fullscreen-video-container {
    flex: 1;
    max-width: 60%;
    height: 100%;
}

.vpc-fullscreen-slide video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 15px;
    background: #000;
}

.vpc-fullscreen-product-info {
    flex: 1;
    max-width: 40%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vpc-product-details {
    background: rgba(255,255,255,0.95);
    padding: 40px;
    border-radius: 20px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.vpc-fs-product-name {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: #333;
    line-height: 1.3;
}

.vpc-fs-price {
    font-size: 18px;
    margin: 0 0 20px 0;
    line-height: 1.4;
}

.vpc-fs-sale-price {
    color: #e74c3c;
    font-weight: 700;
    font-size: 32px;
}

.vpc-fs-regular-price {
    text-decoration: line-through;
    color: #999;
    font-size: 20px;
    margin-left: 10px;
}

.vpc-fs-discount {
    color: #27ae60;
    font-size: 16px;
    font-weight: 600;
    margin-left: 10px;
    background: rgba(39, 174, 96, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
}

.vpc-fs-current-price {
    color: #e74c3c;
    font-weight: 700;
    font-size: 32px;
}

.vpc-fs-description {
    margin: 20px 0;
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

.vpc-fs-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.vpc-fs-buy-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    display: inline-block;
    text-align: center;
}

.vpc-fs-buy-btn:hover {
    background: linear-gradient(135deg, #5a6fd8, #6a4190);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.5);
    color: #ffffff;
    text-decoration: none;
}

.vpc-fs-view-btn {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
    padding: 12px 30px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.vpc-fs-view-btn:hover {
    background: #667eea;
    color: #ffffff;
    text-decoration: none;
}

/* Fullscreen navigation */
.vpc-fs-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    color: white;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.vpc-fs-nav:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-50%) scale(1.1);
}

.vpc-fs-nav-prev {
    left: 20px;
}

.vpc-fs-nav-next {
    right: 20px;
}

/* Fullscreen dots */
.vpc-fs-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
}

.vpc-fs-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.vpc-fs-dot.active {
    background: white;
    transform: scale(1.3);
}

.vpc-fs-dot:hover {
    background: rgba(255,255,255,0.7);
}

/* Auto-play animation */
.vpc-slide.auto-playing {
    animation: autoplayPulse 0.5s ease-in-out;
}

@keyframes autoplayPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* No videos message */
.vpc-no-videos {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
    border-radius: 15px;
    border: 2px dashed #dee2e6;
}

.vpc-no-videos p {
    color: #6c757d;
    font-size: 18px;
    margin: 0;
    font-weight: 500;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .vpc-slide {
        width: 280px;
    }
    
    .vpc-slide video {
        height: 420px;
    }
    
    .vpc-carousel-wrapper {
        padding: 15px;
    }
    
    .vpc-fullscreen-slide {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }
    
    .vpc-fullscreen-video-container,
    .vpc-fullscreen-product-info {
        max-width: 100%;
        flex: none;
    }
    
    .vpc-fullscreen-video-container {
        height: 50%;
    }
    
    .vpc-fullscreen-product-info {
        height: 50%;
    }
    
    .vpc-product-details {
        padding: 20px;
    }
    
    .vpc-fs-product-name {
        font-size: 22px;
    }
    
    .vpc-fs-sale-price {
        font-size: 24px;
    }
    
    /* MOBILE: Move close button lower and make it more accessible */
    .vpc-close-modal {
        top: 20px !important;
        right: 20px !important;
        background: rgba(0,0,0,0.8) !important;
        border-radius: 50% !important;
        font-size: 30px !important;
        width: 45px !important;
        height: 45px !important;
        box-shadow: 0 4px 15px rgba(0,0,0,0.3) !important;
    }
    
    /* MOBILE: Hide navigation arrows */
    .vpc-fs-nav {
        display: none !important;
    }
    
    /* MOBILE: Hide navigation dots */
    .vpc-fs-dots {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .vpc-slide {
        width: 240px;
    }
    
    .vpc-slide video {
        height: 360px;
    }
    
    .vpc-carousel-wrapper {
        padding: 10px;
        border-radius: 15px;
    }
    
    .vpc-fullscreen-slide {
        padding: 15px;
    }
    
    .vpc-product-details {
        padding: 15px;
    }
    
    /* MOBILE: Even better close button positioning for small screens */
    .vpc-close-modal {
        top: 15px !important;
        right: 15px !important;
        font-size: 28px !important;
        width: 42px !important;
        height: 42px !important;
    }
}

/* Tablet-specific adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    /* Show navigation on tablets */
    .vpc-fs-nav {
        display: flex !important;
    }
    
    .vpc-fs-dots {
        display: flex !important;
    }
    
    /* Keep close button in original position for tablets */
    .vpc-close-modal {
        top: -50px;
        right: 0;
        background: none;
        border-radius: 0;
        font-size: 40px;
        width: 50px;
        height: 50px;
        box-shadow: none;
    }
}
