.cart-page {
  padding: 50px 0;
}

.cart-details {
  display: flex;
  gap: 30px;
}

.products-in-cart {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 64.7%;
}

.product-in-cart {
  border: 1px solid #E3E3E3;
  border-radius: 5px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
}

.cart-img {
  border-radius: 5px;
  width: 150px;
  height: 150px;
}

.product-in-cart-desc  {
  width: calc(100% - 170px);
}

.product-in-cart-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font: 16px 'BPG Mrgvlovani';
  line-height: 22px;
  margin-bottom: 25px;
}

.product-in-cart-head span {
  max-width: calc(100% - 25px);
  text-overflow: ellipsis;
  overflow: hidden;
}

.product-in-cart-head button {
  padding: 0;
  width: 16px;
  svg {
    fill: var(--dark);
    transition: all 0.3s ease;
    &:hover { fill: #b0221f; }
  }
}

.cart-summery {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-sum {
  color: var(--main);
  font: 20px 'BPG Mrgvlovani';
  line-height: 22px;
}

.product-quantity {
  background: white;
  border: 1px solid #ECECEC;
  border-radius: 20px;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  width: 127px;
  height: 39px;
}

.cart-increase, .cart-decrease {
  font-size: 10px;
}

.cart-form {
  background: #FAFAF8;
  border-radius: 5px;
  padding: 27px 30px 35px;
  width: calc(35.3% - 30px);
  hr {
    border-color: #D8D8D8;
    opacity: 1;
    margin: 10px 0;
  }
}

.cart-form > p:first-child, .total-price {
  color: var(--dark);
  -webkit-text-stroke: 0.5px var(--dark);
  font: 16px 'BPG Mrgvlovani Caps 2010';
  line-height: 22px;
  margin-bottom: 30px;
}
.total-price { margin-bottom: 0; }

.bill-details {
  color: var(--dark);
  display: flex;
  gap: 18px;
  font: 14px 'BPG Mrgvlovani';
  line-height: 19px;
  margin-bottom: 26px;
}

.total-price span:last-child, .bill-details span:last-child {
  color: var(--main);
  -webkit-text-stroke: 0.5px var(--main);
}

.total-price span:last-child, .cart-form > p:first-child { font-size: 20px; }
.bill-details span:last-child { font-size: 17px; }

.cart-form {
  input, select {
    border: 1px solid #DBDBDB;
    border-radius: 10px;
    font: 14px 'BPG Mrgvlovani';
    line-height: 19px;
    width: 100%;
    height: 40px;
    margin-bottom: 18px;
    padding-left: 20px;
  }
  select {
    background: transparent;
    background-image: url(../img/arrow-down.svg) !important;
    background-size: 13px 13px !important;
    background-position: right 20px center !important;
    background-repeat: no-repeat !important;
    --bs-form-select-bg-img: none !important;
    appearance: none; 
    -webkit-appearance: none;
    -moz-appearance: none;
  }
}

.submit-cart {
  width: 100%;
  background: var(--green);
  border: none;
  border-radius: 10px;
  color: white;
  cursor: pointer;
  font: 18px "BPG Mrgvlovani Caps 2010";
  line-height: 24px;
  height: 50px;
  transition: all 0.3s ease;
  &:hover { background: var(--main); }
}

@media screen and (max-width: 1023px) {
  .products-in-cart { width: 55%; }
  .cart-form { width: calc(45% - 30px); }

  .cart-img { width: 90px; height: 90px; }
  .product-in-cart-desc { width: calc(100% - 110px); }
  .product-in-cart-head {
    font-size: 12px;
    line-height: 16px;
    margin-bottom: 5px;
  }

  .product-quantity {
    width: 80px;
    height: 29px;
    > span { font-size: 10px; }
  }

  .cart-increase, .cart-decrease {
    font-size: 6px;
  }

  .cart-sum {
    font-size: 16px;
    line-height: 22px;
  }

  .cart-form > p:first-child { font-size: 17px; }
  .total-price { font-size: 13px; }
  .bill-details { font-size: 12px; }
}

@media screen and (max-width: 767px) {
  .cart-details {
    flex-direction: column;
  }

  .products-in-cart, .cart-form { width: 100%; }
}

@media screen and (max-width: 500px) {
  .product-in-cart {
    padding: 15px 10px;
  }

  .product-in-cart-desc {
    position: relative;
    width: calc(100% - 120px);
  }

  .product-in-cart-head {
    font-size: 10px;
    line-height: 13px;
    margin-bottom: 14px;
  }

  .product-in-cart-head button {
    position: absolute;
    bottom: 0;
    right: 5px;
  }

  .cart-summery {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .product-in-cart-head span {
    max-width: unset;
  }
  .cart-img { width: 100px; height: 100px; }

  .cart-sum { font-size: 14px; line-height: 19px; }
}