/*
 * Catálogo: ordenar e "carregar mais" (09/11). Carregado só com
 * TRIANGULO_CATALOGO_ORDEM = true; ver inc/catalogo-ordem.php.
 */

/* ---------- Barra de resultados: total à esquerda, "Ordenar por" à direita ---------- */
.resultados__barra {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 24px;
}

.resultados__barra .resultados__total {
	margin-right: auto;
}

.resultados__barra .resultados__ativos {
	flex-basis: 100%;
}

.ordem {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	margin: 0;
}

.ordem__rotulo {
	color: var(--tinta-suave);
	font-size: 14px;
}

.ordem__campo {
	min-height: 44px;
	padding: 0 40px 0 14px;
	border: 1px solid rgba(241, 236, 227, 0.28);
	border-radius: 6px;
	background: #171715 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='%23d7b47e' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
	color: var(--tinta);
	font: inherit;
	font-size: 15px;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
}

.ordem__campo:hover {
	border-color: rgba(241, 236, 227, 0.55);
}

.ordem__campo:focus-visible {
	outline: 2px solid #d7b47e;
	outline-offset: 2px;
}

.ordem__aplicar {
	min-height: 44px;
	padding: 0 16px;
	border: 1px solid rgba(241, 236, 227, 0.28);
	border-radius: 6px;
	background: none;
	color: var(--tinta);
	font: inherit;
	cursor: pointer;
}

.ordem__aplicar[hidden] {
	display: none;
}

@media (max-width: 599px) {
	.ordem {
		width: 100%;
	}

	.ordem__campo {
		flex: 1;
	}
}

/* ---------- Carregar mais ---------- */
.carregar-mais {
	display: grid;
	justify-items: center;
	gap: 14px;
	margin-top: var(--e-6);
	text-align: center;
}

.carregar-mais__info {
	margin: 0;
	color: var(--tinta-suave);
	font-size: 14.5px;
}

.carregar-mais__botao {
	min-width: min(320px, 100%);
	min-height: 50px;
	justify-content: center;
}

.carregar-mais__botao[hidden] {
	display: none;
}

.carregar-mais__botao:disabled {
	opacity: 0.7;
	cursor: progress;
}

.paginacao[hidden] {
	display: none;
}
