/* Pastilles de navigation entre catégories (module category-nav), sous l'intro. */

body.tax-product_cat #et-boc .et-l .chocorange-category-nav {
	margin: 0 0 40px;
}

body.tax-product_cat #et-boc .et-l .chocorange-category-nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

body.tax-product_cat #et-boc .et-l .chocorange-category-nav li {
	flex: none;
	margin: 0;
	padding: 0;
}

body.tax-product_cat #et-boc .et-l .chocorange-category-nav a {
	display: block;
	padding: 8px 18px;
	border: 1px solid #e2e2e2;
	border-radius: 999px;
	background: #fff;
	color: #4a3a30;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	white-space: nowrap;
	transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

body.tax-product_cat #et-boc .et-l .chocorange-category-nav a:hover,
body.tax-product_cat #et-boc .et-l .chocorange-category-nav a:focus-visible {
	border-color: #cda45e;
	color: #2b180e;
}

body.tax-product_cat #et-boc .et-l .chocorange-category-nav a.is-current {
	border-color: #2b180e;
	background: #2b180e;
	color: #fff;
}

/* Mobile : une seule ligne qui défile horizontalement, jusqu'aux bords de l'écran */
@media (max-width: 767px) {
	body.tax-product_cat #et-boc .et-l .chocorange-category-nav {
		margin: 0 -5.5% 28px; /* rangée à 90 % : on reprend la marge pour aller jusqu'au bord */
	}

	body.tax-product_cat #et-boc .et-l .chocorange-category-nav ul {
		flex-wrap: nowrap;
		gap: 8px;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x proximity;
		scrollbar-width: none;
		padding: 2px 5%; /* 2 px : la bordure ne touche pas le bord de la zone de défilement */
		scroll-padding: 0 5%;
		-webkit-overflow-scrolling: touch;
	}

	body.tax-product_cat #et-boc .et-l .chocorange-category-nav ul::-webkit-scrollbar {
		display: none;
	}

	body.tax-product_cat #et-boc .et-l .chocorange-category-nav li {
		scroll-snap-align: start;
	}

	body.tax-product_cat #et-boc .et-l .chocorange-category-nav a {
		padding: 7px 14px;
		font-size: 14px;
	}
}
