/* ── Banner Manager — Frontend Styles ─────────────────────────────────────── */

/* Banner individual */
.bm-banner {
    display: block;
    width: 100%;
    max-width: var(--bm-w, 1500px);
    margin: 0 auto;
    overflow: hidden;
    line-height: 0;
}

.bm-banner a {
    display: block;
    line-height: 0;
}

.bm-banner picture,
.bm-banner img {
    display: block;
    width: 100%;
    height: auto;
    border: none;
}

/* Aspect-ratio placeholder para evitar CLS */
.bm-banner picture {
    position: relative;
    padding-bottom: var(--bm-ratio, 20%);
    height: 0;
}

.bm-banner picture img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── Carrossel ───────────────────────────────────────────────────────────── */
.bm-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.bm-carousel-track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.bm-carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
}

/* Setas */
.bm-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    padding: 10px 14px;
    border-radius: 4px;
    transition: background 0.2s;
    user-select: none;
}

.bm-carousel-btn:hover {
    background: rgba(0, 0, 0, 0.75);
}

.bm-carousel-prev { left: 10px; }
.bm-carousel-next { right: 10px; }

/* Dots */
.bm-carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.bm-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}

.bm-carousel-dot.active,
.bm-carousel-dot:hover {
    background: #fff;
    transform: scale(1.2);
}

/* ── Responsividade ──────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .bm-carousel-btn {
        padding: 7px 10px;
        font-size: 16px;
    }
}
