#modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  z-index: 999;
  display: none;
  max-width: 400px;
  width: 90%;
}

#modal.show {
  display: block;
}

#modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  display: none;
  z-index: 998;
}

#modal-overlay.show {
  display: block;
}

.modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.modal-content img {
  max-width: 200px;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.modal-info h3 {
  margin: 0.5rem 0;
  font-size: 1.2rem;
}

.modal-info p {
  margin: 0.2rem 0;
}

.modal-buttons {
  display: flex;
  gap: 10px;
  margin-top: 1rem;
  justify-content: center;
  width: 100%;
  flex: 1;
  padding: 0.5rem;
  color: white;
}

#go-to-cart {
  background-color: var(--red);
  text-transform: uppercase;
  border-radius: 20px;
  padding: 10px 40px;
  font-family: Montserrat, sans-serif;
  font-size: 16px;
  transition: transform .325s;
  display: inline-block;
}
#go-to-cart:hover {
  background-color: var(--off_white);
  box-shadow: 0 5px 0 0 var(--red);
  outline-color: var(--red);
  outline-offset: 0px;
  color: #252525;
  outline-width: 1px;
  outline-style: solid;
  transform: translate(0, -4px);
}

#close-modal {
  background: gray;
  text-transform: uppercase;
  border-radius: 20px;
  font-family: Montserrat, sans-serif;
  font-size: 14px;
  transition: transform .325s;
  display: inline-block;
}
#close-modal:hover {
  background: rgb(94, 94, 94);
}