/* livraria.css — grade da loja de ebooks e página de obrigado.
   Cores translúcidas + laranja da marca para funcionar sobre o tema do site. */

.ebook-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.ebook-card {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.ebook-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 80, 10, 0.5);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}
.ebook-card-cover {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}
.ebook-card-cover--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 20px;
  font-weight: 600;
  background: linear-gradient(135deg, #1b1b1f, #2a2a30);
  color: #f4f4f5;
}
.ebook-card-body { padding: 16px 18px 20px; }
.ebook-card-body h3 { margin: 0 0 4px; font-size: 17px; line-height: 1.25; }
.ebook-card-body p { margin: 0 0 12px; font-size: 13px; opacity: 0.7; }
.ebook-card-price {
  display: inline-block;
  font-weight: 700;
  color: #E8500A;
  font-size: 16px;
}

/* Página de obrigado */
.obrigado-card { max-width: 540px; margin: 0 auto; text-align: center; }
.obrigado-card .btn { margin-top: 20px; }
.obrigado-spinner {
  width: 46px; height: 46px; margin: 0 auto 22px;
  border: 4px solid rgba(232, 80, 10, 0.25);
  border-top-color: #E8500A;
  border-radius: 50%;
  animation: obrigado-spin 0.9s linear infinite;
}
@keyframes obrigado-spin { to { transform: rotate(360deg); } }
.obrigado-check {
  width: 56px; height: 56px; margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: #16a34a; color: #fff;
  font-size: 30px; font-weight: 700;
}
