/* ==========================================================================
   Kompaktowy naglowek (logo | wyszukiwarka | infolinia | koszyk) - 2026-11-13
   Motyw potomny probusiness-child, dolaczany w templates/_partials/head.tpl.
   Tylko desktop (>= 992px, od tej szerokosci motyw pokazuje pelne menu).
   Ponizej 992px (tablet, telefon) bez zmian.
   ========================================================================== */
@media (min-width: 992px) {
  /* pas: jedna linia, wysrodkowana w pionie, ok. 90px */
  #header .header-top > .container {
    padding-top: 10px;
    padding-bottom: 10px;
  }
  #header .header-top > .container > .row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    min-height: 70px;
  }
  /* clearfix z bootstrapa nie moze byc elementem flex */
  #header .header-top > .container > .row::before,
  #header .header-top > .container > .row::after {
    display: none;
  }

  /* logo: max 70px wysokosci, proporcje zachowane */
  #header #_desktop_logo {
    order: 1;
    flex: 0 0 auto;
    float: none;
    width: auto;
    margin: 0;
    padding: 0 15px;
  }
  #header #_desktop_logo a {
    display: block;
  }
  #header #_desktop_logo img.logo {
    display: block;
    width: auto;
    height: auto;
    max-height: 70px;
    max-width: 220px;
  }

  /* wyszukiwarka: wypelnia wolne miejsce */
  #header #search_widget {
    order: 2;
    flex: 1 1 auto;
    float: none;
    width: auto;
    max-width: none;
    min-width: 0;
    margin: 0 30px;
    padding: 0;
  }
  #header #search_widget form {
    float: none;
    width: 100%;
  }

  /* infolinia */
  #header #_desktop_contact_link {
    order: 3;
    flex: 0 0 auto;
  }
  #header #_desktop_contact_link .shop_text_nav {
    float: none;
    margin-top: 0;
    padding: 0 15px;
    display: flex;
    align-items: center;
  }

  /* koszyk: w pasie z logo zamiast na pasku menu (nie zaslania pozycji menu) */
  #header #_desktop_cart {
    order: 4;
    flex: 0 0 auto;
    position: relative;
    top: auto;
    right: auto;
    float: none;
    margin: 0 15px 0 10px;
    z-index: 90;
  }
  #header #_desktop_cart .blockcart.cart-preview {
    float: none;
    line-height: normal;
    padding: 0;
  }
  #header #_desktop_cart .header a,
  #header #_desktop_cart .header a * {
    color: #222 !important;
  }
  #header #_desktop_cart .header a .cart-products-count-absolution {
    color: #fff !important;
  }
  #header #_desktop_cart .cart-products-label {
    font-weight: 600;
  }
  /* rozwijany podglad koszyka ma wypadac pod ikona, przy prawej krawedzi */
  #header #_desktop_cart .body.cart-hover-content {
    right: 0;
    left: auto;
  }
}

/* 992-1199px (male laptopy): menu w jednej linii - mniejsze odstepy i czcionka */
@media (min-width: 992px) and (max-width: 1199px) {
  #header .ets_mm_megamenu .mm_menus_li > a {
    font-size: 14px;
    margin-left: 4px;
    margin-right: 4px;
    padding-left: 6px;
    padding-right: 6px;
    white-space: nowrap;
  }
}
