/* Pe34 Afiliados — design tokens (espelham as variáveis globais do Elementor) */
:root {
	--pe34-bg: #FAF6F3;
	--pe34-surface: #FFFFFF;
	--pe34-ink: #26343A;
	--pe34-muted: #5E676A;
	--pe34-line: #E8E0DB;
	--pe34-accent: #AD4F3A;
	--pe34-accent-dark: #8E3F2E;
	--pe34-blush: #F7E7E0;
	--pe34-deep: #26343A;
	--pe34-radius: 16px;
	--pe34-radius-sm: 10px;
	--pe34-font-head: "Sora", system-ui, sans-serif;
	--pe34-font-body: "DM Sans", system-ui, sans-serif;
	--pe34-shadow: 0 10px 30px rgba(38, 52, 58, 0.08);
}

body {
	background: var(--pe34-bg);
	color: var(--pe34-ink);
	font-family: var(--pe34-font-body);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--pe34-font-head); color: var(--pe34-ink); line-height: 1.15; letter-spacing: -0.015em; }
a { color: var(--pe34-accent); }
a:hover { color: var(--pe34-accent-dark); }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--pe34-accent); outline-offset: 2px; }

/* Barra de transparência */
.pe34-topbar { background: var(--pe34-deep); color: #E3E8EA; font-size: 13px; text-align: center; padding: 7px 16px; }
.pe34-topbar p { margin: 0; }
.pe34-topbar a { color: #FFFFFF; text-decoration: underline; text-underline-offset: 2px; }

/* Layout */
.pe34-main { padding: 24px 0 72px; }
.pe34-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.pe34-wrap--narrow { max-width: 760px; }

/* Breadcrumb */
.pe34-crumbs ol { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--pe34-muted); }
.pe34-crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--pe34-line); }
.pe34-crumbs a { color: var(--pe34-muted); text-decoration: none; }
.pe34-crumbs a:hover { color: var(--pe34-accent); }
.pe34-crumbs [aria-current] { color: var(--pe34-ink); max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Botão CTA */
.pe34-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	background: var(--pe34-accent); color: #FFFFFF !important; text-decoration: none;
	font-family: var(--pe34-font-body); font-weight: 700; font-size: 15px; line-height: 1.2;
	padding: 13px 22px; border-radius: 999px; border: 0;
	transition: background-color .2s ease, transform .15s ease;
}
.pe34-btn:hover { background: var(--pe34-accent-dark); }
.pe34-btn:active { transform: translateY(1px); }
.pe34-btn__arrow { transition: transform .2s ease; }
.pe34-btn:hover .pe34-btn__arrow { transform: translateX(3px); }
.pe34-btn--block { display: flex; width: 100%; }
.pe34-btn--lg { font-size: 17px; padding: 17px 28px; }
.pe34-btn--sm { font-size: 13px; padding: 10px 14px; }

/* Grade de produtos */
.pe34-grid { display: grid; gap: 20px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pe34-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pe34-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1024px) { .pe34-grid, .pe34-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) { .pe34-grid, .pe34-grid--4, .pe34-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }

.pe34-card { background: var(--pe34-surface); border: 1px solid var(--pe34-line); border-radius: var(--pe34-radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s ease, border-color .2s ease; }
.pe34-card:hover { box-shadow: var(--pe34-shadow); border-color: #DCCFC7; }
.pe34-card__media { display: block; aspect-ratio: 1 / 1; background: #FFFFFF; overflow: hidden; }
.pe34-card__media img { width: 100%; height: 100%; object-fit: contain; padding: 12px; transition: transform .35s ease; }
.pe34-card:hover .pe34-card__media img { transform: scale(1.04); }
.pe34-card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; border-top: 1px solid var(--pe34-line); }
.pe34-card__meta { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--pe34-accent); }
.pe34-card__meta a { color: inherit; text-decoration: none; }
.pe34-card__title { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.3; font-family: var(--pe34-font-body); letter-spacing: 0; }
.pe34-card__title a { color: var(--pe34-ink); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pe34-card__title a:hover { color: var(--pe34-accent); }
.pe34-card__actions { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.pe34-card__more { font-size: 14px; text-align: center; color: var(--pe34-muted); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 767px) {
	.pe34-card__body { padding: 12px; }
	.pe34-card__title { font-size: 14px; }
	.pe34-card .pe34-btn { font-size: 13px; padding: 11px 12px; }
	.pe34-card .pe34-btn__arrow { display: none; }
}

/* Placeholder de imagem (exemplo) */
.pe34-img-ph { width: 100%; height: 100%; min-height: 180px; display: flex; align-items: flex-end; padding: 14px; background: linear-gradient(135deg, #F7E7E0 0%, #EFCFC3 45%, #DE9F8C 100%); color: var(--pe34-deep); border-radius: inherit; }
.pe34-img-ph span { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: rgba(255,255,255,.85); padding: 4px 8px; border-radius: 6px; }
.pe34-img-ph--comparativos { background: linear-gradient(135deg, #E3E8EA 0%, #C7D0D3 100%); }
.pe34-img-ph--melhores-produtos { background: linear-gradient(135deg, #F7E3D9 0%, #E8B9A6 100%); }
.pe34-img-ph--beleza { background: linear-gradient(135deg, #F7E7E0 0%, #E8B9A6 100%); }

/* Caixa de produto */
.pe34-box { display: grid; grid-template-columns: 200px 1fr; gap: 24px; background: var(--pe34-surface); border: 1px solid var(--pe34-line); border-radius: var(--pe34-radius); padding: 20px; margin: 28px 0; }
.pe34-box__media img { width: 100%; aspect-ratio: 1/1; object-fit: contain; }
.pe34-box__title { margin: 4px 0 10px; font-size: 20px; }
.pe34-box__title a { color: var(--pe34-ink); text-decoration: none; }
@media (max-width: 600px) { .pe34-box { grid-template-columns: 1fr; } .pe34-box__media { max-width: 220px; margin: 0 auto; } }

.pe34-note { font-size: 13px; color: var(--pe34-muted); margin: 8px 0 0; line-height: 1.5; }
.pe34-muted { color: var(--pe34-muted); font-size: 14px; }
.pe34-empty { background: var(--pe34-surface); border: 1px dashed #D9CCC4; border-radius: var(--pe34-radius); padding: 28px; text-align: center; color: var(--pe34-muted); }

/* Listas */
.pe34-list-check, .pe34-list-warn { list-style: none; padding: 0; margin: 0 0 16px; }
.pe34-list-check li, .pe34-list-warn li { position: relative; padding-left: 26px; margin: 6px 0; }
.pe34-list-check li::before { content: "✓"; position: absolute; left: 0; color: #1F7A4D; font-weight: 700; }
.pe34-list-warn li::before { content: "!"; position: absolute; left: 6px; color: #A15C00; font-weight: 700; }

/* Aviso de afiliado */
.pe34-disclosure { font-size: 14px; line-height: 1.55; color: var(--pe34-ink); background: var(--pe34-blush); border-left: 4px solid var(--pe34-accent); border-radius: 8px; padding: 14px 16px; margin: 28px 0 0; }
.pe34-disclosure--inline { margin: 18px 0; font-size: 13px; }

/* Chips */
.pe34-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.pe34-chip { display: inline-block; font-size: 14px; padding: 7px 14px; border-radius: 999px; background: var(--pe34-surface); border: 1px solid var(--pe34-line); color: var(--pe34-ink); text-decoration: none; }
.pe34-chip:hover, .pe34-chip.is-active { border-color: var(--pe34-accent); color: var(--pe34-accent); }
.pe34-chips--filter { margin-bottom: 28px; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; scrollbar-width: thin; }
.pe34-chips--filter .pe34-chip { white-space: nowrap; }

/* Página de produto */
.pe34-product__top { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.pe34-product__media { background: var(--pe34-surface); border: 1px solid var(--pe34-line); border-radius: 22px; aspect-ratio: 1/1; overflow: hidden; position: sticky; top: 24px; }
.pe34-product__media img { width: 100%; height: 100%; object-fit: contain; padding: 28px; }
.pe34-product__title { font-size: clamp(26px, 3vw, 38px); margin: 8px 0 14px; }
.pe34-product__ideal { margin: 0 0 14px; }
.pe34-product__buy { background: var(--pe34-surface); border: 1px solid var(--pe34-line); border-radius: var(--pe34-radius); padding: 20px; margin: 18px 0 0; }
.pe34-product__body { max-width: 760px; margin: 56px 0 0; }
.pe34-proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; background: var(--pe34-surface); border: 1px solid var(--pe34-line); border-radius: var(--pe34-radius); padding: 20px 22px; margin: 20px 0 28px; }
.pe34-proscons h3 { margin-top: 0; font-size: 17px; }
@media (max-width: 860px) {
	.pe34-product__top { grid-template-columns: 1fr; gap: 20px; }
	.pe34-product__media { position: static; max-width: 520px; }
	.pe34-proscons { grid-template-columns: 1fr; }
}

/* Texto longo */
.pe34-prose { font-size: 18px; line-height: 1.7; }
.pe34-prose > * { max-width: 68ch; }
.pe34-prose h2 { font-size: clamp(22px, 2.4vw, 28px); margin: 44px 0 14px; }
.pe34-prose h3 { font-size: 20px; margin: 30px 0 10px; }
.pe34-prose p, .pe34-prose ul, .pe34-prose ol { margin: 0 0 18px; }
.pe34-prose li { margin: 6px 0; }
.pe34-prose table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 0 0 24px; background: var(--pe34-surface); }
.pe34-prose th, .pe34-prose td { border: 1px solid var(--pe34-line); padding: 10px 12px; text-align: left; vertical-align: top; }
.pe34-prose thead th { background: var(--pe34-blush); }
.pe34-prose .pe34-example, .pe34-example { background: #FFF6E5; border: 1px solid #F0D9A8; color: #5A4210; font-size: 14px; border-radius: 8px; padding: 10px 14px; max-width: 68ch; }

/* Artigo */
.pe34-article__head h1 { font-size: clamp(30px, 4vw, 46px); margin: 6px 0 12px; }
.pe34-article__by { color: var(--pe34-muted); font-size: 14px; margin: 0; }
.pe34-article__cover img { border-radius: var(--pe34-radius); width: 100%; }
.pe34-related { margin-top: 64px; }
.pe34-related h2 { font-size: 26px; margin-bottom: 20px; }

/* Arquivos */
.pe34-archive__head { margin: 0 0 22px; max-width: 760px; }
.pe34-archive__head h1 { font-size: clamp(30px, 4vw, 46px); margin: 0 0 10px; }
.pe34-archive__desc { color: var(--pe34-muted); font-size: 18px; }
.pe34-archive__desc p { margin: 0; }
.pe34-pagination { margin-top: 36px; }
.pe34-pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.pe34-pagination .page-numbers { display: inline-block; min-width: 42px; text-align: center; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--pe34-line); background: var(--pe34-surface); color: var(--pe34-ink); text-decoration: none; }
.pe34-pagination .page-numbers.current { background: var(--pe34-ink); color: #FFFFFF; border-color: var(--pe34-ink); }

/* Cards de artigo */
.pe34-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 960px) { .pe34-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .pe34-posts { grid-template-columns: 1fr; } }
.pe34-post { display: flex; flex-direction: column; gap: 12px; }
.pe34-post__media { display: block; aspect-ratio: 16/10; border-radius: var(--pe34-radius); overflow: hidden; }
.pe34-post__media img, .pe34-post__media .pe34-img-ph { width: 100%; height: 100%; object-fit: cover; }
.pe34-post__title { margin: 0; font-size: 20px; line-height: 1.25; }
.pe34-post__title a { color: var(--pe34-ink); text-decoration: none; }
.pe34-post__title a:hover { color: var(--pe34-accent); }
.pe34-post__excerpt { margin: 0; color: var(--pe34-muted); font-size: 15px; }

/* Categorias */
.pe34-cats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.pe34-cats__item { display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; min-height: 150px; padding: 18px; border-radius: var(--pe34-radius); text-decoration: none; color: var(--pe34-ink); background: var(--pe34-surface); border: 1px solid var(--pe34-line); transition: transform .2s ease, box-shadow .2s ease; }
.pe34-cats__item:hover { transform: translateY(-2px); box-shadow: var(--pe34-shadow); color: var(--pe34-ink); }
.pe34-cats__name { font-family: var(--pe34-font-head); font-weight: 700; font-size: 18px; line-height: 1.15; }
.pe34-cats__count { font-size: 13px; color: var(--pe34-muted); }
.pe34-cats__item--calcados-femininos { background: #F7E1D8; border-color: #F7E1D8; }
.pe34-cats__item--calcados-masculinos { background: #E3E8EA; border-color: #E3E8EA; }
.pe34-cats__item--beleza { background: #F7E7E0; border-color: #F7E7E0; }
.pe34-cats__item--moda-feminina { background: #F4E6E0; border-color: #F4E6E0; }
.pe34-cats__item--infantil { background: #ECEFEE; border-color: #ECEFEE; }
@media (max-width: 960px) { .pe34-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .pe34-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pe34-cats__item { min-height: 110px; } }

/* Tabela comparativa */
.pe34-compare { overflow-x: auto; background: var(--pe34-surface); border: 1px solid var(--pe34-line); border-radius: var(--pe34-radius); }
.pe34-compare table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 14px; }
.pe34-compare th, .pe34-compare td { border-bottom: 1px solid var(--pe34-line); padding: 12px 14px; text-align: left; vertical-align: top; }
.pe34-compare tbody th { font-weight: 700; color: var(--pe34-muted); white-space: nowrap; background: #FBF8F6; position: sticky; left: 0; }
.pe34-compare__head { display: flex; flex-direction: column; gap: 8px; color: var(--pe34-ink); text-decoration: none; font-weight: 600; font-size: 14px; line-height: 1.3; }
.pe34-compare__head img, .pe34-compare__head .pe34-img-ph { width: 96px; height: 96px; min-height: 0; object-fit: contain; }
.pe34-compare__cta td { border-bottom: 0; }

/* Astra: largura total para Elementor e templates do plugin */
.elementor-page .site-content > .ast-container,
.site-content > .ast-container:has(> .pe34-main) { max-width: 100%; padding-left: 0; padding-right: 0; display: block; }
.pe34-main { width: 100%; }

/* Páginas simples (legais) */
body.page:not(.elementor-page) .site-content > .ast-container { max-width: 800px; padding: 40px 20px 72px; }
body.page:not(.elementor-page) .entry-title { font-size: clamp(30px, 4vw, 44px); line-height: 1.12; }
body.page:not(.elementor-page) .entry-content { font-size: 17px; line-height: 1.7; }
body.page:not(.elementor-page) .entry-content h2 { font-size: 24px; margin: 36px 0 12px; }

/* Elementor: abas da vitrine */
.e-tab.e--selected { background-color: var(--pe34-ink) !important; border-color: var(--pe34-ink) !important; }
.e-tab.e--selected p { color: #FFFFFF !important; }
.e-tab:focus-visible { outline: 3px solid var(--pe34-accent); outline-offset: 2px; }

/* Elementor: perguntas frequentes */
.e-accordion-base details { border-bottom: 1px solid var(--pe34-line); }
.e-accordion-base details:first-child { border-top: 1px solid var(--pe34-line); }
.e-accordion-base summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; cursor: pointer; list-style: none; }
.e-accordion-base summary::-webkit-details-marker { display: none; }
.e-accordion-base summary p { font-family: var(--pe34-font-head); font-weight: 600; font-size: 17px; line-height: 1.35; color: var(--pe34-ink); }
.e-accordion-base .e-accordion-item-icon-base { width: 20px !important; color: var(--pe34-accent); }
.e-accordion-base .e-accordion-item-content-base { padding: 0 0 20px; }
.e-accordion-base .e-accordion-item-content-base p { font-family: var(--pe34-font-body); font-size: 16px; line-height: 1.65; color: var(--pe34-muted); max-width: 64ch; }

/* Elementor: menus do cabeçalho e rodapé */
.elementor-location-header { position: sticky; top: 0; z-index: 50; }
.elementor-location-header .elementor-nav-menu--main .elementor-item { font-family: var(--pe34-font-body); font-weight: 500; font-size: 15px; color: var(--pe34-ink); padding: 10px 12px; }
.elementor-location-header .elementor-nav-menu--main .elementor-item:hover,
.elementor-location-header .elementor-nav-menu--main .elementor-item.elementor-item-active { color: var(--pe34-accent); }
.elementor-location-header .elementor-nav-menu--main .elementor-item::after { background-color: var(--pe34-accent) !important; height: 2px; }
.elementor-location-header .elementor-nav-menu--dropdown { background: #FFFFFF; border: 1px solid var(--pe34-line); border-radius: 12px; overflow: hidden; }
.elementor-location-header .elementor-nav-menu--dropdown a { font-family: var(--pe34-font-body); color: var(--pe34-ink) !important; font-size: 15px; padding: 12px 18px !important; }
.elementor-location-header .elementor-nav-menu--dropdown a:hover { background: var(--pe34-blush) !important; color: var(--pe34-accent) !important; }
.elementor-location-header .elementor-menu-toggle { background: transparent; color: var(--pe34-ink); font-size: 24px; }
.elementor-location-header .elementor-nav-menu--dropdown.elementor-nav-menu__container { margin-top: 12px; box-shadow: var(--pe34-shadow); }
.elementor-location-footer .elementor-nav-menu a { font-family: var(--pe34-font-body); font-size: 15px; color: #CBBEC5 !important; padding: 5px 0 !important; }
.elementor-location-footer .elementor-nav-menu a:hover { color: #FFFFFF !important; }
.elementor-location-footer a { color: #FFFFFF; }
.elementor-location-header .e-paragraph-base a, .elementor-location-footer .e-paragraph-base a { text-decoration: none; }
.admin-bar .elementor-location-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .elementor-location-header { top: 46px; } }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; }
}

/* Logo em uma linha */
.elementor-location-header p.e-paragraph-base,
.elementor-location-header p.e-paragraph-base a { white-space: nowrap; display: inline; }

/* Abas: rolagem horizontal no celular */
.e-tabs-menu-base { justify-content: flex-start !important; flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; }
.e-tabs-menu-base::-webkit-scrollbar { display: none; }
.e-tabs-menu-base .e-tab-base { flex: 0 0 auto !important; width: auto !important; }
.e-tabs-menu-base .e-tab-base p { white-space: nowrap; }

/* Vitrines e comparativos dentro de artigos: usam a largura total */
.pe34-prose > .pe34-grid,
.pe34-prose > .pe34-compare,
.pe34-prose > .pe34-posts {
	max-width: none;
	width: min(1160px, calc(100vw - 40px));
	position: relative;
	left: 50%;
	transform: translateX(-50%);
	margin: 8px 0 28px;
}
.pe34-prose .pe34-card__title { font-size: 15px; }

/* Botão do card nunca vira "bolha" em cards estreitos */
.pe34-card { container-type: inline-size; }
.pe34-card .pe34-btn { border-radius: 12px; }
@container (max-width: 240px) {
	.pe34-card .pe34-btn { font-size: 13px; padding: 11px 10px; line-height: 1.25; }
	.pe34-card .pe34-btn__arrow { display: none; }
}
