/* =========================================================
   HOMEPAGE V3 — layout from the approved reference,
   accent colours from the Bongo Bazar logo (green + orange).
   Loaded on the homepage only.
   ========================================================= */

body { background: var(--bb-bg) !important; }
html body #content { padding-top: 0 !important; margin-top: 0 !important; }
body .ann-trust-bar { display: none !important; }       /* replaced by .bb-topbar */
.mobile_bottom_nav { display: none !important; }

.bb-topbar, .bb-header, .bb-home, .bb-footer, .bb-bnav { font-family: var(--bb-font); color: var(--bb-ink); }
.bb-topbar *, .bb-header *, .bb-home *, .bb-footer *, .bb-bnav * { box-sizing: border-box; }
.bb-header a, .bb-home a, .bb-footer a, .bb-bnav a { text-decoration: none; }
.bb-home img { max-width: 100%; }
.bb-home h2, .bb-footer h3, .bb-footer h4 { margin: 0; }


/* =========================================================
   HOME
   ========================================================= */
.bb-home { padding-bottom: 36px; }
.bb-section { padding: 14px 0; }

/* hero */
.bb-hero { padding: 0 0 6px; }
.bb-hero-slider { border-radius: 16px; overflow: hidden; position: relative; background: #EADFD4; }
.bb-slide img { display: block; width: 100%; height: auto; }
.bb-hero-slider .owl-dots {
    position: absolute; right: 18px; bottom: 12px; display: flex; gap: 6px; margin: 0 !important;
}
.bb-hero-slider .owl-dot span {
    display: block; width: 7px !important; height: 7px !important; margin: 0 !important;
    border-radius: 999px; background: rgba(255, 255, 255, .6) !important; transition: width .3s;
}
.bb-hero-slider .owl-dot.active span { width: 22px !important; background: #fff !important; }
.bb-hero-slider .owl-nav { display: none !important; }

/* categories */
.bb-cats { padding: 14px 0 6px; }
.bb-cat-row {
    display: flex; justify-content: center; gap: 26px; overflow-x: auto;
    scrollbar-width: none; padding: 4px 2px;
}
.bb-cat-row::-webkit-scrollbar { display: none; }
.bb-cat { flex: 0 0 86px; display: flex; flex-direction: column; align-items: center; gap: 7px; }
.bb-cat-img {
    width: 76px; height: 76px; border-radius: 50%; overflow: hidden; padding: 4px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .12); transition: transform .25s;
}
.bb-cat:hover .bb-cat-img { transform: translateY(-3px) scale(1.04); }
.bb-cat-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; background: #fff; }
.bb-g0 .bb-cat-img { background: linear-gradient(135deg, #5B8DEF, #2F5BD3); }
.bb-g1 .bb-cat-img { background: linear-gradient(135deg, #4A4F5C, #1F232B); }
.bb-g2 .bb-cat-img { background: linear-gradient(135deg, #22C1A6, #0E8C78); }
.bb-g3 .bb-cat-img { background: linear-gradient(135deg, #F06292, #C2185B); }
.bb-g4 .bb-cat-img { background: linear-gradient(135deg, #FF9A3C, #E8590C); }
.bb-g5 .bb-cat-img { background: linear-gradient(135deg, #A66CFF, #6D3FD6); }
.bb-cat-name {
    font-size: 13px; font-weight: 500; color: var(--bb-ink); text-align: center; line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* section heads */
.bb-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.bb-title { font-family: var(--bb-display); font-size: 21px; font-weight: 700; color: var(--bb-ink); line-height: 1.2; }
.bb-link { color: var(--bb-accent) !important; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.bb-link i { font-size: 11px; }
.bb-link:hover { color: var(--bb-orange) !important; }

/* flash */
.bb-flash {
    background: var(--bb-flash-bg); border: 1px solid var(--bb-flash-line);
    border-radius: 16px; padding: 16px 0 16px 16px;
}
.bb-flash-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-right: 16px; margin-bottom: 14px; }
.bb-flash-title { font-family: var(--bb-display); font-size: 21px; font-weight: 700; color: var(--bb-orange); display: flex; align-items: center; gap: 8px; }
.bb-flash-title i { font-size: 18px; }
.bb-timer { display: flex; align-items: center; gap: 5px; }
.bb-timer-lbl { font-size: 13px; color: var(--bb-muted); margin-right: 4px; }
.bb-timer b {
    min-width: 32px; height: 30px; padding: 0 5px; border-radius: 8px; background: #1A1410; color: #fff;
    font-size: 15px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
}
.bb-hscroll { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 16px 4px 0; scrollbar-width: none; }
.bb-hscroll::-webkit-scrollbar { display: none; }
.bb-hscroll > .bb-card { flex: 0 0 calc((100% - 4 * 14px) / 5); scroll-snap-align: start; }

/* grid */
.bb-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }

/* card */
.bb-card {
    background: var(--bb-card); border: 1px solid var(--bb-line); border-radius: 12px; overflow: hidden;
    display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s;
}
.bb-card:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(60, 35, 15, .1); }
.bb-card-img { position: relative; display: block; aspect-ratio: 1 / 1; background: #F3EEE8; overflow: hidden; }
.bb-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.bb-card:hover .bb-card-img img { transform: scale(1.05); }
.bb-off {
    position: absolute; top: 8px; left: 8px; z-index: 2;
    background: #D9480F; color: #fff; font-size: 11.5px; font-weight: 700;
    padding: 2px 8px; border-radius: 6px;
}
.bb-card-body { padding: 10px 10px 10px; display: flex; flex-direction: column; flex: 1; }
.bb-card-name {
    color: var(--bb-ink) !important; font-size: 14px; font-weight: 500; line-height: 1.4;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block;
}
.bb-price { display: flex; align-items: baseline; gap: 7px; margin: 12px 0 10px; }
.bb-price strong { font-size: 16px; font-weight: 700; color: var(--bb-ink); }
.bb-price del { font-size: 12px; color: var(--bb-muted); }
.bb-card-actions { display: flex; gap: 6px; margin-top: auto; }
.bb-card-actions form { margin: 0; }
.bb-card-actions .bb-form-order { flex: 1; min-width: 0; display: flex; }
.bb-btn-cart {
    width: 38px; height: 36px; flex-shrink: 0; border: 0; cursor: pointer; border-radius: 9px;
    background: var(--bb-accent-soft); color: var(--bb-accent) !important; font-size: 14px;
    display: inline-flex; align-items: center; justify-content: center; transition: background .2s, color .2s;
}
.bb-btn-cart:hover { background: var(--bb-accent); color: #fff !important; }
.bb-btn-order {
    flex: 1; width: 100%; height: 36px; border: 0; cursor: pointer; border-radius: 9px;
    background: linear-gradient(180deg, var(--bb-orange-2), var(--bb-orange));
    color: #fff !important; font-family: var(--bb-font); font-size: 14px; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap;
    box-shadow: 0 4px 10px rgba(236, 95, 18, .28); transition: filter .2s;
}
.bb-btn-order:hover { filter: brightness(.93); }
.bb-btn-order i { font-size: 12px; }

/* trust strip */
.bb-trust-sec { padding: 8px 0; }
.bb-trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.bb-trust-item {
    background: #fff; border: 1px solid var(--bb-line); border-radius: 10px; padding: 12px 14px;
    display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--bb-ink);
}
.bb-trust-item i { color: var(--bb-accent); font-size: 17px; width: 20px; text-align: center; }

/* =========================================================
   FOOTER
   ========================================================= */
.bb-footer { background: var(--bb-footer); color: rgba(255, 255, 255, .78); padding-top: 26px; }
.bb-foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 20px; }
.bb-foot-brand { color: #fff; font-family: var(--bb-font); font-size: 19px; font-weight: 700; margin-bottom: 8px !important; letter-spacing: .3px; }
.bb-foot-about p { font-size: 14px; line-height: 1.7; color: rgba(255, 255, 255, .75); margin: 0 0 12px; text-align: left; }
.bb-foot-contact, .bb-foot-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.bb-foot-contact li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.bb-foot-contact i { width: 14px; text-align: center; color: rgba(255, 255, 255, .7); }
.bb-foot-col h4 { color: #fff; font-family: var(--bb-display); font-size: 17px; font-weight: 700; margin-bottom: 10px !important; }
.bb-footer a { color: rgba(255, 255, 255, .75) !important; font-size: 14px; transition: color .2s; }
.bb-footer a:hover { color: var(--bb-orange-2) !important; }
.bb-chip { display: inline-block; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14); color: #fff; font-size: 13px; padding: 4px 10px; border-radius: 6px; }
.bb-foot-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 10px 0; font-size: 12.5px; color: rgba(255, 255, 255, .55); }

/* mobile bottom nav */
.bb-bnav { display: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1199px) {
    .bb-grid { grid-template-columns: repeat(4, 1fr); }
    .bb-hscroll > .bb-card { flex-basis: calc((100% - 3 * 14px) / 4); }
}
@media (max-width: 991px) {
    .bb-grid { grid-template-columns: repeat(3, 1fr); }
    .bb-hscroll > .bb-card { flex-basis: calc((100% - 2 * 14px) / 3); }
    .bb-trust { grid-template-columns: repeat(2, 1fr); }
    .bb-foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
    body { padding-bottom: 64px; }
    .bb-hero .container, .bb-section .container, .bb-cats .container, .bb-trust-sec .container { padding-left: 10px; padding-right: 10px; }
    .bb-hero-slider { border-radius: 14px; margin-top: 10px; }
    .bb-cat-row { justify-content: flex-start; gap: 12px; }
    .bb-cat { flex-basis: 70px; }
    .bb-cat-img { width: 60px; height: 60px; padding: 3px; }
    .bb-cat-name { font-size: 12px; }
    .bb-title, .bb-flash-title { font-size: 18px; }
    .bb-flash { padding: 12px 0 12px 10px; border-radius: 14px; }
    .bb-flash-head { padding-right: 10px; margin-bottom: 10px; }
    .bb-timer-lbl { font-size: 12px; }
    .bb-timer b { min-width: 26px; height: 26px; font-size: 13px; border-radius: 6px; }
    .bb-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .bb-hscroll { gap: 10px; padding-right: 10px; }
    .bb-hscroll > .bb-card { flex-basis: 44%; }
    .bb-card-body { padding: 8px; }
    .bb-card-name { font-size: 13px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-height: 2.8em; }
    .bb-price { margin: 8px 0; }
    .bb-price strong { font-size: 15px; }
    .bb-btn-cart { width: 34px; height: 34px; }
    .bb-btn-order { height: 34px; font-size: 13px; gap: 4px; }
    .bb-trust { gap: 8px; }
    .bb-trust-item { font-size: 12.5px; padding: 10px; gap: 8px; }
    .bb-foot-grid { grid-template-columns: 1fr; gap: 20px; }

    .bb-bnav {
        display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 998;
        background: #fff; border-top: 1px solid var(--bb-line); height: 62px;
        box-shadow: 0 -4px 16px rgba(0, 0, 0, .06); padding-bottom: env(safe-area-inset-bottom);
    }
    .bb-bnav-item {
        flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
        color: #7C716A !important; font-size: 11.5px; font-weight: 500;
    }
    .bb-bnav-item i { font-size: 17px; }
    .bb-bnav-item.active { color: var(--bb-accent) !important; }
    .bb-bnav-cart { justify-content: flex-end; padding-bottom: 7px; }
    .bb-bnav-fab {
        position: relative; width: 52px; height: 52px; border-radius: 50%; margin-top: -26px; margin-bottom: 2px;
        background: var(--bb-accent); color: #fff; display: flex; align-items: center; justify-content: center;
        border: 4px solid #fff; box-shadow: 0 6px 16px rgba(14, 90, 52, .35);
    }
    .bb-bnav-fab i { font-size: 19px; }
    .bb-bnav-fab .bb-badge { top: -4px; right: -4px; }
}

/* Narrow centred layout like the reference */
@media (min-width: 1200px) {
    .bb-home .container, .bb-footer .container { max-width: 1000px; }
}

/* ---- Section headings: clean English font ---- */
.bb-home .bb-title, .bb-home .bb-flash-title, .bb-home .bb-link, .bb-home .bb-timer-lbl {
    font-family: 'Poppins', 'Hind Siliguri', system-ui, sans-serif !important; letter-spacing: -.2px;
}
.bb-home .bb-title, .bb-home .bb-flash-title { font-size: 22px !important; font-weight: 700 !important; line-height: 1.2 !important; }
.bb-home .bb-title { color: var(--bb-ink) !important; display: flex; align-items: center; gap: 8px; }
.bb-home .bb-title i { font-size: 18px; }
.bb-home .bb-flash-title { color: var(--bb-orange) !important; }
.bb-home .bb-timer-lbl { font-size: 12.5px; font-weight: 500; }
@media (max-width: 767px) { .bb-home .bb-title, .bb-home .bb-flash-title { font-size: 18px !important; } }

/* All Products: load more */
.bb-grid-item { display: flex; min-width: 0; }
.bb-grid-item > .bb-card { width: 100%; }
.bb-hidden { display: none !important; }
.bb-more-wrap { text-align: center; margin-top: 22px; }
.bb-more {
    display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 30px; cursor: pointer;
    border: 1.5px solid var(--bb-accent); background: #fff; color: var(--bb-accent); border-radius: 12px;
    font-family: 'Poppins', 'Hind Siliguri', sans-serif; font-weight: 600; font-size: 15px; transition: all .2s;
}
.bb-more:hover { background: var(--bb-accent); color: #fff; }
