/* TMA Tienda — catálogo (tienda, categorías, etiquetas, marcas y resultados).
   Se carga solo en esas páginas. Tokens del tema con respaldo: azul #004DFF, negro de marca #020214.
   Reglas del tema que respeta: sin border-radius y cuerpo en blanco (el #020214 de fondo es solo para el pie).
   Tamaños en em: siguen la letra del cuerpo del tema, que ya tiene la escala proporcional y el piso de 16 px. */

.tma-catalogo {
	display: block;
	background: #fff;
	color: var(--tma-fondo, #020214);
	padding-block: var(--tma-aire-seccion, 56px) calc(var(--tma-aire-seccion, 56px) * 1.5);
}
.wp-site-blocks > main.tma-catalogo { margin-block-start: 0; }
.tma-catalogo a,
.tma-catalogo :is(h1, h2, h3, h4) { color: var(--tma-fondo, #020214); }

/* Migas y título */
.tma-catalogo .wc-block-breadcrumbs,
.tma-catalogo .woocommerce-breadcrumb {
	margin: 0 0 .75em;
	font-size: var(--tma-texto-chico, 14px); /* nivel 6 de la escala (14 px reales); con .875em daba 13 en celular */
	color: rgba(2, 2, 20, .7);
}
.tma-catalogo .wc-block-breadcrumbs * { font-size: inherit; }
/* El bloque trae la clase has-small-font-size, que WordPress fija con !important (13 px): sin esto la regla de arriba no aplica. */
.tma-catalogo .wc-block-breadcrumbs.has-small-font-size { font-size: var(--tma-texto-chico, 14px) !important; }
.tma-catalogo .wc-block-breadcrumbs a,
.tma-catalogo .woocommerce-breadcrumb a { color: rgba(2, 2, 20, .7); text-decoration: none; }
/* 1.8.x: igual que las migas de la portada, de los tipos y de la ficha (.tma-migas en inicio.css): «›» y subrayado solo al pasar el mouse. */
.tma-catalogo .wc-block-breadcrumbs a:hover,
.tma-catalogo .woocommerce-breadcrumb a:hover { color: var(--tma-fondo, #020214); text-decoration: underline; text-underline-offset: 3px; }
.tma-catalogo .tma-migas__sep { margin: 0 .45em; color: rgba(2, 2, 20, .7); }
.tma-catalogo .wp-block-query-title {
	margin: 0;
	color: var(--tma-fondo, #020214);
	font-size: 2.25em;
	line-height: 1.1;
}
.tma-catalogo .wp-block-term-description { max-width: 70ch; margin-top: .75em; color: rgba(2, 2, 20, .7); }

/* Barra: cantidad · ordenar · filtrar */
.tma-catalogo__barra {
	gap: 1em;
	margin: 1.75em 0 2em;
	padding-block: .875em;
	font-size: .9375em;
}
.tma-catalogo__barra .wc-block-product-results-count p,
.tma-catalogo__barra .woocommerce-result-count { margin: 0; color: rgba(2, 2, 20, .7); }
.tma-catalogo__acciones { gap: .75em; margin-left: auto; }
.tma-catalogo__acciones .woocommerce-ordering { margin: 0; }
.tma-catalogo .woocommerce-ordering select.orderby {
	height: 2.75em;
	padding: 0 2.5em 0 .875em;
	border: 1px solid rgba(2, 2, 20, .3);
	border-radius: 0;
	background-color: #fff;
	color: var(--tma-fondo, #020214);
	font: inherit;
}

/* Botón «Filtrar productos» (abre el panel lateral) */
.tma-catalogo .wc-block-product-filters__open-overlay {
	display: inline-flex;
	align-items: center;
	gap: .625em;
	height: 2.75em;
	padding: 0 1.125em;
	border: 1px solid var(--tma-fondo, #020214);
	border-radius: 0;
	background: #fff;
	color: var(--tma-fondo, #020214);
	font: inherit;
	font-weight: 500;
	cursor: pointer;
}
.tma-catalogo .wc-block-product-filters__open-overlay:hover { background: var(--tma-fondo, #020214); color: #fff; }
.tma-catalogo .wc-block-product-filters__open-overlay svg { width: 1.25em; height: 1.25em; fill: currentColor; }
.tma-catalogo :is(button, select, a, input):focus-visible { outline: 2px solid var(--tma-acento, #004DFF); outline-offset: 2px; }

/* Panel lateral de filtros */
.tma-catalogo .wc-block-product-filters__overlay-dialog {
	width: min(26em, 100%);
	background: #fff;
	color: var(--tma-fondo, #020214);
	border-radius: 0;
}
.tma-catalogo .wc-block-product-filters__overlay-content { padding: .5em 1.75em 1.75em; }
.tma-catalogo .wc-block-product-filters__overlay-content > * + * { margin-top: 1.75em; }
.tma-catalogo__filtros-titulo {
	margin: 0;
	font-size: 1.375em;
	color: var(--tma-fondo, #020214);
}
.tma-catalogo .wc-block-product-filters__overlay-content h3 {
	margin: 0 0 .75em;
	font-size: .8125em;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--tma-fondo, #020214);
}
.tma-catalogo .wc-block-product-filter-checkbox-list { font-size: 1em; }
.tma-catalogo .wc-block-product-filter-checkbox-list__item { padding-block: .25em; }
/* Casillas con borde visible (contraste 3:1 de componentes, WCAG 1.4.11) y tildadas en azul TMA. */
/* La casilla que se ve es el ::before del envoltorio (WooCommerce lo pinta al 10 %, casi invisible). */
.tma-catalogo .wc-block-product-filter-checkbox-list__input-wrapper::before {
	box-sizing: border-box;
	border: 1.5px solid rgba(2, 2, 20, .7);
	border-radius: 0;
	background: #fff;
	opacity: 1;
}
.tma-catalogo .wc-block-product-filter-checkbox-list__input { border-radius: 0; }
.tma-catalogo .wc-block-product-filter-checkbox-list__input-wrapper:has(:checked)::before { background: var(--tma-acento, #004DFF); border-color: var(--tma-acento, #004DFF); }
.tma-catalogo .wc-block-product-filter-checkbox-list__input:checked + .wc-block-product-filter-checkbox-list__mark { z-index: 1; color: #fff; }
.tma-catalogo .wc-block-product-filter-checkbox-list__count { color: rgba(2, 2, 20, .7); }
.tma-catalogo .wc-block-product-filter-checkbox-list__show-more { color: var(--tma-acento, #004DFF); font-weight: 500; }
.tma-catalogo .wc-block-product-filter-removable-chips__item { border-radius: 0; }
.tma-catalogo .wc-block-product-filters__overlay-footer { padding: 1em 1.75em; border-top: 1px solid #F2F2F3; }
.tma-catalogo .wc-block-product-filters__apply,
.tma-catalogo .wc-block-product-filter-clear-button .wp-block-button__link { width: 100%; border-radius: 0; }
.tma-catalogo .wc-block-product-filters__apply { background: var(--tma-fondo, #020214); color: #fff; }
.tma-catalogo .wc-block-product-filter-price-slider input[type="text"] { border-radius: 0; }

/* Grilla de productos */
.tma-catalogo .wc-block-product-template { gap: 2.5em 1.5em; }
/* Cuatro por fila como en el sitio viejo; tres en tablet y dos en celular. */
@media (min-width: 1025px) { .tma-catalogo .wc-block-product-template { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 600px) and (max-width: 1024px) { .tma-catalogo .wc-block-product-template { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 599px) { .tma-catalogo .wc-block-product-template { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tma-catalogo .wc-block-product { display: flex; flex-direction: column; gap: .625em; }
.tma-catalogo .wc-block-components-product-image { position: relative; margin: 0; aspect-ratio: 1; background: #fff; }
.tma-catalogo .wc-block-components-product-image img { width: 100%; height: 100%; object-fit: contain; }
.tma-catalogo .wc-block-components-product-sale-badge,
.tma-catalogo .wp-block-woocommerce-product-sale-badge .wc-block-components-product-sale-badge {
	position: absolute;
	top: 0;
	left: 0;
	margin: 0;
	padding: .35em .8em;
	border: 0;
	border-radius: 0;
	background: var(--tma-acento, #004DFF);
	color: #fff;
	font-size: .75em;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}
.tma-catalogo__nombre {
	margin: .25em 0 0;
	font-size: 1em;
	font-weight: 500;
	line-height: 1.3;
	text-align: left;
}
.tma-catalogo__nombre a { text-decoration: none; }
.tma-catalogo__nombre a:hover { text-decoration: underline; text-underline-offset: 3px; }
.tma-catalogo .wc-block-components-product-price { text-align: left; font-size: 1em; }
.tma-catalogo .wc-block-components-product-price del { color: rgba(2, 2, 20, .7); font-weight: 400; }
.tma-catalogo .wc-block-components-product-price ins { text-decoration: none; font-weight: 700; }
/* Cuotas y transferencia (inc/precios.php), debajo del precio. */
.tma-catalogo .tma-precios { margin: -.25em 0 0; color: rgba(2, 2, 20, .7); font-size: .8125em; line-height: 1.38; text-align: left; }
.tma-catalogo .tma-precios > span { display: block; }
.tma-catalogo .tma-precios__transf { color: var(--tma-acento, #004DFF); }
.tma-catalogo .wc-block-components-product-button { margin-top: auto; text-align: left; justify-content: flex-start; align-items: flex-start; }
.tma-catalogo .wc-block-components-product-button .wp-block-button__link,
.tma-catalogo .wc-block-components-product-button__button {
	border-radius: 0;
	font-size: .9375em;
}

/* Paginación */
.tma-catalogo .wp-block-query-pagination { margin-top: 3em; gap: .5em; font-size: 1em; }
.tma-catalogo .wp-block-query-pagination .page-numbers { display: inline-block; min-width: 2.5em; padding: .5em .625em; text-align: center; }
.tma-catalogo .wp-block-query-pagination .page-numbers.current { background: var(--tma-fondo, #020214); color: #fff; }

/* Buscador de la tienda (lupa.css le da el aspecto): a la izquierda de la barra en escritorio y a lo ancho
   en celular. Desde la 1.4.1 está en todas las medidas: la lupa del header ya no se muestra. */
.tma-catalogo .tma-catalogo__buscar { flex: 0 1 20em; }

@media (max-width: 781px) {
	.tma-catalogo .tma-catalogo__buscar { flex: 1 1 100%; max-width: none; }
	.tma-catalogo__acciones { width: 100%; margin-left: 0; }
	.tma-catalogo__acciones > .wc-block-catalog-sorting { flex: 1 1 auto; min-width: 0; }
	.tma-catalogo__acciones .woocommerce-ordering,
	.tma-catalogo .woocommerce-ordering select.orderby { width: 100%; min-width: 0; }
	.tma-catalogo__acciones > .wc-block-product-filters { flex: none; }
	.tma-catalogo .wc-block-product-template { gap: 2em 1em; }
}

/* ── Esquinas redondeadas (1.7.1, pedido de Mati, 06-11-2026) ──
   La foto de cada producto del listado va con el radio de las fotos del sitio (--tma-radio-foto, de la prueba de
   esquinas del tema, v0.106.99); la cinta de oferta queda recortada por la esquina. Botones y filtros siguen rectos.
   Sin la variable (si el tema saca la prueba), vuelve a quedar recta. */
.tma-catalogo .wc-block-components-product-image { border-radius: var(--tma-radio-foto, 0); overflow: hidden; }

/* ── Esquinas (1.8.x, Mati, 16-11-2026: «salvo los botones, el resto debe tener el mismo border radius que el resto del
   sitio») ──
   Listados: el selector «Ordenar» en píldora, como el buscador que está al lado; la etiqueta «Oferta!» con el radio chico. Los botones siguen rectos (regla 1 de claude/regla-tarjetas.md). */
.tma-catalogo .woocommerce-ordering select.orderby { border-radius: 999px; padding-left: 1.125em; border-color: #F2F2F3; } /* línea: gris de marca #F2F2F3, como las de la home, como el buscador (decisión de Mati: no llega al 3:1 de WCAG 1.4.11) */
.tma-catalogo .wc-block-components-product-sale-badge,
.tma-catalogo .wp-block-woocommerce-product-sale-badge .wc-block-components-product-sale-badge { border-radius: var(--tma-radio-foto-chico, 0); } /* la segunda, por la regla de arriba que la ponía en 0 con más especificidad */

/* ── Botones blancos con la línea del negro de marca al 14 % (1.8.x, Mati, 16-11-2026: «aplicá el mismo negro al 14 % a
   los botones blancos») ── Siguen rectos. Al pasar el mouse se rellenan de negro y el borde vuelve al negro entero. */
.tma-catalogo .wc-block-product-filters__open-overlay { border-color: #F2F2F3; }
.tma-catalogo .wc-block-product-filters__open-overlay:hover { border-color: var(--tma-fondo, #020214); }

/* ── Ancho del catálogo como la portada de la tienda (Mati, 17-11-2026) ──
   «Todos los productos» (/shop/) y el resto de las páginas con la plantilla del catálogo (categorías con ?vista=todos,
   etiquetas, marcas, búsqueda) usan los mismos márgenes laterales que /tienda/ (--tma-inicio-borde en inicio.css):
   140 px reales desde 1440 px de pantalla, de 22 a 140 px entre 1024 y 1440 y, debajo, el margen del sitio.
   Antes el contenido usaba el ancho del tema (.tma-wrap: 1792 px, centrado). */
.tma-catalogo { --tma-catalogo-borde: var(--tma-margen, 18px); }
@media (min-width: 1024px) and (max-width: 1279px) { .tma-catalogo { --tma-catalogo-borde: calc(28.3654vw - 268.462px); } }
@media (min-width: 1280px) and (max-width: 1439px) { .tma-catalogo { --tma-catalogo-borde: calc(28.3654 * var(--tma-vw, 1vw) - 268.462px * var(--tma-inv, 1)); } }
@media (min-width: 1440px) { .tma-catalogo { --tma-catalogo-borde: calc(140px * var(--tma-inv, 1)); } }
.tma-catalogo .tma-catalogo__contenido.tma-wrap { box-sizing: border-box; width: 100%; max-width: none; margin-inline: 0; padding-inline: var(--tma-catalogo-borde); }

/* ── Barra del catálogo (Mati, 17-11-2026) ──
   Sin las líneas de arriba y abajo. Desde 1024 px, en una sola fila: la cantidad de resultados a la izquierda,
   el buscador al medio, al doble de largo (40 em, antes 20 em), y ordenar + filtrar a la derecha. El buscador queda
   centrado exacto cuando sobra lugar (≈1600 px en adelante); en notebook se corre un poco a la izquierda porque
   el bloque de la derecha es más ancho que la cantidad. Debajo de 1024 queda como estaba.
   El selector de orden trae 13 px en línea desde el bloque de WooCommerce (a 2560 daba 7 px reales): hereda el de la barra. */
.tma-catalogo .tma-catalogo__acciones > .wc-block-catalog-sorting { font-size: inherit !important; }
@media (min-width: 1024px) {
	.tma-catalogo .tma-catalogo__barra { flex-wrap: nowrap; }
	.tma-catalogo .tma-catalogo__barra > .wc-block-product-results-count { order: -1; flex: 1 1 0; white-space: nowrap; }
	.tma-catalogo .tma-catalogo__barra > .tma-catalogo__buscar { order: 0; flex: 0 1 40em; max-width: 40em; min-width: 0; }
	.tma-catalogo .tma-catalogo__barra > .tma-catalogo__acciones { order: 1; flex: 1 1 0; justify-content: flex-end; margin-left: 0; }
}

/* ── Líneas como las de la home (Mati, 17-11-2026) ──
   Todas las líneas de la tienda en el gris de marca #F2F2F3 sobre blanco; sobre fondos grises, el negro de marca al 5 %
   calculado sobre el gris (#E6E6E8). Acá: el recuadro del filtro de precio (fieldset de WooCommerce). */
.tma-catalogo fieldset { border-color: #F2F2F3; }

/* ── «Oferta» como ceja y botón con texto blanco (Mati, 17-11-2026: «esto no se ve Apple ni premium» y «el texto de
   agregar al carrito está en negro») ──
   La insignia de WooCommerce se oculta; la reemplaza la ceja que imprime inc/inicio.php arriba del nombre (azul TMA,
   mayúsculas, 12 px reales, 700), igual que el «Nuevo» de «Lo último». Azul sobre blanco: 5,9:1.
   El botón «Agregar al carrito» tenía el texto en el negro de marca sobre el azul (3,0:1, no llega a AA): pasa a blanco
   (5,9:1). */
.tma-catalogo .wp-block-woocommerce-product-sale-badge { display: none; }
.tma-catalogo .tma-catalogo__ceja { margin: .9em 0 0; color: var(--tma-acento, #004DFF); font-size: calc(12px * var(--tma-inv, 1)); font-weight: 700; letter-spacing: .02em; line-height: 1.3; text-transform: uppercase; }
.tma-catalogo .tma-catalogo__ceja + .tma-catalogo__nombre { margin-top: .25em; }
.tma-catalogo .wc-block-components-product-button .wp-block-button__link,
.tma-catalogo .wc-block-components-product-button__button,
.tma-catalogo .wc-block-components-product-button__button:visited { color: #fff; }

/* ── Escala tipográfica del sitio en la tienda (Mati, 17-11-2026) ──
   La tienda usa los 6 niveles del sitio (claude/regla-escala-tipografica.md) con las variables del tema,
   que ya traen los valores de cada ancho: 56 · 46 · 28 · 21 · 17 · 14 en escritorio; 40 · 34 · 22 · 16 · 16 · 14 en celular.
   Pesos: los de la tienda no se tocan (Mati, 17-11-2026); solo se baja a 700 lo que venía en 900 del tema, porque el máximo de la tienda es 700, el de «Diseño» del mazo de Proceso del sitio. Ningún texto por debajo de 14 px.
   Los títulos en dos tonos («Destacados. Todo para tu simracing») son nivel 3 (28) en todas las páginas, por pedido de Mati.
   Selector con «:root:root body» para pisar las reglas propias de cada hoja sin tocarlas una por una. */
/* Nivel 1 · Portada: título de la tienda y de cada tipo */
:root:root body .tma-inicio__titulo { font-size: var(--tma-texto-hero-titulo); line-height: 1.05; letter-spacing: -.035em; } /* como «Diseño» del mazo de Proceso: 56/700 */
/* Nivel 2 · Sección: título de páginas sin portada (Todos los productos, ficha, bolsa) */
:root:root body :is(.tma-producto__nombre, .tma-carrito__titulo, .tma-catalogo .wp-block-query-title) { font-size: var(--tma-texto-seccion-titulo); line-height: 1.1; letter-spacing: -.035em; }
/* Nivel 3 · Tarjeta: títulos en dos tonos, títulos de tarjeta, precio de la caja final */
:root:root body :is(.tma-inicio__frase, .tma-inicio__fuerte, .tma-inicio__suave, .tma-tarjeta__enlace, .tma-dest__nombre, .tma-paso__titulo, .tma-paso__fuerte, .tma-paso__suave) { font-size: var(--tma-texto-bento-titulo); line-height: 1.1; letter-spacing: -.01em; }
:root:root body .tma-producto__final-precio { font-size: var(--tma-texto-bento-titulo); line-height: 1.1; }
/* Nivel 4 · Bajada: subtítulos de las especificaciones */
:root:root body .tma-specs__titulo { font-size: var(--tma-texto-seccion-bajada); line-height: 1.25; letter-spacing: 0; }
/* Nivel 5 · Texto: cuerpo, botones, nombres y precios de la grilla, barra del catálogo, paginación */
:root:root body :is(.tma-inicio__boton, .tma-carrito__boton, .tma-producto__boton, .single_add_to_cart_button, .tma-catalogo .wp-block-button__link, .tma-catalogo .wc-block-components-product-button__button) { font-size: var(--tma-texto-cuerpo-chico); }
:root:root body :is(.tma-catalogo__nombre, .tma-catalogo .wp-block-post-title) { font-size: var(--tma-texto-cuerpo-chico); }
:root:root body :is(.tma-producto__texto, .tma-producto__precio, .tma-producto__caja a, .tma-inicio__secciones a, .tma-bolsa__bajada, .tma-ayuda__texto, .tma-tienda-buscar__rotulo, .tma-tienda-buscar__input, .tma-catalogo .woocommerce-result-count, .tma-catalogo .wc-block-product-results-count, .tma-catalogo .wc-block-product-filters__open-overlay, .tma-catalogo .wc-block-components-product-price, .tma-catalogo .page-numbers, .tma-catalogo .wp-block-query-pagination-next, .tma-catalogo .wp-block-query-pagination-previous) { font-size: var(--tma-texto-cuerpo-chico); }
:root:root body .tma-producto__texto :is(p, li) { font-size: inherit; }
/* Nivel 6 · Chico: cejas, cuotas y transferencia, pastillas, rótulos de especificaciones, «Comprar» */
:root:root body :is(.tma-tarjeta__ceja, .tma-catalogo__ceja, .tma-producto__ceja) { font-size: var(--tma-texto-chico); }
:root:root body :is(.tma-precios__cuotas, .tma-precios__transf, .tma-producto__pastilla, .tma-producto__caja dt, .tma-producto__final-precio del, .tma-producto__precios, .tma-tarjeta__cta, .tma-tipo__nombre, .tma-ayuda__accion) { font-size: var(--tma-texto-chico); }
:root:root body :is(.tma-precios__cuotas, .tma-precios__transf) .woocommerce-Price-amount { font-size: inherit; }
/* Tope de peso: el título de «Todos los productos» y «Filtros» venían en 900 desde el tema. */
:root:root body .tma-catalogo :is(.wp-block-query-title, .wc-block-product-filters h2, .wc-block-product-filters h3) { font-weight: 700; }

/* ── Tarjeta entera clickeable en la grilla del catálogo (Mati, 17-11-2026) ──
   Antes solo la foto y el nombre llevaban a la ficha. El enlace del nombre se estira con un ::after sobre toda la tarjeta;
   «Agregar al carrito» y los demás enlaces o botones de la tarjeta quedan por encima y siguen funcionando aparte. */
.tma-catalogo li.wc-block-product { position: relative; }
.tma-catalogo li.wc-block-product .wp-block-post-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.tma-catalogo li.wc-block-product :is(.wp-block-button, .wc-block-components-product-button, .wp-block-button__link, button, a:not(.wp-block-post-title a)) { position: relative; z-index: 2; }
.tma-catalogo li.wc-block-product .wp-block-post-title a:focus-visible { outline: none; }
.tma-catalogo li.wc-block-product:has(.wp-block-post-title a:focus-visible) { outline: 2px solid var(--tma-acento, #004DFF); outline-offset: 3px; }

/* Pie con la curva de la home (18-11-2026, Mati: «el footer de la tienda no es igual al de la home»).
   Copia de tema.css (body:has(.tma-cierre), v0.106.20): el fondo de la última sección (blanco del catálogo) baja hasta
   el arco del horizonte y el negro del pie arranca en la curva, en vez de un corte recto con el arco adentro. */
body:has(.tma-catalogo) .tma-pie { margin-top: -2px; }
body:has(.tma-catalogo) .tma-footer__panel { padding-top: 0; box-shadow: inset 0 118px 0 #fff; }
body:has(.tma-catalogo) .tma-footer__horizonte::before {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	width: 140%;
	min-width: 900px;
	height: 100%;
	transform: translateX(-50%);
	background: var(--tma-panel);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1400 120' preserveAspectRatio='none'%3E%3Cpath d='M0 118Q700-58 1400 118V121H0Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1400 120' preserveAspectRatio='none'%3E%3Cpath d='M0 118Q700-58 1400 118V121H0Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
}
@media (max-width: 620px) {
	body:has(.tma-catalogo) .tma-footer__panel { box-shadow: inset 0 71px 0 #fff; }
}

/* ══ Filtros estilo Apple (18-11-2026, Mati: «siento que este filtro no se ve tan Apple») ══
   Panel más limpio: secciones separadas por un filete, títulos en minúscula (sin versalitas espaciadas), filas
   con fondo gris al pasar, casillas redondeadas, conteo sin paréntesis, precios en campos redondeados y el botón
   en píldora azul TMA. Contrastes: borde de casilla y campos 3,4:1 (WCAG 1.4.11), conteo 5:1. */
.tma-catalogo .wc-block-product-filters__overlay-dialog { width: min(24em, 100%); box-shadow: -24px 0 60px rgba(2, 2, 20, .12); }
.tma-catalogo .wc-block-product-filters__overlay-header { padding: 1em 1.25em 0; }
.tma-catalogo .wc-block-product-filters__close-overlay { display: grid; place-items: center; width: 2.25em; height: 2.25em; padding: 0; border: 0; border-radius: 50%; background: #F2F2F3; color: var(--tma-fondo, #020214); cursor: pointer; }
.tma-catalogo .wc-block-product-filters__close-overlay:hover { background: #E6E6E9; }
.tma-catalogo .wc-block-product-filters__close-overlay svg { width: 1.1em; height: 1.1em; fill: currentColor; }
.tma-catalogo .wc-block-product-filters__overlay-content { padding: 0 1.75em 2em; }
.tma-catalogo .wc-block-product-filters__overlay-content > * + * { margin-top: 0; }
.tma-catalogo .tma-catalogo__filtros-titulo { margin: 0 0 .5em; font-size: 1.75em; font-weight: 700; letter-spacing: -.01em; }
.tma-catalogo .wc-block-product-filters__overlay-content > [class*="wp-block-woocommerce-product-filter-"]:not(.wc-block-product-filter--hidden):not(.wp-block-woocommerce-product-filter-active) { padding-block: 1.25em; border-top: 1px solid rgba(2, 2, 20, .1); }
.tma-catalogo .wc-block-product-filters__overlay-content h3 { margin: 0 0 .5em; font-size: 1.0625em; font-weight: 700; letter-spacing: 0; text-transform: none; }
.tma-catalogo .wc-block-product-filter-checkbox-list__item { padding-block: 0; }
.tma-catalogo .wc-block-product-filter-checkbox-list__label { display: flex; align-items: center; gap: .75em; margin-inline: -.6em; padding: .5em .6em; border-radius: .75em; cursor: pointer; transition: background-color .15s; }
.tma-catalogo .wc-block-product-filter-checkbox-list__label:hover { background: #F2F2F3; }
.tma-catalogo .wc-block-product-filter-checkbox-list__input-wrapper::before { border: 1.5px solid rgba(2, 2, 20, .45); border-radius: .3em; }
.tma-catalogo .wc-block-product-filter-checkbox-list__input { border-radius: .3em; }
.tma-catalogo .wc-block-product-filter-checkbox-list__text { color: var(--tma-fondo, #020214); }
.tma-catalogo .wc-block-product-filter-checkbox-list__count { margin-left: .35em; color: rgba(2, 2, 20, .62); }
.tma-catalogo .wc-block-product-filter-checkbox-list__count::before, .tma-catalogo .wc-block-product-filter-checkbox-list__count::after { content: none; }
.tma-catalogo .wc-block-product-filter-removable-chips__item { border: 0; border-radius: 999px; background: #F2F2F3; }
.tma-catalogo .wc-block-product-filter-price-slider input[type="text"] { box-sizing: border-box; width: 5.5em; padding: .45em .6em; border: 1px solid rgba(2, 2, 20, .45); border-radius: .6em; font-size: 1em; text-align: center; }
.tma-catalogo .wc-block-product-filters__overlay-footer { padding: 1em 1.75em 1.5em; border-top: 1px solid rgba(2, 2, 20, .08); }
.tma-catalogo .wc-block-product-filters__apply { padding: .85em 1em; border: 0; border-radius: 999px; background: var(--tma-acento, #004DFF); color: #fff; font-weight: 500; }
.tma-catalogo .wc-block-product-filters__apply:hover { background: #0040d6; }
.tma-catalogo .wc-block-product-filter-clear-button .wp-block-button__link { border-radius: 999px; }

/* Precio: la barra arriba a todo el ancho y los dos campos abajo, lado a lado (en línea no entraban los montos). */
.tma-catalogo .wc-block-product-filter-price-slider__content--inline { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1em .75em; align-items: center; }
.tma-catalogo .wc-block-product-filter-price-slider__content--inline .wc-block-product-filter-price-slider__range { grid-column: 1 / -1; grid-row: 1; margin: 0; }
.tma-catalogo .wc-block-product-filter-price-slider__content--inline .wc-block-product-filter-price-slider__left { grid-column: 1; grid-row: 2; }
.tma-catalogo .wc-block-product-filter-price-slider__content--inline .wc-block-product-filter-price-slider__right { grid-column: 2; grid-row: 2; }
.tma-catalogo .wc-block-product-filter-price-slider__content--inline :is(.wc-block-product-filter-price-slider__left, .wc-block-product-filter-price-slider__right) input[type="text"] { width: 100%; max-width: none; }
/* La barra del precio: el tramo elegido en azul TMA sobre un riel gris claro (WooCommerce la pinta con currentColor). */
.tma-catalogo .wc-block-product-filter-price-slider .range-bar { color: var(--tma-acento, #004DFF); background-color: #E6E6E9; border-radius: 4px; }
.tma-catalogo .wc-block-product-filter-price-slider__content--inline { padding-top: .6em; }

/* «Categoría» arriba de los filtros (Simracing, Aviación, Simuladores TMA): enlaces con el aspecto de las casillas. */
.tma-catalogo .tma-filtro-mundos { padding-block: 1.25em; border-top: 1px solid rgba(2, 2, 20, .1); }
.tma-catalogo .tma-filtro-mundos ul { margin: 0; padding: 0; list-style: none; }
.tma-catalogo .tma-filtro-mundos__opcion { display: flex; align-items: center; gap: .75em; margin-inline: -.6em; padding: .5em .6em; border-radius: .75em; color: var(--tma-fondo, #020214); text-decoration: none; transition: background-color .15s; }
.tma-catalogo .tma-filtro-mundos__opcion:hover { background: #F2F2F3; }
.tma-catalogo .tma-filtro-mundos__casilla { flex: none; display: grid; place-items: center; box-sizing: border-box; width: 1em; height: 1em; border: 1.5px solid rgba(2, 2, 20, .45); border-radius: .3em; background: #fff; color: transparent; }
.tma-catalogo .tma-filtro-mundos__casilla svg { width: .8em; height: .8em; }
.tma-catalogo .tma-filtro-mundos__opcion.is-elegida .tma-filtro-mundos__casilla { border-color: var(--tma-acento, #004DFF); background: var(--tma-acento, #004DFF); color: #fff; }
.tma-catalogo .tma-filtro-mundos__cuenta { margin-left: -.4em; color: rgba(2, 2, 20, .62); }
.tma-catalogo :is(.tma-filtro-mundos__texto, .tma-filtro-mundos__cuenta) { font-size: .875em; }   /* como el texto de las casillas de WooCommerce */

/* ── Precios con el formato que pidió el cliente (Mati, 19-11-2026: «hacelo así con nuestra tipografía, nuestro size, weight y
   estilo de Apple») ──
   Referencia del cliente: precio anterior tachado arriba, precio grande en negrita, «6 x $ … sin interés» y una pastilla con
   «$ … con transferencia». Sin decimales (filtro wc_price_args en inc/precios.php; el checkout y los mails siguen exactos).
   Con la escala y los pesos de la tienda:
   - precio anterior: nivel 6, 400, tachado, negro de marca al 70 % (8:1);
   - precio: nivel 3, 700 (el tope de la tienda), -0,01 em;
   - cuotas: nivel 6, 400, negro de marca (cuotas = nivel 6, regla de la 1.8.43);
   - transferencia: pastilla de esquinas redondas como las de Apple. El cliente la mandó en verde, que no es del manual: va en el azul
     de marca sobre su tinte al 8 % (5,3:1), nivel 6, 700. */
:root:root body :is(.tma-catalogo .wc-block-components-product-price, .tma-tarjeta__precio, .tma-producto__precio) { font-size: var(--tma-texto-bento-titulo); font-weight: 700; line-height: 1.1; letter-spacing: -.01em; color: #020214; }
:root:root body :is(.tma-catalogo .wc-block-components-product-price, .tma-tarjeta__precio, .tma-producto__precio) del { display: block; margin: 0 0 .35em; font-size: var(--tma-texto-chico); font-weight: 400; line-height: 1.3; letter-spacing: 0; color: rgba(2, 2, 20, .7); text-decoration: line-through; }
:root:root body :is(.tma-catalogo .wc-block-components-product-price, .tma-tarjeta__precio, .tma-producto__precio) ins { text-decoration: none; font-weight: 700; }
:root:root body :is(.tma-catalogo .wc-block-components-product-price, .tma-tarjeta__precio, .tma-producto__precio) .woocommerce-Price-amount { font-size: inherit; font-weight: inherit; }
:root:root body .tma-precios { display: flex; flex-direction: column; align-items: flex-start; gap: .5em; margin: .5em 0 0; }
:root:root body .tma-precios > span { display: block; }
:root:root body .tma-precios__cuotas { font-size: var(--tma-texto-chico); font-weight: 400; line-height: 1.3; color: #020214; }
:root:root body .tma-precios__transf { display: inline-block; padding: .35em .85em; border-radius: 999px; background: rgba(0, 77, 255, .08); font-size: var(--tma-texto-chico); font-weight: 700; line-height: 1.3; color: #004DFF; }
:root:root body :is(.tma-precios__cuotas, .tma-precios__transf) .woocommerce-Price-amount { font-size: inherit; font-weight: inherit; }

/* 1.8.343 (Mati, 24-11-2026: «en la miniatura de los productos de Leak Stop Gun, ¿se puede contener la imagen?»): las
   fotos de las pistolas son muy alargadas (hasta 3,5 : 1) y el cuadrado de la tarjeta las recortaba. En las tarjetas de
   esa marca la foto entra entera (contain) con un poco de aire, sobre el blanco de la tarjeta. El resto no cambia. */
.product_brand-leak-stop-gun img.attachment-large,
.product_brand-leak-stop-gun .wc-block-components-product-image img,
.product_brand-leak-stop-gun img.wp-post-image { object-fit: contain !important; padding: 6%; box-sizing: border-box; }
