/* =========================================================
   SITE HEADER (all pages) — Bongo Bazar
   ========================================================= */
:root {
    --bb-orange: #EC5F12;
    --bb-orange-2: #F57A2A;
    --bb-orange-dark: #D24E08;
    --bb-accent: #0E5A34;          /* logo green (reference used indigo here) */
    --bb-accent-soft: #E8F3EC;
    --bb-ink: #1F1915;
    --bb-muted: #8A7F77;
    --bb-line: #EFE7DF;
    --bb-bg: #FBF7F2;
    --bb-card: #FFFFFF;
    --bb-flash-bg: #FFF5EF;
    --bb-flash-line: #F7D9C8;
    --bb-footer: #1E1712;
    --bb-font: 'Hind Siliguri', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --bb-display: 'Baloo Da 2', 'Hind Siliguri', system-ui, sans-serif;
}

/* old header spacing no longer needed */
body #content { padding-top: 12px !important; }

.bb-topbar, .bb-header { font-family: var(--bb-font); color: var(--bb-ink); }
.bb-topbar *, .bb-header * { box-sizing: border-box; }
.bb-header a { text-decoration: none; }

/* ---------- top marquee ---------- */
.bb-topbar { background: #17120E; color: #fff; overflow: hidden; white-space: nowrap; }
.bb-topbar-track { display: inline-flex; animation: bbMarquee 150s linear infinite; padding: 7px 0; }
.bb-topbar-track span { font-size: 13px; font-weight: 600; padding-right: 64px; color: #fff !important; font-family: var(--bb-font); white-space: pre; }
.bb-topbar { position: relative; z-index: 1000; }
.bb-topbar:hover .bb-topbar-track { animation-play-state: paused; }
@keyframes bbMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* =========================================================
   HEADER
   ========================================================= */
header#navbar_top.bb-header {
    position: sticky !important; top: 0; z-index: 999;
    width: 100%; box-shadow: none;
    background: #fff; border-bottom: 1px solid var(--bb-line);
}
.bb-header .bb-burger { padding: 0 !important; margin: 0 !important; }
.bb-hm-inner { display: flex; align-items: center; gap: 22px; height: 70px; }
.bb-logo { flex-shrink: 0; display: flex; align-items: center; }
.bb-logo img { height: 48px; width: auto; max-width: 220px; object-fit: contain; display: block; }

.bb-search { position: relative; flex: 1; max-width: 520px; }
.bb-search form {
    display: flex; align-items: center; height: 42px;
    background: #F7F1EA; border: 1px solid var(--bb-line); border-radius: 12px; padding: 4px 4px 4px 14px;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.bb-search form:focus-within { background: #fff; border-color: var(--bb-accent); box-shadow: 0 0 0 3px rgba(14, 90, 52, .1); }
.bb-search input {
    flex: 1; min-width: 0; border: 0 !important; outline: 0 !important; background: transparent !important;
    box-shadow: none !important; font-family: var(--bb-font); font-size: 15px; color: var(--bb-ink); padding: 0 6px;
}
.bb-search input::placeholder { color: #9C918A; }
.bb-search button {
    width: 34px; height: 34px; border: 0; border-radius: 9px; cursor: pointer;
    background: var(--bb-accent); color: #fff; font-size: 14px;
    display: flex; align-items: center; justify-content: center;
}
.bb-search .search_result {
    position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 1000;
    background: #fff; border-radius: 12px; box-shadow: 0 14px 34px rgba(0, 0, 0, .12);
    max-height: 420px; overflow-y: auto;
}
.bb-search .search_result:empty { display: none; }

.bb-actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.bb-ibtn {
    position: relative; width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer;
    border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
    color: var(--bb-ink) !important; font-size: 18px; transition: background .2s, color .2s;
}
.bb-ibtn:hover { background: #F5EEE7; color: var(--bb-accent) !important; }
.bb-burger, .bb-search-toggle { display: none; }
.bb-badge {
    position: absolute; top: 2px; right: 0; min-width: 17px; height: 17px; padding: 0 4px;
    border-radius: 999px; background: var(--bb-orange); color: #fff; font-size: 10.5px; font-weight: 700;
    display: flex; align-items: center; justify-content: center; font-family: system-ui, sans-serif;
    border: 2px solid #fff;
}
.bb-badge:empty { display: none; }


@media (min-width: 1200px) {
    .bb-header .container { max-width: 1000px; }
}
@media (max-width: 991px) {
    .bb-hm-inner { height: 58px; gap: 8px; position: relative; }
    .bb-burger, .bb-search-toggle { display: inline-flex; }
    .bb-hide-sm { display: none; }
    .bb-logo img { height: 40px; max-width: 160px; }
    .bb-search {
        display: none; position: absolute; left: 12px; right: 12px; top: 100%; max-width: none;
        background: #fff; padding: 8px 0 10px; z-index: 5;
    }
    .bb-search.open { display: block; }
}
