/* video-gallery.css - FIXED VERSION */
.wpf-video-gallery-wrapper {
    width: 100%;
    padding: 40px 0;
}

/* SWIPER CONTAINER */
.wpf-swiper {
    width: 100%;
    height: 500px;
}

/* IMPORTANT: Force slides to be visible */
.swiper-slide {
    width: 300px !important;  /* Force width */
    height: 100% !important;  /* Force height */
    opacity: 1 !important;    /* Force visibility */
    visibility: visible !important;
}

.wpf-video-item {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.wpf-video-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #000;
}

.wpf-video-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 60px 20px 20px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

/* SWIPER NAVIGATION - IMPORTANT: These are for NEW Swiper */
.swiper-button-prev,
.swiper-button-next {
    background: white !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15) !important;
}

.swiper-button-prev:after,
.swiper-button-next:after {
    font-size: 20px !important;
    color: #333 !important;
    font-weight: bold !important;
}

.swiper-button-prev {
    left: 10px !important;
}

.swiper-button-next {
    right: 10px !important;
}

/* PAGINATION */
.swiper-pagination {
    bottom: 10px !important;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(0,0,0,0.3);
}

.swiper-pagination-bullet-active {
    background: #000;
}

.swiper-button-next, 
.swiper-button-prev {
    svg {
        height: 15px !important;
    }
}

/* Video buttons styling */
.wpf-video-buttons {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    gap: 10px;
    justify-content: center;
    padding: 0 20px;
    z-index: 10;
}

.wpf-view-product,
.wpf-add-to-cart {
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    flex: 1;
    max-width: 140px;
    text-align: center;
    line-height: 1;
}

.wpf-view-product {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: 2px solid #ddd;
}

.wpf-view-product:hover {
    background: white;
    border-color: #bbb;
    transform: translateY(-2px);
}

.wpf-add-to-cart {
    background: rgba(0, 123, 255, 0.9);
    color: white;
    border: 2px solid #0073aa;
}

.wpf-add-to-cart:hover {
    background: #0073aa;
    transform: translateY(-2px);
}

/* Adjust video to make room for buttons */
.wpf-video-item video {
    width: 100%;
    height: calc(100% - 70px); /* Leave space for buttons */
    object-fit: cover;
    display: block;
    background: #000;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .wpf-video-buttons {
        bottom: 15px;
        padding: 0 15px;
    }
    
    .wpf-view-product,
    .wpf-add-to-cart {
        padding: 8px 15px;
        font-size: 13px;
        max-width: 120px;
    }
    
    .wpf-video-item video {
        height: calc(100% - 60px);
    }
}

/* Hide pagination bullets for this implementation */
.swiper-horizontal>.swiper-pagination-bullets, 
.swiper-pagination-horizontal.swiper-pagination-bullets {
    display: none;
}

/* Fix button padding */
a.wpf-add-to-cart.button {
    padding-bottom: 7px;
}

/* Add padding to swiper container */
.swiper.wpf-swiper.swiper-initialized.swiper-horizontal.swiper-backface-hidden {
    padding: 10px;
}