/* --- CÓDIGO CSS FINAL (ULTRA ZOOM + CORTE DE BARRAS) --- */

.video-hero-container {
    position: relative !important;
    width: 100% !important;
    
    /* MUDANÇA 1: Altura reduzida para 45%. 
       Isso "fatia" as barras pretas e o excesso de cima e baixo. */
    padding-bottom: 45%; 
    
    height: 0 !important;
    overflow: hidden !important; /* Corta tudo que vazar */
    margin: 0 0 20px 0 !important;
    z-index: 1;
    pointer-events: none; /* Bloqueia cliques */
    background: #fff; /* Fundo branco evita flash preto */
}

.video-hero-iframe {
    position: absolute;
    /* MUDANÇA 2: Ajuste fino de posição para centralizar melhor o corte */
    top: -15%; 
    left: 0;
    width: 100%;
    height: 130%; /* Compensa o topo negativo */
    z-index: 1;
    
    /* MUDANÇA 3: ZOOM AUMENTADO PARA 1.6 (160%)
       Isso garante que o título do YouTube seja empurrado para fora da tela */
    transform: scale(1.6); 
    transform-origin: center center;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    background: transparent;
    pointer-events: auto;
    cursor: default;
}

/* Ajuste para Celular (Mobile) */
@media (max-width: 767px) {
    .video-hero-container {
        /* No celular precisamos de mais altura, mas mantendo o corte */
        padding-bottom: 75%; 
    }
    .video-hero-iframe {
        top: 0;
        height: 100%;
        /* Zoom ainda maior no celular para esconder a barra do YouTube que é grande */
        transform: scale(1.7); 
    }
}
/* --- FIM DO CÓDIGO CSS --- */


/* --- CSS CARROSSEL FINAL (LIMPO E ESTÁVEL) --- */

.sp-final-stable-section {
    width: 100%;
    max-width: 1140px;
    margin: 60px auto 80px auto;
    padding: 0;
    display: block; clear: both;
}

/* Título */
.sp-final-header { text-align: center; margin-bottom: 40px; }
.sp-tape-style h2 {
    display: inline-block; background: #C62828; color: #fff;
    font-size: 26px; font-weight: 900; text-transform: uppercase;
    padding: 10px 40px; transform: rotate(-1deg);
    box-shadow: 4px 4px 0 rgba(0,0,0,0.2);
}
.sp-subtitle-text {
    margin-top: 15px; font-size: 22px; font-weight: 800;
    color: #C62828; text-transform: uppercase; letter-spacing: 2px;
}

/* CONTAINER PRINCIPAL E SETAS */
.sp-final-wrapper {
    position: relative;
    padding: 0 50px; /* Espaço para as setas flutuarem */
}

/* ÁREA DE ROLAGEM FLEXBOX */
.sp-track-scroll-area {
    display: flex;
    overflow-x: auto; /* Rolagem nativa do navegador */
    gap: 20px; /* Espaço entre os cards */
    padding: 10px 0; /* Margem para sombras */
    scroll-snap-type: x mandatory; /* Para parar certinho no card */
    scroll-behavior: smooth; /* Rolagem suave */
    
    /* Esconde barra de rolagem nativa */
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.sp-track-scroll-area::-webkit-scrollbar { display: none; }


/* --- ESTILO DO CARD --- */
.sp-final-card {
    flex-shrink: 0; /* Não deixa o card encolher */
    
    /* Medidas seguras para ENCAIXE PERFEITO */
    width: 300px; 
    height: 420px; /* Altura generosa para o texto e margem */
    
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    scroll-snap-align: center; /* Alinha no meio ao parar */
}

.sp-final-card iframe {
    width: 100% !important;
    height: 100% !important;
    border-radius: 12px;
    border: none !important;
}

/* SETAS DE NAVEGAÇÃO (Flutuantes) */
.sp-final-arrow {
    background: #C62828; color: white; border: none;
    width: 50px; height: 50px; border-radius: 50%;
    font-size: 24px; cursor: pointer; z-index: 50;
    display: flex; justify-content: center; align-items: center;
    position: absolute; top: 50%; transform: translateY(-50%);
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
    transition: transform 0.2s;
}
.sp-arrow-prev { left: 0px; }
.sp-arrow-next { right: 0px; }


/* --- VERSÃO MOBILE --- */
@media (max-width: 767px) {
    .sp-final-wrapper { padding: 0; } /* Remove padding para maximizar tela */
    
    .sp-final-card {
        width: 85vw; /* Ocupa 85% da largura da tela */
        height: 400px;
    }

    .sp-final-arrow {
        width: 40px; height: 40px; font-size: 18px;
    }
    .sp-arrow-prev { left: 10px; }
    .sp-arrow-next { right: 10px; }
}
/* --- FIM CSS FINAL ESTÁVEL --- */


/* --- OVERRIDE FINAL: CABEÇALHO VERMELHO E LAYOUT MOBILE --- */

/* 1. FORÇAR FUNDO VERMELHO (Eliminando o branco interno) */
#cabecalho, 
.header-container,
#cabecalho .conteiner,
.header-container .conteiner,
.conteiner-principal {
    background-color: #C62828 !important; /* Vermelho */
    background: #C62828 !important;
    border: none !important;
    box-shadow: none !important;
}

/* 2. FORÇAR ÍCONES BRANCOS */
.menu-mobile-btn i, 
.carrinho-info i,
.carrinho-info strong,
.carrinho-info span,
.logo a,
.busca i {
    color: #ffffff !important;
    fill: #ffffff !important;
}
/* Contador do carrinho */
.carrinho-info .qtd-carrinho {
    background-color: #ffffff !important;
    color: #C62828 !important;
}

/* 3. LAYOUT MOBILE (Menu Esq | Logo Centro | Carrinho Dir | Busca Baixo) */
@media (max-width: 767px) {
    
    /* Prepara o container para mover as peças */
    #cabecalho .conteiner > .row-fluid,
    .header-container .row-fluid {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        position: relative !important;
        padding-top: 10px !important;
        padding-bottom: 15px !important;
    }

    /* POSIÇÃO 1: MENU (Esquerda) */
    .menu-mobile, .menu-mobile-btn {
        order: 1 !important;
        margin: 0 !important;
        padding: 0 !important;
        width: auto !important;
        float: none !important;
    }

    /* POSIÇÃO 2: LOGO (Centro Absoluto) */
    .logo {
        order: 2 !important;
        margin: 0 !important;
        padding: 0 !important;
        width: auto !important;
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        float: none !important;
    }
    .logo img { max-height: 40px !important; } /* Ajuste de tamanho se precisar */

    /* POSIÇÃO 3: CARRINHO (Direita) */
    .carrinho, .area-carrinho {
        order: 3 !important;
        margin: 0 !important;
        padding: 0 !important;
        width: auto !important;
        float: none !important;
        position: static !important; /* Destrava posição fixa se houver */
    }

    /* POSIÇÃO 4: BUSCA (Linha de Baixo) */
    .busca {
        order: 4 !important;
        width: 100% !important;
        margin-top: 15px !important;
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
        float: none !important;
    }

    /* Estilo da Busca (Vermelho Escuro/Transparente) */
    .busca input {
        background-color: rgba(0, 0, 0, 0.15) !important;
        border: 1px solid rgba(255, 255, 255, 0.4) !important;
        color: #fff !important;
        border-radius: 5px !important;
    }
    .busca input::placeholder { color: rgba(255,255,255,0.7) !important; }
    .busca .botao-busca { background: transparent !important; color: #fff !important; }
}
/* --- FIM CÓDIGO --- */