/* Marcas y Público para WooCommerce — menú en una sola línea / carrusel deslizable
   Personaliza los colores cambiando estas variables en tu CSS adicional. */
.mpw-nav {
	--mpw-bg: #ffffff;
	--mpw-text: #1d2327;
	--mpw-border: #e2e4e7;
	--mpw-accent: #1d2327;
	--mpw-hover: #f3f4f6;

	position: relative;
	display: flex;
	align-items: stretch;
	width: 100%;
	background: var(--mpw-bg);
	color: var(--mpw-text);
	border-bottom: 1px solid var(--mpw-border);
	font-size: 0.95rem;
	box-sizing: border-box;
}

.mpw-nav *,
.mpw-nav *::before,
.mpw-nav *::after {
	box-sizing: inherit;
}

/* Zona visible: si el contenido no cabe, se desplaza (carrusel) */
.mpw-viewport {
	flex: 1 1 auto;
	min-width: 0;
	overflow-x: auto;
	overflow-y: hidden;
	scrollbar-width: none;
	-ms-overflow-style: none;
	-webkit-overflow-scrolling: touch;
	scroll-behavior: smooth;
}

.mpw-viewport::-webkit-scrollbar {
	display: none;
}

/* Una sola línea; si sobra espacio se centra, si no, desborda y se desplaza */
.mpw-nav__list {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: center;
	gap: 0.25rem;
	width: max-content;
	min-width: 100%;
	margin: 0;
	padding: 0.25rem 0 0.25rem 0.75rem; /* margen pequeño a la izquierda, ninguno a la derecha */
	list-style: none;
}

.mpw-nav__item {
	flex: 0 0 auto;
	margin: 0;
}

.mpw-nav__link {
	display: inline-flex;
	align-items: center;
	padding: 0.75rem 1rem;
	border-bottom: 2px solid transparent;
	color: inherit;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
}

.mpw-nav__link:hover,
.mpw-nav__link:focus-visible {
	background: var(--mpw-hover);
	color: var(--mpw-text);
}

.mpw-nav__link.is-active {
	border-bottom-color: var(--mpw-accent);
	font-weight: 700;
}

/* Separador entre público y marcas */
.mpw-nav__sep {
	flex: 0 0 auto;
	width: 1px;
	height: 1.4em;
	margin: 0 0.5rem;
	background: var(--mpw-border);
}

@media (max-width: 782px) {
	.mpw-nav__link {
		padding: 0.7rem 0.75rem;
	}

	.mpw-nav__list {
		justify-content: flex-start;
	}

}

@media (prefers-reduced-motion: reduce) {
	.mpw-viewport {
		scroll-behavior: auto;
	}
}
