* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  font-size: 62.5%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}
body {
  font-family: "Rubik", "sans-serif";
  line-height: 1;
  overflow-x: visible;
  background-color: white;
  padding: 4rem;
  scroll-behavior: smooth;
  margin-left: 8rem;
}
.container {
  display: flex;
  gap: 6rem;
  position: relative;
}
/* Carrt */
.section__cart {
  width: 32rem;
  box-shadow: 0 0 1.2rem 1.2rem rgba(0, 0, 0, 0.1);
  padding: 2rem;
  align-self: start;
  border-radius: 1rem;
  border: 5px solid #e6e6e6;
}
.cart__heading {
  font-size: 3.6rem;
  color: #e67022;
}
.cart__list--item {
  list-style: none;
  margin-bottom: 1rem;
  border-bottom: 1px solid #ddd;
  padding-bottom: 1.2rem;
}

.cart__item--wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2.4rem;
  border-radius: 8px;
}

.cart__item--details {
  display: flex;
  flex-direction: column;
}
.no__items--box {
  margin-top: 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.cart__no--text {
  text-align: center;
  font-size: 1.4rem;
}
.cart__item--name {
  font-size: 2.4rem;
  font-weight: bold;
  margin-bottom: 0.8rem;
}
.cart__item--price {
  color: hsl(7, 20%, 60%);
}
.cart__item--total--price {
  color: #675752;
}
.cart__item--summary {
  display: flex;
  gap: 1rem;
  font-size: 1.8em;
}
.cart__item--quantity {
  color: #e67022;
}
.cart__item--quantity,
.cart__item--price,
.cart__item--total--price {
  margin: 0;
}

.delete__btn--box {
  display: flex;
  align-items: center;
}

.delete__icon {
  font-size: 2.4rem;
  color: #f00;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.delete__icon:hover {
  transform: scale(1.2);
}
.cart__price--all {
  display: flex;
  justify-content: space-between;
  margin-top: 2.4rem;
  align-items: center;
}
.price__all--text {
  color: grey;
  font-size: 1.8rem;
}
.price__all--price {
  font-size: 2.4rem;
}
.cart__info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  padding: 1.2rem 1.6rem;
  border-radius: 1rem;
  font-size: 1.4rem;
  background: hsl(13, 31%, 94%);
  margin-top: 2.4rem;
}
.carbon__icon {
  color: green;
}
.confirm__btn {
  background: #e67022;
  padding: 1.4rem 2.2rem;
  border: none;
  border-radius: 10rem;
  color: white;
  font-size: 2rem;
  width: 100%;
  margin-top: 2.4rem;
}
/* PRODUCT LIST */
.product__list--heading {
  font-size: 4.8rem;
  font-weigth: 900;
  margin-bottom: 6.4rem;
}
.product__list--box {
}
.product__list {
  display: grid;
  gap: 3.2rem;
  grid-template-columns: 28rem 28rem 28rem;
}
/* .col-2 {
  display: grid;
  grid-column: 2/3;
} */
.product__list--item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 27rem;
  height: 43rem;
  border-radius: 1.2rem;
  overflow: hidden;
  box-shadow: 0 0 1.2rem 1.2rem rgba(0, 0, 0, 0.1);
  transition: all 1s;
}
.product__list--item:hover {
  scale: 1.1;
  transform: translateY(-0.5rem);
}
.product__item--img {
  transition: all 0.3s;
  width: 100%;
}
.product__item--btn {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 0.9rem;
  border: 1px solid grey;
  box-shadow: 0 0 1.2rem 1.2rem rgba(0, 0, 0, 0.1);
  border-radius: 10rem;
  transform: translateY(-50%);
  background: white;
  width: 24rem;
  transition: all 1s;
}
.product__item--btn:hover {
  cursor: pointer;
  background-color: #ddd;
  color: white;
}
.product__item--btn--clicked {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0.9rem;
  border: 1px solid grey;
  box-shadow: 0 0 1.2rem 1.2rem rgba(0, 0, 0, 0.1);
  border-radius: 10rem;
  transform: translateY(-50%);
  background: #e67022;
  width: 70%;
  transition: all 1s;
}
.increment__icon,
.decrement__icon {
  color: white;
  font-size: 2.4rem;
}
.btn__clicked--text {
  font-size: 2.4rem;
  color: white;
}
.product__item--icon {
  color: #e67022;
  font-size: 2.4rem;
}
.product__item--btn--text {
  font-size: 2.4rem;
  color: black;
}
.product__item--info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.2rem;
  text-align: center;
  padding-bottom: 3.6rem;
}
.product__item--price {
  color: #e67022;
}
.product__item--name {
  color: hsl(12, 20%, 44%);
  font-size: 1.4rem;
}
.product__item--desp {
  font-size: 1.8rem;
  color: black;
  text-transform: uppercase;
}
.product__item--price {
  font-size: 2.4rem;
  padding-bottom: 1.2rem;
}
.none__out {
  display: none;
  animation: moveOut 1s;
}
.selected {
  display: inherit;
  animation: moveIn 1s;
}
@keyframes moveOut {
  0% {
    transform: translateY(0%);
    opacity: 1;
    display: none;
  }
  100% {
    transform: translateY(-10rem);
    opacity: 0;
    display: none;
  }
}
@keyframes moveIn {
  0% {
    transform: translateY(10rem);
    opacity: 0;
    display: none;
  }
  100% {
    transform: translateY(-60%);
    opacity: 1;
    display: inherit;
  }
}
.none {
  display: none;
}
/* MODAL */
.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 45rem;
  height: 64rem;
  overflow: scroll;
  padding: 2rem;
  background: white;
  box-shadow: 0 0 1.2rem 1.2rem rgba(0, 0, 0, 0.1);
  border-radius: 1rem;
  z-index: 1000;
}
.modal__icon {
  font-size: 6.4rem;
  color: #55c57a;
  display: block;
  margin-bottom: 3rem;
}

.modal__title {
  font-size: 3.6rem;
  color: black;
  margin-bottom: 1.8rem;
}

.modal__title--extra {
  font-size: 2rem;
  color: #bbb;
  margin-bottom: 4.8rem;
}

.modal__items--list {
  list-style: none;
  padding: 0;
  margin-bottom: 2.4rem;
}

.modal__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  border-bottom: 1px solid #ddd;
  padding-bottom: 1.2rem;
}

.modal__item--img {
  width: 6rem;
  height: 6rem;
  border-radius: 0.5rem;
}

.modal__item--info {
  flex: 1;
  margin-left: 1rem;
}

.modal__info--heading {
  font-size: 2.2rem;
  color: black;
  margin-bottom: 0.5rem;
}

.modal__additional--info {
  display: flex;
  gap: 1rem;
}

.modal__info--quantity {
  color: #e67022;
  font-size: 1.6rem;
}

.modal__info--price {
  color: hsl(7, 20%, 60%);
  font-size: 1.6rem;
}

.modal__total--price {
  font-size: 2rem;
  color: #675752;
}

.modal__order--summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
}

.modal__summary--text {
  font-size: 1.8rem;
  color: grey;
}

.modal__summary--price {
  font-size: 2.4rem;
}

.modal__exit--btn {
  background: #e67022;
  padding: 1.4rem 2.2rem;
  border: none;
  border-radius: 10rem;
  color: white;
  font-size: 2rem;
  width: 100%;
  margin-top: 2.4rem;
  cursor: pointer;
}
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 100;
  transition: all 0.5s;
}
/* Media Queries */
@media (max-width: 964px) {
  html {
    font-size: 50%;
  }
  .container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .product__list {
    display: flex;
    flex-direction: column;
    gap: 8rem;
  }
  body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
}
