.custom-carousel-wrapper {
    position: relative;
    width: 100%;
}

.custom-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 10px 0;
    scroll-behavior: smooth;
}

.custom-carousel .carousel-item {
    flex: 0 0 var(--items-per-line, calc(25% - 10px)); /* Padrão: 4 banners por linha */
    margin-right: 10px;
    text-align: center;
    border-radius: 10px;
    overflow: hidden;
    scroll-snap-align: center;
    position: relative;
    transition: transform 0.3s, filter 0.3s;
}

.custom-carousel .carousel-item img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Hover */
.custom-carousel .carousel-item:hover img {
    filter: brightness(0.85);
    transform: scale(1.05);
}

/* Bloqueados */
.custom-carousel .carousel-item.grayscale img {
    filter: grayscale(100%);
}

/* Setas */
.custom-carousel-wrapper .arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 1;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, color 0.3s;
}

.custom-carousel-wrapper .arrow.left { left: -20px; }
.custom-carousel-wrapper .arrow.right { right: -10px; }

.custom-carousel-wrapper .arrow i { font-size: 20px; }

.custom-carousel-wrapper .arrow:hover {
    background-color: rgba(255, 255, 255, 0.3);
    color: black;
}

/* Esconde scrollbar */
.custom-carousel::-webkit-scrollbar { display: none; }

/* Ícones de bloqueio */
.custom-carousel .lock-icon,
.custom-carousel .hourglass-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 18px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #ccc;
}

/* Responsividade */
@media (max-width: 1024px) {
    .custom-carousel .carousel-item {
        flex: 0 0 var(--items-tablet, calc(33.33% - 10px)); /* 3 por linha no tablet */
    }
}

@media (max-width: 768px) {
    .custom-carousel .carousel-item {
        flex: 0 0 var(--items-mobile, calc(50% - 10px)); /* 2 por linha no mobile */
    }
}