/*
 * FunBoard — componentes del diseño «Cómic pop» (docs/diseno.md, maquetas en docs/maquetas/).
 * Los colores, fuentes y sombras vienen de theme.json (variables --wp--preset--*).
 */

:root {
	--fb-ink: var(--wp--preset--color--ink, #111111);
	--fb-paper: var(--wp--preset--color--paper, #ffffff);
	--fb-paper-2: var(--wp--preset--color--paper-2, #f2f2f2);
	--fb-muted: var(--wp--preset--color--muted, #4a4a4a);
	--fb-red: var(--wp--preset--color--red, #e4002b);
	--fb-blue: var(--wp--preset--color--blue, #1546d1);
	--fb-yellow: var(--wp--preset--color--yellow, #ffe600);
	--fb-ok: var(--wp--preset--color--ok, #0e7a3e);
	--fb-display: var(--wp--preset--font-family--display, Bangers, Impact, sans-serif);
	--fb-border: 3px solid var(--fb-ink);
	--fb-border-l: 4px solid var(--fb-ink);
	--fb-shadow-s: 4px 4px 0 var(--fb-ink);
	--fb-shadow-m: 6px 6px 0 var(--fb-ink);
	--fb-shadow-l: 8px 8px 0 var(--fb-ink);
	--fb-gutter: clamp(16px, 3vw, 24px);
}

*, *::before, *::after { box-sizing: border-box; }
a { text-decoration: none; }
:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 3px solid var(--fb-blue);
	outline-offset: 2px;
}

/* Tramas de puntos */
.fb-dots {
	background-image: radial-gradient(var(--fb-ink) 1.2px, transparent 1.6px);
	background-size: 12px 12px;
}
.fb-dots-red {
	background-image: radial-gradient(#ff6a80 2px, transparent 2.4px);
	background-size: 14px 14px;
}

/* ── Barra superior ─────────────────────────────────────────────────────────── */
.fb-topbar {
	background: var(--fb-ink);
	color: var(--fb-yellow);
	font-size: 14px;
	font-weight: 800;
	text-align: center;
	padding: 8px var(--fb-gutter);
	margin: 0;
}

/* ── Cabecera ───────────────────────────────────────────────────────────────── */
.fb-header { border-bottom: var(--fb-border-l); background: var(--fb-paper); }
.fb-header__row {
	max-width: 1280px;
	margin: 0 auto;
	padding: 16px var(--fb-gutter);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 24px;
}

/* Logo (variante A, docs/marca): letras rojas con contorno y sombra sólida, «!» amarillo a 8°.
   paint-order deja el trazo debajo del relleno: se ve 1,5 px por fuera, como en los SVG. */
.fb-logo { margin: 0; flex: 0 0 auto; }
.fb-logo a, .fb-footer__brand {
	display: inline-block;
	font-family: var(--fb-display);
	font-weight: 400;
	line-height: 1.1;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	white-space: nowrap;
	color: var(--fb-red);
	-webkit-text-stroke: 3px var(--fb-ink);
	paint-order: stroke fill;
	text-shadow: 4px 4px 0 var(--fb-ink);
	transform: rotate(-2deg);
}
.fb-logo a { font-size: clamp(34px, 4.2vw, 46px); padding: 4px 6px 2px 0; text-decoration: none; }
.fb-logo a:hover, .fb-logo a:focus { color: var(--fb-red); transform: rotate(-1deg); }
.fb-logo__bang { display: inline-block; margin-left: 2px; color: var(--fb-yellow); transform: rotate(8deg) translateY(-2px); }

/* Buscador: borde 3 px y botón amarillo con lupa */
.fb-search { flex: 1 1 320px; margin: 0; }
.fb-search .wp-block-search__inside-wrapper {
	border: var(--fb-border) !important;
	padding: 0 !important;
	height: 52px;
	background: var(--fb-paper);
}
.fb-search .wp-block-search__input {
	border: 0;
	padding: 0 16px;
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	color: var(--fb-ink);
	background: transparent;
	min-width: 0;
}
.fb-search .wp-block-search__input::placeholder { color: var(--fb-muted); opacity: 1; }
.fb-search .wp-block-search__button {
	margin: 0;
	width: 56px;
	border: 0;
	border-left: var(--fb-border);
	border-radius: 0;
	background: var(--fb-yellow);
	color: var(--fb-ink);
	box-shadow: none;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}
.fb-search .wp-block-search__button svg { width: 24px; height: 24px; fill: currentColor; }

/* Cuenta y carrito */
.fb-header__actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.fb-header__actions .wp-block-woocommerce-customer-account a {
	width: 48px;
	height: 48px;
	border: var(--fb-border);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}
.fb-header__actions .wc-block-mini-cart__button {
	min-height: 48px;
	padding: 0 16px;
	border: var(--fb-border);
	border-radius: 0;
	background: var(--fb-blue);
	color: #fff;
	font-weight: 900;
	box-shadow: var(--fb-shadow-s);
	display: flex;
	align-items: center;
	gap: 8px;
}
.fb-header__actions .wc-block-mini-cart__button:hover { background: #0f38ad; }
.fb-header__actions .wc-block-mini-cart__badge {
	background: var(--fb-yellow);
	color: var(--fb-ink);
	border: 2px solid var(--fb-ink);
}

/* Menú principal */
.fb-nav {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 var(--fb-gutter) 12px;
}
.fb-nav .wp-block-navigation__container { gap: 4px; }
.fb-nav .wp-block-navigation-item__content {
	display: block;
	font-weight: 800;
	font-size: 15px;
	padding: 10px 14px;
	min-height: 44px;
	color: var(--fb-ink);
}
.fb-nav .current-menu-item > .wp-block-navigation-item__content,
.fb-nav .wp-block-navigation-item__content:hover { color: var(--fb-blue); }
.fb-nav .fb-nav__offers > .wp-block-navigation-item__content {
	background: var(--fb-red);
	color: #fff;
	font-weight: 900;
}
.fb-nav .fb-nav__offers > .wp-block-navigation-item__content:hover { background: var(--fb-ink); color: var(--fb-yellow); }

/* ── Contenido ──────────────────────────────────────────────────────────────── */
.fb-main { max-width: 1280px; margin: 0 auto; padding: 32px var(--fb-gutter) 0; }

/* Título de sección: etiqueta Bangers con fondo de color, borde, sombra y −1,5° */
.fb-section-title {
	display: inline-block;
	margin: 0 0 20px;
	background: var(--fb-yellow);
	border: var(--fb-border);
	box-shadow: var(--fb-shadow-s);
	padding: 4px 14px 0;
	transform: rotate(-1.5deg);
	font-family: var(--fb-display);
	font-size: clamp(28px, 4vw, 40px);
	letter-spacing: 1px;
	line-height: 1.1;
}
.fb-section-title.is-red { background: var(--fb-red); color: #fff; }
.fb-section-title.is-blue { background: var(--fb-blue); color: #fff; }

/* Botones: mayúsculas, borde 3 px, sombra 5 px (rojo por defecto en theme.json) */
.wp-element-button,
.wp-block-button__link {
	min-height: 44px;
	padding: 10px 20px;
	letter-spacing: 0.5px;
	transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.wp-element-button:hover,
.wp-block-button__link:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--fb-ink); }
.wp-element-button:active,
.wp-block-button__link:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--fb-ink); }
.is-style-fb-blue .wp-block-button__link { background: var(--fb-blue); color: #fff; }
.is-style-fb-yellow .wp-block-button__link { background: var(--fb-yellow); color: var(--fb-ink); }
.is-style-fb-white .wp-block-button__link { background: var(--fb-paper); color: var(--fb-ink); }

/* Tarjeta genérica */
.fb-card { background: var(--fb-paper); border: var(--fb-border); box-shadow: var(--fb-shadow-m); }

/* ── Pie ────────────────────────────────────────────────────────────────────── */
.fb-footer {
	margin-top: 72px;
	border-top: var(--fb-border-l);
	background-color: var(--fb-yellow);
}
.fb-footer__inner { max-width: 1280px; margin: 0 auto; padding: 40px var(--fb-gutter); }
.fb-footer__card {
	background: var(--fb-paper);
	border: var(--fb-border);
	box-shadow: var(--fb-shadow-l);
	padding: 32px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 28px;
	font-size: 14px;
	line-height: 1.9;
}
.fb-footer__card > * { margin: 0; }
.fb-footer__brand { font-size: 38px; margin: 0 0 4px; }
.fb-footer__heading { font-weight: 900; margin: 0; font-family: inherit; font-size: 14px; letter-spacing: 0; }
.fb-footer__links { list-style: none; margin: 0; padding: 0; }
.fb-footer__links a:hover { color: var(--fb-red); }
.fb-footer__legal { text-align: center; padding-top: 20px; font-size: 13px; font-weight: 800; margin: 0; }

/* ── Móvil ──────────────────────────────────────────────────────────────────── */
@media (max-width: 781px) {
	.fb-header__row { gap: 12px; }
	.fb-search { order: 3; flex-basis: 100%; }
	.fb-header__actions { margin-left: auto; }
	.fb-footer__card { padding: 24px; }
}

/* ── Portada ────────────────────────────────────────────────────────────────── */
.fb-hero {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	grid-template-rows: 250px 250px;
	gap: 16px;
}
.fb-hero__main {
	grid-column: span 2;
	grid-row: span 2;
	background-color: var(--fb-red);
	border: var(--fb-border-l);
	padding: clamp(24px, 4vw, 40px);
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 20px;
}
.fb-hero__title {
	margin: 0;
	align-self: flex-start;
	background: var(--fb-yellow);
	border: var(--fb-border);
	box-shadow: var(--fb-shadow-m);
	padding: 8px 18px 2px;
	transform: rotate(-2deg);
	font-size: clamp(40px, 6vw, 76px);
	line-height: 1;
}
.fb-hero__text {
	margin: 8px 0 0;
	max-width: 520px;
	font-size: 19px;
	font-weight: 800;
	color: #fff;
	text-shadow: 2px 2px 0 var(--fb-ink);
}
.fb-hero__tile { margin: 0; border: var(--fb-border-l); }
.fb-hero__tile a {
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.fb-hero__tile span {
	font-family: var(--fb-display);
	font-size: clamp(36px, 5vw, 56px);
	letter-spacing: 1px;
	border: var(--fb-border);
	box-shadow: var(--fb-shadow-m);
	padding: 6px 18px 0;
	line-height: 1.1;
}
.fb-hero__tile--new { background-color: var(--fb-yellow); }
.fb-hero__tile--new span { background: var(--fb-paper); transform: rotate(2deg); }
.fb-hero__tile--deals { background-color: var(--fb-blue); }
.fb-hero__tile--deals span { background: var(--fb-red); color: #fff; transform: rotate(-3deg); }
.fb-hero__tile a:hover span { transform: rotate(0deg) scale(1.04); }

.fb-section { padding-top: 64px; }
.fb-section__head { align-items: center; gap: 16px; margin-bottom: 24px; }
.fb-section__head .fb-section-title { margin: 0; }
.fb-section__more { margin: 0; }
.fb-section__more a { font-weight: 900; border-bottom: var(--fb-border); padding-bottom: 2px; }

/* Viñetas de categoría: imagen (más adelante, compuesta con fotos de producto) + cartela */
.fb-tiles, .fb-universes, .fb-brands { list-style: none; margin: 0; padding: 0; }
.fb-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 20px;
}
.fb-tile {
	position: relative;
	display: block;
	height: 220px;
	border: var(--fb-border);
	background-color: var(--fb-paper-2);
	background-image: radial-gradient(#d0d0d0 1.2px, transparent 1.6px);
	background-size: 12px 12px;
	transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.fb-tile:hover { transform: translate(-2px, -2px); box-shadow: var(--fb-shadow-m); }
/* Foto real del producto más representativo de la categoría (fondo blanco de Megasur), abajo a la derecha */
.fb-tile:has(.fb-tile__img) { background: #fff; overflow: hidden; }
.fb-tile__img { position: absolute; right: 12px; bottom: 12px; width: auto; height: auto; max-width: 56%; max-height: calc(100% - 24px); object-fit: contain; transition: transform 0.15s ease; }
.fb-tile:hover .fb-tile__img { transform: scale(1.04); }
.fb-tile span { z-index: 1; }
.fb-tile span {
	position: absolute;
	top: 12px;
	left: 12px;
	border: var(--fb-border);
	padding: 4px 12px 0;
	font-family: var(--fb-display);
	font-size: 26px;
	letter-spacing: 1px;
	line-height: 1.15;
	transform: rotate(-2deg);
}
.fb-tile.is-yellow span { background: var(--fb-yellow); color: var(--fb-ink); }
.fb-tile.is-red span { background: var(--fb-red); color: #fff; }
.fb-tile.is-blue span { background: var(--fb-blue); color: #fff; }

/* Tarjetas de universo: imagen arriba + nombre en franja de color */
.fb-universes {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	gap: 16px;
}
.fb-universe {
	display: flex;
	flex-direction: column;
	border: var(--fb-border);
	background: var(--fb-paper);
	box-shadow: var(--fb-shadow-s);
	transition: transform 0.08s ease;
}
.fb-universe { text-decoration: none; color: var(--fb-ink); height: 100%; }
.fb-universe__media {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 4 / 3;
	padding: 14px;
	background-color: var(--fb-paper-2);
	border-bottom: var(--fb-border);
}
.fb-universe__logo { width: 100%; height: 100%; object-fit: contain; transition: transform 0.12s ease; }
.fb-universe:hover { transform: translate(-2px, -2px); box-shadow: var(--fb-shadow-m); }
.fb-universe:hover .fb-universe__logo { transform: scale(1.05) rotate(-2deg); }
.fb-universe__name { flex: 1; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0 4px; padding: 8px 10px; font-weight: 900; text-align: center; line-height: 1.2; }
.fb-universe__count { font-weight: 700; font-size: 0.875em; }
.fb-universe.is-yellow .fb-universe__name { background: var(--fb-yellow); }
.fb-universe.is-red .fb-universe__name { background: var(--fb-red); color: #fff; }
.fb-universe.is-blue .fb-universe__name { background: var(--fb-blue); color: #fff; }

/* Cabecera de universo: logo en viñeta + fotos de sus productos sobre trama de cómic */
.fb-uhero {
	position: relative;
	display: flex;
	align-items: center;
	gap: 20px;
	min-height: 200px;
	margin-bottom: 20px;
	padding: 20px 24px;
	background-color: var(--fb-red);
	border: var(--fb-border-l);
	box-shadow: var(--fb-shadow-m);
	overflow: hidden;
}
.fb-uhero__badge {
	flex: 0 0 auto;
	width: clamp(130px, 22vw, 200px);
	aspect-ratio: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 14px;
	background: var(--fb-paper);
	border: var(--fb-border);
	box-shadow: var(--fb-shadow-m);
	transform: rotate(-3deg);
	z-index: 1;
}
.fb-uhero__logo { width: 100%; height: 100%; object-fit: contain; }
.fb-uhero__name { font-family: var(--fb-display); font-size: 28px; text-align: center; line-height: 1.1; }
.fb-uhero__products { list-style: none; margin: 0; padding: 0 0 0 18px; flex: 1; display: flex; justify-content: center; align-items: center; min-width: 0; }
.fb-uhero__products li {
	flex: 0 0 auto;
	width: clamp(84px, 12vw, 160px);
	margin-left: -18px;
	background: #fff;
	border: var(--fb-border);
	box-shadow: var(--fb-shadow-s);
	padding: 6px;
	transform: rotate(4deg);
}
.fb-uhero__products li:nth-child(even) { transform: rotate(-4deg) translateY(10px); }
.fb-uhero__products li:nth-child(3n) { transform: rotate(2deg) translateY(-8px); }
.fb-uhero__products img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
@media (max-width: 781px) {
	.fb-uhero { min-height: 0; padding: 14px; gap: 10px; }
	.fb-uhero__badge { width: 110px; padding: 8px; }
	.fb-uhero__products li { width: 86px; margin-left: -26px; padding: 4px; }
	.fb-uhero__products li:nth-child(n+4) { display: none; }
}

/* Marcas: bocadillos (pastilla con borde y colita) */
.fb-brands { display: flex; flex-wrap: wrap; gap: 18px 14px; }
.fb-brands a {
	position: relative;
	display: inline-block;
	border: var(--fb-border);
	border-radius: 999px;
	background: var(--fb-paper);
	padding: 10px 22px;
	min-height: 44px;
	font-weight: 900;
}
.fb-brands a::after {
	content: "";
	position: absolute;
	left: 22px;
	bottom: -12px;
	width: 14px;
	height: 14px;
	background: var(--fb-paper);
	border-right: var(--fb-border);
	border-bottom: var(--fb-border);
	transform: skewY(-30deg) rotate(45deg);
}
.fb-brands a:hover { background: var(--fb-yellow); color: var(--fb-ink); }
.fb-brands a:hover::after { background: var(--fb-yellow); }

.fb-empty {
	border: var(--fb-border);
	background: var(--fb-paper-2);
	padding: 24px;
	font-weight: 800;
	text-align: center;
}

/* ── Tarjeta de producto (bloques de WooCommerce) ──────────────────────────── */
.fb-products .wc-block-product,
.wc-block-product-template .wc-block-product {
	border: var(--fb-border);
	background: var(--fb-paper);
	box-shadow: var(--fb-shadow-m);
	padding: 0 0 14px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	position: relative;
}
.wc-block-product .wc-block-components-product-image {
	margin: 0 0 6px;
	border-bottom: var(--fb-border);
	aspect-ratio: 1 / 1;
	background: var(--fb-paper);
}
.wc-block-product .wc-block-components-product-image img { object-fit: contain; height: 100%; padding: 10px; }
.wc-block-product .wp-block-post-title,
.wc-block-product .fb-product__name {
	font-family: inherit;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: 0;
	margin: 0 14px;
}
.wc-block-product .wc-block-components-product-price,
.wc-block-product .fb-product__price {
	margin: 0 14px;
	font-family: var(--fb-display);
	font-size: 28px;
	letter-spacing: 1px;
	line-height: 1.1;
}
.wc-block-product .wc-block-components-product-price ins { color: var(--fb-red); text-decoration: none; }
.wc-block-product .wc-block-components-product-price del { font-size: 18px; color: var(--fb-muted); }
.wc-block-product .wc-block-components-product-stock-indicator { margin: 0 14px; font-size: 13px; font-weight: 800; color: var(--fb-ok); }
.wc-block-product .wc-block-components-product-stock-indicator--out-of-stock { color: var(--fb-muted); }
.wc-block-product .wp-block-button { margin: auto 14px 0; }
.wc-block-product .wp-block-button__link { width: 100%; text-align: center; }

/* Insignia rotada (oferta) */
.wc-block-components-product-sale-badge {
	background: var(--fb-yellow);
	color: var(--fb-ink);
	border: var(--fb-border);
	border-radius: 0;
	font-weight: 900;
	text-transform: uppercase;
	transform: rotate(-6deg);
	box-shadow: var(--fb-shadow-s);
}

@media (max-width: 781px) {
	.fb-hero { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto 120px; gap: 12px; }
	.fb-hero__main { grid-column: span 2; grid-row: auto; min-width: 0; }
	.fb-hero__title { font-size: clamp(28px, 8.5vw, 44px); padding: 6px 12px 0; }
	.fb-hero__text { font-size: 16px; }
	.fb-hero__tile a { padding: 10px; }
	.fb-hero__tile span { font-size: clamp(20px, 6.5vw, 32px); padding: 4px 10px 0; }
	.fb-section { padding-top: 48px; }
	.fb-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.fb-tile { height: 110px; }
	.fb-tile span { font-size: 18px; top: 8px; left: 8px; right: 8px; padding: 3px 8px 0; }
	.fb-tile__img { right: 8px; bottom: 6px; max-width: 80%; max-height: calc(100% - 46px); }
}

/* Índices de universos y marcas (/universos/, /marcas/): enlaces con el estilo de «Mostrar más» */
.fb-index__letters { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 28px; }
.fb-index__letters a {
	min-width: 36px; min-height: 36px; display: inline-flex; align-items: center; justify-content: center;
	border: var(--fb-border); font-weight: 900; color: var(--fb-ink); text-decoration: none;
}
.fb-index__letters a:hover { background: var(--fb-yellow); }
.fb-index__group { margin-bottom: 28px; scroll-margin-top: 16px; }
.fb-index__letter {
	display: inline-block; margin: 0 0 12px; padding: 2px 12px 0; background: var(--fb-yellow);
	border: var(--fb-border); font-family: var(--fb-display); font-size: 26px; transform: rotate(-2deg);
}
.fb-index__list { list-style: none; margin: 0; padding: 0; columns: 4 220px; column-gap: 24px; }
.fb-index__list li { break-inside: avoid; padding: 5px 0; }
.fb-index__list a { color: var(--fb-ink); font-weight: 700; text-decoration: none; }
.fb-index__name { text-decoration: underline; }
.fb-index__count { color: var(--fb-muted); font-weight: 600; font-size: 0.875em; }
.fb-index__list a:hover, .fb-index__list a:hover .fb-index__count { color: var(--fb-red); }
.fb-index__list a:hover .fb-index__name { text-decoration: none; }

/* ── Catálogo (tienda, categoría, marca, búsqueda) ─────────────────────────── */
.fb-breadcrumbs { font-size: 14px; font-weight: 700; color: var(--fb-muted); margin-bottom: 16px; }
.fb-breadcrumbs a { color: var(--fb-ink); border-bottom: 2px solid var(--fb-ink); }
.fb-catalog__layout {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	gap: 32px;
	align-items: start;
}
.fb-catalog__results > .fb-section-title { margin-bottom: 12px; }
.fb-catalog__bar {
	gap: 12px;
	margin: 8px 0 20px;
	padding: 10px 14px;
	border: var(--fb-border);
	background: var(--fb-paper-2);
	font-weight: 800;
}
.fb-catalog__bar .woocommerce-result-count { margin: 0; }
.fb-catalog__bar select {
	min-height: 44px;
	border: var(--fb-border);
	border-radius: 0;
	background: var(--fb-paper);
	font: inherit;
	font-weight: 800;
	padding: 0 12px;
}

/* Filtros */
.fb-filters {
	border: var(--fb-border);
	background: var(--fb-paper);
	box-shadow: var(--fb-shadow-m);
	padding: 20px;
	position: sticky;
	top: 16px;
}
.fb-filters__title {
	display: inline-block;
	margin: 0 0 16px;
	background: var(--fb-yellow);
	border: var(--fb-border);
	padding: 2px 12px 0;
	transform: rotate(-1.5deg);
	font-size: 28px;
}
.fb-filters__heading {
	font-family: inherit;
	font-size: 15px;
	font-weight: 900;
	letter-spacing: 0;
	text-transform: uppercase;
	margin: 20px 0 8px;
	padding-top: 16px;
	border-top: 2px dashed var(--fb-ink);
}
.fb-filters .wc-block-product-filter-checkbox-list__label { font-weight: 700; min-height: 32px; }
.fb-filters input[type="checkbox"] { accent-color: var(--fb-blue); width: 18px; height: 18px; }
.fb-filters input[type="number"],
.fb-filters input[type="text"] {
	border: var(--fb-border);
	border-radius: 0;
	min-height: 40px;
	font: inherit;
	font-weight: 700;
}
/* Filtro de precio (decisión de David, 20-11-2026): barra y debajo «mínimo» y «máximo» en dos filas,
   cada una a todo el ancho de la barra lateral. Con !important porque el CSS de WooCommerce se carga
   después y les imponía su propia distribución (la casilla del máximo se salía hacia la rejilla). */
.fb-filters .wc-block-product-filter-price-slider,
.fb-filters .wc-block-product-filter-price-slider__content {
	max-width: 100% !important;
	min-width: 0 !important;
	box-sizing: border-box;
}
.fb-filters .wc-block-product-filter-price-slider__content:not(.wc-block-product-filter-price-slider__content--inline) {
	display: flex !important;
	flex-direction: column !important;
	align-items: stretch !important;
	gap: 8px !important;
}
.fb-filters .wc-block-product-filter-price-slider__content > * {
	width: 100% !important;
	min-width: 0 !important;
	max-width: 100% !important;
	margin: 0 !important;
	flex: 0 0 auto !important;
}
.fb-filters .wc-block-product-filter-price-slider__left { order: 2; }
.fb-filters .wc-block-product-filter-price-slider__right { order: 3; }
.fb-filters .wc-block-product-filter-price-slider__range { order: 1; }
/* Las casillas: el MARCO lo dibuja el contenedor (__left / __right), con margen interno real, y el
   campo de dentro va sin marco, transparente y alineado a la derecha (decisión de David, 20-11-2026).
   Aplicar relleno o sangría al propio campo no tenía efecto en el navegador. El rótulo («Mínimo»,
   «Máximo») queda por encima del marco. */
.fb-filters .wc-block-product-filter-price-slider__left,
.fb-filters .wc-block-product-filter-price-slider__right {
	position: relative;
	display: flex !important;
	align-items: center;
	justify-content: flex-end;
	min-height: 42px;
	margin-top: 22px !important;
	padding: 0 14px !important;
	border: var(--fb-border);
	background: var(--fb-paper);
	box-sizing: border-box;
	font-weight: 700;
}
.fb-filters .wc-block-product-filter-price-slider__left::before { content: "Mínimo"; }
.fb-filters .wc-block-product-filter-price-slider__right::before { content: "Máximo"; }
.fb-filters .wc-block-product-filter-price-slider__left::before,
.fb-filters .wc-block-product-filter-price-slider__right::before {
	position: absolute;
	left: 0;
	bottom: 100%;
	margin-bottom: 3px;
	font-size: 13px;
	font-weight: 700;
}
.fb-filters .wc-block-product-filter-price-slider__left input,
.fb-filters .wc-block-product-filter-price-slider__right input {
	flex: 1 1 auto;
	width: 100% !important;
	min-width: 0 !important;
	max-width: 100% !important;
	min-height: 38px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	outline-offset: 4px;
	background: transparent !important;
	box-shadow: none !important;
	text-align: right !important;
	text-indent: 0 !important;
	font: inherit;
	font-weight: 700;
}
.fb-filters .wc-block-product-filter-price-slider__left:focus-within,
.fb-filters .wc-block-product-filter-price-slider__right:focus-within { box-shadow: var(--fb-shadow-s); }
/* Fabricante y Universos: los 6 con más artículos y «Mostrar más» (plugin funboard-catalog, assets/brand-filter.js) */
.fb-filter-top6.fb-brands--collapsed .wc-block-product-filter-checkbox-list__item:nth-child(n+7) { display: none !important; }
.fb-filter-top6[data-fb-brands] .wc-block-product-filter-checkbox-list__show-more:not(.fb-show-more) { display: none !important; }
/* El botón usa las clases y el estilo propios de WooCommerce (sin estilo nuestro). */
.fb-filters .wc-block-product-filter-removable-chips__chip {
	border: 2px solid var(--fb-ink);
	border-radius: 999px;
	background: var(--fb-yellow);
	font-weight: 800;
}

/* Paginación */
.fb-pagination { margin-top: 32px; gap: 8px; font-weight: 900; }
.fb-pagination .page-numbers,
.fb-pagination a {
	min-width: 44px;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 12px;
	border: var(--fb-border);
	background: var(--fb-paper);
}
.fb-pagination .page-numbers.current { background: var(--fb-yellow); box-shadow: var(--fb-shadow-s); }
.fb-pagination .page-numbers.dots { border: 0; background: none; }

@media (max-width: 960px) {
	.fb-catalog__layout { grid-template-columns: 1fr; }
	.fb-filters { position: static; }
}

/* ── Ficha de producto ──────────────────────────────────────────────────────── */
.fb-product__top {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	gap: 40px;
	align-items: start;
}
.fb-product__gallery {
	position: relative;
	border: var(--fb-border-l);
	background: var(--fb-paper);
	padding: 16px;
}
.fb-product__gallery .woocommerce-product-gallery { margin: 0; }
.fb-product__gallery .flex-control-thumbs { display: flex; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.fb-product__gallery .flex-control-thumbs li { width: 72px; }
.fb-product__gallery .flex-control-thumbs img { border: 2px solid var(--fb-ink); cursor: pointer; }
.fb-product__gallery .flex-control-thumbs img.flex-active { border-color: var(--fb-red); box-shadow: var(--fb-shadow-s); }
.fb-product__badge { position: absolute; top: -14px; left: -10px; z-index: 2; }
.fb-product__badge .wc-block-components-product-sale-badge { font-size: 18px; padding: 6px 14px; transform: rotate(-8deg); }

.fb-product__summary {
	border: var(--fb-border);
	box-shadow: var(--fb-shadow-l);
	background: var(--fb-paper);
	padding: clamp(20px, 3vw, 32px);
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.fb-product__summary > * { margin: 0; }
.fb-product__brand { font-weight: 900; text-transform: uppercase; font-size: 14px; }
.fb-product__brand a { color: var(--fb-blue); }
.fb-product__title {
	font-family: var(--fb-display);
	font-size: clamp(32px, 4vw, 48px);
	letter-spacing: 1px;
	line-height: 1.05;
}
.fb-product__excerpt { color: var(--fb-muted); font-weight: 600; }
.fb-product__price-row { gap: 10px; align-items: baseline; }
.fb-product__price-row .fb-product__price,
.fb-product__price-row .wc-block-components-product-price {
	font-family: var(--fb-display);
	font-size: clamp(40px, 5vw, 56px);
	letter-spacing: 1px;
	line-height: 1;
	background: var(--fb-yellow);
	border: var(--fb-border);
	padding: 4px 14px 0;
	transform: rotate(-1.5deg);
	box-shadow: var(--fb-shadow-s);
}
.fb-product__price-row ins { color: var(--fb-red); text-decoration: none; }
.fb-product__price-row del { font-size: 0.5em; color: var(--fb-muted); }
.fb-product__tax { font-size: 13px; font-weight: 800; color: var(--fb-muted); margin: 0; }
.fb-product__stock { font-weight: 900; color: var(--fb-ok); }
.fb-product__stock.wc-block-components-product-stock-indicator--out-of-stock { color: var(--fb-muted); }

/* Botón de compra grande */
.fb-product__cart form.cart { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; margin: 0; }
.fb-product__cart .quantity input.qty {
	width: 72px;
	min-height: 56px;
	border: var(--fb-border);
	border-radius: 0;
	font: inherit;
	font-weight: 900;
	font-size: 18px;
	text-align: center;
}
.fb-product__cart .single_add_to_cart_button {
	flex: 1 1 220px;
	min-height: 56px;
	font-size: 20px;
	background: var(--fb-red);
	color: #fff;
	border: var(--fb-border);
	border-radius: 0;
	box-shadow: 5px 5px 0 var(--fb-ink);
	font-weight: 900;
	text-transform: uppercase;
}
.fb-product__cart .single_add_to_cart_button:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 var(--fb-ink); }

.fb-product__perks { list-style: none; padding: 14px 0 0; margin: 0; border-top: 2px dashed var(--fb-ink); font-weight: 800; font-size: 15px; }
.fb-product__perks li { padding-left: 28px; position: relative; margin: 6px 0; }
.fb-product__perks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 4px;
	width: 16px;
	height: 9px;
	border-left: 3px solid var(--fb-ok);
	border-bottom: 3px solid var(--fb-ok);
	transform: rotate(-45deg);
}
.fb-product__meta { gap: 8px 20px; font-size: 13px; color: var(--fb-muted); font-weight: 700; }

/* La historia y ficha técnica */
.fb-product__story .wp-block-woocommerce-product-description { max-width: 860px; font-size: 17px; }
.fb-product__specs table {
	width: 100%;
	max-width: 860px;
	border-collapse: collapse;
	border: var(--fb-border);
	box-shadow: var(--fb-shadow-m);
	background: var(--fb-paper);
}
.fb-product__specs th,
.fb-product__specs td { padding: 10px 14px; border-bottom: 2px solid var(--fb-ink); text-align: left; vertical-align: top; }
.fb-product__specs th { width: 38%; font-weight: 900; background: var(--fb-paper-2); }
.fb-product__specs tr:last-child th,
.fb-product__specs tr:last-child td { border-bottom: 0; }

@media (max-width: 781px) {
	.fb-product__top { grid-template-columns: 1fr; gap: 28px; }
	/* Móvil: botón de compra fijo abajo (docs/diseno.md) */
	.fb-product__cart form.cart {
		position: sticky;
		bottom: 0;
		z-index: 5;
		background: var(--fb-paper);
		padding: 10px 0;
		border-top: var(--fb-border);
	}
}

/* ── Favoritos (plugin funboard-catalog) ───────────────────────────────────── */
.fb-header__fav {
	position: relative;
	width: 48px;
	height: 48px;
	border: var(--fb-border);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--fb-ink);
}
.fb-header__fav:hover { background: var(--fb-yellow); color: var(--fb-ink); }
.fb-header__fav-count {
	position: absolute;
	top: -10px;
	right: -10px;
	min-width: 22px;
	height: 22px;
	padding: 0 5px;
	border: 2px solid var(--fb-ink);
	border-radius: 999px;
	background: var(--fb-red);
	color: #fff;
	font-size: 12px;
	font-weight: 900;
	line-height: 18px;
	text-align: center;
}
.fb-header__fav-count[hidden] { display: none; }

.fb-fav-wrap { position: relative; }
.fb-fav {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 44px;
	min-height: 44px;
	border: var(--fb-border);
	border-radius: 0;
	background: var(--fb-paper);
	color: var(--fb-ink);
	font: inherit;
	font-weight: 900;
	cursor: pointer;
	padding: 0 10px;
}
.fb-fav__icon path { fill: transparent; transition: fill 0.1s ease; }
.fb-fav:hover { background: var(--fb-yellow); }
.fb-fav.is-active { color: var(--fb-red); }
.fb-fav.is-active .fb-fav__icon path { fill: var(--fb-red); }
.fb-fav-wrap > .fb-fav {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 2;
	box-shadow: var(--fb-shadow-s);
	padding: 0;
}
.fb-fav--text { margin-top: 12px; box-shadow: var(--fb-shadow-s); text-transform: uppercase; font-size: 14px; }
.fb-fav--text.is-active { background: #ffe9ed; }

/* Página «Mis favoritos» */
.fb-favs__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 24px;
}
.fb-favs__item {
	border: var(--fb-border);
	box-shadow: var(--fb-shadow-m);
	background: var(--fb-paper);
	padding: 0 14px 14px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.fb-favs__img { display: block; margin: 0 -14px 6px; border-bottom: var(--fb-border); aspect-ratio: 1 / 1; }
.fb-favs__img img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.fb-favs__name { font-weight: 800; line-height: 1.3; }
.fb-favs__price { margin: 0; font-family: var(--fb-display); font-size: 28px; letter-spacing: 1px; }
.fb-favs__price ins { color: var(--fb-red); text-decoration: none; }
.fb-favs__price del { font-size: 18px; color: var(--fb-muted); }
.fb-favs__stock { margin: 0; font-size: 13px; font-weight: 800; }
.fb-favs__stock.is-in { color: var(--fb-ok); }
.fb-favs__stock.is-out { color: var(--fb-muted); }
.fb-favs__item .fb-fav { margin-top: auto; }

/* ── Carrito y checkout ─────────────────────────────────────────────────────── */
.fb-shop-flow .wp-block-post-content > .wp-block-heading:first-child { display: none; }

/* Barra de envío gratis (plugin funboard-catalog) */
.fb-freeship {
	border: var(--fb-border);
	background: var(--fb-yellow);
	box-shadow: var(--fb-shadow-s);
	padding: 14px 18px;
	margin: 0 0 24px;
}
.fb-freeship__text { margin: 0 0 10px; font-weight: 900; font-size: 18px; }
.fb-freeship__track { height: 16px; border: var(--fb-border); background: var(--fb-paper); }
.fb-freeship__fill { height: 100%; background: var(--fb-red); transition: width 0.3s ease; }
.fb-freeship.is-done .fb-freeship__fill { background: var(--fb-ok); }

/* Pasos del checkout: cuadrados numerados, amarillos los completados */
.fb-steps ol { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.fb-steps__item { display: flex; }
.fb-steps__item a, .fb-steps__item > span { display: inline-flex; align-items: center; gap: 10px; }
.fb-steps__item { font-weight: 900; color: var(--fb-muted); }
.fb-steps__num {
	width: 40px;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: var(--fb-border);
	background: var(--fb-paper);
	color: var(--fb-ink);
	font-family: var(--fb-display);
	font-size: 22px;
}
.fb-steps__item.is-done .fb-steps__num { background: var(--fb-yellow); }
.fb-steps__item.is-current { color: var(--fb-ink); }
.fb-steps__item.is-current .fb-steps__num { background: var(--fb-blue); color: #fff; box-shadow: var(--fb-shadow-s); }
.fb-checkout-notice {
	margin: 0 0 24px;
	padding: 10px 14px;
	border: var(--fb-border);
	background: var(--fb-paper-2);
	font-weight: 800;
}

/* Componentes de los bloques de carrito y checkout */
.fb-shop-flow .wc-block-components-text-input input,
.fb-shop-flow .wc-block-components-combobox .components-combobox-control input,
.fb-shop-flow .wc-blocks-components-select__select,
.fb-shop-flow .wc-block-components-textarea {
	border: var(--fb-border) !important;
	border-radius: 0 !important;
	font-weight: 700;
}
.fb-shop-flow .wc-block-components-button:not(.is-link),
.fb-shop-flow .wc-block-cart__submit-button,
.fb-shop-flow .wc-block-components-checkout-place-order-button {
	background: var(--fb-red);
	color: #fff;
	border: var(--fb-border);
	border-radius: 0;
	box-shadow: 5px 5px 0 var(--fb-ink);
	min-height: 56px;
	font-weight: 900;
	text-transform: uppercase;
	font-size: 18px;
}
.fb-shop-flow .wc-block-components-button:not(.is-link):hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 var(--fb-ink); }
.fb-shop-flow .wc-block-cart__sidebar,
.fb-shop-flow .wc-block-checkout__sidebar {
	border: var(--fb-border);
	box-shadow: var(--fb-shadow-m);
	background: var(--fb-paper);
	padding: 20px;
	align-self: flex-start;
}
.fb-shop-flow .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	font-family: var(--fb-display);
	font-size: 34px;
	letter-spacing: 1px;
}
.fb-shop-flow .wc-block-cart-items { border: var(--fb-border); }
.fb-shop-flow .wc-block-cart-items th { background: var(--fb-paper-2); }
.fb-shop-flow .wc-block-cart-item__image img { border: 2px solid var(--fb-ink); }
.fb-shop-flow .wc-block-components-quantity-selector { border: var(--fb-border); border-radius: 0; }
.fb-shop-flow .wc-block-components-checkout-step__title { font-family: var(--fb-display); font-size: 28px; letter-spacing: 1px; }
.fb-shop-flow .wc-block-components-checkout-step__heading::before { display: none; }
.fb-shop-flow input[type="checkbox"], .fb-shop-flow input[type="radio"] { accent-color: var(--fb-blue); }

/* ── Desistimiento (plugin funboard-catalog) ───────────────────────────────── */
.fb-withdraw {
	max-width: 640px;
	border: var(--fb-border);
	box-shadow: var(--fb-shadow-m);
	background: var(--fb-paper);
	padding: 24px;
}
.fb-withdraw label { font-weight: 800; display: inline-block; margin-bottom: 6px; }
.fb-withdraw input[type="number"],
.fb-withdraw input[type="email"],
.fb-withdraw textarea {
	display: block;
	width: 100%;
	min-height: 44px;
	border: var(--fb-border);
	border-radius: 0;
	padding: 8px 12px;
	font: inherit;
	font-weight: 700;
}
.fb-withdraw fieldset { border: 2px dashed var(--fb-ink); padding: 12px 16px; margin: 12px 0; }
.fb-withdraw legend { font-weight: 900; padding: 0 6px; }
.fb-withdraw input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--fb-blue); vertical-align: middle; margin-right: 8px; }
.fb-withdraw__note { font-size: 14px; color: var(--fb-muted); }
.fb-withdraw__notice {
	max-width: 640px;
	border: var(--fb-border);
	background: var(--fb-paper-2);
	padding: 14px 18px;
	font-weight: 800;
}
.fb-withdraw__notice.is-success { background: #e3f4ea; border-color: var(--fb-ok); }

/* Textos legales (páginas generadas por ops/tools/build_legal_pages.py) */
.fb-legal { line-height: 1.6; }
.fb-legal h2 { margin-top: 2em; }
.fb-legal table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: 0.95em; }
.fb-legal th, .fb-legal td { border: 1px solid currentColor; border-color: rgba(0,0,0,.15); padding: .5em .75em; text-align: left; vertical-align: top; }
.fb-legal th { background: rgba(0,0,0,.04); }
.fb-legal blockquote { margin: 1em 0; padding-left: 1em; border-left: 4px solid rgba(0,0,0,.15); }
@media (max-width: 600px) { .fb-legal table { display: block; overflow-x: auto; } }

/* Aviso armonizado de garantía (plugin funboard-catalog, Legal.php): el gráfico oficial no se modifica */
.fb-guarantee { margin: 1em 0; }
.fb-guarantee > summary { cursor: pointer; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.fb-guarantee__body { margin-top: .75em; }
.fb-guarantee__body img { display: block; width: 100%; max-width: 595px; height: auto; border: 1px solid rgba(0,0,0,.12); }
.fb-legal-notes { margin-top: 1.5em; font-size: .9em; }
.fb-clause { font-size: .85em; line-height: 1.5; opacity: .85; }
.fb-product-info { margin-top: 1em; font-size: .95em; }
.fb-product-info__age { padding: .5em .75em; border-left: 4px solid currentColor; background: rgba(0,0,0,.04); }
.fb-product-info__gpsr > summary { cursor: pointer; font-weight: 700; }
.fb-product-info__gpsr dl { margin: .5em 0 0; }
.fb-product-info__gpsr dt { font-weight: 700; margin-top: .5em; }
.fb-product-info__gpsr dd { margin: 0; }

/* Formulario de contacto (plugin funboard-catalog, Contact.php) */
.fb-contact { display: grid; gap: .25em; max-width: 640px; margin-top: 1.5em; }
.fb-contact__field label { display: block; font-weight: 700; margin-bottom: .25em; }
.fb-contact__field input, .fb-contact__field textarea { width: 100%; box-sizing: border-box; padding: .6em .75em; font: inherit; border: 1px solid rgba(0,0,0,.25); border-radius: 8px; }
.fb-contact__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fb-contact__notice { margin: 1em 0; padding: .75em 1em; border-radius: 8px; background: rgba(0,0,0,.05); }
.fb-contact__notice.is-success { border-left: 4px solid #2e7d32; }
.fb-contact__notice.is-error { border-left: 4px solid #c62828; }

/* ── Megamenú (inc/megamenu.php) ────────────────────────────────────────────── */
.fb-mega { position: relative; max-width: 1280px; margin: 0 auto; padding: 0 var(--fb-gutter) 12px; }
.fb-mega__burger { display: none; }
.fb-mega__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.fb-mega__item { display: flex; align-items: center; }
.fb-mega__top {
	display: block;
	font-weight: 800;
	font-size: 15px;
	padding: 10px 6px 10px 14px;
	min-height: 44px;
	color: var(--fb-ink);
}
.fb-mega__item:not(.has-panel) .fb-mega__top { padding-right: 14px; }
.fb-mega__top:hover, .fb-mega__top[aria-current="page"], .fb-mega__item.is-open > .fb-mega__top { color: var(--fb-red); }
.fb-mega__toggle {
	background: none;
	border: 0;
	padding: 0 10px 0 2px;
	min-height: 44px;
	min-width: 28px;
	font: inherit;
	font-weight: 900;
	color: var(--fb-ink);
	cursor: pointer;
}
.fb-mega__item.is-open > .fb-mega__toggle span[aria-hidden] { display: inline-block; transform: rotate(180deg); }
.fb-mega__item--offers .fb-mega__top { background: var(--fb-red); color: #fff; font-weight: 900; padding-right: 14px; }
.fb-mega__item--offers .fb-mega__top:hover { background: var(--fb-ink); color: var(--fb-yellow); }
.fb-mega__panel {
	display: none;
	position: absolute;
	z-index: 50;
	top: 100%;
	left: var(--fb-gutter);
	right: var(--fb-gutter);
	margin-top: -12px;
	background: var(--fb-paper);
	border: var(--fb-border);
	box-shadow: var(--fb-shadow-m);
	padding: 24px 28px 20px;
	max-height: calc(100vh - 220px);
	overflow-y: auto;
}
.fb-mega__item.is-open > .fb-mega__panel { display: block; }
@media (hover: hover) and (min-width: 782px) {
	.fb-mega__item.has-panel:hover > .fb-mega__panel { display: block; }
	.fb-mega__item.has-panel:hover > .fb-mega__top { color: var(--fb-red); }
}
.fb-mega__cols { list-style: none; margin: 0; padding: 0; columns: 4 190px; column-gap: 28px; }
.fb-mega__group { break-inside: avoid; margin: 0 0 10px; }
.fb-mega__head { font-size: 15px; font-weight: 800; color: var(--fb-ink); }
.fb-mega__head:hover, .fb-mega__sub a:hover, .fb-mega__cols--list a:hover, .fb-mega__all:hover { color: var(--fb-red); }
.fb-mega__sub { list-style: none; margin: 4px 0 0; padding: 0; }
.fb-mega__sub a { color: var(--fb-ink); font-weight: 600; font-size: 14px; display: block; padding: 2px 0; }
.fb-mega__cols--list li { break-inside: avoid; margin: 0 0 6px; }
.fb-mega__cols--list a { color: var(--fb-ink); font-size: 15px; font-weight: 800; }
.fb-mega__more-title {
	margin: 16px 0 8px;
	padding-top: 12px;
	border-top: 2px dashed var(--fb-ink);
	font-size: 13px;
	font-weight: 900;
	text-transform: uppercase;
}
.fb-mega__all {
	display: inline-block;
	margin-top: 16px;
	font-size: 15px;
	font-weight: 800;
	color: var(--fb-ink);
	text-decoration: underline;
}
.fb-mega__all:hover { text-decoration: none; }

@media (max-width: 781px) {
	.fb-mega { padding-bottom: 8px; }
	.fb-mega__burger {
		display: inline-flex;
		align-items: center;
		gap: 8px;
		min-height: 44px;
		padding: 0 16px;
		background: var(--fb-paper);
		border: var(--fb-border);
		box-shadow: var(--fb-shadow-s);
		font: inherit;
		font-weight: 900;
		color: var(--fb-ink);
		cursor: pointer;
	}
	.fb-mega__list { display: none; flex-direction: column; gap: 0; margin-top: 12px; border: var(--fb-border); background: var(--fb-paper); }
	.fb-mega.is-open .fb-mega__list { display: flex; }
	.fb-mega__item { flex-wrap: wrap; border-bottom: 2px solid var(--fb-paper-2); }
	.fb-mega__top { flex: 1; }
	.fb-mega__toggle { min-width: 48px; padding: 0 14px; }
	.fb-mega__panel { position: static; flex-basis: 100%; margin: 0; border: 0; border-top: 2px dashed var(--fb-ink); box-shadow: none; padding: 12px 16px 16px; max-height: none; }
	.fb-mega__cols { columns: 2 140px; }
	.fb-mega__item--offers .fb-mega__top { text-align: left; }
}

/* Filtro de subcategorías (páginas de categoría, entre Disponibilidad y Precio) */
.fb-subcats__list { list-style: none; margin: 0; padding: 0; }
.fb-subcats__list a { display: block; padding: 6px 0; line-height: 1.35; color: var(--fb-ink); font-size: 0.875em; font-weight: 700; }
.fb-subcats__name { text-decoration: underline; }
.fb-subcats__list a:hover { color: var(--fb-red); }
.fb-subcats__list a:hover .fb-subcats__name { text-decoration: none; }
.fb-subcats__list a[aria-current="page"] { color: var(--fb-red); }
.fb-subcats__list a[aria-current="page"] .fb-subcats__name { text-decoration: none; }
.fb-subcats__list a[aria-current="page"]::before { content: "▸"; }
.fb-subuniverses { margin-bottom: 18px; }

/* Subuniversos: fila de botones encima de los productos de un universo (28-11-2026) */
.fb-subchips { margin: 4px 0 18px; }
.fb-subchips ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.fb-subchips a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 2px solid var(--fb-ink); background: #fff; color: var(--fb-ink); font-size: 0.875em; font-weight: 800; line-height: 1.2; text-decoration: none; box-shadow: 2px 2px 0 var(--fb-ink); }
.fb-subchips a:hover { background: var(--fb-yellow, #ffd400); }
.fb-subchips a[aria-current="page"] { background: var(--fb-red); color: #fff; }
.fb-subchips__count { font-weight: 700; opacity: 0.75; }
@media (max-width: 767px) {
	/* En móvil, una sola fila desplazable en horizontal */
	.fb-subchips ul { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
	.fb-subchips li { flex: 0 0 auto; }
}
.fb-mega .screen-reader-text { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; white-space: nowrap; }

/* Filtros: sin el recuadro gris por defecto del navegador en los fieldset de WooCommerce */
.fb-filters fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.fb-filters fieldset > legend { padding: 0; }

/* Descripción de categoría / universo / marca, encima del listado (textos de ops/data/descripciones-terminos.json) */
.fb-catalog__results > .wp-block-term-description { margin: 0 0 20px; max-width: 80ch; font-size: 15px; line-height: 1.55; }
.fb-catalog__results > .wp-block-term-description p { margin: 0 0 8px; }
.fb-catalog__results > .wp-block-term-description .fb-term-lead { font-weight: 900; font-size: 17px; }

/* «Chollos de la semana»: sin ofertas que mostrar (destacado «Ofertas» vacío), la sección no aparece */
.fb-section--deals:not(:has(.wp-block-woocommerce-product-collection)) { display: none; }

/* ── Móvil: cabecera en una fila y barra inferior (inc/mobile-bar.php, maquetas C_*Movil) ── */
.fb-header__menu, .fb-mbar { display: none; }
@media (max-width: 781px) {
	.fb-header__row { flex-wrap: wrap; justify-content: space-between; padding-top: 10px; padding-bottom: 10px; gap: 10px; }
	.fb-header__menu {
		display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
		width: 44px; height: 44px; padding: 0; border: var(--fb-border); background: var(--fb-paper);
		color: var(--fb-ink); cursor: pointer;
	}
	.fb-header__menu[aria-expanded="true"] { background: var(--fb-yellow); }
	.fb-logo a { font-size: 30px; letter-spacing: 1px; text-shadow: 3px 3px 0 var(--fb-ink); padding: 2px 4px 2px 0; }
	.fb-header__actions { margin-left: 0; }
	.fb-header__fav, .fb-header__actions .wp-block-woocommerce-customer-account { display: none; }
	.fb-header__actions .wc-block-mini-cart__button { width: 44px; height: 44px; }
	/* Buscador: oculto hasta pulsar «Buscar»; en la página de resultados se ve siempre */
	.fb-search { display: none; }
	.fb-search-open .fb-search, .search .fb-search { display: block; }
	.fb-search { order: 3; flex-basis: 100%; }
	/* El menú lo abren el botón de la cabecera y «Categorías» */
	.fb-mega { padding: 0 var(--fb-gutter); }
	.fb-mega__burger { display: none !important; }
	.fb-mega.is-open { padding-bottom: 12px; }
	.fb-mega__list { margin-top: 0; }

	.has-fb-mbar { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
	.fb-mbar {
		display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990;
		background: var(--fb-paper); border-top: var(--fb-border);
		padding-bottom: env(safe-area-inset-bottom);
	}
	.fb-mbar__item {
		position: relative; flex: 1 1 0; min-height: 56px; display: flex; flex-direction: column;
		align-items: center; justify-content: center; gap: 2px; padding: 6px 0;
		font: inherit; font-size: 11px; font-weight: 900; color: var(--fb-ink); text-decoration: none;
		background: none; border: 0; cursor: pointer;
	}
	.fb-mbar__item[aria-current="page"], .fb-mbar__item[aria-expanded="true"] { background: var(--fb-yellow); }
	.fb-mbar__item:active { background: var(--fb-yellow); }
	.fb-mbar__count {
		position: absolute; top: 4px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 4px;
		border-radius: 9px; background: var(--fb-red); color: #fff; font-size: 11px; line-height: 18px; text-align: center;
	}
	.fb-mbar__count[hidden] { display: none; }
}
.fb-universe__media.fb-dots { background-image: radial-gradient(#d0d0d0 1.2px, transparent 1.6px); }
@media (max-width: 781px) {
	.fb-universes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.fb-universe__media { padding: 10px; }
	.fb-universe__name { font-size: 14px; padding: 6px 8px; }
}
