.alert {
  text-align: center;
  position: fixed;
  top: 5%;
  z-index: 999;
  height: 20vh;
  width: 25vw;
  left: 50%;
  transform: translate(-50%, -200%);
  background-color: #fff;
  color: #000;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  transition: 250ms ease-in-out;
  border-radius: 0.25em;
  box-shadow: inset 0 0 0.5em 0 #000;
}

.alert button {
  padding: 1em 2em;
  background-color: #000;
  color: #fff;
  outline: none;
  border: none;
  border-radius: 0.25em;
  transition: 250ms ease-in-out;
}

.shade {
  opacity: 0;
  pointer-events: none;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.7);
  transition: 250ms ease-in-out;
  z-index: 998;
}

.alert button:hover {
  scale: 1.1;
  background-color: #000;
  color: #fff;
  box-shadow: 0 0 0.5em 0 #fff;
}

.empty {
  position: absolute;
  bottom: 50%;
  left: 50%;
  transform: translate(-50%, 50%);
  color: #fff;
}

main {
  padding: 5% 0;
}

h1 {
  color: white;
  text-align: center;
  margin-bottom: 2em;
}

.home {
  background-size: 100% 3px;
}

.product-container {
  padding: 0 10em;
  position: relative;
  width: 100vw;
  min-height: fit-content;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.product {
  margin: 2em 0;
  border-radius: 0.25em;
  position: relative;
  width: 50%;
  height: 50vh;
  background-color: #fff;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2em 0;
}

.product h2 {
  position: absolute;
  left: 50%;
  translate: -50% 100%;
}

.price {
  position: absolute;
  top: 60%;
}

.foot {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 15%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.1);
}

.quantity {
  font-size: 1.25em;
  margin: 0 1em;
}

.foot i {
  font-size: 1.25em;
  cursor: pointer;
  z-index: 900;
  transition: 100ms ease-in-out;
}

.foot i:hover {
  scale: 1.1;
}

.danger {
  border-radius: 0.25em;
  padding: 0.5em 1em;
  background-color: #f72d2d;
  position: absolute;
  top: -10px;
  left: -10px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0.1em 0.1em 0.75em 0 #000;
  transition: 250ms ease-in-out;
}

.danger:hover {
  scale: 1.1;
}

.checkout-clear {
  width: 100vw;
  height: max-content;
  display: flex;
  justify-content: center;
  align-items: center;
  bottom: 1%;
  position: fixed;
}

.checkout-clear div {
  text-align: center;
  width: 15%;
  color: #fff;
  font-size: 1.5em;
  background-color: #000;
  border-radius: 0.5em;
  padding: 0.25em 0.75em;
  font-weight: 600;
  margin: 2.5em 1em;
  transition: 250ms ease-in-out;
  box-shadow: 0 0 0.5em 0 #fff;
  z-index: 989;
}

.checkout-clear div:hover {
  scale: 1.1;
  cursor: pointer;
  background-color: #fff;
  color: #000;
}

.fa-cart-shopping {
  color: #fff;
}

@media (min-width: 300px) and (max-width: 900px) {
  .alert {
    width: 75vw;
    height: min-content;
    padding: 1.5em 2em;
  }

  .alert button {
    margin-top: 2em;
  }

  h1 {
    margin-bottom: 0;
    margin-top: 2em;
  }

  .product-container {
    height: fit-content;
    min-height: 50vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 10% 0;
  }

  .product {
    width: 75vw;
    min-height: 45vh;
  }

  .price {
    top: 70%;
  }

  .empty {
    bottom: 65%;
  }

  .danger {
    transform: translate(-10%, -10%);
  }

  .checkout-clear {
    position: unset;
    width: 100vw;
    max-height: 15%;
    background-color: #000;
    font-size: 0.5em;
    bottom: 100%;
  }

  .checkout-clear div {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1em 4em;
    margin-bottom: 6em;
  }
}
