/*
	TURBOS LEVANTE — TARJETAS DEL LISTADO (/turbos, /busqueda, categorías…)
	=======================================================================
	Mismo diseño que "Lo más vendido" de la portada (inicio.css, clases lv-tc).
	El marcado lo genera view/turboslevante/busqueda.php.
	Todo va dentro de ".lv.tl-list" para no afectar a nada más.
	Al final: FILTROS del listado (columna izquierda en escritorio y panel del móvil).
	Para volver a las tarjetas y filtros antiguos basta con borrar este fichero.
*/

.lv.tl-list {
	--lv-brand: #A6053B;
	--lv-brand-h: #85042F;
	--lv-brand-l: #F0597F;
	--lv-ink: #0E1014;
	--lv-text: #111418;
	--lv-text-2: #3D4450;
	--lv-muted: #5F6775;
	--lv-line: #E6E8EC;
	--lv-soft: #F5F6F8;
	--lv-ok: #177245;
	--lv-ease: cubic-bezier(.2, .7, .2, 1);

	width: 100%;
	color: var(--lv-text);
	font-family: var(--font-sans, "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif);
	font-size: 16px;
	line-height: 1.5;
	text-align: left;
	-webkit-font-smoothing: antialiased;
}
.lv.tl-list *, .lv.tl-list *::before, .lv.tl-list *::after { box-sizing: border-box; }
.lv.tl-list ul { margin: 0; padding: 0; list-style: none; }
.lv.tl-list a { text-decoration: none; }
.lv.tl-list a:hover, .lv.tl-list a:active { opacity: 1; }
.lv.tl-list .lv-ic { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.lv.tl-list :focus-visible { outline: 3px solid var(--lv-brand-l); outline-offset: 2px; border-radius: 8px; }

/* rejilla: 2 por fila en el móvil, 3 en tableta y escritorio con filtros, 4 en pantallas grandes */
.tl-list .lv-tgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px)  { .tl-list .lv-tgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1280px) { .tl-list .lv-tgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tl-list .lv-tc { display: flex; min-width: 0; margin: 0; padding: 0; }

/* tarjeta */
.tl-list a.lv-tc__a,
.tl-list a.lv-tc__a:link,
.tl-list a.lv-tc__a:visited {
	position: relative;
	display: flex; flex-direction: column;
	width: 100%; overflow: hidden;
	border: 1px solid var(--lv-line); border-radius: 16px;
	background: #FFF;
	color: var(--lv-text);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
/* efectos al pasar el ratón: SOLO con ratón (en el móvil, al tocar, la tarjeta
   daba un salto y la foto hacía zoom justo antes de abrir el producto) */
@media (hover: hover) and (pointer: fine) {
	.tl-list a.lv-tc__a:hover { transform: translateY(-3px); border-color: rgba(166, 5, 59, .35); box-shadow: 0 18px 34px -16px rgba(16, 18, 22, .22); }
	.tl-list a.lv-tc__a:hover .lv-tc__media img { transform: scale(1.05); }
	.tl-list a.lv-tc__a:hover .lv-tc__btn { background: var(--lv-brand-h); }
	.tl-list a.lv-tc__a:hover .lv-tc__btn .lv-ic { transform: translateX(3px); }
}
/* sin el recuadro rosa del navegador al tocar la tarjeta */
.tl-list a.lv-tc__a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

/* foto: mismo marco cuadrado en todas */
.tl-list .lv-tc__media { position: relative; display: block; overflow: hidden; aspect-ratio: 1 / 1; margin: 10px 10px 0; padding: 0; border-radius: 12px; background: #FFF; }
.tl-list .lv-tc__media img {
	position: absolute; inset: 10px;
	width: calc(100% - 20px); height: calc(100% - 20px);
	max-width: none; object-fit: contain; object-position: center;
	mix-blend-mode: multiply;
	transition: transform .35s var(--lv-ease);
}
.tl-list .lv-tc__media .lv-tc__noimg { position: absolute; top: 50%; left: 50%; width: 48px; height: 48px; color: #CDD2D9; transform: translate(-50%, -50%); }

/* descuento */
.tl-list .lv-tc__dto { position: absolute; z-index: 1; top: 4px; right: 4px; padding: 4px 8px; border-radius: 8px; background: var(--lv-brand); color: #FFF; font-size: 12px; font-weight: 800; line-height: 1; }

/* textos */
.tl-list .lv-tc__body { container-type: inline-size; display: flex; flex-direction: column; gap: 3px; flex: 1 1 auto; padding: 10px 14px 14px; }
.tl-list .lv-tc__name { display: -webkit-box; overflow: hidden; height: 2.7em; color: var(--lv-text); font-size: 14px; font-weight: 600; line-height: 1.35; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tl-list .lv-tc__ref { display: block; height: 1.35em; overflow: hidden; color: var(--lv-brand); font-size: 14px; font-weight: 800; line-height: 1.35; letter-spacing: .01em; text-overflow: ellipsis; white-space: nowrap; }
.tl-list .lv-tc__motor { display: block; height: 1.35em; overflow: hidden; color: var(--lv-muted); font-size: 12.5px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.tl-list .lv-tc__motor b { color: var(--lv-text-2); font-weight: 700; }

/* valoración (solo si tiene opiniones; si no, se reserva el hueco) */
.tl-list .lv-tc__rating { display: flex; align-items: center; gap: 5px; height: 16px; margin-top: 2px; }
.tl-list .lv-tc__stars { position: relative; display: inline-block; color: #DADDE3; font-size: 13px; letter-spacing: 1px; line-height: 1; }
.tl-list .lv-tc__stars::before { content: "★★★★★"; }
.tl-list .lv-tc__stars::after { content: "★★★★★"; position: absolute; top: 0; left: 0; width: var(--lv-r, 100%); overflow: hidden; color: #F5A623; white-space: nowrap; }
.tl-list .lv-tc__votes { color: var(--lv-muted); font-size: 12px; }
.tl-list .lv-tc__hold { visibility: hidden; }

/* garantía y envío: franja verde partida en dos mitades */
.tl-list .lv-tc__tags {
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center;
	min-height: 26px; margin: 8px 0 0; padding: 5px 0;
	border: 1px solid #D8EFE2; border-radius: 10px;
	background: #F1FAF5;
	font-size: 10.5px;
	font-size: clamp(8.5px, 4.4cqi, 11px);
}
.tl-list .lv-tc__tags:has(> span:only-child) { grid-template-columns: 1fr; }
.tl-list .lv-tc__tags > span {
	display: inline-flex; align-items: center; justify-content: center; gap: .3em;
	min-width: 0; padding: 0 4px;
	color: var(--lv-text-2); font-size: inherit; font-weight: 600; line-height: 1.2; white-space: nowrap;
}
.tl-list .lv-tc__tags > span + span { border-left: 1px solid #CDE6D8; }
.tl-list .lv-tc__tags .lv-tc__tl { font-style: normal; }
.tl-list .lv-tc__tags .lv-ic { width: 12px; height: 12px; color: var(--lv-ok); stroke-width: 2.4; }
.tl-list .lv-tc__tags b { color: var(--lv-text); font-weight: 800; }
@container (max-width: 190px) {
	.tl-list .lv-tc__tags { grid-template-columns: 1fr; row-gap: 3px; padding: 5px 6px; font-size: 10px; }
	.tl-list .lv-tc__tags > span + span { border-left: 0; }
}

/* precio (una línea) y botón pegado abajo para que queden alineados */
.tl-list .lv-tc__foot { display: flex; flex-direction: column; gap: 10px; flex: 1 1 auto; padding-top: 10px; }
.tl-list .lv-tc__foot .lv-tc__btn { margin-top: auto; }
.tl-list .lv-tc__price { display: block; min-width: 0; min-height: 26px; line-height: 1; }
.tl-list .lv-tc__pline { display: flex; align-items: center; gap: 5px; max-width: 100%; min-width: 0; white-space: nowrap; }
.tl-list .lv-tc__pline strong { flex: 0 0 auto; color: var(--lv-ink); font-size: 18px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tl-list .lv-tc__pline .lv-tc__desde { flex: 0 1 auto; min-width: 0; overflow: hidden; color: var(--lv-text-2); font-size: 18px; font-weight: 500; letter-spacing: -.01em; text-overflow: ellipsis; }
.tl-list .lv-tc__price small.lv-tc__iva { flex: 0 0 auto; display: block; margin-left: 1px; color: var(--lv-muted); font-size: 7px; font-weight: 700; letter-spacing: .04em; line-height: 1.05; text-transform: uppercase; }
.tl-list .lv-tc__pline s { flex: 0 1 auto; min-width: 0; overflow: hidden; color: var(--lv-muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.tl-list .lv-tc__price--ask .lv-tc__pline strong { color: var(--lv-brand); font-size: 15px; }
.tl-list .lv-tc__btn {
	display: flex; align-items: center; justify-content: center; gap: 6px;
	height: 38px;
	border-radius: 10px;
	background: var(--lv-brand);
	color: #FFF; font-size: 13px; font-weight: 700;
	transition: background-color .2s ease;
}
.tl-list .lv-tc__btn .lv-ic { width: 15px; height: 15px; transition: transform .2s var(--lv-ease); }

/* móvil: tarjetas compactas, 2 por fila (igual que en la portada) */
@media (max-width: 639px) {
	.tl-list a.lv-tc__a { border-radius: 12px; }
	.tl-list .lv-tc__media { margin: 6px 6px 0; }
	.tl-list .lv-tc__body { gap: 2px; padding: 8px 10px 10px; }
	.tl-list .lv-tc__name { height: 2.5em; font-size: 12.5px; line-height: 1.25; overflow-wrap: anywhere; }
	.tl-list .lv-tc__ref { font-size: 12px; }
	.tl-list .lv-tc__motor { font-size: 11px; }
	.tl-list .lv-tc__tags { margin-top: 6px; }
	.tl-list .lv-tc__pline { gap: 4px; }
	.tl-list .lv-tc__pline strong, .tl-list .lv-tc__pline .lv-tc__desde { font-size: 14px; }
	.tl-list .lv-tc__price small.lv-tc__iva { font-size: 6.5px; }
	.tl-list .lv-tc__pline s { font-size: 11px; }
	.tl-list .lv-tc__price--ask .lv-tc__pline strong { font-size: 13px; }
	.tl-list .lv-tc__btn { height: 34px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
	.tl-list a.lv-tc__a, .tl-list .lv-tc__media img, .tl-list .lv-tc__btn .lv-ic { transition: none; }
	.tl-list a.lv-tc__a:hover { transform: none; }
}


/* =========================================================
   FILTROS DEL LISTADO
   Un solo panel blanco con las secciones separadas por líneas finas.
   En escritorio ya NO tiene altura máxima ni scroll interno (era lo que
   cortaba el final): baja con la página y solo se queda fijo al hacer
   scroll cuando cabe entero (clase tl-filtros-sticky, la pone busqueda.php).
   ========================================================= */

/* panel */
.skin_tlv .search_filtros {
	overflow: hidden;
	border: 1px solid #E6E8EC;
	border-radius: 16px;
	background: #FFF;
	box-shadow: 0 1px 2px rgba(16, 18, 22, .04), 0 8px 24px -14px rgba(16, 18, 22, .14);
}
.skin_tlv .search_filtro_base,
.skin_tlv .search_filtro_base:last-child {
	margin: 0;
	overflow: visible;
	border: 0;
	border-bottom: 1px solid #EEF0F3;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}
.skin_tlv #search_more_options_body > .search_filtro_base:last-child { border-bottom: 0; }

/* cabecera de cada sección */
.skin_tlv .search_filtro,
.skin_tlv .search_filtro_open .search_filtro {
	display: flex;
	align-items: center;
	min-height: 50px;
	border: 0;
	background: transparent;
	color: #111418;
	font-size: 12.5px;
	font-weight: 800;
	letter-spacing: .08em;
	text-align: left;
	text-transform: uppercase;
	transition: background-color .2s ease;
}
.skin_tlv .search_filtro_open .search_filtro { border-bottom: 0; }
.skin_tlv .search_filtro_expandible:hover { background: #F7F8FA; }
.skin_tlv .search_filtro_caption { flex: 1 1 auto; min-width: 0; padding: 14px 8px 14px 18px; }
.skin_tlv .search_filtro_caption::before {
	content: "";
	display: inline-block;
	width: 10px; height: 2px;
	margin-right: 8px;
	vertical-align: middle;
	background: #A6053B;
	border-radius: 2px;
}
.skin_tlv .search_filtro_cmd {
	display: grid; place-items: center;
	flex: 0 0 auto;
	width: 28px; height: 28px;
	margin-right: 12px;
	padding: 0;
	border-radius: 50%;
	background: #F3F4F6;
	color: #5F6775;
	font-size: 13px;
	transition: transform .25s ease, background-color .2s ease, color .2s ease;
}
.skin_tlv .search_filtro_open .search_filtro_cmd { transform: rotate(90deg); background: #FBEAF0; color: #A6053B; }
.skin_tlv .search_filtro_open .search_filtro_productos .search_filtro_cmd { transform: rotate(45deg); }

/* contenido de cada sección: se ve entero, sin recortes */
.skin_tlv .search_filtro_open .search_filtro_body { height: auto; overflow: visible; padding: 0 10px 12px; }
.skin_tlv .search_filtro_lista,
.skin_tlv .search_filtro_lista .search_filtro_lista { margin: 0; padding: 0; }
.skin_tlv .search_filtro_lista > li { padding: 0; white-space: normal; }

/* opciones */
.skin_tlv .body a.busqueda_producto_link,
.skin_tlv .body .busqueda_producto_link {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 38px;
	margin: 1px 0;
	padding: 7px 10px;
	border-radius: 10px;
	color: #3D4450;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
	text-decoration: none;
	white-space: normal;
	overflow-wrap: anywhere;
	box-sizing: border-box;
	transition: background-color .15s ease, color .15s ease;
}
.skin_tlv .body a.busqueda_producto_link:hover,
.skin_tlv .body .busqueda_producto_link:hover { background: #F5F6F8; color: #111418; opacity: 1; }
.skin_tlv .body a.busqueda_producto_link .la,
.skin_tlv .body a.busqueda_producto_link .fa { flex: 0 0 auto; width: 18px; margin: 0; color: #C3C8D0; font-size: 18px; text-align: center; }
.skin_tlv .body a.busqueda_producto_link:hover .la,
.skin_tlv .body a.busqueda_producto_link:hover .fa { color: #A6053B; }

/* número de resultados de cada opción, como etiqueta a la derecha */
.skin_tlv .body a.busqueda_producto_link .fright {
	float: none;
	flex: 0 0 auto;
	margin-left: auto;
	padding: 2px 8px;
	border-radius: 999px;
	background: #F1F2F4;
	color: #5F6775;
	font-size: 11.5px;
	font-weight: 700;
	line-height: 1.4;
	font-variant-numeric: tabular-nums;
}

/* opción marcada */
.skin_tlv .body a.busqueda_producto_link_active,
.skin_tlv .body a.busqueda_producto_link_active:hover {
	background: #FBEAF0;
	color: #A6053B;
	font-weight: 700;
}
.skin_tlv .body a.busqueda_producto_link_active .la,
.skin_tlv .body a.busqueda_producto_link_active .fa { color: #A6053B; }
.skin_tlv .body a.busqueda_producto_link_active .fright { background: #FFF; color: #A6053B; }
.skin_tlv .busqueda_producto_link_active_caption { flex: 1 1 auto; min-width: 0; }
.skin_tlv .body .busqueda_producto_link_active_close {
	float: none;
	display: grid; place-items: center;
	width: 22px !important; height: 22px;
	margin: 0 0 0 auto !important;
	border-radius: 50%;
	background: #FFF;
	font-size: 12px !important;
}

/* "Ver más…" */
.skin_tlv .busqueda_producto_seemore .busqueda_producto_link {
	justify-content: center;
	margin-top: 4px;
	border: 1px dashed #D3D7DE;
	color: #A6053B !important;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}
.skin_tlv .busqueda_producto_seemore .busqueda_producto_link .la { width: auto; color: #A6053B; font-size: 14px; }
.skin_tlv .busqueda_producto_seemore .busqueda_producto_link:hover { border-color: #A6053B; background: #FBEAF0; }

/* escritorio: columna de filtros */
@media (min-width: 1021px) {
	.skin_tlv .search_filtros_container {
		position: static;
		align-self: flex-start;
		flex: 0 0 auto;
		max-height: none;
		overflow: visible;
		margin: 0 0 24px;
		padding: 0;
	}
	.skin_tlv .search_filtros_container.tl-filtros-sticky { position: sticky; top: 128px; }
	.skin_tlv .search_filtros { width: 280px; }
}

/* móvil y tableta: panel lateral */
@media (max-width: 1020px) {
	.skin_tlv.page_filtros .search_filtros {
		border-radius: 14px;
		box-shadow: none;
	}
	.skin_tlv .body a.busqueda_producto_link,
	.skin_tlv .body .busqueda_producto_link { min-height: 44px; padding: 9px 10px; font-size: 15px; }
}
