@import url('https://fonts.googleapis.com/css2?family=Parisienne&family=Poppins:wght@300;400;500&display=swap');

/* ========== RESET GLOBAL ========== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", sans-serif;
  background: url('fundo4.jpeg') no-repeat center center / cover;
  color: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 20px;
}

/* ========== TITULAÇÃO ========== */
section {
  max-width: 1000px;
  width: 100%;
}

#gifts h2 {
  color: #7C8C5E;
  font-size: 2.8rem;
  font-family: "Parisienne", cursive;
  font-weight: 100;
  padding: 15px 0 25px;

}

.subtitle {
  margin-bottom: 20px;
  font-size: 1rem;
}

#gifts span {
  font-weight: bold;
}

/* ========== GRID DE PRESENTES ========== */
.gift-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.gift-box {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #7C8C5E;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.gift-box:hover {
  transform: translateY(-5px);
}

.gift-box img {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 12px;
  margin-bottom: 16px;
}

.gift-box h3 {
  color: #7C8C5E;
  margin: 8px 0;
}

.gift-box p {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 10px;
}

.price {
  font-weight: bold;
  color: #444;
  margin-bottom: 16px;
}

/* ========== BOTÕES ========== */
button {
  background: #7C8C5E;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: 0.3s ease;
}

button:hover {
  background: #C7D6A8;
  color: #000;
  border: 1px solid #7C8C5E;
}

footer {
  width: 100%;
  padding: 3px 0;
  margin-top: 5px;
  font-size: 0.4rem;
  text-align: right;
}

footer a {
  color: #7C8C5E;
  text-decoration: none; 
}

/* ========== MODAL ========== */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  max-width: 400px;
  width: 90%;
}

.modal-content h2 {
  color: #7C8C5E;
  margin-bottom: 10px;
}

.modal-content p {
  color: #555;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.payment-buttons button {
  width: 100%;
  margin-bottom: 10px;
}

#otherBtn {
    width: 85%;
    margin: 20px 0 20px;
  }

.close-btn {
  background: transparent;
  color: #999;
  font-size: 0.9rem;
  margin-top: 10px;
}

/* ========== MOBILE PEQUENO (até 480px) ========== */
@media screen and (max-width: 480px) {

  body {
    padding: 20px 12px;
  }

  #gifts h2 {
    font-size: 2.2rem;
  }

  .subtitle {
    font-size: 0.9rem;
  }

  .gift-grid {
    grid-template-columns: 1fr; /* Apenas 1 card por linha */
    gap: 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0 auto;
    align-items: center;
  }

  .gift-box {
    width: 85%;
    padding: 18px;
    border-radius: 12px;

  }

  .gift-box img {
    width: 80%;
    margin-bottom: 12px;
  }

  .gift-box p {
    font-size: 0.85rem;
  }

  button {
    font-size: 0.9rem;
    padding: 8px 14px;
  }

  .modal-content {
    width: 90%;
    padding: 22px;
  }

  footer {
    text-align: center;
  }
}

/* ========== MOBILE MÉDIO (481px a 767px) ========== */
@media screen and (min-width: 481px) and (max-width: 767px) {

  body {
    padding: 30px 18px;
  }

  #gifts h2 {
    font-size: 2.4rem;
  }

  .gift-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 cards por linha */
    gap: 22px;
  }

  .gift-box {
    padding: 20px;
  }

  .gift-box p {
    font-size: 0.9rem;
  }

  .modal-content {
    width: 80%;
  }

  footer {
    text-align: center;
  }
}

/* ========== TABLETS (768px a 1024px) ========== */
@media screen and (min-width: 768px) and (max-width: 1024px) {

  #gifts h2 {
    font-size: 2.6rem;
  }

  .gift-grid {
    grid-template-columns: repeat(2, 1fr); /* Mantém 2 por linha */
    gap: 28px;
  }

  .gift-box {
    padding: 22px;
  }

  .modal-content {
    width: 70%;
  }

  footer {
    text-align: center;
  }
}

/* ========== DESKTOPS MÉDIOS/GRANDES (1025px+) ========== */
@media screen and (min-width: 1025px) {
  .gift-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  #gifts h2 {
    font-size: 2.8rem;
  }
}