/* =====================================================
   INTEGRA – HEADER dla Understrap Child / Bootstrap 5
   Wszystkie style są ograniczone do #integra-header.
===================================================== */

#integra-header {
  position: relative;
  z-index: 1000;
  width: 100%;
  background: #fff;
  color: #292f33;
  font-family: inherit;
}

#integra-header *,
#integra-header *::before,
#integra-header *::after {
  box-sizing: border-box;
}

#integra-header a {
  text-decoration: none;
}

#integra-header .integra-container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: 15px;
  padding-left: 15px;
}

@media (min-width: 576px) {
  #integra-header .integra-container {
    max-width: 540px;
  }
}
@media (min-width: 768px) {
  #integra-header .integra-container {
    max-width: 720px;
  }
}
@media (min-width: 992px) {
  #integra-header .integra-container {
    max-width: 960px;
  }
}
@media (min-width: 1200px) {
  #integra-header .integra-container {
    max-width: 1140px;
  }
}
@media (min-width: 1400px) {
  #integra-header .integra-container {
    max-width: 1326px;
  }
}

/* TOPBAR */
#integra-header .integra-topbar {
  min-height: 42px;
  background: #f2f4f6;
  border-bottom: 1px solid #e4e8eb;
  font-size: 13px;
}

#integra-header .integra-topbar-inner,
#integra-header .integra-topbar-links {
  display: flex;
  align-items: center;
}

#integra-header .integra-topbar-inner {
  min-height: 42px;
  justify-content: space-between;
  gap: 20px;
}

#integra-header .integra-topbar-company {
  color: #0e649d;
  font-weight: 700;
  letter-spacing: 0.35px;
}

#integra-header .integra-topbar-links {
  justify-content: flex-end;
  gap: 22px;
}

#integra-header .integra-topbar-links > a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #39434a;
  transition: color 0.2s ease;
}

#integra-header .integra-topbar-links > a:hover {
  color: #0e649d;
}

#integra-header .integra-topbar-links .integra-social {
  font-size: 1rem;
  margin-left: 0px;
}

/* MAIN HEADER */
#integra-header .integra-main-header {
  background: #fff;
  border-bottom: 1px solid #e8ecef;
}

@media (min-width: 992px) {
  #integra-header .integra-main-inner {
    height: 120px;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding-top: 0;
    padding-bottom: 0;
  }
}

#integra-header .integra-brand {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

#integra-header .integra-logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  line-height: 0;
}

#integra-header .integra-logo img {
  display: block;
  width: auto;
  max-width: 100px;
  max-height: 100px;
  height: auto;
  object-fit: contain;
}

#integra-header .integra-brand-info {
  display: flex;
  flex-direction: column;
  line-height: 1.45;
  white-space: nowrap;
}

#integra-header .integra-brand-info strong {
  color: #12699f;
  font-size: 21px;
  font-weight: 700;
}

#integra-header .integra-brand-info span {
  color: #424a50;
  font-size: 16px;
  font-weight: 700;
}

#integra-header .integra-brand-info small {
  color: #64717a;
  font-size: 13px;
}

#integra-header .integra-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex: 1 1 auto;
  min-width: 0;
}

/* SEARCH */
#integra-header .integra-search {
  display: flex;
  width: min(100%, 430px);
  height: 46px;
  margin: 0;
  border: 1px solid #cbd3d9;
  background: #fff;
}

#integra-header .integra-search input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 0;
  outline: 0;
  box-shadow: none;
  color: #252b30;
  background: transparent;
  font-size: 14px;
}

#integra-header .integra-search input:focus {
  outline: 0;
  box-shadow: inset 0 0 0 1px #0e649d;
}

#integra-header .integra-search button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 48px;
  padding: 0 15px;
  border: 0;
  border-radius: 0;
  color: #fff;
  background: #0e649d;
  font-size: 14px;
  transition: background-color 0.2s ease;
}

#integra-header .integra-search button:hover {
  background: #084d79;
}

/* CART PREVIEW */
#integra-header .integra-cart-preview {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 14px;
  color: #0e649d;
  background: #e8f5fc;
  border: 1px solid #d5eaf6;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

#integra-header .integra-cart-preview:hover {
  color: #084d79;
  background: #d8effb;
}

#integra-header .integra-cart-preview > i {
  font-size: 19px;
}

#integra-header .integra-cart-count {
  font-weight: 400;
}

/* MOBILE MENU BUTTON */
#integra-header .integra-menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 10px;
  border: 1px solid #0e649d;
  border-radius: 0;
  background: #fff;
}

#integra-header .integra-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px auto;
  background: #0e649d;
}

/* NAVIGATION */
#integra-header .integra-navigation {
  display: block;
  width: 100%;
  padding: 0;
  background: #0e649d;
}

#integra-header .integra-navigation > .integra-container {
  display: flex;
  align-items: center;
}

#integra-header .integra-navigation .navbar-collapse {
  width: 100%;
}

#integra-header .integra-menu {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

#integra-header .integra-menu > li {
  position: relative;
  margin: 0;
  padding: 0;
}

#integra-header .integra-menu > li > a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 17px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  transition: background-color 0.2s ease;
}

#integra-header .integra-menu > li > a:hover,
#integra-header .integra-menu > li.current-menu-item > a,
#integra-header .integra-menu > li.current-menu-ancestor > a {
  color: #fff;
  background: #084d79;
}

#integra-header .integra-menu .dropdown-menu {
  min-width: 230px;
  margin: 0;
  padding: 7px 0;
  border: 0;
  border-radius: 0;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
}

#integra-header .integra-menu .dropdown-menu a {
  display: block;
  padding: 9px 16px;
  color: #333;
  font-size: 13px;
  text-transform: none;
}

#integra-header .integra-menu .dropdown-menu a:hover,
#integra-header .integra-menu .dropdown-menu .current-menu-item > a {
  color: #0e649d;
  background: #f1f6f9;
}

/* TABLET */
@media (max-width: 1199.98px) {
  #integra-header .integra-main-inner {
    gap: 18px;
  }
  #integra-header .integra-brand {
    gap: 14px;
  }
  #integra-header .integra-logo img {
    max-width: 100px;
    max-height: 100px;
  }
  #integra-header .integra-brand-info strong {
    font-size: 19px;
  }
  #integra-header .integra-brand-info span {
    font-size: 14px;
  }
  #integra-header .integra-brand-info small {
    font-size: 11px;
  }
  #integra-header .integra-menu > li > a {
    padding-right: 12px;
    padding-left: 12px;
    font-size: 12px;
  }
}

/* MOBILE / COLLAPSED NAV */
@media (max-width: 991.98px) {
  #integra-header .integra-main-inner {
    min-height: 0;
    flex-wrap: wrap;
    gap: 14px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  #integra-header .integra-brand-info {
    white-space: normal;
  }
  #integra-header .integra-brand-info small {
    max-width: 240px;
  }

  #integra-header .integra-header-actions {
    flex: 1 1 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  #integra-header .integra-search {
    flex: 1 1 280px;
    width: auto;
  }

  #integra-header .integra-menu-toggle {
    display: block;
  }

  #integra-header .integra-navigation .navbar-collapse {
    padding: 0 0 8px;
  }

  #integra-header .integra-menu {
    flex-direction: column;
  }

  #integra-header .integra-menu > li > a {
    min-height: 44px;
    padding: 10px 5px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 13px;
  }

  #integra-header .integra-menu .dropdown-menu {
    position: static;
    float: none;
    width: 100%;
    background: rgba(0, 0, 0, 0.08);
    box-shadow: none;
  }

  #integra-header .integra-menu .dropdown-menu a {
    padding-left: 24px;
    color: #fff;
  }

  #integra-header .integra-menu .dropdown-menu a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
  }
}

@media (max-width: 575.98px) {
  #integra-header .integra-topbar-inner {
    justify-content: center;
    min-height: 38px;
  }

  #integra-header .integra-topbar-links {
    gap: 14px;
  }

  #integra-header .integra-topbar-links > a:first-child {
    display: none;
  }

  #integra-header .integra-topbar-links > a span {
    font-size: 12px;
  }

  #integra-header .integra-topbar-links .integra-social {
    margin-left: 0;
    font-size: 15px;
  }

  #integra-header .integra-brand {
    gap: 10px;
  }

  #integra-header .integra-logo img {
    max-width: 76px;
    max-height: 76px;
  }

  #integra-header .integra-brand-info strong {
    font-size: 16px;
  }
  #integra-header .integra-brand-info span {
    font-size: 12px;
  }
  #integra-header .integra-brand-info small {
    font-size: 10px;
    line-height: 1.25;
  }

  #integra-header .integra-header-actions {
    gap: 8px;
  }
  #integra-header .integra-search {
    flex-basis: 100%;
    order: 2;
  }
  #integra-header .integra-cart-preview {
    order: 1;
    min-height: 42px;
    padding: 0 10px;
  }
  #integra-header .integra-menu-toggle {
    order: 1;
    width: 42px;
    height: 42px;
  }
  #integra-header .integra-search button {
    min-width: 44px;
    padding: 0 12px;
  }
  #integra-header .integra-search button span {
    display: none;
  }
}

/* =====================================================
   INTEGRA HEADER – FINAL LOOK
   Kolorystyka i proporcje zgodne z projektem referencyjnym
===================================================== */

/* TOPBAR */
#integra-header .integra-topbar {
  min-height: 46px;
  background: #0e649d;
  border: 0;
  color: #fff;
}

#integra-header .integra-topbar-inner {
  min-height: 46px;
}

#integra-header .integra-topbar-company,
#integra-header .integra-topbar-links > a,
#integra-header .integra-topbar-links > a:hover,
#integra-header .integra-topbar-links > a:focus {
  color: #fff !important;
}

#integra-header .integra-topbar-links {
  gap: 16px;
}

#integra-header .integra-topbar-links > a {
  font-size: 13px;
  font-weight: 500;
}

#integra-header .integra-topbar-links > a:hover {
  opacity: 0.82;
}

/* MAIN HEADER */
#integra-header .integra-main-header {
  background: #f1f4fa;
  border-bottom: 0;
}

#integra-header .integra-main-inner {
  min-height: 120px;
  padding-top: 0;
  padding-bottom: 0;
}

#integra-header .integra-logo img {
  max-width: 100px;
  max-height: 100px;
}

#integra-header .integra-brand {
  gap: 12px;
}

#integra-header .integra-brand-info strong {
  color: #0e649d;
  font-size: 20px;
}

#integra-header .integra-brand-info span {
  color: #292f33;
  font-size: 15px;
}

#integra-header .integra-brand-info small {
  color: #64717a;
  font-size: 13px;
}

/* SEARCH */
#integra-header .integra-search {
  width: min(100%, 350px);
  height: 45px;
  border: 1px solid #292f33;
}

#integra-header .integra-search input {
  height: 43px;
}

#integra-header .integra-search button {
  background: #0e649d;
}

#integra-header .integra-search button:hover {
  background: #084d79;
}

/* CART */
#integra-header .integra-cart-preview {
  min-height: 45px;
  color: #0e649d !important;
  background: #fff;
  border: 0;
  font-weight: 500;
}

#integra-header .integra-cart-preview:hover {
  color: #084d79 !important;
  background: #e7edf5;
}

/* NAVIGATION */
#integra-header .integra-navigation {
  min-height: 60px;
  background: #0e649d;
  border: 0;
}

#integra-header .integra-navigation > .integra-container {
  min-height: 60px;
}

#integra-header .integra-navigation .navbar-collapse {
  min-height: 60px;
}

#integra-header .integra-menu {
  min-height: 60px;
  justify-content: space-between;
  align-items: stretch;
}

#integra-header .integra-menu > li {
  display: flex;
  align-items: stretch;
}

#integra-header .integra-menu > li > a,
#integra-header .integra-menu > li > a:visited {
  display: flex !important;
  align-items: center;
  min-height: 60px;
  padding: 0 15px !important;
  margin: 0 !important;
  float: none !important;
  border: 0 !important;
  color: #fff !important;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

#integra-header .integra-menu > li > a:hover,
#integra-header .integra-menu > li.current-menu-item > a,
#integra-header .integra-menu > li.current-menu-ancestor > a {
  color: #fff !important;
  background: #084d79;
}

#integra-header .integra-menu .dropdown-menu {
  background: #fff;
}

#integra-header .integra-menu .dropdown-menu a {
  color: #292f33 !important;
}

#integra-header .integra-menu .dropdown-menu a:hover {
  color: #0e649d !important;
  background: #f1f4fa;
}

/* TABLET / MOBILE */
@media (max-width: 1199.98px) {
  #integra-header .integra-menu > li > a {
    padding-right: 10px !important;
    padding-left: 10px !important;
    font-size: 12px;
  }
}

@media (max-width: 991.98px) {
  #integra-header .integra-navigation,
  #integra-header .integra-navigation > .integra-container,
  #integra-header .integra-navigation .navbar-collapse,
  #integra-header .integra-menu {
    min-height: 0;
  }

  #integra-header .integra-menu {
    justify-content: flex-start;
  }

  #integra-header .integra-menu > li > a,
  #integra-header .integra-menu > li > a:visited {
    min-height: 44px;
    padding: 10px 5px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
    white-space: normal;
  }

  #integra-header .integra-menu .dropdown-menu a {
    color: #fff !important;
  }
}

@media (max-width: 575.98px) {
  #integra-header .integra-topbar,
  #integra-header .integra-topbar-inner {
    min-height: 40px;
  }

  #integra-header .integra-main-inner {
    min-height: 0;
  }
}

/* BUTTON – ZAPYTAJ O OFERTĘ */
@media (min-width: 767.98px) {
  #integra-header .integra-offer-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 45px;
    padding: 0 18px;
    background: #0e649d;
    border: 1px solid #0e649d;
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: background-color 0.2s ease;
  }

  #integra-header .integra-offer-button:hover {
    background: #084d79;
    border-color: #084d79;
    color: #fff !important;
  }

  #integra-header .integra-offer-button i {
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  #integra-header .integra-offer-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 45px;
    padding: 0 15px;
    background: #0e649d;
    border: 1px solid #0e649d;
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: background-color 0.2s ease;
  }

  #integra-header .integra-offer-button:hover {
    background: #084d79;
    border-color: #084d79;
    color: #fff !important;
  }

  #integra-header .integra-offer-button i {
    font-size: 17px;
  }
}

/* TOPBAR – precyzyjne odstępy */
#integra-header .integra-topbar-links {
  gap: 20px;
}

#integra-header .integra-topbar-links > a {
  gap: 5px;
}

/* Telefon – ikona bliżej numeru */
#integra-header .integra-topbar-links > a[href^="tel:"] {
  gap: 5px;
}

/* Ikony social – bliżej siebie */
#integra-header .integra-topbar-links > a.integra-social {
  margin: 0 -5px;
  gap: 0;
}

/* TOPBAR – font Moje konto i telefon */
#integra-header .integra-topbar-links > a:first-child,
#integra-header .integra-topbar-links > a[href^="tel:"] {
  font-size: 0.9rem;
}

/* MAIN HEADER – dokładna wysokość jak w sklepie */
#integra-header .integra-main-header {
  padding: 0 !important;
}

/* LOGO – dokładna szerokość 100 px */
#integra-header .integra-logo {
  width: 100px !important;
  min-width: 100px !important;
  max-width: 100px !important;
  flex: 0 0 100px !important;
  margin: 0 !important;
  padding: 0 !important;
}

#integra-header .integra-logo img {
  display: block;
  width: 100px !important;
  min-width: 100px !important;
  max-width: 100px !important;
  height: auto !important;
  margin: 0 !important;
}

/* Odstęp logo – tekst */
#integra-header .integra-brand {
  gap: 10px !important;
}
