* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  margin: 0;
  padding: 20px;
  background-color: #f4f4f4;
  color: #333;
}

h1 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 26px;
  color: #222;
}

.descricao-topo {
  font-size: 18px;
  text-align: center;
  margin-bottom: 30px;
  padding: 0 10px;
  color: #444;
}

.grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.produto {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  width: 300px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s;
}

.produto:hover {
  transform: translateY(-2px);
}

.produto img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 10px;
  cursor: pointer;
}

.produto h2 {
  font-size: 20px;
  margin: 10px 0 5px;
  text-align: center;
}

.produto p {
  margin: 5px 0;
  font-size: 15px;
  text-align: center;
}

.reservado {
  color: red;
  font-weight: bold;
  margin-top: 10px;
}

form {
  width: 100%;
  margin-top: 10px;
}

form input,
form button {
  width: 100%;
  padding: 8px;
  margin-top: 8px;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 14px;
}

form button {
  background-color: #28a745;
  color: white;
  border: none;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

form button:hover {
  background-color: #218838;
}

/* Modal de imagem */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  padding: 10px;
  background: transparent;
}

.modal-content img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

.close-modal {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #fff;
  color: #000;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  width: 34px;
  height: 34px;
  line-height: 34px;
  text-align: center;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.25);
  transition: background 0.3s;
}

.close-modal:hover {
  background: #eee;
}

/* Responsividade */

@media (max-width: 768px) {
  .produto {
    width: 90%;
  }
}

.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.popup-content {
  background: white;
  padding: 30px;
  border-radius: 12px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.popup-content h2 {
  margin-top: 0;
  color: #4CAF50;
}

.popup-content button {
  margin-top: 20px;
  background-color: #4CAF50;
  border: none;
  padding: 10px 20px;
  color: white;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
}