:root {
  --bg: #0e1117;
  --card: #1a1f2a;
  --accent: #e8b923;
  --accent2: #f5d547;
  --text: #eef1f5;
  --muted: #9aa3b2;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 14px;
  --font: "DM Sans", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent2);
}

.wrap {
  width: min(1100px, 92vw);
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
}

/* Mercado Pago Checkout Bricks */
.mp-brick-box {
  min-height: 200px;
}

header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 0 2rem;
  border-bottom: 1px solid var(--border);
}

.brand {
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
  color: var(--text);
}

.brand span {
  color: var(--accent);
}

.hero {
  padding: 2rem 0 1rem;
}

.hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero p {
  margin: 0;
  color: var(--muted);
  max-width: 52ch;
}

.loc-bar {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--muted);
}

button.btn,
a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.1rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #c49a16);
  color: #141414;
}

.btn-primary:hover {
  filter: brightness(1.06);
  color: #141414;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .grid.cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card img.cover {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  background: #111;
}

.card-body {
  padding: 1rem 1.15rem 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-body h2 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 800;
}

.meta {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent);
  margin-top: auto;
}

.price small {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  display: none;
  align-items: flex-start;
  justify-content: center;
  z-index: 50;
  padding: 2rem 1rem;
  overflow-y: auto;
}

.modal-backdrop.open {
  display: flex;
}

.modal {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: min(520px, 100%);
  padding: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.modal h2 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
}

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--muted);
}

input,
select,
textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #12151c;
  color: var(--text);
  font: inherit;
  margin-bottom: 0.85rem;
}

.row {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 480px) {
  .row.cols-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.err {
  color: #f87171;
  font-size: 0.9rem;
  margin: 0 0 0.75rem;
}

.ok {
  color: #86efac;
  font-size: 0.9rem;
  margin: 0 0 0.75rem;
}

/* Rodapé de confiança (claro, estilo marketplace) */
.footer-trust {
  margin-top: 3rem;
  background: #f4f6f9;
  color: #1e293b;
}

.footer-trust a {
  color: #2563eb;
}

.footer-trust a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.footer-trust-inner {
  width: min(1100px, 92vw);
  margin: 0 auto;
  padding: 2.25rem 0 2rem;
}

.trust-heading {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
}

.trust-subheading {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
}

.trust-producer-name {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #334155;
}

.trust-cnpj {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: #475569;
}

.trust-contact-email {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}

.trust-contact-phones {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: #334155;
}

.trust-phone-label {
  color: #64748b;
  margin-right: 0.25rem;
}

.btn-trust-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border: 1px solid #93c5fd;
  border-radius: 8px;
  background: #fff;
  color: #2563eb !important;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none !important;
}

.btn-trust-outline:hover {
  background: #eff6ff;
  text-decoration: none !important;
}

.trust-rule {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 1.75rem 0;
}

.trust-cols {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 900px) {
  .trust-cols {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
  }

  .trust-col-border {
    border-left: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    padding: 0 1.25rem;
    margin: 0 -0.25rem;
  }
}

.trust-text {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #475569;
}

.trust-link {
  font-weight: 600;
}

.pay-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

/* Logos em public/img/payments/ — ver LEIA-ME.txt na mesma pasta */
.pay-logo {
  height: 28px;
  width: auto;
  max-width: 56px;
  object-fit: contain;
  object-position: center;
  padding: 0.2rem 0.35rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
}

.pay-logo-pix {
  max-width: 52px;
  padding: 0.25rem 0.4rem;
}

/* Fallback em texto se a imagem não carregar (app.js) */
.pay-fallback {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.5rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  color: #334155;
}

.pay-fallback--pix {
  background: #32bcad;
  border-color: #2aa899;
  color: #fff;
}

.trust-installments {
  margin: 0;
  font-size: 0.82rem;
  color: #15803d;
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  line-height: 1.4;
}

.trust-install-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  background: #dcfce7;
  color: #15803d;
  font-size: 0.7rem;
  font-weight: 800;
  flex-shrink: 0;
}

.trust-seals {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.trust-seal {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.4rem 0.65rem;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #64748b;
}

.trust-seal-mp {
  border-color: #009ee3;
  color: #009ee3;
}

.footer-trust-bar {
  background: #0f172a;
  color: #94a3b8;
  font-size: 0.82rem;
  text-align: center;
  padding: 1rem 1rem 1.25rem;
}

.footer-trust-bar span {
  color: #e2e8f0;
  font-weight: 600;
}

.admin-link {
  font-size: 0.85rem;
  color: var(--muted);
}
