.header-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: fit-content;
  z-index: 1000;
}

a {
  text-decoration: none;
  color: inherit;
}

.header-upper-wrapper {
  padding: 0.7rem 4.5rem;
  background-color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-upper-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-upper-left-logo {
  height: 4rem;
}

.header-upper-left-title {
  color: #3c7893;
  font-size: 26px;
}

.header-upper-right {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.icon-text-wrapper {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #4e89a4;
  font-weight: 700;
  font-size: 17px;
}

.header-top-colors {
  display: flex;
  align-items: center;
}

.header-top-colors div {
  width: 25%;
  height: 15px;
}

.icon-text-wrapper img {
  height: 1.9rem;
}

.header-language-switcher {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-language-switcher img {
  height: 1.7rem;
}

.header-language-switcher select {
  height: fit-content;
  border: none;
  color: #4e89a4;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
}

.header-search {
  display: flex;
  align-items: center;
  height: 2.4rem;
  cursor: pointer;
}

#header-search-input {
  height: 100%;
  border: 1.5px solid #da027e;
  margin-right: -0.9rem;
  border-radius: 0.5rem;
  font-weight: 600;
  padding: 0.5rem 0.7rem;
  display: none;
  transform: translateX(30%);
  transition: transform 0.5s;
}

.header-search-input-active {
  display: block !important;
  transform: translateX(0%) !important;
}

#header-search-input:active {
  outline: 2px solid #7bc97a;
}

.header-search-icon {
  background-color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.7rem;
  border-radius: 0.5rem;
  height: 100%;
  z-index: 10;
}

.header-search-icon img {
  height: 100%;
}

.header-search-input-active {
  width: auto;
}

.header-hamburger {
  background-color: #f4f4f4;
  border-radius: 0.5rem;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 0.5rem 0.5rem;
  height: 2.5rem;
  cursor: pointer;
}

.header-hamburger img {
  height: 100%;
}

/* HEADER MENU PART */

.header-main-menu-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: white;
  z-index: 300;
  gap: 2rem;
  height: fit-content;
  padding: 0rem 2rem;
}

.header-logo-wrapper {
  width: 10rem;
}

.header-logo-wrapper .header-logo-desktop {
  width: 10rem;
}

.header-logo-wrapper .header-logo-mobile {
  display: none;
}

.header-lower-wrapper {
  color: black;
  padding: 1rem 0rem;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.header-buttons-wrapper {
  display: flex;
  align-items: center;
  gap:1.3rem; 
}

.header-menu-item-turizem {
  border-right: unset;
  background-color: #4caf50;
  border-radius: 10px;
  background-image: url("https://dev9.2digital.si/trebnje/media/img/icon-lev.webp");
  background-repeat: no-repeat;
  background-size: 14%;
  background-position: left bottom;
  margin-left: 2%;
  min-width: 180px;
}

.header-menu-item-turizem:hover {
  background-color: #3f9a43;
  transition: all 300ms;
}

.header-menu-item {
  position: relative;
  width: fit-content;
  padding: 0.5rem 1rem;
  border-radius: 10px;
}

.header-menu-item:hover {
  background-color: #da027e;
  color: white;
}

.header-menu-item > a {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
}

.header-menu-item h2 {
  font-size: 17px;
  text-transform: uppercase;
}

.header-menu-item img {
  height: 1rem;

}

.header-submenu-wrapper {
  position: absolute;
  background-color: #fff;
  left: 0;
  top: 100%;
  z-index: -1;
  color: black;
  border-bottom-left-radius: 1rem;
  border-bottom-right-radius: 1rem;
  padding: 1rem 0;
  display: none;
  max-height: 70vh;
  box-shadow: 3px 3px 15px 0px #0000002b;
  width: fit-content;
}

.header-submenu-item {
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: black;
  border-bottom: 1.5px solid #f4f4f4;
  font-size: 12px;
  font-weight: 400;
  transition: 0.2s ease-in-out;
  line-height: 20px;
}

.header-submenu-item img {
  filter: hue-rotate(-185deg) brightness(54%);
  transition: 0.2s ease-in-out;
}

.header-submenu-item:hover img {
  filter: unset;
  transition: 0.2s ease-in-out;
}

.header-submenu-item:hover {
  background-color: #da027e;
}

.header-submenu-wrapper a:hover {
  color: white;
}

.header-menu-overlay {
  position: fixed;
  width: 100%;
  height: 100vh;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.9);
  -webkit-backdrop-filter: blur(0.3rem);
  backdrop-filter: blur(0.3rem);
  z-index: 15;
  transform: translatex(100%);
  transition: transform 0.3s linear;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.header-menu-overlay .header-menu-item h2 {
  color: white;
  font-size: 18px;
  text-align: center;
}

#closeMenuOverlay {
  position: absolute;
  top: 1.5rem;
  right: 4rem;
  border: none;
  background-color: #da027e;
  color: white;
  border-radius: 0.5rem;
  height: 2.5rem;
  padding: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
}

#header-phone-mobile {
  color: white;
}

#header-email-mobile {
  color: white;
}

.header-search-under-wrapper {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  background-color: #f4f4f4;
  padding: 0;
  overflow: hidden;
  height: 3.6rem;
  max-height: 0;
  transition: 0.3s linear;
}

.header-search-under-wrapper .header-search-icon {
  height: 100%;
}

.header-search-under-active {
  max-height: 3.6rem;
  padding: 0.5rem 1rem;
}

#headerSearch {
  height: 100%;
  border-radius: 0.5rem;
  flex-basis: 100%;
  padding: 0.3rem 0.6rem;
  border: 1px solid black;
}

#headerSearch:focus {
  border: 2px solid #da027e;
}

#headerSearchClose {
  border: none;
  background-color: #da027e;
  color: #7bc97a;
  border-radius: 0.5rem;
  height: 100%;
  padding: 0.7rem 0.7rem;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 100%;
  font-weight: 700;
  cursor: pointer;
}

#headerSearchClose > img {
  height: 100%;
}

.header-cart-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
}

.header-cart-wrapper > .cart-icon-wrapper {
  width: 1.4rem;
  position: relative;
}

.cart-icon-wrapper img {
  width: 100%;
}

.cart-quantity-circle {
  position: absolute;
  top:-12px;
  right:-12px;
  background-color: #da027e;
  color:white;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size:10px;
}

.header-cart-seperator {
  width: 3px;
  height: 2rem;
  background-color: #dadada;
}

#cartTotalQuantity {
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #ebebeb;
}

.header-cart-total {
  font-weight: bold;
  color: #da027e;
}

.header-cart-container {
  float: right;
  background-color: white;
  padding: 0rem;
  border-radius: 0 0 0.5rem 0.5rem;
  transition: max-height 0.3s linear, padding 0.3s linear;
  overflow: hidden;
  max-height: 0;
  box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}

.header-cart-container-show {
  max-height: fit-content;
  padding: 1rem;
}

.header-cart-button {
  background-color: #da027e;
  color: white;
  display: block;
  width: 100%;
  padding: 0.5rem 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 0.6rem;
  border-radius: 0.5rem;
  cursor: pointer;
}

#header_basket {
  padding: 10px;
  max-width: 300px;
}

#header_basket_caption {
  border-bottom: 1px solid #ebebeb;
  padding-bottom: 5px;
  margin-bottom: 10px;
}

#header_basket_items {
  list-style: none outside none;
  padding: 0;
  margin: 0;
}

#header_basket_items > li {
  padding: 10px 0;
  margin-bottom: 10px;
  border-bottom: 1px solid #ebebeb;
}

.header_basket_item_image {
  width: 60px;
  float: left;
}

.header_basket_item.with_image .header_basket_item_content {
  margin-left: 80px;
}

.header-user-icon {
  background-color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.7rem;
  border-radius: 0.5rem;
  height: 2.4rem;
  z-index: 10;
}

.header-user-icon img {
  height: 100%;
}

.header-user-container {
  float: right;
  background-color: white;
  padding: 0rem;
  border-radius: 0 0 0.5rem 0.5rem;
  transition: max-height 0.3s linear, padding 0.3s linear;
  overflow: hidden;
  max-height: 0;
  box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}


.header-user-container-show {
  max-height: fit-content;
  padding: 1rem;
}

#header-user-form input {
  width: 100%;
  margin-bottom:0.5rem;
  padding:0.3rem 0.6rem;
}



@media screen and (max-width: 1700px) {
  .header-menu-item h2 {
    font-size: 15px;
  }

  .header-submenu-item {
    font-size: 11px;
  }
}

@media screen and (max-width: 1400px) {
  #header-contact-desktop {
    display: none;
  }

  #header-location-desktop {
    display: none;
  }

  #header-phone-desktop {
    display: none;
  }
}

@media screen and (max-width: 1024px) {
  .header-lower-wrapper {
  }

  #header-phone-desktop {
    display: none;
  }

  #header-email-desktop {
    display: none;
  }

  #header-location-desktop {
    display: none;
  }

  #header-contact-desktop {
    display: none;
  }

  #header-language-switcher {
    display: none;
  }

  .header-upper-wrapper {
    padding: 1rem 1.5rem;
  }

  .header-upper-left-logo {
    height: 2.5rem;
  }

  .header-upper-left-title {
    font-size: 18px;
  }

  #closeMenuOverlay {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    border: none;
    border-radius: 0.5rem;
    height: 2.5rem;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
  }

  .header-logo-wrapper .header-logo-desktop {
    display: none;
  }

  .header-logo-wrapper {
    width: 2rem;
  }

  .header-logo-wrapper .header-logo-mobile {
    display: block;
    width: 2rem;
  }

  .header-logo-wrapper {
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
  }

  .header-cart-seperator {
    display: none;
  }

  .header-cart-total {
    display: none;
  }
}
