:root {
	--background: 210 20% 98%;
	--foreground: 220 30% 12%;
	--card: 0 0% 100%;
	--card-foreground: 220 30% 12%;
	--primary: 160 65% 38%;
	--primary-foreground: 0 0% 100%;
	--secondary: 220 25% 94%;
	--secondary-foreground: 220 30% 12%;
	--muted: 220 20% 96%;
	--muted-foreground: 220 10% 50%;
	--accent: 160 50% 95%;
	--accent-foreground: 160 65% 28%;
	--border: 220 15% 90%;
	--input: 220 15% 90%;
	--ring: 160 65% 38%;
	--radius: .75rem;
	--hero-bg: 220 30% 12%;
	--hero-foreground: 210 20% 98%;
	--hero-muted: 220 15% 60%;
	--price-old: 0 60% 55%;
	--price-new: 160 65% 32%;
	--price-free: 160 65% 38%;
	--gradient-cta: linear-gradient(135deg, hsl(160 65% 38%), hsl(160 55% 45%));
	--shadow-card: 0 1px 3px hsl(220 30% 12% / .06), 0 4px 12px hsl(220 30% 12% / .04);
	--shadow-card-hover: 0 4px 12px hsl(220 30% 12% / .1), 0 12px 32px hsl(220 30% 12% / .06);
	--shadow-cta: 0 4px 16px hsl(160 65% 38% / .3);
	--font-display: 'Space Grotesk', sans-serif;
	--font-body: 'DM Sans', sans-serif;
	--container-max: 1320px;
	--container-pad: clamp(1rem, 2.4vw, 1.5rem);
	--section-space: clamp(2.75rem, 5vw, 4.5rem);
	--surface-space: clamp(1rem, 2.2vw, 1.75rem);
	--flow-space-sm: clamp(.7rem, 1.6vw, 1rem);
	--flow-space-md: clamp(1rem, 2.2vw, 1.5rem);
	--flow-space-lg: clamp(1.4rem, 3.2vw, 2.2rem);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { height: 100%; }
body {
	font-family: var(--font-body);
	background-color: hsl(var(--background));
	color: hsl(var(--foreground));
	line-height: 1.625;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}
main { flex: 1; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); line-height: 1.2; margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

[data-lucide] {
	width: 1em;
	height: 1em;
	stroke-width: 2;
	vertical-align: -0.125em;
}

.container {
	width: min(var(--container-max), calc(100% - (var(--container-pad) * 2)));
	margin: 0 auto;
}

@keyframes fade-up {
	from { opacity: 0; transform: translateY(20px); }
	to { opacity: 1; transform: translateY(0); }
}

.animate-fade-up { opacity: 0; }
.animate-fade-up.is-visible { animation: fade-up .5s ease-out forwards; }
.animate-delay-200 { animation-delay: .2s; }

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	border-radius: calc(var(--radius) - 2px);
	border: 1px solid transparent;
	font-family: var(--font-display);
	font-weight: 600;
	transition: all .2s ease;
	cursor: pointer;
	padding: .65rem 1.2rem;
}
.btn-sm { padding: .45rem .9rem; font-size: .8125rem; }
.btn-lg { padding: .75rem 1.5rem; font-size: .9375rem; }
.btn-icon { width: 2.25rem; height: 2.25rem; padding: 0; }
.btn-block { width: 100%; }
.btn-primary { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); box-shadow: var(--shadow-cta); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-secondary { background: hsl(var(--secondary)); color: hsl(var(--secondary-foreground)); }
.btn-secondary:hover { filter: brightness(0.98); }
.btn-outline { border-color: hsl(var(--border)); color: hsl(var(--foreground)); background: transparent; }
.btn-outline:hover { background: hsl(var(--muted)); }
.btn-ghost { color: hsl(var(--muted-foreground)); background: transparent; }
.btn-ghost:hover { background: hsl(var(--muted)); color: hsl(var(--foreground)); }
.btn-hero { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.btn-hero-outline { border: 2px solid hsl(var(--hero-foreground) / .3); color: hsl(var(--hero-foreground)); }

.site-header {
	position: sticky;
	top: 0;
	z-index: 60;
	height: 64px;
	border-bottom: 1px solid hsl(var(--border) / .5);
	background: hsl(var(--card) / .88);
	backdrop-filter: blur(24px);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 1rem; }
.header-brand { display: flex; align-items: center; gap: .55rem; }
.header-brand img { max-height: 38px; width: auto; }
.header-brand .custom-logo { max-height: 38px; width: auto; }
.header-brand-text { display: none; }
@media (min-width: 640px) { .header-brand-text { display: block; } }
.header-brand-name { font-size: .875rem; font-weight: 700; }
.header-brand-sub { display: block; font-size: .625rem; color: hsl(var(--muted-foreground)); }

.header-nav { display: none; gap: .25rem; }
.header-nav-list { display: flex; gap: .25rem; }
.header-nav a { padding: .5rem .75rem; border-radius: 6px; color: hsl(var(--muted-foreground)); font-size: .875rem; }
.header-nav a:hover { color: hsl(var(--foreground)); background: hsl(var(--muted)); }
.header-nav-list > .menu-item-has-children { position: relative; }
.header-nav-list > .menu-item-has-children > a::after,
.mobile-menu-list .menu-item-has-children > a::after {
	content: '▾';
	font-size: .65rem;
	margin-left: .5rem;
	display: inline-block;
	transition: transform .2s ease;
}
.header-nav-list > .menu-item-has-children.is-open > a::after,
.mobile-menu-list .menu-item-has-children.is-open > a::after { transform: rotate(180deg); }
.header-nav-list .sub-menu,
.mobile-menu-list .sub-menu {
	display: none;
	list-style: none;
	margin: 0;
	padding: 0;
}
.header-nav-list > .menu-item-has-children > .sub-menu {
	position: absolute;
	top: calc(100% + .45rem);
	left: 0;
	min-width: 220px;
	padding: .35rem;
	border: 1px solid hsl(var(--border));
	border-radius: .75rem;
	background: hsl(var(--card));
	box-shadow: var(--shadow-card-hover);
	z-index: 70;
}
.header-nav-list > .menu-item-has-children > .sub-menu a {
	display: block;
	padding: .55rem .65rem;
	font-size: .85rem;
	border-radius: .5rem;
}
.header-nav-list > .menu-item-has-children.is-open > .sub-menu,
.mobile-menu-list .menu-item-has-children.is-open > .sub-menu { display: block; }
@media (min-width: 768px) { .header-nav { display: flex; } }

.header-actions { display: flex; align-items: center; gap: .4rem; }
.header-auth-action { display: none; }
@media (min-width: 768px) { .header-auth-action { display: inline-flex; } }
.header-search { position: relative; display: flex; align-items: center; }
.header-search-toggle { background: none; border: none; padding: .5rem; cursor: pointer; color: hsl(var(--muted-foreground)); font-size: 1rem; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; }
.header-search-toggle:hover { color: hsl(var(--foreground)); background: hsl(var(--muted)); border-radius: 6px; }
.header-search-toggle.is-open { display: none; }
.header-search-form { display: none; flex: 1; align-items: center; gap: .5rem; min-width: 200px; }
.header-search-form.is-open { display: flex; }
.header-search-input { flex: 1; border: 1px solid hsl(var(--border)); border-radius: .5rem; padding: .5rem .75rem; font-size: .9rem; background: hsl(var(--input-bg, var(--background))); color: hsl(var(--foreground)); transition: all 0.2s ease; }
.header-search-input:focus { outline: none; border-color: hsl(var(--primary)); box-shadow: 0 0 0 3px hsl(var(--primary) / 0.1); }
.header-search-btn { background: hsl(var(--primary)); border: none; border-radius: .5rem; padding: .5rem .75rem; cursor: pointer; color: hsl(var(--primary-foreground)); display: flex; align-items: center; justify-content: center; transition: all 0.2s ease; }
.header-search-btn:hover { background: hsl(var(--primary) / 0.9); }

.badge { display: inline-flex; border-radius: 9999px; padding: .1rem .45rem; font-size: .7rem; font-weight: 600; }
.badge-primary { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.header-cart-btn { position: relative; margin-right: .25rem; }
.cart-count-badge {
	position: absolute;
	top: -0.3rem;
	right: -0.45rem;
	min-width: 1rem;
	height: 1rem;
	padding: 0 .2rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	font-size: .62rem;
}

.mobile-menu { display: none; border-top: 1px solid hsl(var(--border)); padding: .75rem 1rem 1rem; background: hsl(var(--card)); }
.mobile-menu-list { display: flex; flex-direction: column; gap: .15rem; }
.mobile-menu-list a { display: block; padding: .65rem .75rem; border-radius: 6px; color: hsl(var(--muted-foreground)); }
.mobile-menu-list .menu-item-has-children > .sub-menu {
	padding-left: .75rem;
	margin-top: .1rem;
	border-left: 2px solid hsl(var(--border));
}
.mobile-menu-list .sub-menu a {
	padding: .5rem .75rem;
	font-size: .84rem;
}
.mobile-menu.is-open { display: block; }
.mobile-menu-actions { display: flex; gap: .5rem; margin-top: .75rem; }

@media (min-width: 768px) { .btn-hamburger, .mobile-menu { display: none !important; } }

.hero { position: relative; overflow: hidden; background: hsl(var(--hero-bg)); color: hsl(var(--hero-foreground)); }
.hero-pattern {
	position: absolute;
	inset: 0;
	opacity: .03;
	background-image: radial-gradient(circle at 1px 1px, hsl(var(--hero-foreground)) 1px, transparent 0);
	background-size: 32px 32px;
}
.hero .container { position: relative; padding-top: clamp(3.25rem, 7vw, 5rem); padding-bottom: clamp(3.25rem, 7vw, 5rem); }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1fr 1fr; } }
.hero-badge { display: inline-flex; align-items: center; gap: .5rem; border: 1px solid hsl(var(--hero-foreground) / .1); border-radius: 9999px; padding: .375rem 1rem; font-size: .875rem; color: hsl(var(--hero-muted)); background: hsl(var(--hero-foreground) / .05); margin-bottom: 1.5rem; }
.hero-badge i, .hero-badge svg { color: hsl(var(--primary)); }
.hero h1 { margin-top: 1.2rem; font-size: clamp(2rem, 4vw, 3.5rem); }
.text-gradient { background-image: var(--gradient-cta); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-description { margin-top: 1rem; max-width: 34rem; color: hsl(var(--hero-muted)); font-size: 1.125rem; }
.hero-benefits { margin-top: 1.3rem; display: flex; flex-direction: column; gap: .5rem; }
.hero-benefits li { display: flex; align-items: center; gap: .5rem; font-size: .875rem; color: hsl(var(--hero-muted)); }
.hero-benefits i, .hero-benefits svg { color: hsl(var(--primary)); width: 16px; height: 16px; flex-shrink: 0; }
.hero-cta { margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-note { margin-top: 1rem; color: hsl(var(--hero-muted) / 0.6); font-size: .75rem; }
.hero-note i, .hero-note svg { color: hsl(var(--primary)); }
.hero-stats { display: none; }
@media (min-width: 1024px) { .hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; max-width: 28rem; margin: 0 auto; } }
.stat-card { border-radius: 1rem; border: 1px solid hsl(var(--hero-foreground) / .1); background: hsl(var(--hero-foreground) / .05); padding: 1.35rem; }
.stat-card-value { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; color: hsl(var(--primary)); }
.stat-card-label { color: hsl(var(--hero-muted)); font-size: .875rem; }

.section { padding: var(--section-space) 0; }
.section-alt-50 { background: hsl(var(--muted) / .5); }
.section-hero-bg { background: hsl(var(--hero-bg)); color: hsl(var(--hero-foreground)); }
.section-title { text-align: center; margin-bottom: clamp(1.4rem, 3vw, 2.25rem); }
.section-title h2 { font-size: 2rem; }
.section-title p { margin-top: .65rem; color: hsl(var(--muted-foreground)); }
.section-title-bar { display: block; width: 48px; height: 4px; border-radius: 9999px; margin: 1rem auto 0; background: hsl(var(--primary)); }
/* Espaçamento entre seções na front-page: separa grid de downloads do próximo título */
.edd_downloads_list + .section-title,
p + .section-title { margin-top: var(--section-space); }

.product-grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }

/* Heading blocks usados no editor WP (front-page) */
.heading-block {
	margin: 0 0 1.5rem;
}

.heading-block.heading-center {
	text-align: center;
}

.heading-block h1,
.heading-block h2,
.heading-block h3 {
	font-family: var(--font-display);
	font-size: clamp(1.4rem, 3vw, 2rem);
	font-weight: 700;
	color: hsl(var(--foreground));
	line-height: 1.2;
	margin: 0;
}

/* Seção de categoria na front-page (wrapper em torno de heading + grid) */
.front-page-section {
	margin-top: var(--section-space);
}

/* [downloads] shortcode list (EDD) */
.edd_downloads_list {
	display: grid;
	gap: 1.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}
@media (min-width: 640px) {
	.edd_downloads_list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
	.edd_downloads_list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.edd_downloads_list .edd_download,
.edd_downloads_list .edd_download_outer,
.edd_downloads_list .edd_download_inner,
.edd_downloads_list .col-sm-6,
.edd_downloads_list .col-md-4 {
	width: auto;
	float: none;
	margin: 0;
	padding: 0;
}

.product-card {
	display: flex;
	flex-direction: column;
	border-radius: var(--radius);
	border: 1px solid hsl(var(--border));
	background: hsl(var(--card));
	box-shadow: var(--shadow-card);
	transition: .2s ease;
	position: relative;
}
.product-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-4px); }
.product-card-link {
	display: flex;
	flex-direction: column;
	flex: 1;
	border-radius: var(--radius);
}
.product-card-image { position: relative; background: hsl(var(--muted)); padding: 1rem; }
.product-card-image img { margin: 0 auto; height: 176px; width: auto; object-fit: contain; }
.product-card-badge { position: absolute; right: .75rem; top: .75rem; border-radius: 9999px; background: hsl(var(--primary)); color: #fff; padding: .2rem .6rem; font-size: .75rem; }
.product-card-body { display: flex; flex-direction: column; flex: 1; padding: 1rem; }
.product-card-category { margin-bottom: .25rem; font-size: .75rem; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; color: hsl(var(--primary)); }
.product-card-title { flex: 1; font-family: var(--font-display); font-size: .875rem; font-weight: 600; line-height: 1.4; color: hsl(var(--card-foreground)); }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card-footer { margin-top: .75rem; display: flex; align-items: center; justify-content: space-between; }
.product-card-cart {
	width: 2rem;
	height: 2rem;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	border-radius: 6px;
	color: hsl(var(--muted-foreground)) !important;
	flex-shrink: 0;
	transition: color .2s;
	border: none !important;
	background: none !important;
	cursor: pointer;
	padding: 0 !important;
	position: absolute;
	bottom: 1rem;
	right: 1rem;
	z-index: 1000;
	text-decoration: none !important;
	font-size: 0;
	line-height: 1;
	margin: 0;
	pointer-events: auto;
}
.product-card-cart:hover {
	color: hsl(var(--primary)) !important;
	background: hsl(var(--muted)) !important;
}
.product-card-cart--in-cart {
	color: hsl(var(--primary)) !important;
	background: hsl(var(--accent)) !important;
}
.product-card-cart--in-cart:hover {
	color: hsl(var(--primary-foreground)) !important;
	background: hsl(var(--primary)) !important;
}
.product-card-cart i,
.product-card-cart svg {
	width: 20px !important;
	height: 20px !important;
	font-size: 1rem;
}
.product-card-prices { display: flex; align-items: baseline; gap: .5rem; }
.price-old { font-size: .875rem; color: hsl(var(--price-old)); text-decoration: line-through; }
.price-new, .price-free { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; }
.price-new { color: hsl(var(--price-new)); }
.price-free { color: hsl(var(--price-free)); }

.benefits-grid { display: grid; gap: 1.2rem; }
@media (min-width: 640px) { .benefits-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .benefits-grid { grid-template-columns: repeat(3, 1fr); } }
.benefit-card { border-radius: var(--radius); border: 1px solid hsl(var(--border)); background: hsl(var(--card)); box-shadow: var(--shadow-card); padding: 1.25rem; }
.benefit-icon { width: 44px; height: 44px; border-radius: 8px; background: hsl(var(--accent)); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; color: hsl(var(--accent-foreground)); }
.benefit-icon i, .benefit-icon svg { width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; }
.benefit-card h3 { font-size: 1rem; font-weight: 600; }
.benefit-card p { margin-top: .5rem; color: hsl(var(--muted-foreground)); font-size: .9rem; }

.testimonials-intro h2 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: hsl(var(--foreground)); line-height: 1.6; }
.testimonials-grid { display: grid; gap: 1.5rem; margin-top: 2rem; }
@media (min-width: 768px) { .testimonials-grid { grid-template-columns: 1fr 1fr; } }
.testimonial-card {
	border-radius: .75rem;
	border: 1px solid hsl(var(--border));
	background: hsl(var(--card));
	padding: 1.5rem;
	box-shadow: var(--shadow-card);
	transition: box-shadow .2s ease;
	display: grid;
	grid-template-columns: 2.5rem 1fr;
	column-gap: .9rem;
	align-items: start;
}
.testimonial-card:hover { box-shadow: var(--shadow-card-hover); }
.testimonial-quote-icon { width: 2.5rem; height: 2.5rem; border-radius: 50%; background: hsl(var(--primary) / .1); display: flex; align-items: center; justify-content: center; margin-bottom: 0; }
.testimonial-quote-icon i, .testimonial-quote-icon svg { color: hsl(var(--primary)); }
.testimonial-card blockquote { margin: 0; font-size: .875rem; line-height: 1.625; color: hsl(var(--muted-foreground)); }
.testimonial-author { grid-column: 1 / -1; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid hsl(var(--border)); }
.testimonial-author-name { font-family: var(--font-display); font-size: .875rem; font-weight: 600; color: hsl(var(--foreground)); }
.testimonial-author-location { font-size: .75rem; color: hsl(var(--muted-foreground)); }

.cta-section { text-align: center; }
.cta-section h2 { font-size: 1.875rem; font-weight: 700; }
@media (min-width: 640px) { .cta-section h2 { font-size: 2.25rem; } }
.cta-section p { margin: 1rem auto 0; max-width: 28rem; color: hsl(var(--hero-muted)); }
.cta-section .hero-cta { margin-top: 2rem; justify-content: center; }

.site-footer { border-top: 1px solid hsl(var(--border)); background: hsl(var(--hero-bg)); color: hsl(var(--hero-foreground)); padding: 3rem 0; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.7fr 1fr 1fr; } }
.footer-brand-column { max-width: 44rem; }
.footer-brand { display: flex; align-items: center; gap: .5rem; }
.footer-brand-icon { width: 32px; height: 32px; border-radius: 8px; background: hsl(var(--primary)); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; }
.footer-description { margin-top: .75rem; color: hsl(var(--hero-muted)); font-size: .875rem; }
.footer-column h4 { font-size: .875rem; }
.footer-column ul { margin-top: .75rem; display: flex; flex-direction: column; gap: .45rem; }
.footer-column a { color: hsl(var(--hero-muted)); font-size: .875rem; }
.footer-column a:hover { color: hsl(var(--primary)); }
.footer-bottom { margin-top: 2.2rem; padding-top: 1.4rem; border-top: 1px solid hsl(var(--hero-foreground) / .1); text-align: center; font-size: .75rem; color: hsl(var(--hero-muted)); }

.detail-banner { background: hsl(var(--hero-bg)); color: hsl(var(--hero-foreground)); padding: clamp(1.85rem, 4vw, 2.5rem) 0; }
.detail-banner h1 { margin-top: 1rem; font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
@media (min-width: 640px) { .detail-banner h1 { font-size: 1.875rem; } }
@media (min-width: 1024px) { .detail-banner h1 { font-size: 2.25rem; } }
.breadcrumb { display: flex; gap: .4rem; align-items: center; color: hsl(var(--hero-muted)); font-size: .875rem; }
.breadcrumb-sep { opacity: .6; font-size: .75rem; width: .9rem; height: .9rem; }
.breadcrumb a:hover { color: hsl(var(--primary)); }

.detail-grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); padding: clamp(1.75rem, 3.8vw, 3rem) 0; }
@media (min-width: 1024px) { .detail-grid { grid-template-columns: 1fr 380px; } }
.detail-main > * + * { margin-top: var(--flow-space-lg); }
.detail-image-row { display: flex; flex-direction: column; gap: 2rem; }
@media (min-width: 640px) { .detail-image-row { flex-direction: row; } }
.detail-image-row > div:first-child { width: 100%; max-width: 12rem; margin: 0 auto; flex-shrink: 0; }
@media (min-width: 640px) { .detail-image-row > div:first-child { margin: 0; } }
.detail-image-row > div:last-child { flex: 1; min-height: 12rem; }
.detail-image-row img { width: 100%; max-width: 12rem; margin: 0 auto; border-radius: var(--radius); object-fit: contain; }

.detail-section-title { font-size: 1.25rem; font-weight: 600; }
.detail-subsection-title { font-size: 1.125rem; font-weight: 600; }
.detail-description { margin-top: .75rem; }
.detail-description.page-content {
	background: transparent;
	border: 0;
	box-shadow: none;
	padding: 0;
}
.wp-main-content--extra:empty { display: none; }
.detail-description,
.detail-description p,
.detail-description li {
	color: hsl(var(--muted-foreground));
	font-size: .875rem;
	line-height: 1.625;
}
.detail-description strong,
.detail-description b {
	color: hsl(var(--foreground));
}

.sidebar-card { position: sticky; top: 80px; border-radius: 1rem; border: 1px solid hsl(var(--border)); background: hsl(var(--card)); box-shadow: var(--shadow-card-hover); padding: 1.5rem; }
@media (max-width: 1023px) {
	.sidebar-card { position: static; }
}
.sidebar-price-old { font-size: .875rem; color: hsl(var(--price-old)); text-decoration: line-through; }
.sidebar-price-new { font-family: var(--font-display); font-size: 2.25rem; font-weight: 700; color: hsl(var(--price-new)); }
.sidebar-cta-wrap { margin-top: 1.5rem; }
.sidebar-features { margin-top: 1rem; display: flex; flex-direction: column; gap: .5rem; text-align: center; font-size: .75rem; color: hsl(var(--muted-foreground)); }
.sidebar-features p { margin: 0; }
.sidebar-features i,
.sidebar-features svg { width: 14px; height: 14px; margin-right: .25rem; vertical-align: -2px; color: hsl(var(--price-new)); }
.sidebar-details { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid hsl(var(--border)); }
.sidebar-detail-row { display: flex; align-items: center; justify-content: space-between; font-size: .875rem; }
.sidebar-detail-row + .sidebar-detail-row { margin-top: .5rem; }
.sidebar-detail-label { color: hsl(var(--muted-foreground)); }
.sidebar-detail-value { font-family: var(--font-display); font-weight: 600; color: hsl(var(--foreground)); }
.sidebar-detail-value.green { color: hsl(var(--price-new)); }

.numbered-list { border-radius: var(--radius); border: 1px solid hsl(var(--border)); overflow: hidden; background: hsl(var(--card)); }
.numbered-list-item { display: flex; gap: .75rem; align-items: center; padding: .875rem 1.25rem; border-bottom: 1px solid hsl(var(--border)); transition: background .2s; }
.numbered-list-item:hover { background: hsl(var(--muted) / .5); }
.numbered-list-item:last-child { border-bottom: none; }
.numbered-list-num { width: 28px; height: 28px; border-radius: 6px; background: hsl(var(--accent)); color: hsl(var(--accent-foreground)); display: inline-flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 600; }
.numbered-list-content { display: flex; flex-direction: column; gap: .1rem; }
.numbered-list-discipline { font-size: .75rem; font-weight: 500; color: hsl(var(--primary)); }
.numbered-list-topic { font-size: .875rem; color: hsl(var(--foreground)); }
.numbered-list-topic a { color: inherit; text-decoration: none; }
.numbered-list-topic a:hover { color: hsl(var(--primary)); }

.content-tree {
	border-radius: var(--radius);
	border: 1px solid hsl(var(--border));
	background: hsl(var(--card));
	box-shadow: var(--shadow-card);
	padding: 1.25rem;
}
.tree-list { display: flex; flex-direction: column; gap: .5rem; }
.tree-sublist {
	margin-top: .25rem;
	margin-left: 1rem;
	padding-left: 1rem;
	border-left: 1px solid hsl(var(--border));
	display: flex;
	flex-direction: column;
	gap: .25rem;
}
.tree-sublist.is-collapsed { display: none; }
.tree-item-btn {
	display: flex;
	width: 100%;
	align-items: center;
	gap: .5rem;
	border-radius: 8px;
	padding: .5rem .75rem;
	text-align: left;
	font-size: .875rem;
	transition: background .15s, color .15s;
	border: 0;
	background: transparent;
	color: hsl(var(--foreground));
	cursor: pointer;
}
.tree-item-btn:hover { background: hsl(var(--muted)); }
.tree-item-btn.level-0 {
	font-family: var(--font-display);
	font-weight: 600;
}
.tree-item-btn.level-deep {
	font-weight: 500;
	font-size: .8125rem;
	color: hsl(var(--muted-foreground));
}
.tree-chevron {
	width: 14px;
	height: 14px;
	color: hsl(var(--muted-foreground));
	transition: transform .2s;
	flex-shrink: 0;
}
.tree-chevron.collapsed { transform: rotate(-90deg); }
.tree-bullet {
	width: 6px;
	height: 6px;
	border-radius: 9999px;
	background: hsl(var(--primary));
	margin-left: 4px;
	flex-shrink: 0;
}
.tree-label { flex: 1; }
.detail-summary-tree .detail-subsection-title { margin-bottom: 1rem; }
.detail-summary-tree .content-tree { margin-top: .25rem; }
.detail-description .summary-source-hidden { display: none; }

/* O card lateral ja cobre o CTA de compra; evita duplicacao dentro da descricao */
.detail-description .edd_download_purchase_form,
.detail-description .edd_purchase_submit_wrapper,
.detail-description .edd-submit,
.detail-description .edd-add-to-cart,
.detail-description .edd_purchase_link,
.detail-description a[href*="edd_action=add_to_cart"],
.detail-description button[name="edd_purchase_download"] {
	display: none !important;
}

.page-content {
	background: hsl(var(--card));
	border: 1px solid hsl(var(--border));
	border-radius: var(--radius);
	padding: var(--surface-space);
	box-shadow: var(--shadow-card);
	color: hsl(var(--foreground));
	line-height: 1.7;
	font-size: .97rem;
}

.page-content > :first-child { margin-top: 0; }
.page-content > :last-child { margin-bottom: 0; }
.page-content > * + * { margin-top: var(--flow-space-sm); }

.page-content p,
.page-content ul,
.page-content ol,
.page-content blockquote,
.page-content pre,
.page-content table {
	margin: 0;
}

.page-content h2,
.page-content h3,
.page-content h4,
.page-content h5,
.page-content h6 {
	color: hsl(var(--foreground));
	line-height: 1.3;
	letter-spacing: -.01em;
	margin: clamp(.95rem, 2vw, 1.25rem) 0 clamp(.45rem, 1.1vw, .65rem);
}

.page-content h2 { font-size: 1.45rem; }
.page-content h3 { font-size: 1.2rem; }
.page-content h4 { font-size: 1.05rem; }

.page-content p,
.page-content li {
	color: hsl(var(--muted-foreground));
}

.page-content strong,
.page-content b {
	color: hsl(var(--foreground));
	font-weight: 700;
}

.page-content ul,
.page-content ol {
	padding-left: 1.25rem;
}

.page-content li + li { margin-top: .35rem; }

.page-content blockquote {
	padding: .75rem 1rem;
	border-left: 3px solid hsl(var(--primary));
	background: hsl(var(--muted) / .45);
	border-radius: .45rem;
}

.page-content a {
	text-decoration: underline;
	text-decoration-thickness: .08em;
	text-underline-offset: .15em;
}

.account-grid { display: grid; gap: 1.5rem; }
@media (min-width: 992px) { .account-grid { grid-template-columns: 260px 1fr; } }
.account-nav .list-group { display: flex; flex-direction: column; gap: .5rem; }
.account-nav .list-group a {
	display: block;
	padding: .65rem .8rem;
	border-radius: .6rem;
	border: 1px solid hsl(var(--border));
	background: hsl(var(--card));
	font-size: .9rem;
}
.account-content { background: transparent; border: none; padding: 0; }
.account-content > * + * { margin-top: var(--flow-space-sm); }

/* Quando há shortcodes EDD, .account-content fica transparente e o conteúdo (shortcode) renderiza seu próprio container */
.account-content.account-content--module {
	background: transparent;
	border: none;
	box-shadow: none;
	padding: 0;
	margin: 0;
}

.account-content.account-content--module > h2,
.account-content.account-content--module > p {
	display: none;
}

/* .account-module-content na página principal (sem shortcodes): sem estilo, apenas wrapper */
.account-content:not(.account-content--module) .account-module-content {
	background: transparent;
	border: none;
	box-shadow: none;
	padding: 0;
}

/* .account-module-content com shortcodes: apenas wrapper sem estilo próprio (shortcodes têm seus próprios backgrounds via #edd_*) */
.account-content.account-content--module .account-module-content {
	background: transparent;
	border: none;
	box-shadow: none;
	padding: 0;
}

/* Esconder headings do editor WP quando o módulo já tem receipt-header próprio */
.account-module-content:has(.receipt-surface) > h1,
.account-module-content:has(.receipt-surface) > h2,
.account-module-content:has(.receipt-surface) > h3,
.account-module-content:has(.receipt-surface) > h4 {
	display: none;
}

.account-content .page-content {
	background: transparent;
	border: 0;
	box-shadow: none;
	padding: 0;
}

.account-content h3 {
	margin-top: 1.35rem;
	margin-bottom: .7rem;
	font-size: 1.1rem;
	line-height: 1.35;
}
.account-content h3:first-child { margin-top: 0; }
.account-content h3 + p,
.account-content h3 + div,
.account-content h3 + ul,
.account-content h3 + table,
.account-content h3 + form {
	margin-top: .35rem;
}

.account-wrapper {
	max-width: 28rem;
	margin: 0 auto;
	border: 1px solid hsl(var(--border));
	background: hsl(var(--card));
	box-shadow: var(--shadow-card);
	border-radius: var(--radius);
	overflow: hidden;
}
.account-body { padding: clamp(1.1rem, 2.5vw, 1.5rem); }
.auth-card-header { text-align: center; margin-bottom: 1.5rem; }
.auth-card-header h2 { font-size: 1.35rem; font-weight: 700; color: hsl(var(--foreground)); margin: 0; }
.auth-card-header p { margin: .45rem 0 0; color: hsl(var(--muted-foreground)); font-size: .875rem; }
.account-form { display: flex; flex-direction: column; gap: 1rem; }
.account-form .form-group { margin: 0; }
.account-form .checkbox-inline {
	display: flex;
	align-items: flex-start;
	gap: .5rem;
	line-height: 1.45;
	font-size: .875rem;
	color: hsl(var(--muted-foreground));
}
.account-form .checkbox-inline input[type="checkbox"] {
	width: 1rem;
	height: 1rem;
	margin-top: .15rem;
	accent-color: hsl(var(--primary));
	flex-shrink: 0;
}
.account-form .form-terms-label {
	display: grid;
	grid-template-columns: 1rem 1fr;
	column-gap: .5rem;
	align-items: start;
}
.account-form .form-terms-label .terms-copy {
	line-height: 1.55;
	word-break: normal;
}
.account-form .btn-primary,
.account-form .btn-primary:visited {
	color: hsl(var(--primary-foreground));
}
.account-footer { border-top: 1px solid hsl(var(--border)); padding: 1rem 1.5rem; text-align: center; font-size: .875rem; }

.page-content a,
.account-wrapper a,
#edd_checkout_form_wrap a,
#edd_user_history a,
.edd_errors a,
.edd-alert a,
.edd_success a {
	color: hsl(var(--primary));
	font-weight: 500;
}

.page-content a:hover,
.account-wrapper a:hover,
#edd_checkout_form_wrap a:hover,
#edd_user_history a:hover,
.edd_errors a:hover,
.edd-alert a:hover,
.edd_success a:hover {
	text-decoration: underline;
}

/* Accessible utility: keeps labels for screen readers */
.placeholder-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.form-control,
.edd-input,
.edd-select,
input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
	width: 100%;
	height: 2.8rem;
	padding: 0 .75rem;
	border: 1px solid hsl(var(--input));
	border-radius: calc(var(--radius) - 2px);
	background: hsl(var(--background));
	font-family: var(--font-body);
	font-size: .9rem;
}
textarea { min-height: 130px; padding-top: .75rem; }
input:focus, select:focus, textarea:focus { outline: none; border-color: hsl(var(--ring)); box-shadow: 0 0 0 2px hsl(var(--ring) / .2); }

button,
input,
select,
textarea {
	font-family: inherit;
}

/* Generic form baseline for regular WordPress pages */
.page-content form label {
	display: block;
	margin-bottom: .35rem;
	font-size: .9rem;
	font-weight: 500;
	color: hsl(var(--foreground));
}

.page-content form .form-group + .form-group,
.page-content form p + p {
	margin-top: .85rem;
}

.page-content form fieldset {
	border: 1px solid hsl(var(--border));
	border-radius: .6rem;
	padding: 1.15rem;
	margin: 1rem 0;
	background: transparent;
}

.page-content form legend {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: .95rem;
	padding: 0 .5rem;
	color: hsl(var(--foreground));
}

.page-content form input[type="checkbox"],
.page-content form input[type="radio"],
#edd_checkout_form_wrap input[type="checkbox"],
#edd_checkout_form_wrap input[type="radio"],
#edd_profile_editor_form input[type="checkbox"],
#edd_profile_editor_form input[type="radio"] {
	width: 1rem;
	height: 1rem;
	accent-color: hsl(var(--primary));
	vertical-align: middle;
}

.page-content form input[type="submit"],
.page-content form button[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	border: 1px solid transparent;
	background: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
	font-family: var(--font-display);
	font-weight: 600;
	font-size: .9375rem;
	line-height: 1;
	padding: .7rem 1.2rem;
	border-radius: calc(var(--radius) - 2px);
	box-shadow: var(--shadow-cta);
	cursor: pointer;
	transition: all .2s ease;
}

.page-content form input[type="submit"]:hover,
.page-content form button[type="submit"]:hover {
	filter: brightness(1.06);
	transform: translateY(-1px);
}

.edd_errors,
.edd-alert,
.edd_success {
	padding: .75rem 1rem;
	border-radius: .55rem;
	border: 1px solid hsl(var(--border));
	margin-bottom: 1rem;
	font-size: .9rem;
}

#edd_checkout_form_wrap,
#edd_purchase_receipt,
#edd_user_history,
.edd-table,
.edd-table th,
.edd-table td {
	font-size: .9rem;
}

#edd_checkout_form_wrap {
	border: 1px solid hsl(var(--border));
	background: hsl(var(--card));
	border-radius: var(--radius);
	padding: 1.5rem;
	box-shadow: var(--shadow-card);
}

/* Seção dentro de receipt-surface (profile editor) */
.receipt-section {
	margin-top: var(--flow-space-lg);
	border-top: 1px solid hsl(var(--border));
	padding-top: var(--flow-space-md);
}

.receipt-section h3 {
	font-size: 1.05rem;
	margin: 0 0 var(--flow-space-sm);
}

/* Grid de campos de formulário */
.profile-fields-grid {
	display: grid;
	gap: .75rem;
	grid-template-columns: 1fr;
}

@media (min-width: 640px) {
	.profile-fields-grid {
		grid-template-columns: 1fr 1fr;
	}
}

.form-group {
	display: flex;
	flex-direction: column;
	gap: .35rem;
}

.form-group + .form-group {
	margin-top: .75rem;
}

.profile-fields-grid .form-group + .form-group {
	margin-top: 0;
}

.form-group label {
	font-size: .85rem;
	font-weight: 600;
	color: hsl(var(--foreground));
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group select,
#edd_profile_editor_form .edd-input,
#edd_profile_editor_form .edd-select {
	width: 100%;
	background: hsl(var(--card));
	border: 1px solid hsl(var(--border));
	border-radius: calc(var(--radius) - 2px);
	padding: .6rem .8rem;
	font-size: .9rem;
	font-family: var(--font-body);
	color: hsl(var(--foreground));
	outline: none;
	transition: border-color .2s;
}

.form-group input:focus,
.form-group select:focus,
#edd_profile_editor_form .edd-input:focus,
#edd_profile_editor_form .edd-select:focus {
	border-color: hsl(var(--primary));
	box-shadow: 0 0 0 3px hsl(var(--primary) / .12);
}

/* Botão de submit do profile */
.profile-submit {
	margin-top: var(--flow-space-lg);
	border-top: 1px solid hsl(var(--border));
	padding-top: var(--flow-space-md);
}

/* Cards de pedidos (purchase history) */
.account-order-list {
	margin-top: var(--flow-space-md);
	display: flex;
	flex-direction: column;
	gap: .75rem;
}

.account-order-card {
	border: 1px solid hsl(var(--border));
	border-radius: calc(var(--radius) - 2px);
	padding: .9rem var(--surface-space);
	background: hsl(var(--muted) / .2);
}

.account-order-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
}

.account-order-meta {
	display: flex;
	gap: 1.5rem;
	flex-wrap: wrap;
}

.account-order-field {
	display: flex;
	flex-direction: column;
	gap: .2rem;
}

.account-order-total {
	color: hsl(var(--price-new));
}

.account-order-actions {
	display: flex;
	align-items: center;
	gap: .6rem;
	flex-shrink: 0;
}

/* Empty state de conta */
.account-empty-state {
	margin-top: var(--flow-space-md);
	text-align: center;
	padding: var(--flow-space-lg) 0;
	border-top: 1px solid hsl(var(--border));
}

.account-empty-state p {
	color: hsl(var(--muted-foreground));
	margin-bottom: 1rem;
}

/* E-mail list no profile */
.edd-profile-emails {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: .35rem;
}

.edd-profile-email {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: .875rem;
	padding: .4rem .6rem;
	border-radius: calc(var(--radius) - 4px);
	background: hsl(var(--muted) / .3);
}

.edd-remove-email {
	font-size: .8rem;
	color: hsl(var(--price-old));
	text-decoration: underline;
}

#edd_checkout_form_wrap p,
#edd_checkout_form_wrap .edd-payment-icons {
	margin: 0 0 .9rem;
}

#edd_checkout_form_wrap .edd_empty_cart {
	display: inline-block;
	font-weight: 600;
	color: hsl(var(--muted-foreground));
	margin-bottom: .75rem;
}

.empty-cart-panel {
	margin-top: .5rem;
	padding: 1.25rem;
	border: 1px solid hsl(var(--border));
	border-radius: var(--radius);
	background: hsl(var(--card));
	text-align: center;
}

.empty-cart-panel-icon {
	width: 44px;
	height: 44px;
	margin: 0 auto .75rem;
	border-radius: 10px;
	background: hsl(var(--accent));
	color: hsl(var(--accent-foreground));
	display: flex;
	align-items: center;
	justify-content: center;
}

.empty-cart-panel-icon i,
.empty-cart-panel-icon svg {
	width: 20px;
	height: 20px;
}

.empty-cart-panel-title {
	font-size: 1.15rem;
	margin: 0;
	color: hsl(var(--foreground));
}

.empty-cart-panel-text {
	margin: .5rem auto 0;
	max-width: 40ch;
	font-size: .9rem;
	line-height: 1.6;
	color: hsl(var(--muted-foreground));
}

.empty-cart-panel-actions {
	margin-top: 1rem;
	display: flex;
	gap: .6rem;
	justify-content: center;
	flex-wrap: wrap;
}

.receipt-surface {
	border: 1px solid hsl(var(--border));
	background: hsl(var(--card));
	border-radius: var(--radius);
	padding: var(--surface-space);
	box-shadow: var(--shadow-card);
}

.receipt-header h2 {
	font-size: clamp(1.25rem, 2.5vw, 1.65rem);
}

.receipt-header p {
	margin: .4rem 0 0;
	color: hsl(var(--muted-foreground));
	font-size: .9rem;
}

.receipt-summary-grid {
	margin-top: var(--flow-space-md);
	display: grid;
	gap: .75rem;
	grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 640px) {
	.receipt-summary-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.receipt-summary-card--wide {
		grid-column: span 2;
	}
}

.receipt-summary-card {
	border: 1px solid hsl(var(--border));
	background: hsl(var(--muted) / .35);
	border-radius: calc(var(--radius) - 2px);
	padding: .8rem .9rem;
	display: flex;
	flex-direction: column;
	gap: .3rem;
}

.receipt-label {
	font-size: .75rem;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: hsl(var(--muted-foreground));
	font-weight: 600;
}

.receipt-value {
	font-family: var(--font-display);
	font-size: .92rem;
	font-weight: 600;
	color: hsl(var(--foreground));
}

.receipt-key {
	word-break: break-all;
	font-size: .82rem;
	font-family: var(--font-body);
}

.receipt-status {
	width: fit-content;
	display: inline-flex;
	align-items: center;
	border-radius: 9999px;
	padding: .25rem .6rem;
	font-size: .75rem;
	font-weight: 700;
	background: hsl(var(--muted));
	color: hsl(var(--foreground));
}

.receipt-status.is-complete,
.receipt-status.is-publish {
	background: hsl(148 60% 92%);
	color: hsl(150 48% 28%);
}

.receipt-status.is-pending,
.receipt-status.is-processing {
	background: hsl(45 100% 92%);
	color: hsl(34 74% 36%);
}

.receipt-status.is-failed,
.receipt-status.is-refunded,
.receipt-status.is-revoked,
.receipt-status.is-cancelled,
.receipt-status.is-abandoned {
	background: hsl(0 85% 94%);
	color: hsl(0 62% 40%);
}

.receipt-totals,
.receipt-products {
	margin-top: var(--flow-space-lg);
	border-top: 1px solid hsl(var(--border));
	padding-top: var(--flow-space-md);
}

.receipt-totals h3,
.receipt-products h3 {
	font-size: 1.05rem;
	margin: 0 0 .75rem;
}

.receipt-row {
	display: flex;
	justify-content: space-between;
	gap: .75rem;
	padding: .5rem 0;
	border-bottom: 1px dashed hsl(var(--border));
	font-size: .9rem;
	color: hsl(var(--muted-foreground));
}

.receipt-row strong {
	color: hsl(var(--foreground));
	font-family: var(--font-display);
	font-size: .9rem;
}

.receipt-row--total {
	border-bottom: 0;
	margin-top: .2rem;
	padding-top: .8rem;
	font-weight: 700;
}

.receipt-row--total strong {
	font-size: 1rem;
	color: hsl(var(--price-new));
}

.receipt-product-card {
	border: 1px solid hsl(var(--border));
	border-radius: calc(var(--radius) - 2px);
	padding: .9rem;
	background: hsl(var(--card));
	box-shadow: var(--shadow-card);
}

.receipt-product-card + .receipt-product-card {
	margin-top: .75rem;
}

.receipt-product-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: .75rem;
}

.receipt-product-name {
	margin: 0;
	font-size: .95rem;
	font-weight: 600;
	color: hsl(var(--foreground));
}

.receipt-product-meta {
	margin: .25rem 0 0;
	font-size: .8rem;
	color: hsl(var(--muted-foreground));
}

.receipt-product-price {
	font-family: var(--font-display);
	color: hsl(var(--price-new));
	font-size: .95rem;
	white-space: nowrap;
}

.receipt-product-notes {
	margin-top: .6rem;
	font-size: .84rem;
	color: hsl(var(--muted-foreground));
}

.receipt-download-list {
	margin-top: .75rem;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: .45rem;
}

.receipt-download-link {
	justify-content: flex-start;
	width: 100%;
	line-height: 1.35;
	height: auto;
	min-height: 2.25rem;
	padding: .5rem .7rem;
	font-size: .82rem;
	white-space: normal;
}

@media (max-width: 767px) {
	.site-header { height: 60px; }
	.section-title { margin-bottom: 1.5rem; }
	.section-title h2 { font-size: 1.55rem; }
	.section-title p { font-size: .92rem; }
	.hero h1 { font-size: clamp(1.7rem, 8.5vw, 2.35rem); }
	.hero-description { font-size: .99rem; }
	.detail-banner h1 { margin-top: .8rem; }
	.detail-image-row > div:first-child { max-width: 10.5rem; }
	.navigation { margin-top: 2.25rem; gap: .6rem; }
	.navigation .page-numbers { min-width: 2.45rem; height: 2.45rem; padding: 0 .55rem; }
}

#edd_checkout_form_wrap p:last-child,
#edd_checkout_form_wrap .edd-payment-icons:last-child {
	margin-bottom: 0;
}

#edd_checkout_form_wrap label {
	display: block;
	margin-bottom: .35rem;
}

#edd_profile_editor_form label {
	display: block;
	margin-bottom: .35rem;
}

#edd_checkout_form_wrap fieldset {
	border: 1px solid hsl(var(--border));
	border-radius: .6rem;
	padding: 1.25rem;
	margin-bottom: 1.35rem;
	background: transparent;
}

/* Login/registro no checkout (evita botao "Acessar" solto acima do formulario) */
#edd_checkout_form_wrap #edd-login-account-wrap,
#edd_checkout_form_wrap #edd-new-account-wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .75rem;
	flex-wrap: wrap;
	padding: .75rem 1rem;
	margin: 0 0 1rem;
	border: 1px solid hsl(var(--border));
	border-radius: .6rem;
	background: transparent;
}

#edd_checkout_form_wrap #edd-login-account-wrap p,
#edd_checkout_form_wrap #edd-new-account-wrap p {
	margin: 0 !important;
	display: flex;
	align-items: center;
	gap: .65rem;
	flex-wrap: wrap;
}

#edd_checkout_form_wrap #edd-login-account-wrap a,
#edd_checkout_form_wrap #edd-new-account-wrap a,
#edd_checkout_form_wrap #edd-login-account-wrap input[type="button"],
#edd_checkout_form_wrap #edd-new-account-wrap input[type="button"],
#edd_checkout_form_wrap #edd-login-account-wrap button,
#edd_checkout_form_wrap #edd-new-account-wrap button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	white-space: nowrap;
}

#edd_checkout_form_wrap fieldset:last-child {
	margin-bottom: 0;
}

#edd_checkout_form_wrap fieldset + fieldset {
	margin-top: .75rem;
}

#edd_profile_editor_form fieldset {
	border: 1px solid hsl(var(--border));
	border-radius: .6rem;
	padding: 1.15rem;
	margin-bottom: 1rem;
	background: transparent;
}

#edd_checkout_form_wrap legend,
#edd_profile_editor_form legend {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: .95rem;
	padding: 0 .5rem;
	display: inline-block;
	margin-bottom: .8rem;
	line-height: 1.3;
}

#edd_checkout_form_wrap legend {
	color: hsl(var(--foreground));
}

/* EDD buttons aligned with theme button system */
.edd-submit,
a.edd-submit,
.edd-submit.button,
.edd-add-to-cart,
a.edd-add-to-cart,
.edd_purchase_link,
a.edd_purchase_link,
#edd_checkout_form_wrap input[type="submit"],
#edd_checkout_form_wrap button[type="submit"],
#edd_login_form input[type="submit"],
#edd_login_form button[type="submit"],
#edd_register_form input[type="submit"],
#edd_register_form button[type="submit"],
#edd_profile_editor_form input[type="submit"],
#edd_profile_editor_form button[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	border: 1px solid transparent;
	background: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
	font-family: var(--font-display);
	font-weight: 600;
	font-size: .9375rem;
	line-height: 1;
	padding: .7rem 1.2rem;
	border-radius: calc(var(--radius) - 2px);
	box-shadow: var(--shadow-cta);
	cursor: pointer;
	transition: all .2s ease;
	text-decoration: none;
}

.edd-submit:hover,
a.edd-submit:hover,
.edd-submit.button:hover,
.edd-add-to-cart:hover,
a.edd-add-to-cart:hover,
.edd_purchase_link:hover,
a.edd_purchase_link:hover,
#edd_checkout_form_wrap input[type="submit"]:hover,
#edd_checkout_form_wrap button[type="submit"]:hover,
#edd_login_form input[type="submit"]:hover,
#edd_login_form button[type="submit"]:hover,
#edd_register_form input[type="submit"]:hover,
#edd_register_form button[type="submit"]:hover,
#edd_profile_editor_form input[type="submit"]:hover,
#edd_profile_editor_form button[type="submit"]:hover {
	filter: brightness(1.06);
	transform: translateY(-1px);
}

.edd-submit:focus-visible,
a.edd-submit:focus-visible,
.edd-submit.button:focus-visible,
.edd-add-to-cart:focus-visible,
a.edd-add-to-cart:focus-visible,
.edd_purchase_link:focus-visible,
a.edd_purchase_link:focus-visible,
#edd_checkout_form_wrap input[type="submit"]:focus-visible,
#edd_checkout_form_wrap button[type="submit"]:focus-visible,
#edd_login_form input[type="submit"]:focus-visible,
#edd_login_form button[type="submit"]:focus-visible,
#edd_register_form input[type="submit"]:focus-visible,
#edd_register_form button[type="submit"]:focus-visible,
#edd_profile_editor_form input[type="submit"]:focus-visible,
#edd_profile_editor_form button[type="submit"]:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px hsl(var(--ring) / .2), var(--shadow-cta);
}

.edd-submit[disabled],
.edd-add-to-cart[disabled],
.edd_purchase_link[disabled],
#edd_checkout_form_wrap input[type="submit"][disabled],
#edd_checkout_form_wrap button[type="submit"][disabled],
#edd_login_form input[type="submit"][disabled],
#edd_login_form button[type="submit"][disabled],
#edd_register_form input[type="submit"][disabled],
#edd_register_form button[type="submit"][disabled],
#edd_profile_editor_form input[type="submit"][disabled],
#edd_profile_editor_form button[type="submit"][disabled] {
	opacity: .65;
	cursor: not-allowed;
	transform: none;
	filter: none;
}

/* Single download: override visual padrao do EDD para cor do tema */
.sidebar-cta-wrap .edd-submit,
.sidebar-cta-wrap a.edd-submit,
.sidebar-cta-wrap .edd-add-to-cart,
.sidebar-cta-wrap a.edd-add-to-cart,
.sidebar-cta-wrap .edd_purchase_link,
.sidebar-cta-wrap a.edd_purchase_link {
	background: hsl(var(--primary)) !important;
	background-image: none !important;
	border-color: hsl(var(--primary)) !important;
	color: hsl(var(--primary-foreground)) !important;
	box-shadow: var(--shadow-cta) !important;
}

.sidebar-cta-wrap .edd-submit:hover,
.sidebar-cta-wrap a.edd-submit:hover,
.sidebar-cta-wrap .edd-add-to-cart:hover,
.sidebar-cta-wrap a.edd-add-to-cart:hover,
.sidebar-cta-wrap .edd_purchase_link:hover,
.sidebar-cta-wrap a.edd_purchase_link:hover {
	filter: brightness(1.06) !important;
}

.post-grid { display: grid; gap: 1.25rem; }
@media (min-width: 960px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }

/* Post card (blog listing) */
.post-card { display: flex; flex-direction: column; background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s; }
.post-card:hover { box-shadow: 0 4px 16px hsl(var(--foreground)/.08); }
.post-card-link { display: flex; flex-direction: column; flex: 1; text-decoration: none; color: inherit; }
.post-card-image { aspect-ratio: 16/9; overflow: hidden; background: hsl(var(--muted)); }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { padding: 1rem; display: flex; flex-direction: column; gap: .5rem; }
.post-card-meta { font-size: .75rem; color: hsl(var(--muted-foreground)); }
.post-card-title { font-family: var(--font-display); font-size: 1rem; font-weight: 600; line-height: 1.4; color: hsl(var(--foreground)); }
.post-card-excerpt { font-size: .875rem; color: hsl(var(--muted-foreground)); line-height: 1.6; }

/* detail-banner meta (post date) */
.detail-banner-meta { margin-top: .5rem; font-size: .875rem; opacity: .8; }

/* =============================================
   INFO GRID (Contest Information Cards)
   ============================================= */
.info-grid {
	display: grid;
	gap: .75rem;
	margin: 1.5rem 0;
	padding: 0;
}

@media (min-width: 640px) {
	.info-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.info-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.info-card {
	display: flex;
	align-items: center;
	gap: .75rem;
	border-radius: var(--radius);
	border: 1px solid hsl(var(--border));
	background: hsl(var(--card));
	box-shadow: var(--shadow-card);
	padding: 1rem;
	transition: box-shadow .2s ease;
}

.info-card:hover {
	box-shadow: var(--shadow-card-hover);
}

.info-icon {
	width: 40px;
	height: 40px;
	border-radius: 8px;
	background: hsl(var(--accent));
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	color: hsl(var(--accent-foreground));
}

.info-icon i,
.info-icon [data-lucide] {
	width: 16px;
	height: 16px;
}

.info-label {
	font-size: .75rem;
	color: hsl(var(--muted-foreground));
}

.info-value {
	font-family: var(--font-display);
	font-size: .875rem;
	font-weight: 600;
	color: hsl(var(--foreground));
}

/* =============================================
   NOTICE BOX (Alert / Warning Box)
   ============================================= */
.notice-box {
	border-radius: var(--radius);
	border: 1px solid hsl(var(--primary) / .2);
	background: hsl(var(--accent));
	padding: 1.25rem;
	display: flex;
	gap: .75rem;
	margin: 1.5rem 0;
}

.notice-box i,
.notice-box [data-lucide] {
	width: 20px;
	height: 20px;
	color: hsl(var(--accent-foreground));
	flex-shrink: 0;
	margin-top: 2px;
}

.notice-box > div {
	flex: 1;
}

.notice-title {
	font-size: .875rem;
	font-weight: 500;
	color: hsl(var(--accent-foreground));
	display: block;
	margin-bottom: .25rem;
}

.notice-text {
	font-size: .875rem;
	line-height: 1.625;
	color: hsl(var(--muted-foreground));
	margin: 0;
}

/* =============================================
   COMBO INFO (Contest Information Container)
   ============================================= */
.combo-info {
	display: contents;
}

.combo-info > div {
	margin: 0;
	padding: 0;
}

.notice-text strong {
	color: hsl(var(--foreground));
	font-weight: 600;
}

.text-center { text-align: center; }
.mt-element { margin-top: var(--flow-space-sm); }
.mt-block { margin-top: var(--flow-space-md); }
.mt-section { margin-top: var(--flow-space-lg); }

/* Pagination */
.navigation {
	margin-top: 3rem;
	display: flex;
	justify-content: center;
	gap: 1rem;
}

.navigation .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 2.8rem;
	min-width: 2.8rem;
	padding: 0 .75rem;
	border: 1px solid hsl(var(--border));
	border-radius: .6rem;
	background: hsl(var(--card));
	color: hsl(var(--foreground));
	font-size: .875rem;
	font-weight: 500;
	text-decoration: none;
	transition: all .2s ease;
}

.navigation .page-numbers:hover,
.navigation a.page-numbers:hover {
	background: hsl(var(--muted));
	border-color: hsl(var(--border));
}

.navigation .page-numbers.current {
	background: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
	border-color: hsl(var(--primary));
	font-weight: 600;
}

.navigation a.page-numbers {
	cursor: pointer;
}

.navigation a.prev,
.navigation a.next {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .45rem;
}

.navigation .nav-text {
	display: none;
}

@media (min-width: 768px) {
	.navigation .nav-text {
		display: inline;
	}
}

.navigation a.prev:hover,
.navigation a.next:hover {
	background: hsl(var(--primary) / .1);
	border-color: hsl(var(--primary));
	color: hsl(var(--primary));
}

.navigation .dots {
	cursor: default;
	border: none;
	background: transparent;
	color: hsl(var(--muted-foreground));
}

.navigation .dots:hover {
	background: transparent;
	border: 1px solid hsl(var(--border));
}
