/*
 * MojaWoda — HEADER PRO 1.0.0 | 2026-09-25
 * Scope: utility strip and the content ABOVE the main navigation only.
 * No rules for main-menu items, the mobile menu, body padding or menu positioning.
 * Existing PrestaShop responsive swapping (768px), search, cart AJAX, favorites,
 * translations, module URLs and shop logo are retained. No extra JavaScript/fonts.
 */

/* 1. Utility strip: contact / currency / language / customer account. */
#header .mw-header-nav {
  background: #f3f8fc !important;
  border: 0 !important;
  border-bottom: 1px solid #e0ebf2 !important;
  color: #214861;
  font-size: 12px;
  line-height: 1.4;
  margin: 0 !important;
  min-height: 42px;
}
#header .mw-header-nav .mw-header-utility {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0 14px;
  min-height: 42px;
  padding-top: 3px;
  padding-bottom: 3px;
}
#header .mw-header-nav #_desktop_contact_link {
  float: none;
  margin-right: auto;
  order: 0;
  min-width: 0;
}
#header .mw-header-nav #contact-link {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  line-height: 1.4;
}
#header .mw-header-nav #contact-link span.shop-phone {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  font-size: 13px;
  line-height: 1.4;
  white-space: nowrap;
}
#header .mw-header-nav #contact-link span.shop-phone.contact_link,
#header .mw-header-nav #contact-link .shop-phone_text {
  display: none;
}
#header .mw-header-nav #contact-link strong,
#header .mw-header-nav #contact-link a {
  color: #006491;
  font-weight: 600;
}
#header .mw-header-nav #contact-link i {
  color: #008caf;
  font-size: 14px;
  line-height: 1;
  padding-right: 6px;
}
#header .mw-header-nav #_desktop_currency_selector { order: 1; }
#header .mw-header-nav #_desktop_language_selector { order: 2; }
#header .mw-header-nav .lang_currency_top {
  float: none;
  flex: 0 0 auto;
  border: 0;
  padding: 0;
}
#header .mw-header-nav .lang_currency_top .dropdown.js-dropdown {
  height: auto;
  padding: 0;
}
#header .mw-header-nav .lang_currency_top button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 34px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: #214861;
  font-size: 11px;
  line-height: 1.4;
  cursor: pointer;
}
#header .mw-header-nav .lang_currency_top button .expand-more {
  color: #214861;
  font-weight: 500;
}
#header .mw-header-nav .lang_currency_top button img {
  float: none;
  margin: 0 1px 0 0;
  width: 16px;
  height: 11px;
  object-fit: contain;
}
#header .mw-header-nav .lang_currency_top button i.expand-more {
  font-size: 17px;
  line-height: 1;
}
#header .mw-header-nav .lang_currency_top ul.dropdown-menu {
  left: auto;
  right: 0;
  min-width: 150px;
  padding: 6px;
  margin-top: 2px;
  border: 1px solid #dfeaf1;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 28px rgb(17 58 84 / 12%);
  z-index: 1000;
}
#header .mw-header-nav .lang_currency_top ul.dropdown-menu li a.dropdown-item {
  color: #214861;
  font-size: 12px;
  line-height: 1.5;
  padding: 9px 10px;
  border-radius: 5px;
}
#header .mw-header-nav .lang_currency_top ul.dropdown-menu li a.dropdown-item:hover,
#header .mw-header-nav .lang_currency_top ul.dropdown-menu li.current a.dropdown-item,
#header .mw-header-nav .lang_currency_top ul.dropdown-menu li a.dropdown-item:focus-visible {
  background: #edf6fb;
  color: #006491;
}
#header .mw-header-nav #_desktop_user_info {
  order: 3;
  float: none;
  flex: 0 1 auto;
  min-width: 0;
  border: 0;
  border-left: 1px solid #d9e6ee;
  padding: 0 0 0 14px;
}
#header .mw-header-nav .user-info .mw-user-desktop {
  display: flex;
  align-items: center;
  gap: 8px;
}
#header .mw-header-nav .mw-user-icon {
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  color: #006491;
}
#header .mw-header-nav .mw-user-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 180px;
  gap: 2px;
}
#header .mw-header-nav .user-info .mw-user-copy a {
  display: block;
  padding: 0;
  line-height: 1.35;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
#header .mw-header-nav .user-info .mw-user-primary {
  color: #006491;
  font-size: 12px;
  font-weight: 600;
}
#header .mw-header-nav .user-info .mw-user-secondary {
  color: #557086;
  font-size: 10px;
  font-weight: 400;
}
#header .mw-header-nav .user-info a:hover,
#header .mw-header-nav #contact-link a:hover { color: #008bac; }

/* 2. Main row: retain the site's container width so it aligns with the menu. */
#header .mw-header-top { background: #fff !important; }
#header .mw-header-top .mw-header-main {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 20px;
  min-height: 128px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 12px 0 !important;
}
#header .mw-header-top .mw-header-main::before,
#header .mw-header-top .mw-header-main::after,
#header .mw-header-top .mw-header-main > .clearfix { display: none !important; }
#header .mw-header-top .mw-header-main > * {
  order: 4;
  flex: 0 0 auto;
  min-height: 0 !important;
}
#header .mw-header-top .mw-header-main a#_desktop_logo {
  order: 0;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  position: relative !important;
  flex: 0 0 190px !important;
  width: 190px !important;
  min-width: 0 !important;
  max-width: 190px !important;
  height: 104px !important;
  min-height: 104px !important;
  max-height: 104px !important;
  padding: 0 !important;
  margin: 0 !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: none !important;
  overflow: visible !important;
  box-sizing: border-box;
}
#header .mw-header-top .mw-header-main a#_desktop_logo > img.logo {
  display: block !important;
  flex: 0 0 auto !important;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 128px !important;
  margin: 0 !important;
  object-fit: contain !important;
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;
  clip: auto !important;
  clip-path: none !important;
  filter: none !important;
}
#header .mw-header-top .mw-header-main .header-top_search-container {
  display: block !important;
  order: 1;
  flex: 1 1 360px;
  width: auto;
  min-width: 200px;
  max-width: none;
  height: auto !important;
  margin: 0;
  padding: 0;
}
#header .mw-header-top .mw-header-main #_desktop_search_widget {
  float: none;
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
}

/* 3. Search: same input and controller for native search and Doofinder. */
#header .mw-header-top .mw-header-search { width: 100%; }
#header .mw-header-top .mw-header-search form {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
}
#header .mw-header-top .mw-header-search .mw-search-leading-icon {
  position: absolute;
  left: 17px;
  top: 50%;
  transform: translateY(-50%);
  width: 21px;
  height: 21px;
  color: #006491;
  pointer-events: none;
  z-index: 1;
}
#header .mw-header-top .mw-header-search form input[type="text"] {
  display: block;
  width: 100% !important;
  max-width: none;
  height: 52px !important;
  min-height: 52px;
  padding: 12px 90px 12px 47px !important;
  border: 1px solid #b9d3e3 !important;
  border-radius: 28px;
  background: #f9fcfe;
  color: #163e57;
  font: inherit;
  font-size: 13px;
  line-height: 1.4;
  box-shadow: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
#header .mw-header-top .mw-header-search form input[type="text"]::placeholder {
  color: #748b9c;
  opacity: 1;
}
#header .mw-header-top .mw-header-search form input[type="text"]:focus {
  outline: none !important;
  border-color: #008cac !important;
  box-shadow: 0 0 0 3px rgb(0 140 172 / 12%) !important;
  background: #fff;
}
#header .mw-header-top .mw-header-search form button[type="submit"] {
  position: absolute;
  top: 4px;
  right: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 76px;
  height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 24px;
  background: #0085aa;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background-color 150ms ease;
}
#header .mw-header-top .mw-header-search form button[type="submit"]:hover { background: #006b91; }
#header .mw-header-top .mw-header-search .mw-search-button-label { display: inline; }
#header .mw-header-top .mw-header-search .mw-search-button-icon { display: none; }

/* 4. Configured displayTop links. No hardcoded pages or duplicate link IDs. */
#header .mw-header-top .mw-header-main .mw-header-shortcuts {
  order: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  height: auto !important;
  max-width: 32%;
}
#header .mw-header-top .mw-header-shortcuts:empty { display: none; }
#header .mw-header-top .mw-header-shortcuts .mw-header-links {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 6px 4px;
  margin: 0;
  padding: 0;
}
#header .mw-header-top .mw-header-shortcuts .mw-header-shortcut {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 43px;
  min-height: 60px;
  max-width: 92px;
  padding: 5px 5px;
  border-radius: 9px;
  color: #006491;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease;
}
#header .mw-header-top .mw-header-shortcuts .mw-header-shortcut:hover {
  background: #edf7fb;
  color: #0085aa;
}
#header .mw-header-top .mw-header-shortcut-label {
  max-width: 100%;
  overflow-wrap: anywhere;
}
#header .mw-header-top .mw-shortcut-icon { width: 25px; height: 25px; flex: 0 0 25px; }
#header .mw-header-top .mw-header-main #landing_page { order: 3; }

/* SVGs added to the cart must not appear in the unchanged mobile navigation. */
#header .mw-cart-icon,
#header .mw-cart-chevron { display: none; }

/* 5. Desktop cart. Its count, values, refresh URL and dropdown remain native. */
@media (min-width: 768px) {
  #header .mw-header-top .mw-header-main #_desktop_cart {
    order: 5;
    display: block !important;
    float: none;
    flex: 0 0 190px;
    width: 190px;
    min-width: 0;
    height: auto !important;
    margin: 0;
    padding: 0;
    position: relative;
  }
  #header .mw-header-top #_desktop_cart .blockcart .header {
    float: none;
    width: auto;
    height: auto;
    padding: 0;
    color: #006491;
    background: #f8fbfe;
    border: 1px solid #dce9f1;
    border-radius: 13px;
    box-shadow: none;
  }
  #header .mw-header-top #_desktop_cart .blockcart .header a.cart_link {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr) 9px;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 4px 10px;
    min-height: 66px;
    padding: 12px;
    color: #006491;
    line-height: 1.35;
    border-radius: 13px;
    text-decoration: none;
  }
  #header .mw-header-top #_desktop_cart .blockcart .header a.cart_link:hover { background: #edf6fb; }
  #header .mw-header-top #_desktop_cart .cart_link > i.shopping-cart { display: none; }
  #header .mw-header-top #_desktop_cart .mw-cart-icon {
    display: block;
    grid-column: 1;
    grid-row: 1 / 3;
    width: 26px;
    height: 26px;
  }
  #header .mw-header-top #_desktop_cart .mw-cart-chevron {
    display: block;
    grid-column: 3;
    grid-row: 1 / 3;
    width: 9px;
    height: 13px;
  }
  #header .mw-header-top #_desktop_cart .blockcart .header .cart_title {
    display: block;
    grid-column: 2;
    grid-row: 1;
    font-size: 13px;
    font-weight: 600;
  }
  #header .mw-header-top #_desktop_cart .cart-products-count {
    display: block;
    grid-column: 2;
    grid-row: 2;
    color: #38596f;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }
  #header .mw-header-top #_desktop_cart .cart-products-count > span { display: inline; }
  #header .mw-header-top #_desktop_cart #subcart {
    top: calc(100% + 8px);
    right: 0;
    width: 320px;
    max-width: calc(100vw - 30px);
    border: 1px solid #dce9f1;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgb(17 58 84 / 13%);
    z-index: 1000;
  }
  /* Hover bridge keeps the existing dropdown usable across the visual gap. */
  #header .mw-header-top #_desktop_cart #subcart::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -10px;
    height: 10px;
  }
  #header .mw-header-top #_desktop_cart .cart_top:focus-within #subcart {
    visibility: visible;
    opacity: 1;
    transition: none;
  }
  #header .mw-header-top #_desktop_cart #subcart .cart_products {
    max-height: min(340px, 52vh);
    overflow-y: auto;
    border-radius: 12px 12px 0 0;
  }
  /* Keep the theme's OPTIONAL floating cart; do not change its activation or position. */
  .stickycart_yes.sticky_cart #header .mw-header-top #_desktop_cart .blockcart .header {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 16px rgb(17 58 84 / 14%);
  }
  .stickycart_yes.sticky_cart #header .mw-header-top #_desktop_cart .cart_link {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    min-height: 54px !important;
    padding: 0 !important;
    border-radius: 50% !important;
  }
  .stickycart_yes.sticky_cart #header .mw-header-top #_desktop_cart .mw-cart-chevron { display: none; }
  .stickycart_yes.sticky_cart #header .mw-header-top #_desktop_cart .cart-products-count {
    color: #fff;
    background: #0085aa;
  }
  .stickycart_yes.sticky_cart #header .mw-header-top #_desktop_cart #subcart { top: 64px; }
}

/* 6. Laptop: same layout, no new menu breakpoint. */
@media (min-width: 992px) and (max-width: 1199px) {
  #header .mw-header-top .mw-header-main { gap: 14px; }
  #header .mw-header-top .mw-header-main a#_desktop_logo {
    flex-basis: 164px !important;
    width: 164px !important;
    max-width: 164px !important;
  }
  #header .mw-header-top .mw-header-shortcuts .mw-header-shortcut {
    font-size: 10px;
    min-width: 36px;
    padding-left: 3px;
    padding-right: 3px;
    max-width: 70px;
  }
  #header .mw-header-top .mw-header-main #_desktop_cart { flex-basis: 166px; width: 166px; }
  #header .mw-header-top #_desktop_cart .blockcart .header a.cart_link { column-gap: 8px; padding: 10px; }
}

/* Tablet: wrap the SEARCH row, not the main navigation, and retain all controls. */
@media (min-width: 768px) and (max-width: 991px) {
  #header .mw-header-nav #contact-link span.shop-email { display: none; }
  #header .mw-header-top .mw-header-main {
    flex-wrap: wrap !important;
    gap: 4px 18px;
    min-height: 166px !important;
    padding-top: 4px !important;
    padding-bottom: 14px !important;
  }
  #header .mw-header-top .mw-header-main a#_desktop_logo {
    flex-basis: 150px !important;
    width: 150px !important;
    max-width: 150px !important;
    height: 94px !important;
    min-height: 94px !important;
    max-height: 94px !important;
    margin-right: auto !important;
  }
  #header .mw-header-top .mw-header-main .mw-header-shortcuts { max-width: 38%; }
  #header .mw-header-top .mw-header-main .header-top_search-container {
    order: 10;
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
  }
  #header .mw-header-top .mw-header-main #_desktop_cart { flex-basis: 186px; width: 186px; }
}

/* Mobile: preserve existing menu, its toggles, wrappers and responsive widget swap.
   Only the utility strip / logo / toolbox above that menu are resized. */
@media (max-width: 767px) {
  #header .mw-header-nav { min-height: 36px; }
  #header .mw-header-nav .mw-header-utility {
    flex-wrap: nowrap;
    min-height: 36px;
    gap: 0 9px;
    padding-top: 0;
    padding-bottom: 0;
  }
  #header .mw-header-nav #contact-link { flex-wrap: nowrap; gap: 0; }
  #header .mw-header-nav #contact-link span.shop-phone { font-size: 11px; }
  #header .mw-header-nav #contact-link span.shop-tel ~ span.shop-tel,
  #header .mw-header-nav #contact-link span.shop-email,
  #header .mw-header-nav #_desktop_user_info { display: none !important; }
  #header .mw-header-nav #contact-link i { font-size: 12px; padding-right: 4px; }
  #header .mw-header-nav .lang_currency_top button { min-height: 36px; font-size: 10px; gap: 3px; }
  #header .mw-header-top { min-height: 84px !important; }
  #header .mw-header-top .mw-header-main {
    min-height: 84px !important;
    height: auto !important;
    padding: 0 !important;
    gap: 12px;
    flex-wrap: nowrap !important;
  }
  #header .mw-header-top .mw-header-main > * { height: auto !important; min-height: 0 !important; }
  #header .mw-header-top .mw-header-main a#_desktop_logo {
    width: 148px !important;
    flex: 0 0 148px !important;
    max-width: 148px !important;
    height: 84px !important;
    min-height: 84px !important;
    max-height: 84px !important;
    margin: 0 auto 0 0 !important;
    padding: 0 !important;
  }
  #header .mw-header-top .mw-header-main a#_desktop_logo > img.logo {
    max-height: 84px !important;
    max-width: 148px !important;
  }
  #header .mw-header-top .mw-header-main .header-top_search-container,
  #header .mw-header-top .mw-header-main .mw-header-shortcuts,
  #header .mw-header-top .mw-header-main #_desktop_search_widget,
  #header .mw-header-top .mw-header-main #_desktop_cart { display: none !important; }
  #header .mw-header-top .mw-header-main #landing_page {
    display: flex !important;
    flex: 0 0 auto !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    max-width: 90px !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  #header .mw-header-top .mw-header-main #landing_page img.image {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: 40px !important;
    max-height: 40px !important;
    margin: 0 auto 3px !important;
    object-fit: contain;
  }
  #header .mw-header-top .mw-header-main #landing_page .link {
    display: block !important;
    font-size: 10px !important;
    line-height: 1.3 !important;
    white-space: normal !important;
    text-align: center !important;
    margin: 0 !important;
  }
  /* iOS input zoom is avoided in the existing, toggled search panel. */
  #header .mw-header-top .mw-header-search form input[type="text"] { font-size: 16px !important; }
  #header .mw-header-top .mw-header-search form button[type="submit"] { min-width: 48px; padding: 0 12px; }
  #header .mw-header-top .mw-header-search .mw-search-button-label { display: none; }
  #header .mw-header-top .mw-header-search .mw-search-button-icon { display: block; width: 22px; height: 22px; }
  #header .mw-header-top .mw-header-search form input[type="text"] { padding-right: 64px !important; }
}
@media (max-width: 379px) {
  #header .mw-header-nav #_desktop_language_selector button > span.expand-more { display: none; }
  #header .mw-header-nav .mw-header-utility { gap: 0 8px; }
  #header .mw-header-top .mw-header-main { gap: 8px; }
  #header .mw-header-top .mw-header-main a#_desktop_logo {
    width: 136px !important;
    flex-basis: 136px !important;
    max-width: 136px !important;
  }
}

/* Keyboard-only focus: do not bring back black outlines on mouse clicks. */
#header .mw-header-nav a:focus-visible,
#header .mw-header-nav button:focus-visible,
#header .mw-header-top .mw-header-main a:focus-visible,
#header .mw-header-top .mw-header-search button:focus-visible {
  outline: 2px solid #0085aa !important;
  outline-offset: 3px !important;
}
@media (prefers-reduced-motion: reduce) {
  #header .mw-header-top .mw-header-search input,
  #header .mw-header-top .mw-header-search button,
  #header .mw-header-top .mw-header-shortcut { transition: none; }
}
