@font-face {
  font-family: "Inter";
  src: local("Inter Extra-Bold"),
    url("../fonts/inter-extrabold.woff2") format("woff2");
  font-weight: 900;
  font-display: swap;
  font-style: normal;
}

.contacts-info .email {
  margin-right: 50px;
}

.header .menu-main {
  gap: 40px;
}

.header .menu-main li {
  margin: 0;
}

.cart_mobile {
  display: none;
}

.cart {
  width: 30px;
  height: 30px;
  position: relative;
  cursor: pointer;
  background-color: transparent;
  padding: 0;
  border: none;
}

.cart::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: 0.3s all linear;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

.active_cart .cart::after {
  width: 145%;
  height: 145%;
}

.cart_number {
  display: block;
  position: absolute;
  left: 0;
  bottom: 0;
  background-color: #fff;
  outline: 1px solid #d6aa6d;
  border-radius: 50%;
  width: 15px;
  height: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black, #100f0e);
  font-family: Inter;
  font-size: 10px;
  font-weight: 400;
}

.cart svg {
  width: 100%;
  height: 100%;
}

.cart_wrap {
  position: absolute;
  top: calc(100% - 30px);
  left: 59%;
  width: 100%;
  max-width: 440px;
  height: 430px;
  background-color: #fff;
  scale: 0;
  transition: 0.3s all linear;
  z-index: 99;
}

.cart_empty_content,
.cart_items_content {
  width: 100%;
  height: 100%;
  padding: 36px 8px 175px 36px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  position: relative;
  transition: 0.3s filter linear;
}

.cart_empty_title {
  color: #000;
  text-align: center;
  font-family: Inter;
  font-size: 18px;
  font-weight: 500;
  line-height: 150%;
}

.cart_empty_content img {
  width: 100%;
  max-width: 188px;
  aspect-ratio: 188 / 133;
  object-fit: contain;
  object-position: center;
}

.header.active_cart .cart_wrap {
  scale: 1;
}

.cart_result {
  position: absolute;
  border-top: 1px solid #d9d9d9;
  bottom: 0;
  left: 0;
  padding: 13px 35px 30px 35px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: center;
  width: 100%;
  max-height: 145px;
}

.cart_result_title {
  color: #100f0e;
  font-family: Inter;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 125%;
}

.cart_result_output {
  color: #100f0e;
  font-family: Inter;
  font-size: calc(22px + 3 * ((100vw - 375px) / (1920 - 375)));
  font-weight: 500;
}

.cart_btn_back {
  background-color: transparent;
  border: none;
  position: absolute;
  top: 10px;
  left: 36px;
  cursor: pointer;
  padding: 0;
}

.cart_btn_back:disabled {
  opacity: 0.5;
  cursor: no-drop;
}

.cart_items_content {
  padding: 36px 8px 175px 24px;
  position: relative;
}

.cart_items_content::after {
  content: "";
  position: absolute;
  right: 0;
  top: 36px;
  background-color: #fff;
  width: 20px;
  height: 36px;
  z-index: 1;
}

.cart_items {
  width: 100%;
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: auto;
  padding-right: 16px;
}

.cart_items::-webkit-scrollbar {
  width: 3px;
}

.cart_items::-webkit-scrollbar-track {
  background: transparent;
}

.cart_items::-webkit-scrollbar-thumb {
  background: #eef0f6;
  border-radius: 5px;
}

.cart_items li {
  margin: 0;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.cart_items li > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cart_items li::before {
  display: none;
}

.cart_item_title,
.cart_item_price {
  color: #100f0e;
  font-family: Inter;
  font-size: calc(14px + 2 * ((100vw - 375px) / (1920 - 375)));
  font-weight: 500;
  line-height: 128%;
}

.cart_items div > .cart_item_title {
  cursor: pointer;
}

.cart_items .first div > .cart_item_title {
  cursor: auto;
}

.cart_item_title {
  width: 100%;
  max-width: 253px;
}

.cart_item_price {
  margin-right: auto;
}

.first .cart_item_title,
.first .cart_item_price {
  font-size: calc(10px + 2 * ((100vw - 375px) / (1920 - 375)));
  font-weight: 900;
  text-transform: uppercase;
  line-height: 139%;
}

.cart_items .first {
  padding-left: 13px;
  position: sticky;
  top: 0;
  left: 0;
  background: #fff;
  z-index: 1;
}

.cart_item_remove {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid #000;
  position: relative;
  background-color: transparent;
  cursor: pointer;
}

.cart_item_remove:after,
.cart_item_remove::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 1px;
  background-color: #000;
}

.cart_item_remove::before {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.cart_item_remove:after {
  transform: translate(-50%, -50%) rotate(45deg);
}

.cart_items .cart_item_sub {
  position: relative;
  padding-left: 13px;
}

.cart_item_sub::after {
  content: "";
  position: absolute;
  left: 0px;
  top: 6px;
  width: 0;
  height: 0;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-bottom: 5px solid #a4a8b8;
  transition: 0.3s all linear;
}

.cart_item_sub.active::after {
  scale: -1;
}

.cart_item_sub_items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 13px 0 0 10px;
  border-left: 1px solid #a4a8b8;
  transition: 0.3s max-height linear, 0.3s padding-top linear;
}

.cart_item_sub.active .cart_item_sub_items {
  max-height: 0;
  overflow: hidden;
  padding: 0;
}

.cart_item_sub_items li {
  flex-direction: row;
  gap: 20px;
}

.cart_item_sub_items .cart_item_title {
  max-width: 242px;
}

.cart_item_sub_items .cart_item_title,
.cart_item_sub_items .cart_item_price {
  font-weight: 400;
  line-height: 115%;
  font-size: 14px;
}

.cart_item_sub_items .cart_item_remove::before {
  display: none;
}

.cart_item_sub_items .cart_item_remove::after,
.cart_item_sub_items .cart_item_remove::before {
  transform: translate(-50%, -50%);
  height: 0.8px;
}

/* row */

.cart_result_row {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.cart_result_row button {
  border: none;
  font-family: Inter;
  font-size: 15px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  transition: 0.3s all linear;
}

.cart_result_row button:not(:disabled):hover {
  opacity: 0.8;
}

.cart_btn_next {
  max-width: 150px;
  padding: 14px 6px;
  color: #fff;
  background-color: #d6aa6d;
  cursor: pointer;
}

.cart_btn_next:disabled {
  background-color: #9c9c9c;
  cursor: no-drop;
}

.cart_btn_clear {
  background-color: transparent;
  max-width: 82px;
  padding: 0;
  color: #100f0e;
  cursor: pointer;
  padding-bottom: 5px;
  border-bottom: 1px solid #000!important;
}

.cart_btn_clear:not(:disabled) path {
  fill: #100f0e;
}

.cart_btn_clear:disabled {
  color: #9c9c9c;
  cursor: no-drop;
  border-bottom: 1px solid #9c9c9c!important;
}

/* form */

.cart_form_content {
  width: 100%;
  height: 100%;
  padding: 59px 78px 58px 79px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  transition: 0.3s filter linear;
}

.cart_form_title {
  color: #100f0e;
  text-align: center;
  font-family: Inter;
  font-size: 24px;
  font-weight: 500;
  line-height: 130%;
}

.cart_form {
  display: flex;
  flex-direction: column;
  gap: 25px;
  width: 100%;
  margin: 0;
}

.cart_form .form-group {
  position: relative;
  margin-bottom: 0;
}

.cart_form .form-group input {
  width: 100%;
  padding-bottom: 7px;
  outline: none;
  border: none;
  border-bottom: 1px solid #a4a8b8;
  color: #686868;
  font-family: Inter;
  font-size: 16px;
  font-weight: 400;
  line-height: 114%;
}

.cart_form .form-group input.error {
  box-shadow: 2px 3px 1px 0px #98283c;
}

.cart_form .form-group label {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0px;
  color: #686868;
  font-family: Inter;
  font-size: 16px;
  font-weight: 400;
  line-height: 120%;
  pointer-events: none;
  transition: 0.2s ease all;
}

.cart_form .form-group input:focus + label,
.cart_form .form-group input:not(:placeholder-shown) + label {
  top: -7px;
  left: -2px;
  font-size: 12px;
  background: #fff;
  padding: 0 4px;
  color: #000;
}

.cart_form .required-star {
  color: #98283c;
  font-family: "Inter";
  font-size: 15px;
  font-weight: 400;
  position: relative;
  left: -4px;
  top: -3px;
}

.form_submit {
  max-width: 100%;
  border: none;
  margin-top: 5px;
  transition: 0.3s all linear;
}

.form_submit:hover {
  opacity: 0.8;
  background-color: #343a51;
}

/* done */

.cart_done_wrap {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 34px;
}

.cart_done {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 5px solid #d6aa6d;
  position: relative;
}

.cart_done::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-block;
  width: 25px;
  height: 45px;
  border: solid #d6aa6d;
  background-color: transparent;
  border-width: 0 5px 5px 0;
  border-radius: 0 4px 0 4px;
  transform: translate(-50%, -65%) rotate(45deg);
  transition: none;
}

.cart_done_title {
  color: #000;
  text-align: center;
  font-family: Inter;
  font-size: 16px;
  font-weight: 400;
  line-height: 150%;
}

/* loading */

.loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 75px;
  height: 37px;
  z-index: 3;
  opacity: 0;
  transition: 0.3s all linear;
}

.active .loading {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.cart_wrap.active .cart_empty_content,
.cart_wrap.active .cart_items_content,
.cart_wrap.active .cart_form_content {
  filter: blur(10px);
}

/* fly */

.shake {
  animation: shake 0.5s;
  animation-iteration-count: infinite;
}

@keyframes shake {
  0% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-1px);
  }
  40% {
    transform: translateX(1px);
  }
  60% {
    transform: translateX(-1px);
  }
  80% {
    transform: translateX(1px);
  }
  100% {
    transform: translateX(0);
  }
}

/* footer */

.footer__bottom {
  padding: 15px 0 40px 0;
}

.footer__bottom .container {
  justify-content: space-between;
}

.copyright_items {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  margin: 0;
}

.copyright_items li {
  padding-left: 0;
  margin: 0;
}

.copyright_items li::before {
  display: none;
}

.copyright_items a {
  color: #fff;
  font-family: Inter;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  transition: 0.3s all linear;
}

.copyright_items a:hover {
  opacity: 0.8;
}

/* footer */

@media (max-width: 1599px) {
  .contacts-info {
    flex-direction: column;
    align-items: flex-start;
  }

  .contacts-info .email {
    margin-right: 0;
    margin-bottom: 15px;
  }
  .cart_wrap {
    top: calc(100%);
  }
}

@media (max-width: 1100px) {
  .cart_wrap {
    left: auto;
    right: 15px;
  }
}

@media (max-width: 991px) {
  .header .menu-main {
    gap: 0;
  }

  .nav-bar .cart {
    display: none;
  }

  .contacts-info .email {
    margin-bottom: 30px;
  }

  .cart_mobile {
    display: block;
    margin-left: auto;
  }

  .btn-hamburger {
    margin-left: 30px;
  }
}

@media (max-width: 768px) {
  /* footer */
  .footer__bottom .container {
    gap: 10px;
  }

  .copyright_items {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (max-width: 500px) {
  .cart_wrap {
    left: auto;
    right: 0;
    max-width: 100%;
    height: 450px;
  }

  .cart_form_content {
    width: 100%;
    height: 100%;
    padding: 62px 46px 81px 46px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .cart_items_content {
    padding: 40px 0px 160px 16px;
    position: relative;
  }

  .cart_items {
    gap: 18px;
  }

  .cart_item_sub_items {
    gap: 16px;
    padding: 16px 0 16px 10px;
  }

  .cart_result_row {
    flex-direction: row-reverse;
  }

  .cart_btn_back {
    left: 16px;
  }
}
