/* =========================================================
   Jarabay unified public menu (navy / orange).
   One header for every public page (home, product, category,
   store, cart, landing, etc.). Self-contained so it looks the
   same whichever page CSS is loaded. Not used by dashboards.
   ========================================================= */
.jb-nav { font-family: 'Inter', sans-serif; }
.jb-nav .jb-wrap { max-width: 1400px; margin: 0 auto; padding: 0 20px; }
.jb-nav a { text-decoration: none; }

/* Top bar */
.jb-topbar { background: #061626; color: #94A3B8; font-size: 12.5px; }
.jb-topbar .jb-wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 34px; flex-wrap: wrap; }
.jb-topbar .grp { display: flex; align-items: center; flex-wrap: wrap; }
.jb-topbar a { color: #CBD5E1; margin-right: 14px; }
.jb-topbar a:hover { color: #fff; }
.jb-topbar .jb-ev { color: #F59E0B; font-weight: 700; }

/* Main header */
.jb-header { background: #0A2540; position: sticky; top: 0; z-index: 100; box-shadow: 0 4px 6px -1px rgba(0,0,0,.1); }
.jb-header .jb-wrap { display: flex; align-items: center; gap: 20px; min-height: 66px; }
.jb-nav .jb-logo { display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: 22px; color: #fff; white-space: nowrap; letter-spacing: -.02em; }
.jb-nav .jb-logo .mk { width: 38px; height: 38px; border-radius: 9px; background: linear-gradient(135deg, #F59E0B, #FCD34D); color: #0A2540; display: grid; place-items: center; font-size: 20px; overflow: hidden; }
.jb-nav .jb-logo .mk img { width: 100%; height: 100%; object-fit: cover; }
.jb-nav .jb-logo b { color: #F59E0B; }

.jb-locsel { position: relative; flex: none; }
.jb-locsel > summary { list-style: none; display: flex; align-items: center; gap: 6px; color: #CBD5E1; font-size: 13.5px; cursor: pointer; padding: 8px 10px; border-radius: 8px; background: rgba(255,255,255,.06); white-space: nowrap; max-width: 180px; }
.jb-locsel > summary::-webkit-details-marker { display: none; }
.jb-locsel > summary span { overflow: hidden; text-overflow: ellipsis; }
.jb-locsel[open] > summary { color: #fff; }
.jb-locpop { position: absolute; top: calc(100% + 8px); left: 0; z-index: 120; width: 270px; background: #fff; color: #0F172A; border-radius: 12px; box-shadow: 0 10px 15px -3px rgba(0,0,0,.2); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.jb-locpop strong { font-size: 14px; }
.jb-locpop .btn-gps { background: #F59E0B; color: #0A2540; border: 0; border-radius: 8px; padding: 10px; font-weight: 700; cursor: pointer; }
.jb-locpop select { width: 100%; padding: 10px; border: 1px solid #E2E8F0; border-radius: 8px; }
.jb-locpop .lnk { background: none; border: 0; color: #64748B; text-decoration: underline; font-size: 12.5px; cursor: pointer; padding: 0; text-align: left; }

.jb-search { flex: 1; display: flex; background: #fff; border-radius: 8px; overflow: hidden; height: 46px; min-width: 120px; }
.jb-search input { flex: 1; border: 0; outline: 0; padding: 0 18px; font: inherit; font-size: 15px; color: #0F172A; background: #fff; }
.jb-search button { border: 0; background: #F59E0B; color: #0A2540; font-weight: 800; padding: 0 26px; cursor: pointer; font-family: inherit; }
.jb-search button:hover { background: #D97706; }

.jb-actions { display: flex; align-items: center; gap: 18px; }
.jb-actions a { display: flex; flex-direction: column; align-items: center; gap: 2px; color: #CBD5E1; font-size: 12px; font-weight: 600; position: relative; }
.jb-actions a:hover { color: #fff; }
.jb-actions svg { width: 22px; height: 22px; }
.jb-badge { position: absolute; top: -6px; right: -8px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: #F59E0B; color: #0A2540; font-size: 10.5px; font-weight: 800; display: grid; place-items: center; }

/* Category bar */
.jb-catbar { background: #0A2540; border-top: 1px solid rgba(255,255,255,.07); }
.jb-catbar .jb-wrap { display: flex; align-items: stretch; gap: 2px; }
.jb-allcats { position: relative; flex: none; }
.jb-allcats > button { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; font-size: 13.5px; padding: 12px 14px; border: 0; background: rgba(0,0,0,.2); cursor: pointer; font-family: inherit; white-space: nowrap; }
.jb-allcats > button:hover { background: rgba(0,0,0,.32); }
.jb-catdrop { display: none; position: absolute; top: 100%; left: 0; z-index: 120; width: 280px; background: #fff; border-radius: 0 0 12px 12px; box-shadow: 0 10px 15px -3px rgba(0,0,0,.2); padding: 6px; max-height: 70vh; overflow-y: auto; }
.jb-allcats.open .jb-catdrop { display: block; }
.jb-catdrop a { display: flex; align-items: center; gap: 10px; color: #0F172A; padding: 9px 12px; border-radius: 8px; font-weight: 500; font-size: 14px; }
.jb-catdrop a:hover { background: #F1F5F9; }
.jb-cats { display: flex; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.jb-cats::-webkit-scrollbar { display: none; }
.jb-cats a { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 600; font-size: 13.5px; padding: 12px 12px; white-space: nowrap; }
.jb-cats a:hover { background: rgba(255,255,255,.08); }
.jb-cats a.on { color: #F59E0B; }

/* Mobile bottom nav */
.jb-bottom { display: none; }
@media (max-width: 768px) {
    .jb-topbar { display: none; }
    .jb-header .jb-wrap { flex-wrap: wrap; gap: 10px; min-height: 0; padding-top: 10px; padding-bottom: 10px; }
    .jb-search { order: 3; width: 100%; height: 42px; flex: none; }
    .jb-locsel { display: none; }
    .jb-actions { margin-left: auto; }
    .jb-actions a span { display: none; }
    .jb-allcats { display: none; }
    .jb-bottom { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000; background: #fff; border-top: 1px solid #E2E8F0; box-shadow: 0 -4px 10px rgba(0,0,0,.05); padding: 6px 0; justify-content: space-around; }
    .jb-bottom a { display: flex; flex-direction: column; align-items: center; gap: 2px; color: #64748B; font-size: 11px; font-weight: 600; position: relative; padding: 2px 10px; }
    .jb-bottom a.on { color: #F59E0B; }
    .jb-bottom svg { width: 22px; height: 22px; }
    .jb-bottom .jb-badge { top: -2px; right: 6px; }
    body { padding-bottom: 64px; }
}

/* Guarantee the menu text stays visible (white/orange) on every page,
   above any page-level `a{color:…}` or `.shop2 a{color:inherit}` rule. */
.jb-nav .jb-topbar a { color: #CBD5E1; }
.jb-nav .jb-topbar a:hover { color: #fff; }
.jb-nav .jb-topbar .jb-ev { color: #F59E0B; }
.jb-nav .jb-actions a { color: #CBD5E1; }
.jb-nav .jb-actions a:hover { color: #fff; }
.jb-nav .jb-locsel > summary { color: #CBD5E1; }
.jb-nav .jb-allcats > button { color: #fff; }
.jb-nav .jb-cats a { color: #fff; }
.jb-nav .jb-cats a.on { color: #F59E0B; }
.jb-nav .jb-catdrop a { color: #0F172A; }
.jb-nav .jb-bottom a { color: #64748B; }
.jb-nav .jb-bottom a.on { color: #F59E0B; }
