.product-navigation__container {
	z-index: 10;
}

.product-navigation__container--sidebar {
	@media screen and (min-width: 650px) {
		height: fit-content;
		position: sticky;
		top: 160px;
	}

	@media screen and (max-width: 1280px) {
		display: none;
	}
}

.product-navigation__container--header {
	@media screen and (min-width: 1281px) {
		display: none;
	}
}

.product-navigation__toolbar {
	display: none;

	@media screen and (max-width: 1280px) {
		display: flex;
		justify-content: flex-end;
		align-items: center;
		max-width: 1600px;
		margin: 0 auto;
		padding: var(--wp--preset--spacing--xs) 0;
	}
}

.product-navigation__container--header .product-navigation__wrapper:not(.is-mobile-menu-active) {
	@media screen and (max-width: 1280px) {
		height: 0;
		overflow: hidden;
	}
}

.product-navigation__container--header .product-navigation__wrapper {
	@media screen and (max-width: 1280px) {
		position: relative;
		z-index: 98;
	}
}
.product-navigation__wrapper.is-mobile-menu-active {
	@media screen and (max-width: 1280px) {
		position: fixed;
		top: 0;
		left: 0;
		height: 100dvh;
		width: 100vw;
		overflow: clip;
	}
}

.product-navigation {
	width: 100%;
	color: var(--wp--preset--color--bleu-fonce);
	font-family: var(--wp--preset--font-family--roboto);
	position: sticky;
	top: var(--wp--preset--spacing--3-xl);

	@media screen and (max-width: 1280px) {
		z-index: 99;
		background-color: white;
		position: absolute;
		top: 0;
		left: 0;
		max-width: 400px;
		width: 90vw;
		height: 100%;
		transform: translateX(-100%);
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transition:
			transform 0.3s ease,
			opacity 0.24s ease;
	}
}

.product-navigation__bg {
	@media screen and (max-width: 1280px) {
		background-color: color-mix(in srgb, var(--wp--preset--color--bleu-fonce) 50%, transparent);
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 98;
		opacity: 0;
		pointer-events: none;
		transition: opacity 0.3s ease-out;
		cursor: pointer;
	}
}

.product-navigation__wrapper.is-mobile-menu-active .product-navigation {
	@media screen and (max-width: 1280px) {
		transform: translateX(0);
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		z-index: 200;
	}
}

.product-navigation__wrapper.is-mobile-menu-active .product-navigation__bg {
	@media screen and (max-width: 1280px) {
		opacity: 1;
		pointer-events: auto;
	}
}

.product-navigation__mobile-toggle {
	/* display: none;
	align-items: center;
	column-gap: var(--wp--preset--spacing--2-xs);
	width: fit-content;
	padding: var(--wp--preset--spacing--2-xs) var(--wp--preset--spacing--xs);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--bleu-fonce) 24%, transparent);
	border-radius: var(--wp--preset--spacing--2-xs);
	background: #fff;
	color: var(--wp--preset--color--bleu-fonce);
	font-size: var(--wp--preset--font-size--0);
	font-weight: 600;
	line-height: 1; */
	cursor: pointer;

	@media screen and (max-width: 1280px) {
		display: inline-flex;
		position: relative;
		z-index: 100;
	}
}

.product-navigation__mobile-toggle--open {
	@media screen and (max-width: 1280px) {
		display: flex;
		align-items: center;
		column-gap: var(--wp--preset--spacing--2-xs);
	}
}

.product-navigation__mobile-toggle--close {
	color: var(--wp--preset--color--bleu-fonce);
	@media screen and (max-width: 1280px) {
		display: inline-flex;
		/* position: absolute; */
	}
}

.product-navigation__mobile-toggle--close .product-navigation__mobile-toggle-line:nth-child(1) {
	transform: translateY(5px) rotate(45deg);
}

.product-navigation__mobile-toggle--close .product-navigation__mobile-toggle-line:nth-child(2) {
	opacity: 0;
}

.product-navigation__mobile-toggle--close .product-navigation__mobile-toggle-line:nth-child(3) {
	transform: translateY(-5px) rotate(-45deg);
}

.product-navigation__mobile-toggle-icon {
	/* display: inline-flex;
	flex-direction: column;
	justify-content: center;
	gap: 3px;
	width: 16px;
	height: 14px; */
}

.product-navigation__mobile-toggle-line {
	display: block;
	width: 100%;
	height: 2px;
	background-color: currentColor;
	transform-origin: center;
	transition:
		transform 0.25s ease,
		opacity 0.2s ease;
}

.product-navigation__container.is-mobile-menu-active .product-navigation__mobile-toggle--open {
	@media screen and (max-width: 1280px) {
		visibility: hidden;
		opacity: 0;
		pointer-events: none;
	}
}

.is-product-navigation-locked {
	overflow: hidden;
}

.product-navigation__panel {
	width: 100%;
	display: flex;
	flex-direction: column;
	row-gap: var(--wp--preset--spacing--m);

	@media screen and (max-width: 1280px) {
		width: unset;
		height: 100%;
	}

	.mm-spn--parent {
		overflow-y: auto;
		scrollbar-width: thin;
		scrollbar-color: var(--wp--preset--color--bleu-fonce) #ffffff;
		height: -webkit-fill-available;
		width: 100%;

		&::-webkit-scrollbar {
			width: 8px;
			background: #ffffff;
		}

		&::-webkit-scrollbar-thumb {
			background: var(--wp--preset--color--bleu-fonce);
			border-radius: 4px;
		}

		&::-webkit-scrollbar-thumb:hover {
			background: #007199;
		}

		&::after {
			display: none;
		}
	}
}

.product-navigation__menu-shell {
	--mm-spn-item-height: 52px;
	--mm-spn-item-indent: var(--wp--preset--spacing--2-xs);
	--mm-spn-line-height: 24px;
	--mm-spn-panel-offset: 28%;
}

.product-navigation__cta-wrapper,
.product-navigation__mobile-toggle-wrapper,
.product-navigation__menu-shell {
	@media screen and (max-width: 1280px) {
		width: calc(100% - var(--wp--preset--spacing--m) * 2);
		margin-inline: auto;
	}
}

.product-navigation__mobile-toggle-wrapper {
	display: none;

	@media screen and (max-width: 1280px) {
		display: flex;
		justify-content: flex-end;
		align-items: center;
		margin-top: var(--wp--preset--spacing--s);
	}
}

.product-navigation__cta-wrapper {
	margin-bottom: var(--wp--preset--spacing--s);
}

.product-navigation .mm-spn {
	height: 45svh;
	color: var(--wp--preset--color--bleu-fonce);
	background: transparent;

	&:not(:has(+ .product-navigation__cta-wrapper)) {
		height: 80svh;
		padding-bottom: var(--wp--preset--spacing--s);

		@media screen and (max-height: 768px) {
			height: 65svh;
		}
	}

	@media screen and (max-width: 1280px) {
		height: 100%;
	}
}

.product-navigation .mm-spn ul {
	background: #fff;
	width: 100%;
	padding-right: 15px;

	&::after {
		display: none;
	}
}

.product-navigation .mm-spn li::after,
.product-navigation .mm-spn li::before {
	display: none;
}

.product-navigation .mm-spn:not(.mm-spn--navbar) ul,
.product-navigation .mm-spn.mm-spn--navbar ul {
	left: 100%;
	top: var(--mm-spn-item-height, 50px);
	transition:
		top 0.25s ease,
		left 0.3s ease 0s;
}

.product-navigation .mm-spn.mm-spn--navbar[data-mm-spn-title=""] ul {
	top: 0;
}

.product-navigation .mm-spn > ul,
.product-navigation .mm-spn ul.mm-spn--open {
	left: 0;
}

.product-navigation .menu-item.current-menu-item > a {
	color: var(--wp--preset--color--bleu-ciel);
}

.product-navigation .product-navigation__item.menu-item-has-children > .product-navigation__row::after {
	content: "";
	flex-shrink: 0;
	min-width: 11px;
	min-height: 17px;
	background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2711%27%20height%3D%2717%27%20viewBox%3D%270%200%2011%2017%27%20fill%3D%27none%27%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%3E%3Cpath%20d%3D%27M1.9304%2014.9154L8.54206%208.0252L1.4997%201.49995%27%20stroke%3D%27%230099CC%27%20stroke-width%3D%273%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-size: contain;
	opacity: 0.9;
}

.product-navigation .mm-spn a,
.product-navigation .mm-spn span {
	padding: var(--wp--preset--spacing--xs) 0 var(--wp--preset--spacing--xs) var(--wp--preset--spacing--2-xs);
	font-size: var(--wp--preset--font-size--0);
	font-weight: 600;
	line-height: 1.2;

	* {
		pointer-events: none;
	}
}

.product-navigation .mm-spn a {
	color: var(--wp--preset--color--bleu-fonce);
	text-decoration: none;
	width: -webkit-fill-available;
}

.product-navigation .mm-spn li.menu-item-has-children > span.product-navigation__row--link {
	color: var(--wp--preset--color--bleu-ciel);
	font-size: var(--wp--preset--font-size--2);
	font-weight: 900;
	line-height: 1;
	display: flex;
	justify-content: space-between;
	align-items: center;
	column-gap: var(--wp--preset--spacing--2-xs);
	width: 100%;
	cursor: pointer;
}

.product-navigation .mm-spn li.menu-item-has-children > span.product-navigation__row--link .product-navigation__subtitle {
	display: block;
	margin-top: 0.2rem;
	color: color-mix(in srgb, var(--wp--preset--color--bleu-fonce) 85%, #fff);
	font-size: var(--wp--preset--font-size--minus-1);
	font-weight: 400;
	line-height: 1.2;
}

.product-navigation .product-navigation__item {
	position: relative;
}

.product-navigation .sub-menu {
	z-index: 3;
}

.product-navigation li {
	border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--bleu-fonce) 20%, transparent);
}

.product-navigation li.menu-item:not(:has(ul)),
.product-navigation .product-navigation__content {
	display: flex;
	align-items: center;
	justify-content: space-between;
	column-gap: var(--wp--preset--spacing--2-xs);
	width: 100%;
}

.product-navigation .product-navigation__content:has(.product-navigation__subtitle) {
	flex-direction: column;
	align-items: flex-start;
}

.product-navigation .mm-spn.mm-spn--navbar::after {
	/* padding: 0 calc(var(--wp--preset--spacing--2-xs)); */
	height: var(--mm-spn-item-height, 50px);
	min-height: var(--mm-spn-item-height, 50px);
	overflow: hidden;
	font-size: var(--wp--preset--font-size--0);
	font-weight: 600;
	text-align: left;
	opacity: 1;
	transition:
		height 0.25s ease,
		min-height 0.25s ease,
		opacity 0.2s ease;
}

.product-navigation .mm-spn.mm-spn--navbar[data-mm-spn-title=""]::after {
	height: 0;
	min-height: 0;
	opacity: 0;
}

.product-navigation .mm-spn.mm-spn--navbar::before {
	opacity: 0.8;
	width: 7px;
	height: 7px;
}

.product-navigation .mm-spn.mm-spn--navbar ul::before {
	opacity: 0;
}

.product-navigation__cta {
	padding: var(--wp--preset--spacing--m) var(--wp--preset--spacing--s);
	background: var(--wp--preset--color--bleu-fonce);
}

.product-navigation__cta-title {
	margin: 0 0 var(--wp--preset--spacing--s);
	color: #fff;
	font-size: var(--wp--preset--font-size--3);
	font-weight: 700;
	line-height: 1.1;
}

.product-archive-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--m);
	margin-bottom: var(--wp--preset--spacing--l);

	@media screen and (max-width: 900px) {
		flex-direction: column;
		align-items: stretch;
	}
}

.product-archive-toolbar__breadcrumb {
	min-width: 0;
}

.product-archive-toolbar__breadcrumb-list {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--2-xs);
	list-style: none;
	margin: 0;
	padding: 0;
}

.product-archive-toolbar__breadcrumb-item {
	display: inline-flex;
	align-items: center;
	column-gap: var(--wp--preset--spacing--2-xs);
	font-size: var(--wp--preset--font-size--0);
	font-weight: 600;
	line-height: 1.3;
	color: var(--wp--preset--color--bleu-fonce);
	padding: 0;

	a,
	span {
		color: inherit;
		text-decoration: none;
	}

	&.is-current:last-child span {
		color: var(--wp--preset--color--bleu-ciel);
	}
}

.product-archive-toolbar__breadcrumb-separator {
	color: color-mix(in srgb, var(--wp--preset--color--bleu-fonce) 70%, #fff);
	font-size: var(--wp--preset--font-size--0);
	line-height: 1;
}

.product-archive-toolbar__search {
	display: flex;
	align-items: center;
	width: 100%;
	max-width: 360px;
	border: 1px solid black;
	border-radius: 999px;
	overflow: hidden;
	background-color: #fff;

	@media screen and (max-width: 900px) {
		max-width: 100%;
	}

	input[type="search"] {
		flex: 1 1 auto;
		border: 0 !important;
		background: transparent;
		padding: var(--wp--preset--spacing--2-xs) var(--wp--preset--spacing--s);
		color: var(--wp--preset--color--bleu-fonce);
		font-size: var(--wp--preset--font-size--0);
		line-height: 1.2;
		min-height: 44px;

		&::-webkit-search-cancel-button {
			-webkit-appearance: none;
			display: none;
		}

		&:focus {
			outline: 0;
		}
	}

	button {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 55px;
		min-height: 44px;
		border: 0;
		background: transparent;
		color: var(--wp--preset--color--bleu-fonce);
		cursor: pointer;
		font-size: 20px;
		line-height: 1;
	}
}

.mm-spn a:not(:last-child) {
	width: unset;
	&::after {
		content: unset;
	}
}
