section.cart {
  flex-direction: column;
}

section.cart .heading {
  width: 100%;
  height: 7rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

section.cart .heading .cart-number .number {
  color: var(--clr-accent);
  font-size: 1.8rem;
}

section.cart .wrapper {
  flex-direction: row;
  align-items: flex-start;
}

section.cart .cart-container {
  width: 70%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

section.cart .cart-item-specific {
  width: 100%;
  display: flex;
  flex-direction: column;
  background-color: white;
  padding: 2rem;

  border-radius: var(--radius-400);
}

section.cart .cart-item-specific .row {
  display: flex;
  width: 100%;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

section.cart .cart-item-specific .row:last-child {
  justify-content: flex-end;
}

section.cart .cart-item-specific .row:last-child button.delete-cart-item {
  width: 12rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgb(253, 235, 242);
  color: rgb(255, 0, 64);
  border: none;
  outline: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 300ms ease-in-out;
  border-radius: var(--radius-200);
}

section.cart .cart-item-specific .row:last-child button.delete-cart-item:hover {
  color: rgb(255, 255, 255);
  background-color: rgb(255, 0, 64);
}

section.cart .cart-item-specific .row-group {
  width: 90%;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

section.cart .product-img {
  width: 12rem;
  height: 12rem;
  border-radius: var(--radius-400);
  overflow: hidden;
  box-shadow: rgba(0, 0, 0, 0.05) 0px 6px 24px 0px,
    rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;
}

section.cart .product-img img {
  object-fit: contain;
}

section.cart .product-description {
  width: 60%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

section.cart .product-title {
  color: var(--clr-gray-d300);
  font-weight: 600;
}

section.cart .number-of-products {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 13rem;
}

section.cart .product-item-calculation {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-200);
  transition: all 300ms ease-in-out;
  cursor: pointer;
}

section.cart .number-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

section.cart .number-container input {
  width: 7rem;
  height: 2.4rem;
  border: 0.1rem solid var(--clr-gray-400);
  border-radius: var(--radius-200);
  outline: none;
  padding: 0 1rem;
  transition: all 300ms ease-in-out;
  text-align: center;
}

section.cart .product-item-calculation span {
  font-size: 1.8rem;
}

section.cart .product-item-calculation.plus {
  background-color: rgb(236, 243, 251);
  color: rgb(0, 128, 255);
}
section.cart .product-item-calculation.plus:hover {
  color: rgb(255, 255, 255);
  background-color: rgb(0, 128, 255);
}

section.cart .product-item-calculation.minus {
  background-color: rgb(252, 239, 244);
  color: rgb(255, 0, 64);
}
section.cart .product-item-calculation.minus:hover {
  color: rgb(255, 255, 255);
  background-color: rgb(255, 0, 64);
}

section.cart button.update-number {
  width: 100%;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 128, 255, 0.062);
  color: rgb(0, 128, 255);
  border: none;
  outline: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 300ms ease-in-out;
  border-radius: var(--radius-200);
}

section.cart button.update-number:hover {
  color: rgb(255, 255, 255);
  background-color: rgb(0, 128, 255);
}

section.cart .product-price {
  font-size: 2.5rem;
  color: var(--clr-primary);
  font-family: var(--font-secondary);
}

section.cart .cart-overview {
  width: 25rem;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  background-color: white;
  border-radius: var(--radius-400);
  gap: 1rem;
}

section.cart .cart-overview .summaries {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

section.cart .cart-overview .summary {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

section.cart .cart-overview .summary span:first-child {
  font-family: var(--font-secondary);
  color: var(--clr-accent-darkest);
}

section.cart .cart-overview a.cta {
  width: 100%;
}

@media (max-width: 800px) {
  section.cart .wrapper {
    flex-direction: column;
  }
  section.cart .cart-container {
    width: 100%;
  }
}

@media (max-width: 800px) {
  section.cart .wrapper {
    align-items: center;
  }

  section.cart .cart-container {
    width: 60%;
  }
  section.cart .cart-item-specific .row {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  section.cart .product-img {
    width: 20rem;
    height: 20rem;
  }

  section.cart .product-description {
    width: 100%;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 500px) {
  section.cart .cart-container {
    width: 90%;
  }

  section.cart .product-img {
    width: 100%;
    height: 20rem;
  }

  section.cart .heading {
    flex-direction: column;
  }
}
@media (max-width: 300px) {
  section.cart .cart-container {
    width: 100%;
  }
}
