:root {
  --verde: #0b6b74;
  --cinza: #555;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  background: #fff;
  color: #333;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
}

.hero h1 {
  color: var(--verde);
  font-size: 48px;
  margin-bottom: 8px;
}

.hero h2 {
  font-weight: 400;
  color: var(--cinza);
  margin-bottom: 30px;
}

.foto {
  width: 260px;
  height: 260px;
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 30px;
}

.texto {
  max-width: 700px;
  margin: 0 auto 60px;
  color: var(--cinza);
  line-height: 1.6;
}

.presentes h3 {
  color: var(--verde);
  font-size: 32px;
  margin-bottom: 40px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 40px 30px;
}

.item img {
  width: 100%;
  max-width: 160px;
  height: 160px;
  object-fit: contain;
  margin-bottom: 10px;
}

.item span {
  display: block;
  font-weight: 600;
  margin-bottom: 2px;
}

.item small {
  color: #777;
  font-size: 12px;
}

.item {
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

.item:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

.item:active {
  transform: scale(.97);
}

.item.selected {
  animation: pop .4s ease;
}

@keyframes pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.footer {
  margin-top: 80px;
}

.footer h3 {
  color: var(--verde);
  font-size: 32px;
}

.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity .25s ease;
}

.modal-backdrop.active {
  display: flex;
  opacity: 1;
}

.modal {
  background: #fff;
  padding: 20px;
  width: 90%;
  max-width: 400px;
  border-radius: 12px;
  transform: translateY(20px) scale(.95);
  opacity: 0;
  transition: all .25s ease;
}

.modal-backdrop.active .modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}


.modal textarea {
  width: 100%;
  min-height: 100px;
  margin: 15px 0;
}

.modal .actions {
  display: flex;
  gap: 10px;
}

.modal button {
  flex: 1;
  padding: 10px;
  cursor: pointer;
}



/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.3s ease;
}

.loading-spinner {
  text-align: center;
}

.spinner {
  width: 50px;
  height: 50px;
  margin: 0 auto 20px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #0b6b74; /* Adjust color to match your theme */
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-spinner p {
  color: #333;
  font-size: 16px;
  font-weight: 500;
}