/* ═══════════════════════════════════════════════════
   BeezyTech SMD Specials Slider — bss-slider.css
═══════════════════════════════════════════════════ */

/* ── Wrapper ─────────────────────────────────────── */
.bss-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 2.5rem;
    font-family: inherit;
    box-sizing: border-box;
}

/* ── Promo bar ───────────────────────────────────── */
.bss-promo-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(15, 23, 41, 0.99);
    padding: 0.6rem 1.25rem;
    border-radius: 8px 8px 0 0;
    gap: 1rem;
    flex-wrap: wrap;
}

.bss-promo-label {
    color: #c8b47a;
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.bss-promo-btn {
    display: inline-flex;
    align-items: center;
    background: #c8b47a;
    color: rgba(15, 23, 41, 0.99);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    letter-spacing: 0.03em;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.bss-promo-btn:hover {
    background: #b09a60;
    color: rgba(15, 23, 41, 0.99);
}

/* ── Slider outer ────────────────────────────────── */
.bss-slider-outer {
    position: relative;
    background: #fff;
    border: 1px solid #e8e3d8;
    border-top: none;
    border-bottom: none;
    overflow: hidden;
}

/* ── Track ───────────────────────────────────────── */
.bss-track-wrap {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.bss-track {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    /* Critical: track must not shrink or wrap */
    flex-wrap: nowrap;
    width: 100%;
}

/* ── Slide ───────────────────────────────────────── */
.bss-slide {
    /* Each slide occupies exactly the wrapper width */
    min-width: 100%;
    width: 100%;
    flex-shrink: 0;
    box-sizing: border-box;
}

.bss-slide-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 0;
    min-height: 340px;
}

/* ── Image pane ──────────────────────────────────── */
.bss-image-wrap {
    width: 100%;
    height: 100%;
    min-height: 340px;
    background: #f5f3ef;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bss-image-wrap img {
    width: 100%;
    height: 340px;
    object-fit: contain;
    padding: 1.5rem;
    box-sizing: border-box;
    transition: transform 0.4s ease;
}

.bss-slide.bss-active .bss-image-wrap img {
    transform: scale(1.02);
}

/* ── Content pane ────────────────────────────────── */
.bss-slide-body {
    padding: 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.bss-badge {
    display: inline-block;
    background: #c8b47a;
    color: rgba(15, 23, 41, 0.99);
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
    width: fit-content;
}

.bss-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: rgba(15, 23, 41, 0.99);
    line-height: 1.4;
    margin: 0;
}

.bss-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: #c8b47a;
    margin: 0;
    line-height: 1;
}

.bss-expiry {
    font-size: 0.78rem;
    color: #888;
    margin: 0;
}

.bss-expiry strong {
    color: rgba(15, 23, 41, 0.99);
}

.bss-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 41, 0.99);
    color: #c8b47a;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 0.7rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    letter-spacing: 0.03em;
    transition: background 0.2s ease, color 0.2s ease;
    width: fit-content;
    margin-top: 0.5rem;
    border: 2px solid transparent;
}

.bss-cta-btn:hover {
    background: #c8b47a;
    color: rgba(15, 23, 41, 0.99);
    border-color: #c8b47a;
}

/* ── Arrows ──────────────────────────────────────── */
.bss-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(15, 23, 41, 0.75);
    color: #c8b47a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    padding: 0;
}

.bss-arrow:hover { background: rgba(15, 23, 41, 0.99); }
.bss-prev { left: 12px; }
.bss-next { right: 12px; }

.bss-arrow svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

/* ── Dots ────────────────────────────────────────── */
.bss-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 0.75rem 0;
    background: #fff;
    border: 1px solid #e8e3d8;
    border-top: none;
}

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

.bss-dot-active,
.bss-dot:hover {
    background: #c8b47a;
    transform: scale(1.3);
}

/* ── Counter ─────────────────────────────────────── */
.bss-count {
    text-align: center;
    font-size: 0.75rem;
    color: #aaa;
    margin: 0.3rem 0 0;
    line-height: 1;
}

.bss-current { color: rgba(15, 23, 41, 0.99); font-weight: 700; }

/* ── No specials ─────────────────────────────────── */
.bss-no-specials {
    text-align: center;
    padding: 2rem;
    color: #888;
    font-style: italic;
    border: 1px dashed #ddd;
    border-radius: 8px;
}

/* ── Slide enter animation ───────────────────────── */
.bss-slide {
    opacity: 0.4;
    transition: opacity 0.45s ease;
}
.bss-slide.bss-active { opacity: 1; }

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 768px) {
    .bss-wrapper { max-width: 100%; }

    /* Stack: image on top, content below */
    .bss-slide-inner {
        grid-template-columns: 1fr !important;
        min-height: auto;
    }

    /* Full-width image, fixed height, image contained */
    .bss-image-wrap {
        width: 100% !important;
        min-height: 260px;
        height: 260px;
        max-height: 260px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f5f3ef;
        overflow: hidden;
    }
    .bss-image-wrap img {
        width: 100% !important;
        height: 260px !important;
        max-height: 260px !important;
        object-fit: contain !important;
        padding: 1rem;
        box-sizing: border-box;
    }
    .bss-image-wrap a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 260px;
    }

    .bss-slide-body {
        padding: 1rem 1.25rem 1.25rem;
        gap: 0.5rem;
    }
    .bss-title { font-size: 1rem; }
    .bss-price { font-size: 1.3rem; }
    .bss-cta-btn { width: 100%; text-align: center; }

    /* Arrows stay on sides but smaller */
    .bss-arrow { width: 32px; height: 32px; top: 130px; }
    .bss-arrow svg { width: 16px; height: 16px; }
    .bss-prev { left: 6px; }
    .bss-next { right: 6px; }
}

@media (max-width: 480px) {
    .bss-promo-bar {
        border-radius: 0;
        flex-wrap: nowrap;
    }
    .bss-promo-label { font-size: 0.75rem; white-space: nowrap; }
    .bss-promo-btn { font-size: 0.72rem; padding: 0.35rem 0.75rem; white-space: nowrap; }
    .bss-slide-body { padding: 0.9rem 1rem 1rem; }
    .bss-image-wrap,
    .bss-image-wrap a,
    .bss-image-wrap img { height: 220px !important; max-height: 220px !important; }
    .bss-arrow { top: 110px; }
}
