@charset "UTF-8";

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

body {
  font-family: "Montserrat", "Arial";
}

.menu-mob {
  display: none;
}

a,
input,
button,
select {
  font-family: "Montserrat", "Arial";
}

a {
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.center {
  padding-left: calc(50% - 600px);
  padding-right: calc(50% - 600px);
}

.header {
  height: 77px; 
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: space-between;
  align-items: center;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.8);
}
.header__search {
  border-radius: 20px;
  border: 1px solid #ffffff;
  background-color: transparent;
  font-size: 16px;
  padding: 10px 32px;
  width: 288px;
  color: #ffffff;
  outline: none;
}
.header__search::-moz-placeholder {
  color: #ffffff;
}
.header__search::placeholder {
  color: #ffffff;
}
.header__nav-list {
  list-style-type: none;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}
.header__nav-link {
  color: #ffffff;
  font-size: 16px;
}

.top {
  background-image: url(../img/top.png);
  background-repeat: no-repeat;
  background-size: cover;
  margin-bottom: 64px;
}

.top__intro {
  padding-top: 63px;
  padding-bottom: 367px;
  color: #ffffff;
  max-width: 792px;
}

.top-catalog {
  background-image: url(../img/catalog_intro.png);
}

.top__intro_catalog {
  padding-top: 127px;
  padding-bottom: 110px; 
}

.top-cart {
  height: 400px;
  background-image: url(../img/cart_intro.png);
}

.top__intro_cart {
  padding-top: 127px;
  padding-bottom: 110px; 
}

.top__title {
  font-weight: 600;
  font-size: 64px;
  margin-bottom: 16px;
  line-height: 70px;
}

.top__subtitle {
  font-size: 24px;
  margin-bottom: 16px;
}

.top__catalog-link {
  font-size: 16px;
  color: #ffffff;
  text-decoration: underline;
}

.top__catalog-link:hover {
  color: #888888;
  text-decoration: none;
  transition: background-color 1s, color 1s, border-color 1s;
}

/*раздел МЕБЕЛЬ ДЛЯ*/
.for__title {
  font-weight: 600;
  font-size: 48px;
}
.for__content {
  margin-top: 32px;
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(12, 1fr);
}
.for__item {
  height: 415px;
  grid-column: span 4;
  font-style: normal;
  font-weight: 600;
  font-size: 34px;
  line-height: 41px;
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
}
.for__item_big {
  grid-column: span 6;
}
.for__item_1 {
  background-image: url(../img/for-1.jpg);
}
.for__item_2 {
  background-image: url(../img/for-2.jpg);
}
.for__item_3 {
  background-image: url(../img/for-3.jpg);
}
.for__item_4 {
  background-image: url(../img/for-4.jpg);
}
.for__item_5 {
  background-image: url(../img/for-5.jpg);
}

.product-box {
  margin-top: 64px;
}

.product-box_catalog {
  margin-top: 36px;
}

.product-content {
  display: flex;
  flex-wrap: wrap;
  gap: 48px 32px;
}

.product {
  width: 378px;
  position: relative;
}
.product__buttons {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 21px;
  opacity: 0;
  transition: visibility 0.3s, opacity 0.5s;
  z-index: 10;
}
.product:hover .product__buttons {
  visibility: visible;
  opacity: 1;
}

.product-box__title {
  font-weight: 600;
  font-size: 48px;
  color: #000000;
  margin-bottom: 32px;
}

.product__image {
  margin-bottom: 10px;
  display: block;
  width: 100%;
}

.product__title, .cart__product-title {
  font-weight: 500;
  font-size: 24px;
  color: #000000;
  margin-bottom: 8px;
}

.product__description, .cart__product-description {
  font-size: 14px;
  line-height: 100%;
  color: #888888;
  margin-bottom: 12px;
}

.cart-nomargin {
  margin: 0;
}

.product__box-price {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}

.product__price {
  font-weight: 500;
  font-size: 24px;
  color: #050505;
}

.product__old-price {
  text-decoration-line: line-through;
  color: #888888;
}


.link-box {
  margin: 32px 0 64px;
}

.link-box__catalog-link {
  font-size: 16px;
  color: #000000;
  text-decoration: underline;
}

.link-box__catalog-link:hover {
  color: #888888;
  text-decoration: none;
  transition: background-color 1s, color 1s, border-color 1s;
}

.footer {
  background-color: #f7f6f6;
  padding-top: 32px;
  padding-bottom: 55px;
  display: grid;
  grid-template-columns: 4fr 5fr auto;
  align-items: flex-start;
  width: 100%;
}
.footer__info {
  display: grid;
  grid-template-columns: 2fr 3fr;
}
.footer__section-title {
  font-size: 24px;
  color: #000000;
  font-weight: 500;
}
.footer__item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer__link {
  font-size: 14px;
  color: #888888;
}
.footer__icons {
  display: flex;
  gap: 20px;
}
.footer__link-icons:hover {
  filter: brightness(0) saturate(100%);
  transition: filter 1s;
}
.footer__form {
  width: 260px;
}
.footer__form-text {
  font-size: 12px;
  color: #000000;
  margin-bottom: 16px;
}
.footer__form-email {
  background: #ffffff;
  border: 1px solid #c4c4c4;
  border-radius: 16px;
  font-size: 12px;
  color: #c4c4c4;
  padding: 12px 17px;
  width: 100%;
  margin-bottom: 8px;
  height: 40px;
  outline: none;
}
.footer__form-email::-moz-placeholder {
  color: #c4c4c4;
}
.footer__form-email::placeholder {
  color: #c4c4c4;
}
.footer__form-btn {
  background: rgba(222, 215, 215, 0.4117647059);
  border: none;
  border-radius: 16px;
  padding: 12px 85px;
  width: 100%;
  height: 40px;
  font-size: 12px;
  color: #000000;
  cursor: pointer;
}
.footer__form-btn:hover {
  background: #000000;
  color: #ffffff;
  transition: background-color 1s, color 1s;
}


.controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.path {
  font-size: 16px;
}
.path__link {
  color: #000;
}

.current-page {
  text-decoration: underline !important; 
}

.control {
  display: flex;
  gap: 10px;
}
.control__sorting {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background-color: #ffffff;
  border: 1px solid #c4c4c4;
  padding: 10px 54px 10px 23px;
  font-size: 16px;
  min-height: 40px;
  text-align: start;
  max-width: 227px;
  width: 100%;
  border-radius: 20px;
  background-image: url(../img/strelka.png);
  background-position: right 22px center;
  background-size: 20px 11px;
  background-repeat: no-repeat;
  outline: none;
  cursor: pointer;
}
.control__sorting:hover {
  background-color: #888888;
  color: #ffffff;
  text-decoration: none;
  transition: background-color 1s, color 1s, border-color 1s;
}

.container {
  display: flex;
  justify-content: flex-end;
}

.filter-container {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.filtering-form {
  display: none; /* Скрываем форму по умолчанию */
  top: calc(100% + 14px);
  right: 0;
  flex-direction: column;
  align-items: start;
  gap: 36px;
  position: absolute;
  padding: 40px 48px;
  background-color: #fff;
  box-shadow: 0px 4px 67px -12px rgba(0, 0, 0, 0.32);
  z-index: 10;
}
.filtering-form__content-wrapper {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 32px 65px;
  max-height: 548px;
  min-width: 540px;
}
.filtering-form__fieldset {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0;
  border: none;
}
.filtering-form__fieldset--type {
  padding-right: 40px;
}
.filtering-form__legend {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 16px;
}
.filtering-form__button {
  border: 1px solid #000;
  border-radius: 20px;
  min-height: 40px;
  font: inherit;
  padding: 10px 23px;
  cursor: pointer;
  background-color: #fff;
  align-self: flex-end;
  max-width: 190px;
  width: 100%;
}
.filtering-form__button:hover {
  background-color: #888888;
  color: #ffffff;
  text-decoration: none;
  transition: background-color 1s, color 1s, border-color 1s;
}

/* Когда чекбокс включен, показываем форму */
#toggle-filter:checked ~ .filtering-form {
  display: flex;
}

.filter-button {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background-color: #ffffff;
  border: 1px solid #c4c4c4;
  padding: 10px 54px 10px 23px;
  font-size: 16px;
  font-weight: 500;
  min-height: 40px;
  text-align: start;
  max-width: 182px;
  width: 100%;
  border-radius: 20px;
  background-image: url(../img/strelka.png);
  background-position: right 22px center;
  background-size: 20px 11px;
  background-repeat: no-repeat;
  outline: none;
  cursor: pointer;
}
.filter-button:hover {
  background-color: #888888;
  color: #ffffff;
  text-decoration: none;
  transition: background-color 1s, color 1s, border-color 1s;
}

.radio {
  display: flex;
  align-items: center;
  gap: 10px;
}
.radio__input {
  display: none;
}
.radio__label {
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
  padding-left: 30px;
  font-size: 14px;
}
.radio__label::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 1px solid #888888;
  border-radius: 50%;
  position: absolute;
  left: 0;
  background-color: #fff;
}
.radio__input:checked + .radio__label::before {
  border-color: #000;
  background-image: url("data:image/svg+xml,%3Csvg width='8' height='8' viewBox='0 0 8 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 3L4.5 6.5L7.5 0.5' stroke='black'/%3E%3C/svg%3E%0A");
  background-repeat: no-repeat;
  background-position: center;
}

.range {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.range__input {
  width: 190px;
  height: 10px;
  overflow: hidden;
  outline: none;
}
.range__input, .range__input::-webkit-slider-runnable-track, .range__input::-webkit-slider-thumb {
  -webkit-appearance: none;
  background: none;
}
.range__input::-webkit-slider-runnable-track {
  width: 200px;
  height: 1px;
  background: #000;
}
.range__input:nth-child(2)::-webkit-slider-runnable-track {
  background: none;
}
.range__input::-webkit-slider-thumb {
  position: relative;
  height: 8px;
  width: 8px;
  margin-top: -4px;
  background: #000;
  border: 1px solid #000;
  border-radius: 25px;
  cursor: pointer;
  z-index: 1;
}
.range__input::-webkit-slider-thumb:active {
  cursor: grabbing;
}
.range__input:nth-child(1)::-webkit-slider-thumb {
  z-index: 2;
}
.range__slider {
  font-family: sans-serif;
  font-size: 14px;
  position: relative;
  height: 20px;
  width: 210px;
  display: inline-block;
  margin-top: -5px;
}
.range__slider input {
  position: absolute;
}
.range__label {
  font-size: 14px;
}

.color-options {
  display: flex;
  flex-wrap: wrap;
  max-width: 190px;
  gap: 14px;
}
.color-options__checkbox {
  width: 15px;
  height: 15px;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
}
.checkbox__input {
  display: none;
}
.checkbox__label {
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
  padding-left: 30px;
  font-size: 14px;
}
.checkbox__label::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 1px solid #888888;
  position: absolute;
  left: 0;
  background-color: #fff;
}
.checkbox__input:checked + .checkbox__label::before {
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='8' viewBox='0 0 10 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 3L4.5 6.5L9 1' stroke='black'/%3E%3C/svg%3E%0A");
  background-repeat: no-repeat;
  background-position: center;
  border-color: #000;
}
.checkbox__label--white::before {
  background-color: #fff;
  border-color: #888888;
}
.checkbox__label--black::before {
  background-color: #000;
  border-color: #000;
}
.checkbox__label--gray::before {
  background-color: #737373;
  border-color: #737373;
}
.checkbox__label--red::before {
  background-color: #ff0000;
  border-color: #ff0000;
}
.checkbox__label--orange::before {
  background-color: #ff7a41;
  border-color: #ff7a41;
}
.checkbox__label--yellow::before {
  background-color: #f2cb01;
  border-color: #f2cb01;
}
.checkbox__label--green::before {
  background-color: #00bf2a;
  border-color: #00bf2a;
}
.checkbox__label--teal::before {
  background-color: #1ccc97;
  border-color: #1ccc97;
}
.checkbox__label--light-blue::before {
  background-color: #009fe3;
  border-color: #009fe3;
}
.checkbox__label--blue::before {
  background-color: #000af8;
  border-color: #000af8;
}
.checkbox__label--purple::before {
  background-color: #6710d6;
  border-color: #6710d6;
}
.checkbox__label--violet::before {
  background-color: #9d0db5;
  border-color: #9d0db5;
}
.checkbox__label--lavender::before {
  background-color: #d89aff;
  border-color: #d89aff;
}
.checkbox__label--pink::before {
  background-color: #ff65a6;
  border-color: #ff65a6;
}
.checkbox__input:checked + .checkbox__label--black::before, .checkbox__input:checked + .checkbox__label--blue::before, .checkbox__input:checked + .checkbox__label--purple::before {
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='8' viewBox='0 0 10 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 3L4.5 6.5L9 1' stroke='white'/%3E%3C/svg%3E%0A");
}


.cart {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 32px;
}
.cart__content {
  grid-column: span 8;
}
.cart__name-box {
  display: flex;
  justify-content: space-between;
  padding-bottom: 14px;
  max-width: 756px;
}
.cart__item {
  border-top: 0.5px solid #cacdd8;
  padding-top: 25px;
  padding-bottom: 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 786px;
}
.cart__item_2 {
  padding-top: 32px;
  margin-bottom: 18px;
}
.cart__left {
  display: flex;
  gap: 32px;
}
.cart__info {
  max-width: 276px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cart__price {
  font-weight: 400;
  font-size: 16px;
  color: #050505;
}
.cart__link-box {
  display: flex;
  gap: 30px;
}
.cart__link {
  font-size: 14px;
  color: #000000;
  text-decoration: underline;
}
.cart__link:hover {
  color: #888888;
  text-decoration: none;
  transition: background-color 1s, color 1s, border-color 1s;
}
.cart__container {
  position: relative;
  width: 71px;
  height: 51px;
  background: #f7f6f6;
  border-radius: 6px;
  outline: none;
}
.cart__number {
  position: absolute;
  left: 0;
  top: 11px;
  width: 47px;
  height: 27px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  border: none;
  outline: none;
  background: transparent;
}
.cart__form {
  background: #f7f6f6;
  border-radius: 20px;
  height: 556px;
  width: 379px;
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cart__form-title {
  font-weight: 700;
  font-size: 24px;
  margin-top: 42px;
  height: 36px;
  line-height: 100%;
}
.cart__custom {
  margin-top: 35px;
  margin-bottom: 64px;
  font-size: 14px;
  font-weight: 600;
  padding-left: 27px;
  padding-right: 64px;
  outline: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 44px;
  width: 100%;
}
.cart__custom-forms {
  outline: none;
  border: none;
  border-bottom: 1px solid #cacdd8;
  background: transparent;
  width: 100%;
}
.cart__custom-forms::-moz-placeholder {
  color: #000000;
  font-size: 14px;
  line-height: 100%;
}
.cart__custom-forms::placeholder {
  color: #000000;
  font-size: 14px;
  line-height: 100%;
}
.cart__total {
  margin-bottom: 18px;
  font-size: 24px;
  height: 29px;
  line-height: 100%;
}
.cart__totalPrice {
  font-weight: 500;
}
.cart__btn-form {
  background: transparent;
  border: 1px solid #040404;
  border-radius: 20px;
  font-size: 16px;
  line-height: 20px;
  color: #000000;
  height: 40px;
  width: 319px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  outline: none;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.37); 
  animation: pressEffect 1s ease-in-out 4;
}
.cart__btn-form:hover {
  background: #000000;
  color: #ffffff;
  text-decoration: none;
  transition: background-color 1s, color 1s, border-color 1s;
}
.cart__btn-form:active, .cart__btn-form:focus {
  transform: translateY(4px);
  box-shadow: 0 0px 4px rgba(0, 0, 0, 0.2);
}
@keyframes pressEffect {
  0%, 100% {
    transform: translateY(0);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.37);
  }
  50% {
    transform: translateY(4px);
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
  }
}
.cart__button-box {
  display: flex;
  gap: 7px;
  text-align: center;
}
.cart__btn {
  background: transparent;
  border: 1px solid #040404;
  border-radius: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 17px;
  font-size: 14px;
  color: #000000;
  width: 200px;
  height: 37px;
  cursor: pointer;
  outline: none;
}
.cart__btn:hover {
  background: #000000;
  color: #ffffff;
  text-decoration: none;
  transition: background-color 1s, color 1s, border-color 1s;
}

@media (max-width: 1230px) {
  .center {
    padding-left: calc(50% - 393px);
    padding-right: calc(50% - 393px);
  }
  .for__content {
    gap: 30px;
  }
  .for__item {
    height: 268px;
  }
  .product-content {
    gap: 30px;
  }
  .footer {
    grid-template-columns: 5fr auto;
  }
  .footer__logo-block {
    display: none;
  }
  /* Настройка положения формы фильтрации */
  .filtering-form {
    right: auto;
    left: -120%;
  }
  .cart {
    grid-template-columns: 1fr;
  }
  .cart__content {
    grid-column: span 8;
  }
  .cart__form {
    grid-column: span 4;
    margin-top: 32px;
  }
}
@media (max-width: 820px) {
  .center {
    padding-left: 16px;
    padding-right: 16px;
  }
  .menu-mob {
    display: flex;
    gap: 32px;
    align-items: center;
  }
  .header {
    height: 57px;
    border-bottom: none;
    padding-top: 32px;
  }
  .header__logo {
    width: 99px;
  }
  .header__form {
    display: none;
  }
  .header__nav-list {
    display: none;
  }
  .header__nav-link {
    display: none;
  }
  .top__title {
    font-size: 48px;
    line-height: 100%;
    text-align: center;
  }
  .top__subtitle {
    font-size: 16px;
    margin-bottom: 28px;
    text-align: center;
  }
  .top__catalog-link {
    font-size: 14px;
    display: block;
    text-align: center;
  }
  .for__title {
    font-size: 24px;
  }
  .for__content {
    gap: 16px;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
  }
  .for__item {
    height: 375px;
    grid-column: 1/-1;
    font-size: 28px;
    line-height: 100%;
  }
  .for__item_big {
    height: 244px;
  }
  .controls {
    gap: 22px;
    flex-direction: column;
  }
  .path {
    font-size: 14px;
  }
  .control {
    align-items: flex-start;
    flex-direction: column-reverse;
  }
  .control__sorting {
    font-size: 14px;
    line-height: 100%;
    padding: 11px 55px 13px 19px;
    max-width: 203px;
    width: 100%;
  }
  .filter-button {
    font-size: 14px;
    line-height: 100%;
    padding: 11px 53px 13px 19px;
    max-width: 164px;
    width: 100%;
  }
  .filtering-form {
    right: auto;
    left: 0;
  }
  .filtering-form__content-wrapper {
    max-height: 830px;
    min-width: 191px;
  }
  .cart {
    gap: 0;
  }
  .cart__content {
    margin-top: 28px;
    grid-column: span 4;
  }
  .cart__name-box {
    display: none;
  }
  .cart__item {
    padding-top: 18px;
    padding-bottom: 30px;
  }
  .cart__item_2 {
    margin-bottom: 8px;
  }
  .cart__info {
    gap: 8px;
    max-width: 253px;
  }
  .cart__price {
    font-size: 14px;
  }
  .cart__form {
    height: 556px;
    max-width: 343px;
    margin-top: 48px;
    grid-column: span 4;
  }
  .cart__img {
    display: none;
  }
  .cart__btn-form {
    width: 283px;
  }
  .cart__btn {
    font-size: 12px;
    line-height: 15px;
    max-width: 166px;
  }
  .product {
    width: 100%;
  }
  .product-box__title {
    font-size: 24px;
  }
  .product-content {
    gap: 32px;
  }
  .product__image {
    margin-bottom: 9px;
  }
  .product__title, .cart__product-title {
    font-size: 18px;
    margin-bottom: 4px;
  }
  .cart-nomargin {
    margin: 0;
  }
  .product__description, .cart__product-description {
    font-size: 14px;
    margin-bottom: 8px;
  }
  .product__price {
    font-size: 18px;
  }
  .link-box {
    margin: 32px 0;
  }
  .footer {
    grid-template-columns: 1fr;
    gap: 69px;
  }
  .footer__logo-block {
    display: none;
  }
  .footer__form {
    margin: 0 auto;
  }
}/*# sourceMappingURL=style.css.map */