/* ══════════════════════════════════════════════════════
   Bloom & Blush Slider — bb-slider.css
   Author: Ubaidur Rahman Ansari
   ══════════════════════════════════════════════════════ */

/* ── Root wrapper ── */
.bbs-slider-root {
    position: relative;
    width: 100%;
    user-select: none;
    -webkit-user-select: none;
}

/* ── Viewport (clips overflow) ── */
.bbs-viewport {
    overflow: hidden;
    width: 100%;
}

/* ── Track (moves horizontally) ── */
.bbs-track {
    display: flex;
    align-items: stretch;
    transition: transform 0.4s ease;
    will-change: transform;
    gap: var(--bbs-gap, 12px);
    /* gap is set but width is driven by JS */
}

/* No transition during drag */
.bbs-track.bbs-no-transition {
    transition: none !important;
}

/* ── Individual Slide ── */
.bbs-slide {
    flex-shrink: 0;
    /* width set by JS */
}

.bbs-slide-inner {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #f0f0f0;
}

.bbs-slide-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* ── Image ── */
.bbs-slide-img-wrap {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.bbs-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.bbs-slide-inner:hover .bbs-slide-img {
    transform: scale(1.03);
}

/* ── Overlay Button ── */
.bbs-slide-overlay {
    position: absolute;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    left: 0;
    right: 0;
}

.bbs-slide-overlay.pos-bottom-center {
    bottom: 24px;
    justify-content: center;
}

.bbs-slide-overlay.pos-bottom-left {
    bottom: 24px;
    justify-content: flex-start;
    padding-left: 20px;
}

.bbs-slide-overlay.pos-bottom-right {
    bottom: 24px;
    justify-content: flex-end;
    padding-right: 20px;
}

.bbs-slide-overlay.pos-center-center {
    top: 50%;
    transform: translateY(-50%);
    justify-content: center;
}

.bbs-slide-btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    border-radius: 30px;
    cursor: pointer;
    pointer-events: all;
    transition: opacity 0.2s, transform 0.2s;
    white-space: nowrap;
}

.bbs-slide-btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

/* ══════════════════════
   ARROWS
══════════════════════ */
.bbs-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
    color: #1a1a1a;
    padding: 0;
    outline: none;
}

.bbs-arrow svg {
    width: 18px;
    height: 18px;
    display: block;
    pointer-events: none;
}

.bbs-arrow:hover {
    background: #1a1a1a;
    color: #fff;
    box-shadow: 0 4px 18px rgba(0,0,0,0.2);
    transform: translateY(-50%) scale(1.07);
}

.bbs-arrow:disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}

/* ── Arrow Positions ── */

/* Middle Outside (default) */
.bbs-arrow-pos--middle-outside .bbs-prev { left: -22px; }
.bbs-arrow-pos--middle-outside .bbs-next { right: -22px; }

/* Middle Inside */
.bbs-arrow-pos--middle-inside .bbs-prev { left: 12px; }
.bbs-arrow-pos--middle-inside .bbs-next { right: 12px; }

/* Bottom Outside — arrows rendered in .bbs-bottom-arrows */
.bbs-bottom-arrows {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}

.bbs-arrow-pos--bottom-outside .bbs-arrow {
    position: static;
    transform: none;
}

.bbs-arrow-pos--bottom-outside .bbs-arrow:hover {
    transform: scale(1.07);
}

/* ══════════════════════
   DOTS
══════════════════════ */
.bbs-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    padding: 4px 0;
}

.bbs-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cccccc;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s, width 0.2s;
    outline: none;
}

.bbs-dot--active {
    background: #1a1a1a;
    transform: scale(1.3);
}

/* Wider active dot style */
.bbs-dot--active.bbs-dot--pill {
    width: 24px;
    border-radius: 10px;
    transform: none;
}

/* ══════════════════════
   DRAG CURSOR
══════════════════════ */
.bbs-viewport.bbs-is-dragging {
    cursor: grabbing;
}

.bbs-viewport:not(.bbs-is-dragging) {
    cursor: grab;
}

/* ══════════════════════
   RESPONSIVE
══════════════════════ */
@media (max-width: 1024px) {
    .bbs-arrow-pos--middle-outside .bbs-prev { left: -12px; }
    .bbs-arrow-pos--middle-outside .bbs-next { right: -12px; }
}

@media (max-width: 767px) {
    .bbs-arrow-pos--middle-outside .bbs-prev { left: 4px; }
    .bbs-arrow-pos--middle-outside .bbs-next { right: 4px; }
    .bbs-slide-btn { font-size: 11px; padding: 10px 18px; }
}
