/* ============================================================================
   Carrossel de Marcas - Otimizado para 5 Itens por Vez
   ============================================================================ */

.brands-carousel-section {
    padding: 4rem 0;
    background: linear-gradient(180deg, #000 0%, #1a1a1a 100%);
    border-bottom: 3px solid var(--section-divider, #22c55e);
}

.brands-carousel-section h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
    margin: 0 0 3rem 0;
    text-align: center;
}

.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
    padding: 0 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.carousel-button {
    width: 56px;
    height: 56px;
    background: var(--section-divider, #22c55e);
    border: none;
    border-radius: 50%;
    color: #000000;
    font-size: 1.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    flex-shrink: 0;
    position: relative;
    font-weight: bold;
}

.carousel-button:hover {
    background: #16a34a;
    transform: scale(1.15);
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.3);
}

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

.carousel-container {
    flex: 1;
    overflow: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-container::-webkit-scrollbar {
    display: none;
}

.carousel-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.carousel-track {
    display: flex;
    gap: 2rem;
    transition: scroll 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1rem 0;
    width: max-content;
}

.carousel-item {
    flex: 0 0 calc(20% - 1.6rem);
    min-width: calc(20% - 1.6rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1rem;
    border-radius: 12px;
    background: rgba(34, 197, 94, 0.05);
}

.carousel-item:hover {
    transform: translateY(-12px) scale(1.05);
    background: rgba(34, 197, 94, 0.1);
}

.carousel-item-image {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--section-divider, #22c55e);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.25);
    display: block;
    flex-shrink: 0;
}

.carousel-item:hover .carousel-item-image {
    border-color: #16a34a;
    box-shadow: 0 12px 30px rgba(34, 197, 94, 0.4);
    transform: scale(1.08);
}

.carousel-item-name {
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    margin-top: 0.5rem;
    letter-spacing: -0.02em;
}

/* ============================================================================
   Responsivo - Ajustado para 5 itens em desktop
   ============================================================================ */

@media (max-width: 1400px) {
    .carousel-item {
        flex: 0 0 calc(20% - 1.6rem);
        min-width: calc(20% - 1.6rem);
    }

    .carousel-item-image {
        width: 130px;
        height: 130px;
    }

    .carousel-item-name {
        font-size: 0.95rem;
    }
}

@media (max-width: 1200px) {
    .carousel-wrapper {
        padding: 0 1.5rem;
    }

    .carousel-item {
        flex: 0 0 calc(25% - 1.5rem);
        min-width: calc(25% - 1.5rem);
    }

    .carousel-item-image {
        width: 120px;
        height: 120px;
    }

    .carousel-item-name {
        font-size: 0.9rem;
    }

    .carousel-button {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

@media (max-width: 992px) {
    .brands-carousel-section {
        padding: 3rem 0;
    }

    .brands-carousel-section h2 {
        font-size: 1.8rem;
        margin-bottom: 2.5rem;
    }

    .carousel-wrapper {
        gap: 1rem;
        padding: 0 1rem;
    }

    .carousel-track {
        gap: 1.5rem;
    }

    .carousel-item {
        flex: 0 0 calc(33.333% - 1rem);
        min-width: calc(33.333% - 1rem);
        padding: 0.75rem;
    }

    .carousel-item-image {
        width: 110px;
        height: 110px;
    }

    .carousel-item-name {
        font-size: 0.85rem;
    }

    .carousel-button {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .brands-carousel-section {
        padding: 2.5rem 0;
    }

    .brands-carousel-section h2 {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    .carousel-wrapper {
        gap: 0.75rem;
        padding: 0 0.75rem;
    }

    .carousel-track {
        gap: 1rem;
    }

    .carousel-item {
        flex: 0 0 calc(50% - 0.5rem);
        min-width: calc(50% - 0.5rem);
        padding: 0.5rem;
    }

    .carousel-item-image {
        width: 100px;
        height: 100px;
    }

    .carousel-item-name {
        font-size: 0.8rem;
    }

    .carousel-button {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .brands-carousel-section {
        padding: 2rem 0;
    }

    .brands-carousel-section h2 {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }

    .carousel-wrapper {
        gap: 0.5rem;
        padding: 0 0.5rem;
    }

    .carousel-track {
        gap: 0.75rem;
    }

    .carousel-item {
        flex: 0 0 calc(100% - 0.75rem);
        min-width: calc(100% - 0.75rem);
        padding: 0.5rem;
    }

    .carousel-item-image {
        width: 90px;
        height: 90px;
    }

    .carousel-item-name {
        font-size: 0.75rem;
    }

    .carousel-button {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}
