/* Ahan123 V14: real WordPress header and original mobile dock.
   Applies globally only while the ahan-v14-enabled.flag is present. */
@media screen {
  /* WordPress theme sets overflow:hidden on body: it prevents position:sticky.
     clip on horizontal axis restores root scrolling without opening x-overflow. */
  body:has(> #ahan-page-top):not(.no-scroll):not(.ahan-drawer-open),
  body:has(#ahan-page-top):not(.no-scroll):not(.modal-open):not(.offcanvas-open):not(.ahan-drawer-open) {
    overflow-x:clip!important;
    overflow-y:visible!important;
  }
  #ahan-page-top.ahan-app-header {
    position:sticky!important;
    top:0!important;
    inset-block-start:0!important;
    z-index:9500!important;
    width:100%!important;
    isolation:isolate;
    background:rgba(255,255,255,.97);
    -webkit-backdrop-filter:blur(15px);
    backdrop-filter:blur(15px);
    border-bottom:1px solid rgba(222,233,240,.85);
    box-shadow:0 5px 17px rgba(15,49,70,.08);
    transform:none!important;
    will-change:auto;
  }
  #ahan-page-top .ahan-header-products,
  #ahan-page-top .ahan-header-control {scroll-margin-top:105px}
  /* Let the theme drawer take focus above the fixed header and lock scrolling. */
  body.ahan-drawer-open {overflow:hidden!important}
  body.ahan-drawer-open #ahan-page-top.ahan-app-header {z-index:1010!important}
  body.no-scroll {overflow:hidden!important}
}
@media (min-width:901px) {
  :root{--ahan-sticky-header-height:105px}
}
@media(max-width:900px) {
  :root{--ahan-sticky-header-height:89px}
  #ahan-page-top.ahan-app-header{
    min-height:89px;
    box-shadow:0 5px 17px rgba(12,48,69,.12);
  }
  /* Homepage's floating quick navigation also has position:fixed. Leave it
     below the now-sticky WordPress header so they never collide. */
  body .lp-floating-bar {
    top:calc(var(--ahan-sticky-header-height) + 9px)!important;
  }
  /* The old bottom-right phone is redundant with the new call strip
     on the catalog and must not show in any mobile footer. */
  #ahan-mobile-dock .ahan-dock-inner > a.ahan-dock-item[href^="tel:"] {
    display:none!important;
  }
  #ahan-mobile-dock .ahan-dock-inner {
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    justify-items:stretch;
    align-items:center;
    gap:3px;
  }
  #ahan-mobile-dock .ahan-dock-inner > .ahan-dock-item{
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    box-sizing:border-box;
  }
  #ahan-mobile-dock .ahan-dock-inner > .ahan-dock-primary {
    justify-self:stretch;
    width:100%!important;
  }
}
@media print {
  #ahan-page-top.ahan-app-header {position:static!important;box-shadow:none!important}
}
