/*
Theme Name: Arqbloco
Theme URI: https://arqbloco.com
Author: Arqbloco
Description: Tema da biblioteca de blocos 3D Arqbloco. Visual limpo, muito branco, destaque em azul. Use junto com o plugin "Arqbloco — Blocos 3D".
Version: 1.3.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: arqbloco
*/

/* ---------- Variáveis ---------- */
:root {
	--bg: #FAFBFC;
	--white: #FFFFFF;
	--blue: #0A5BD8;
	--blue-dark: color-mix(in srgb, var(--blue) 80%, #000);
	--blue-soft: color-mix(in srgb, var(--blue) 7%, #fff);
	--blue-line: color-mix(in srgb, var(--blue) 24%, #fff);
	--ink: #1A1A1A;      /* preto 90% */
	--text: #4D4D4D;     /* preto 70% */
	--muted: #6B7280;
	--line: #E6E9EE;
	--panel: #F5F7FA;
	--radius: 8px;
	--wrap: 1280px;
	--font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 400 16px/1.6 var(--font);
	-webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
h1, h2, h3, h4 { margin: 0; color: var(--ink); line-height: 1.2; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link {
	position: absolute; left: 12px; top: -60px; z-index: 100;
	background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; color: #fff; }
.eyebrow {
	margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--blue);
	text-transform: uppercase; letter-spacing: 0.1em;
}

/* ---------- Botões ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	padding: 13px 22px; border-radius: 10px; border: 1px solid transparent;
	font-size: 15px; font-weight: 600; line-height: 1.2; text-align: center;
	transition: background .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-ghost { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-block { width: 100%; }

/* ---------- Topo ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(8px);
	border-bottom: 1px solid var(--line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand .custom-logo { max-height: 44px; width: auto; }
.brand-name { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
.brand-name .light { font-weight: 300; color: var(--text); }
.logo-mark .top { fill: var(--blue); }
.logo-mark .left { fill: var(--ink); }
.logo-mark .right { fill: #9AA0A8; }

.main-nav .menu { display: flex; gap: 28px; margin: 0; padding: 0; list-style: none; }
.main-nav a {
	display: block; padding: 6px 0; font-size: 15px; font-weight: 500; color: var(--text);
	border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--blue); }
.main-nav .current-menu-item > a, .main-nav .current-menu-ancestor > a, .main-nav .current_page_item > a {
	color: var(--blue); border-bottom-color: var(--blue);
}
.nav-search { display: none; }

.header-tools { display: flex; align-items: center; gap: 12px; }
.header-search, .nav-search, .hero-search { position: relative; }
.header-search input[type=search] {
	width: 250px; padding: 10px 14px 10px 40px; border: 1px solid var(--line); border-radius: 10px;
	background: var(--bg); font: inherit; font-size: 14px; color: var(--ink);
}
.header-search input[type=search]:focus { border-color: var(--blue); outline: none; background: #fff; }
.header-search .si, .nav-search .si { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.icon-btn {
	position: relative; display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; border: 0; background: none; color: var(--text); border-radius: 10px;
}
.icon-btn:hover { background: var(--panel); color: var(--blue); }
.fav-count {
	position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
	border-radius: 9px; background: var(--blue); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}
.fav-count[hidden] { display: none; }
.nav-toggle { display: none; }

@media (max-width: 999px) {
	.header-search { display: none; }
	.nav-toggle { display: inline-flex; }
	.main-nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		background: #fff; border-bottom: 1px solid var(--line); padding: 8px 24px 20px;
	}
	.nav-open .main-nav { display: block; }
	.main-nav .menu { flex-direction: column; gap: 0; }
	.main-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
	.nav-search { display: block; margin-top: 16px; }
	.nav-search input[type=search] {
		width: 100%; padding: 12px 14px 12px 40px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: var(--bg);
	}
}

/* ---------- Hero (início) ---------- */
.hero { background: var(--white); border-bottom: 1px solid var(--line); }
.hero-inner { padding-top: 72px; padding-bottom: 64px; text-align: center; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; letter-spacing: -0.035em; max-width: 820px; margin: 0 auto 16px; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero .lead { max-width: 620px; margin: 0 auto 32px; font-size: 18px; color: var(--text); }
.hero-search { max-width: 640px; margin: 0 auto; }
.hero-search input[type=search] {
	width: 100%; padding: 18px 150px 18px 52px; border: 1px solid var(--line); border-radius: 14px;
	font: inherit; font-size: 16px; background: var(--bg); color: var(--ink);
	box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
}
.hero-search input[type=search]:focus { border-color: var(--blue); outline: none; background: #fff; box-shadow: 0 0 0 4px var(--blue-soft); }
.hero-search .si { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.hero-search .btn { position: absolute; right: 8px; top: 8px; bottom: 8px; padding: 0 22px; }
.hero-meta { margin: 24px 0 0; font-size: 14px; color: var(--muted); }
.hero-meta strong { color: var(--ink); }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
	display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px;
	border: 1px solid var(--line); background: var(--white); color: var(--text);
	font-size: 14px; font-weight: 500; white-space: nowrap;
}
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }
.chips-section { padding: 28px 0 0; }
.chips-section .chips { justify-content: center; }

/* ---------- Seções ---------- */
.section { padding: 56px 0 8px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-head h2 { font-size: 26px; font-weight: 800; }
.section-head a { font-size: 14px; font-weight: 600; }

/* ---------- Grade e cards ---------- */
.grid { display: grid; gap: 24px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 800px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }

.card {
	position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
	overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-2px); border-color: var(--blue-line); box-shadow: 0 10px 28px rgba(10, 91, 216, .09); }
.card-media {
	position: relative; display: flex; align-items: center; justify-content: center;
	aspect-ratio: 1 / 1; background: var(--panel); padding: var(--pad, 0); overflow: hidden;
}
.card-media img { width: 100%; height: 100%; object-fit: var(--fit, cover); }
.card-media .ph { color: #C3C9D1; }
.badges { position: absolute; left: 12px; bottom: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.badge {
	font-size: 11px; font-weight: 700; letter-spacing: .04em; padding: 4px 8px; border-radius: 6px;
	background: #fff; border: 1px solid var(--line); color: var(--text);
}
.card-body { padding: 16px; }
.card-cat { font-size: 12px; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.card-title { font-size: 16px; font-weight: 600; line-height: 1.3; }
.card-title a { color: var(--ink); }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-brand { margin-top: 4px; font-size: 14px; color: var(--text); }

.fav-btn {
	position: absolute; top: 12px; right: 12px; z-index: 2; width: 38px; height: 38px;
	display: inline-flex; align-items: center; justify-content: center;
	background: #fff; border: 1px solid var(--line); border-radius: 50%; color: var(--text);
}
.fav-btn:hover { color: var(--blue); border-color: var(--blue); }
.fav-btn.is-on { color: var(--blue); border-color: var(--blue); }
.fav-btn.is-on svg { fill: currentColor; }
.fav-btn--text { position: static; width: auto; height: auto; border-radius: 10px; padding: 13px 20px; gap: 10px; font-size: 15px; font-weight: 600; color: var(--ink); }
.fav-btn--text .when-on { display: none; }
.fav-btn--text.is-on .when-on { display: inline; }
.fav-btn--text.is-on .when-off { display: none; }

.empty {
	text-align: center; padding: 64px 24px; background: var(--white); border: 1px dashed var(--blue-line);
	border-radius: var(--radius); color: var(--text);
}
.empty h3 { font-size: 20px; margin-bottom: 8px; }

/* ---------- Listagem ---------- */
.page-head { padding: 40px 0 8px; }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb .sep { margin: 0 8px; }
.page-head h1 { font-size: clamp(30px, 4vw, 40px); font-weight: 800; letter-spacing: -0.03em; }
.page-head .sub { margin: 8px 0 0; font-size: 16px; }

.filters-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 0 20px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.filters select {
	appearance: none; -webkit-appearance: none; padding: 9px 36px 9px 16px; border-radius: 999px; border: 1px solid var(--line);
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234D4D4D' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
	font: inherit; font-size: 14px; font-weight: 500; color: var(--text); max-width: 220px;
}
.filters select:hover, .filters select:focus { border-color: var(--blue); outline: none; }
.filters select.is-set { border-color: var(--blue); color: var(--blue); background-color: var(--blue-soft); }
.filters .apply { padding: 9px 18px; font-size: 14px; }
html.js .filters .apply { display: none; }
.result-info { display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--text); }
.result-info strong { color: var(--ink); }
.clear-link { font-weight: 600; }

.pagination { margin: 48px 0 8px; }
.pagination ul { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pagination a, .pagination span {
	display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 12px;
	border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--text); font-size: 14px; font-weight: 500;
}
.pagination a:hover { border-color: var(--blue); color: var(--blue); }
.pagination .current { background: var(--blue); border-color: var(--blue); color: #fff; }
.pagination .dots { border: 0; background: none; }

/* ---------- Produto ---------- */
.product { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: start; padding: 24px 0 56px; }
@media (max-width: 900px) { .product { grid-template-columns: 1fr; gap: 28px; } }
.gallery-main {
	position: relative; background: var(--white); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; line-height: 0;
}
.gallery-main img { display: block; width: 100%; height: auto; min-height: 280px; object-fit: cover; }
.gallery-main .ph { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; color: #C3C9D1; }
.thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.thumb { aspect-ratio: 1 / 1; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.thumb.is-active, .thumb:hover { border: 2px solid var(--blue); padding: 5px; }

.product-info .eyebrow { margin-bottom: 10px; }
.product-info h1 { font-size: clamp(30px, 4vw, 40px); font-weight: 800; letter-spacing: -0.03em; }
.byline { margin: 8px 0 0; font-size: 17px; }
.byline a { font-weight: 600; }

.metrics { display: flex; gap: 28px; margin: 24px 0; padding: 16px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.metrics .m { display: flex; flex-direction: column; }
.metrics .k { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.metrics .v { font-size: 20px; font-weight: 700; color: var(--ink); }
.metrics .div { width: 1px; background: var(--line); }

.dl-box { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.dl-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.dl-head h2 { font-size: 18px; font-weight: 700; }
.dl-head svg { color: var(--blue); }
.dl-free { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--text); background: var(--panel); padding: 4px 10px; border-radius: 999px; }
.fmt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 520px) { .fmt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fmt {
	display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1px solid var(--line);
	border-radius: 10px; background: #fff; color: var(--ink); font-size: 15px; font-weight: 600;
}
.fmt small { font-size: 12px; font-weight: 500; color: var(--muted); }
a.fmt:hover { border-color: var(--blue); background: var(--blue-soft); color: var(--ink); }
.fmt.off { background: var(--panel); color: #9AA0A8; cursor: not-allowed; }
.fmt.off small { color: #9AA0A8; }
.dl-all { margin-top: 14px; }
.dl-versions { margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.extra-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.extra-actions:has(> :only-child) { grid-template-columns: 1fr; }

.specs { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 28px 32px; margin-bottom: 56px; }
.specs h2 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.specs-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-top: 16px; }
@media (max-width: 900px) { .specs-grid { grid-template-columns: 1fr; gap: 8px; } .specs { padding: 24px; } }
.specs dl { margin: 0; }
.specs dt { margin-top: 16px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.specs dt:first-child { margin-top: 0; }
.specs dd { margin: 4px 0 0; font-size: 15px; font-weight: 500; color: var(--ink); }
.specs .desc { font-weight: 400; color: var(--text); line-height: 1.7; }
.specs .desc p:last-child { margin-bottom: 0; }

.credit-note { margin: -32px 0 56px; font-size: 13px; color: var(--muted); }

/* ---------- Páginas de texto, marcas, designers ---------- */
.prose { max-width: 760px; padding: 24px 0 72px; }
.prose h1 { font-size: clamp(30px, 4vw, 40px); font-weight: 800; margin-bottom: 20px; }
.prose h2 { font-size: 24px; margin: 1.6em 0 .6em; }
.prose h3 { font-size: 19px; margin: 1.4em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: var(--radius); margin: 1.5em 0; }
.terms-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 16px 0 72px; }
@media (max-width: 1000px) { .terms-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .terms-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.term-card {
	display: flex; flex-direction: column; gap: 2px; padding: 18px 20px; background: #fff;
	border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); font-weight: 600;
}
.term-card small { font-weight: 400; color: var(--muted); font-size: 13px; }
.term-card:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- Rodapé ---------- */
.site-footer { margin-top: 48px; background: var(--ink); color: #B8BCC2; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer .brand-name .light { color: #B8BCC2; }
.site-footer .logo-mark .left { fill: #fff; }
.site-footer p { font-size: 14px; line-height: 1.7; color: #9AA0A8; max-width: 380px; }
.site-footer h4 { color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 12px; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li a { display: block; padding: 5px 0; font-size: 14px; color: #B8BCC2; }
.site-footer li a:hover { color: #fff; }
.footer-legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid #2E3238; font-size: 12px; line-height: 1.7; color: #8A9099; }
.footer-legal p { max-width: none; color: inherit; font-size: 12px; margin: 0 0 6px; }

/* ---------- Cadastro e Minha conta ---------- */
.prose--wide { max-width: none; }
.auth { max-width: 880px; margin: 8px auto 0; }
.auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { .auth-grid { grid-template-columns: 1fr; } }
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 28px; }
.auth-card h2 { font-size: 20px; margin: 0 0 18px; }
.auth-card label { display: block; margin-bottom: 14px; font-size: 13px; font-weight: 600; color: var(--ink); }
.auth-card input[type=text], .auth-card input[type=email], .auth-card input[type=password] {
	display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
	font: inherit; font-size: 15px; font-weight: 400; background: var(--bg); color: var(--ink);
}
.auth-card input:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px var(--blue-soft); }
.auth-card label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--text); }
.auth-card label.check input { margin-top: 3px; }
.auth-small { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.auth-msg { margin-bottom: 20px; padding: 14px 18px; border-radius: 10px; font-size: 14px; }
.auth-msg--info { background: var(--blue-soft); color: var(--ink); border: 1px solid var(--blue-line); }
.auth-msg--erro { background: #FDF2F2; color: #8A1C1C; border: 1px solid #F3C7C7; }
.account-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.account-head h2 { font-size: 28px; }
.offers { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; padding: 16px 20px; margin-bottom: 32px; background: var(--blue-soft); border: 1px solid var(--blue-line); border-radius: 12px; color: var(--text); }
.offers strong { color: var(--ink); }
.account-title { font-size: 20px; margin-bottom: 16px; }
.account-title span { margin-left: 6px; padding: 2px 10px; border-radius: 999px; background: var(--panel); font-size: 13px; color: var(--text); }

.prose--wide > h1 { max-width: 880px; margin-left: auto; margin-right: auto; }
.prose--wide:has(.account) > h1 { display: none; }
.account { max-width: 1100px; margin: 0 auto; }

/* ==========================================================
   v1.2 — cards, coração, galeria, marcas, designers, favoritos
   ========================================================== */
[hidden] { display: none !important; }

/* Cards: sem contorno, só uma sombra leve ao passar o mouse */
.card { border: 0; border-radius: var(--radius); transition: box-shadow .25s ease; }
.card:hover { transform: none; border-color: transparent; box-shadow: 0 6px 20px rgba(17, 24, 39, .08); }
.card-brand { display: none; }

/* Coração: só o contorno; favoritado fica vermelho; animação ao clicar */
:root { --fav: #E5383B; }
.fav-btn:not(.fav-btn--text) {
	top: 8px; right: 8px; width: 40px; height: 40px; background: none; border: 0; border-radius: 0;
	color: var(--text); filter: drop-shadow(0 0 2px rgba(255, 255, 255, .9)); cursor: pointer;
}
.fav-btn:not(.fav-btn--text) svg { width: 22px; height: 22px; transition: transform .2s ease; }
.fav-btn:not(.fav-btn--text):hover { color: var(--ink); border: 0; }
.fav-btn:not(.fav-btn--text):hover svg { transform: scale(1.1); }
.fav-btn:not(.fav-btn--text).is-on { color: var(--fav); border: 0; }
.fav-btn--text.is-on { color: var(--ink); border-color: var(--line); }
.fav-btn--text.is-on svg { color: var(--fav); }
.fav-btn:not(.fav-btn--text)::after {
	content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 2px solid var(--fav);
	opacity: 0; transform: scale(.4); pointer-events: none;
}
.fav-btn.pop svg { animation: heart-pop .45s cubic-bezier(.2, .9, .3, 1.4); }
.fav-btn.pop.is-on::after { animation: heart-ring .5s ease-out; }
@keyframes heart-pop { 0% { transform: scale(1); } 30% { transform: scale(1.35); } 60% { transform: scale(.9); } 100% { transform: scale(1); } }
@keyframes heart-ring { 0% { opacity: .7; transform: scale(.4); } 100% { opacity: 0; transform: scale(1.6); } }
@media (prefers-reduced-motion: reduce) { .fav-btn.pop svg, .fav-btn.pop::after { animation: none; } }

/* Galeria: quadro fixo, a foto troca sem mudar o tamanho */
.gallery-main { aspect-ratio: 4 / 3; border: 0; border-radius: var(--radius); background: #EFF0F3; cursor: zoom-in; }
.gallery-main img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.gallery-main .ph { height: 100%; aspect-ratio: auto; cursor: default; }
.gallery-zoom {
	position: absolute; right: 14px; bottom: 14px; width: 40px; height: 40px;
	display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 8px;
	background: rgba(255, 255, 255, .92); color: var(--ink); box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
	opacity: 0; transition: opacity .2s; cursor: pointer; line-height: 0;
}
.gallery-main:hover .gallery-zoom, .gallery-zoom:focus-visible { opacity: 1; }
@media (hover: none) { .gallery-zoom { opacity: 1; } }
.thumb { border-radius: var(--radius); cursor: pointer; }
.thumb img { border-radius: 4px; }

/* Foto ampliada (tela cheia) */
.lightbox {
	position: fixed; inset: 0; z-index: 100000; display: none; align-items: center; justify-content: center;
	padding: 64px 80px; background: rgba(12, 14, 18, .94);
}
.lightbox.is-open { display: flex; animation: lb-in .2s ease; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; }
.lightbox button {
	position: absolute; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
	border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer;
}
.lightbox button:hover { background: rgba(255, 255, 255, .22); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox.single .lb-prev, .lightbox.single .lb-next { display: none; }
.lb-count { position: absolute; left: 0; right: 0; bottom: 20px; text-align: center; color: rgba(255, 255, 255, .7); font-size: 14px; }
.lb-lock, .lb-lock body { overflow: hidden; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 700px) {
	.lightbox { padding: 64px 12px 80px; }
	.lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; }
}

/* Botões da página do produto (Favoritar, Orçamento, Site da marca) */
.extra-actions { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.btn-wa svg { color: #25D366; }
.btn-wa:hover { border-color: #25D366; color: var(--ink); }

/* Marcas e designers */
.term-card { border: 0; border-radius: var(--radius); transition: box-shadow .25s ease; }
.term-card:hover { color: var(--ink); border: 0; box-shadow: 0 6px 20px rgba(17, 24, 39, .08); }
.term-card:hover .term-name { color: var(--blue); }
.term-card--brand, .term-card--person { align-items: flex-start; gap: 3px; padding: 20px; }
.term-name { font-size: 16px; font-weight: 600; line-height: 1.3; transition: color .2s; }
.term-logo { display: flex; align-items: center; width: 100%; height: 64px; margin-bottom: 14px; }
.term-logo img { max-width: 75%; max-height: 64px; object-fit: contain; }
.term-initials {
	display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 6px;
	background: var(--panel); color: var(--muted); font-size: 20px; font-weight: 700; letter-spacing: .02em;
}
.term-photo { display: block; width: 100%; aspect-ratio: 1 / 1; margin-bottom: 14px; border-radius: 6px; overflow: hidden; background: var(--panel); }
.term-photo img { width: 100%; height: 100%; object-fit: cover; }
.term-photo .term-initials { width: 100%; height: 100%; border-radius: 0; font-size: 36px; }
.term-tag { margin-top: 8px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

/* Barra de busca e filtros (designers e favoritos) */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 8px 0 24px; }
.tsearch { position: relative; flex: 1 1 220px; max-width: 320px; }
.tsearch .si { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); line-height: 0; }
.tsearch input {
	width: 100%; padding: 10px 14px 10px 38px; border: 1px solid var(--line); border-radius: 999px;
	background: #fff; color: var(--ink); font: inherit; font-size: 14px;
}
.tsearch input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.tchip {
	padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff;
	color: var(--text); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; transition: all .15s;
}
.tchip:hover { border-color: var(--blue-line); color: var(--ink); }
.tchip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.tselect {
	appearance: none; -webkit-appearance: none; margin-left: auto; padding: 9px 36px 9px 16px;
	border: 1px solid var(--line); border-radius: 999px; font: inherit; font-size: 14px; color: var(--ink); cursor: pointer;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
}
@media (max-width: 700px) { .tselect { margin-left: 0; } .tsearch { max-width: none; } }

/* Favoritos: cards menores, 5 por linha */
.grid--compact { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1100px) { .grid--compact { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 800px) { .grid--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.grid--compact .card-body { padding: 12px 14px 14px; }
.grid--compact .card-title { font-size: 15px; }
.more-wrap { display: flex; justify-content: center; margin: 28px 0 56px; }

/* ==========================================================
   v1.3 — cadastro em 2 etapas, confirmação de e-mail, Meus dados
   ========================================================== */
.auth-card select, .auth-card input[type=tel] {
	display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
	font: inherit; font-size: 15px; font-weight: 400; background: var(--bg); color: var(--ink);
}
.auth-card select:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px var(--blue-soft); }
.auth-card input:disabled { color: var(--muted); background: var(--panel); }
.auth-card .opt { font-weight: 400; color: var(--muted); }
.form-row { display: grid; grid-template-columns: 1fr 140px; gap: 12px; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }
.auth--step { max-width: 560px; }
.steps { margin: 0 0 6px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--blue); }
.auth-lead { margin: -8px 0 20px; color: var(--text); font-size: 15px; }
.auth-msg--ok { background: #EEF8F1; color: #1D5B33; border: 1px solid #C7E6D2; }

.verify-box {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px;
	margin-bottom: 24px; padding: 16px 20px; background: #FFF8E6; border: 1px solid #F3DFA8; border-radius: var(--radius);
}
.verify-box strong { display: block; color: var(--ink); margin-bottom: 2px; }
.verify-box span { font-size: 14px; color: var(--text); }

.tabs { display: flex; gap: 28px; margin: 8px 0 28px; border-bottom: 1px solid var(--line); }
.tab { position: relative; padding: 10px 0 14px; color: var(--text); font-weight: 500; }
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--ink); font-weight: 600; }
.tab.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--blue); }
.tab span { margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--panel); font-size: 12px; color: var(--text); }

.account-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; align-items: start; margin-bottom: 56px; }
@media (max-width: 900px) { .account-grid { grid-template-columns: 1fr; } }
.account-side { display: grid; gap: 24px; }
.account .auth-card { border: 0; border-radius: var(--radius); box-shadow: 0 1px 3px rgba(17, 24, 39, .05); }
.status { display: inline-block; margin-top: 6px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.status--ok { background: #EEF8F1; color: #1D5B33; }
.status--pend { background: #FFF8E6; color: #7A5A00; }

.contact-list { list-style: none; margin: 0 0 14px; padding: 0; }
.contact-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink); }
.contact-list li span { overflow-wrap: anywhere; }
.contact-list em { font-style: normal; font-size: 12px; color: var(--muted); }
.contact-list form { margin: 0; }
.link-del { padding: 0; border: 0; background: none; color: #B42318; font: inherit; font-size: 13px; cursor: pointer; }
.link-del:hover { text-decoration: underline; }
.add-row { display: flex; gap: 8px; }
.add-row input {
	flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
	font: inherit; font-size: 14px; background: var(--bg); color: var(--ink);
}
.add-row input:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px var(--blue-soft); }
.add-row .btn { padding: 10px 16px; }
