.lbb-wrapper{
    --lbb-primary:#C49D57;
    --lbb-primary-dark:#A9813E;
    --lbb-dark:#111;
    --lbb-gray:#f3f3f5;
    --lbb-border:#e5e5e5;
    --lbb-radius:10px;
    --lbb-radius-sm:6px;
    padding-bottom:110px; /* keep content clear of the sticky bar */
}

/* ---------- Feature image ---------- */

.lbb-feature-image-wrap{
    margin:10px 0 20px;
    border-radius:var(--lbb-radius);
    overflow:hidden;
}

.lbb-feature-image{
    width:100%!important;
    max-height:100%!important;
    object-fit:cover;
    display:block;
}

.lbb-title{
    margin:0 0 20px;
}

/* ---------- Product grid ---------- */

.lbb-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
    gap:20px;
    margin:20px 0 30px;
}

.lbb-item{
    background:#fff;
    border:1px solid var(--lbb-border);
    border-radius:var(--lbb-radius);
    overflow:hidden;
    text-align:left;
    transition:.25s;
    padding:15px;
}

.lbb-item:hover{
    transform:translateY(-4px);
    box-shadow:0 10px 25px rgba(0,0,0,.08);
    border-color:var(--lbb-primary);
}

.lbb-thumb{
    display:block;
    border-radius:var(--lbb-radius-sm);
    overflow:hidden;
}

.lbb-item img{
    width:100%;
    height:auto;
    display:block;
    aspect-ratio:1/1;
    object-fit:cover;
}

.lbb-item h3{
    font-size:16px;
    font-weight:700;
    margin:12px 0 6px;
    min-height: 70px!important;

}

.lbb-rating{
    display:flex;
    align-items:center;
    gap:5px;
    font-size:13px;
    color:#555;
    margin-bottom:8px;
}

.lbb-star{
    color:var(--lbb-primary);
    font-size:14px;
}

.lbb-item .price{
    font-size:17px;
    font-weight:700;
    color:#111;
    margin-bottom:14px;
}

/* ---------- Add to Box button ---------- */

.lbb-add{
    width:100%;
    background:var(--lbb-primary)!important;
    color:#fff!important;
    border:none!important;
    border-radius:20px!important;
    padding:5px 14px 10px 14px!important;
    font-size:14px;
    font-weight:700;
    cursor:pointer;
    transition:.2s;
    letter-spacing:.2px;
}

.lbb-add:hover:not(:disabled){
    background:var(--lbb-primary-dark);
}

.lbb-add:disabled{
    background:#ece7dd;
    color:#a89a7d;
    cursor:not-allowed;
}

/* ---------- Quantity stepper (shown after add) ---------- */

.lbb-stepper{
    display:flex;
    align-items:center;
    justify-content:space-between;
    background:var(--lbb-gray);
    border:1px solid var(--lbb-border);
    border-radius:var(--lbb-radius);
    padding:4px;
}

.lbb-stepper button{
    width:36px;
    height:36px;
    border:none;
    border-radius:var(--lbb-radius-sm);
    background:transparent;
    font-size:20px;
    line-height:1;
    color:var(--lbb-primary-dark);
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:.2s;
    font-weight:700;
}

.lbb-stepper button:hover:not(:disabled){
    background:#e9dfc9;
}

.lbb-stepper button:disabled{
    color:#c9c2b3;
    cursor:not-allowed;
}

.lbb-qty-label{
    font-weight:700;
    font-size:14px;
    color:#111;
}

/* ---------- Sticky bottom bar ---------- */

.lbb-sticky-bar{
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    background:#fff;
    box-shadow:0 -6px 20px rgba(0,0,0,.08);
    z-index:9999;
}

.lbb-progress-track{
    height:4px;
    width:100%;
    background:#f1ebdd;
}

.lbb-progress-fill{
    height:100%;
    background:var(--lbb-primary);
    transition:width .3s ease;
}

.lbb-sticky-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    padding:14px 20px;
    flex-wrap:wrap;
}

.lbb-slots{
    display:flex;
    align-items:center;
    gap:10px;
    overflow-x:auto;
    flex:1 1 auto;
    min-width:0;
    padding:4px 2px;
}

.lbb-slot{
    position:relative;
    flex:0 0 auto;
    width:56px;
    height:56px;
}

.lbb-slot img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    border-radius:var(--lbb-radius-sm);
    border:1px solid var(--lbb-border);
}

.lbb-slot-remove{
    position:absolute;
    top:-6px;
    right:-6px;
    width:20px;
    height:20px;
    border-radius:50%;
    background:var(--lbb-dark);
    color:#fff;
    border:2px solid #fff;
    font-size:13px;
    line-height:1;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    z-index:2;
    box-shadow:0 1px 3px rgba(0,0,0,.25);
}

.lbb-slot-empty{
    display:flex;
    align-items:center;
    justify-content:center;
    border:1.5px dashed #d9cfb8;
    border-radius:var(--lbb-radius-sm);
    color:var(--lbb-primary);
    font-size:20px;
    background:#fbf8f2;
}

.lbb-sticky-meta{
    display:flex;
    align-items:center;
    gap:18px;
    flex:0 0 auto;
}

.lbb-subtotal{
    display:flex;
    flex-direction:column;
    align-items:flex-end;
    line-height:1.3;
}

.lbb-subtotal-label{
    font-weight:700;
    font-size:14px;
    color:#111;
}

.lbb-subtotal-amount{
    font-size:14px;
    color:#333;
}

.lbb-checkout{
    background:var(--lbb-primary);
    color:#fff;
    border:none;
    padding:14px 24px;
    border-radius:var(--lbb-radius);
    font-size:15px;
    font-weight:700;
    white-space:nowrap;
    cursor:pointer;
    transition:.2s;
}

.lbb-checkout:hover:not(:disabled){
    background:var(--lbb-primary-dark);
}

.lbb-checkout:disabled{
    background:#ece7dd;
    color:#a89a7d;
    cursor:not-allowed;
}

/* ---------- Cart page badge (added by class-cart.php) ---------- */

.lbb-badge{
    display:inline-block;
    background:#C49D57;
    color:#fff;
    font-size:11px;
    padding:2px 8px;
    border-radius:999px;
    margin-left:8px;
    vertical-align:middle;
}

/* ---------- Mobile ---------- */

@media (max-width:600px){

    .lbb-grid{
        grid-template-columns:repeat(2,1fr);
        gap:12px;
    }

    .lbb-add{
        padding:9px 10px;
        font-size:12.5px;
        border-radius:var(--lbb-radius-sm);
    }

    .lbb-stepper{
        padding:2px;
    }

    .lbb-stepper button{
        width:28px;
        height:28px;
        font-size:16px;
    }

    .lbb-qty-label{
        font-size:12px;
    }

    .lbb-item{
        padding:10px;
    }

    .lbb-feature-image{
        max-height:200px;
    }

    .lbb-sticky-row{
        flex-wrap:nowrap;
        padding:12px;
    }

    .lbb-sticky-meta{
        gap:10px;
    }

    .lbb-subtotal{
        display:none; /* keep the bar compact on small screens */
    }

    .lbb-checkout{
        padding:12px 16px;
        font-size:14px;
    }

    .lbb-slot,
    .lbb-slot-empty{
        width:46px;
        height:46px;
    }

}
