/* ==========================================================================
   Quadrados Oficial · Design system · components.css
   Versão 1.0 · 2026-11-28

   Componentes do template AutoDeal reconstruídos SOMENTE com tokens (tokens.css).
   Regra: nenhum hex, px de espaço, raio, sombra ou duração solto neste arquivo.
   Carregar depois do bootstrap.css e do tokens.css.

   Classes com prefixo .qo-  ·  nomes em BEM leve: .bloco__parte--variação
   O mapa "classe do template → classe do design system" está no README.md.

   Índice
     01 Base            06 Formulários       11 Breadcrumb
     02 Layout          07 Barra de busca    12 Header / navegação
     03 Botões          08 Abas              13 Footer
     04 Badges/status   09 Paginação
     05 Card de anúncio 10 Título de seção
   ========================================================================== */


/* 01 · Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }   /* igual ao Bootstrap; garante o mesmo cálculo fora dele */
body {
	font-family: var(--qo-font-body);
	font-size: var(--qo-text-base);
	line-height: var(--qo-leading-base);
	color: var(--qo-color-text-body);
	background-color: var(--qo-color-bg);
	-webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6,
.qo-h1, .qo-h2, .qo-h3, .qo-h4, .qo-h5, .qo-h6 {
	font-family: var(--qo-font-heading);
	color: var(--qo-color-text);
	margin: 0;
	text-rendering: optimizeLegibility;
}
h1, .qo-h1 { font-size: var(--qo-text-h1); line-height: var(--qo-leading-h1); font-weight: var(--qo-weight-semibold); }
h2, .qo-h2 { font-size: var(--qo-text-h2); line-height: var(--qo-leading-h2); font-weight: var(--qo-weight-medium); }
h3, .qo-h3 { font-size: var(--qo-text-h3); line-height: var(--qo-leading-h3); font-weight: var(--qo-weight-medium); }
h4, .qo-h4 { font-size: var(--qo-text-h4); line-height: var(--qo-leading-h4); font-weight: var(--qo-weight-medium); }
h5, .qo-h5 { font-size: var(--qo-text-h5); line-height: var(--qo-leading-h5); font-weight: var(--qo-weight-medium); }
h6, .qo-h6 { font-size: var(--qo-text-h6); line-height: var(--qo-leading-h6); font-weight: var(--qo-weight-regular); }
.qo-display {
	font-family: var(--qo-font-heading);
	font-size: var(--qo-text-display);
	line-height: var(--qo-leading-display);
	font-weight: var(--qo-weight-semibold);
	letter-spacing: var(--qo-tracking-tight);
	color: var(--qo-color-text);
}
p { margin: 0; font-family: var(--qo-font-body); font-size: var(--qo-text-base); line-height: var(--qo-leading-base); color: var(--qo-color-text-body); }
.qo-text-lg    { font-size: var(--qo-text-lg); line-height: var(--qo-leading-lg); }
.qo-text-sm    { font-size: var(--qo-text-sm); line-height: var(--qo-leading-sm); }
.qo-text-xs    { font-size: var(--qo-text-xs); line-height: var(--qo-leading-xs); }
.qo-text-muted { color: var(--qo-color-text-muted); }
.qo-text-accent { color: var(--qo-color-accent-text); }   /* laranja como texto: sempre este token */

a { color: var(--qo-color-link); text-decoration: none; transition: var(--qo-transition); }
a:hover { color: var(--qo-color-link-hover); }

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
	outline: none;
	box-shadow: var(--qo-shadow-focus);
}
::selection { background: var(--qo-color-accent); color: var(--qo-color-on-accent); }


/* 02 · Layout --------------------------------------------------------------- */
.qo-container {
	width: 100%;
	max-width: var(--qo-container);
	margin-inline: auto;
	padding-inline: var(--qo-container-px);
}
.qo-container--wide { max-width: var(--qo-container-wide); }

.qo-section          { padding-block: var(--qo-section-y); }
.qo-section--alt     { background-color: var(--qo-color-bg-alt); }
.qo-section--inverse { background-color: var(--qo-color-bg-inverse); color: var(--qo-color-text-inverse); }
.qo-section--inverse :is(h1, h2, h3, h4, h5, h6, p) { color: var(--qo-color-text-inverse); }

/* grade de anúncios (template: .list-car-grid-4) */
.qo-grid-listing {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--qo-gutter);
}
@media (max-width: 1199px) { .qo-grid-listing { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 991px)  { .qo-grid-listing { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px)  { .qo-grid-listing { grid-template-columns: 1fr; } }

.qo-eyebrow {
	display: inline-block;
	font-family: var(--qo-font-body);
	font-size: var(--qo-text-xs);
	font-weight: var(--qo-weight-semibold);
	letter-spacing: var(--qo-tracking-wide);
	text-transform: uppercase;
	color: var(--qo-color-text-muted);
}
.qo-divider { border: 0; border-top: var(--qo-border-width) solid var(--qo-color-border); margin: 0; }


/* 03 · Botões (template: .sc-button, .sc-button.btn-1, .view-car, .tf-btn-arrow) */
.qo-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--qo-space-xs);
	min-height: var(--qo-control-h);
	padding: 0 var(--qo-space-2xl);
	border: var(--qo-border-width) solid transparent;
	border-radius: var(--qo-radius-md);
	font-family: var(--qo-font-ui);
	font-size: var(--qo-text-lg);
	font-weight: var(--qo-weight-medium);
	line-height: var(--qo-leading-base);
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: var(--qo-transition);
}
.qo-btn svg { width: 1em; height: 1em; flex: none; }

/* Primário · preto. Hover vira laranja (o laranja aparece na interação). */
.qo-btn--primary { background-color: var(--qo-color-primary); color: var(--qo-color-on-primary); }
.qo-btn--primary:hover { background-color: var(--qo-color-primary-hover); color: var(--qo-color-on-primary-hover); }

/* Destaque · laranja. Só o CTA de conversão da tela ("Anunciar", "Quero destaque"). Um por tela. */
.qo-btn--accent { background-color: var(--qo-color-accent); color: var(--qo-color-on-accent); }
.qo-btn--accent:hover { background-color: var(--qo-color-primary); color: var(--qo-color-on-primary); }

/* Secundário · cinza claro, para ações de apoio ao lado do primário */
.qo-btn--secondary { background-color: var(--qo-color-surface-muted); color: var(--qo-color-text); }
.qo-btn--secondary:hover { background-color: var(--qo-color-border); color: var(--qo-color-text); }

/* Contornado · template .btn-1 e .view-car */
.qo-btn--outline { background-color: transparent; border-color: var(--qo-color-text); color: var(--qo-color-text); }
.qo-btn--outline:hover { background-color: var(--qo-color-primary); border-color: var(--qo-color-primary); color: var(--qo-color-on-primary); }

/* Contornado sobre escuro (header transparente, footer, faixa preta) */
.qo-btn--inverse { background-color: transparent; border-color: var(--qo-color-border-inverse); color: var(--qo-color-text-inverse); }
.qo-btn--inverse:hover { background-color: var(--qo-color-accent); border-color: var(--qo-color-accent); color: var(--qo-color-on-accent); }

.qo-btn--sm {
	min-height: var(--qo-control-h-sm);
	padding: 0 var(--qo-space-md);
	font-size: var(--qo-text-base);
}
.qo-btn--block { display: flex; width: 100%; }
.qo-btn--icon  { padding: 0; width: var(--qo-control-h); }
.qo-btn:disabled, .qo-btn.is-disabled {
	background-color: var(--qo-color-surface-muted);
	border-color: transparent;
	color: var(--qo-color-text-disabled);
	cursor: not-allowed;
}

/* Link com seta · template .tf-btn-arrow ("Ver todos") */
.qo-link-arrow {
	display: inline-flex;
	align-items: center;
	gap: var(--qo-space-xs);
	min-height: var(--qo-control-h-sm);
	padding: 0 var(--qo-space-lg);
	border: var(--qo-border-width) solid var(--qo-color-border);
	border-radius: var(--qo-radius-md);
	font-family: var(--qo-font-ui);
	font-size: var(--qo-text-base);
	font-weight: var(--qo-weight-medium);
	color: var(--qo-color-text);
	transition: var(--qo-transition);
}
.qo-link-arrow svg { width: 0.75em; height: 0.75em; transition: var(--qo-transition); }
.qo-link-arrow:hover { border-color: var(--qo-color-primary); background-color: var(--qo-color-primary); color: var(--qo-color-on-primary); }
.qo-link-arrow:hover svg { transform: translateX(var(--qo-space-2xs)); color: var(--qo-color-accent); }


/* 04 · Badges e status (template: .flag-tag, .tfcl-listing-status) -------- */
.qo-badge {
	display: inline-flex;
	align-items: center;
	gap: var(--qo-space-2xs);
	padding: var(--qo-space-2xs) var(--qo-space-sm);
	border-radius: var(--qo-radius-pill);
	font-family: var(--qo-font-body);
	font-size: var(--qo-text-xs);
	font-weight: var(--qo-weight-semibold);
	line-height: var(--qo-leading-xs);
	white-space: nowrap;
	background-color: var(--qo-color-surface-muted);
	color: var(--qo-color-text);
}
.qo-badge svg { width: 1.1em; height: 1.1em; }
.qo-badge--featured { background-color: var(--qo-color-accent); color: var(--qo-color-on-accent); }   /* "Destaque" */
.qo-badge--dark     { background-color: var(--qo-color-primary); color: var(--qo-color-on-primary); } /* "Quadrado" / "Até vender" */
.qo-badge--overlay  { background-color: var(--qo-overlay-chip); color: var(--qo-color-on-primary); }  /* sobre foto: nº de fotos, ano */
.qo-badge--outline  { background-color: transparent; border: var(--qo-border-width) solid var(--qo-color-border-strong); color: var(--qo-color-text); }
.qo-badge--soft     { background-color: var(--qo-color-accent-soft); color: var(--qo-color-accent-text-soft); } /* tag de conteúdo/blog */

/* Status do painel do anunciante */
.qo-status {
	display: inline-flex;
	align-items: center;
	gap: var(--qo-space-xs);
	padding: var(--qo-space-2xs) var(--qo-space-sm);
	border: var(--qo-border-width) solid var(--qo-color-border);
	border-radius: var(--qo-radius-pill);
	font-family: var(--qo-font-ui);
	font-size: var(--qo-text-base);
	font-weight: var(--qo-weight-medium);
	line-height: var(--qo-leading-base);
	background-color: var(--qo-color-surface-muted);
	color: var(--qo-color-text-muted);
}
.qo-status::before { content: ""; width: var(--qo-space-xs); height: var(--qo-space-xs); border-radius: var(--qo-radius-circle); background-color: currentColor; }
.qo-status--success { background-color: var(--qo-color-success-bg); border-color: var(--qo-color-success-border); color: var(--qo-color-success); }
.qo-status--warning { background-color: var(--qo-color-warning-bg); border-color: var(--qo-color-warning-border); color: var(--qo-color-warning); }
.qo-status--error   { background-color: var(--qo-color-error-bg);   border-color: var(--qo-color-error-border);   color: var(--qo-color-error); }
.qo-status--info    { background-color: var(--qo-color-info-bg);    border-color: var(--qo-color-info-border);    color: var(--qo-color-info); }


/* 05 · Card de anúncio (template: .box-car-list + .hv-one) ----------------- */
.qo-card-listing {
	display: flex;
	flex-direction: column;
	background-color: var(--qo-color-surface);
	border: var(--qo-border-width) solid var(--qo-color-border);
	border-radius: var(--qo-radius-md);
	overflow: hidden;
	transition: var(--qo-transition);
}
.qo-card-listing:hover { border-color: var(--qo-color-border-strong); box-shadow: var(--qo-shadow-md); }

.qo-card-listing__media { position: relative; overflow: hidden; aspect-ratio: var(--qo-ratio-card); background-color: var(--qo-color-surface-muted); }
.qo-card-listing__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: var(--qo-transition-slow); }
.qo-card-listing__media::before {
	content: ""; position: absolute; inset: 0; z-index: var(--qo-z-card-overlay);
	background: var(--qo-overlay-hover); opacity: 0; transition: var(--qo-transition-slow);
}
.qo-card-listing:hover .qo-card-listing__media::before { opacity: 1; }

.qo-card-listing__top {
	position: absolute; z-index: calc(var(--qo-z-card-overlay) + 1);
	top: var(--qo-space-sm); left: var(--qo-space-sm); right: var(--qo-space-sm);
	display: flex; justify-content: space-between; align-items: flex-start; gap: var(--qo-space-xs);
}
.qo-card-listing__tags { display: flex; flex-wrap: wrap; gap: var(--qo-space-xs); }

/* ações no hover da foto (comparar, favoritar) */
.qo-card-listing__actions {
	position: absolute; z-index: calc(var(--qo-z-card-overlay) + 1);
	top: 50%; left: 50%; transform: translate(-50%, -50%);
	display: flex; gap: var(--qo-space-xs);
	opacity: 0; visibility: hidden; transition: var(--qo-transition);
}
.qo-card-listing:hover .qo-card-listing__actions,
.qo-card-listing:focus-within .qo-card-listing__actions { opacity: 1; visibility: visible; }
.qo-icon-btn {
	display: inline-grid; place-items: center;
	width: var(--qo-icon-btn); height: var(--qo-icon-btn);
	border: 0; border-radius: var(--qo-radius-circle);
	background-color: var(--qo-color-surface); color: var(--qo-color-text);
	cursor: pointer; transition: var(--qo-transition);
}
.qo-icon-btn svg { width: var(--qo-icon-lg); height: var(--qo-icon-lg); }
.qo-icon-btn:hover, .qo-icon-btn.is-active { background-color: var(--qo-color-accent); color: var(--qo-color-on-accent); }

.qo-card-listing__body { display: flex; flex-direction: column; flex: 1; padding: var(--qo-space-lg) var(--qo-space-md) var(--qo-space-md); }
.qo-card-listing__category { margin-bottom: var(--qo-space-xs); }
.qo-card-listing__title {
	margin-bottom: var(--qo-space-sm);
	font-family: var(--qo-font-heading);
	font-size: var(--qo-text-h5);
	line-height: var(--qo-leading-h5);
	font-weight: var(--qo-weight-medium);
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.qo-card-listing__title a { color: var(--qo-color-text); }
.qo-card-listing__title a:hover { color: var(--qo-color-link-hover); }

.qo-card-listing__specs {
	display: flex; flex-wrap: wrap; gap: var(--qo-space-xs) var(--qo-space-md);
	margin: 0 0 var(--qo-space-lg); padding: 0; list-style: none;
	font-size: var(--qo-text-sm); color: var(--qo-color-text-muted);
}
.qo-card-listing__specs li { display: inline-flex; align-items: center; gap: var(--qo-space-2xs); }
.qo-card-listing__specs svg { width: var(--qo-icon-sm); height: var(--qo-icon-sm); color: var(--qo-color-text-subtle); }

.qo-card-listing__price {
	font-family: var(--qo-font-heading);
	font-size: var(--qo-text-h4);
	line-height: var(--qo-leading-h4);
	font-weight: var(--qo-weight-semibold);
	color: var(--qo-color-text);   /* preço em preto: o laranja fica para o badge Destaque */
}
.qo-card-listing__location { margin-top: var(--qo-space-2xs); font-size: var(--qo-text-sm); color: var(--qo-color-text-muted); }

.qo-card-listing__footer {
	display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--qo-space-sm);
	margin-top: auto; padding-top: var(--qo-space-lg);
	border-top: var(--qo-border-width) solid var(--qo-color-border);
}
.qo-card-listing__price-row { margin-bottom: var(--qo-space-lg); }
.qo-seller { display: inline-flex; align-items: center; gap: var(--qo-space-xs); font-family: var(--qo-font-ui); font-size: var(--qo-text-base); font-weight: var(--qo-weight-medium); color: var(--qo-color-text); }
.qo-seller img, .qo-avatar {
	width: var(--qo-avatar-sm); height: var(--qo-avatar-sm); border-radius: var(--qo-radius-circle);
	object-fit: cover; flex: none; background-color: var(--qo-color-surface-muted);
	display: inline-grid; place-items: center; font-size: var(--qo-text-xs); color: var(--qo-color-text-muted);
}

/* destaque pago: borda laranja fina (o selo já diz "Destaque") */
.qo-card-listing--featured { border-color: var(--qo-color-accent); }

/* horizontal · template .box-car-list.style-2 (listagem em lista) */
.qo-card-listing--horizontal { flex-direction: row; }
.qo-card-listing--horizontal .qo-card-listing__media { width: var(--qo-card-media-w); flex: none; aspect-ratio: auto; }
@media (max-width: 767px) {
	.qo-card-listing--horizontal { flex-direction: column; }
	.qo-card-listing--horizontal .qo-card-listing__media { width: 100%; aspect-ratio: var(--qo-ratio-card); }
}

/* escuro · template .style-dark */
.qo-card-listing--dark { background-color: var(--qo-color-bg-inverse); border-color: var(--qo-color-border-inverse); }
.qo-card-listing--dark .qo-card-listing__title a,
.qo-card-listing--dark .qo-card-listing__price,
.qo-card-listing--dark .qo-seller { color: var(--qo-color-text-inverse); }
.qo-card-listing--dark .qo-card-listing__specs,
.qo-card-listing--dark .qo-card-listing__location,
.qo-card-listing--dark .qo-eyebrow { color: var(--qo-color-text-inverse-muted); }
.qo-card-listing--dark .qo-card-listing__title a:hover { color: var(--qo-color-accent-on-inverse); }
.qo-card-listing--dark .qo-card-listing__footer { border-top-color: var(--qo-color-border-inverse); }


/* 06 · Formulários (template: inputs globais, .nice-select, .group-checkbox) */
.qo-field { display: flex; flex-direction: column; gap: var(--qo-space-xs); }
.qo-label {
	font-family: var(--qo-font-ui);
	font-size: var(--qo-text-label);
	font-weight: var(--qo-weight-semibold);
	line-height: var(--qo-leading-h6);
	color: var(--qo-color-text);
}
.qo-label .qo-req { color: var(--qo-color-accent-text); }
.qo-input, .qo-select, .qo-textarea {
	width: 100%;
	min-height: var(--qo-control-h);
	padding: 0 var(--qo-space-md);
	border: var(--qo-border-width) solid var(--qo-color-border);
	border-radius: var(--qo-radius-md);
	background-color: var(--qo-color-surface);
	font-family: var(--qo-font-body);
	font-size: var(--qo-text-base);
	line-height: var(--qo-leading-base);
	color: var(--qo-color-text);
	transition: var(--qo-transition);
	appearance: none;
}
.qo-textarea { min-height: calc(var(--qo-control-h) * 3); padding: var(--qo-space-md); resize: vertical; }
.qo-input::placeholder, .qo-textarea::placeholder { color: var(--qo-color-text-subtle); opacity: 1; }
.qo-input:hover, .qo-select:hover, .qo-textarea:hover { border-color: var(--qo-color-border-strong); }
.qo-input:focus, .qo-select:focus, .qo-textarea:focus {
	outline: none;
	border-color: var(--qo-color-border-focus);
	box-shadow: var(--qo-shadow-focus);
}
.qo-input:disabled, .qo-select:disabled, .qo-textarea:disabled { background-color: var(--qo-color-surface-muted); color: var(--qo-color-text-disabled); cursor: not-allowed; }

/* select: a setinha é a do nice-select do template (dois traços girados) */
.qo-select-wrap { position: relative; }
.qo-select-wrap .qo-select { padding-right: calc(var(--qo-space-md) * 3); cursor: pointer; }
.qo-select-wrap::after {
	content: ""; position: absolute; pointer-events: none;
	right: var(--qo-space-xl); top: 50%;
	width: var(--qo-space-xs); height: var(--qo-space-xs);
	margin-top: calc(var(--qo-space-2xs) * -1);
	border-right: var(--qo-border-width-thick) solid var(--qo-color-text-muted);
	border-bottom: var(--qo-border-width-thick) solid var(--qo-color-text-muted);
	transform: rotate(45deg);
}

/* campo com ícone (busca do header) */
.qo-input-icon { position: relative; }
.qo-input-icon .qo-input { padding-right: calc(var(--qo-control-h) + var(--qo-space-2xs)); }
.qo-input-icon__btn {
	position: absolute; top: 0; right: 0; bottom: 0; width: var(--qo-control-h);
	display: grid; place-items: center; border: 0; background: transparent;
	color: var(--qo-color-text); cursor: pointer; border-radius: 0 var(--qo-radius-md) var(--qo-radius-md) 0;
	transition: var(--qo-transition);
}
.qo-input-icon__btn:hover { color: var(--qo-color-accent-text); }
.qo-input-icon__btn svg { width: var(--qo-icon-lg); height: var(--qo-icon-lg); }

.qo-help { font-size: var(--qo-text-sm); color: var(--qo-color-text-muted); }
.qo-field--error .qo-input,
.qo-field--error .qo-select,
.qo-field--error .qo-textarea { border-color: var(--qo-color-error); }
.qo-field--error .qo-help { color: var(--qo-color-error); }
.qo-field--success .qo-input { border-color: var(--qo-color-success); }

/* checkbox · template .group-checkbox (opcionais do anúncio) */
.qo-check { display: inline-flex; align-items: center; gap: var(--qo-space-sm); cursor: pointer; font-family: var(--qo-font-body); font-size: var(--qo-text-base); color: var(--qo-color-text); }
.qo-check input {
	appearance: none; margin: 0; flex: none; position: relative;
	width: var(--qo-checkbox); height: var(--qo-checkbox);
	border: var(--qo-border-width) solid var(--qo-color-border-strong);
	border-radius: var(--qo-radius-xs);
	background-color: var(--qo-color-surface);
	cursor: pointer; transition: var(--qo-transition-fast);
}
.qo-check input::after {
	content: ""; position: absolute; left: 50%; top: 45%;
	width: calc(var(--qo-checkbox) / 2.4); height: calc(var(--qo-checkbox) / 4);
	border-left: var(--qo-border-width-thick) solid var(--qo-color-on-primary);
	border-bottom: var(--qo-border-width-thick) solid var(--qo-color-on-primary);
	transform: translate(-50%, -50%) rotate(-50deg); opacity: 0;
}
.qo-check input:checked { background-color: var(--qo-color-primary); border-color: var(--qo-color-primary); }
.qo-check input:checked::after { opacity: 1; }
.qo-check input:hover { border-color: var(--qo-color-primary); }
.qo-check input[type="radio"] { border-radius: var(--qo-radius-circle); }
.qo-check input[type="radio"]::after {
	width: calc(var(--qo-checkbox) / 2.6); height: calc(var(--qo-checkbox) / 2.6); top: 50%;
	border: 0; border-radius: var(--qo-radius-circle); background-color: var(--qo-color-accent); transform: translate(-50%, -50%);
}
.qo-check input[type="radio"]:checked { background-color: var(--qo-color-surface); }

.qo-form-grid { display: grid; gap: var(--qo-space-lg) var(--qo-gutter); grid-template-columns: repeat(2, 1fr); }
.qo-form-grid .is-full { grid-column: 1 / -1; }
@media (max-width: 767px) { .qo-form-grid { grid-template-columns: 1fr; } }


/* 07 · Barra de busca (template: .flat-filter-search + .form-sl) ----------- */
.qo-search { position: relative; }
.qo-search__tabs { display: flex; gap: var(--qo-space-2xs); }
.qo-search__tab {
	min-height: var(--qo-divider-h);
	padding: 0 var(--qo-space-xl);
	border: 0;
	border-radius: var(--qo-radius-lg) var(--qo-radius-lg) 0 0;
	background-color: var(--qo-color-surface-inverse);
	font-family: var(--qo-font-ui);
	font-size: var(--qo-text-lg);
	font-weight: var(--qo-weight-medium);
	color: var(--qo-color-text-inverse);
	cursor: pointer;
	transition: var(--qo-transition);
}
.qo-search__tab:hover { background-color: var(--qo-color-surface-inverse-hover); }
.qo-search__tab.is-active { background-color: var(--qo-color-surface); color: var(--qo-color-text); box-shadow: inset 0 var(--qo-border-width-thick) 0 var(--qo-color-accent); }

.qo-search__box {
	display: flex; align-items: center; gap: var(--qo-space-xl);
	padding: var(--qo-space-lg) var(--qo-space-2xl);
	background-color: var(--qo-color-surface);
	border-radius: 0 var(--qo-radius-lg) var(--qo-radius-lg) var(--qo-radius-lg);
	box-shadow: var(--qo-shadow-md);
}
.qo-search--standalone .qo-search__box { border-radius: var(--qo-radius-lg); border: var(--qo-border-width) solid var(--qo-color-border); }
.qo-search__fields { display: flex; flex: 1; min-width: 0; }
.qo-search__field { position: relative; flex: 1; min-width: 0; padding-inline: var(--qo-space-xl); }
.qo-search__field:first-child { padding-left: 0; }
.qo-search__field:not(:last-child)::after {
	content: ""; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
	width: var(--qo-border-width); height: var(--qo-divider-h); background-color: var(--qo-color-border);
}
.qo-search__field .qo-label { display: block; margin-bottom: var(--qo-space-2xs); }
.qo-search__field .qo-select {
	min-height: auto; padding: 0 var(--qo-space-xl) 0 0; border: 0; border-radius: 0; box-shadow: none;
	color: var(--qo-color-text-muted); background: transparent;
}
.qo-search__field .qo-select-wrap::after { right: var(--qo-space-2xs); }
.qo-search__actions { display: flex; align-items: center; gap: var(--qo-space-sm); flex: none; }

@media (max-width: 991px) {
	.qo-search__box { flex-direction: column; align-items: stretch; }
	.qo-search__fields { flex-direction: column; gap: var(--qo-space-md); }
	.qo-search__field { padding: 0; }
	.qo-search__field:not(:last-child)::after { display: none; }
	.qo-search__field:not(:last-child) { padding-bottom: var(--qo-space-md); border-bottom: var(--qo-border-width) solid var(--qo-color-border); }
	.qo-search__actions .qo-btn--primary { flex: 1; }
}


/* 08 · Abas (template: .flat-tabs .tab-title.style / .style1 / .box-tab.style1) */
/* sublinhada · a padrão (filtro por carroceria, abas da página do anúncio) */
.qo-tabs {
	display: flex; flex-wrap: wrap; gap: var(--qo-space-xl);
	margin: 0; padding: 0; list-style: none;
	border-bottom: var(--qo-border-width) solid var(--qo-color-border);
}
.qo-tab {
	position: relative;
	padding: 0 0 var(--qo-space-md);
	border: 0; background: none;
	font-family: var(--qo-font-heading);
	font-size: var(--qo-text-lg);
	font-weight: var(--qo-weight-regular);
	line-height: var(--qo-leading-h6);
	color: var(--qo-color-text-muted);
	cursor: pointer;
	transition: var(--qo-transition);
}
.qo-tab::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: calc(var(--qo-border-width) * -1);
	height: var(--qo-border-width-thick); background-color: transparent; transition: var(--qo-transition);
}
.qo-tab:hover { color: var(--qo-color-text); }
.qo-tab.is-active { color: var(--qo-color-text); font-weight: var(--qo-weight-medium); }
.qo-tab.is-active::after { background-color: var(--qo-color-accent); }

/* pílula · filtros rápidos (Todos / Quadrados / Outros) */
.qo-tabs--pill { border: 0; gap: var(--qo-space-sm); }
.qo-tabs--pill .qo-tab {
	padding: var(--qo-space-xs) var(--qo-space-lg);
	border-radius: var(--qo-radius-sm);
	background-color: var(--qo-color-surface-muted);
	color: var(--qo-color-text);
	font-weight: var(--qo-weight-medium);
}
.qo-tabs--pill .qo-tab::after { display: none; }
.qo-tabs--pill .qo-tab:hover { background-color: var(--qo-color-border); }
.qo-tabs--pill .qo-tab.is-active { background-color: var(--qo-color-primary); color: var(--qo-color-on-primary); }

/* contornada · template .box-tab.style1 (com setinha embaixo do ativo) */
.qo-tabs--outline { border: 0; gap: var(--qo-space-sm); }
.qo-tabs--outline .qo-tab {
	min-height: calc(var(--qo-control-h) - var(--qo-space-2xs));
	padding: 0 var(--qo-space-xl);
	border: var(--qo-border-width) solid var(--qo-color-text);
	border-radius: var(--qo-radius-md);
	color: var(--qo-color-text);
	font-weight: var(--qo-weight-medium);
}
.qo-tabs--outline .qo-tab::after {
	left: 50%; right: auto; bottom: calc(var(--qo-space-xs) * -1); height: 0; width: 0;
	transform: translateX(-50%);
	border-left: var(--qo-space-xs) solid transparent; border-right: var(--qo-space-xs) solid transparent;
	border-top: var(--qo-space-xs) solid transparent; background: none;
}
.qo-tabs--outline .qo-tab:hover,
.qo-tabs--outline .qo-tab.is-active { background-color: var(--qo-color-primary); border-color: var(--qo-color-primary); color: var(--qo-color-on-primary); }
.qo-tabs--outline .qo-tab.is-active::after { border-top-color: var(--qo-color-primary); }


/* 09 · Paginação (template: .themesflat-pagination) ----------------------- */
.qo-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--qo-space-xs); margin: 0; padding: 0; list-style: none; }
.qo-page {
	display: inline-grid; place-items: center;
	min-width: var(--qo-page-item); height: var(--qo-page-item); padding: 0 var(--qo-space-sm);
	border: var(--qo-border-width) solid var(--qo-color-border);
	border-radius: var(--qo-radius-sm);
	background-color: var(--qo-color-surface);
	font-family: var(--qo-font-heading);
	font-size: var(--qo-text-lg);
	font-weight: var(--qo-weight-semibold);
	color: var(--qo-color-text);
	transition: var(--qo-transition);
}
.qo-page svg { width: var(--qo-icon-md); height: var(--qo-icon-md); }
.qo-page:hover { border-color: var(--qo-color-accent); color: var(--qo-color-accent-text); }
.qo-page.is-current { background-color: var(--qo-color-primary); border-color: var(--qo-color-primary); color: var(--qo-color-on-primary); }
.qo-page.is-disabled { color: var(--qo-color-text-disabled); pointer-events: none; }


/* 10 · Título de seção (template: .heading-section) ---------------------- */
.qo-section-head {
	display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap;
	gap: var(--qo-space-lg);
	margin-bottom: var(--qo-space-3xl);
}
.qo-section-head__text { display: flex; flex-direction: column; gap: var(--qo-space-xs); max-width: var(--qo-measure); }
.qo-section-head p { font-size: var(--qo-text-lg); line-height: var(--qo-leading-lg); color: var(--qo-color-text-muted); }
/* marca da seção: quadradinho laranja antes do sobretítulo (referência ao "quadrado") */
.qo-section-head .qo-eyebrow::before {
	content: ""; display: inline-block; vertical-align: middle;
	width: var(--qo-space-xs); height: var(--qo-space-xs);
	margin: 0 var(--qo-space-xs) var(--qo-border-width-thick) 0;
	background-color: var(--qo-color-accent);
}
@media (max-width: 767px) { .qo-section-head { margin-bottom: var(--qo-space-xl); } }


/* 11 · Breadcrumb (template: .flat-title .title-group) ------------------- */
.qo-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: var(--qo-space-xs); margin: 0; padding: 0; list-style: none; font-size: var(--qo-text-base); color: var(--qo-color-text-muted); }
.qo-breadcrumb li { display: inline-flex; align-items: center; gap: var(--qo-space-xs); }
.qo-breadcrumb li + li::before {
	content: ""; width: calc(var(--qo-space-2xs) + var(--qo-border-width) * 2); height: calc(var(--qo-space-2xs) + var(--qo-border-width) * 2);
	border-right: var(--qo-border-width) solid var(--qo-color-text-subtle); border-top: var(--qo-border-width) solid var(--qo-color-text-subtle);
	transform: rotate(45deg);
}
.qo-breadcrumb a { color: var(--qo-color-text); }
.qo-breadcrumb a:hover { color: var(--qo-color-link-hover); }
.qo-breadcrumb [aria-current] { color: var(--qo-color-text-muted); }
.qo-page-title { padding: var(--qo-space-lg) 0; border-bottom: var(--qo-border-width) solid var(--qo-color-border); }


/* 12 · Header e navegação (template: .main-header, .main-menu .navigation) */
.qo-header {
	position: relative; z-index: var(--qo-z-header);
	background-color: var(--qo-color-surface);
	box-shadow: var(--qo-shadow-sm);
}
.qo-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--qo-space-2xl); min-height: var(--qo-header-h); }
.qo-header__logo { display: inline-flex; align-items: center; gap: var(--qo-space-sm); flex: none; color: var(--qo-color-text); font-family: var(--qo-font-heading); font-weight: var(--qo-weight-semibold); }
.qo-header__actions { display: flex; align-items: center; gap: var(--qo-space-lg); }
.qo-header__link { display: inline-flex; align-items: center; gap: var(--qo-space-xs); font-family: var(--qo-font-ui); font-size: var(--qo-text-lg); color: var(--qo-color-text); }
.qo-header__link svg { width: var(--qo-icon-lg); height: var(--qo-icon-lg); }
.qo-header__link:hover { color: var(--qo-color-link-hover); }

.qo-nav { display: flex; align-items: stretch; gap: var(--qo-space-2xl); margin: 0; padding: 0; list-style: none; align-self: stretch; }
.qo-nav__item { position: relative; display: flex; }
.qo-nav__link {
	position: relative; display: inline-flex; align-items: center; gap: var(--qo-space-2xs);
	font-family: var(--qo-font-ui);
	font-size: var(--qo-text-lg);
	font-weight: var(--qo-weight-medium);
	color: var(--qo-color-text);
	transition: var(--qo-transition-slow);
}
.qo-nav__link::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0;
	height: var(--qo-border-width-thick); background-color: var(--qo-color-accent);
	transform: scaleX(0); transform-origin: left; transition: var(--qo-transition);
}
.qo-nav__link:hover, .qo-nav__item.is-current > .qo-nav__link { color: var(--qo-color-text); }
.qo-nav__link:hover::after, .qo-nav__item.is-current > .qo-nav__link::after { transform: scaleX(1); }
.qo-nav__link svg { width: var(--qo-icon-xs); height: var(--qo-icon-xs); }

.qo-nav__dropdown {
	position: absolute; top: 100%; left: calc(var(--qo-space-xl) * -1); z-index: var(--qo-z-dropdown);
	width: var(--qo-dropdown-w); margin: 0; padding: var(--qo-space-xs) 0; list-style: none;
	background-color: var(--qo-color-surface);
	border-top: var(--qo-border-width-thick) solid var(--qo-color-accent);
	border-radius: 0 0 var(--qo-radius-lg) var(--qo-radius-lg);
	box-shadow: var(--qo-shadow-lg);
	opacity: 0; visibility: hidden; transform: scaleY(0); transform-origin: top;
	transition: var(--qo-transition);
}
.qo-nav__item:hover > .qo-nav__dropdown,
.qo-nav__item:focus-within > .qo-nav__dropdown,
.qo-nav__dropdown.is-open { opacity: 1; visibility: visible; transform: scaleY(1); }
.qo-nav__dropdown a {
	display: block; padding: var(--qo-space-sm) var(--qo-space-xl);
	font-family: var(--qo-font-ui); font-size: var(--qo-text-lg); font-weight: var(--qo-weight-medium);
	color: var(--qo-color-text);
}
.qo-nav__dropdown a:hover { background-color: var(--qo-color-accent-soft); color: var(--qo-color-accent-text-soft); }

.qo-header__toggle { display: none; }
@media (max-width: 1199px) {
	.qo-nav, .qo-header__link .qo-hide-md { display: none; }
	.qo-header__toggle { display: inline-grid; }
}

/* header escuro / transparente sobre o hero (template .main-header.style2) */
.qo-header--inverse { background-color: var(--qo-color-bg-inverse); box-shadow: none; border-bottom: var(--qo-border-width) solid var(--qo-color-border-inverse); }
.qo-header--inverse .qo-header__logo,
.qo-header--inverse .qo-nav__link,
.qo-header--inverse .qo-header__link,
.qo-header--inverse .qo-nav__link:hover,
.qo-header--inverse .qo-nav__item.is-current > .qo-nav__link { color: var(--qo-color-text-inverse); }
.qo-header--inverse .qo-header__link:hover { color: var(--qo-color-accent-on-inverse); }


/* 13 · Footer (template: #footer .footer-top / .footer-main / .footer-bottom) */
.qo-footer { background-color: var(--qo-color-bg-inverse); color: var(--qo-color-text-inverse); }
.qo-footer :is(h4, h5, .qo-footer__title) { color: var(--qo-color-text-inverse); }
.qo-footer__top { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--qo-gutter); padding-block: var(--qo-space-3xl); }
.qo-footer__contact { display: flex; align-items: center; gap: var(--qo-space-md); }
.qo-footer__contact-icon {
	display: grid; place-items: center; flex: none;
	width: var(--qo-icon-btn); height: var(--qo-icon-btn); border-radius: var(--qo-radius-md);
	border: var(--qo-border-width) solid var(--qo-color-border-inverse); color: var(--qo-color-accent-on-inverse);
}
.qo-footer__contact-icon svg { width: var(--qo-icon-xl); height: var(--qo-icon-xl); }
.qo-footer__contact strong { display: block; font-family: var(--qo-font-heading); font-size: var(--qo-text-h6); font-weight: var(--qo-weight-medium); color: var(--qo-color-text-inverse); }
.qo-footer__contact span { font-size: var(--qo-text-base); color: var(--qo-color-text-inverse-muted); }

.qo-footer__main {
	display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: var(--qo-gutter);
	padding-block: var(--qo-space-3xl);
	border-top: var(--qo-border-width) solid var(--qo-color-border-inverse);
	border-bottom: var(--qo-border-width) solid var(--qo-color-border-inverse);
}
.qo-footer__title { margin-bottom: var(--qo-space-xl); font-family: var(--qo-font-heading); font-size: var(--qo-text-h5); font-weight: var(--qo-weight-medium); }
.qo-footer__about { max-width: var(--qo-measure-sm); color: var(--qo-color-text-inverse-muted); }
.qo-footer__menu { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--qo-space-sm); }
.qo-footer__menu a { font-family: var(--qo-font-ui); font-size: var(--qo-text-lg); color: var(--qo-color-text-inverse-muted); }
.qo-footer__menu a:hover { color: var(--qo-color-accent-on-inverse); }
.qo-footer__bottom {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--qo-space-lg);
	padding-block: var(--qo-space-2xl);
	font-size: var(--qo-text-base); color: var(--qo-color-text-inverse-muted);
}
.qo-footer__bottom a { color: var(--qo-color-text-inverse-muted); }
.qo-footer__bottom a:hover { color: var(--qo-color-text-inverse); }
.qo-footer__social { display: flex; gap: var(--qo-space-xs); }
.qo-footer__social a {
	display: grid; place-items: center; width: var(--qo-control-h-sm); height: var(--qo-control-h-sm);
	border: var(--qo-border-width) solid var(--qo-color-border-inverse); border-radius: var(--qo-radius-circle);
	color: var(--qo-color-text-inverse);
}
.qo-footer__social a:hover { background-color: var(--qo-color-accent); border-color: var(--qo-color-accent); color: var(--qo-color-on-accent); }
.qo-footer__social svg { width: var(--qo-icon-md); height: var(--qo-icon-md); }
@media (max-width: 991px) {
	.qo-footer__top { grid-template-columns: 1fr; }
	.qo-footer__main { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) { .qo-footer__main { grid-template-columns: 1fr; } }
