@charset "UTF-8";

@import url("https://fonts.googleapis.com/css2?family=Red+Hat+Text:ital,wght@0,300..700;1,300..700&display=swap");

:root {
  --Red: hsl(14, 86%, 42%);
  --Green: hsl(159, 69%, 38%);

  --Rose-50: hsl(20, 50%, 98%);
  --Rose-100: hsl(13, 31%, 94%);
  --Rose-300: hsl(14, 25%, 72%);
  --Rose-400: hsl(7, 20%, 60%);
  --Rose-500: hsl(12, 20%, 44%);
  --Rose-900: hsl(14, 65%, 9%);
}

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

body {
  width: 100%;
  min-height: 100vh;
  font-family: "Red Hat Text", Arial, Helvetica, sans-serif;
  padding: 25px 45px 0px;
  background-color: var(--Rose-100);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 80px;
}

main {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 30px;
}

#container-desserts {
  width: 100%;
  max-width: 700px;
}

#desserts {
  display: grid;
  grid-template-columns: repeat(auto-fit, 210px);
  grid-template-rows: repeat(auto, 200px);
  gap: 30px;
  margin-top: 12px;
}

.dessert-item {
  display: flex;
  flex-direction: column;
  position: relative;
}

.image-dessert img {
  width: 100%;
  border-radius: 7px;
}

.add-cart {
  border: 1px solid var(--Rose-500);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 140px;
  padding: 7px 0px;
  font-size: 0.85em;
  display: flex;
  background-color: white;
  transition: all .15s ease;

  top: 182px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.add-cart:hover {
  cursor: pointer;
  border: 1px solid var(--Red);
}

.add-cart span {
  font-size: 0.95em;
  color: var(--Rose-900);
  font-weight: 650;
  transition: all .15s ease;
}

.add-cart:hover .off span {
  color: var(--Red);
}

.add-cart img {
  width: 20px;
}

.off {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.on {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

h5 {
  color: var(--Rose-900);
}

.name-dessert {
  margin-top: 15px;
  color: var(--Rose-400);
  font-size: 0.95em;
}

.price-dessert {
  color: var(--Red);
  font-weight: 600;
}

.price-dessert::before {
  content: "$";
}

#container-your-cart {
  width: 95%;
  max-width: 350px;
  background-color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 15px;
  border-radius: 7px;
}

#container-your-cart h3 {
  color: var(--Red);
}

#image-empety-cart {
  display: flex;
  justify-content: center;
  align-content: center;
}

#container-your-cart p {
  font-size: 0.9em;
  color: var(--Rose-400);
  font-weight: 500;
}

#container-your-cart img {
  display: block;
}

.selected {
  border: 2px solid var(--Red);
  border-radius: 7px;
}

span.qtd-item {
  color: white;
  width: 20px;
  text-align: center;
}

i {
  font-size: 1.1em;
  color: white;
  transition: all 0.2s ease;
}

.container-icon {
  border-radius: 50%;
  width: 20px;
  height: 20px;
  border: 1px solid white;
  display: flex;
  padding: 1px;
  justify-content: center;
  align-items: center;
  transition: all 0.2s ease;
}

.container-icon:hover {
  background-color: white;
}

.container-icon:hover i {
  color: var(--Red);
}

.oculto {
  display: none !important;
}

.selected-background {
  background-color: var(--Red);
}

#confirm-order {
  background-color: var(--Red);
  padding: 10px 8px;
  border: none;
  border-radius: 20px;
  color: white;
  font-weight: 580;
  transition: all 0.2s ease;
  font-size: 0.87em;
}

#confirm-order:hover {
  cursor: pointer;
  color: var(--Rose-100);
}

#confirm-order:active {
  transform: scale(0.985);
}

#container-carbono {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3px;
  padding: 10px 8px;
  border-radius: 7px;
  background-color: var(--Rose-100);
  margin: 15px 0px;
}

#container-carbono p {
  color: var(--Rose-900);
  font-size: 0.85em;
}

.style-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 5px;
}

.style-total span {
  color: var(--Rose-900);
  font-weight: bold;
  font-size: 1.5em;
}

#total-confirm {
  font-size: 1.2em;
}

#container-list-order {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 10px 0px;
}

.item-order {
  width: 100%;
  border-bottom: 1px solid var(--Rose-300);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0px;
}

.container-information-dessert {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.container-information-dessert h5 {
  color: var(--Rose-900);
}

.information-dessert {
  display: flex;
  gap: 10px;
  font-size: 0.9em;
}

.icon-remove-item {
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--Rose-500);
  color: var(--Rose-900);
  border-radius: 50%;
  padding: 1px;
  width: 16px;
  height: 16px;
  transition: all 0.2s ease;
}

.icon-remove-item:hover {
  border: 1px solid var(--Rose-900);
}

.icon-remove-item:hover i {
  color: var(--Rose-900);
}

.item-order i {
  font-size: 0.7em;
  color: var(--Rose-500);
}

.qtd-dessert-cart {
  font-weight: 580;
  color: var(--Red);
}

.price-und {
  color: var(--Rose-300);
}

.value-total-dessert {
  font-weight: 580;
  color: var(--Rose-500);
}

/*      MODAL     */

#modal {
  padding: 25px;
  border: 1px solid black;
  border-radius: 10px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 450px;
  background-color: white;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

#modal::backdrop {
  background-color: rgba(0, 0, 0, 0.6);
}

.image-confirm-order img {
  width: 35px;
}

#container-orders {
  align-self: center;
  background-color: var(--Rose-100);
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  margin: 10px 0px;
  display: flex;
  flex-direction: column;
}

#total-order-confirm {
  margin-top: 10px;
  order: 99;
}

#modal button {
  width: 100%;
  background-color: var(--Red);
  padding: 10px 8px;
  border: none;
  border-radius: 20px;
  color: white;
  font-weight: 580;
  transition: all 0.2s ease;
}

#modal button:hover {
  cursor: pointer;
  color: var(--Rose-100);
}

#modal button:active {
  transform: scale(0.985);
}

.modal-information-dessert {
  display: flex;
  gap: 10px;
}

.modal-information-dessert span:nth-of-type(2) {
  color: var(--Rose-500);
}

.information-dessert {
  margin-top: 1px;
}

#container-orders img {
  width: 50px;
  border-radius: 5px;
}

.modal-desert-value span {
  font-weight: 500;
}

footer {
  width: calc(100% + 90px);
  margin-left: -45px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 2px;
  background-color: var(--Red);
  color: white;
}

footer a {
  color: white;
  position: relative;
  font-weight: bold;
  text-decoration: none;
  font-size: 0.86em;
}

footer a::before {
  background-color: white;
  position: absolute;
  content: '';
  bottom: 0px;
  left: 50%;
  width: 0%;
  height: 1px;
  transition: all .2s ease;
}

footer a:hover::before {
  width: 50%;
}

footer a::after {
  background-color: white;
  position: absolute;
  content: '';
  bottom: 0px;
  right: 50%;
  width: 0%;
  height: 1px;
  transition: all .2s ease;
}

footer a:hover::after {
  width: 50%;
}