/* Scoped search layout; category cards/facets, PDP, cart and quote templates unchanged. */
.main-container-search-result { display:none !important; }
.hbs-search-page[hidden], #hbs-native-search[hidden] { display:none !important; }
.hbs-search-page { padding:12px 0 40px; }
.hbs-search-page h1 { font-size:clamp(25px,3vw,36px); line-height:1.2; margin:0 0 16px; text-align:left; }
.hbs-search-page .navBar { margin:8px 0 20px; text-align:left; }
.hbs-search-page .navBar-section { display:flex; flex-wrap:wrap; gap:20px; margin:0; }
.hbs-search-page .navBar-item { margin:0; }
.hbs-search-page .page { margin-top:0; }
.hbs-search-page .actionBar { margin:0 0 12px; }
.hbs-search-page .panel:not(:has(.search-suggestion)) { display:none; }
.hbs-search-page.hbs-few-results .page-sidebar, .hbs-search-page.hbs-few-results .actionBar { display:none; }
.hbs-search-page.hbs-few-results .page-content { width:100%; float:none; }
.hbs-search-page .productGrid { margin-top:12px; }
.hbs-search-page.hbs-one-result .productGrid { grid-template-columns:minmax(0,520px); }
.hbs-search-page.hbs-one-result .product { width:100%; max-width:520px; }
.hbs-search-page.hbs-one-result .card-image { width:100%; object-fit:contain; }
.hbs-search-dialog { color:#30333f; background:white; border:0; padding:28px 32px; width:min(900px,calc(100% - 48px)); max-height:calc(100dvh - 120px); margin:90px auto auto; overflow:auto; font-family:inherit; }
.hbs-search-dialog::backdrop { background:rgba(29,31,38,.25); }
.hbs-search-top { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.hbs-search-top h2 { font-size:20px; margin:0; line-height:1.35; }
.hbs-search-dialog button { font:inherit; color:inherit; background:none; border:0; padding:12px; cursor:pointer; min-height:44px; }
.hbs-search-close { flex:none; }
.hbs-search-form { display:flex; gap:12px; margin:20px 0 0; align-items:center; }
.hbs-search-form input { font:inherit; font-size:24px; line-height:1.5; min-width:0; width:100%; padding:8px 0; background:white; border:0; border-radius:0; box-shadow:none; color:#30333f; }
.hbs-search-form button { font-weight:600; }
.hbs-search-dialog :focus-visible, .hbs-search-page :focus-visible { outline:2px solid #30333f; outline-offset:4px; }
.hbs-search-status { font-size:14px; line-height:1.5; color:#626570; margin:12px 0 20px; }
.hbs-search-group h3 { margin:20px 0 12px; font-size:14px; letter-spacing:.08em; text-transform:uppercase; }
.hbs-search-group ul { margin:0; padding:0; list-style:none; }
.hbs-search-link { display:flex; gap:20px; align-items:center; color:#30333f; text-decoration:none; padding:8px 0; }
.hbs-search-link:hover .hbs-search-name { text-decoration:underline; }
.hbs-search-link img { width:140px; height:85px; object-fit:contain; flex:none; }
.hbs-search-name { display:block; font-size:17px; font-weight:500; line-height:1.4; }
.hbs-search-link small { display:block; margin-top:4px; color:#626570; }
.hbs-search-category ul, .hbs-search-guide ul, .hbs-search-service ul { display:flex; flex-wrap:wrap; gap:8px 24px; }
.hbs-search-category .hbs-search-name, .hbs-search-guide .hbs-search-name, .hbs-search-service .hbs-search-name { font-size:15px; }
.hbs-search-foot { display:flex; gap:24px; flex-wrap:wrap; padding:20px 0 4px; }
.hbs-search-foot a, .hbs-search-standard { color:#30333f; text-decoration:underline; text-underline-offset:4px; padding:8px 0; }
.hbs-search-standard { display:inline-block; margin-top:28px; }
#hbs-search-full .hbs-search-product ul { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:28px; }
#hbs-search-full .hbs-search-product .hbs-search-link { display:block; }
#hbs-search-full .hbs-search-product img { width:100%; height:220px; margin-bottom:12px; }
#hbs-search-full.hbs-one-result .hbs-search-product ul { grid-template-columns:minmax(0,620px); }
#hbs-search-full.hbs-one-result .hbs-search-product img { height:300px; }
#hbs-search-full .hbs-search-product h3 { display:none; }
@media(max-width:800px) {
 .hbs-search-page { padding-top:4px; }
 .hbs-search-page h1 { margin:0 0 12px; font-size:26px; }
 .hbs-search-page .navBar-section { gap:12px; }
 .hbs-search-page .navBar-action { font-size:14px; }
 .hbs-search-page .page-sidebar { margin-bottom:12px; }
 .hbs-search-page .facetedSearch-toggle { padding:12px 0; margin:0; }
 .hbs-search-page.hbs-one-result .productGrid { display:grid; grid-template-columns:1fr; }
 .hbs-search-dialog { width:100%; height:100dvh; max-height:100dvh; max-width:100%; margin:0; padding:16px 20px max(24px,env(safe-area-inset-bottom)); }
 .hbs-search-top h2 { max-width:230px; font-size:18px; }
 .hbs-search-form { margin-top:20px; gap:8px; }
 .hbs-search-form input { font-size:20px; }
 .hbs-search-link { gap:14px; min-height:44px; }
 .hbs-search-link img { width:100px; height:75px; }
 .hbs-search-name { font-size:16px; }
 .hbs-search-status { margin-bottom:16px; }
 #hbs-search-full .hbs-search-product ul { grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px 16px; }
 #hbs-search-full .hbs-search-product img { height:140px; }
 #hbs-search-full.hbs-one-result .hbs-search-product ul { grid-template-columns:1fr; }
 #hbs-search-full.hbs-one-result .hbs-search-product img { height:230px; }
}
@media(prefers-reduced-motion:reduce) { .hbs-search-dialog * { scroll-behavior:auto; } }

/* Owner feedback: keep the header visible and the rest of the page usable. */
.hbs-search-dialog { position:fixed; top:var(--hbs-panel-top,150px); bottom:auto; left:0; right:0; margin:0 auto; height:auto; max-height:min(620px,calc(100dvh - var(--hbs-panel-top,150px) - 20px)); z-index:500; box-shadow:0 16px 30px rgba(25,28,35,.12); }
@media(max-width:800px) {
 .hbs-search-dialog { width:calc(100% - 24px); height:auto; max-height:min(520px,calc(100dvh - var(--hbs-panel-top,130px) - 16px)); padding:14px 18px 18px; }
 .hbs-search-top h2 { font-size:16px; }
 .hbs-search-form { margin-top:8px; }
}

/* The original header input stays in place. Only its results slide down. */
.hbs-search-dialog { right:auto; bottom:auto; margin:0; padding:12px 20px 20px; border:0; overflow:auto; text-align:left; animation:hbs-search-slide 160ms ease-out; }
.hbs-search-dialog[hidden] { display:none !important; }
.hbs-search-top { align-items:center; }
.hbs-search-top .hbs-search-status { margin:0; padding:4px 0; }
.hbs-search-dialog .hbs-search-close { padding:8px; min-height:44px; font:inherit; text-transform:none; color:#30333f; background:none; border:0; cursor:pointer; }
.hbs-search-dialog .hbs-search-group:first-child h3 { margin-top:8px; }
@keyframes hbs-search-slide { from { opacity:0; transform:translateY(-10px); } to { opacity:1; transform:translateY(0); } }
@media(prefers-reduced-motion:reduce) { .hbs-search-dialog { animation:none; } }

/* Search editorial treatment: source imagery and existing brand typography. */
#hbs-search-full { max-width:1440px; margin:0 auto; padding:42px 20px 70px; }
.hbs-search-intro { display:grid; grid-template-columns:1fr 1fr; gap:64px; align-items:start; margin-bottom:36px; }
.hbs-search-eyebrow { font-size:11px; letter-spacing:.18em; color:#626570; margin:0 0 18px; }
#hbs-search-full .hbs-search-intro h1 { font-family:inherit; font-size:clamp(36px,4.5vw,68px); font-weight:400; letter-spacing:-.025em; line-height:1.05; margin:0 0 16px; overflow-wrap:anywhere; }
.hbs-search-discovery { display:flex; gap:36px; padding-top:4px; }
.hbs-search-discovery .hbs-search-group { flex:1; min-width:0; }
.hbs-search-discovery .hbs-search-group h3 { font-size:10px; letter-spacing:.14em; margin:0 0 12px; color:#626570; }
.hbs-search-discovery .hbs-search-group ul { display:block; }
.hbs-search-discovery .hbs-search-name { font-size:15px; line-height:1.45; }
#hbs-search-full .hbs-search-product ul { grid-template-columns:repeat(4,minmax(0,1fr)); gap:38px 28px; }
#hbs-search-full .hbs-search-product .hbs-search-link { padding:0; }
#hbs-search-full .hbs-search-product img { display:block; background:#f8f7f5; height:260px; padding:22px; margin:0 0 16px; }
#hbs-search-full .hbs-search-name { font-size:17px; }
#hbs-search-full .hbs-search-link small { font-size:12px; line-height:1.5; margin-top:6px; }
#hbs-search-full.hbs-editorial-results .hbs-search-product li:first-child { grid-column:span 2; grid-row:span 2; }
#hbs-search-full.hbs-editorial-results .hbs-search-product li:first-child img { height:608px; padding:44px; }
#hbs-search-full.hbs-editorial-results .hbs-search-product li:first-child .hbs-search-name { font-size:25px; }
#hbs-search-full.hbs-one-result .hbs-search-product ul { grid-template-columns:minmax(0,850px); }
#hbs-search-full.hbs-one-result .hbs-search-product img { height:420px; }
.hbs-search-dialog { padding:18px 26px 20px; }
.hbs-search-dialog .hbs-search-top .hbs-search-status { font-size:20px; color:#30333f; }
#hbs-search-suggestions { display:grid; grid-template-columns:minmax(0,1fr) 210px; column-gap:30px; }
#hbs-search-suggestions .hbs-search-product { grid-column:1; grid-row:1 / span 3; }
#hbs-search-suggestions .hbs-search-product ul { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:14px; }
#hbs-search-suggestions .hbs-search-product .hbs-search-link { display:block; padding:0; }
#hbs-search-suggestions .hbs-search-product img { display:block; width:100%; height:135px; background:#f8f7f5; padding:8px; margin:0 0 12px; }
#hbs-search-suggestions .hbs-search-product .hbs-search-name { font-size:14px; line-height:1.45; }
#hbs-search-suggestions .hbs-search-link small { display:none; }
#hbs-search-suggestions .hbs-search-group:not(.hbs-search-product) { grid-column:2; }
#hbs-search-suggestions .hbs-search-group:not(.hbs-search-product) ul { display:block; }
#hbs-search-suggestions .hbs-search-group h3 { font-size:10px; letter-spacing:.13em; color:#626570; margin:18px 0 14px; }
#hbs-search-suggestions:not(:has(.hbs-search-group:not(.hbs-search-product))) { grid-template-columns:1fr; }
#hbs-search-suggestions .hbs-search-product ul:has(li:only-child) { grid-template-columns:1fr; }
#hbs-search-suggestions .hbs-search-product li:only-child .hbs-search-link { display:flex; }
#hbs-search-suggestions .hbs-search-product li:only-child img { width:220px; height:160px; }
.hbs-search-dialog .hbs-search-foot { padding-top:22px; }
@media(max-width:800px) {
 #hbs-search-full { padding:26px 0 44px; }
 .hbs-search-intro { grid-template-columns:1fr; gap:12px; margin-bottom:26px; }
 .hbs-search-eyebrow { font-size:10px; margin-bottom:12px; }
 .hbs-search-discovery { gap:24px; flex-wrap:wrap; }
 .hbs-search-discovery .hbs-search-group { flex-basis:40%; }
 #hbs-search-full .hbs-search-product ul { grid-template-columns:repeat(2,minmax(0,1fr)); gap:28px 16px; }
 #hbs-search-full .hbs-search-product img { height:180px; padding:12px; }
 #hbs-search-full.hbs-editorial-results .hbs-search-product li:first-child { grid-column:span 2; grid-row:auto; }
 #hbs-search-full.hbs-editorial-results .hbs-search-product li:first-child img { height:300px; padding:24px; }
 #hbs-search-full.hbs-one-result .hbs-search-product img { height:280px; }
 #hbs-search-full .hbs-search-name { font-size:16px; }
 .hbs-search-dialog { padding:12px 16px 16px; }
 .hbs-search-dialog .hbs-search-top .hbs-search-status { font-size:18px; }
 #hbs-search-suggestions { display:block; }
 #hbs-search-suggestions .hbs-search-product ul { grid-template-columns:1fr; gap:6px; }
 #hbs-search-suggestions .hbs-search-product .hbs-search-link { display:flex; gap:14px; }
 #hbs-search-suggestions .hbs-search-product img, #hbs-search-suggestions .hbs-search-product li:only-child img { width:82px; height:66px; margin:0; padding:4px; }
 #hbs-search-suggestions .hbs-search-product .hbs-search-name { font-size:15px; }
 #hbs-search-suggestions .hbs-search-group h3 { margin:12px 0 10px; }
}
.hbs-search-discovery .hbs-search-guide { flex:1.5; }
.hbs-search-discovery .hbs-search-service { flex:.9; }
#hbs-search-full .hbs-search-intro h1::first-letter { text-transform:uppercase; }
/* Research refinement: products lead; one relevant journal story adds context. */
.hbs-search-deck { color:#626570; font-size:18px; margin:0 0 14px; }
.hbs-search-intro { grid-template-columns:2fr 1fr; gap:40px; }
#hbs-search-full .hbs-search-intro h1 { font-size:clamp(34px,4vw,58px); }
#hbs-search-full .hbs-search-product ul { grid-template-columns:repeat(3,minmax(0,1fr)); }
#hbs-search-full.hbs-editorial-results .hbs-search-product li:first-child { grid-column:auto; grid-row:auto; }
#hbs-search-full.hbs-editorial-results .hbs-search-product li:first-child img { height:260px; padding:22px; }
#hbs-search-full.hbs-editorial-results .hbs-search-product li:first-child .hbs-search-name { font-size:17px; }
.hbs-search-story { grid-column:3; grid-row:1 / span 2; background:#eeece6; align-self:stretch; }
.hbs-search-story > a { display:flex; flex-direction:column; min-height:100%; color:#30333f; text-decoration:none; padding:32px; }
.hbs-search-story h2 { font:inherit; font-size:36px; line-height:1.15; font-weight:400; margin:0 0 18px; }
.hbs-search-story p:not(.hbs-search-eyebrow) { font-size:16px; line-height:1.6; }
.hbs-search-story-cta { display:block; text-decoration:underline; text-underline-offset:5px; margin:8px 0 24px; }
#hbs-search-full .hbs-search-product .hbs-search-story img { width:calc(100% + 64px); max-width:none; height:280px; object-fit:cover; padding:0; margin:auto -32px -32px; background:none; }
.hbs-search-link:focus-visible, .hbs-search-link:hover { background:#f6f5f2; }
.hbs-search-dialog .hbs-search-foot { position:sticky; bottom:-20px; background:white; padding:12px 0; }
@media(max-width:800px) {
 .hbs-search-intro { grid-template-columns:1fr; gap:4px; }
 .hbs-search-deck { font-size:16px; }
 .hbs-search-discovery .hbs-search-category ul { display:flex; gap:4px 20px; }
 #hbs-search-full .hbs-search-product ul { grid-template-columns:repeat(2,minmax(0,1fr)); }
 #hbs-search-full.hbs-editorial-results .hbs-search-product li:first-child { grid-column:auto; }
 #hbs-search-full.hbs-editorial-results .hbs-search-product li:first-child img { height:180px; padding:12px; }
 #hbs-search-full.hbs-editorial-results .hbs-search-product li:first-child .hbs-search-name { font-size:16px; }
 .hbs-search-story { grid-column:span 2; grid-row:auto; }
 .hbs-search-story > a { padding:24px; }
 .hbs-search-story h2 { font-size:30px; }
 #hbs-search-full .hbs-search-product .hbs-search-story img { width:calc(100% + 48px); height:220px; margin:0 -24px -24px; }
 .hbs-search-dialog .hbs-search-foot { bottom:-16px; }
}
#hbs-search-full .hbs-search-product .hbs-search-story img { margin:-32px -32px 30px; }
@media(max-width:800px) { #hbs-search-full .hbs-search-product .hbs-search-story img { margin:-24px -24px 24px; } }
@media(max-width:800px) {
 #hbs-search-full { padding-top:20px; }
 .hbs-search-intro { margin-bottom:20px; }
 .hbs-search-intro .hbs-search-status { margin:8px 0 12px; }
 .hbs-search-discovery .hbs-search-group h3 { margin-bottom:4px; }
 #hbs-search-suggestions .hbs-search-product img { height:52px; width:68px; }
 #hbs-search-suggestions .hbs-search-category ul { display:flex; gap:0 16px; }
 #hbs-search-suggestions .hbs-search-category .hbs-search-name { font-size:14px; }
 #hbs-search-suggestions .hbs-search-category li:nth-child(n+3) { display:none; }
 #hbs-search-suggestions .hbs-search-guide .hbs-search-name { font-size:14px; }
}
@media(max-width:800px) {
 #hbs-search-suggestions .hbs-search-group.hbs-search-category ul { display:flex; gap:0 18px; }
 #hbs-search-suggestions:has(.hbs-search-product) .hbs-search-guide { display:none; }
}
