/*
Theme Name: Presell Afiliado
Description: Catálogo de landing pages (pre-sell) para afiliados: Início → Categorias → Subcategorias → Produtos. Configure o site em Aparência > Personalizar > Site e cadastre produtos em Produtos.
Version: 3.2
Requires at least: 6.0
Requires PHP: 7.4
Author: Leo
Text Domain: presell-afiliado
*/

:root {
	--accent: #16a34a;
	--accent-dark: #15803d;
	--accent2: #c9a227;
	--text: #1f2937;
	--muted: #6b7280;
	--bg-soft: #f6f7f9;
	--radius: 14px;
	--max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--text);
	line-height: 1.6;
	background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
section { padding: 64px 0; }
.soft { background: var(--bg-soft); }
.center { text-align: center; margin-top: 32px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 16px; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); text-align: center; margin-bottom: 32px; }
h2::after { content: ""; display: block; width: 64px; height: 4px; background: var(--accent2); border-radius: 4px; margin: 14px auto 0; }
p { margin: 0 0 16px; }

/* Topbar / header */
.topbar { background: var(--text); color: #fff; text-align: center; font-size: .9rem; padding: 10px 16px; }
.site-header { padding: 16px 0; border-bottom: 1px solid #eee; }
.site-header .brand { font-weight: 800; font-size: 1.3rem; color: var(--text); text-decoration: none; }

/* Botões */
.btn {
	display: inline-block;
	background: var(--accent);
	color: #fff !important;
	text-decoration: none;
	font-weight: 700;
	font-size: 1.1rem;
	padding: 18px 34px;
	border-radius: 999px;
	box-shadow: 0 8px 20px rgba(0,0,0,.15);
	transition: transform .15s, filter .15s;
	text-align: center;
}
.btn:hover { filter: brightness(.92); transform: translateY(-2px); }
.btn-wa { background: #25d366; }

/* Hero */
.hero .grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero .sub { font-size: 1.15rem; color: var(--muted); }
.hero img { border-radius: var(--radius); margin: 0 auto; }
.hero .hero-logo img { max-width: 420px; width: 100%; margin: 0 0 8px; border-radius: 0; filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
.checks { list-style: none; padding: 0; margin: 0 0 28px; }
.checks li { position: relative; padding-left: 32px; margin-bottom: 10px; font-weight: 600; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-size: .8rem; display: flex; align-items: center; justify-content: center; }

/* Faixa */
.band { background: var(--text); color: #fff; text-align: center; padding: 48px 0; }
.band img { max-height: 260px; width: auto; margin: 0 auto 20px; }
.band h2 { margin: 0; }

/* Benefícios alternados */
.feature { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: center; max-width: 860px; margin: 0 auto 48px; }
.feature.reverse { grid-template-columns: 1fr 220px; }
.feature.reverse .feature-img { order: 2; }
.feature:not(:has(.feature-img)) { grid-template-columns: 1fr; max-width: 760px; margin-left: auto; margin-right: auto; text-align: center; }
.feature-img img { width: 220px; border-radius: var(--radius); margin: 0 auto; }
.feature h3 { font-size: 1.4rem; color: var(--accent-dark); }
.feature p { color: var(--muted); font-size: 1.05rem; }

/* Cards (ingredientes, depoimentos) */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: #fff; padding: 28px; border-radius: var(--radius); box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.card .icon { font-size: 2rem; margin-bottom: 8px; }
.card .ing-img { width: 120px; margin: 0 auto 16px; }
.ingredients .cards:has(.ing-img) .card { text-align: center; }
.ingredients .cards:has(.ing-img) .icon { height: 120px; display: flex; align-items: center; justify-content: center; font-size: 3.5rem; margin-bottom: 16px; }
.intro { max-width: 760px; margin: -12px auto 32px; text-align: center; color: var(--muted); font-size: 1.1rem; }
.card h3 { font-size: 1.15rem; }
.card p { color: var(--muted); margin: 0; }
.review { margin: 0; text-align: center; }
.review .avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; }
.review blockquote { margin: 0 0 12px; font-style: italic; color: var(--muted); }
.review figcaption { font-weight: 700; }

/* Passos */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { text-align: center; position: relative; padding-top: 24px; }
.step .num { display: inline-flex; width: 48px; height: 48px; border-radius: 50%; background: var(--accent2); color: #fff; font-weight: 800; font-size: 1.3rem; align-items: center; justify-content: center; margin-bottom: 14px; }
.step img { width: 160px; height: 160px; object-fit: cover; border-radius: var(--radius); margin: 0 auto 14px; }
.step p { color: var(--muted); }

/* Garantia */
.guarantee-box { display: flex; gap: 32px; align-items: center; max-width: 820px; border: 2px dashed var(--accent2); border-radius: var(--radius); padding: 32px; }
.guarantee-box img { width: 220px; flex-shrink: 0; }
.guarantee-box h2 { text-align: left; }
.guarantee-box h2::after { margin-left: 0; }

/* Kits */
.kits { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; align-items: stretch; }
.kit { position: relative; background: #fff; border: 2px solid #e5e7eb; border-radius: var(--radius); padding: 32px 24px; text-align: center; display: flex; flex-direction: column; }
.kit.featured { border-color: var(--accent); transform: scale(1.03); box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.kit .badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--accent2); color: #fff; font-weight: 700; font-size: .85rem; padding: 4px 14px; border-radius: 999px; white-space: nowrap; }
.kit img { height: 200px; width: 100%; object-fit: contain; margin: 0 auto 16px; }
.kit .price { font-size: 1.3rem; font-weight: 800; color: var(--accent-dark); margin-bottom: 20px; flex-grow: 1; }
.kit .price small { display: block; font-size: .95rem; font-weight: 600; color: var(--muted); margin-top: 4px; }
.offer .note { text-align: center; color: var(--muted); font-size: .95rem; margin-top: 24px; }

/* FAQ */
.faq details { max-width: 760px; margin: 0 auto 12px; border: 1px solid #e5e7eb; border-radius: 10px; padding: 16px 20px; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* Trilha de navegação */
.crumbs { font-size: .9rem; color: var(--muted); padding-top: 14px; padding-bottom: 14px; }
.crumbs a { color: var(--muted); }
.crumbs .sep { margin: 0 6px; }

/* Início / categorias */
.page-head { text-align: center; padding: 48px 0 8px; }
.page-head .sub { font-size: 1.15rem; color: var(--muted); max-width: 680px; margin: 0 auto; }
.listing { padding-top: 32px; }
.tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; margin-bottom: 32px; }
.tile { flex: 0 1 300px; display: flex; flex-direction: column; background: #fff; border: 1px solid #e5e7eb; border-radius: var(--radius); overflow: hidden; color: var(--text); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.tiles-lg { gap: 32px; }
.tiles-lg .tile { flex-basis: 500px; }
.tiles-lg .tile-body strong { font-size: 1.5rem; }
.tile:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.tile img, .tile-ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tile-ph { display: flex; align-items: center; justify-content: center; background: var(--bg-soft); color: var(--accent2); font-size: 3rem; font-weight: 800; }
.tile-body { display: flex; flex-direction: column; gap: 6px; padding: 20px; flex-grow: 1; }
.tile-body strong { font-size: 1.2rem; }
.tile-body span { color: var(--muted); }
.tile-body .tile-more { margin-top: auto; padding-top: 8px; color: var(--accent-dark); font-weight: 700; }
.empty { text-align: center; color: var(--muted); }
.prose { max-width: 760px; }

.sticky-cta { display: none; }

@media (max-width: 800px) {
	section { padding: 44px 0; }
	.hero .grid { grid-template-columns: 1fr; gap: 28px; }
	.hero .grid .media { order: -1; }
	.feature, .feature.reverse { grid-template-columns: 1fr; gap: 20px; text-align: center; }
	.feature.reverse .feature-img { order: 0; }
	.feature-img img { width: 180px; }
	.cards, .steps { grid-template-columns: 1fr; }
	.kit.featured { transform: none; }
	.guarantee-box { flex-direction: column; text-align: center; }
	.guarantee-box h2 { text-align: center; }
	.guarantee-box h2::after { margin-left: auto; }
	.btn { width: 100%; }
	.sticky-cta { display: block; position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 14px; background: rgba(255,255,255,.96); box-shadow: 0 -4px 12px rgba(0,0,0,.08); z-index: 50; }
	.single-produto { padding-bottom: 80px; }
}
