/* One storefront header on every public route. Route templates do not replace
   it with page-specific mobile bars. */
html body #header,
html body #header .wg-topbar,
html body #header .wg-header {
  display: block !important;
}

html body #header,
html body #header .wg-topbar,
html body #header .wg-header,
html body #header .wg-nav {
  position: static !important;
  inset: auto !important;
  transform: none !important;
}

@media (min-width: 576px) and (max-width: 991px) {
  html body #header .wg-topbar { height: 72px !important; min-height: 72px !important; max-height: 72px !important; padding: 0 !important; overflow: hidden !important; }
  html body #header .wg-topbar__inner { position: relative !important; display: block !important; width: 100% !important; height: 72px !important; padding: 9px 32px !important; }
  html body #header .wg-topbar__left { display: flex !important; height: 16px !important; margin: 0 !important; align-items: center !important; gap: 20px !important; white-space: nowrap !important; }
  html body #header .wg-topbar__left .wg-topbar__usp { display: flex !important; height: 16px !important; margin: 0 !important; font-size: 13px !important; line-height: 16px !important; }
  html body #header .wg-topbar__right { position: absolute !important; top: 41px !important; left: 32px !important; display: flex !important; height: 22px !important; margin: 0 !important; align-items: center !important; gap: 20px !important; }
  html body #header .wg-header { height: 173px !important; min-height: 173px !important; max-height: 173px !important; padding: 0 !important; }
  html body #header .wg-header__inner { position: relative !important; display: flex !important; width: 100% !important; height: 172px !important; padding: 18px 32px !important; align-items: center !important; gap: 28px !important; flex-wrap: wrap !important; }
  html body #header .wg-logo { position: absolute !important; top: 18px !important; left: 32px !important; width: auto !important; height: 60px !important; margin: 0 !important; }
  html body #header #search_widget { position: absolute !important; top: 24px !important; left: 329px !important; width: 407px !important; height: 48px !important; margin: 0 !important; }
  html body #header .wg-header__actions { position: absolute !important; top: 106px !important; right: 32px !important; display: flex !important; width: 332px !important; height: 48px !important; margin: 0 !important; align-items: center !important; }
  html body #header .wg-nav { height: 118px !important; min-height: 118px !important; max-height: 118px !important; overflow: hidden !important; }
  html body #header .wg-nav__inner { position: relative !important; display: block !important; width: 100% !important; height: 117px !important; padding: 0 32px !important; }
  html body #header .wg-nav__all { position: absolute !important; top: 6px !important; left: 32px !important; margin: 0 !important; }
  html body #header .wg-nav__menu { position: absolute !important; top: 2px !important; right: 32px !important; left: 174px !important; display: block !important; height: 115px !important; margin: 0 !important; }
  html body #header .wg-nav__menu #top-menu { display: flex !important; width: 562px !important; height: 115px !important; margin: 0 !important; padding: 0 !important; align-items: flex-start !important; gap: 0 22px !important; flex-wrap: wrap !important; }
  html body #header .wg-nav__menu #top-menu > .category { height: 45px !important; margin: 0 !important; }
  html body #header .wg-nav__promo { position: absolute !important; right: 32px !important; bottom: 14px !important; height: 17px !important; margin: 0 !important; }
}

@media (max-width: 575px) {
  html body.wg-drawer-open nav.wg-mobile-bottom { display: none !important; visibility: hidden !important; }
  html body .wg-drawer__panel { z-index: 1900 !important; width: 340px !important; max-width: 87vw !important; height: 844px !important; max-height: 100vh !important; padding: 0 !important; background: #fff !important; }
  html body .wg-drawer__head { height: 72px !important; padding: 0 16px !important; border-bottom: 1px solid #dce5f2 !important; }
  html body .wg-drawer__logo { display: flex !important; align-items: center !important; gap: 10px !important; color: #13213d !important; text-decoration: none !important; }
  html body .wg-drawer__logo img { width: 40px !important; height: 40px !important; object-fit: contain !important; }
  html body .wg-drawer__logo .wg-logo__name { font-size: 24px !important; }
  html body .wg-drawer__close { width: 44px !important; height: 44px !important; border-radius: 12px !important; background: #f5f8fe !important; font-size: 28px !important; }
  html body .wg-drawer__nav,
  html body .wg-drawer__foot { display: none !important; }
  html body .wg-drawer__auth { display: flex !important; padding: 15px 16px !important; gap: 8px !important; }
  html body .wg-drawer__auth a { display: flex !important; height: 36px !important; padding: 0 13px !important; align-items: center !important; gap: 7px !important; border: 1px solid #dce5f2 !important; border-radius: 10px !important; color: #1d52a8 !important; font-size: 13px !important; font-weight: 700 !important; text-decoration: none !important; }
  html body .wg-drawer__auth a:first-child { border-color: #2a6bd1 !important; background: #2a6bd1 !important; color: #fff !important; }
  html body .wg-drawer__auth i { font-size: 17px !important; }
  html body .wg-drawer__static { display: block !important; }
  html body .wg-drawer__static a { display: flex !important; height: 53px !important; padding: 0 20px !important; align-items: center !important; justify-content: space-between !important; border-bottom: 1px solid #dce5f2 !important; color: #13213d !important; font-size: 15px !important; font-weight: 600 !important; text-decoration: none !important; }
  html body .wg-drawer__static span { color: #52617d !important; font-size: 24px !important; font-weight: 400 !important; }
  html body .wg-drawer__links { display: flex !important; padding: 12px 20px !important; flex-direction: column !important; gap: 10px !important; }
  html body .wg-drawer__links a { color: #13213d !important; font-size: 14px !important; text-decoration: none !important; }
  html body .wg-drawer__links .is-promo { color: #d6293e !important; font-weight: 700 !important; }
  html body .wg-drawer__links .is-new { color: #1d52a8 !important; font-weight: 700 !important; }
  html body .wg-drawer__phone { position: absolute !important; right: 0 !important; bottom: 0 !important; left: 0 !important; display: flex !important; height: 50px !important; padding: 0 20px !important; align-items: center !important; gap: 7px !important; background: #f5f8fe !important; color: #13213d !important; font-size: 13px !important; text-decoration: none !important; }
  html body .wg-drawer__phone i { color: #2a6bd1 !important; font-size: 17px !important; }

  html body:is(#index, #category, #search, #product, #cart, #prices-drop, #new-products, #best-sales, #manufacturer, #supplier, #cms, #authentication, #my-account) #header {
    height: auto !important;
    min-height: 0 !important;
  }

  html body:is(#index, #category, #search, #product, #cart, #prices-drop, #new-products, #best-sales, #manufacturer, #supplier, #cms, #authentication, #my-account) #header .wg-header {
    display: block !important;
    width: 100% !important;
    height: 124px !important;
    min-height: 124px !important;
    max-height: 124px !important;
  }

  html body:is(#index, #category, #search, #product, #cart, #prices-drop, #new-products, #best-sales, #manufacturer, #supplier, #cms, #authentication, #my-account) #header .wg-nav,
  html body .wg-mobile-pagebar {
    display: none !important;
  }
}
/* Tablet autocomplete is viewport-bound; centering it inside the narrower
   search widget pushed the panel beyond the right edge. */
@media (min-width: 768px) and (max-width: 991px) {
  html body #search_widget.wg-search > .wg-ac {
    position: fixed !important;
    top: 152px !important;
    right: 16px !important;
    left: 16px !important;
    width: auto !important;
    max-width: none !important;
    transform: none !important;
  }
}
