/*!
Theme Name: ecommerce
*/

/* Wrap */

.site-header {
  display: flex;
  flex-direction: column;
  padding-top: 0.5em;
  font-weight: 500;
  text-transform: uppercase;
}

.site-header__wrapper,
.site-header__menu {
  display: flex;
  width: 80%;
  min-width: 960px;
  margin: 0 auto;
}

.site-header__wrapper {
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.5em;
}

.site-header__menu {
  justify-content: center;
  font-size: var(--h6);
  color: var(--text_color1);
}

.bg1 .site-header__wrapper,
.bg1 .site-header__menu {
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.bg2 .site-header__wrapper,
.bg2 .site-header__menu {
  border-bottom: 1px solid rgba(28, 28, 28, 0.07);
}

.site-header__mobile-menu {
  display: flex;
  justify-content: space-between;
  width: 80%;
  min-width: 960px;
  margin: 0 auto;
}

/* Navigation */

.site-header__phone {
  display: none;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  width: 180px;
  order: 1;
}

.site-header__contacts,
.site-header__address,
.site-header__social {
	display: flex;
	justify-content: flex-end;
	width: 200px;
	order: 1;
  align-items: center;
  font-size: var(--h8);
}

.site-header__contacts,
.site-header__social {
  flex-direction: column;
}

.site-header__contacts div {
  display: flex;
}

a#phone_number {
  font-size: var(--h5);
}

.site-header__contacts > .site-header__contacts-callback > a {
  color: var(--elem_color1);
  font-size: var(--h8);
}

.site-header__phone > .site-header__phone-callback > a {
  color: var(--elem_color1);
}

.site-header__address {
  gap: 1em;
}

.site-header__address > i {
  font-size: var(--h5);
}

.site-header__social > div {
  display: flex;
  gap: 2em;
}

.site-header__social > div > a > i {
  font-size: var(--h2);
}

.main-navigation {
	display: flex;
	flex-direction: row;
	align-items: center;
	padding: 0px;
  justify-content: center;
  min-width: 600px;
}

.main-navigation ul  {
	display: flex;
	margin: 0;
	padding-left: 0;
}

.main-navigation ul li:hover,
.main-navigation ul li:focus,
.site-header__contacts div:hover,
.site-header__contacts div:focus {
	background: var(--aux-bg-color);
}

.main-navigation ul li:hover a,
.main-navigation ul li:focus a,
.site-header__contacts div:hover a,
.site-header__contacts div:focus a {
	color: var(--hovlink_color1);
}

.main-navigation li {
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	padding: 15px 15px;
}

.main-navigation ul li a,
.site-header__contacts div a {

}

/* Оформление внешнего вида Корзины */

.cart_wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.cart_icon {

}

.cart_qty {
  font-size: var(--h7);
  background: var(--green);
  border-radius: 20px;
  padding: 5px;
}

/* mobile menu */

.mobile-menu {
  display: none;
  align-items: center;
  justify-content: flex-end;
  z-index: 9999999;
  order: 2;
}
.mobile-menu__btn {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 30px;
  top: 1.2em;
  right: 10px;
  cursor: pointer;
  transition: 0.4s;
  z-index: 9999;
}
.mobile-menu__icon {
  display: block;
  position: relative;
  background: var(--elem_color1);
  width: 90%;
  height: 4px;
  transition: 0.4s;
}
.mobile-menu__icon::after, .mobile-menu__icon::before {
  content: "";
  display: block;
  position: absolute;
  background: var(--elem_color1);
  width: 100%;
  height: 4px;
  transition: 0.4s;
}
.mobile-menu__icon::after {
  top: 8px;
}
.mobile-menu__icon::before {
  top: -8px;
}
.mobile-menu__container {
  position: absolute;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  height: 0;
  opacity: 1;
  transition: 0.5s;
  transition-delay: 0.2s;
  overflow: hidden;
  background-color: var(--bg2);
}
.mobile-menu__list {
  transition: 0.5s;
  transition-delay: 0.5s;
  list-style: none;
  padding-left: 0;
}
.mobile-menu__item {
  font-size: 26px;
  padding-bottom: 15px;
}

.mobile-menu__checkbox {
  display: none;
}
.mobile-menu__checkbox:checked ~ .mobile-menu__nav {
  opacity: 1;
  transition-delay: 0s;
}
.mobile-menu__checkbox:checked ~ .mobile-menu__container {
  height: 100vh;
  transition-delay: 0s;
}
.mobile-menu__checkbox:checked ~ .mobile-menu__btn .mobile-menu__icon {
  background: transparent;
}
.mobile-menu__checkbox:checked ~ .mobile-menu__btn .mobile-menu__icon::before, .mobile-menu__checkbox:checked ~ .mobile-menu__btn .mobile-menu__icon::after {
  top: 0;
  background: var(--elem_color1);
}
.mobile-menu__checkbox:checked ~ .mobile-menu__btn .mobile-menu__icon::after {
  transform: rotate(-45deg);
  -webkit-transform: rotate(-45deg);
}
.mobile-menu__checkbox:checked ~ .mobile-menu__btn .mobile-menu__icon::before {
  transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
}

.mobile-menu__container ul li:hover a,
.mobile-menu__container ul li:focus a {
	color: var(--hovlink_color2);
}

.mobile-menu__container ul li a {
	font-size: var(--h3);
	color: var(--elem_color1);
	line-height: 15vh;
	font-weight: 700;
}


@media (max-width: 980px) {

  .site-header {
    /*height: 15vh;*/
  }

  .site-header__social > div > a > i {
    font-size: var(--h1);
  }

  .site-header__address,
  .site-header__contacts,
  .main-navigation {
    display: none;
  }

  .mobile-menu,
  .site-header__phone {
    display: flex;
    width: 180px;
  }

  .site-header__wrapper {
    width: 94%;
    min-width: 580px;
    padding: 0 3em 0 0;
  }

}

@media (max-width: 600px) {

  .site-header {
    /*height: 25vh;*/
  }

  .site-header__social > div > a > i {
    font-size: var(--h1);
  }

  .site-header__address,
  .site-header__contacts,
  .site-header__social > p,
  .main-navigation {
    display: none;
  }

  .mobile-menu,
  .site-header__phone {
    display: flex;
  }

  .mobile-menu__btn {
    top: 1.2em;
  }

  .site-header__wrapper {
    width: 94%;
    min-width: 360px;
    flex-direction: column;
    align-items: center;
    gap: 1em;
    padding: 0 0 1em;
  }

  .branding {
    
  }

  .site-branding{
    order: 0;
  }

  .site-header__phone {
    order: 1;
    gap: 1em;
  }

}

