/* Compact, nonmodal catalog previews. No viewport blur or page scroll locking. */
.header-search-panel { position:absolute; z-index:2; top:calc(100% - 48px); left:50%; transform:translateX(-50%); width:min(1248px,calc(100% - 32px)); max-height:min(640px,var(--search-available-height,calc(100dvh - 112px))); overflow:auto; overscroll-behavior:contain; padding:24px; border:1px solid var(--border); border-radius:0 0 var(--radius-lg) var(--radius-lg); background:var(--surface); color:var(--text); box-shadow:var(--shadow-float); }
.header-search-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:20px; }
.header-search-heading h2 { font:800 14px/1.5 var(--font-ui); letter-spacing:0; }
.header-search-layout { display:grid; grid-template-columns:210px minmax(0,1fr); gap:28px; }
.header-search-suggestions { min-width:0; padding-right:24px; border-right:1px solid var(--border); }
.header-search-suggestions h3 { margin:0 0 12px; color:var(--text-secondary); font:800 11px/1.5 var(--font-ui); letter-spacing:1px; text-transform:uppercase; }
.header-search-categories { display:grid; gap:4px; }
.header-search-categories button { display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; min-height:44px; padding:8px 10px; border:0; border-radius:var(--radius-sm); background:transparent; color:var(--text); font-size:12px; text-align:left; }
.header-search-categories button:hover { background:var(--surface-secondary); color:var(--primary); }
.header-search-categories small { color:var(--text-secondary); font-variant-numeric:tabular-nums; }
.header-search-results { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; min-width:0; }
.search-product { display:flex; flex-direction:column; min-width:0; overflow:hidden; border:1px solid var(--border); border-radius:var(--radius-md); background:var(--surface); }
.search-product-photo { position:relative; display:grid; place-items:center; height:168px; overflow:hidden; background:var(--photo-background); }
.search-product-photo .product-photo-trigger { width:100%; height:100%; }
.search-product-photo img { object-fit:contain; }
.search-product-placeholder { color:var(--text-secondary); }
.search-product-placeholder svg { width:48px; height:48px; }
.search-product-badge { position:absolute; z-index:1; top:10px; left:10px; pointer-events:none; padding:4px 8px; border-radius:var(--radius-pill); background:var(--offer-soft); color:var(--offer-text); font-size:10px; font-weight:800; }
.search-product-badge.is-unavailable { background:var(--surface); color:var(--text-secondary); }
.search-product[data-sold-out=true] img { opacity:.65; }
.search-product-info { display:flex; flex:1; flex-direction:column; gap:8px; padding:14px; }
.search-product-category { color:var(--text-secondary); font-size:10px; }
.search-product-name { min-height:40px; color:var(--text); font-size:13px; font-weight:800; line-height:1.5; text-decoration:none; overflow-wrap:anywhere; }
.search-product-name:hover { color:var(--primary); text-decoration:underline; }
.search-product-price { margin-top:auto; }
.search-product-price del { display:block; color:var(--text-secondary); font-size:11px; }
.search-product-price strong { color:var(--primary); font:800 20px/1.4 var(--font-ui); }
.search-product-price small { display:block; color:var(--text-secondary); font-size:11px; }
.search-product-info .btn { min-height:44px; padding:10px 8px; margin-top:4px; font-size:11px; }
.header-search-footer { display:flex; justify-content:center; padding-top:20px; }
.header-search-all { min-height:44px; display:inline-flex; align-items:center; color:var(--primary); font-size:12px; font-weight:700; text-underline-offset:3px; }
.header-search-status { padding:24px 8px; color:var(--text-secondary); font-size:14px; }
.header-search-clear { display:inline-flex; flex-shrink:0; align-items:center; justify-content:center; width:44px; height:44px; border:0; border-radius:var(--radius-pill); background:transparent; color:var(--text-secondary); }
.header-search-clear:hover { background:var(--surface-secondary); color:var(--text); }
.header-search-box input::-webkit-search-cancel-button { -webkit-appearance:none; }
@media(max-width:1023px) { .header-search-layout { grid-template-columns:160px minmax(0,1fr); gap:16px; }.header-search-suggestions { padding-right:16px; }.header-search-results { gap:10px; }.search-product-info { padding:12px; }.search-product-photo { height:145px; } }
@media(max-width:767px) {
  .header-search-panel { top:100%; width:calc(100% - 16px); padding:16px; border-radius:0 0 var(--radius-md) var(--radius-md); }
  .header-search-heading { margin-bottom:12px; gap:8px; }.header-search-heading h2 { font-size:13px; }
  .header-search-layout { display:flex; flex-direction:column; gap:16px; }
  .header-search-suggestions { padding:0 0 12px; border-right:0; border-bottom:1px solid var(--border); }
  .header-search-suggestions h3 { margin-bottom:8px; font-size:10px; }
  .header-search-categories { display:flex; gap:8px; overflow:auto; overscroll-behavior-inline:contain; }
  .header-search-categories button { width:auto; flex-shrink:0; padding:8px 12px; border:1px solid var(--border); white-space:nowrap; }
  .header-search-results { display:flex; flex-direction:column; gap:12px; }
  .search-product { display:grid; grid-template-columns:94px minmax(0,1fr); }
  .search-product-photo { height:100%; min-height:156px; }
  .search-product-info { gap:4px; padding:12px; }.search-product-name { min-height:0; font-size:12px; }.search-product-price { margin-top:4px; }.search-product-price strong { font-size:18px; }
  .search-product-badge { top:6px; left:4px; max-width:86px; font-size:9px; }.search-product-info .btn { margin-top:6px; }
  .header-search-footer { padding-top:12px; }
}
