/* Luzents Filtro — estilos
   Fuentes y colores iguales a los de la tienda: Bebas Neue (títulos y botones), Poppins (texto), morado #605AFE. */

.luz-wrap,
.luz-app {
	--luz-accent: #605AFE;
	--luz-accent-dark: color-mix(in srgb, var(--luz-accent) 82%, #000);
	--luz-accent-soft: color-mix(in srgb, var(--luz-accent) 10%, #fff);
	--luz-ink: #0b0b0f;
	--luz-muted: #6b6b7b;
	--luz-line: #e4e4ee;
	--luz-card: #ffffff;
	--luz-radius: 15px;
	--luz-display: "Bebas Neue", "Oswald", Impact, "Arial Narrow", sans-serif;
	--luz-text: Poppins, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.luz-wrap {
	max-width: 1600px;
	margin: 0 auto;
	padding: 0 32px 70px;
	box-sizing: border-box;
	font-family: var(--luz-text);
	color: var(--luz-ink);
}

.luz-wrap *,
.luz-app *,
.luz-wrap *::before,
.luz-app *::before,
.luz-wrap *::after,
.luz-app *::after {
	box-sizing: border-box;
}

.luz-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Navegadores sin color-mix(): colores fijos del morado de Luzents */
@supports not (color: color-mix(in srgb, red 50%, blue)) {
	.luz-wrap,
	.luz-app {
		--luz-accent-dark: #4a44d6;
		--luz-accent-soft: #efeefe;
	}

	.luz-chip:hover {
		background: #dcdafd;
	}
}

/* Navegadores sin :has(): se muestran las casillas normales */
@supports not selector(:has(*)) {
	.luz-opt input,
	.luz-switch input {
		position: static;
		opacity: 1;
		width: auto;
		height: auto;
	}

	.luz-list .luz-opt::before {
		display: none;
	}
}

/* ---------- Cabecera ---------- */

.luz-hero {
	text-align: center;
	padding: 40px 0 28px;
	border-bottom: 1px solid var(--luz-line);
	margin-bottom: 32px;
}

.luz-crumbs {
	font-size: 17px;
	color: var(--luz-muted);
	margin-bottom: 8px;
}

.luz-crumbs a {
	color: inherit;
	text-decoration: none;
}

.luz-crumbs a:hover {
	color: var(--luz-accent);
}

.luz-crumbs [aria-current] {
	color: var(--luz-accent);
	font-weight: 600;
}

.luz-sep {
	margin: 0 8px;
}

.luz-h1 {
	font-family: var(--luz-display);
	font-weight: 400;
	font-size: clamp(34px, 5vw, 54px);
	line-height: 1.05;
	letter-spacing: 0.01em;
	margin: 0 0 14px;
	text-transform: uppercase;
	color: #000;
}

.luz-intro {
	max-width: 880px;
	margin: 0 auto;
	font-size: 17px;
	line-height: 1.65;
	color: #2a2a35;
}

/* ---------- Estructura ---------- */

.luz-app {
	--luz-gap-x: 44px;
	--luz-gap-y: 64px;
	--luz-min: 205px;
	box-sizing: border-box;
	width: 100%;
	max-width: 1600px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 32px;
	padding-right: 32px;
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	gap: 48px;
	align-items: start;
	font-family: var(--luz-text);
	color: var(--luz-ink);
}

.luz-results {
	min-width: 0;
	position: relative;
	transition: opacity 0.18s ease;
}

.luz-app.is-loading .luz-results {
	opacity: 0.45;
	pointer-events: none;
}

.luz-app.is-loading .luz-results::after {
	content: "";
	position: absolute;
	top: 120px;
	left: 50%;
	width: 34px;
	height: 34px;
	margin-left: -17px;
	border: 3px solid var(--luz-accent-soft);
	border-top-color: var(--luz-accent);
	border-radius: 50%;
	animation: luz-spin 0.7s linear infinite;
}

@keyframes luz-spin {
	to {
		transform: rotate(360deg);
	}
}

/* Dentro de la página de la tienda el margen lo pone .luz-wrap; en las demás
   (archivos con código corto) lo pone el propio plugin, así no queda pegado a los bordes. */
.luz-wrap .luz-app {
	max-width: none;
	padding-left: 0;
	padding-right: 0;
}

/* En páginas de archivo: la tienda se abre más que la plantilla (hasta 1600 px) y queda
   centrada en la pantalla, sin tocar el ancho de los demás bloques. Solo en pantallas grandes. */
@media (min-width: 901px) {
	.luz-app.luz-bleed {
		width: min(1600px, calc(100vw - 16px));
		max-width: none;
		margin-left: calc(50% - min(1600px, calc(100vw - 16px)) / 2);
		margin-right: 0;
	}
}

/* ---------- Panel de filtros ---------- */

.luz-panel {
	position: sticky;
	top: calc(var(--luz-sticky, 186px) + var(--wp-admin--admin-bar--height, 0px));
	max-height: calc(100vh - var(--luz-sticky, 186px) - var(--wp-admin--admin-bar--height, 0px) - 16px);
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: thin;
	scrollbar-color: var(--luz-line) transparent;
	padding-right: 6px;
}

.luz-panel-head,
.luz-panel-foot {
	display: none;
}

.luz-form {
	margin: 0;
}

.luz-search {
	position: relative;
	margin-bottom: 14px;
}

.luz-search .luz-ico {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--luz-muted);
	pointer-events: none;
}

.luz-q,
.luz-list-q {
	width: 100%;
	height: 46px;
	padding: 0 14px 0 42px;
	border: 1.5px solid var(--luz-line);
	border-radius: 12px;
	background: #fff;
	font-family: var(--luz-text);
	font-size: 14px;
	color: var(--luz-ink);
	outline: none;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.luz-q:focus,
.luz-list-q:focus {
	border-color: var(--luz-accent);
	box-shadow: 0 0 0 3px var(--luz-accent-soft);
}

.luz-list-q {
	height: 38px;
	padding: 0 12px;
	font-size: 13px;
	border-radius: 10px;
	margin-bottom: 8px;
}

/* Interruptores */

.luz-switches {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 6px 0 16px;
	border-bottom: 1px solid var(--luz-line);
}

.luz-switch {
	display: flex;
	align-items: center;
	gap: 12px;
	cursor: pointer;
	font-size: 14px;
	line-height: 1.2;
	user-select: none;
}

.luz-switch input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.luz-switch-ui {
	position: relative;
	flex: 0 0 auto;
	width: 40px;
	height: 23px;
	border-radius: 999px;
	background: #cfcfdd;
	transition: background 0.18s ease;
}

.luz-switch-ui::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 17px;
	height: 17px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
	transition: transform 0.18s ease;
}

.luz-switch input:checked + .luz-switch-ui {
	background: var(--luz-accent);
}

.luz-switch input:checked + .luz-switch-ui::after {
	transform: translateX(17px);
}

.luz-switch input:focus-visible + .luz-switch-ui {
	outline: 2px solid var(--luz-accent);
	outline-offset: 2px;
}

/* Secciones */

.luz-sec {
	border-bottom: 1px solid var(--luz-line);
}

.luz-sec > summary {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 15px 2px;
	cursor: pointer;
	list-style: none;
	user-select: none;
}

.luz-sec > summary::-webkit-details-marker {
	display: none;
}

.luz-sec > summary::marker {
	content: "";
}

.luz-sec > summary::after {
	content: "";
	margin-left: auto;
	width: 9px;
	height: 9px;
	border-right: 2px solid var(--luz-ink);
	border-bottom: 2px solid var(--luz-ink);
	transform: rotate(45deg) translate(-2px, -2px);
	transition: transform 0.2s ease;
}

.luz-sec[open] > summary::after {
	transform: rotate(-135deg) translate(-2px, -2px);
}

.luz-sec > summary:focus-visible {
	outline: 2px solid var(--luz-accent);
	outline-offset: 2px;
	border-radius: 6px;
}

.luz-sec-t {
	font-family: var(--luz-display);
	font-size: 24px;
	line-height: 1;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.luz-sec-sub {
	font-size: 12px;
	color: var(--luz-muted);
	margin-top: 3px;
}

.luz-sec-n {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--luz-accent);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
}

.luz-sec-n[hidden] {
	display: none;
}

.luz-sec-body {
	padding: 2px 2px 18px;
}

/* Opciones (casillas) */

.luz-opt {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	font-size: 14px;
	line-height: 1.25;
}

.luz-opt input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.luz-n {
	font-size: 12px;
	color: var(--luz-muted);
	font-variant-numeric: tabular-nums;
}

.luz-opt[hidden] {
	display: none !important;
}

.luz-opt.is-zero {
	opacity: 0.38;
	cursor: not-allowed;
}

/* Lista con buscador (marca, aroma) */

.luz-list {
	max-height: 232px;
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: thin;
	scrollbar-color: var(--luz-line) transparent;
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding-right: 4px;
}

.luz-list .luz-opt {
	padding: 7px 4px;
	border-radius: 8px;
}

.luz-list .luz-opt:hover:not(.is-zero) {
	background: var(--luz-accent-soft);
}

.luz-list .luz-opt::before {
	content: "";
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	border: 1.8px solid #b9b9cc;
	border-radius: 5px;
	background: #fff;
	transition: background 0.12s ease, border-color 0.12s ease;
}

.luz-list .luz-opt:has(input:checked)::before {
	background: var(--luz-accent);
	border-color: var(--luz-accent);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-size: 14px;
	background-position: center;
	background-repeat: no-repeat;
}

.luz-list .luz-opt:has(input:focus-visible)::before {
	outline: 2px solid var(--luz-accent);
	outline-offset: 2px;
}

.luz-list .luz-opt-t {
	flex: 1 1 auto;
	min-width: 0;
}

.luz-list-empty {
	margin: 8px 4px 0;
	font-size: 13px;
	color: var(--luz-muted);
}

/* Opciones en forma de botón (género, categoría, ocasión...) */

.luz-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.luz-opt-chip {
	gap: 7px;
	padding: 8px 13px;
	border: 1.5px solid var(--luz-line);
	border-radius: 12px;
	background: #fff;
	font-size: 13.5px;
	transition: border-color 0.12s ease, background 0.12s ease, color 0.12s ease;
}

.luz-opt-chip:hover:not(.is-zero) {
	border-color: var(--luz-accent);
}

.luz-opt-chip:has(input:checked) {
	background: var(--luz-accent);
	border-color: var(--luz-accent);
	color: #fff;
}

.luz-opt-chip:has(input:checked) .luz-n {
	color: rgba(255, 255, 255, 0.75);
}

.luz-opt-chip:has(input:focus-visible) {
	outline: 2px solid var(--luz-accent);
	outline-offset: 2px;
}

/* Precio */

.luz-range {
	position: relative;
	height: 26px;
	margin: 8px 6px 12px;
}

.luz-range-track {
	position: absolute;
	left: 0;
	right: 0;
	top: 50%;
	height: 5px;
	margin-top: -2.5px;
	border-radius: 999px;
	background: var(--luz-line);
}

.luz-range-fill {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	border-radius: 999px;
	background: var(--luz-accent);
}

.luz-r {
	position: absolute;
	left: -6px;
	top: 0;
	width: calc(100% + 12px);
	height: 26px;
	margin: 0;
	background: none;
	pointer-events: none;
	-webkit-appearance: none;
	appearance: none;
}

.luz-r::-webkit-slider-runnable-track {
	background: transparent;
	height: 26px;
	-webkit-appearance: none;
}

.luz-r::-moz-range-track {
	background: transparent;
	height: 26px;
}

.luz-r::-webkit-slider-thumb {
	-webkit-appearance: none;
	pointer-events: auto;
	width: 22px;
	height: 22px;
	margin-top: 2px;
	border-radius: 50%;
	border: 3px solid var(--luz-accent);
	background: #fff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
	cursor: grab;
}

.luz-r::-moz-range-thumb {
	pointer-events: auto;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: 3px solid var(--luz-accent);
	background: #fff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
	cursor: grab;
}

.luz-r:focus-visible::-webkit-slider-thumb {
	outline: 2px solid var(--luz-accent);
	outline-offset: 2px;
}

.luz-price-row {
	display: flex;
	align-items: center;
	gap: 10px;
}

.luz-dash {
	color: var(--luz-muted);
	font-size: 13px;
}

.luz-money {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 6px;
	height: 42px;
	padding: 0 12px;
	border: 1.5px solid var(--luz-line);
	border-radius: 12px;
	background: #fff;
	font-size: 14px;
}

.luz-money:focus-within {
	border-color: var(--luz-accent);
	box-shadow: 0 0 0 3px var(--luz-accent-soft);
}

.luz-money span {
	color: var(--luz-muted);
}

.luz-money input {
	width: 100%;
	min-width: 0;
	border: 0;
	outline: 0;
	background: transparent;
	padding: 0;
	margin: 0;
	font-family: var(--luz-text);
	font-size: 14px;
	color: var(--luz-ink);
	box-shadow: none;
	-moz-appearance: textfield;
	appearance: textfield;
}

.luz-money input::-webkit-outer-spin-button,
.luz-money input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* Enlaces tipo texto */

.luz-link {
	appearance: none;
	-webkit-appearance: none;
	border: 0;
	background: none;
	padding: 0;
	margin: 0;
	font-family: var(--luz-text);
	font-size: 13px;
	font-weight: 600;
	color: var(--luz-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.luz-link:hover {
	color: var(--luz-accent-dark);
}

/* ---------- Barra superior de resultados ---------- */

.luz-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 14px;
}

.luz-open {
	display: none;
}

.luz-count {
	margin: 0;
	font-size: 14px;
	color: var(--luz-muted);
}

.luz-count strong {
	color: var(--luz-ink);
	font-weight: 600;
}

.luz-sort {
	margin-left: auto;
}

.luz-orden {
	height: 44px;
	min-width: 220px;
	padding: 0 40px 0 16px;
	border: 1.5px solid var(--luz-line);
	border-radius: 12px;
	background-color: #fff;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%230b0b0f' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 16px;
	font-family: var(--luz-text);
	font-size: 14px;
	color: var(--luz-ink);
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	outline: none;
	box-shadow: none;
}

.luz-orden:focus {
	border-color: var(--luz-accent);
	box-shadow: 0 0 0 3px var(--luz-accent-soft);
}

/* Filtros puestos */

.luz-active {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 18px;
}

.luz-chip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 7px 10px 7px 13px;
	border: 0;
	border-radius: 999px;
	background: var(--luz-accent-soft);
	color: var(--luz-accent-dark);
	font-family: var(--luz-text);
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.12s ease;
}

.luz-chip:hover {
	background: color-mix(in srgb, var(--luz-accent) 20%, #fff);
}

.luz-chip .luz-ico {
	flex: 0 0 auto;
}

/* ---------- Productos ---------- */

.luz-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(max(var(--luz-min, 205px), calc((100% - (var(--luz-cols, 5) - 1) * var(--luz-gap-x, 44px)) / var(--luz-cols, 5))), 1fr));
	gap: var(--luz-gap-y, 64px) var(--luz-gap-x, 44px);
}

.luz-card {
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	min-width: 0;
}

.luz-media {
	position: relative;
	display: block;
	width: 84%;
	margin: 0 auto;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 16px;
	background: transparent;
}

.luz-img {
	display: block;
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity 0.28s ease;
}

/* Segunda imagen: se prepara al pasar el mouse y entra por encima sin mezclarse */
.luz-img:not(.luz-flip) {
	transition: none;
}

.luz-flip {
	opacity: 0;
	pointer-events: none;
}

@media (hover: hover) {
	.luz-media.is-flip:hover .luz-flip {
		opacity: 1;
	}

	/* La primera imagen se esconde recién cuando la segunda ya tapó todo */
	.luz-media.is-flip:hover .luz-img:not(.luz-flip) {
		opacity: 0;
		transition: opacity 0s linear 0.28s;
	}
}

@media (hover: none) {
	.luz-flip {
		display: none;
	}
}

/* Sin existencias: se ve oscurito, igual la primera y la segunda imagen */
.luz-card.is-out .luz-img {
	filter: grayscale(1);
}

.luz-card.is-out .luz-img:not(.luz-flip) {
	opacity: 0.5;
}

@media (hover: hover) {
	.luz-card.is-out .luz-media.is-flip:hover .luz-flip {
		opacity: 0.5;
	}

	.luz-card.is-out .luz-media.is-flip:hover .luz-img:not(.luz-flip) {
		opacity: 0;
	}
}

.luz-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 3;
	padding: 4px 10px;
	border-radius: 6px;
	background: #0b0b0f;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.01em;
	white-space: nowrap;
}

.luz-badge-sale {
	background: #d90429;
}

.luz-badge-soon {
	background: #f77f00;
}

.luz-badge-back {
	background: #1d4ed8;
}

.luz-title {
	margin: 18px 0 6px;
	padding: 0 6px;
	width: 100%;
	font-family: var(--luz-display);
	font-weight: 400;
	font-size: 23px;
	line-height: 24px;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 48px;
}

.luz-title a {
	color: #000;
	text-decoration: none;
}

.luz-title a:hover {
	color: var(--luz-accent);
}

.luz-price {
	font-size: 17px;
	font-weight: 600;
	line-height: 1.3;
	color: #070707;
	margin-bottom: 14px;
}

.luz-price del {
	font-size: 13px;
	font-weight: 400;
	color: var(--luz-muted);
	margin-right: 4px;
}

.luz-price ins {
	text-decoration: none;
}

.luz-from {
	font-size: 12px;
	font-weight: 500;
	color: var(--luz-muted);
	margin-right: 2px;
}

/* Botón: morado; al pasar el mouse se vuelve blanco con borde y letras moradas */
.luz-app .luz-btn {
	display: inline-block;
	margin-top: auto;
	padding: 9px 20px;
	border: 2px solid var(--luz-accent);
	border-radius: var(--luz-radius);
	background: var(--luz-accent);
	color: #fff !important;
	font-family: var(--luz-display);
	font-size: 19px;
	font-weight: 400;
	line-height: 1.15;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	text-decoration: none !important;
	white-space: nowrap;
	max-width: 100%;
	box-sizing: border-box;
	cursor: pointer;
	transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.luz-app .luz-btn:hover,
.luz-app .luz-btn:focus-visible {
	background: #fff;
	border-color: var(--luz-accent);
	color: var(--luz-accent) !important;
}

.luz-app .luz-btn:focus-visible {
	outline: 3px solid var(--luz-accent-soft);
	outline-offset: 2px;
}

/* Sin resultados */

.luz-empty {
	text-align: center;
	padding: 70px 20px;
	border: 1.5px dashed var(--luz-line);
	border-radius: 18px;
}

.luz-empty-t {
	margin: 0 0 6px;
	font-family: var(--luz-display);
	font-size: 30px;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.luz-empty-s {
	margin: 0 0 22px;
	color: var(--luz-muted);
	font-size: 15px;
}

/* Cargar más */

.luz-more-wrap {
	display: flex;
	justify-content: center;
	margin-top: 48px;
}

.luz-app .luz-more {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	padding: 7px 22px;
	border: 1.5px solid var(--luz-accent);
	border-radius: 999px;
	background: transparent;
	color: #0b0b0f !important;
	font-family: var(--luz-text);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0;
	text-transform: none;
	text-decoration: none !important;
	box-shadow: none;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.luz-app .luz-more:hover,
.luz-app .luz-more:focus-visible {
	background: var(--luz-accent);
	border-color: var(--luz-accent);
	color: #fff !important;
}

.luz-app .luz-more.is-loading {
	pointer-events: none;
	background: transparent;
	border-color: var(--luz-line);
}

.luz-more.is-loading .luz-more-t {
	visibility: hidden;
}

.luz-more.is-loading::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 18px;
	height: 18px;
	margin: -9px 0 0 -9px;
	border: 2.5px solid var(--luz-accent-soft);
	border-top-color: var(--luz-accent);
	border-radius: 50%;
	animation: luz-spin 0.7s linear infinite;
}

.luz-overlay {
	display: none;
}

/* ---------- Pantallas medianas ---------- */

@media (max-width: 1200px) {
	.luz-wrap {
		padding: 0 24px 60px;
	}

	.luz-app {
		--luz-gap-x: 32px;
		--luz-gap-y: 54px;
		grid-template-columns: 240px minmax(0, 1fr);
		gap: 34px;
		padding-left: 24px;
		padding-right: 24px;
	}

	.luz-wrap .luz-app {
		padding-left: 0;
		padding-right: 0;
	}
}

/* ---------- Celular y tablet: el filtro se abre como cajón ---------- */

@media (max-width: 900px) {
	.luz-app {
		padding-left: 18px;
		padding-right: 18px;
	}

	.luz-wrap .luz-app {
		padding-left: 0;
		padding-right: 0;
	}

	.luz-wrap {
		padding: 0 14px 44px;
	}

	.luz-hero {
		padding: 22px 0 16px;
		margin-bottom: 18px;
	}

	.luz-crumbs {
		font-size: 14px;
		margin-bottom: 4px;
	}

	.luz-intro {
		font-size: 14.5px;
		line-height: 1.55;
	}

	.luz-app {
		display: block;
	}

	.luz-panel {
		position: fixed;
		z-index: 999999;
		top: 0;
		bottom: 0;
		left: 0;
		width: min(92vw, 400px);
		max-height: none;
		padding: 0;
		display: flex;
		flex-direction: column;
		background: #fff;
		box-shadow: 8px 0 40px rgba(0, 0, 0, 0.25);
		transform: translateX(-105%);
		visibility: hidden;
		transition: transform 0.26s ease, visibility 0s linear 0.26s;
		overflow: hidden;
	}

	.luz-app.is-open .luz-panel {
		transform: none;
		visibility: visible;
		transition: transform 0.26s ease;
	}

	.luz-panel-head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		flex: 0 0 auto;
		padding: 16px 18px;
		border-bottom: 1px solid var(--luz-line);
	}

	.luz-panel-title {
		font-family: var(--luz-display);
		font-size: 30px;
		letter-spacing: 0.02em;
		text-transform: uppercase;
		line-height: 1;
	}

	.luz-close {
		appearance: none;
		-webkit-appearance: none;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 42px;
		height: 42px;
		border: 0;
		border-radius: 50%;
		background: var(--luz-accent-soft);
		color: var(--luz-ink);
		cursor: pointer;
	}

	.luz-form {
		flex: 1 1 auto;
		overflow-y: auto;
		overscroll-behavior: contain;
		padding: 16px 18px 8px;
	}

	.luz-panel-foot {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 14px;
		flex: 0 0 auto;
		padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px));
		border-top: 1px solid var(--luz-line);
		background: #fff;
	}

	.luz-apply {
		appearance: none;
		-webkit-appearance: none;
		flex: 1 1 auto;
		height: 50px;
		border: 0;
		border-radius: var(--luz-radius);
		background: var(--luz-accent);
		color: #fff;
		font-family: var(--luz-display);
		font-size: 22px;
		letter-spacing: 0.02em;
		text-transform: uppercase;
		cursor: pointer;
	}

	.luz-overlay {
		position: fixed;
		inset: 0;
		z-index: 999998;
		background: rgba(8, 8, 20, 0.5);
	}

	.luz-app.is-open .luz-overlay {
		display: block;
	}

	html.luz-lock,
	html.luz-lock body {
		overflow: hidden;
	}

	/* Barra: Filtrar + cantidad + Ordenar, todo en una fila compacta */

	.luz-toolbar {
		gap: 10px;
		margin-bottom: 12px;
	}

	.luz-open {
		appearance: none;
		-webkit-appearance: none;
		display: inline-flex;
		align-items: center;
		gap: 8px;
		height: 42px;
		padding: 0 14px;
		border: 1.5px solid var(--luz-ink);
		border-radius: 12px;
		background: #fff;
		color: var(--luz-ink);
		font-family: var(--luz-text);
		font-size: 14px;
		font-weight: 600;
		cursor: pointer;
	}

	.luz-open-n {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-width: 20px;
		height: 20px;
		padding: 0 6px;
		border-radius: 999px;
		background: var(--luz-accent);
		color: #fff;
		font-size: 11px;
	}

	.luz-open-n[hidden] {
		display: none;
	}

	.luz-count {
		font-size: 13px;
		flex: 1 1 auto;
		text-align: center;
		white-space: nowrap;
	}

	.luz-sort {
		margin-left: 0;
	}

	.luz-orden {
		height: 42px;
		min-width: 0;
		width: 150px;
		padding: 0 34px 0 12px;
		font-size: 13px;
		text-overflow: ellipsis;
	}

	.luz-active {
		flex-wrap: nowrap;
		overflow-x: auto;
		margin: 0 -14px 14px;
		padding: 0 14px 4px;
		scrollbar-width: none;
	}

	.luz-active::-webkit-scrollbar {
		display: none;
	}

	.luz-chip,
	.luz-active .luz-clear-all {
		flex: 0 0 auto;
		white-space: nowrap;
	}

	/* Tarjetas: más separadas y más pequeñas */

	.luz-app {
		--luz-gap-x: 26px;
		--luz-gap-y: 46px;
		--luz-min: 180px;
	}

	.luz-media {
		width: 80%;
	}

	.luz-title {
		font-size: 21px;
		line-height: 22px;
		min-height: 44px;
		margin: 14px 0 4px;
	}

	.luz-price {
		font-size: 16px;
		margin-bottom: 12px;
	}

	.luz-app .luz-btn {
		font-size: 17px;
		padding: 8px 16px;
	}
}

@media (max-width: 600px) {
	.luz-h1 {
		font-size: 32px;
		margin-bottom: 8px;
	}

	.luz-wrap {
		padding: 0 18px 44px;
	}

	.luz-app {
		--luz-gap-x: 22px;
		--luz-gap-y: 38px;
	}

	.luz-grid {
		grid-template-columns: repeat(var(--luz-cols-m, 2), minmax(0, 1fr));
	}

	.luz-media {
		width: 82%;
		border-radius: 13px;
	}

	.luz-title {
		font-size: 18px;
		line-height: 19px;
		min-height: 38px;
		margin: 12px 0 4px;
		padding: 0;
	}

	.luz-price {
		font-size: 15px;
		margin-bottom: 10px;
	}

	.luz-price del {
		font-size: 12px;
	}

	.luz-from {
		font-size: 11px;
	}

	.luz-app .luz-btn {
		font-size: 15.5px;
		padding: 7px 14px;
		border-width: 1.5px;
		border-radius: 11px;
	}

	.luz-badge {
		top: 7px;
		left: 7px;
		font-size: 10px;
		padding: 3px 7px;
		border-radius: 5px;
	}

	.luz-more-wrap {
		margin-top: 36px;
	}

	.luz-app .luz-more {
		font-size: 14px;
		min-height: 36px;
		padding: 6px 20px;
	}

	.luz-orden {
		width: 132px;
	}
}

/* ---------- Protección contra los estilos del tema (Blocksy) ----------
   Algunos temas le ponen bordes, alturas y márgenes a todos los campos.
   Esto asegura que el buscador, el precio y el orden se vean siempre igual. */

.luz-app input.luz-q,
.luz-app input.luz-list-q {
	display: block !important;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	border: 1.5px solid var(--luz-line) !important;
	background: #fff !important;
	box-shadow: none !important;
	color: var(--luz-ink) !important;
	font-family: var(--luz-text) !important;
	line-height: normal !important;
	-webkit-appearance: none !important;
	appearance: none !important;
}

.luz-app input.luz-q {
	height: 46px !important;
	min-height: 0 !important;
	padding: 0 14px 0 46px !important;
	border-radius: 12px !important;
	font-size: 14px !important;
}

.luz-app input.luz-list-q {
	height: 38px !important;
	min-height: 0 !important;
	padding: 0 12px !important;
	border-radius: 10px !important;
	font-size: 13px !important;
	margin-bottom: 8px !important;
}

.luz-app input.luz-q:focus,
.luz-app input.luz-list-q:focus {
	border-color: var(--luz-accent) !important;
	box-shadow: 0 0 0 3px var(--luz-accent-soft) !important;
	outline: none !important;
}

.luz-app .luz-search .luz-ico {
	z-index: 2;
}

.luz-app .luz-money input {
	width: 100% !important;
	min-width: 0 !important;
	height: auto !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: var(--luz-ink) !important;
	font-family: var(--luz-text) !important;
	font-size: 14px !important;
	line-height: 1.4 !important;
}

.luz-app select.luz-orden {
	height: 44px !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 40px 0 16px !important;
	border: 1.5px solid var(--luz-line) !important;
	border-radius: 12px !important;
	background-color: #fff !important;
	box-shadow: none !important;
	color: var(--luz-ink) !important;
	font-family: var(--luz-text) !important;
	font-size: 14px !important;
	line-height: normal !important;
}

.luz-app input[type="range"].luz-r {
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	background: none !important;
	box-shadow: none !important;
	height: 26px !important;
}

.luz-app .luz-opt input,
.luz-app .luz-switch input {
	position: absolute !important;
	opacity: 0 !important;
	width: 1px !important;
	height: 1px !important;
	margin: 0 !important;
}

.luz-app .luz-open,
.luz-app .luz-close,
.luz-app .luz-chip,
.luz-app .luz-apply {
	min-height: 0 !important;
	box-shadow: none !important;
	text-transform: none;
}

.luz-app .luz-apply {
	text-transform: uppercase;
}

@media (max-width: 900px) {
	.luz-app select.luz-orden {
		height: 42px !important;
		padding: 0 34px 0 12px !important;
		font-size: 13px !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.luz-panel,
	.luz-results,
	.luz-img,
	.luz-btn,
	.luz-switch-ui,
	.luz-switch-ui::after {
		transition: none !important;
	}

	.luz-app.is-loading .luz-results::after {
		animation-duration: 1.6s;
	}
}
