/* AB-LAB contact header. Independent of the UniShop2 generated palette. */
header .top-menu{background:#f1f5f9;border-bottom:1px solid #e2e8f0}
header .top-menu>.container{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:54px}
header .top-menu__links{display:flex;align-items:center;gap:30px;min-width:0;flex:1}
header .top-menu__buttons{display:flex;align-items:center;gap:18px;flex-shrink:0}
header .ablab-region-picker{display:inline-flex;align-items:center;gap:9px;margin:0;padding:5px 0;max-width:240px;flex-shrink:0;cursor:pointer}
.ablab-city-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#e0f2fe;color:#0284c7;font-size:16px;flex-shrink:0}
.ablab-city-control{display:flex;flex-direction:column;align-items:flex-start;min-width:0}
.ablab-city-caption{font-size:11px;line-height:14px;color:#64748b;font-weight:400}
.ablab-region-picker select{border:0;border-bottom:1px dashed #94a3b8;background:transparent;border-radius:0;color:#1e293b;font-family:inherit;font-size:14px;font-weight:600;line-height:1.3;padding:1px 19px 2px 0;max-width:190px;cursor:pointer}
.ablab-region-picker select:focus-visible{outline:2px solid #0284c7;outline-offset:3px}
.ablab-max-link{display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:8px 14px;min-height:40px;border-radius:7px;color:#fff!important;background:#4054d9;font-size:13px;font-weight:600;line-height:20px;white-space:nowrap;text-decoration:none!important;transition:background-color .15s ease}
.ablab-max-link:hover{background:#3043bc}
.ablab-max-link img{width:24px;height:24px;object-fit:contain;border-radius:6px;flex-shrink:0}
header .header-phones__main{font-size:18px!important;line-height:1.35;font-weight:700!important;color:#1e293b}
header .header-phones__main-img-i{color:#0284c7;width:24px}
header .ablab-header-email{display:flex;align-items:center;gap:8px;color:#64748b;font-size:13px;line-height:20px;margin-top:3px}
header .ablab-header-email:hover{color:#0284c7}
header .ablab-header-quote{font-size:12px;margin-top:7px;padding:6px 10px}
header .ablab-header-hours{display:block;color:#64748b;font-size:11px;line-height:16px;margin-top:5px}
header .header-phones__show-phone{right:-17px}
.ablab-resource-nav{display:flex;gap:28px;align-items:center;justify-content:flex-end;padding-top:0;padding-bottom:12px}
.ablab-resource-nav a{display:inline-flex;align-items:center;gap:7px;font-size:12px;color:#475569;white-space:nowrap}
.ablab-resource-nav a:hover{color:#0284c7}
.ablab-resource-nav i{color:#0284c7}
#fly-menu:not(.bottom) .row{height:62px}
#fly-menu:not(.bottom) .fly-menu__search{flex:1 1 260px;min-width:180px}
#fly-menu:not(.bottom) .fly-menu__phone{display:flex;flex-direction:column;align-items:flex-start;padding:0 18px;gap:2px}
.ablab-fly-phone{display:flex;align-items:center;gap:6px;color:#1e293b;font-size:16px;font-weight:700;line-height:22px;white-space:nowrap}
.ablab-fly-phone .header-phones__main-img-i{display:none}
.ablab-fly-email{display:flex;align-items:center;gap:6px;color:#64748b;font-size:12px;font-weight:400;line-height:17px}
#fly-menu:not(.bottom) .ablab-fly-max{margin-right:12px;flex-shrink:0}
#fly-menu .fly-menu__product{min-width:0}
#fly-menu .fly-menu__product-name{font-size:14px;min-width:0}
#fly-menu .fly-menu__product-price{font-size:17px;padding:0 16px}
#fly-menu.bottom .ablab-fly-max{display:flex;flex:1;min-width:0;flex-direction:column;gap:2px;padding:5px 0;border-radius:0;background:transparent;color:#4054d9!important;font-size:11px;line-height:14px}
#fly-menu.bottom .ablab-fly-max img{width:23px;height:23px}
@media(min-width:992px){header .header-block{padding-top:18px;padding-bottom:13px}header .header-logo__img{max-height:85px;width:auto}header .top-links__a{font-size:12px}}
@media(min-width:992px) and (max-width:1199px){header .top-menu__links{gap:14px}header .top-menu__buttons{gap:8px}header .top-menu__account .top-menu__btn-text{display:none}header .ablab-region-picker select{max-width:165px}#fly-menu:not(.bottom) .fly-menu__phone{padding:0 10px}#fly-menu:not(.bottom) .ablab-fly-max{padding:7px 9px}}
@media(max-width:991px){header .top-menu>.container{gap:10px;min-height:54px}header .top-menu__links{gap:12px}header .top-menu__buttons{gap:8px}header .top-menu__account{display:none!important}.ablab-resource-nav{justify-content:flex-start;gap:20px;overflow-x:auto;scrollbar-width:thin;padding-bottom:10px}.ablab-resource-nav a{font-size:11px}header .ablab-header-hours{font-size:10px}.ablab-region-picker select{max-width:160px}#fly-menu.bottom .row{padding-bottom:env(safe-area-inset-bottom);height:calc(56px + env(safe-area-inset-bottom))}}
@media(max-width:575px){header .top-links{display:none}header .ablab-region-picker{gap:7px}.ablab-city-icon{width:29px;height:29px;font-size:14px}.ablab-region-picker select{max-width:145px;font-size:13px}.ablab-max-link{font-size:12px;padding:7px 9px;gap:7px;min-height:38px}.ablab-max-link img{width:22px;height:22px}header .header-phones__main{font-size:16px!important}header .header-phones__main-img-i{width:19px}header .ablab-header-email{font-size:12px;gap:6px}header .ablab-header-quote{font-size:10px;padding:5px 7px}header .header-block__item-telephone{padding-right:18px}header .header-phones__show-phone{right:-14px}header .header-logo__img{max-height:64px}.ablab-resource-nav{gap:18px}}
@media(max-width:359px){.ablab-region-picker select{max-width:118px}.ablab-max-link{gap:5px;padding-left:7px;padding-right:7px}.ablab-city-caption{font-size:10px}}
@media(prefers-reduced-motion:reduce){.ablab-max-link,#fly-menu{transition:none!important}}

@media(max-width:991px){
header .top-menu__wishlist.status-0,header .top-menu__compare.status-0{display:none!important}
header .ablab-region-picker{flex-shrink:1;min-width:0;max-width:100%}
header .ablab-region-picker select{min-width:0;width:100%;max-width:160px}
}
@media(max-width:575px){
header .top-menu>.container{padding-left:15px;padding-right:15px;gap:10px}
header .header-block__item-cart{display:none}
header .header-block__item-logo{flex:1;min-width:80px;padding-right:14px}
header .header-logo__img{max-height:64px;width:100%;max-width:145px}
header .header-block__item-telephone{padding-right:16px;flex:0 1 auto}
header .header-phones{padding-right:0;min-width:0}
header .ablab-header-quote{font-size:10px!important;padding:6px 7px!important;white-space:nowrap}
header .ablab-header-hours{font-size:10px}
}
@media(max-width:359px){header .header-phones__main{font-size:14px!important}header .ablab-header-quote{font-size:9px!important}.ablab-max-link{font-size:11px}}

@media(max-width:575px){header .top-menu .top-links{display:none!important}header .ablab-header-quote{white-space:nowrap!important}header .ablab-city-caption{white-space:nowrap}}

/* Supplier review navigation */
@media(min-width:992px){.ablab-resource-nav{flex-wrap:wrap;gap:12px 26px}}

/* Mobile menu: closed panels must not allocate full-screen scrolling layers.
   UniShop toggles .active when entering/leaving a submenu. Desktop is unchanged. */
@media (max-width:991px) {
  .menu.slide-from-right .menu__level-2:not(.active),
  .menu.slide-from-right .menu__level-3:not(.active) { display:none !important; }
}

/* Four equal mobile navigation cells, with aligned icon and caption rows. */
@media (max-width:991px) {
  #fly-menu.bottom > .container { width:100%;max-width:none;padding:0; }
  #fly-menu.bottom > .container > .row {
    margin:0;gap:0;align-items:flex-start;
    height:calc(60px + env(safe-area-inset-bottom));
    padding:0 0 env(safe-area-inset-bottom);box-sizing:border-box;
  }
  #fly-menu.bottom > .container > .row > .fly-menu__block,
  #fly-menu.bottom > .container > .row > .ablab-fly-max {
    display:flex;flex:1 1 0;width:0;min-width:0;height:60px;
    margin:0;padding:8px 0;box-sizing:border-box;border-radius:0;
    flex-direction:column;align-items:center;justify-content:center;gap:4px;
    text-align:center;
  }
  #fly-menu.bottom .fly-menu__block > .fly-menu__icon,
  #fly-menu.bottom .ablab-fly-max > img {
    display:flex;align-items:center;justify-content:center;
    flex:0 0 24px;width:24px;height:24px;min-height:24px;
    margin:0;padding:0;font-size:22px;line-height:24px;object-fit:contain;
  }
  #fly-menu.bottom .fly-menu__block > .fly-menu__caption,
  #fly-menu.bottom .ablab-fly-max > span {
    margin:0;padding:0;font-size:11px;font-weight:400;line-height:16px;
    color:#475569;text-align:center;white-space:nowrap;
  }
  #fly-menu.bottom .fly-menu__total { top:4px; }
}

/* Explicit category navigation, shown only in the mobile drill-down menu. */
.ablab-menu-overview { display:none; }
@media (max-width:991px) {
  header .menu.slide-from-right .ablab-menu-overview {
    display:block;padding:18px 16px 20px;background:#fff;border-bottom:1px solid #e2e8f0;
  }
  header .menu.slide-from-right .ablab-menu-heading {
    margin:0 0 14px;font-size:20px;line-height:1.35;font-weight:700;color:#1e293b;
  }
  header .menu.slide-from-right .ablab-menu-view-all {
    display:flex;align-items:center;justify-content:center;min-height:46px;padding:10px 14px;
    border-radius:7px;background:#0284c7;color:#fff;font-size:14px;font-weight:600;text-align:center;
  }
  header .menu.slide-from-right .ablab-menu-view-all:hover { background:#0369a1; }
  header .menu.slide-from-right .menu__back {
    min-height:50px;padding:12px 16px;gap:8px;line-height:1.35;color:#475569;background:#f1f5f9;
    white-space:normal;
  }
  header .menu.slide-from-right .menu__back .fa-arrow-left { flex-shrink:0;margin:0; }
  header .menu.slide-from-right .menu__level-1-a,
  header .menu.slide-from-right .menu__level-2-a,
  header .menu.slide-from-right .menu__level-3-a { min-height:56px; }
  header .menu.slide-from-right a[aria-controls] { cursor:pointer; }
  header .menu.slide-from-right a:focus-visible,
  header .menu.slide-from-right .menu__back:focus-visible { outline:2px solid #0284c7 !important;outline-offset:-3px; }
}

/* Catalog stacking and responsive navigation, 2026-10-04. */
header { position:relative; z-index:1000; }
@media(max-width:991px) {
 .ablab-resource-nav { flex-wrap:wrap; overflow:visible; gap:8px 14px; white-space:normal; }
 .ablab-resource-nav a { white-space:normal; }
}
/* Keep the purchased FilterVier inline on phones. */
@media(max-width:767px) {
 #product-category #fv_module { position:relative!important; top:auto!important; left:auto!important; bottom:auto!important; width:100%!important; height:auto!important; z-index:1!important; }
 #product-category #fv_container { position:relative!important; top:auto!important; left:auto!important; right:auto!important; bottom:auto!important; transform:none!important; width:100%!important; max-width:none!important; height:auto!important; overflow:visible!important; --fv-body-flex-gap:10px; --fv-horiz-blocks-row:2; }
 #product-category #fv_module .fv-mobile_btn_mini_box,#product-category #fv_module .fv-head_mobile_close { display:none!important; }
 #product-category #fv_module .fv-items:not(.fv-choices) { width:calc(50% - 5px)!important; min-width:0; }
 #product-category #fv_module .fv-items_title { overflow-wrap:anywhere; }
}

/* Fit the logo to its existing header area with balanced outer spacing. */
@media(min-width:992px) {
 header .header-block__item-logo { position:relative; align-self:stretch; height:auto; flex:0 1 251.111px; width:251.111px; }
 header .header-block .header-block__item-logo #logo { position:absolute; inset:0 15px 0 20px; width:auto!important; height:100%!important; max-width:none!important; margin:0!important; transform:none!important; display:flex; align-items:center; }
 header .header-block__item-logo .header-logo__img { width:100%!important; height:auto!important; max-width:100%!important; max-height:100%!important; margin:0!important; object-fit:contain; }
}
@media(max-width:767px) {
 header > .container .header-block { grid-template-columns:minmax(0,1fr) max-content!important; }
 header .header-block .header-block__item-logo { position:relative; width:100%!important; height:100%!important; min-height:0; align-self:stretch!important; }
 header .header-block .header-block__item-logo #logo { position:absolute; inset:0; width:100%!important; height:100%!important; max-width:none!important; margin:0!important; transform:none!important; display:flex; align-items:center; }
 header .header-block__item-logo .header-logo__img { width:100%!important; height:auto!important; max-width:100%!important; max-height:100%!important; margin:0!important; object-fit:contain; }
}
