* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Roboto", sans-serif;
  color: #2b2b2b;
}

.wrapper {
  max-width: 1366px;
  flex: 1;
  margin: 0 auto;
  display: inherit;
  align-items: inherit;
  justify-content: inherit;
}

.content-wrapper {
  display: flex;
  justify-content: center;
  margin: 0 auto;
  max-width: 1140px;
}

.header {
  display: flex;
  align-items: center;
  padding: 20px 10px;
}

.header__nav {
  margin-left: auto;
}

.logo {
  display: inline-block;
  width: 158px;
  height: 34px;
  background: url("../img/logo.png") no-repeat 0 0;
  background-size: cover;
  text-indent: -9999px;
}

.menu-label {
  display: none;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  cursor: pointer;
}

.menu-input {
  display: none;
}

.nav-list {
  display: flex;
  list-style-type: none;
}

.nav-list__item {
  margin-left: 60px;
}

.nav-list__item:first-child {
  margin-left: 0;
}

.link {
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0.5px;
  text-decoration: none;
  color: #2b2b2b;
  text-transform: uppercase;
}

.link:hover {
  color: black;
  transition: 0.5s ease;
  text-decoration: underline;
}

.header__aside {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.search {
  position: relative;
  display: flex;
  align-items: center;
}

.search__icon {
  position: absolute;
  left: 14px;
  display: inline-block;
  width: 16px;
  height: 16px;
  background: url("../img/search.png") 0 0 no-repeat;
  background-size: cover;
  cursor: pointer;
}

.search__icon:hover {
  transform: scale(1.1);
  transition: 0.5s ease; 
}

.search__input {
  width: 198px;
  height: 34px;
  border-radius: 17px;
  padding-left: 39px;
  border: solid 1px rgba(151, 151, 151, 0.29);
}

.header__search {
  margin-right: 14px;
}

.header__aside-link {
  margin-right: 11px;
}

.basket-button {
  display: inline-block;
  width: 20px;
  height: 19px;
  background: url("../img/basket.png") 0 0 no-repeat;
  background-size: cover;
  text-indent: -9999px;
}

.basket-button:hover {
  transform: scale(1.1);
  transition: 0.5s ease;
}

.product {
  display: flex;
  justify-content: space-between;
  margin-top: 60px;
  margin-bottom: 85px;
  padding: 0 15px;
  width: 100%;
}

.preview {
  position: relative;
  display: flex;
}

.preview__list {
  position: absolute;
  transform: translateX(-100%);
  list-style: none;
}

.preview__item {
  display: flex;
  width: 75px;
  height: 75px;
}

.preview__item {
  margin-bottom: 20px;
}

.preview__item:last-child {
  margin-bottom: 0;
}

.preview__item_active {
  border: solid 2px rgba(43, 43, 43, 0.5);
}

.preview__item-link {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.preview__item-image {
  width: 71px;
  max-height: 71px;
}

.preview__product-wrapper {
  padding: 15px;
}

.preview__product {
  max-width: 100%;
  max-height: 419px;
}

.product__info {
}

.product__info-header {
}

.label {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 12px;
  border-radius: 12px;
  padding: 4px 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid rgba(43, 43, 43, 0.5);
}

.title {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 30px;
  text-transform: uppercase;
}

.product__title {
  margin-top: 6px;
}

.product__subheading {
  font-size: 16px;
  letter-spacing: 0.9px;
  margin-top: 20px;
}

.product__metadata {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
}

.price {
  font-size: 18px;
}

.price__value {
  margin-left: 15px;
}

.price__value:first-child {
  margin-left: 0;
}

.price__value_previous {
  color: #d0021b;
}

.rating {
  display: flex;
  align-items: center;
}

.rating__list {
  display: flex;
  list-style: none;
  font-size: 15px;
}

.rating__item {
  margin-left: 2.5px;
}

.rating__item:first-child {
  margin-left: 0;
}

.rating__item_selected {
  color: #ffbf1c;
}

.rating__amount {
  font-size: 13px;
  margin-left: 5.5px;
}

.product__form {
  display: flex;
  flex-direction: column;
  margin-top: 13px;
}

.dropdown {
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  padding: 12px 15px;
  cursor: pointer;
}

.dropdown:hover{
  background-color: rgb(249, 249, 249);
  transition: 0.5s ease;
}

.dropdown_big {
  width: 353px;
  height: 46px;
}

.product__form-dropdown {
  margin-top: 25px;
}

.dropdown__item {
  padding: 12px 15px 15px;
}

.button {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 16px;
  border-radius: 4px;
  font-weight: 500;
  text-transform: uppercase;
  border: 0;
  letter-spacing: 4.3px;
  cursor: pointer;
}

.button_primary {
  background-color: #20c781;
  color: #ffffff;
}

.button_primary:hover {
  background-color: #11b671;
  transition: 0.5s ease;
}

.button_secondary {
  background-color: white;
  border: solid 2px #2b2b2b;
}

.button_secondary:hover {
  background-color: rgb(249, 249, 249);
  transition: 0.5s ease;
}

.button_big {
  width: 353px;
  height: 58px;
}

.product__form-button {
  margin-top: 20px;
}

.product__form-text {
  font-size: 12px;
  line-height: 1.33;
  margin-top: 10px;
  text-align: center;
}

.product__form-button-text {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.product__form-button-text:before {
  content: "";
  position: absolute;
  width: 15px;
  height: 14px;
  background: url("../img/basket-white.png") no-repeat 0 0;
  background-size: cover;
  left: 0;
  transform: translateX(calc(-100% - 13px));
  margin-right: 13px;
}

.radio-buttons {
  display: flex;
}

.radio-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 28px;
}

.radio-buttons__button {
  margin-right: 13px;
}

.radio-buttons__button:last-child {
  margin-right: 0;
}

.radio-button__input {
  position: relative;
}

.radio-input {
  height: 19px;
  width: 19px;
  -webkit-appearance: none;
  display: inline-block;
  border-radius: 50%;
  cursor: pointer;
  outline: none;
}

.radio-input_white {
  background-color: #ffffff;
  border: solid 2px #e7e7e7;
}

.radio-input_black {
  background-color: #000000;
  border: solid 2px #000000;
}

.radio-input_green {
  background-color: #7ca251;
  border: solid 2px #7ca251;
}

.radio-button__input:checked::before {
  position: absolute;
  left: -6px;
  top: -6px;
  border: solid 1px #2b2b2b;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  content: "";
}

.radio-button__input:checked + span {
  display: initial;
}

.radio-text {
  font-size: 12px;
  line-height: 1.33;
  display: none;
}

.radio-button__text {
  margin-top: 8px;
}

.products-wrapper {
  display: flex;
  justify-content: center;
  background-color: #f8f8f8;
  padding-top: 73px;
  padding-bottom: 130px;
}

.products {
  display: flex;
  flex-direction: column;
  max-width: 1140px;
}

.products__title {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 24px;
  font-weight: 500;
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.products__list {
  display: flex;
  list-style: none;
}

.products__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-right: 30px;
  background-color: #ffffff;
  padding-top: 20px;
  padding-bottom: 40px;
}

.products__item:last-child {
  margin-right: 0;
}

.products__item-link {
  text-decoration: none;
  color: #2b2b2b;
  text-align: center;
  margin-bottom: 10px;
}

.products__item-image {
  object-fit: scale-down;
  width: 262px;
  height: 172px;
  margin-bottom: 14px;
}

.products__item-title {
  width: 204px;
  text-align: center;
  margin: 0 auto;
  font-size: 16px;
  font-weight: normal;
  line-height: 1.38;
  letter-spacing: 0.3px;
}

.products__item-button {
  width: 207px;
  height: 40px;
  margin-top: auto;
}
