/* =========================================================
   COMPRAR
========================================================= */

.comprar {
  padding-top: 130px;
  background: #ffffff;
}

/* Alinhado a .section-tag do index */
.section-tag {
  font-size: 13px;
  letter-spacing: 3px;
  color: #7a7a7a;
}

/* ========= 1 — Intro centrada ========= */
.comprar-intro {
  padding: 80px 8%;
  text-align: center;
  background: #eadaea;
}

.comprar-intro-inner {
  max-width: 560px;
  margin: 0 auto;
}

.comprar-intro h1 {
  font-size: 52px;
  color: #7a7a7a;
  font-weight: 500;
  margin-bottom: 14px;
}

.comprar-intro h1 em {
  font-family: "Cheri", cursive;
  font-style: italic;
  color: #cfb1d1;
  font-weight: normal;
}

.comprar-intro .section-tag {
  margin-bottom: 20px;
}

.comprar-intro-title {
  font-size: clamp(2.5rem, 5vw, 3.25rem);
  margin-bottom: 24px;
}

.comprar-intro .title-elegant span {
  font-style: italic;
}

.comprar-intro-text {
  font-size: 16px;
  line-height: 1.8;
  color: #7a7a7a;
}

/* COMPRAR */
/* SEÇÃO */
.produtos {
  padding: 40px 8%;
  background: #ffffff;
  text-align: center;
}

/* GRID */
.cards-produtos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  padding: 50px 30px;
}

/* CARD */
.produto-card {
  display: flex;
  flex-direction: column;
  background: #ffffffcc;
  backdrop-filter: blur(6px);
  border: 1px solid #e7d0e6;
  border-radius: 25px;
  overflow: hidden;
  transition: 0.4s;
}

.produto-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(207, 177, 209, 0.2);
}

/* IMAGEM */
.produto-img {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f1f8;
  padding: 20px;
  overflow: hidden; /* impede de estourar */
}

.produto-img img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* mantém proporção e centraliza */
}

.produto-card:hover img {
  transform: scale(1.08);
}

/* CONTEÚDO */
.produto-content {
  padding: 25px;
  text-align: left;

  display: flex;
  flex-direction: column;
  flex: 1; /* ESSENCIAL */
}

.produto-content h3 {
  margin-bottom: 10px;
  color: #7a7a7a;
}

.produto-content p {
  font-size: 14px;
  color: #777;
  margin-bottom: 20px;
}

.produto-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

/* BOTÃO */
.btn-comprar {
  background: #b59ac9;
  color: #3e3e3e;
  padding: 10px 18px;
  border-radius: 25px;
  font-size: 13px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: 0.3s;
}

.btn-comprar:hover {
  background: #b59ac9;
  color: white;
}

/* NOTIFICAÇÃO */

.toast-message {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #cdb3d0;
  color: #7a7a7a;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 14px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 9999;
}

.toast-message.show {
  opacity: 1;
  transform: translateY(0);
}

/* MOBILE - NOTIFICAÇÃO */
@media (max-width: 768px) {
  .toast-message {
    left: 50%;
    right: auto;
    bottom: 20px;
    transform: translateX(-50%) translateY(20px);
    width: calc(100% - 32px);
    max-width: 400px;
    text-align: center;
  }

  .toast-message.show {
    transform: translateX(-50%) translateY(0);
  }
}

/* ========= 2 — Modal ========= */

.modal {
  position: fixed;
  inset: 0;
  display: none;
  padding-top: 150px;

  justify-content: center;
  align-items: center;

  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(5px);

  z-index: 999;
}

.modal-content {
  width: 100%;
  max-width: 800px;

  background: #fff;
  border-radius: 16px;
  padding: 30px;

  display: flex;
  align-items: center;

  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal-close {
  position: absolute;
  top: 15px;
  left: 15px;

  width: 36px;
  height: 36px;

  border-radius: 50%;
  border: none;

  background: #f0f0f0;
  cursor: pointer;
}

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

.modal-body {
  display: flex;
  gap: 25px;
  width: 100%;
  height: 100%;
}

.modal-body img {
  width: 220px;
  height: 220px;
  object-fit: contain;

  border-radius: 10px;
  background: #f8f8f8;
  padding: 10px;

  flex-shrink: 0;
}

.modal-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.modal-info h2 {
  font-size: 26px;
  margin-bottom: 10px;
}

.modal-info p {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 10px;
}

.modal-info h3 {
  font-size: 22px;
  margin: 15px 0;
  color: #8e44ad; /* mantém tua identidade */
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin: 15px 0;
}

.modal-actions input {
  width: 70px;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  text-align: center;
}

.modal-actions button {
  background: #b59ac9;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;

  cursor: pointer;
  font-weight: 500;

  transition: 0.2s;
}

.modal-actions button:hover {
  transform: scale(1.05);
}

/* animações */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* RESPONSIVO (importante) */

@media (max-width: 768px) {
  .modal {
    padding-top: 10px;
  }

  .modal-body {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .modal-content {
    height: auto;
    padding: 20px;

    padding: 18px;
    border-radius: 14px;

    max-height: 90vh;
    overflow-y: auto;
    animation: subirModal 0.3s ease;
  }

  .modal-body img {
    width: 140px;
    height: 140px;
  }

  .modal-info h2 {
    font-size: 20px;
  }

  .modal-info p {
    font-size: 14px;
  }

  .modal-info h3 {
    font-size: 18px;
  }

  .modal-actions {
    flex-direction: column;
    width: 100%;
  }

  .modal-actions input {
    width: 100%;
  }

  .modal-actions button {
    width: 100%;
  }

  .modal-close {
    right: 10px;
    left: auto;
    top: 10px;
  }

  @keyframes subirModal {
    from {
      transform: translateY(40px);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }
}
