/* bizxmart business page (market/bx-business) and directory (market/bx-results): product search + pages, brands strip,
   pager gaps, "Your business could be here" first card. Loaded after bx.css; uses its --bx-* colours. */

/* ---- Products & services: search, count, cards ---- */
/* One search bar: field and button joined, icon beside the text (app.css stacks label contents, so the row is set here) */
.bxp-search { display: flex; align-items: stretch; gap: 0; margin: 14px 0 6px; max-width: 640px; height: 46px; border: 2px solid var(--bx-navy); border-radius: 8px; overflow: hidden; background: #fff; }
.bxp-search:focus-within { box-shadow: 0 0 0 3px var(--bx-navy-tint); }
body.bx .bxp-field { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: row; align-items: center; gap: 8px; height: 100%; padding: 0 12px; margin: 0; border: 0; border-radius: 0; background: transparent; color: var(--bx-muted); font-weight: 400; }
.bxp-field .bx-ic { flex: none; }
body.bx .bxp-field input { flex: 1 1 auto; width: auto; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; font: inherit; font-size: 15px; color: var(--bx-ink); padding: 0; margin: 0; box-shadow: none; }
body.bx .bxp-search .bx-btn { min-height: 0; height: 100%; border-radius: 0; padding: 0 22px; flex: none; }
.bxp-results { position: relative; transition: opacity .15s; }
.bxp-results.loading { opacity: .5; pointer-events: none; }
.bxp-count { margin: 8px 0 12px; font-size: 13px; color: var(--bx-muted); min-height: 1em; }
.bxp-count:empty { display: none; }
.bxp-grid .bx-prod .pic { position: relative; cursor: zoom-in; }
.bxp-grid .bx-prod .pic:not([data-lightbox]) { cursor: pointer; }
.bxp-pics { position: absolute; right: 8px; bottom: 8px; background: rgba(0, 54, 102, .85); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; }
.bxp-more { display: none; }
.bxp-mrp { color: var(--bx-muted); font-weight: 500; font-size: 13px; }
.bxp-buy { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; font-weight: 700; }
.bxp-empty { border-style: dashed; margin-top: 4px; }
.bxp-empty > .bx-ic { color: var(--bx-muted); }
.bxp-results .bx-pager { margin-top: 18px; }

/* ---- Pager: gaps between page numbers ---- */
.bx-pager span.gap { background: none; border: 0; color: var(--bx-muted); min-width: 20px; padding: 0; }

/* ---- Brands we deal in ---- */
.bxb { overflow: hidden; }
.bxb-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bxb-head h2 { margin: 0; }
.bxb-head h2 small { font-size: 14px; font-weight: 500; color: var(--bx-muted); margin-left: 4px; }
.bxb-arrows { display: flex; gap: 6px; }
.bxb-arrows[hidden] { display: none; }
.bxb-arrow { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--bx-line); background: #fff; color: var(--bx-navy); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.bxb-arrow svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.bxb-arrow:hover:not(:disabled) { background: var(--bx-navy-tint); border-color: var(--bx-navy); }
.bxb-arrow:disabled { opacity: .35; cursor: default; }
.bxb-strip { list-style: none; margin: 14px 0 0; padding: 2px 2px 10px; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; scrollbar-width: thin; }
.bxb-strip:focus-visible { outline: 2px solid var(--bx-navy); outline-offset: 2px; border-radius: 8px; }
.bxb-card { flex: 0 0 150px; scroll-snap-align: start; background: #fff; border: 1px solid var(--bx-line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.bxb-logo { width: 100%; height: 72px; display: flex; align-items: center; justify-content: center; border-radius: 8px; overflow: hidden; }
.bxb-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.bxb-logo.tile { background: var(--bx-navy-tint); color: var(--bx-navy); font-weight: 800; font-size: 24px; letter-spacing: .02em; }
.bxb-card:nth-child(even) .bxb-logo.tile { background: var(--bx-orange-tint); color: var(--bx-btn); }
.bxb-name { font-size: 14px; font-weight: 700; color: var(--bx-ink); line-height: 1.25; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bxb-rel { font-size: 11.5px; font-weight: 600; color: var(--bx-navy); background: var(--bx-navy-tint); border-radius: 99px; padding: 2px 8px; }
.bxb-rel.rel-authorised_dealer, .bxb-rel.rel-manufacturer { color: #0f6b3a; background: #e7f6ee; }
@media (hover: none) and (pointer: coarse) { .bxb-arrows { display: none !important; } }   /* touch: swipe the strip */
@media (max-width: 600px) { .bxb-card { flex-basis: 128px; } .bxb-logo { height: 60px; } .bxp-search .bx-btn { padding: 0 14px; } }

/* ---- Directory: "Your business could be here" as the first card ---- */
.bx-ghost.bx-ghost-first { order: -1; }
