.mlc-catbanner h1 {
	margin-bottom: 10px;
}

.mlc-catbanner__intro {
	align-items: flex-end;
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	justify-content: space-between;
}

.mlc-catbanner .taxonomy-description {
	flex: 1 1 420px;
	min-width: 0;
}

.mlc-catbanner .taxonomy-description p {
	margin-bottom: 4px;
}

.mlc-catbanner__more {
	align-items: center;
	background: transparent;
	border: 0;
	border-bottom: 1px solid #231f1d;
	border-radius: 0;
	color: #231f1d;
	cursor: pointer;
	display: inline-flex;
	font-family: inherit;
	font-size: 15px;
	font-weight: 500;
	gap: 8px;
	margin-left: auto;
	padding: 0 0 4px;
}

.mlc-catbanner__more:hover,
.mlc-catbanner__more:focus-visible {
	background: transparent;
	border-color: #824716;
	color: #824716;
}

.mlc-catbanner__chevron {
	transition: transform 0.25s ease;
}

.mlc-catbanner__more[aria-expanded="true"] .mlc-catbanner__chevron {
	transform: rotate(180deg);
}

.mlc-catbanner__labels {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	list-style: none;
	margin: 14px 0 0;
	padding: 0;
}

.mlc-catbanner__labels li {
	background-color: #fff;
	border: 1px solid #d9c9af;
	border-radius: 40px;
	color: #231f1d;
	font-size: 13px;
	margin: 0;
	padding: 6px 14px;
	white-space: nowrap;
}

/* Sur mobile, l'intro et la réassurance ne doivent pas repousser les produits :
   le texte complet reste dans la page, coupé à l'affichage. */
@media (max-width: 992px) {

	.mlc-catbanner .col-full {
		padding-bottom: 4px;
	}

	.mlc-catbanner h1 {
		margin-bottom: 6px;
	}

	.mlc-catbanner__intro {
		gap: 6px;
	}

	.mlc-catbanner .taxonomy-description {
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 3;
		display: -webkit-box;
		flex-basis: 100%;
		overflow: hidden;
	}

	.mlc-catbanner .taxonomy-description p {
		display: inline;
		margin: 0;
	}

	.mlc-catbanner__more {
		font-size: 14px;
		padding-bottom: 2px;
	}

	.mlc-catbanner__labels {
		flex-wrap: nowrap;
		gap: 8px;
		margin-top: 8px;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.mlc-catbanner__labels li {
		flex: 0 0 auto;
		font-size: 12px;
		padding: 4px 10px;
	}

	.mlc-subcats {
		margin-top: 8px;
	}

	.mlc-subcats__list {
		gap: 8px;
		scrollbar-width: none;
	}
}

/* Sous-catégories
   ------------------------------------------------------------------ */

/* Sans ces bornes, la rangée déborde au lieu de défiler sur mobile. */
.mlc-subcats {
	margin-top: 16px;
	max-width: 100%;
	width: 100%;
}

.mlc-subcats__list {
	display: flex;
	gap: 12px;
	list-style: none;
	margin: 0;
	max-width: 100%;
	overflow-x: auto;
	padding: 4px 0;
	scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
	scrollbar-width: thin;
}

.mlc-subcats__item {
	flex: 0 0 auto;
	margin: 0;
}

.mlc-subcats__link {
	align-items: center;
	background-color: #fff;
	border: 1px solid #ebded1;
	border-radius: 8px;
	display: flex;
	gap: 10px;
	padding: 4px 16px 4px 4px;
	text-decoration: none;
	transition: border-color 0.18s ease;
	white-space: nowrap;
}

.mlc-subcats__link:hover,
.mlc-subcats__link:focus-visible {
	border-color: #824716;
}

.mlc-subcats__media {
	background-color: #f1e8de;
	border-radius: 6px;
	display: block;
	flex: 0 0 40px;
	height: 40px;
	overflow: hidden;
	width: 40px;
}

.mlc-subcats__image {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.mlc-subcats__label {
	color: #231f1d;
	font-size: 14px;
	font-weight: 600;
}

/* Tiroir du texte long
   ------------------------------------------------------------------ */

.mlc-catinfo {
	inset: 0;
	position: fixed;
	z-index: 100000;
}

.mlc-catinfo[hidden] {
	display: none;
}

.mlc-catinfo__backdrop {
	background-color: rgba(0, 0, 0, 0.6);
	inset: 0;
	opacity: 0;
	position: absolute;
	transition: opacity 0.3s ease;
}

.mlc-catinfo__panel {
	background-color: #fff;
	color: #231f1d;
	display: flex;
	flex-direction: column;
	height: 100%;
	margin-left: auto;
	max-width: 560px;
	overflow-y: auto;
	overscroll-behavior: contain;
	position: relative;
	transform: translateX(100%);
	transition: transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
	width: 100%;
}

.mlc-catinfo.is-open .mlc-catinfo__backdrop {
	opacity: 1;
}

.mlc-catinfo.is-open .mlc-catinfo__panel {
	transform: translateX(0);
}

.mlc-catinfo__head {
	align-items: center;
	background-color: #fff;
	border-bottom: 1px solid #ebded1;
	display: flex;
	gap: 16px;
	justify-content: space-between;
	padding: 16px 20px;
	position: sticky;
	top: 0;
	z-index: 1;
}

.mlc-catinfo__title {
	color: #231f1d;
	font-size: 20px;
	font-weight: 600;
	margin: 0;
}

.mlc-catinfo__close {
	background: transparent;
	border: 0;
	color: #231f1d;
	cursor: pointer;
	display: flex;
	padding: 8px;
}

.mlc-catinfo__close:hover,
.mlc-catinfo__close:focus-visible {
	background: transparent;
	color: #824716;
}

.mlc-catinfo__content {
	font-size: 15px;
	line-height: 1.7;
	padding: 20px 20px 40px;
}

.mlc-catinfo__content h2,
.mlc-catinfo__content h3 {
	color: #231f1d;
	font-size: 22px;
	line-height: 1.3;
	margin: 24px 0 10px;
}

.mlc-catinfo__content h3 {
	font-size: 18px;
}

.mlc-catinfo__content > *:first-child {
	margin-top: 0;
}

.mlc-catinfo__content a {
	color: #824716;
	text-decoration: underline;
}

body.mlc-catinfo-open {
	overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {

	.mlc-catinfo__backdrop,
	.mlc-catinfo__panel,
	.mlc-catbanner__chevron {
		transition: none;
	}
}


.shoptimizer-category-banner.mlc-catbanner { background-color:#fffaf4; padding:22px 0 18px; color:#231f1d }
.shoptimizer-category-banner.mlc-catbanner h1 { font:400 clamp(30px,2.5vw,38px)/1.14 "Playfair Display",Georgia,serif; text-align:left; margin:0 0 10px }
.shoptimizer-category-banner.mlc-catbanner .taxonomy-description { max-width:960px; margin:0; text-align:left; line-height:1.55 }
.mlc-catbanner__labels a { color:inherit;text-decoration:none }
.mlc-catbanner__labels a:hover { text-decoration:underline }
.mlc-subcats__media img { object-fit:cover; width:100%; height:100% }
@media(max-width:992px){body.tax-product_cat .mlc-catbanner .taxonomy-description,body.woocommerce .shoptimizer-category-banner.mlc-catbanner .taxonomy-description{display:-webkit-box!important}}

.mlc-catbanner__top { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px 20px; margin-bottom:10px }
.shoptimizer-category-banner.mlc-catbanner .mlc-catbanner__top h1 { margin:0; min-width:0 }
.mlc-catbanner__score { flex:none }
.mlc-catbanner__score .gr-badge { margin:0 }
@media (max-width:600px) {
	.mlc-catbanner__top { flex-direction:column; align-items:flex-start }
}
body.woocommerce .shoptimizer-category-banner.mlc-catbanner .mlc-catbanner__top h1 {font-family:'Playfair Display',Georgia,serif!important;font-size:clamp(30px,3.5vw,48px)!important;font-weight:400;line-height:1.12;text-transform:none;}
body.woocommerce .shoptimizer-category-banner.mlc-catbanner .col-full {box-sizing:border-box;}
body.woocommerce .shoptimizer-category-banner.mlc-catbanner .taxonomy-description { font-family:'helvetica-neue',Arial,sans-serif;font-size:17px; }
body.woocommerce .shoptimizer-category-banner.mlc-catbanner .mlc-subcats__list {margin:0;padding:4px 0;list-style:none;scrollbar-color:#e5994e #f4eee5;}
.mlc-subcats__label,.mlc-catbanner__more,.mlc-catbanner__labels { font-family:'helvetica-neue',Arial,sans-serif; }
.mlc-catbanner__labels a:focus-visible,.mlc-subcats__link:focus-visible,.mlc-catbanner__more:focus-visible,.mlc-catinfo__close:focus-visible {outline:2px solid #824716;outline-offset:3px;}
@media(max-width:600px){.mlc-catbanner__labels{flex-wrap:wrap;gap:5px}.mlc-catbanner__labels li{white-space:normal;max-width:100%}.mlc-catbanner__top{gap:5px}}

.mlc-subcats__media picture { display: block; width: 100%; height: 100%; }

.mlc-subcats--scrollable {
	display: grid;
	grid-template-columns: auto minmax(0,1fr) auto;
	align-items: center;
	gap: 8px;
}
.mlc-subcats .mlc-subcats__arrow {
	display: none;
	width: 34px;
	height: 34px;
	padding: 0;
	margin: 0;
	border: 1px solid #d7c8b8;
	border-radius: 50%;
	background: #fff;
	color: #423428;
	cursor: pointer;
}
.mlc-subcats--scrollable .mlc-subcats__arrow {
	display: grid;
	place-items: center;
}
.mlc-subcats__arrow::before {
	content: '';
	display: block;
	width: 8px;
	height: 8px;
	border: solid currentColor;
	border-width: 0 2px 2px 0;
	transform: translateX(-1px) rotate(-45deg);
}
.mlc-subcats__arrow--prev::before { transform: translateX(1px) rotate(135deg); }
.mlc-subcats .mlc-subcats__arrow:disabled { opacity: .35; cursor: default; }
.mlc-subcats .mlc-subcats__arrow:enabled:hover { border-color: #824716; color: #824716; }
.mlc-subcats .mlc-subcats__arrow:focus-visible { outline: 2px solid #824716; outline-offset: 2px; }
@media (pointer: coarse), (max-width: 600px) {
	.mlc-subcats .mlc-subcats__arrow { width: 44px; height: 44px; }
	.mlc-subcats--scrollable { gap: 4px; }
}
