@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap');
/*

orange-color:     #F05D23
dark-color:       #38383A
light-color:      #FFEFE7       opacity: rgba(255, 239, 231, 0.5)
purpure-color:    #FEDEC7       opacity: rgba(254, 222, 199, 0.15)

*/

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

html {
  font-size: 10px;
}

body {
  font-family: 'Roboto', sans-serif;
  font-size: 1.6rem;
  color: #FFEFE7;
  background-color: #38383A;
}

.main {
  padding: 2.4rem 1.2rem;
}

.main__title {

}

.main__subtitle {
  font-size: 1.2rem;
  color: rgba(255, 239, 231, 0.5);
  margin-bottom: 0.8rem;
}

.products {
  margin-top: 4rem;
  padding-right: 1.2rem;
}

.products__item {
  display: flex;
  align-items: center;
  position: relative;
  height: 10rem;
  background-color: rgba(254, 222, 199, 0.15);
  padding: 1.2rem 1.6rem 1.2rem 0.8rem;
  border-radius: 1.6rem;
}

.products__item:not(:last-child) {
  margin-bottom: 2.4rem;
}

.products__item-img-wrapper{
  display: flex;
  justify-content: center;
  align-items: center;
  width: 10rem;
  height: 6.6rem;
}

.products__item-img,
.cart__content-item-img {
  height: 100%;
}

.products__item-info {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.products__item-name {
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.products__item-description {
  font-size: 1.2rem;
  color: rgba(255, 239, 231, 0.5);
}

.products__item-price {
  margin-top: auto;
  font-weight: 700;
  color: #F05D23;
}

.products__item-activities {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 50%;
  right: -1.5rem;
  transform: translateY(-50%);
}

.products__item-activities-btn {
  width: 3rem;
  height: 3rem;
  border: none;
  background: #F05D23;
  color: #FFEFE7;
  font-weight: 500;
  font-size: 1.8rem;
  border-radius: 50%;
  cursor: pointer;
}
.products__item-activities-btn:active {
  transform: scale(0.9);
}

.products__item-activities-price {
  text-align: center;
}

.products__item-btn {
  position: absolute;
  top: 50%;
  right: -2rem;
  width: 4rem;
  height: 4rem;
  background: #F05D23;
  border: none;
  border-radius: 50%;
  color: #FFEFE7;
  font-size: 1.8rem;
  font-weight: 500;
  transform: translateY(-50%);
  cursor: pointer;
}

.products__item-btn:active {
  transform: scale(0.9) translateY(-50%);
}

.cart {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #38383A;
  padding: 2.4rem;
}

.cart__title {
  font-size: 3.2rem;
  text-align: center;
  margin-bottom: 4rem;
}

.cart__edit-button-wrapper {
  display: flex;
  justify-content: flex-end;
}

.cart__edit-button {
  background: none;
  border: none;
  color: #F05D23;
  text-decoration: underline;
  cursor: pointer;
}

.cart__content {
  padding: 1.6rem 0;
}

.cart__content-head {
  display: flex;
  align-items: center;
  padding: 0.8rem;
  color: rgba(255, 239, 231, 0.5);
  border-bottom: 0.1rem solid rgba(254, 222, 199, 0.15);
  font-size: 1.2rem;
}

.cart__content-row {
  display: flex;
  align-items: center;
  padding: 1.6rem 0.8rem 1.6rem 0;
  border-bottom: 0.1rem solid rgba(254, 222, 199, 0.15);
}

.cart__content-item-img-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 8rem;
  height: 6.6rem;
}

.cart__content-item-img {
  height: 100%;
}

.cart__content-head-img {
  width: 8rem;
}

.cart__content-item-name,
.cart__content-head-name {
  flex: 3;
}

.cart__content-item-count,
.cart__content-head-count {
  display: inline-block;
  flex: 1;
  margin: 0 0.8rem;
  text-align: center;
}

.cart__content-item-price,
.cart__content-head-price {
  flex: 1.5;
  text-align: end;
}

.cart__total {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 1.2rem;
}

.cart__total-txt {
  color: rgba(255, 239, 231, 0.5);
  margin-right: 0.8rem;
}

.cart__total-price {
  color: #F05D23;
  font-size: 2.4rem;
  font-weight: 500;
}

.hidden {
  display: none;
}

.visible {
  display: flex;
}