/* Golda Lab — el buscador del rediseño v3 (goldalab-busqueda.php, busqueda.js).
 * Pantalla completa en papel: «Buscar» y «Cerrar» arriba, el campo en serif gigante con una línea fina abajo y los
 * resultados con foto, nombre en serif y precio. */

.gl-buscador {
	position: fixed;
	inset: 0;
	width: 100%;
	max-width: none;
	height: 100%;
	max-height: none;
	margin: 0;
	padding: 20px clamp(16px, 4vw, 56px) 40px;
	border: 0;
	background: var(--gl-papel);
	color: var(--gl-noche);
	overflow: auto;
	overscroll-behavior: contain;
}
.gl-buscador[open] {
	display: flex;
	flex-direction: column;
	animation: gl-buscador-entra 0.25s ease;
}
.gl-buscador::backdrop {
	background: var(--gl-papel);
}
html:has(.gl-buscador[open]) {
	overflow: hidden;
}
@keyframes gl-buscador-entra {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
}
.gl-buscador-arriba {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}
.gl-buscador-titulo {
	margin: 0;
	font-family: "Montserrat", sans-serif;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	line-height: 1.4;
	text-transform: uppercase;
	color: var(--gl-golda);
}
.gl-buscador-cerrar {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 44px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--gl-noche);
	font: 600 14px "Montserrat", sans-serif;
	cursor: pointer;
}
.gl-buscador-cerrar svg,
.gl-buscador-todos svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.gl-buscador-cerrar:hover {
	color: var(--gl-golda);
}
.gl-buscador-form {
	margin-top: 8vh;
}
.gl-buscador-form input[type="search"] {
	width: 100%;
	height: auto;
	padding: 0 0 14px;
	border: 0;
	border-bottom: 1px solid var(--gl-noche);
	border-radius: 0;
	background: transparent;
	color: var(--gl-noche);
	font-family: var(--gl-titulos);
	font-size: clamp(40px, 7vw, 110px);
	line-height: 1.1;
	letter-spacing: -0.02em;
	caret-color: var(--gl-golda);
	-webkit-appearance: none;
	appearance: none;
}
.gl-buscador-form input[type="search"]::placeholder {
	color: rgba(55, 5, 58, 0.35);
}
.gl-buscador-form input[type="search"]::-webkit-search-cancel-button {
	display: none;
}
.gl-buscador-form input[type="search"]:focus {
	outline: none;
	border-bottom-color: var(--gl-golda);
}
.gl-buscador-resultados {
	margin: 20px 0 0;
	padding: 0;
	list-style: none;
}
.gl-buscador-resultado {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 14px 0;
	border-bottom: 1px solid var(--gl-linea);
	color: var(--gl-noche);
	text-decoration: none;
	transition: color 0.2s ease;
}
.gl-buscador-resultado:hover {
	color: var(--gl-golda);
}
.gl-buscador-foto {
	flex: none;
	width: 52px;
	height: 66px;
	border-radius: 4px;
	overflow: hidden;
	background: var(--gl-lavanda);
}
.gl-buscador-foto img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.gl-buscador-nombre {
	flex: 1;
	min-width: 0;
	font-family: var(--gl-titulos);
	font-size: clamp(22px, 3vw, 30px);
	line-height: 1.1;
}
.gl-buscador-precio {
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
}
.gl-buscador-vacio {
	margin: 20px 0 0;
	font-size: 16px;
	opacity: 0.7;
}
.gl-buscador-todos {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	align-self: flex-start;
	min-height: 44px;
	margin-top: 10px;
	color: var(--gl-golda);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 5px;
}
.gl-buscador-todos[hidden] {
	display: none;
}
.gl-buscador a:focus-visible,
.gl-buscador button:focus-visible {
	outline: 2px solid var(--gl-golda);
	outline-offset: 3px;
	border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
	.gl-buscador[open] {
		animation: none;
	}
}
