/*--------------------------------------------------------------
7. Header
----------------------------------------------------------------*/
.cs_site_header {
  position: relative;
  z-index: 101;
}
.cs_hero_search_heading {
  display: flex;
  justify-content: space-between;
  margin-bottom: 50px;
  h3 {
    font-size: 20px;
    margin: 0;
  }
}
.cs_header_search_wrap {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: #fff;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  padding-top: 90px;
  transition: all 0.3s ease;
  &.active {
    opacity: 1;
    visibility: visible;
  }
}
.cs_header_search_in {
  margin-left: auto;
  margin-right: auto;
}
.cs_header_search_form {
  display: flex;
  flex: 1;
  position: relative;
  input {
    width: 100%;
    background-color: #fff;
    padding: 7px 50px 7px 0px;
    border: none;
    outline: none;
    border-bottom: 2px solid;
    font-size: 30px;
    line-height: 1.5em;
    font-weight: 500;
    &:focus {
      border-color: $accent;
    }
  }
  button {
    position: absolute;
    right: 0;
    top: 0;
    height: 60px;
    width: 24px;
    background-color: transparent;
    outline: none;
    border: none;
    font-size: 22px;
    padding: 0;
    &:hover {
      color: $accent;
      transform: scale(1.1);
    }
  }
}
.cs_header_search_close {
  border: none;
  outline: none;
  font-size: 24px;
  background-color: transparent;
  &:hover {
    color: red;
  }
}
.cs_header_action {
  display: flex;
  align-items: center;
  gap: 20px;
  .cs_action_icon {
    background-color: transparent;
    padding: 0;
    border: none;
    transition: all 0.3s ease;
    display: flex;
    &:hover {
      color: $accent;
    }
  }
}
.cs_header_number {
  display: flex;
  align-items: center;
  gap: 7px;
  + .cs_header_action {
    padding-left: 20px;
    margin-left: 20px;
    position: relative;
    &::before {
      content: '';
      position: absolute;
      height: 18px;
      width: 1px;
      left: 0;
      top: 3px;
      background-color: $secondary;
    }
  }
}
.cs_text_slide {
  display: flex;
  line-height: 1.5em;
  > span {
    position: relative;
    display: flex;
    &:not(:last-child) {
      padding-right: 20px;
      margin-right: 20px;
      &::before {
        content: '';
        height: 16px;
        width: 1px;
        background-color: currentColor;
        position: absolute;
        right: 0;
        top: 5px;
      }
    }
  }
  .cs_text_slide_btn {
    display: inline-flex;
    position: relative;
    &::before {
      content: '';
      height: 1px;
      width: 100%;
      position: absolute;
      bottom: 2px;
      left: 0;
      background-color: currentColor;
    }
  }
}

.cs_site-branding {
  display: inline-block;
  max-width: 180px;
}
.cs_site_header {
  position: absolute;
  width: 100%;
  left: 0;
  top: 0px;
  transition: all 0.4s ease;
}
.cs_site_header.cs_style_1 {
  .cs_main_header_in,
  .cs_top_header_in {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
    position: relative;
  }
  .cs_main_header_in {
    height: 80px;
  }
  .cs_top_header_in {
    height: 60px;
    overflow: hidden;
    transition: all 0.3s ease;
  }
  .cs_top_header {
    background-color: #fff;
  }

  .cs_main_header_right {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    @media (max-width: 1199px) {
      padding-right: 50px;
    }
  }
  @media (max-width: 1199px) {
    .cs_btn.cs_style_1 {
      display: none;
    }
  }
}

.cs_site_header.cs_style_1 {
  &.cs_sticky_active {
    background-color: $white;
    box-shadow: 0 10px 10px -10px rgba(33, 43, 53, 0.1);
  }

  .cs_action_box {
    display: flex;
    align-items: center;
    .cs_action_value {
      margin-left: 15px;
    }
    > * {
      &:not(:last-child) {
        margin-right: 35px;
      }
    }
  }
  &.cs_color_1 {
    .cs_header_action {
      color: #fff;
    }
    .cs_nav_list {
      > li > a {
        color: $white;
        &:hover {
          color: $accent;
          &::after {
            border-color: $accent;
          }
        }
      }
    }
    &.cs_gescout_show {
      background-color: $primary;
    }
  }
}

@media screen and (max-width: 1199px) {
  .cs_main_header .cs_container-fluid_fluide {
    max-width: 100%;
  }

  .cs_site_header.cs_style_1 {
    .cs_nav {
      display: flex;
    }
  }
}

.cs_nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cs_sticky_header {
  position: fixed !important;
  width: 100%;
  z-index: 999;
}
.cs_gescout_sticky {
  position: fixed !important;
  top: -110px;
  opacity: 0;
  transition: all 0.4s ease;
  background-color: $white;
  &.cs_site_header.cs_style_1 .cs_top_header_in {
    height: 0;
  }
}

.cs_gescout_show {
  top: 0 !important;
  opacity: 1;
  box-shadow: 0px 1px 2px 0px rgba(2, 0, 181, 0.1);
}

.cs_site_branding {
  display: inline-block;
}

@media screen and (min-width: 1200px) {
  .cs_main_header {
    position: relative;
  }

  .cs_main_header_center,
  .cs_top_header_center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }

  .cs_site_header.cs_style_1 {
    .cs_main_header_center {
      display: flex;
      justify-content: center;
      align-items: center;
      height: 100%;
      width: 100%;
      max-width: calc(100% - 300px);
    }
    .cs_main_header_left {
      height: 100%;
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 50px;
    }
  }

  .cs_nav {
    display: flex;
    align-items: center;
    height: 100%;
    line-height: 1.6em;

    .cs_nav_list {
      display: flex !important;
      flex-wrap: wrap;
      height: inherit;

      > li {
        margin-right: 40px;
        height: inherit;

        &:last-child {
          margin-right: 0;
        }

        > a {
          padding: 10px 0;
          display: inline-flex;
          position: relative;
          height: inherit;
          align-items: center;
        }

        > ul {
          left: 0;
          top: calc(100% + 15px);
        }

        &:hover {
          > ul {
            top: 100%;
            opacity: 1;
            visibility: visible;
            transition: all 0.4s ease;
          }
        }
        &.menu-item-has-children {
          > a {
            position: relative;
            &::after {
              content: '';
              display: inline-block;
              height: 6px;
              width: 6px;
              border: 2px solid currentColor;
              transform: rotate(45deg);
              border-left: 0;
              border-top: 0;
              margin-left: 6px;
              position: relative;
              top: -1px;
              border-radius: 0px 0px 2px 0px;
            }
          }
        }
      }

      li:not(.cs_mega_menu) {
        position: relative;
      }

      ul {
        width: 260px;
        background-color: $primary;
        color: $white;
        position: absolute;
        padding: 10px 0;
        z-index: 100;
        opacity: 0;
        visibility: hidden;
        display: block !important;
        border-radius: 0 0 3px 3px;
        transition: all 0.1s ease;

        li {
          &:hover {
            ul {
              top: 0px;
            }

            > ul {
              opacity: 1;
              visibility: visible;
              transition: all 0.4s ease;
            }
          }
        }

        a {
          display: block;
          line-height: inherit;
          padding: 10px 20px;
        }

        ul {
          top: 15px;
          left: 100%;
        }
      }
    }
  }
  .cs_menu_toggle,
  .cs_menu_dropdown_toggle {
    display: none;
  }

  .cs_nav .cs_nav_list {
    .cs_mega_menu {
      position: initial;
    }
    .cs_mega_wrapper {
      width: 1320px !important;
      left: 50%;
      transform: translateX(-50%);
      display: flex !important;
      position: absolute;
      padding: 5px 15px 10px;

      a {
        padding: 7px 10px;
      }

      > li {
        flex: 1;
        padding: 10px 0;

        > a {
          font-size: 18px;
          font-weight: 600;
          pointer-events: none;
          &:hover {
            background-color: transparent;
          }
        }

        ul {
          position: initial;
          border: none;
          padding: 0;
          width: 100%;
          box-shadow: none;
          background-color: transparent;
          a {
            transition: all 0.4s ease;
            &:hover {
              letter-spacing: 1px;
            }
          }
        }
      }
    }

    .cs_mega_menu {
      &:hover {
        .cs_mega_wrapper {
          li ul {
            opacity: 1;
            visibility: visible;
          }
        }
      }
    }
  }

  .cs_nav
    .cs_nav_list
    > li
    ul:not(.cs_mega_wrapper)
    .menu-item-has-children
    > a {
    position: relative;
  }
}
.cs_header_cart {
  position: relative;
}
@media screen and (max-width: 1400px) {
  .cs_nav .cs_nav_list .cs_mega_wrapper {
    width: 1116px !important;
  }

  .cs_site-branding {
    max-width: 190px;
  }
}

@media screen and (max-width: 1199px) {
  .cs_nav .cs_nav_list .cs_mega_wrapper {
    width: 100% !important;
  }
  .cs_menu_dropdown_toggle {
    position: absolute;
    height: 40px;
    width: 100%;
    top: 0;
    left: 0px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 23px 18px;
    cursor: pointer;
    z-index: 3;

    span {
      display: block;
      position: relative;
      height: 10px;
      width: 10px;
      &:before,
      &:after {
        content: '';
        display: block;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        height: 2px;
        width: 10px;
        background-color: currentColor;
        transition: all 0.3s ease;
      }

      &:before {
        transform: translate(-50%, -50%) rotate(90deg);
      }
    }

    &.active {
      span {
        &:before {
          transform: translate(-50%, -50%) rotate(0deg);
        }
      }
    }
  }
  .menu-item-has-children {
    .menu-item-has-children {
      .cs_menu_dropdown_toggle {
        padding: 20px 18px;
      }
    }
  }
  .cs_site_branding {
    position: relative;
    z-index: 101;
  }
  .cs_nav {
    .cs_nav_list {
      position: absolute;
      width: 100%;
      top: 100%;
      left: 0;
      overflow: auto;
      line-height: 1.6em;
      display: none;
      background-color: #fff;
      border-top: 1px solid $border;
      padding: 10px 0;
      ul {
        padding-left: 15px;
        display: none;
      }

      a {
        display: block;
        padding: 12px 15px;
        line-height: 16px;
      }
      > li {
        > a {
          font-size: 18px;
          line-height: 22px;
        }
      }
    }

    .menu-item-has-children {
      position: relative;
    }
  }
  .cs_animo_links > li > a {
    .cs_animo_text {
      text-shadow: 0 32px 0 currentColor;
    }
    &:hover span {
      transform: translateY(-32px);
    }
  }

  /*Mobile Menu Button*/
  .cs_menu_toggle {
    display: inline-block;
    width: 30px;
    height: 27px;
    cursor: pointer;
    position: absolute;
    top: 27px;
    right: 30px;

    span,
    span:before,
    span:after {
      width: 100%;
      height: 2px;
      background-color: currentColor;
      display: block;
    }

    span {
      margin: 0 auto;
      position: relative;
      top: 12px;
      transition-duration: 0s;
      transition-delay: 0.2s;

      &:before {
        content: '';
        position: absolute;
        margin-top: -9px;
        transition-property: margin, transform;
        transition-duration: 0.2s;
        transition-delay: 0.2s, 0s;
      }

      &:after {
        content: '';
        position: absolute;
        margin-top: 9px;
        transition-property: margin, transform;
        transition-duration: 0.2s;
        transition-delay: 0.2s, 0s;
      }
    }
  }
  .cs_site_header.cs_style_1.cs_color_1 {
    .cs_nav_list {
      background-color: $primary;
      color: $white;
    }

    .cs_menu_toggle {
      color: $white;
    }
  }
  .cs_site_header.cs_style_1 .cs_menu_toggle {
    top: 50%;
    right: 0px;
    margin-top: -13px;
  }

  .cs_toggle_active {
    span {
      background-color: rgba(0, 0, 0, 0);
      transition-delay: 0.2s;

      &:before {
        margin-top: 0;
        transform: rotate(45deg);
        transition-delay: 0s, 0.2s;
      }

      &:after {
        margin-top: 0;
        transform: rotate(-45deg);
        transition-delay: 0s, 0.2s;
      }
    }
  }

  .cs_nav .cs_nav_list a {
    position: relative;
  }

  .cs_site_header.cs_style_1 .cs_main_header_in {
    height: 80px;
  }

  .cs_site_header .current-menu-item > a:before {
    display: none;
  }
  .cs_site_header.cs_style_1 .cs_main_header_center {
    .cs_site_branding {
      position: absolute;
      left: 0px;
      top: 50%;
      transform: translateY(-50%);
    }
  }
  .cs_site_header.cs_style_1 {
    top: 0;
    .container {
      max-width: 100%;
      padding-left: 25px;
      padding-right: 25px;
    }
    .cs_nav {
      .cs_nav_list {
        width: calc(100% + 50px);
        margin-left: -25px;
        padding-left: 15px;
        padding-right: 15px;
        @media (max-width: 991px) {
          width: calc(100% + 30px);
          margin-left: -15px;
          padding-left: 0px;
          padding-right: 0px;
        }
      }
    }
  }

  .cs_has_main_nav {
    display: none;
  }
}

@media screen and (max-width: 991px) {
  .cs_site_header.cs_style_1 {
    .container {
      padding-left: 15px;
      padding-right: 15px;
    }
  }
  .cs_site_header .cs_container-fluid_fluide {
    max-width: 100%;
  }
  .cs_site_header.cs_style_1 {
    .cs_action_box > *:not(:last-child) {
      margin-right: 25px;
    }
  }
  .cs_site_header.cs_style_1 .cs_top_header {
    display: none;
  }
}
@media screen and (max-width: 575px) {
  .cs_site-branding {
    max-width: 150px;
  }
  .cs_header_number {
    display: none;
  }
  .cs_header_number + .cs_header_action {
    padding-left: 0;
    margin-left: 0;
    &:before {
      display: none;
    }
  }
}
