/* ============================================
   Store — listagem + página de vendas + obrigado
   ============================================ */

/* ---------- Listagem ---------- */

.store-hero {
  padding: 2.5rem 0 1.5rem;
  text-align: center;
}

.store-hero__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0 0 0.5rem;
}

.store-hero__subtitle {
  max-width: 42rem;
  margin: 0 auto;
  opacity: 0.8;
  line-height: 1.5;
}

.store-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  padding: 1.5rem 0 3rem;
}

.store-empty {
  padding: 2rem 0;
  text-align: center;
  opacity: 0.7;
}

/* ---------- Card ---------- */

.store-card {
  display: flex;
  flex-direction: column;
  background: var(--surface, #fff);
  border: 1px solid var(--border, rgba(0,0,0,0.08));
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.store-card:hover,
.store-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.store-card__image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--surface-2, #f2f2f2);
}

.store-card__body {
  padding: 1rem 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.store-card__title {
  font-size: 1.05rem;
  line-height: 1.3;
  margin: 0;
}

.store-card__desc {
  font-size: 0.9rem;
  line-height: 1.45;
  opacity: 0.8;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.store-card__price {
  margin-top: auto;
  font-weight: 600;
  font-size: 1rem;
  color: var(--accent, #4c1d95);
}

/* ---------- Página de vendas ---------- */

.store-product {
  max-width: 46rem;
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

.store-product__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0.5rem 0 0.75rem;
  line-height: 1.2;
}

.store-product__description {
  font-size: 1.05rem;
  line-height: 1.55;
  opacity: 0.85;
  margin: 0 0 1rem;
}

.store-product__meta {
  font-size: 0.85rem;
  opacity: 0.65;
  margin-bottom: 1.5rem;
}

.store-product__image-wrap {
  margin: 1.5rem 0 2rem;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-2, #f2f2f2);
}

.store-product__image {
  display: block;
  width: 100%;
  height: auto;
}

.store-product__disclosure {
  font-size: 0.8rem;
  opacity: 0.6;
  margin-top: 2rem;
  line-height: 1.4;
}

.store-product__back {
  margin-top: 1.5rem;
}

.store-product__back-link {
  font-size: 0.9rem;
  text-decoration: none;
  opacity: 0.75;
}

.store-product__back-link:hover {
  opacity: 1;
}

/* ---------- Componentes da oferta (usados no corpo do .md) ---------- */

.store-offer {
  margin: 2rem 0;
  padding: 1.5rem;
  border: 1px solid var(--border, rgba(0,0,0,0.08));
  border-radius: 12px;
  background: var(--surface, #fff);
}

.store-offer h2 {
  margin-top: 0;
  font-size: 1.25rem;
}

.store-offer ul {
  padding-left: 1.2rem;
  line-height: 1.6;
}

.store-price {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  margin: 2rem 0;
  padding: 1.5rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(109,40,217,0.08), rgba(76,29,149,0.04));
  border: 1px solid rgba(109,40,217,0.2);
}

.store-price__label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.7;
}

.store-price__value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent, #4c1d95);
  line-height: 1.1;
}

.store-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin: 2rem 0;
}

.store-cta__button {
  display: inline-block;
  padding: 0.9rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background: var(--accent, #4c1d95);
  border-radius: 999px;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.store-cta__button:hover,
.store-cta__button:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.store-cta__note {
  font-size: 0.8rem;
  opacity: 0.65;
  text-align: center;
  max-width: 32rem;
}

/* ---------- Página de obrigado ---------- */

.thanks {
  max-width: 38rem;
  margin: 0 auto;
  padding: 3rem 0;
  text-align: center;
}

.thanks__title {
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  margin: 0 0 0.75rem;
}

.thanks__text {
  font-size: 1.05rem;
  line-height: 1.55;
  opacity: 0.85;
  margin: 0 0 1.5rem;
}

.thanks__status {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  background: var(--surface-2, #f2f2f2);
  font-size: 0.95rem;
  line-height: 1.5;
}

.thanks__status--ok {
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.3);
}

.thanks__status--error {
  background: rgba(239,68,68,0.10);
  border: 1px solid rgba(239,68,68,0.3);
}

.thanks__download {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.85rem 1.8rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background: var(--accent, #4c1d95);
  border-radius: 999px;
}

.thanks__back {
  display: block;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* ---------- Dark mode ---------- */

@media (prefers-color-scheme: dark) {
  .store-card,
  .store-offer {
    background: var(--surface-dark, #141414);
    border-color: rgba(255,255,255,0.08);
  }
  .store-card__image,
  .store-product__image-wrap {
    background: var(--surface-2-dark, #1e1e1e);
  }
  .store-price {
    background: linear-gradient(135deg, rgba(139,92,246,0.15), rgba(109,40,217,0.05));
    border-color: rgba(139,92,246,0.3);
  }
  .thanks__status {
    background: var(--surface-2-dark, #1e1e1e);
  }
}