#header-search-panel { position:absolute; top:calc(100% + 8px); left:0; right:0; z-index:21; display:flex; flex-direction:column; background:#fff; border:1px solid #ddd; border-radius:var(--mublex-radius-lg); box-shadow:0 10px 30px #0002; padding:0; max-height:60vh; overflow:hidden; }
#header-search-scroll { flex:1 1 auto; min-height:0; width:100%; padding:16px 20px; overflow:auto; overscroll-behavior:contain; }
#mublex-site-header-search [hidden] { display:none !important; }
#header-search-panel h2 { font-size:15px; font-weight:600; margin:12px 0 8px; }
#header-search-panel a { color:#1e1e1e; text-decoration:none; }
#mublex-site-header-search :is(a,button,input):focus-visible { outline:3px solid #d90909; outline-offset:3px; }
#header-search-categories { display:flex; flex-wrap:wrap; gap:6px; }
#header-search-categories > .brxe-block { width:auto; max-width:100%; }
#header-search-categories a { display:flex; align-items:center; min-height:44px; padding:8px 12px; background:#fff3f3; border:1px solid #f4cece; border-radius:var(--mublex-radius-lg); font-size:14px; }
#header-search-categories a:hover { background:#ffe5e5; }
#header-search-products { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr)); column-gap:24px; }
#header-search-products > .brxe-block { position:relative; min-width:0; display:grid; grid-template-columns:48px minmax(0,1fr); align-items:start; align-content:start; column-gap:12px; row-gap:2px; padding:12px 0; border-bottom:1px solid #eee; }
#header-search-products img { width:48px; height:48px; object-fit:contain; grid-column:1; grid-row:1 / span 4; align-self:center; }
#header-search-products a { min-height:0; grid-column:2; grid-row:1; font-weight:600; font-size:15px; line-height:1.35; display:block; overflow-wrap:anywhere; }
/* One link per card: preserve a full-card touch target without padding the title. */
#header-search-products a::after { content:""; position:absolute; inset:0; }
#header-search-products > .brxe-block:focus-within { outline:2px solid #d90909; outline-offset:3px; }
#header-search-products .header-search-sku { grid-column:2; grid-row:3; color:#5c626a; font-size:11px; overflow-wrap:anywhere; }
#header-search-products .header-search-price { grid-column:2; grid-row:2; text-align:left; font-size:14px; }
#header-search-products .header-search-price del { display:inline-block; margin-right:6px; color:#6b7077; font-size:12px; }
#header-search-products .header-search-stock { grid-column:2; grid-row:4; font-size:12px; }
#header-search-products .stock { margin:0; color:#4a4e54; font-size:12px; }
#header-search-products .header-search-stock:empty { display:none; }
#header-search-all { display:block; flex:0 0 auto; width:100%; padding:12px 20px; min-height:44px; border-top:1px solid #eee; background:#fff; color:#b50000 !important; font-weight:600; font-size:14px; }
#mublex-site-header-search #header-search-all:focus-visible { outline-offset:-4px; }
#mublex-site-header-search [data-search-status] { font-size:12px; color:#555; }
.header-search-loading #header-search-products,.header-search-loading #header-search-categories { visibility:hidden; }
#brxe-12edbe { display:none; }
@media(max-width:478px) {
 #header-search-panel { max-height:52vh; }
 #header-search-scroll { padding:12px; }
 #header-search-all { padding-inline:12px; }
 #header-search-products > .brxe-block { grid-template-columns:40px minmax(0,1fr); column-gap:8px; }
 #header-search-products img { width:40px; height:44px; }
 #header-search-products a { font-size:13px; line-height:1.35; }
 #header-search-products .header-search-price { font-size:12px; }
 #header-search-categories a { font-size:12px; padding:8px 10px; }
}
#header-search-products .stock.out-of-stock { color:#9f2929; }
#header-search-products .stock.in-stock { color:#28764a; }

#brxe-a6a9c4[hidden] { display:none !important; }
#brxe-a6a9c4 { min-height:44px; padding:10px 14px; border:1px solid #b50000; border-radius:var(--mublex-radius-md); background:white; color:#9f1515; margin-top:10px; font-size:14px; }

#mublex-site-header-search { position:relative; z-index:40; }
#mublex-site-header-search #brxe-4121a0 { flex:1; min-width:0; }
#mublex-site-header #mublex-site-header-search #brxe-4121a0 input[type="search"] { width:100%; }
#mublex-site-header-search .bricks-search-form { overflow:visible; }
#mublex-site-header #mublex-site-header-search #brxe-a6a9c4 { flex:none; width:auto; min-width:44px; max-width:none; height:auto; max-height:none; border-radius:var(--mublex-radius-md); padding:10px 14px; margin:10px 0 0; color:#9f1515; background:white; border:1px solid #b50000; }
#mublex-site-header-search #header-search-panel { width:min(820px,calc(100vw - 48px)); max-width:calc(100vw - 48px); right:auto; max-height:min(60vh,620px); }
@media(max-width:1199px) { #mublex-site-header-search #header-search-panel { width:100%; } }
@media(max-width:478px) { #mublex-site-header-search #header-search-panel { max-height:52vh; } }

#header-search-panel[aria-busy="true"] [data-search-status]::after { content:""; display:inline-block; width:14px; height:14px; margin-left:8px; vertical-align:middle; border:2px solid #ddd; border-top-color:#d90909; border-radius:50%; animation:header-search-spin .7s linear infinite; }
@keyframes header-search-spin { to { transform:rotate(360deg); } }
@media(prefers-reduced-motion:reduce) { #header-search-panel[aria-busy="true"] [data-search-status]::after { animation:none; } }
