/* Bulk Wholesale retheme — Header, announcement bar, mega menu, mobile drawer and footer.
 * Layered on css/bw-design.css (the scoped design layer). Only WordPress/Blocksy integration fixes here. */

/* the header's .bw wrapper must not box the sticky .sitehead, or it would stop sticking after 0px */
.bw.bw-hf-head{display:contents}
.admin-bar .bw .sitehead{top:32px}
@media (max-width:782px){.admin-bar .bw .sitehead{top:46px}}
@media (max-width:600px){.admin-bar .bw .sitehead{top:0}}

/* links that are plain text in the prototype */
.bw .ann-m{color:#fff;font-weight:400}
.bw .call,.bw .call:hover{color:inherit;font-weight:400}
.bw .acts a{color:var(--ink)}
.bw .talk a.big{display:block;color:#fff}
.bw .mhelp a.ph{padding:0}
.bw .ck-hdr .meta a{color:inherit;font-weight:inherit}

/* Blocksy's global form styles reach the header search */
.bw .search input[type=search]{height:auto;min-height:0;border:0;border-radius:0;box-shadow:none;background:transparent;padding:8px 0;margin:0;font-size:15px;color:var(--ink);line-height:1.45}
.bw .search input[type=search]::-webkit-search-cancel-button{-webkit-appearance:none}
/* Blocksy's input::placeholder (ink at .7) — the design keeps the UA grey */
.bw .search input[type=search]::placeholder{color:#757575;opacity:1}
.bw .search button[type=submit]{min-height:0;height:auto;line-height:1.45;font-size:15px;box-shadow:none}
.bw .search button[type=submit]:hover{background:var(--navy-2)}
.bw .search:focus-within{border-color:var(--navy)}
.bw .allcat,.bw .burger,.bw .dr-h .x{min-height:0;box-shadow:none}

/* mega extras built from menus */
.bw .m-lbl-brands{margin-top:30px}
.bw .m-grp-brands{gap:0}
.bw .mega-cols>div:empty{display:none}

/* drawer is rendered outside the header; keep it on top of Blocksy layers */
.bw .veil{z-index:9990}
.bw .drawer{z-index:9991}

/* footer: Blocksy resets */
.bw .foot ul{margin:0}
.bw .foot li{margin:0}
.bw .foot h4{color:#fff}
.bw .foot address{margin:0}
.bw-ck-chrome{display:block}
.bw .m-rg b,.bw .mn .rgl b{font-weight:700}
/* design targets #menuDr; ours is #bwMenuDr */
.bw #bwMenuDr .dr-b{padding:0;gap:0}
.bw .dr-h h2{color:inherit}
/* Legal row (copyright + payment badges) centred on tablet as well as mobile; the design only centres it at 640px. */
@media (max-width:1100px){.bw .legal .wrap{justify-content:center;text-align:center}}
/* Mega menu brand logos: at 34px tall the three-up row is ~296px wide in a ~228px column, so Sabco ran into
   the range cards (the design has the same overlap). 28px (the design's own smaller size) + a 20px gap fits. */
.bw .mega .m-brands{column-gap:20px}
.bw .mega .m-brands img{height:28px;max-width:100%}
/* Mega menu + mobile drawer brand logos (QA note on z8udzkn76q, 2026-11-04): the 300x110 logo files were forced
   into 64x28 / 76x28 boxes with object-fit:fill, so they rendered small and squashed. Now each logo fills its
   grid cell at its own ratio: 2 per row in the ~230px mega column (~105x39), 3 per row in the drawer. */
.bw .mega .m-brands,.bw .mn .m-brands{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 20px;justify-content:stretch}
.bw .mn .m-brands{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 16px}
.bw .mega .m-brands a,.bw .mn .m-brands a{display:block}
.bw .mega .m-brands img,.bw .mn .m-brands img{display:block;width:100%;height:auto;max-width:100%;aspect-ratio:300/110;object-fit:contain}
/* Tap targets at least 24px tall (WCAG 2.5.8): the mobile top-bar link was 20px (E2E QA run 1, z8udzkhbj7). */
.bw .ann-m{min-height:24px}
