@charset "UTF-8";

/*********** material ***********/
#headerWrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 112px;
  z-index: 100;
  will-change: transform;
}

:root {
  --primary-bg: #0F8DCB;
  --secondary-bg: #FFF;
  --shadow-color: hsla(0, 0%, 45.9%, 0.1);
  --border-color: #ececec;
  --link-hover-border: #0F8DCB;
  --icon-color: #c7c7c7;

  --menu-bg: #D1D1D1;
  --menu-hover-bg: #0F8DCB;
  --menu-hover-color: #FFF;
  --menu-color: #606060;

  --max-width: 100%;
  --header-height: 40px;

  --logo-base-width: 150px;
  --logo-expanded-width: 230px;
  --logo-hover-bg: rgba(9, 154, 223, 0.5);

  --search-height: 40px;
  --search-line-height: 40px;
  --search-button-bg: #1094d4;
  --search-button-hover-bg: #0e86c2;
  --search-border: 1px solid #F3F3F3;
  --search-color: #0B6C9C;
  --search-border-radius: 16px;
}

#header_container {
  background: var(--primary-bg) url(/img/freshthing_logo_blue.svg) no-repeat;
  background-position: -60px -156px;
  background-size: 673px 305px;
  top: 0;
  width: 100%;
  z-index: 96;
  box-shadow: 0 2px 6px 0 var(--shadow-color);
}

#header_container2 {
  background: var(--secondary-bg);
  width: 100%;
  z-index: 95;
  border-bottom: 1px solid var(--border-color);

  #header_menu2 {
    order: 1;
    width: 100%;
    padding: 0;
    margin: 0;

    > nav {
      width: 100%;
      left: 0;
      padding: 10px;

      > ul {
        z-index: 9999;
        padding: 0 !important;
        margin: 0 !important;
        list-style-type: none;
        display: flex;
        justify-content: center;
        align-content: space-between;
        flex-wrap: wrap;

        > li {
          margin-right: 10px;

          > a, > span {
            text-decoration: none;
            text-align: center;
            padding: 5px 5px;
            font-size: 14px;
            border-bottom: 2px solid var(--secondary-bg);
            background: var(--menu-hover-bg);
            color: var(--menu-hover-color);
            border-radius: 2px;
            margin: 5px;
            position: relative;
            display: block;

            &:hover {
              border-bottom: 2px solid var(--link-hover-border);
            }

            > i {
              /*line-height: 52px;*/
            }

            &:after {
              display: inline-block;
              position: absolute;
              top: 50%;
              right: -5px;
              transform: translateY(-50%) rotate(90deg) scale(0.8, 1.1);
              font-size: 15px;
              font-family: "Mulish", sans-serif;
              line-height: 1;
              font-weight: 500;
              content: ">";
              color: var(--icon-color);
            }
          }

          > span {
            line-height: 38px;
            display: none;
          }

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

    @media (min-width: 992px) {
      /*height: 52px;*/

      > nav {
        left: 0;
        display: block;
        margin-left: 0;
        width: auto;
        border: 0;
        padding: 0;

        > ul {
          /*height: 52px;*/
          display: block;

          > li {
            width: auto;
            flex-basis: auto;
            flex-grow: 1;
            flex-shrink: 1;
            /*height: 52px;*/
            float: left;

            > a, > span {
              /*height: 52px;*/
              text-decoration: none;
              text-align: center;
              background: var(--secondary-bg);
              color: rgb(22, 22, 22);
              border-radius: 0;
              margin: 0;
            }

            > a {
              display: none;
            }

            > span {
              display: block;
            }

            &:hover > .megaMenuContainer {
              display: block;
            }
          }
        }
      }
    }

    @media (min-width: 1200px) {
      #topMenu_btn {
        display: none;
      }

      > nav {
        > ul {
          z-index: 9999;
          padding: 0 !important;
          margin: 0 !important;

          > li {
            > a, > span {
              text-align: center;

              > i {
                /*line-height: 52px;*/
              }
            }
          }
        }
      }
    }
  }
}

#header,
#header2 {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  padding-right: 15px;

  @media screen and (min-width: 1200px) {
    max-width: var(--max-width);
  }

  @media screen and (min-width: 1600px) {
    padding-right: 0;
  }
}

#header_logo {
  order: 2;
  flex-basis: var(--logo-base-width);
  flex-grow: 0;
  flex-shrink: 0;
  width: var(--logo-base-width);
  text-align: center;
  margin: 0;
  padding: 0;
  height: var(--header-height);
  border: 0;
  border-radius: 0;

  svg {
    fill: red;
  }

  &:hover {
    background: var(--logo-hover-bg);
  }

  a {
    display: block;
  }

  img {
    margin: 5px auto;
    width: 100%;
  }

  @media screen and (min-width: 0) {
    flex-basis: 100px;
    height: var(--header-height);

    a {
      height: var(--header-height);
    }

    img {
      margin: 8px auto;
      height: calc(var(--header-height) - 15px);
    }
  }

  @media screen and (min-width: 767px) {
    flex-basis: var(--logo-expanded-width);
  }
}

#header_search {
  display: flex;
  order: 3;
  flex-shrink: 1;
  flex-grow: 1;
  text-align: left;
  height: var(--search-height);
  line-height: var(--search-line-height);
  position: relative;
  padding: 0 0 0 30px;

  #SearchForm {
    height: var(--search-height);
    margin: 0 auto 0 0;
    display: flex;
    align-items: center;
  }

  #SearchButton {
    display: none;
    margin: 0 0 0 8px;
    cursor: pointer;
    height: 32px;
    line-height: 34px;
    text-align: center;
    border-radius: var(--search-border-radius);
    padding: 0 20px;
    background: var(--search-button-bg);

    &:hover {
      background: var(--search-button-hover-bg);
    }
  }

  #SearchInput {
    box-sizing: border-box;
    position: relative;
    display: block;
    width: 100%;
    min-width: 20px;
    margin: 0;
    border: var(--search-border);
    padding: 7px 12px;
    color: var(--search-color);
    border-radius: var(--search-border-radius);
    height: 32px;
    line-height: 32px;
  }

  @media (min-width: 479px) {
    #SearchButton {
      display: block;
    }
  }

  @media (min-width: 1200px) {
    #SearchInput {
      width: 100%;
      min-width: 20px;
      margin: 0;
      border: var(--search-border);
      padding: 7px 12px;
      color: var(--search-color);
    }
  }
}


/*#User {
	background: $dark_blue;
	display: block;

	.name {
		display: block;
		//font-size: 19px;
		//font-weight: bold;
		height: $nav_height;
		line-height: $nav_height;
		padding-right: 10px;
		padding-left: 10px;
		color: #FFF;
		float: left;
	}

	.icon {
		float: left;
		height: $nav_height;

		i {
			line-height: $nav_height;
			font-size: 25px;
			margin-left: 15px;
			color: #FFF;
		}
	}

	a {
		display: block;
		width: 100%;
		height: $nav_height;
	}

}*/


#header_cart {
  flex-grow: 0;
  flex-shrink: 0;
  height: 52px;
  padding: 10px 0 0 0;
  margin: 0 0 0 15px;
  text-align: center;
  user-select: none;
  order: 5;
  /*@media (min-width: $tablet) {  }
  @include gridle_state(moblet) { }*/
}
#header_cart > a {
  background: #F9F9F9;
  cursor: pointer;
  height: 32px;
  border-radius: 16px;
  display: block;
  text-align: left;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  padding: 0;
}
#header_cart > a .amount {
  opacity: 0;
  position: absolute;
  padding-left: 5px;
  line-height: 16px;
  font-size: 7px;
  background: #FFF;
  font-weight: 500;
  border-radius: 50%;
  width: 10px;
  height: 10px;
  margin: -7px 0 0 23px;
  border: 1px solid #F4D200;
  user-select: none;
}
#header_cart > a .amount.show {
  font-size: 12px;
  opacity: 1;
  width: 18px;
  height: 18px;
  margin: -7px 0 0 23px;
}
#header_cart > a .name {
  color: #7B8990;
  line-height: 32px;
  float: left;
  font-weight: 500;
  height: 32px;
  padding-top: 1px;
  padding-right: 5px;
  padding-left: 5px;
  display: none;
}
#header_cart > a .icon {
  text-align: center;
  color: #7B8990;
  width: 32px;
  height: 32px;
  float: left;
  user-select: none;
}
#header_cart > a .icon i {
  color: #7B8990;
  font-size: 18px;
  margin-left: 0;
  line-height: 32px;
}
#header_cart:hover > a {
  background: #ececec;
}
#header_cart:active > a {
  background: #e0e0e0;
}
#header_cart.active > a {
  background: #f9d100;
}
#header_cart.active > a .amount {
  color: #887410;
}
#header_cart.active > a .name {
  color: #887410;
}
#header_cart.active > a .icon {
  color: #887410;
}
#header_cart.active > a .icon i {
  color: #887410;
}
#header_cart.active:hover > a {
  background: #e0bc00;
}
#header_cart.active:active > a {
  background: #c6a600;
}
@media (min-width: 767px) {
  #header_cart > a {
    padding: 0 10px;
  }
  #header_cart > a .name {
    display: block;
  }
  #header_cart > a .amount {
    margin: -3px 0 0 86px;
  }
  #header_cart > a .amount.show {
    margin: -3px 0 0 86px;
  }
}

#header_profile {
  flex-grow: 0;
  flex-shrink: 0;
  height: 52px;
  padding: 10px 0 0 0;
  margin: 0 0 0 15px;
  text-align: center;
  user-select: none;
  order: 4;
}
#header_profile > a {
  background: #F9F9F9;
  cursor: pointer;
  height: 32px;
  border-radius: 16px;
  display: block;
  text-align: left;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  padding: 0;
}
#header_profile > a .amount {
  opacity: 0;
  position: absolute;
  padding-left: 5px;
  line-height: 16px;
  font-size: 7px;
  background: #FFF;
  font-weight: 500;
  border-radius: 50%;
  width: 10px;
  height: 10px;
  margin: -7px 0 0 23px;
  border: 1px solid #F4D200;
  user-select: none;
}
#header_profile > a .amount.show {
  font-size: 12px;
  opacity: 1;
  width: 18px;
  height: 18px;
  margin: -7px 0 0 23px;
}
#header_profile > a .name {
  color: #7B8990;
  line-height: 32px;
  float: left;
  font-weight: 500;
  height: 32px;
  padding-top: 1px;
  padding-right: 5px;
  padding-left: 5px;
  display: none;
}
#header_profile > a .icon {
  text-align: center;
  color: #7B8990;
  width: 32px;
  height: 32px;
  float: left;
  user-select: none;
}
#header_profile > a .icon i {
  color: #7B8990;
  font-size: 18px;
  margin-left: 0;
  line-height: 32px;
}
#header_profile:hover > a {
  background: #ececec;
}
#header_profile:active > a {
  background: #e0e0e0;
}
#header_profile.active > a {
  background: #f9d100;
}
#header_profile.active > a .amount {
  color: #887410;
}
#header_profile.active > a .name {
  color: #887410;
}
#header_profile.active > a .icon {
  color: #887410;
}
#header_profile.active > a .icon i {
  color: #887410;
}
#header_profile.active:hover > a {
  background: #e0bc00;
}
#header_profile.active:active > a {
  background: #c6a600;
}
@media (min-width: 767px) {
  #header_profile > a {
    padding: 0 10px;
  }
  #header_profile > a .name {
    display: block;
  }
  #header_profile > a .amount {
    margin: -3px 0 0 86px;
  }
  #header_profile > a .amount.show {
    margin: -3px 0 0 86px;
  }
}

#topMenu_btn {
  --top: 16px;
  --space: 5px;
  --height: 3px;
  --left: 8px;
  --width: 34px;
  color: #0B6C9C;
  cursor: pointer;
  height: 52px;
  width: 50px;
  display: block;
  text-align: center;
}
#topMenu_btn span {
  display: block;
  position: absolute;
  height: 3px;
  border-radius: 2px;
  width: 34px;
  background: #FFF;
  opacity: 1;
  left: 0;
}
#topMenu_btn span:nth-child(1) {
  top: 16px;
  left: 8px;
}
#topMenu_btn span:nth-child(2) {
  top: 24px;
  left: 8px;
}
#topMenu_btn span:nth-child(3) {
  top: 32px;
  left: 8px;
}
#topMenu_btn.open {
  /*--shorter: $shorter;*/
  /*&:before{
      content: '';
      position: absolute;
      display: block;
      width:36px;
      height:36px;
      border: 2px solid $main_blue;
      border-radius: 50%;
      margin-top:9px;
      margin-left:4px;
  }
  */
}
#topMenu_btn.open span {
  height: 2px;
  width: 28px;
}
#topMenu_btn.open span:nth-child(1) {
  top: 25px;
  transform: rotate(135deg);
}
#topMenu_btn.open span:nth-child(2) {
  opacity: 0;
  left: -260px;
}
#topMenu_btn.open span:nth-child(3) {
  top: 25px;
  transform: rotate(-135deg);
}
