.cart {
  display: -ms-flexbox;
  display: flex;
  -ms-flex: 1 0 auto;
      flex: 1 0 auto;
  -ms-flex-direction: column;
      flex-direction: column;
}

.cart .container {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
      flex-direction: column;
  -ms-flex: 1 0 auto;
      flex: 1 0 auto;
  padding-top:1rem ;
  padding-bottom:7rem ;
}

.cart__item {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 24% 34% 8% 10% 11% 8% 5%;
  grid-template-columns:24% 34% 8% 10% 11% 8% 5%;
  -ms-flex-align: center;
      align-items: center;
  padding: 2rem 0;
  border-top: 0.1rem solid #CED6E0;
}

.cart__img {
  aspect-ratio: 3.3/2;
  border-radius: 2rem;
}

.cart__img img {
  border-radius: 2rem;
}
.cart__price-wrap{
  display: flex;
  gap:1rem;
}

.cart__product {
  padding: 0 1.6rem;
}

.cart__product h2 {
  font: 700 1.4rem/normal var(--Ubuntu);
  margin-bottom: 0.8rem;
}

.cart__product h3 {
  font: 400 1.4rem/normal var(--Ubuntu);
  margin-bottom: 1rem;
}
.cart__product > h3 {

  color: var(--color-grey);

}
.cart__product-link {
  font: 500 1.4rem/normal var(--Ubuntu);
  color: var(--color-primary);
}

.cart__price {
  text-align: center;
  font: 700 1.4rem/normal var(--Ubuntu);
}
.cart__stock{
  text-align: center;
  font: 400 1.4rem/normal var(--Ubuntu);
}
.cart__counter {
  margin: 0 auto;
}

.cart__delete {
  cursor: pointer;
  position: relative;
  top: 0;
  margin-left: auto;
  display: block;
  right: 0;
  width: 2.4rem;
  height: 2.4rem;
  background: url("../img/delete.svg") center/2.4rem 2.4rem no-repeat;
}


.cart__total {
  max-width: 37.7rem;
  width: 100%;
  margin-left: auto;
}
.cart__total-item{
  display: -ms-flexbox;
  display: flex;
  -ms-flex-pack: justify;
  justify-content: space-between;
  gap:0.5rem;
}
.cart__total-item > *{
  font: 700 2rem/normal var(--Ubuntu);
}
.cart__total-bottom {
  margin: 2rem 0;
  padding-bottom: 2rem;
  border-bottom: 0.1rem solid #CED6E0;
  display: flex;
  flex-direction: column;
  gap:1rem;

}

.cart__total-bottom > * {
  font: 700 2rem/normal var(--Ubuntu);
}

.cart__total-buy {
  padding: 2rem 5.4rem 2rem 3rem;
  width: -moz-max-content;
  width: max-content;
  margin-left: auto;
  position: relative;
}

.cart__total-buy:after {
  content: '';
  position: absolute;
  top: 50%;
  right: 2rem;
  transform: translateY(-50%);
  width: 1.4rem;
  height: 1.4rem;
  background: url("../img/right-arrows.svg") center/1.4rem 1.4rem no-repeat;
}

.cart__empty {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
      flex-direction: column;
  gap: 2rem;
  text-align: center;
  -ms-flex-align: center;
      align-items: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.cart__empty-img {
  width: 5rem;
  height: 5rem;
}

.cart__empty h3 {
  color: var(--color-grey);
  font: 500 1.4rem/normal var(--Ubuntu);
}

.cart__empty a {
  padding: 1.4rem 3rem;
  font: 700 1.4rem/normal var(--Ubuntu);
  color: var(--color-primary);
  border-radius: 1rem;
  border: 0.1rem solid var(--color-primary);
  display: block;
}

@media only screen and (max-width: 666px) {
  .cart__empty {
    position: relative;
    top: unset;
    left: unset;
    transform: unset;
    margin: 18rem auto;
  }
  .cart__item {
    padding: 1rem  2.4rem 1rem 24vw;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
        flex-direction: column;
    position: relative;
    -ms-flex-align: start;
        align-items: flex-start;
  }
  .cart__product {
    padding: 0;
  }
  .cart__img {
    position: absolute;
    width: 19.5vw;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    border-radius: 1rem;
  }
  .cart__img img {
    border-radius: 1rem;
  }
  .cart__delete {
    position: absolute;
    top: 1rem;
    right: 0;
    width: 2rem;
    height: 2rem;
    background: url(../img/delete.svg) center/2rem 2rem no-repeat;
  }
  .cart__counter {
    margin: 0;
  }
  .cart__price-full {
    bottom: 2.2rem;
    position: absolute;
    right: 0;
  }
  .cart__product h2, .cart__product h3 {
    margin-bottom: 0.4rem;
  }
  .cart__product-link {
    margin-bottom: 0.8rem;
    display: block;
  }
  .cart__counter {
    margin-top: 0.8rem;
  }
  .cart__total {
    margin-top: 5rem;
  }
  .cart__total-bottom > * {
    font-size: 1.8rem;
  }
  .cart__total-bottom {
    margin: 1rem 0;
    padding-bottom: 1rem;
    gap: 1rem;
    -ms-flex-pack: end;
        justify-content: flex-end;
  }
  .cart .container{
    padding-bottom: 2rem;
  }
  .cart__promocode .login__input{
    padding: 1.05rem 1.4rem!important;
    width: 13rem;
  }
  .cart__total-bottom{
    margin-top: 2rem;
  }
  .cart__promocode-block.active{
    justify-content: flex-end;
  }
  .cart__stock{
    margin: 0.4rem 0;
  }
}

