/* =========================================================
   FigureArtFans — Buscador principal
   ========================================================= */

.faf-search {
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
	padding: 10px 20px;
}

.faf-search *,
.faf-search *::before,
.faf-search *::after {
	box-sizing: border-box;
}

.faf-search__form {
	display: grid;
	grid-template-columns: minmax(170px, 220px) minmax(220px, 1fr) auto;
	align-items: stretch;
	width: 100%;
	min-height: 64px;
	overflow: hidden;
	background: #ffffff;
	border: 1px solid #d9dde3;
	border-radius: 8px;
	box-shadow: 0 5px 22px rgba(24, 32, 45, 0.12);
	transition:
		border-color 0.2s ease,
		box-shadow 0.2s ease;
}

.faf-search__form:focus-within {
	border-color: #f15a24;
	box-shadow:
		0 5px 22px rgba(24, 32, 45, 0.12),
		0 0 0 3px rgba(241, 90, 36, 0.15);
}

.faf-search__category {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 8px 42px 8px 20px;
	border-right: 1px solid #e2e5e9;
	background: #ffffff;
}

.faf-search__category::after {
	content: "";
	position: absolute;
	right: 20px;
	bottom: 20px;
	width: 8px;
	height: 8px;
	border-right: 2px solid #48515c;
	border-bottom: 2px solid #48515c;
	transform: rotate(45deg);
	pointer-events: none;
}

.faf-search__category label {
	display: block;
	margin: 0 0 2px;
	color: #707985;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.faf-search__category select {
	width: 100%;
	margin: 0;
	padding: 0;
	color: #20252b;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.5;
	background: transparent;
	border: 0;
	border-radius: 0;
	outline: none;
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
}

.faf-search__input {
	width: 100%;
	min-width: 0;
	height: 100%;
	margin: 0;
	padding: 0 22px;
	color: #20252b;
	font-family: inherit;
	font-size: 16px;
	line-height: 1.5;
	background: #ffffff;
	border: 0;
	border-radius: 0;
	outline: none;
	appearance: none;
	-webkit-appearance: none;
}

.faf-search__input::placeholder {
	color: #8b929b;
	opacity: 1;
}

.faf-search__input::-webkit-search-cancel-button {
	cursor: pointer;
}

.faf-search__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-width: 135px;
	margin: 0;
	padding: 0 24px;
	color: #ffffff;
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	background: #f15a24;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	cursor: pointer;
	transition:
		background-color 0.2s ease,
		transform 0.2s ease;
}

.faf-search__button:hover,
.faf-search__button:focus {
	color: #ffffff;
	background: #d94713;
}

.faf-search__button:active {
	transform: scale(0.98);
}

.faf-search__button svg {
	flex: 0 0 auto;
}

/* Tableta y móvil */

@media (max-width: 700px) {

	.faf-search {
		padding: 8px 14px;
	}

	.faf-search__form {
		grid-template-columns: minmax(0, 1fr) auto;
		min-height: auto;
		border-radius: 7px;
	}

	.faf-search__category {
		grid-column: 1 / -1;
		min-height: 58px;
		border-right: 0;
		border-bottom: 1px solid #e2e5e9;
	}

	.faf-search__input {
		min-height: 58px;
		padding: 0 16px;
		font-size: 16px;
	}

	.faf-search__button {
		min-width: 64px;
		min-height: 58px;
		padding: 0 20px;
	}

	.faf-search__button span {
		display: none;
	}
}

@media (max-width: 380px) {

	.faf-search__input {
		padding: 0 13px;
		font-size: 14px;
	}

	.faf-search__button {
		min-width: 58px;
		padding: 0 17px;
	}
}