/* ============================================================
   Hero BG Slider – hero-bg-slider.css  v2.0
   Transition: HORIZONTAL SLIDE (no fade)
   ============================================================ */

/* ── Wrapper ── */
.hbs-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    font-family: inherit;
}

/* ── Track wrapper (clips overflow) ── */
.hbs-track-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

/* ── Track: all slides side by side ── */
.hbs-track {
    display: flex;
    height: 100%;
    will-change: transform;
    /* transition set via JS using data-tr-speed */
}

/* ── Single slide background ── */
.hbs-slide {
    flex-shrink: 0;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* ── Overlay ── */
.hbs-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.20);
    pointer-events: none;
    z-index: 1;
}

/* ── Fixed content layer ── */
.hbs-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;    /* let clicks pass through to arrows/buttons below */
}

/* ── Title row ── */
.hbs-titles {
    padding: 2vw 3vw 0;
    width: 100%;
    box-sizing: border-box;
}

.hbs-slide-title {
    display: block;
    font-size: 7vw;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1.05;
    text-shadow: 2px 2px 16px rgba(0,0,0,0.45);
    font-family: Impact, 'Arial Black', Arial, sans-serif;
    /* smooth text change */
    transition: opacity 0.25s ease;
}

.hbs-slide-title.hbs-text-fade {
    opacity: 0;
}

/* ── Bottom-right panel ── */
.hbs-panel {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    padding: 0 3vw 4vh;
    max-width: 700px;
    align-self: flex-end;
    gap: 10px;
    pointer-events: auto;
    margin-bottom: 80px;
}

/* Text fade helper */
.hbs-panel-fade {
    opacity: 0;
    transition: opacity 0.2s ease;
}
.hbs-panel-show {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.hbs-desc {
    font-size: 0.88rem;
    line-height: 1.6;
    color: #fff;
    margin: 0;
    text-shadow: 1px 1px 6px rgba(0,0,0,0.5);
    font-style: italic;
}

.hbs-price {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 1px 1px 8px rgba(0,0,0,0.4);
    line-height: 1.2;
}

/* WooCommerce price HTML overrides */
.hbs-price .woocommerce-Price-amount,
.hbs-price .amount,
.hbs-price ins,
.hbs-price del {
    color: inherit !important;
    font-size: inherit;
}

.hbs-price del {
    opacity: 0.6;
    font-size: 0.75em;
    margin-right: 6px;
}

/* ── Quantity ── */
.hbs-qty-row {
    display: flex;
    align-items: center;
    border: 1.5px solid rgba(255,255,255,0.8);
    border-radius: 3px;
    overflow: hidden;
}

.hbs-qty-btn {
    background: transparent;
    border: none;
    color: #fff;
    width: 38px;
    height: 38px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.hbs-qty-btn:hover {
    background: rgba(255,255,255,0.18);
}

.hbs-qty-input {
    width: 50px;
    height: 38px;
    background: transparent;
    border: none;
    border-left: 1.5px solid rgba(255,255,255,0.8);
    border-right: 1.5px solid rgba(255,255,255,0.8);
    color: #fff;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    -moz-appearance: textfield;
    outline: none;
}

.hbs-qty-input::-webkit-outer-spin-button,
.hbs-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ── Add to Cart button ── */
.hbs-btn-cart {
    display: inline-block;
    background: #111;
    color: #fff;
    text-decoration: none !important;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    padding: 14px 28px;
    cursor: pointer;
    border: none;
    border-radius: 2px;
    transition: background 0.25s ease, transform 0.15s ease, opacity 0.2s ease;
    white-space: nowrap;
}

.hbs-btn-cart:hover {
    background: #333 !important;
    transform: translateY(-1px);
    color: #fff !important;
}

.hbs-btn-cart.hbs-added {
    background: #28a745 !important;
}

/* ── Arrows ── */
.hbs-arrow {
    position: absolute;
    bottom: 4vh;
    z-index: 3;
    background: rgba(0,0,0,0.4);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.6);
    width: 44px;
    height: 44px;
    border-radius: 3px;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.hbs-arrow:hover { background: rgba(0,0,0,0.7); }
.hbs-prev { right: 62px; }
.hbs-next { right: 12px; }

/* ── Dots ── */
.hbs-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 9px;
}

.hbs-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: 1.5px solid rgba(255,255,255,0.7);
    cursor: pointer;
    padding: 0;
    transition: background 0.3s, transform 0.2s;
}

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

/* ── Responsive ── */
@media (max-width: 768px) {
    .hbs-slide-title { font-size: 11vw; }
    .hbs-panel { max-width: 92vw; padding: 0 4vw 5vh; }
    .hbs-titles { padding: 4vw 4vw 0; }
    .hbs-prev { right: 58px; bottom: 3vh; }
    .hbs-next { right: 8px; bottom: 3vh; }
}
