/* Atualização aqui: Estilos para carrossel de banners horizontal */

.banner-carousel {
    position: relative;
    width: calc(100% - 10px);
    max-width: 1600px;
    margin: 0 auto 40px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.banner-carousel-container {
    position: relative;
    width: 100%;
    aspect-ratio: 5 / 1;
    overflow: hidden;
    background: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-carousel-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: opacity 0.5s ease-in-out;
}

.banner-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-carousel-btn:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) scale(1.1);
}

.banner-carousel-btn.prev {
    left: 20px;
}

.banner-carousel-btn.next {
    right: 20px;
}

.banner-carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.banner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.banner-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.banner-dot.active {
    background: white;
    width: 32px;
    border-radius: 6px;
}

/* ============================================
   ajuste mobile: RESPONSIVIDADE - Banner Principal
   ============================================ */

/* Mobile First: <768px */
@media (max-width: 767px) {
    .banner-carousel {
        margin-bottom: 24px;
        border-radius: 12px;
    }

    .banner-carousel-container {
        aspect-ratio: 5 / 1;
    }

    /* Botões touch-friendly */
    .banner-carousel-btn {
        width: 44px;
        height: 44px;
        font-size: 18px;
        opacity: 1;
        /* Sempre visível no mobile */
    }

    .banner-carousel-btn.prev {
        left: 12px;
    }

    .banner-carousel-btn.next {
        right: 12px;
    }

    /* Indicadores maiores para touch */
    .banner-carousel-dots {
        bottom: 12px;
        gap: 10px;
    }

    .banner-dot {
        width: 12px;
        height: 12px;
        border-width: 2px;
    }

    .banner-dot.active {
        width: 28px;
        border-radius: 6px;
    }
}

/* Tablet: 768px - 1023px */
@media (min-width: 768px) and (max-width: 1023px) {
    .banner-carousel-container {
        aspect-ratio: auto;
        min-height: 250px;
    }

    /* Tablet: 768px - 1023px */
    @media (min-width: 768px) and (max-width: 1023px) {
        .banner-carousel-container {
            aspect-ratio: 5 / 1;
        }
    }

    /* Desktop: ≥1024px */
    @media (min-width: 1024px) {
        .banner-carousel-container {
            aspect-ratio: 5 / 1;
        }
    }

    carousel {
        position: relative;
        width: 100%;
        height: 400px;
        overflow: hidden;
        background: var(--bg-tertiary);
    }

    .carousel-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        opacity: 0;
        transition: opacity 0.5s ease-in-out;
    }

    .carousel-img.active {
        opacity: 1;
    }

    /* Botões de navegação */
    .carousel-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(20px);
        border: none;
        width: 48px;
        height: 48px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 10;
        opacity: 0;
    }

    .carousel:hover .carousel-btn {
        opacity: 1;
    }

    .carousel-btn:hover {
        background: rgba(0, 0, 0, 0.85);
        transform: translateY(-50%) scale(1.1);
    }

    .carousel-btn:active {
        transform: translateY(-50%) scale(0.95);
    }

    .carousel-btn svg {
        color: white;
    }

    .carousel-btn.carousel-prev {
        left: 20px;
    }

    .carousel-btn.carousel-next {
        right: 20px;
    }

    /* Esconder botões se houver apenas 1 imagem */
    .carousel-btn.hidden {
        display: none !important;
    }

    /* Indicadores (bolinhas) */
    .carousel-indicators {
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 8px;
        z-index: 10;
    }

    .carousel-indicator {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.5);
        cursor: pointer;
        transition: all 0.3s;
    }

    .carousel-indicator.active {
        width: 24px;
        border-radius: 4px;
        background: white;
    }

    .carousel-indicator:hover {
        background: rgba(255, 255, 255, 0.8);
    }

    /* ============================================
   ajuste mobile: RESPONSIVIDADE - Modal Carousel
   ============================================ */

    /* Mobile First: <768px */
    @media (max-width: 767px) {
        .carousel {
            height: 280px;
        }

        /* Botões sempre visíveis e touch-friendly */
        .carousel-btn {
            width: 44px;
            height: 44px;
            opacity: 1;
        }

        .carousel-btn.carousel-prev {
            left: 12px;
        }

        .carousel-btn.carousel-next {
            right: 12px;
        }

        .carousel-btn svg {
            width: 20px;
            height: 20px;
        }

        /* Indicadores maiores para touch */
        .carousel-indicators {
            bottom: 12px;
            gap: 10px;
        }

        .carousel-indicator {
            width: 10px;
            height: 10px;
        }

        .carousel-indicator.active {
            width: 24px;
            border-radius: 5px;
        }
    }

    /* Tablet: 768px - 1023px */
    @media (min-width: 768px) and (max-width: 1023px) {
        .carousel {
            height: 350px;
        }
    }

    /* Desktop: ≥1024px */
    @media (min-width: 1024px) {
        .carousel {
            height: 400px;
        }
    }