/* The results page of the header search. */

/* The banner of the catalogue. The images are the ones of the catalogue page. */
.nxt_search_banner {
	width: 100%;
	aspect-ratio: 1460 / 345;
	background: url("https://www.nextmobiles.com/wp-content/uploads/2024/12/Bandeau-inclus-rose-desk.svg") center / cover no-repeat;
}

@media (max-width: 767px) {
	.nxt_search_banner {
		aspect-ratio: 343 / 293.27;
		background-image: url("https://www.nextmobiles.com/wp-content/uploads/2023/02/mobile-bandeau-rose.svg");
	}
}

@media (max-width: 479px) {
	.nxt_search_banner {
		background-image: url("https://www.nextmobiles.com/wp-content/uploads/2024/12/Bandeau-inclus-rose-mobile.svg");
	}
}

.nxt_search_results {
	max-width: 1200px;
	margin: 0 auto;
	padding: 24px 16px;
	color: #1d1d1b;
	font-family: "Avenir", sans-serif;
}

/* The status line is for a screen reader. The count and the messages show in the body. */
.nxt_search_results_status {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.nxt_search_results h1,
.nxt_search_results h2 {
	font-family: "Termina", sans-serif;
}

.nxt_search_results h1 {
	font-size: 28px;
	margin: 0 0 8px;
}

.nxt_search_results h2 {
	font-size: 18px;
	margin: 24px 0 12px;
}

.nxt_search_results_count {
	margin: 0;
	color: #6b6b6b;
}

.nxt_search_results_rows {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 12px;
}

.nxt_search_results_row {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 12px;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	color: #1d1d1b;
	text-align: center;
	text-decoration: none;
}

.nxt_search_results_row:hover,
.nxt_search_results_row:focus {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
}

.nxt_search_results_row img,
.nxt_search_results_noimage,
.nxt_search_results_pageicon {
	width: 100px;
	height: 100px;
	object-fit: contain;
}

/* A page with no featured image: a grey list icon, centred in the area of an image. */
.nxt_search_results_pageicon {
	background: center / 48px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%236b6b6b' stroke-width='1.5' viewBox='0 0 24 24'%3E%3Cpath d='M4 6h16M4 12h16M4 18h10'/%3E%3C/svg%3E");
}

.nxt_search_results_name {
	font-size: 14px;
	line-height: 1.3;
}

.nxt_search_results_empty {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 16px;
}

.nxt_search_results_empty a {
	text-decoration: underline;
}

/* The product cards are the cards of the catalogue (phones_list.css). The grid keeps its gap. */
.nxt_search_results .nxt_phones_list_container {
	width: 100%;
}

.nxt_search_results_products .nxt_search_results_rows {
	margin-top: 12px;
}

.nxt_search_results_more {
	display: block;
	margin: 24px auto 0;
}

.nxt_search_results_error {
	margin: 16px 0 0;
}

.nxt_search_results_more[hidden],
.nxt_search_results_error[hidden] {
	display: none;
}
