/* =====================================================================
   Beli storefront — modern UI layer
   Loaded after the legacy theme CSS; overrides it where needed.
   --bb-primary is injected from admin "primary color" in master/front.
   ===================================================================== */

:root {
    --bb-primary: #EC008C;
    --bb-primary-600: color-mix(in srgb, var(--bb-primary) 85%, #000);
    --bb-primary-50: color-mix(in srgb, var(--bb-primary) 8%, #fff);
    --bb-primary-100: color-mix(in srgb, var(--bb-primary) 16%, #fff);
    /* core brand blue: product names / titles; pink (--bb-primary) stays for CTAs + prices */
    --bb-brand: #0050D2;
    --bb-brand-600: #003A9B;
    --bb-ink: #2A1B24;
    --bb-ink-2: #4B3A43;
    --bb-muted: #7A6A72;
    --bb-line: #F0E6E1;
    --bb-bg: #FFF8F3;
    --bb-surface: #FFFFFF;
    --bb-accent: #F59E0B;
    --bb-green: #15803D;
    --bb-green-50: #EAF7EE;
    --bb-danger: #DC2626;
    --bb-plum: #3B1830;
    --bb-footer: #002975;
    --bb-radius: 16px;
    --bb-radius-sm: 10px;
    --bb-shadow-sm: 0 1px 2px rgba(42, 27, 36, .06);
    --bb-shadow: 0 6px 24px -8px rgba(42, 27, 36, .18);
    --bb-font: "Hind Siliguri", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --bb-font-display: var(--bb-font); /* single family: Regular 400 + Bold 700 only */
    --bb-header-h: 72px;
    --bb-bottom-nav-h: 64px;
}

/* ---------- Base ---------- */
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--bb-font) !important;
    background: var(--bb-bg) !important;
    color: var(--bb-ink);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
/* one family everywhere — legacy theme still sets Open Sans on these */
button, input, select, textarea, optgroup, .btn, .form-control, .tooltip, .popover {
    font-family: var(--bb-font) !important;
}
b, strong, th { font-weight: 700; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--bb-font-display);
    font-weight: 700;
    color: var(--bb-ink);
    letter-spacing: -.01em;
}
a { color: var(--bb-primary); }
a:hover { color: var(--bb-primary-600); }
img { max-width: 100%; }
::selection { background: var(--bb-primary-100); }
:focus-visible { outline: 3px solid var(--bb-primary-100); outline-offset: 2px; }
.container { max-width: 1240px; }
@media (max-width: 575px) {
    .container { padding-left: 14px; padding-right: 14px; }
}

/* ---------- Buttons ---------- */
.bb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 12px;
    border: 1.5px solid transparent;
    font-family: var(--bb-font);
    font-weight: 700;
    font-size: 15px;
    line-height: 1;
    text-decoration: none !important;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s, transform .1s, box-shadow .15s;
    white-space: nowrap;
}
.bb-btn:active { transform: translateY(1px); }
.bb-btn i { font-size: 16px; }
.bb-btn--primary { background: var(--bb-primary); color: #fff !important; box-shadow: 0 6px 14px -6px var(--bb-primary); }
.bb-btn--primary:hover { background: var(--bb-primary-600); color: #fff !important; }
.bb-btn--dark { background: var(--bb-ink); color: #fff !important; }
.bb-btn--dark:hover { background: #000; }
.bb-btn--ghost { background: #fff; color: var(--bb-ink) !important; border-color: var(--bb-line); }
.bb-btn--ghost:hover { border-color: var(--bb-primary); color: var(--bb-primary) !important; }
.bb-btn--whatsapp { background: #25D366; color: #fff !important; }
.bb-btn--whatsapp:hover { background: #1DA851; }
.bb-btn--block { width: 100%; }
.bb-btn--icon {
    width: 44px; min-width: 44px; padding: 0;
    background: var(--bb-primary-50); color: var(--bb-primary) !important;
    border-color: var(--bb-primary-100);
}
.bb-btn--icon:hover { background: var(--bb-primary); color: #fff !important; }
.bb-btn--lg { min-height: 52px; font-size: 16px; padding: 0 24px; }

/* Legacy .btn-primary follows brand */
.btn-primary, .btn-primary:focus {
    background-color: var(--bb-primary) !important;
    border-color: var(--bb-primary) !important;
    color: #fff !important;
    border-radius: 12px !important;
    font-weight: 700;
}
.btn-primary:hover { background-color: var(--bb-primary-600) !important; border-color: var(--bb-primary-600) !important; }
.btn-primary::before, .btn-primary::after { display: none !important; }
.form-control, .form-select, select.form-control {
    border-radius: 12px !important;
    border: 1.5px solid var(--bb-line) !important;
    min-height: 46px;
    font-family: var(--bb-font);
    font-size: 15px;
}
.form-control:focus { border-color: var(--bb-primary) !important; box-shadow: 0 0 0 4px var(--bb-primary-50) !important; }

/* ---------- Announcement bar ---------- */
.bb-topbar {
    background: #0050D2;
    color: #fff;
    font-size: 13px;
}
.bb-topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; }
.bb-topbar__perks { display: flex; gap: 22px; align-items: center; overflow: hidden; white-space: nowrap; }
.bb-topbar__perks span { display: inline-flex; align-items: center; gap: 6px; }
.bb-topbar__perks i { color: var(--bb-accent); }
.bb-topbar__links { display: flex; gap: 18px; align-items: center; }
.bb-topbar a { color: #fff; text-decoration: none; }
.bb-topbar a:hover { color: #fff; opacity: .85; }
.bb-topbar .t-h-dropdown { position: relative; }
.bb-topbar .t-h-dropdown .main-link { color: #fff; cursor: pointer; }
.bb-topbar .t-h-dropdown-menu { z-index: 1100; }
@media (max-width: 767px) {
    .bb-topbar__links { display: none; }
    .bb-topbar .container { justify-content: center; }
    .bb-topbar__perks { gap: 14px; font-size: 12px; }
    .bb-topbar__perks .bb-hide-xs { display: none; }
}

/* ---------- Header ---------- */
.bb-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: saturate(160%) blur(10px);
    -webkit-backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--bb-line);
}
.bb-header__row {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: var(--bb-header-h);
}
.bb-header__burger {
    display: none;
    width: 42px; height: 42px;
    border-radius: 12px;
    background: var(--bb-primary-50);
    color: var(--bb-ink);
    align-items: center; justify-content: center;
    font-size: 20px;
    text-decoration: none;
}
.bb-header__logo img { max-height: 48px; width: auto; display: block; }
.bb-search { flex: 1; position: relative; max-width: 620px; }
.bb-search__box {
    display: flex;
    align-items: center;
    background: #F8F2EF;
    border: 1.5px solid transparent;
    border-radius: 14px;
    transition: border-color .15s, background .15s, box-shadow .15s;
}
.bb-search__box:focus-within { background: #fff; border-color: var(--bb-primary); box-shadow: 0 0 0 4px var(--bb-primary-50); }
.bb-search__box select {
    border: 0; background: transparent;
    padding: 0 8px 0 14px; height: 46px;
    font-family: var(--bb-font); font-size: 14px; color: var(--bb-ink-2);
    border-right: 1px solid var(--bb-line);
    max-width: 130px; outline: none;
}
.bb-search__box form { flex: 1; display: flex; align-items: center; margin: 0; position: static; }
.bb-search__box input[type=text] {
    flex: 1; border: 0 !important; background: transparent !important;
    height: 46px; padding: 0 14px; font-size: 15px;
    box-shadow: none !important; min-height: 0; outline: none;
}
.bb-search__box button {
    border: 0; background: var(--bb-primary); color: #fff;
    width: 40px; height: 40px; margin-right: 3px; border-radius: 11px;
    display: inline-flex; align-items: center; justify-content: center; font-size: 17px;
}
.bb-search .serch-result {
    position: absolute; left: 0; right: 0; top: calc(100% + 6px);
    background: #fff; border-radius: 14px; box-shadow: var(--bb-shadow);
    border: 1px solid var(--bb-line); z-index: 1200; max-height: 60vh; overflow: auto;
}
.bb-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.bb-hotline {
    display: flex; align-items: center; gap: 10px; padding-right: 10px; margin-right: 4px;
    border-right: 1px solid var(--bb-line); text-decoration: none; color: var(--bb-ink);
}
.bb-hotline__icon {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--bb-green-50); color: var(--bb-green);
    display: inline-flex; align-items: center; justify-content: center; font-size: 18px;
}
.bb-hotline small { display: block; font-size: 12px; color: var(--bb-muted); line-height: 1.1; }
.bb-hotline strong { font-size: 15px; line-height: 1.2; color: var(--bb-ink); }
.bb-action {
    position: relative;
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
    min-width: 54px; height: 50px; padding: 0 8px;
    border-radius: 12px; color: var(--bb-ink) !important; text-decoration: none !important;
    font-size: 12px; line-height: 1.1; gap: 3px;
}
.bb-action i { font-size: 21px; }
.bb-action:hover { background: var(--bb-primary-50); color: var(--bb-primary) !important; }
.bb-count {
    position: absolute; top: 2px; right: 6px;
    min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
    background: var(--bb-primary); color: #fff; font-size: 11px; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center; line-height: 1;
    box-shadow: 0 0 0 2px #fff;
}
.bb-cart { position: relative; }
.bb-cart .bb-cart__dropdown {
    position: absolute; right: 0; top: calc(100% + 8px); width: 340px;
    background: #fff; border-radius: 16px; box-shadow: var(--bb-shadow);
    border: 1px solid var(--bb-line); padding: 16px;
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity .15s, transform .15s, visibility .15s; z-index: 1100;
}
.bb-cart:hover .bb-cart__dropdown, .bb-cart:focus-within .bb-cart__dropdown { opacity: 1; visibility: visible; transform: none; }
.bb-cart__dropdown .entry { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--bb-line); position: relative; }
.bb-cart__dropdown .entry-thumb img { width: 54px; height: 54px; object-fit: cover; border-radius: 10px; }
.bb-cart__dropdown .entry-title { font-size: 14px; margin: 0 0 2px; font-family: var(--bb-font); font-weight: 700; }
.bb-cart__dropdown .entry-title a { color: var(--bb-ink); text-decoration: none; }
.bb-cart__dropdown .entry-meta, .bb-cart__dropdown .att { font-size: 12px; color: var(--bb-muted); display: block; }
.bb-cart__dropdown .entry-content { flex: 1; }
.bb-cart__dropdown .entry-delete a { color: var(--bb-muted); }
.bb-cart__dropdown .btn { width: calc(100% - 4px); }

/* Desktop nav */
.bb-nav { border-top: 1px solid var(--bb-line); }
.bb-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; align-items: center; }
.bb-nav li { position: relative; }
.bb-nav a.bb-nav__link {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 12px 14px; color: var(--bb-ink-2); text-decoration: none;
    font-weight: 700; font-size: 15px; border-radius: 10px;
}
.bb-nav a.bb-nav__link:hover, .bb-nav li.active > a.bb-nav__link { color: var(--bb-primary); }
.bb-nav li.active > a.bb-nav__link::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px;
    background: var(--bb-primary); border-radius: 3px 3px 0 0;
}
.bb-nav__cat {
    background: var(--bb-primary-50); color: var(--bb-primary) !important; margin-right: 6px;
}
.bb-nav .t-h-dropdown-menu, .bb-topbar .t-h-dropdown-menu {
    border-radius: 14px; box-shadow: var(--bb-shadow); border: 1px solid var(--bb-line); padding: 8px; min-width: 200px;
}
.bb-nav .t-h-dropdown-menu a, .bb-topbar .t-h-dropdown-menu a {
    display: block; padding: 8px 12px; border-radius: 8px; color: var(--bb-ink-2); text-decoration: none;
}
.bb-nav .t-h-dropdown-menu a:hover, .bb-topbar .t-h-dropdown-menu a:hover { background: var(--bb-primary-50); color: var(--bb-primary); }
.bb-nav .t-h-dropdown-menu a i, .bb-topbar .t-h-dropdown-menu a i { display: none; }
.bb-nav__note { margin-left: auto; font-size: 14px; color: var(--bb-green); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }

@media (max-width: 991px) {
    :root { --bb-header-h: 60px; }
    .bb-header__burger { display: inline-flex; }
    .bb-header__row { flex-wrap: wrap; gap: 10px; padding-bottom: 10px; }
    .bb-header__logo { order: 1; flex: 1; display: flex; justify-content: center; min-height: var(--bb-header-h); align-items: center; }
    .bb-header__logo img { max-height: 40px; }
    .bb-header__burger { order: 0; }
    .bb-actions { order: 2; margin-left: 0; }
    .bb-search { order: 3; flex-basis: 100%; max-width: none; }
    .bb-search__box select { display: none; }
    .bb-search__box input[type=text] { height: 42px; }
    .bb-hotline, .bb-action--desk, .bb-nav { display: none !important; }
    .bb-action { min-width: 44px; }
    .bb-action span.bb-action__label { display: none; }
    .bb-cart .bb-cart__dropdown { display: none; }
}

/* ---------- Off-canvas mobile menu ---------- */
.mobile-menu {
    display: block !important;
    position: fixed !important;
    top: 0; left: 0; bottom: 0;
    width: min(86vw, 340px) !important; height: 100% !important;
    background: #fff !important;
    z-index: 100001 !important;
    transform: translateX(-105%);
    transition: transform .25s ease;
    box-shadow: 0 0 40px rgba(0, 0, 0, .2);
    overflow-y: auto;
}
.mobile-menu.open { transform: none; }
.bb-drawer-backdrop {
    position: fixed; inset: 0; background: rgba(30, 12, 22, .45); z-index: 100000;
    opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
}
body.bb-menu-open { overflow: hidden; }
body.bb-menu-open .bb-drawer-backdrop { opacity: 1; visibility: visible; }
.mobile-menu .mm-heading-area {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 18px; border-bottom: 1px solid var(--bb-line); background: var(--bb-primary-50);
}
.mobile-menu .mm-heading-area img { max-height: 36px; }
.mobile-menu .mm-heading-area .toolbar-item a { font-size: 22px; color: var(--bb-ink); }
.mobile-menu .nav-tabs { display: flex; border: 0; padding: 12px 14px 0; gap: 8px; }
.mobile-menu .nav-tabs li { flex: 1; width: auto !important; }
.mobile-menu .nav-tabs li span {
    display: block; text-align: center; padding: 10px; border-radius: 10px !important;
    background: #F6EFEC !important; color: var(--bb-ink-2) !important; font-weight: 700; cursor: pointer; border: 0 !important;
}
.mobile-menu .nav-tabs li span.active { background: var(--bb-primary) !important; color: #fff !important; }
.mobile-menu .slideable-menu ul { list-style: none; padding: 8px 14px; margin: 0; }
.mobile-menu .slideable-menu li a {
    display: flex; align-items: center; gap: 10px; padding: 13px 8px;
    color: var(--bb-ink) !important; font-weight: 700; font-size: 16px;
    border-bottom: 1px solid var(--bb-line); text-decoration: none;
}
.mobile-menu .slideable-menu li.active > a { color: var(--bb-primary) !important; }
.mobile-menu .slideable-menu li a i.icon-chevron-right { display: none; }
.mobile-menu .t-h-dropdown-menu { position: static !important; box-shadow: none !important; display: block !important; opacity: 1 !important; visibility: visible !important; transform: none !important; padding-left: 12px; border: 0 !important; }
.mobile-menu .t-h-dropdown-menu a { font-weight: 400 !important; font-size: 15px !important; }
.mobile-menu .t-h-dropdown > a .icon-chevron-down { display: none; }
.mobile-menu .widget-categories ul { padding: 0; }
.mobile-menu .widget-categories li a { border-bottom: 1px solid var(--bb-line); }
.bb-mm-contact { padding: 18px; display: grid; gap: 10px; }

/* ---------- Mobile bottom nav ---------- */
.bb-bottom-nav { display: none; }
@media (max-width: 991px) {
    body { padding-bottom: calc(var(--bb-bottom-nav-h) + env(safe-area-inset-bottom)); }
    .bb-bottom-nav {
        display: grid; grid-template-columns: repeat(5, 1fr);
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 1001;
        height: calc(var(--bb-bottom-nav-h) + env(safe-area-inset-bottom));
        padding-bottom: env(safe-area-inset-bottom);
        background: #fff; border-top: 1px solid var(--bb-line);
        box-shadow: 0 -6px 20px -10px rgba(42, 27, 36, .25);
    }
    .bb-bottom-nav a {
        display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
        color: var(--bb-muted); font-size: 11.5px; font-weight: 700; text-decoration: none; position: relative;
    }
    .bb-bottom-nav a i { font-size: 21px; }
    .bb-bottom-nav a.active { color: var(--bb-primary); }
    .bb-bottom-nav a.active::before {
        content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--bb-primary);
    }
    .bb-bottom-nav .bb-count { top: 6px; right: calc(50% - 22px); }
    .bb-bottom-nav__call i { background: var(--bb-green); color: #fff; width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; }
    .bb-bottom-nav__call { color: var(--bb-green) !important; }
    .scroll-to-top-btn { display: none !important; }
}

/* ---------- Floating WhatsApp ---------- */
.bb-wa-float {
    position: fixed; right: 18px; bottom: 22px; z-index: 999;
    width: 56px; height: 56px; border-radius: 50%;
    background: #25D366; color: #fff !important; font-size: 30px;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 24px -6px rgba(37, 211, 102, .6); text-decoration: none !important;
    transition: transform .15s;
}
.bb-wa-float:hover { transform: scale(1.06); }
@media (max-width: 991px) {
    .bb-wa-float { bottom: calc(var(--bb-bottom-nav-h) + 14px + env(safe-area-inset-bottom)); right: 14px; width: 50px; height: 50px; font-size: 26px; }
    body.bb-has-buybar .bb-wa-float { bottom: calc(var(--bb-bottom-nav-h) + 86px + env(safe-area-inset-bottom)); }
}
.scroll-to-top-btn { right: 86px !important; border-radius: 50% !important; background: var(--bb-ink) !important; }

/* ---------- Section scaffolding ---------- */
.bb-section { padding: 36px 0 8px; }
.bb-section--tight { padding-top: 22px; }
.bb-section--cats { background: #f1f1f1; padding-bottom: 36px; }
.bb-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.bb-section__title { font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; margin: 0; line-height: 1.2; }
.bb-section__title small { display: block; font-family: var(--bb-font); font-size: 14px; color: var(--bb-muted); font-weight: 400; letter-spacing: 0; margin-top: 4px; }
.bb-section__link {
    display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 14px;
    color: var(--bb-primary); text-decoration: none; padding: 8px 14px; border-radius: 999px; background: var(--bb-primary-50);
}
.bb-section__link:hover { background: var(--bb-primary); color: #fff; }
.bb-section__head .countdown { margin: 0 !important; }
/* Deals of the week */
.bb-section--deal .bb-section__title { color: #0050D2; }
.bb-section--deal .countdown span { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 48px; padding: 6px 8px; margin-left: 4px; border-radius: 10px; background: #0050D2; color: #fff; font-weight: 700; font-size: 18px; line-height: 1.1; }
.bb-section--deal .countdown span small { font-size: 11px; font-weight: 400; opacity: .85; }
.bb-section--deal .bb-section__link { color: #0050D2; background: #E6EEFB; }
.bb-section--deal .bb-section__link:hover { background: #0050D2; color: #fff; }

/* ---------- Hero ---------- */
.bb-hero { padding-top: 18px; }
.bb-hero .hero-slider { border-radius: var(--bb-radius); overflow: hidden; box-shadow: var(--bb-shadow-sm); background: #F3E9E4; }
.bb-hero .hero-slider .item {
    height: clamp(170px, 38vw, 460px) !important;
    padding: 0 !important; border-radius: 0;
    background-size: cover !important; background-position: center !important;
}
.bb-hero .owl-dots { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; }
.bb-hero .owl-carousel .owl-nav div { background: rgba(255, 255, 255, .9) !important; color: var(--bb-ink) !important; border-radius: 50% !important; }

/* ---------- Trust strip ---------- */
.bb-trust {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px;
}
.bb-trust__item {
    display: flex; align-items: center; gap: 12px;
    background: #fff; border: 1px solid var(--bb-line); border-radius: 14px; padding: 14px 16px;
}
.bb-trust__icon {
    flex: none; width: 44px; height: 44px; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center; font-size: 20px;
    background: var(--bb-primary-50); color: var(--bb-primary);
}
.bb-trust__item:nth-child(2) .bb-trust__icon { background: var(--bb-green-50); color: var(--bb-green); }
.bb-trust__item:nth-child(3) .bb-trust__icon { background: #FEF3C7; color: #B45309; }
.bb-trust__item:nth-child(4) .bb-trust__icon { background: #E0F2FE; color: #0369A1; }
.bb-trust__item strong { display: block; font-size: 15px; line-height: 1.25; color: var(--bb-ink); }
.bb-trust__item div > span { display: block; font-size: 13px; color: var(--bb-muted); line-height: 1.3; }
@media (max-width: 991px) {
    .bb-trust { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .bb-trust__item { padding: 10px 12px; gap: 10px; }
    .bb-trust__icon { width: 36px; height: 36px; font-size: 17px; border-radius: 10px; }
    .bb-trust__item strong { font-size: 14px; }
    .bb-trust__item div > span { font-size: 12px; }
}

/* ---------- Category circles ---------- */
.bb-cats {
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 4px 2px 8px; scrollbar-width: none;
}
.bb-cats::-webkit-scrollbar { display: none; }
.bb-cat {
    flex: 0 0 auto; width: 132px; scroll-snap-align: start;
    text-align: center; text-decoration: none !important; color: var(--bb-ink) !important;
}
.bb-cat__img {
    display: block; width: 116px; height: 116px; margin: 0 auto 10px; border-radius: 50%;
    background: #fff; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--bb-primary-100), var(--bb-shadow-sm);
    overflow: hidden; transition: transform .2s, box-shadow .2s;
}
.bb-cat__img img { width: 100%; height: 100%; object-fit: cover; }
.bb-cat:hover .bb-cat__img { transform: translateY(-3px); box-shadow: 0 0 0 2px var(--bb-primary), var(--bb-shadow); }
.bb-cat__name { font-weight: 700; font-size: 15px; display: block; }
@media (min-width: 992px) { .bb-cats { justify-content: center; gap: 36px; } .bb-cat { width: 150px; } .bb-cat__img { width: 136px; height: 136px; } }
@media (max-width: 575px) { .bb-cat { width: 86px; } .bb-cat__img { width: 78px; height: 78px; } .bb-cat__name { font-size: 13px; } }

/* ---------- Product card ---------- */
.bb-card {
    display: flex; flex-direction: column; height: 100%; width: 100%;
    background: var(--bb-surface); border: 1px solid var(--bb-line); border-radius: var(--bb-radius);
    overflow: hidden; transition: box-shadow .2s, transform .2s, border-color .2s;
}
.bb-card:hover { box-shadow: var(--bb-shadow); border-color: transparent; transform: translateY(-2px); }
.bb-card__media { position: relative; display: block; aspect-ratio: 1 / 1; background: #F7EFEB; overflow: hidden; }
.bb-card__media img { width: 100% !important; height: 100% !important; object-fit: cover; transition: transform .4s; }
.bb-card:hover .bb-card__media img { transform: scale(1.04); }
.bb-card.is-out .bb-card__media img { filter: grayscale(.6); opacity: .75; }
.bb-card__badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.bb-badge {
    display: inline-block; padding: 4px 9px; border-radius: 8px; font-size: 12px; font-weight: 700; line-height: 1.2;
    background: #fff; color: var(--bb-ink); box-shadow: var(--bb-shadow-sm);
}
.bb-badge--sale { background: var(--bb-danger); color: #fff; }
.bb-badge--type { background: rgba(255, 255, 255, .92); color: var(--bb-primary); }
.bb-badge--muted { background: var(--bb-ink); color: #fff; }
.bb-card__body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; flex: 1; }
.bb-card__cat { font-size: 12px; font-weight: 700; color: var(--bb-muted) !important; text-decoration: none; text-transform: uppercase; letter-spacing: .04em; }
.bb-card__title { margin: 0; font-family: var(--bb-font); font-size: 15.5px; font-weight: 700; line-height: 1.4; min-height: 2.8em; }
.bb-card__title a {
    color: #000 !important; text-decoration: none;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* already-browsed products keep the brand colour */
.bb-card__title a:visited { color: var(--bb-brand) !important; }
.bb-card__title a:hover { color: var(--bb-brand) !important; text-decoration: underline; }
.bb-card__rating { font-size: 13px; color: var(--bb-ink-2); font-weight: 700; }
.bb-card__rating i { color: var(--bb-accent); font-size: 12px; }
.bb-card__rating span { color: var(--bb-muted); font-weight: 400; }
.bb-card__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin-top: auto; }
.bb-card__price strong { font-size: 19px; font-weight: 700; color: var(--bb-primary); font-family: var(--bb-font); }
.bb-card__price small { font-size: 13px; color: var(--bb-muted); }
.bb-card__price del { font-size: 13.5px; color: var(--bb-muted); }
.bb-card__pack { font-size: 12px; font-weight: 700; line-height: 1; padding: 4px 7px; border-radius: 6px; background: var(--bb-primary); color: #fff; align-self: center; }
.bb-card__range { font-size: 12.5px; color: var(--bb-muted); }
.bb-card__countdown { font-size: 12px; }
.bb-card__actions { display: flex; gap: 8px; margin-top: 8px; }
.bb-card__order { flex: 1; margin: 0; }
.bb-card__actions .bb-btn { min-height: 42px; font-size: 14.5px; padding: 0 10px; }
.bb-card__actions .bb-btn--icon { width: 42px; min-width: 42px; }
@media (max-width: 575px) {
    .bb-card__body { padding: 10px 10px 12px; gap: 4px; }
    .bb-card__title { font-size: 14px; }
    .bb-card__price strong { font-size: 17px; }
    .bb-card__actions { gap: 6px; }
    .bb-card__actions .bb-btn { min-height: 40px; font-size: 13.5px; gap: 5px; }
    .bb-card__actions .bb-btn i.icon-shopping-bag, .bb-card__actions .bb-btn i.icon-sliders { display: none; }
    .bb-card__actions .bb-btn--icon { width: 40px; min-width: 40px; }
}

/* Quick-order popup (card "Order Now" on pack/tier products) */
.bb-qo { position: fixed; inset: 0; z-index: 10050; display: none; align-items: center; justify-content: center; padding: 16px; }
.bb-qo.is-open { display: flex; }
.bb-qo-lock { overflow: hidden; }
.bb-qo__backdrop { position: absolute; inset: 0; background: rgba(42, 27, 36, .55); }
.bb-qo__dialog { position: relative; width: 100%; max-width: 420px; max-height: calc(100vh - 32px); overflow-y: auto; background: var(--bb-surface); border-radius: var(--bb-radius); box-shadow: var(--bb-shadow); padding: 20px; }
.bb-qo__close { position: absolute; top: 8px; right: 10px; width: 34px; height: 34px; border: 0; background: none; font-size: 26px; line-height: 1; color: var(--bb-muted); cursor: pointer; }
.bb-qo__close:hover { color: var(--bb-primary); }
.bb-qo__head { display: flex; align-items: center; gap: 12px; padding-right: 30px; margin-bottom: 16px; }
.bb-qo__head img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--bb-radius-sm); border: 1px solid var(--bb-line); flex: none; }
.bb-qo__head h4 { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.35; color: var(--bb-ink); font-family: var(--bb-font); }
.bb-qo__label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 700; color: var(--bb-ink-2); }
.bb-qo__options { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin-bottom: 18px; }
.bb-qo__opt { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 8px; background: #fff; border: 1.5px solid var(--bb-line); border-radius: 12px; font-family: var(--bb-font); cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.bb-qo__opt:hover { border-color: var(--bb-primary); }
.bb-qo__opt.active { border-color: var(--bb-primary); background: var(--bb-primary-50); box-shadow: 0 0 0 3px var(--bb-primary-50); }
.bb-qo__opt-label { font-size: 14px; font-weight: 700; color: var(--bb-ink); }
.bb-qo__opt-price { font-size: 14px; font-weight: 700; color: var(--bb-primary); }
.bb-qo__opt del { font-size: 12px; color: var(--bb-muted); }
@media (max-width: 575px) {
    .bb-qo { align-items: flex-end; padding: 0; }
    .bb-qo__dialog { max-width: none; border-radius: var(--bb-radius) var(--bb-radius) 0 0; padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
}

/* Product grids */
.bb-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1199px) { .bb-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 991px) { .bb-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) { .bb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.bb-grid > .load-more-button, .bb-grid > .bb-grid__full { grid-column: 1 / -1; }

/* Owl carousels hosting cards: equal heights + nicer nav */
.bb-slider .owl-stage { display: flex; }
.bb-slider .owl-item { display: flex; }
.bb-slider .owl-item > .slider-item { display: flex; width: 100%; }
.bb-slider .owl-stage-outer { padding: 4px 2px 12px; margin: -4px -2px 0; }
.bb-slider .owl-nav div, .bb-slider .owl-nav button {
    width: 40px !important; height: 40px !important; border-radius: 50% !important;
    background: #fff !important; box-shadow: var(--bb-shadow) !important; color: var(--bb-ink) !important;
    /* theme sets line-height:26px for a 26px button; at 40px the glyph drifts off-centre */
    display: flex !important; align-items: center; justify-content: center;
    line-height: 1 !important; padding: 0 !important; margin: 0 !important; font-size: 16px !important;
    top: 50% !important; transform: translateY(-50%) !important;
}
.bb-slider .owl-nav div > i, .bb-slider .owl-nav button > i { line-height: 1; display: block; }
.bb-slider .owl-nav div::before, .bb-slider .owl-nav button::before { line-height: 1; display: block; }
.bb-slider.owl-carousel .owl-prev { left: -14px !important; right: auto !important; }
.bb-slider.owl-carousel .owl-next { right: -14px !important; left: auto !important; }
@media (max-width: 767px) { .bb-slider .owl-nav { display: none !important; } }

/* Load more */
.load-more-button { padding-top: 12px; }
#loadMore {
    width: auto !important; min-width: 220px; min-height: 48px; border-radius: 999px !important;
    background: #fff !important; color: var(--bb-primary) !important; border: 1.5px solid var(--bb-primary) !important;
    font-weight: 700; box-shadow: none !important;
}
#loadMore:hover { background: var(--bb-primary) !important; color: #fff !important; }
.bb-empty { grid-column: 1 / -1; text-align: center; color: var(--bb-muted); padding: 24px; }

/* Tabs (Featured / Best seller …) */
.bb-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.bb-tabs::-webkit-scrollbar { display: none; }
.bb-tabs a {
    flex: none; padding: 9px 18px; border-radius: 999px; background: #fff; border: 1.5px solid var(--bb-line);
    color: var(--bb-ink-2) !important; font-weight: 700; font-size: 14px; text-decoration: none;
}
.bb-tabs a.active, .bb-tabs a:hover { background: var(--bb-primary); border-color: var(--bb-primary); color: #fff !important; }
.type_product_view { text-align: center; padding: 30px 0; }

/* Banners */
.bb-banner { display: block; border-radius: var(--bb-radius); overflow: hidden; }
.bb-banner img { width: 100%; display: block; transition: transform .4s; }
.bb-banner:hover img { transform: scale(1.015); }

/* Reviews */
.bb-review {
    background: #fff; border: 1px solid var(--bb-line); border-radius: var(--bb-radius);
    overflow: hidden; height: 100%; display: flex; flex-direction: column; width: 100%;
}
.bb-review__img { aspect-ratio: 4 / 3; background: #F7EFEB; }
.bb-review__img img { width: 100%; height: 100%; object-fit: cover; }
.bb-review__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.bb-review__stars { color: var(--bb-accent); font-size: 13px; }
.bb-review__text { color: var(--bb-ink-2); font-size: 14.5px; margin: 0; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.bb-review__who { margin-top: auto; font-size: 13px; color: var(--bb-muted); }
.bb-review__who strong { color: var(--bb-ink); }

/* Admin "services" block */
.bb-services .single-service {
    background: #fff; border: 1px solid var(--bb-line); border-radius: var(--bb-radius);
    padding: 20px 14px; height: 100%;
}
.bb-services .single-service img { width: 48px !important; height: 48px; object-fit: contain; margin-bottom: 10px; }

/* ---------- Footer ---------- */
.bb-footer { background: var(--bb-footer); color: #D6E2F5; margin-top: 56px; padding: 48px 0 0; }
.bb-footer a { color: #D6E2F5; text-decoration: none; }
.bb-footer a:hover { color: #fff; }
.bb-footer h3 { color: #fff; font-size: 18px; margin: 0 0 16px; }
.bb-footer__brand img { max-height: 52px; background: #fff; padding: 6px 10px; border-radius: 12px; margin-bottom: 14px; }
.bb-footer__brand p { font-size: 14px; opacity: .85; max-width: 320px; }
.bb-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14.5px; }
.bb-footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.bb-footer__contact i { color: var(--bb-accent); margin-top: 4px; }
.bb-footer__social { display: flex; gap: 8px; margin-top: 16px; }
.bb-footer__social a {
    width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .1);
    display: inline-flex; align-items: center; justify-content: center;
}
.bb-footer__social a:hover { background: var(--bb-primary); }
.bb-footer .subscriber-form .input-group { display: flex; background: #fff; border-radius: 12px; padding: 4px; }
.bb-footer .subscriber-form input { border: 0 !important; box-shadow: none !important; min-height: 42px; }
.bb-footer .subscriber-form button { border-radius: 10px !important; margin: 0 !important; }
.bb-pay { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.bb-pay span {
    background: #fff; color: var(--bb-ink); border-radius: 8px; padding: 5px 10px;
    font-size: 12.5px; font-weight: 700; letter-spacing: .01em;
}
.bb-pay .bb-pay--bkash { color: #E2136E; }
.bb-pay .bb-pay--nagad { color: #EC1C24; }
.bb-pay .bb-pay--cod { color: var(--bb-green); }
.bb-footer__bottom {
    margin-top: 36px; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: 13.5px; opacity: .8; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.bb-footer__bottom img { max-height: 26px; }
@media (max-width: 767px) {
    .bb-footer { padding-top: 32px; margin-top: 36px; }
    .bb-footer .col-6 h3 { font-size: 16px; }
}

/* ---------- Inner pages: breadcrumb/page title ---------- */
.page-title { background: transparent !important; padding: 18px 0 6px !important; border: 0 !important; }
.page-title .breadcrumbs { font-size: 13.5px; margin: 0; }
.page-title .breadcrumbs li, .page-title .breadcrumbs a { color: var(--bb-muted); }
.page-title .breadcrumbs li:last-child { color: var(--bb-ink); font-weight: 700; }

/* Generic card / widgets polish */
.card { border-radius: var(--bb-radius) !important; border: 1px solid var(--bb-line) !important; box-shadow: none !important; }
.widget-title { font-family: var(--bb-font-display); }
.section-title { border-bottom: 0 !important; }
.section-title .h3, .section-title h2 { font-size: clamp(20px, 2.4vw, 26px) !important; font-weight: 700 !important; }
.pagination .page-item .page-link, .pagination li a, .pagination li span { border-radius: 10px !important; margin: 0 3px; }
.pagination .active .page-link, .pagination li.active span { background: var(--bb-primary) !important; border-color: var(--bb-primary) !important; color: #fff !important; }

/* ---------- Product details ---------- */
.bb-pd { padding-bottom: 20px; }
.bb-pd .product-gallery {
    background: #fff; border: 1px solid var(--bb-line); border-radius: var(--bb-radius); overflow: hidden; padding: 0 !important;
}
.bb-pd .product-gallery .product-thumbnails { padding: 0 !important; }
.bb-pd .product-gallery .item img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.bb-pd .product-gallery .product-badge { z-index: 5; border-radius: 8px !important; }
.bb-pd .p-title-main { font-size: clamp(22px, 3vw, 32px) !important; font-weight: 700; line-height: 1.25; color: var(--bb-brand) !important; }
.bb-pd .price-area { display: flex !important; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 6px 0 16px; }
.bb-pd .price-area .main-price { font-size: clamp(26px, 3.4vw, 34px); color: var(--bb-primary); font-weight: 700; font-family: var(--bb-font); }
.bb-pd .price-area del { color: var(--bb-muted); font-size: 18px; }
.bb-pd .tier-pill { border-radius: 12px !important; border-color: var(--bb-line) !important; min-width: 100px; }
.bb-pd .tier-pill:hover { border-color: var(--bb-primary) !important; }
.bb-pd .tier-pill.active { border-color: var(--bb-primary) !important; background: var(--bb-primary-50) !important; box-shadow: 0 0 0 3px var(--bb-primary-50) !important; }
.bb-pd .tier-pill.active .tier-pill-price, .bb-pd .tier-pill.active .tier-pill-qty { color: var(--bb-primary) !important; }
.bb-pd .qtySelector {
    display: inline-flex !important; align-items: center; border: 1.5px solid var(--bb-line); border-radius: 12px; overflow: hidden; background: #fff; margin-bottom: 14px;
}
.bb-pd .qtySelector span { width: 46px; height: 46px; display: inline-flex !important; align-items: center; justify-content: center; cursor: pointer; background: #FAF4F1; position: static !important; }
.bb-pd .qtySelector input { width: 64px; height: 46px; border: 0; text-align: center; font-weight: 700; font-size: 16px; position: static !important; }
.bb-pd .p-action-button { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 520px; }
.bb-pd .p-action-button .btn { min-height: 52px; font-size: 16px; margin: 0 !important; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.bb-pd #add_to_cart { background: #fff !important; color: var(--bb-primary) !important; border: 1.5px solid var(--bb-primary) !important; }
.bb-pd #add_to_cart:hover { background: var(--bb-primary-50) !important; }
.bb-pd-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 520px; margin-top: 10px; }
.bb-pd-trust {
    margin-top: 18px; max-width: 520px; background: #fff; border: 1px solid var(--bb-line); border-radius: 14px; padding: 6px 16px;
}
.bb-pd-trust li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--bb-line); font-size: 14.5px; }
.bb-pd-trust li:last-child { border-bottom: 0; }
.bb-pd-trust i { color: var(--bb-green); font-size: 18px; width: 20px; text-align: center; }
.bb-pd-trust ul { list-style: none; padding: 0; margin: 0; }
.bb-pd .t-c-b-area { font-size: 14px; color: var(--bb-muted); margin-top: 18px; }
.bb-pd .p-d-f-area .btn-sm { border-radius: 10px !important; background: #fff !important; color: var(--bb-ink-2) !important; border: 1.5px solid var(--bb-line) !important; }
.bb-pd .nav-tabs { border: 0; gap: 8px; margin-bottom: 12px; }
.bb-pd .nav-tabs .nav-link { border: 1.5px solid var(--bb-line) !important; border-radius: 999px !important; padding: 9px 20px; font-weight: 700; color: var(--bb-ink-2); background: #fff; cursor: pointer; }
.bb-pd .nav-tabs .nav-link.active { background: var(--bb-ink) !important; color: #fff !important; border-color: var(--bb-ink) !important; }
.bb-pd .tab-content.card { padding: 22px; }

/* Sticky mobile buy bar */
.bb-buybar { display: none; }
@media (max-width: 991px) {
    .bb-buybar {
        display: flex; gap: 8px; align-items: center;
        position: fixed; left: 0; right: 0; z-index: 1000;
        bottom: calc(var(--bb-bottom-nav-h) + env(safe-area-inset-bottom));
        background: #fff; padding: 10px 12px; border-top: 1px solid var(--bb-line);
        box-shadow: 0 -8px 20px -12px rgba(42, 27, 36, .3);
    }
    .bb-buybar .bb-btn { flex: 1; min-height: 48px; }
    .bb-buybar .bb-btn--icon { flex: none; width: 48px; }
    body.bb-has-buybar { padding-bottom: calc(var(--bb-bottom-nav-h) + 72px + env(safe-area-inset-bottom)); }
}

/* ---------- Cart / checkout polish ---------- */
.shopping-cart, .cart-table, .checkout-steps, .checkout-area .card, .table-responsive {
    border-radius: var(--bb-radius);
}
.checkout-steps a { border-radius: 10px; }
.checkout-steps a.active { background: var(--bb-primary) !important; color: #fff !important; }
.table thead th { font-family: var(--bb-font); font-weight: 700; color: var(--bb-ink-2); }

/* Legacy leftovers the redesign replaces */
.site-footer, .menu-top-area { display: none !important; }

/* Legacy dropdown resets inside new header */
.bb-nav .t-h-dropdown, .bb-topbar .t-h-dropdown { margin-right: 0; display: block; }
.bb-topbar .t-h-dropdown { display: inline-block; }
.bb-nav .t-h-dropdown .t-h-dropdown-menu, .bb-topbar .t-h-dropdown .t-h-dropdown-menu { border-top: 0; top: calc(100% + 2px); }
.bb-topbar .t-h-dropdown .t-h-dropdown-menu { left: auto; right: 0; }
.bb-nav .t-h-dropdown .main-link, .bb-nav .t-h-dropdown .main-link i { color: inherit; top: 0; left: 0; margin: 0; }
.bb-topbar .t-h-dropdown-menu a { color: var(--bb-ink-2) !important; font-size: 14px; }

/* ---------- Fixes from visual QA ---------- */
.bb-trust__icon i, .bb-hotline__icon i { position: static !important; margin: 0 !important; line-height: 1; display: block; }
.bb-pd .p-action-button .btn { width: 100%; min-width: 0; padding: 0 10px !important; white-space: nowrap; overflow: hidden; }
.bb-pd .p-action-button .btn span, .bb-pd .p-action-button .btn i { position: static !important; transform: none !important; opacity: 1 !important; }
.bb-pd #add_to_cart, .bb-pd #add_to_cart span, .bb-pd #add_to_cart i { color: var(--bb-primary) !important; }
.bb-pd-quick .bb-btn { min-width: 0; padding: 0 10px; font-size: 14px; }
@media (max-width: 991px) {
    body.bb-has-buybar .bb-wa-float { display: none; }
}
.shop-view a.active, .shop-view a:hover { background: var(--bb-primary) !important; border-color: var(--bb-primary) !important; color: #fff !important; }
.shop-top-filter-wrapper { background: #fff; border: 1px solid var(--bb-line); border-radius: var(--bb-radius); }
.widget-categories.card { border-radius: var(--bb-radius) !important; }

/* ---------- Checkout ---------- */
.bb-checkout { padding-top: 20px; padding-bottom: 40px; }
.bb-steps {
    display: flex; list-style: none; padding: 0; margin: 0 0 22px;
    background: #fff; border: 1px solid var(--bb-line); border-radius: 14px; overflow: hidden;
}
.bb-steps li {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 8px; font-size: 14.5px; font-weight: 700; color: var(--bb-muted); position: relative;
}
.bb-steps li + li::before {
    content: ""; position: absolute; left: 0; top: 25%; bottom: 25%; width: 1px; background: var(--bb-line);
}
.bb-steps li a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.bb-steps li span {
    width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    background: #F4ECE8; color: var(--bb-muted); font-size: 13px; flex: none;
}
.bb-steps li.is-done { color: var(--bb-green); }
.bb-steps li.is-done span { background: var(--bb-green); color: #fff; }
.bb-steps li.is-active { color: var(--bb-primary); background: var(--bb-primary-50); }
.bb-steps li.is-active span { background: var(--bb-primary); color: #fff; }

.bb-co-card {
    background: #fff; border: 1px solid var(--bb-line); border-radius: var(--bb-radius);
    padding: 22px; margin-bottom: 16px;
}
.bb-co-card__title { display: flex; align-items: center; gap: 10px; font-size: 20px; margin: 0 0 4px; }
.bb-co-card__title span {
    width: 28px; height: 28px; border-radius: 9px; background: var(--bb-ink); color: #fff;
    display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-family: var(--bb-font);
}
.bb-co-card__sub { color: var(--bb-muted); font-size: 14px; margin: 0 0 16px 38px; }
.bb-co-card > .bb-options { margin-top: 14px; }
.bb-label { display: block; font-weight: 700; font-size: 14.5px; margin-bottom: 6px; color: var(--bb-ink); }
.bb-label b { color: var(--bb-danger); font-weight: 700; }
.bb-field { position: relative; }
.bb-field > i { position: absolute; left: 14px; top: 16px; color: var(--bb-muted); font-size: 16px; pointer-events: none; z-index: 2; }
.bb-field .form-control { padding-left: 42px !important; min-height: 50px; font-size: 16px; background: #FDFBFA; }
.bb-field .form-control:focus { background: #fff; }
.bb-field--area textarea.form-control { padding-top: 12px; resize: vertical; }
.bb-error { display: none; color: var(--bb-danger); font-size: 13px; margin-top: 5px; }
.bb-invalid .bb-error { display: block; }
.bb-invalid .form-control { border-color: var(--bb-danger) !important; background: #FEF6F6; }
.bb-invalid .bb-option__box { border-color: var(--bb-danger); }

.bb-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.bb-option { position: relative; margin: 0; cursor: pointer; display: block; }
.bb-option input { position: absolute; opacity: 0; pointer-events: none; }
.bb-option__box {
    display: flex; align-items: center; gap: 12px; padding: 14px 16px; min-height: 64px;
    border: 1.5px solid var(--bb-line); border-radius: 14px; background: #fff; transition: border-color .15s, background .15s, box-shadow .15s;
}
.bb-option:hover .bb-option__box { border-color: var(--bb-primary-100); }
.bb-option__radio {
    flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #CFC2BC; position: relative; transition: border-color .15s;
}
.bb-option__text { flex: 1; line-height: 1.3; }
.bb-option__text strong { display: block; font-size: 15px; color: var(--bb-ink); }
.bb-option__text small { color: var(--bb-muted); font-size: 12.5px; }
.bb-option__price { font-weight: 700; color: var(--bb-ink); font-size: 15px; }
.bb-option__icon {
    width: 38px; height: 38px; border-radius: 10px; background: var(--bb-green-50); color: var(--bb-green);
    display: inline-flex; align-items: center; justify-content: center; font-size: 18px;
}
.bb-option input:checked + .bb-option__box { border-color: var(--bb-primary); background: var(--bb-primary-50); box-shadow: 0 0 0 3px var(--bb-primary-50); }
.bb-option input:checked + .bb-option__box .bb-option__radio { border-color: var(--bb-primary); }
.bb-option input:checked + .bb-option__box .bb-option__radio::after {
    content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--bb-primary);
}
.bb-option input:focus-visible + .bb-option__box { outline: 3px solid var(--bb-primary-100); outline-offset: 2px; }

.bb-terms { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 16px; font-size: 14px; }
.bb-terms input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--bb-primary); }

.bb-co-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.bb-co-submit { min-width: 300px; justify-content: space-between; }
.bb-co-submit__total { background: rgba(255, 255, 255, .2); padding: 6px 10px; border-radius: 8px; font-size: 15px; }
.bb-co-submit[disabled] { opacity: .55; cursor: not-allowed; box-shadow: none; }
.bb-co-submit.is-loading span:first-child::after { content: " ..."; }

/* Order summary */
.bb-summary {
    background: #fff; border: 1px solid var(--bb-line); border-radius: var(--bb-radius); padding: 20px;
    position: sticky; top: calc(var(--bb-header-h) + 60px);
}
.bb-summary__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.bb-summary__head h3 { font-size: 19px; margin: 0; }
.bb-summary__head span { font-size: 13px; color: var(--bb-muted); }
.bb-summary__items { display: grid; gap: 14px; max-height: 320px; overflow-y: auto; padding: 8px 6px 12px 0; border-bottom: 1px dashed var(--bb-line); }
.bb-summary__item { display: flex; gap: 12px; align-items: center; }
.bb-summary__thumb { position: relative; flex: none; }
.bb-summary__thumb img { width: 58px; height: 58px; object-fit: cover; border-radius: 12px; border: 1px solid var(--bb-line); }
.bb-summary__qty {
    position: absolute; top: -7px; right: -7px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px;
    background: var(--bb-ink); color: #fff; font-size: 11.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 0 0 2px #fff;
}
.bb-summary__info { flex: 1; min-width: 0; }
.bb-summary__name {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    font-weight: 700; font-size: 14px; color: var(--bb-ink) !important; text-decoration: none; line-height: 1.35;
}
.bb-summary__meta { display: block; font-size: 12.5px; color: var(--bb-muted); }
.bb-summary__line { font-size: 14.5px; white-space: nowrap; }
.bb-summary__hint {
    margin: 12px 0 0; padding: 9px 12px; border-radius: 10px; background: #FEF3C7; color: #92400E; font-size: 13px;
}
.bb-summary__totals { width: 100%; margin-top: 10px; font-size: 15px; }
.bb-summary__totals td { padding: 7px 0; color: var(--bb-ink-2); }
.bb-summary__totals td:last-child { text-align: right; font-weight: 700; color: var(--bb-ink); }
.bb-summary__totals tr.is-discount td:last-child { color: var(--bb-green); }
.bb-summary__totals tr.is-total td { border-top: 1px solid var(--bb-line); padding-top: 12px; font-size: 18px; font-weight: 700; color: var(--bb-ink); }
.bb-summary__totals tr.is-total td:last-child { color: var(--bb-primary); font-size: 21px; }
.bb-summary__trust { list-style: none; padding: 12px 0 0; margin: 10px 0 0; border-top: 1px dashed var(--bb-line); display: grid; gap: 6px; }
.bb-summary__trust li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--bb-muted); }
.bb-summary__trust i { color: var(--bb-green); }

@media (max-width: 991px) {
    .bb-summary { position: static; padding: 16px; }
    .bb-summary__items { max-height: 210px; }
    .bb-summary__trust { display: none; }
    /* checkout = focus mode: hide bottom nav / floating chat, pin the submit bar instead */
    body.bb-checkout-page { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
    body.bb-checkout-page .bb-bottom-nav, body.bb-checkout-page .bb-wa-float { display: none !important; }
    .bb-checkout-page .bb-co-actions {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 1001; background: #fff;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--bb-line);
        box-shadow: 0 -8px 20px -12px rgba(42, 27, 36, .3);
    }
    .bb-checkout-page .bb-co-actions .bb-btn--ghost { display: none; }
    .bb-co-submit { width: 100%; min-width: 0; min-height: 54px; }
}
@media (max-width: 575px) {
    .bb-co-card { padding: 16px; }
    .bb-co-card__sub { margin-left: 0; }
    .bb-steps li { font-size: 12.5px; flex-direction: column; gap: 4px; padding: 10px 4px; }
    .bb-steps li a { flex-direction: column; gap: 4px; }
}
