/**
 * @Fernando Soares
 * CSS personalizado para o componente slider
 * Este arquivo contém estilos para o slider, incluindo layout, animações e design responsivo
 * Adaptado para funcionar com vídeos e imagens
 */

.slider-fullscreen {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.slider-container {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
}

.slide.active {
    display: flex;
    animation: fadeIn 1s ease-in-out;
}

.tf-slideshow video, 
.tf-slideshow img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: rgba(255, 255, 255, 1);
}

/* Fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}


/**
 * @Fernando Soares
 * CSS personalizado site
 */

 
.home-video iframe { width: 80% !important; height: 700px !important; margin: 0 auto !important; }

.wrap-carousel .nav-prev-slider { right: -60px; }
.wrap-carousel .nav-next-slider { left: -60px; }

.footer .footer-newsletter form input {
    padding-right: 20px;
}



@media (max-width: 768px) {
    .product-view .grid-layout {
        grid-template-columns: repeat(2, 1fr) !important; /* 2 colunas */
    }

    .home-video iframe { width: 100% !important; height: 450px !important; margin: 0 auto !important; }
    .video-iframe-produto iframe { width: 100% !important; height: 450px !important; margin: 0 auto !important; }

    .tf-slideshow-page .wrap-slider {
        height: initial !important;
    }
}

@media (max-width: 575px) {
    .product-view .grid-layout {
        grid-template-columns: 1fr !important; /* Apenas 1 produto por linha */
    }

    .home-video iframe { width: 100% !important; height: 350px !important; margin: 0 auto !important; }
    .video-iframe-produto iframe { width: 100% !important; height: 350px !important; margin: 0 auto !important; }

    .slider-fullscreen {
        height: 44vh;
    }
}

