/* Same search control in the full and compact header; open/close in 180 ms. */
#pb-header .pb-header-search { position:relative; transition:border-color 180ms ease,box-shadow 180ms ease; }
#pb-header .pb-header-search:focus-within { box-shadow:0 0 0 3px #ee16120c; }
#pb-header .pb-full:has(.pb-header-search[data-search-open]) { clip-path:none; }
#pb-header .ps-popup { position:absolute; z-index:120; top:calc(100% + 8px); left:0; width:min(520px,calc(100vw - 32px)); min-width:100%; max-height:var(--ps-max-height,440px); display:flex; flex-direction:column; overflow:hidden; padding:8px; border:1px solid #e2e6eb; border-radius:12px; background:#fff; color:#151c25; box-shadow:0 14px 38px #10171f26; opacity:0; visibility:hidden; transform:translateY(-6px); pointer-events:none; transition:opacity 180ms ease,transform 180ms ease,visibility 0s linear 180ms; }
@media(min-width:701px) and (max-width:1024px){#pb-header .ps-popup{width:100%;min-width:0}}
#pb-header [data-search-open] .ps-popup { opacity:1; visibility:visible; transform:none; pointer-events:auto; transition-delay:0s; }
#pb-header .ps-heading { display:flex; justify-content:space-between; gap:12px; flex-shrink:0; padding:9px 10px 11px; font-size:12px; line-height:1.4; }
#pb-header .ps-heading > span { color:#7b8592; font-size:11px; }
#pb-header .ps-list { min-height:0; overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; }
#pb-header .ps-result { display:grid; grid-template-columns:52px minmax(0,1fr) auto; align-items:center; gap:12px; padding:10px; border-radius:8px; color:#16202a; transition:background-color 180ms ease; }
#pb-header .ps-result + .ps-result { margin-top:3px; }
#pb-header .ps-result:is(:hover,[aria-selected="true"]) { background:#fff0ef; }
#pb-header .ps-photo { display:grid; place-items:center; width:52px; height:58px; overflow:hidden; border:1px solid #eef0f3; border-radius:6px; background:#f7f8fa; }
#pb-header .ps-photo > :is(img,svg) { display:block; width:100%; height:100%; object-fit:contain; stroke:none; }
#pb-header .ps-result-title { display:block; font-size:12px; line-height:1.4; font-weight:800; overflow-wrap:anywhere; }
#pb-header .ps-result-category { display:block; margin-top:4px; color:#7a8492; font-size:10px; line-height:1.35; }
#pb-header .ps-price { color:#d50e08; font-size:12px; font-weight:800; white-space:nowrap; }
#pb-header .ps-empty { margin:0; padding:14px 10px 20px; font-size:12px; line-height:1.6; color:#727d8c; }
#pb-header .ps-empty[hidden] { display:none; }
#pb-header .ps-hint { flex-shrink:0; margin-top:5px; padding:9px 10px 3px; border-top:1px solid #eef0f3; color:#9098a3; font-size:10px; line-height:1.4; }
#pb-header .ps-announcement { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
@media(max-width:700px) {
  #pb-header .ps-popup { width:100%; min-width:0; padding:6px; }
  #pb-header .ps-result { grid-template-columns:42px minmax(0,1fr) auto; gap:8px; padding:8px; }
  #pb-header .ps-photo { width:42px; height:50px; }
  #pb-header .ps-result-title,#pb-header .ps-price { font-size:11px; }
  #pb-header .ps-result-category { font-size:9px; }
  #pb-header .ps-hint { display:none; }
}
@media(prefers-reduced-motion:reduce) {
  #pb-header .pb-header-search,#pb-header .ps-popup,#pb-header .ps-result { transition:none; transform:none; }
}
