/* Selector de productos por página (plugin activa77-tienda).
   Se pinta al entrar en el contenido y el script lo sube junto a la rejilla. */

.a77-por-pagina {
	--a77-pp-borde: rgba(0, 0, 0, 0.12);
	--a77-pp-fondo-activo: #111111;
	--a77-pp-texto-activo: #ffffff;

	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin: 0 0 1rem auto;
	padding: 0.3rem 0.4rem;
	border: 1px solid var(--a77-pp-borde);
	border-radius: 6px;
	font-size: 14px;
	line-height: 1;
	float: none;
}

.a77-por-pagina + .products_wrapper {
	clear: both;
}

.a77-por-pagina__texto {
	opacity: 0.7;
	padding: 0 0.15rem;
}

.a77-por-pagina__opcion {
	display: inline-block;
	min-width: 2.2em;
	padding: 0.4em 0.5em;
	border-radius: 4px;
	text-align: center;
	text-decoration: none;
	color: inherit;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.a77-por-pagina__opcion:hover,
.a77-por-pagina__opcion:focus {
	background: rgba(0, 0, 0, 0.06);
}

.a77-por-pagina__opcion--activa,
.a77-por-pagina__opcion--activa:hover,
.a77-por-pagina__opcion--activa:focus {
	background: var(--a77-pp-fondo-activo);
	color: var(--a77-pp-texto-activo);
	font-weight: 600;
}

/* Cuando el script ya lo colocó junto a la rejilla, se alinea a la derecha sin
   separarse del listado. */
.a77-por-pagina--colocada {
	display: flex;
	justify-content: flex-end;
}

@media only screen and (max-width: 767px) {
	.a77-por-pagina {
		margin-left: 0;
	}

	.a77-por-pagina--colocada {
		justify-content: flex-start;
	}
}

/* ---------------------------------------------------------------------------
   Widget de categorías del lateral
   --------------------------------------------------------------------------- */

.a77cats,
.a77cats ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.a77cats li {
	margin: 0;
	padding: 0;
}

.a77cats [hidden] {
	display: none !important;
}

.a77cats__raiz + .a77cats__raiz {
	border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.a77cats__fila {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.5rem 0;
}

.a77cats__enlace {
	flex: 1 1 auto;
	text-decoration: none;
	color: inherit;
	line-height: 1.35;
}

.a77cats__enlace:hover,
.a77cats__enlace:focus {
	text-decoration: underline;
}

.a77cats__n {
	flex: 0 0 auto;
	font-size: 0.8em;
	opacity: 0.55;
}

.a77cats__toggle {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.6em;
	height: 1.6em;
	padding: 0;
	border: 0;
	border-radius: 3px;
	background: transparent;
	color: inherit;
	cursor: pointer;
	line-height: 1;
}

.a77cats__toggle:hover,
.a77cats__toggle:focus {
	background: rgba(0, 0, 0, 0.06);
}

/* El chevron gira según el estado del botón. */
.a77cats__chevron {
	display: block;
	width: 0.5em;
	height: 0.5em;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.15s ease;
	margin-top: -0.15em;
}

.a77cats__toggle[aria-expanded="true"] .a77cats__chevron {
	transform: rotate(-135deg);
	margin-top: 0.15em;
}

.a77cats__hijas {
	padding: 0 0 0.6rem 0.85rem !important;
	border-left: 1px solid rgba(0, 0, 0, 0.08);
	margin-left: 0.2rem !important;
}

.a77cats__hijas li {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.3rem 0;
	font-size: 0.94em;
}

.a77cats__hijas .a77cats__enlace {
	opacity: 0.9;
}

