/*
 * No More UPF Product Filter styles.
 *
 * Customise these classes to better match your archive/card theme styles.
 * The PHP also adds archive-like classes such as archive-card, entry-title,
 * entry-summary, and post-thumbnail where possible.
 */
.nmu-product-filter {
	margin-block: 1.5rem;
}

/* Filter bar */
.nmu-product-filter__form {
	background: #F7F4ED;
	border: 1px solid #E4DED2;
	border-radius: 22px;
	padding: 1.25rem;
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr auto;
	gap: 1rem;
	align-items: end;
	margin-bottom: 1.5rem;
}

.nmu-product-filter__field {
	display: grid;
	gap: 0.35rem;
}

.nmu-product-filter__label {
	font-weight: 700;
	color: #14284C;
}

.nmu-product-filter input,
.nmu-product-filter select {
	width: 100%;
	min-height: 2.75rem;
	padding: 0.65rem 0.8rem;
	border: 1px solid #E4DED2;
	border-radius: 12px;
	background: #fff;
	color: #14284C;
}

.nmu-product-filter__actions {
	display: flex;
	gap: 0.75rem;
	align-items: center;
}

.nmu-product-filter__submit,
.nmu-product-filter__reset {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	padding: 0.65rem 1rem;
	border-radius: 999px;
	text-decoration: none;
}

.nmu-product-filter__submit {
	background: #14284C;
	color: #fff;
	border: 1px solid #14284C;
}

.nmu-product-filter__reset {
	color: #14284C;
}

/* Results: audit archive style */
.nmu-product-filter__results {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.75rem;
}

.nmu-product-card {
	background: #FBF9F4;
	border: 1px solid #E4DED2;
	border-radius: 18px;
	padding: 0.9rem 1rem;
	display: grid;
	grid-template-columns: 120px minmax(0, 1fr);
	gap: 1rem;
	align-items: center;
}

.nmu-product-card__thumbnail img {
	display: block;
	width: 120px;
	height: 120px;
	object-fit: contain;
	border-radius: 10px;
	background: #fff;
	margin: 10px;
}

.nmu-product-card__title {
	margin: 0 0 0.35rem;
	font-size: 1rem;
	line-height: 1.25;
	color: #14284C;
}

.nmu-product-card__title a {
	color: #14284C;
	text-decoration: none;
}

.nmu-product-card__title a:hover {
	text-decoration: underline;
}

.nmu-product-card__meta {
	margin: 0.2rem 0;
	font-size: 0.88rem;
	font-weight: 600;
	color: #555;
}

.nmu-product-card__excerpt {
	margin-top: 0.4rem;
	font-size: 0.9rem;
	color: #333;
}

.nmu-product-card__excerpt > :last-child {
	margin-bottom: 0;
}

/* Pagination */
.nmu-product-filter__pagination {
	margin-top: 1.25rem;
}

.nmu-product-filter__pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nmu-product-filter__pagination a,
.nmu-product-filter__pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.25rem;
	min-height: 2.25rem;
	padding: 0.35rem 0.65rem;
	border: 1px solid #E4DED2;
	border-radius: 8px;
	text-decoration: none;
	color: #14284C;
	background: #fff;
}

.nmu-product-filter__pagination .current {
	background: #14284C;
	color: #fff;
	font-weight: 700;
}

.nmu-product-filter__no-results {
	margin-block: 1.5rem;
	font-weight: 700;
	color: #14284C;
}

/* Mobile */
@media (max-width: 780px) {
	.nmu-product-filter__form {
		grid-template-columns: 1fr;
	}

	.nmu-product-filter__actions {
		align-items: stretch;
	}

	.nmu-product-card {
		grid-template-columns: 90px minmax(0, 1fr);
	}

	.nmu-product-card__thumbnail img {
		width: 90px;
		height: 90px;
	}
}

.nmu-product-card__content {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	min-width: 0;
}

.nmu-product-card__title,
.nmu-product-card__meta,
.nmu-product-card__excerpt {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
}