/* WooCommerce Video Feed Styles */
.woo-video-feed-container {
    position: relative;
    height: 100vh;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    overscroll-behavior: contain;
    /* Mejorar rendimiento de desplazamiento */
    -webkit-transform: translate3d(0,0,0);
    transform: translate3d(0,0,0);
    backface-visibility: hidden;
    perspective: 1000px;
    will-change: scroll-position;
    max-width: 100%;
    margin: 0 auto;
}

/* Floating navigation removed (mute button removed) */

/* Estilos para móviles */
@media (max-width: 768px) {
    .woo-video-feed-container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .video-controls {
        top: 15px;
        right: 10px;
    }
    
    .control-button {
        width: 40px;
        height: 40px;
    }
    
    .nav-button {
        width: 32px;
        height: 32px;
    }
    
    .video-slide {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .video-container, 
    .video-wrapper {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Ocultar barra de desplazamiento en WebKit (Chrome, Safari) */
.woo-video-feed-container::-webkit-scrollbar {
    display: none;
}

.video-slide {
    position: relative;
    height: 100vh;
    width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    background-color: #000;
    overflow: hidden;
    /* Mejorar rendimiento */
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
    will-change: transform;
    /* Asegurar que el contenedor tenga un tamaño mínimo */
    min-height: 100vh;
}

.video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    overflow: hidden;
}

.video-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    overflow: hidden;
}

.video-container iframe {
    aspect-ratio: 9/16;
    width: 100vw;
    height: auto;
    max-height: 100vh;
    min-height: 0;
    min-width: 0;
    display: block;
    background: #000;
    border: 0;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: #fff;
    z-index: 3;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 4rem; /* Espacio para el indicador de gestos */
}

@media (max-width: 768px) {
    .video-overlay {
        align-items: flex-start;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

.video-title {
    font-size: 1.5rem;
    margin: 0 0 0.5rem 0;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.video-category {
    font-size: 0.875rem;
    margin: 0 0 1rem 0;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.video-category a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.video-category a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .video-title {
        font-size: 1.25rem;
        text-align: left;
        width: 100%;
    }
    
    .video-category {
        font-size: 0.8rem;
        text-align: left;
        width: 100%;
    }
}

.buy-now-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #A68D60;
    color: white !important;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 1px;
    transition: background-color 0.3s ease, color 0.3s ease;
    pointer-events: auto;
}

.buy-now-button:hover {
    background-color: #ffffff;
    color: #000000 !important;
}

@media (max-width: 768px) {
    .buy-now-button {
        background-color: #A68D60;
        color: white !important;
        padding: 0.6rem 1.2rem;
        font-size: 0.7rem;
        width: 70%;
        text-align: center;
    }
    
    .buy-now-button:hover {
        background-color: #ffffff;
        color: #000000 !important;
    }
}

/* Touch Feedback */
.touch-feedback {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    pointer-events: none;
    z-index: 1000;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    opacity: 0;
}

.touch-feedback.active {
    animation: touch-feedback 0.6s ease-out;
    opacity: 1;
}

@keyframes touch-feedback {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0.5;
    }
    50% {
        opacity: 0.3;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* Video Controls */
.video-controls {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.control-button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    color: #000;
    padding: 0;
}

.control-button:hover {
    background: #fff;
    transform: scale(1.1);
}

.control-button:active {
    transform: scale(0.95);
}

/* mute-button styles removed */

.nav-buttons {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nav-button {
    width: 36px;
    height: 36px;
}

/* mute-related icons removed */

/* Navigation Hints */
.navigation-hint {
    position: fixed;
    left: 0;
    right: 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    padding: 15px;
    font-size: 14px;
    z-index: 10;
    pointer-events: none;
    transition: opacity 0.3s ease;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, transparent 100%);
}

.navigation-hint.top {
    top: 0;
    padding-top: 30px;
}

.navigation-hint.bottom {
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 100%);
    padding-bottom: 30px;
}

.navigation-hint i {
    display: block;
    font-size: 24px;
    margin-bottom: 5px;
}

/* Loading spinner: render as overlay without affecting slide layout */
.video-slide.video-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    z-index: 10;
    pointer-events: none;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}



/* Navigation hints */
.navigation-hint {
    position: absolute;
    left: 0;
    right: 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    padding: 10px 0;
    z-index: 10;
    transition: opacity 0.3s ease;
    pointer-events: none;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.navigation-hint.top {
    top: 20px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 100%);
    padding-top: 30px;
}

.navigation-hint.bottom {
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 100%);
    padding-bottom: 60px;
}

.navigation-hint i {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

/* Touch feedback */
.touch-feedback {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 5;
}

.touch-feedback.active {
    opacity: 1;
}

/* Scroll indicator */
.scroll-indicator {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 2rem;
    animation: bounce 2s infinite;
    z-index: 100;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-20px) translateX(-50%); }
    60% { transform: translateY(-10px) translateX(-50%); }
}

/* Video Player Controls Panel - Bottom Right */
.video-player-controls {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 500;
}

.controls-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(255, 255, 255, 0.8);
    padding: 10px;
    border-radius: 8px;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.player-control-btn {
    width: 50px;
    height: 50px;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #000;
    padding: 0;
    font-size: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.player-control-btn:hover {
    background: #fff;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.player-control-btn:active {
    transform: scale(0.95);
}

.player-control-btn.disabled,
.player-control-btn[disabled] {
    opacity: 0.5;
    pointer-events: none;
    transform: none;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .video-player-controls {
        bottom: 15px;
        right: 15px;
    }
    
    .player-control-btn {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}
