/* Middle panel */
.middle-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-content: center;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
  transition: 0.3s;
}

.nav-toggle-mobile {
  text-decoration: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  font-size: 0;
  z-index: 14;
  min-height: 40px;
  min-width: 28px;
  gap: 5px;
}

.nav-toggle-mobile span {
  background: white;
  width: 20px;
  height: 2px;
  transition: transform 0.2s ease;
}

.header-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.header-logo img {
  /* height: auto;
  max-width: 100%;
  height: 77px; */
}

.header-logo span {
  font-family: "Playfair Display", serif;
  transition: 0.3s;
}

.search-input {
  position: relative;
  display: flex;
  gap: 10px;
  align-items: center;
}

.header-search.active {
  background: #020617;
}
.header-search.active .search-input {
  padding-top: 20px;
  padding-bottom: 20px;
}

.search-input input.search {
  border: none;
  outline: none;
  width: 100%;
  max-width: 100%;
  background: transparent;
  border: none !important;
  outline: none !important;
  padding: 10px 14px 10px 50px;
  border-radius: 20px;
  font-size: 16px;
  box-shadow: 1px 1.5px 4px 0px #0000001a inset;
  background: #c9cfd7;
  padding: 13px 20px;
}

input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
  display: none;
}

.search-input {
  cursor: pointer;
}

.search-input img {
  position: absolute;
  top: 50%;
  transform: translate(0, -50%);
  left: 10px;
  width: 20px;
  height: 20px;
}

.header-shop-links {
  display: flex;
  gap: 24px;
  justify-content: flex-end;
  align-items: center;
}

.header-shop-links > * {
  position: relative;
}

.header-shop-links .header-icon {
  height: 24px;
  width: 24px;
  transition: 0.2s;
  cursor: pointer;
}

.header-shop-links .header-icon:hover {
  opacity: 0.8;
}

.header-shop-links img {
  height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
  margin-right: 6px !important;
}

.header-shop-links .cart-count {
  position: absolute;
  top: -2px;
  right: -8px;
  min-width: 20px;
  height: 16px;
  background: #2dd4bf;
  border-radius: 8px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 500;
}

@media (min-width: 600px) {
}

@media (max-width: 600px) {
  .middle-panel {
    gap: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .middle-panel .header-search {
    width: 100%;
    order: 4;
  }
  .middle-panel .search-input input.search {
    width: 100%;
  }
  /* .header-logo {
    width: 40%;
  }
  .nav-toggle-mobile,
  .header-shop-links {
    width: 15%;
  } */
}

/* Menu panel */

.main-menu {
  position: relative;
}

.main-menu ul.menu {
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 24px;
}

.main-menu ul.menu > li > a {
  font-weight: 400;
  transition: 0.3s;
  margin: 12px 0;
  display: block;
  font-size: 16px;
}

.main-menu .current_page_item > a {
  color: #f87171;
  position: relative;
}

.main-menu .current_page_item > a::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 27px;
  height: 7px;
  background-image: url(/wp-content/themes/nt-theme/assets/svg/menu-line.svg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: left top;
  z-index: -1;
}

.main-menu .dropdown-menu-wrapper {
  display: flex;
  position: absolute;
  top: 50px;
  left: 0;
  width: 100%;
  box-shadow: 0 5px 10px #0000000f;
  padding: 20px;
  gap: 20px;
  justify-content: center;
  align-items: flex-start;
  transform: translateY(-100%);
  transition-duration: 0.3s;
  visibility: hidden;
  z-index: -10;
  opacity: 0;
}

.main-menu .menu-item-has-children:hover .dropdown-menu-wrapper {
  transform: translateY(0);
  visibility: visible;
  opacity: 1;
}

.main-menu .menu-item-has-children .dropdown-menu-wrapper ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  max-width: 100%;
  width: 960px;
}

.main-menu .menu-item-has-children .dropdown-menu-wrapper ul li {
  width: 30%;
}

.main-menu .sub-menu a {
  padding: 10px;
  transition: 0.3s;
  width: 100%;
  display: block;
  font-size: 1rem;
  font-weight: 400;
}

@media (min-width: 780px) {
  header {
    top: 0;
    z-index: 10;
    position: relative;
  }
  header.scroll {
    position: sticky;
  }

  .header-logo img {
    transition: 0.3s;
    width: 77px;
    height: 77px;
  }

  header.scroll .middle-panel {
    padding-top: 5px;
    padding-bottom: 5px;
  }

  header.scroll .header-logo img {
    max-height: 20px;
  }
  header.scroll .header-logo span {
    opacity: 0;
    /* height: 0; */
  }

  header.scroll .logo {
    transform: translateY(60%);
  }
}

@media (max-width: 780px) {
  .header-logo img {
    width: 60px;
    height: 60px;
  }
}

/* Mini Cart */
.modal.mini-cart.visible {
  z-index: 999999;
}

.modal.mini-cart .modal-content {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 400px;
  max-width: 100%;
  padding: 20px;
  box-shadow: -5px 0 10px #0000000f;
  overflow-y: auto;
}

.modal.mini-cart .modal-headline {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
  font-size: 1.15rem;
  padding-bottom: 20px;
  border-bottom: 1px solid #f7f7f7;
}

/* Mobile Menu */

.mobile-menu {
  width: 100%;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background-color: #020617;
  color: white;
}

.mobile-menu_headline {
  width: 100%;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid #0f172a;
  font-weight: 500;
  font-size: 14px;
  line-height: 100%;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.mobile-menu_slider {
  display: flex;
  position: relative;
  overflow-x: hidden;
}

.mobile-menu_slider > div {
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  transition: 0.3s;
}

.mobile-menu_slider ul {
  list-style: none;
  padding: 0 20px;
  margin: 0;
  font-size: 1rem;
}

.mobile-menu_slider ul a {
  padding: 15px 30px 15px 0;
  display: block;
  width: 100%;
  border-bottom: 1px solid #0f172a;
}

.mobile-menu_window[data-step="1"] > div:first-child > ul > li > a {
  font-weight: 500;
}

.mobile-menu_slider .menu-item-has-children > a {
  position: relative;
}

.mobile-menu_slider .menu-item-has-children > a:after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 12px;
  height: 12px;
  border-style: solid;
  border-width: 1px 1px 0 0;
  transform: translate(-50%, -50%) rotate(45deg);
  border-color: #0000003d;
}

.mobile-menu_slider .sub-menu {
  display: none !important;
}

.mobile-menu .back {
  transition: 0.3s;
}

.mobile-menu:not(.next-step) .back {
  visibility: hidden;
  margin-left: -100%;
}

.mobile-menu .name {
  position: absolute;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  -moz-transform: translateY(-50%);
  top: 50%;
  max-width: 80%;
  transition: 0.3s;
  left: 20px;
  margin: 0 !important;
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  height: auto;
  align-content: center;
  color: white;
  font-weight: 600;
}

.mobile-menu.next-step .name {
  left: 50%;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  -moz-transform: translate(-50%, -50%);
}

.mobile-menu.next-step .mobile-menu_window:first-child {
  margin-left: -100%;
}

.mobile-menu .link-to-page {
  padding: 10px;
  background: #f7f7f7;
  display: block;
  margin: 10px 20px;
  text-align: center;
  position: sticky;
  bottom: 10px;
}

.mobile-shop-links {
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mobile-shop-links a {
  padding: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  border: 1px solid #2dd4bf;
  border-radius: 3px;
  flex: 1;
  text-align: center;
  min-width: 100px;
}

.mobile-shop-links .cart-item {
  position: relative;
  color: white;
}

.mobile-shop-links .cart-item .cart-count {
  position: absolute;
  top: -3px;
  right: -30px;
  min-width: 20px;
  height: 17px;
  background: #2dd4bf;
  border-radius: 8px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 500;
}

.mobile-contacts {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.socials {
  display: flex;
  gap: 20px;
}

.socials img {
  width: 24px;
  height: 24px;
}

.socials a {
  display: block;
}

/* Search */

.header-search {
  transition: 0.3s;
  transition-property: padding;
}

.header-search .close-search {
  cursor: pointer;
  color: white;
}

/* .header-search:not(.active) .close-search,
.header-search:not(.active) .search-body,
.search__all-btn[disabled] {
  display: none;
} */

.header-search:not(.active),
.search__all-btn[disabled] {
  display: none;
}

.header-search.active input {
  width: 100%;
}

.search-result__wrapper {
  display: flex;
  gap: 10px;
  width: 100%;
  background: #47556999;
  border-radius: 20px;
  padding: 20px;
  position: relative;
}

.search-result {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 20px;
  align-items: center;
  color: white;
}

.search-result .search__results-item img {
  width: 120px !important;
  height: 70px !important;
  max-width: 120px !important;
  max-height: 70px !important;
}

.search-result .search__results-item .product-price {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 500;
}

.search-result .search__results-item .product-price del {
  color: #475569;
  order: 2;
}

.search-result .search__results-item .product-price ins {
  text-decoration: none !important;
  color: white;
}

.search-result__body {
  width: calc(100% - 130px);
  display: flex;
  justify-content: space-between;
}

.search__all-btn {
  width: 100%;
}

.header-search.active .search-body {
  -ms-overflow-style: none;
  overflow: -moz-scrollbars-none;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}

.search-bottom {
  margin-bottom: 20px;
}

.header-search .search-result__wrapper .product-price {
  font-size: 24px;
  line-height: 120%;
}

.header-search .search-result__wrapper .product-brands {
  font-size: 1.3em;
  line-height: 130%;
  font-weight: 700;
  margin-bottom: 10px;
}

@media (min-width: 760px) {
  .header-search.active {
    position: fixed;
    padding-right: 20px;
    padding-left: 20px;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 999999;
  }

  .header-search.active > div {
    max-width: 800px;
    margin: auto;
  }

  .header-search .search-body::-webkit-scrollbar {
    width: 0;
  }

  .header-search.active .close-area {
    position: fixed;
    width: 100%;
    max-width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    cursor: pointer;
    z-index: -1;
    background: #020617;
  }
}

@media (max-width: 760px) {
  .header-search.active {
    position: fixed;
    padding: 20px;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 999999;
  }
  .header-search .close-area {
    display: none !important;
  }
  .search-result__picture {
    width: 90px;
    height: 90px;
  }

  .search-result__body {
    width: calc(100% - 100px);
  }
  .search-result__body {
    flex-direction: column;
    gap: 10px;
  }
}

/* Red menu */
.menu-red a {
  color: #fd2840;
}

/* Preloader */
.cart_preloader svg,
.cart_preloader-page svg,
.checkout_preloader-page svg {
  width: 3.25em;
  transform-origin: center;
  animation: rotate4 2s linear infinite;
}

.cart_preloader circle,
.cart_preloader-page circle,
.checkout_preloader-page circle {
  fill: none;
  stroke: white;
  stroke-width: 2;
  stroke-dasharray: 1, 200;
  stroke-dashoffset: 0;
  stroke-linecap: round;
  animation: dash4 1.5s ease-in-out infinite;
}

@keyframes rotate4 {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes dash4 {
  0% {
    stroke-dasharray: 1, 200;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 90, 200;
    stroke-dashoffset: -35px;
  }
  100% {
    stroke-dashoffset: -125px;
  }
}
