/* Preserve the full header footprint so changing state never moves the page. */
#pb-header { background:transparent; pointer-events:none; }
#pb-header .pb-full { pointer-events:auto; clip-path:inset(0 0 0); opacity:1; transition:opacity 230ms ease,clip-path 230ms ease,visibility 0s; }
#pb-header:has(.pb-full .pb-mobile-menu[open]) .pb-full { clip-path:none; }
#pb-header .pb-header-placeholder { visibility:hidden!important; pointer-events:none!important; }
#pb-header .pb-compact { position:absolute; inset:0 0 auto; visibility:hidden; opacity:0; pointer-events:none; background:linear-gradient(110deg,#fff,#fafbfd 55%,#fff); box-shadow:0 4px 16px #10171f10; transition:opacity 230ms ease,visibility 0s linear 230ms; }
#pb-header .pb-compact-inner { position:relative; display:grid; grid-template-columns:182px minmax(0,1fr) 185px 90px; align-items:center; gap:24px; height:64px; }
#pb-header .pb-compact-slot { min-width:0; }
#pb-header .pb-compact-slot[data-pb-slot="catalog"] { grid-area:1 / 1; }
#pb-header .pb-compact-slot[data-pb-slot="search"] { grid-area:1 / 2; }
#pb-header .pb-compact-slot[data-pb-slot="phone"] { grid-area:1 / 3; }
#pb-header .pb-compact-slot[data-pb-slot="cart"] { grid-area:1 / 4; justify-self:end; padding-right:9px; }
#pb-header .pb-compact .pb-header-search { width:100%; margin:0; }
#pb-header .pb-compact .pb-header-phone { display:flex; gap:9px; }
#pb-header .pb-compact .pb-header-phone strong { font-size:15px; }
#pb-header .pb-compact .pb-phone-hours { display:none; }
#pb-header .pb-compact .pb-nav-action { color:#11151c; }
#pb-header .pb-compact .pb-action-count { color:#fff; background:#ed100b; }
#pb-header .pb-compact .pb-nav-action:hover { color:#d90000; }
#pb-header .pb-compact button:focus-visible { outline-color:#ed100b; }
#pb-header .pb-compact .pb-catalog-desktop { display:flex; }
#pb-header .pb-compact .pb-mobile-menu { display:block; }
#pb-header .pb-compact .pb-menu-panel { top:calc(100% + 5px); max-height:calc(100dvh - 110px); overflow-y:auto; }
#pb-header.is-compact .pb-full { opacity:0; clip-path:inset(0 0 calc(100% - 64px)); visibility:hidden; pointer-events:none; transition:opacity 230ms ease,clip-path 230ms ease,visibility 0s linear 230ms; }
#pb-header.is-compact .pb-compact { visibility:visible; opacity:1; pointer-events:auto; transition-delay:0s; }
@media(max-width:1279px) {
  #pb-header .pb-compact-inner { grid-template-columns:160px minmax(0,1fr) 170px 85px; gap:18px; }
  #pb-header .pb-compact .pb-catalog { width:100%; min-height:37px; padding-inline:12px; font-size:12px; }
}
@media(max-width:980px) and (min-width:701px) {
  #pb-header .pb-compact-inner { grid-template-columns:140px minmax(0,1fr) 160px 35px; gap:14px; }
  #pb-header .pb-compact .pb-action-label { display:none; }
  #pb-header .pb-compact .pb-catalog { gap:8px; }
  #pb-header .pb-compact .pb-header-phone strong { font-size:14px; }
}
@media(max-width:700px) {
  #pb-header .pb-compact-inner { grid-template-columns:minmax(0,1fr) auto 32px; grid-template-rows:34px 34px; gap:8px; height:92px; padding-block:8px; }
  #pb-header .pb-compact-slot[data-pb-slot="search"] { grid-area:2 / 1 / 3 / -1; }
  #pb-header .pb-compact-slot[data-pb-slot="phone"] { grid-area:1 / 2; }
  #pb-header .pb-compact-slot[data-pb-slot="cart"] { grid-area:1 / 3; padding-right:2px; }
  #pb-header .pb-compact .pb-header-search { height:34px; }
  #pb-header .pb-compact .pb-header-search input { font-size:10.5px; }
  #pb-header .pb-compact .pb-catalog { min-height:34px; padding:6px 8px; gap:6px; font-size:11px; }
  #pb-header .pb-compact .pb-catalog > svg { width:17px; height:17px; flex-basis:17px; }
  #pb-header .pb-compact .pb-catalog > .pb-chevron { width:10px; height:10px; flex-basis:10px; }
  #pb-header .pb-compact .pb-header-phone { gap:5px; }
  #pb-header .pb-compact .pb-header-phone > svg { width:17px; height:17px; flex-basis:17px; }
  #pb-header .pb-compact .pb-header-phone strong { font-size:12px; letter-spacing:-.3px; }
  #pb-header .pb-compact .pb-action-label { display:none; }
  #pb-header .pb-compact .pb-nav-action { width:26px; height:34px; justify-content:center; }
  #pb-header .pb-compact .pb-nav-action > svg { width:20px; height:20px; flex-basis:20px; }
  #pb-header.is-compact .pb-full { clip-path:inset(0 0 calc(100% - 92px)); }
}
@media(prefers-reduced-motion:reduce) {
  #pb-header .pb-full,#pb-header .pb-compact { transition:none!important; }
}
