/**
 * Page catégorie : bandeau, tiroir et filtres.
 *
 * Organisation reprise de sweatsapparel.com, couleurs de la charte
 * Lustre Tendance : encre #141414, terracotta #9e2d02, rosé #c98a6e, fond #f7eeeb.
 */

/* Bandeau
   ------------------------------------------------------------------ */

.shoptimizer-category-banner.lt-catbanner {
	background-color: #f7eeeb;
	padding: 34px 0 26px;
}

.lt-catbanner__top,
.lt-catbanner__intro {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 24px;
	justify-content: space-between;
}

.lt-catbanner__top {
	align-items: center;
	margin-bottom: 10px;
}

.lt-catbanner__top h1 {
	color: #141414;
	font-size: clamp(28px, 3.2vw, 42px);
	letter-spacing: -0.5px;
	line-height: 1.1;
	margin: 0;
}

.lt-catbanner__intro {
	align-items: flex-end;
}

.lt-catbanner .taxonomy-description {
	color: #3a3a3a;
	flex: 1 1 520px;
	font-size: 15px;
	line-height: 1.6;
	max-width: 980px;
	min-width: 0;
}

.lt-catbanner .taxonomy-description p {
	margin: 0 0 8px;
}

.lt-catbanner .taxonomy-description p:last-child {
	margin-bottom: 0;
}

.lt-catbanner__more {
	align-items: center;
	background: transparent;
	border: 0;
	border-bottom: 1px solid #141414;
	border-radius: 0;
	color: #141414;
	cursor: pointer;
	display: inline-flex;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	gap: 8px;
	margin-left: auto;
	padding: 0 0 4px;
	white-space: nowrap;
}

.lt-catbanner__more svg {
	transition: transform 0.25s ease;
}

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

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

.lt-catbanner__labels li {
	background: #fff;
	border-radius: 40px;
	color: #141414;
	font-size: 14px;
	margin: 0;
	padding: 8px 16px;
	white-space: nowrap;
}

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

.lt-subcats {
	margin-top: 18px;
	max-width: 100%;
}

.lt-subcats__list {
	display: flex;
	gap: 14px;
	list-style: none;
	margin: 0;
	max-width: 100%;
	overflow-x: auto;
	padding: 4px 2px 6px;
	scrollbar-width: none;
}

.lt-subcats__list::-webkit-scrollbar {
	display: none;
}

.lt-subcats__list li {
	flex: 0 0 auto;
	margin: 0;
}

.lt-subcats__link {
	align-items: center;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 0 0 1px rgba(30, 34, 31, 0.08), 0 2px 6px rgba(30, 34, 31, 0.06);
	color: #141414;
	display: flex;
	gap: 12px;
	padding: 5px 18px 5px 5px;
	text-decoration: none;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
	white-space: nowrap;
}

.lt-subcats__link:hover,
.lt-subcats__link:focus-visible {
	box-shadow: 0 0 0 1px rgba(30, 34, 31, 0.2), 0 4px 10px rgba(30, 34, 31, 0.1);
	transform: translateY(-1px);
}

.lt-subcats__media {
	background: #efe3dd;
	border-radius: 7px;
	display: block;
	flex: 0 0 44px;
	height: 44px;
	overflow: hidden;
	width: 44px;
}

.lt-subcats__media img {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.lt-subcats__label {
	font-size: 14px;
	font-weight: 700;
}

/* Tiroir « En savoir plus »
   ------------------------------------------------------------------ */

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

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

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

.lt-catinfo__panel {
	background: #fff;
	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%;
}

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

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

.lt-catinfo__head {
	align-items: center;
	background: #fff;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
	display: flex;
	justify-content: space-between;
	padding: 18px 22px;
	position: sticky;
	top: 0;
	z-index: 1;
}

.lt-catinfo__title {
	color: #141414;
	font-size: 18px;
	font-weight: 700;
	margin: 0;
}

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

.lt-catinfo__content {
	color: #3a3a3a;
	font-size: 15px;
	line-height: 1.65;
	padding: 22px 22px 48px;
}

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

.lt-catinfo__content h2,
.lt-catinfo__content h3 {
	color: #141414;
	font-size: 19px;
	margin: 26px 0 10px;
}

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

/* Filtres
   ------------------------------------------------------------------ */

.lt-filter__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.lt-filter__list li {
	margin: 0;
}

/* Couleur : une ligne par teinte, pastille + nom. */
.lt-filter__list--color {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.lt-filter__list--color .lt-filter__link {
	align-items: center;
	border-radius: 6px;
	color: #141414;
	display: flex;
	gap: 10px;
	padding: 6px 8px;
	text-decoration: none;
	transition: background-color 0.15s ease;
}

.lt-filter__list--color .lt-filter__link:hover,
.lt-filter__list--color .lt-filter__link:focus-visible {
	background: rgba(30, 34, 31, 0.05);
}

.lt-filter__list--color .lt-filter__link.is-active {
	background: rgba(30, 34, 31, 0.07);
	font-weight: 700;
}

.lt-filter__dot {
	background: var(--lt-dot, #e7e7ea);
	border-radius: 50%;
	box-shadow: inset 0 0 0 1px rgba(30, 34, 31, 0.18);
	display: block;
	flex: 0 0 20px;
	height: 20px;
	width: 20px;
}

.lt-filter__dot--none {
	background: linear-gradient(135deg, transparent 45%, rgba(30, 34, 31, 0.35) 45% 55%, transparent 55%), #f5f0ee;
}

.lt-filter__link.is-active .lt-filter__dot {
	box-shadow: inset 0 0 0 1px rgba(30, 34, 31, 0.18), 0 0 0 2px #fff, 0 0 0 4px #141414;
}

.lt-filter__name {
	font-size: 14px;
	line-height: 1.3;
}

/* Tailles et pointures : étiquettes, comme sur la fiche produit. */
.lt-filter__list--chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.lt-filter__list--chips .lt-filter__link {
	align-items: center;
	background: #fff;
	border: 1px solid rgba(30, 34, 31, 0.22);
	border-radius: 999px;
	color: #141414;
	display: inline-flex;
	justify-content: center;
	min-height: 36px;
	min-width: 44px;
	padding: 6px 12px;
	text-decoration: none;
	transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.lt-filter__list--chips .lt-filter__link:hover,
.lt-filter__list--chips .lt-filter__link:focus-visible {
	border-color: #141414;
}

.lt-filter__list--chips .lt-filter__link.is-active {
	background: #141414;
	border-color: #141414;
	color: #fff;
}

.lt-filter__list--chips .lt-filter__name {
	font-size: 13px;
}

.lt-filter__reset {
	color: #141414;
	display: inline-block;
	font-size: 13px;
	margin-top: 10px;
	text-decoration: underline;
}

/* Les filtres ne portent plus de href (adresse encodée, voir
   lustre_filter_encode()) : sans lui le curseur de lien disparaît. */
.lt-filter__link,
.lt-filter__reset {
	cursor: pointer;
	-webkit-user-select: none;
	user-select: none;
}

/* Pendant le rafraîchissement, la grille reste visible mais estompée :
   la masquer ferait sauter la page. */
.lt-filtering ul.products {
	opacity: 0.45;
	pointer-events: none;
	transition: opacity 0.15s ease;
}

@media (max-width: 767px) {
	.shoptimizer-category-banner.lt-catbanner {
		padding: 24px 0 20px;
	}

	.lt-catbanner .taxonomy-description {
		font-size: 14px;
	}

	.lt-catbanner__labels {
		gap: 8px;
	}

	.lt-catbanner__labels li {
		font-size: 13px;
		padding: 7px 13px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.lt-catinfo__backdrop,
	.lt-catinfo__panel,
	.lt-catbanner__more svg,
	.lt-subcats__link,
	.lt-filter__link,
	.lt-filtering ul.products {
		transition: none;
	}
}

/* Ajustements sur le thème
   ------------------------------------------------------------------ */

/* Le thème met le texte du bandeau en gras. */
.lt-catbanner .taxonomy-description,
.lt-catbanner .taxonomy-description p {
	font-weight: 400;
}

/* Puce ronde du widget WooCommerce : nos pastilles et étiquettes la
   remplacent. */
.lt-filter .lt-filter__list li::before {
	display: none !important;
}

/* Titres de la colonne de filtres : discrets, comme sur sweatsapparel. */
.tax-product_cat .widget-area .widget-title,
.post-type-archive-product .widget-area .widget-title,
.tax-product_tag .widget-area .widget-title {
	color: #141414;
	/* Le réglage de typographie du thème impose 24 px en !important. */
	font-size: 14px !important;
	font-weight: 700;
	letter-spacing: 1px;
	margin-bottom: 14px;
	text-transform: uppercase;
}

.lt-catbanner .taxonomy-description,
.lt-catbanner .taxonomy-description p {
	font-size: 15px;
	line-height: 1.6;
}

.lt-catinfo__sep {
	border: 0;
	border-top: 1px solid rgba(30, 34, 31, 0.12);
	margin: 22px 0;
}

/* Mobile : l'introduction tient en quatre lignes, la suite est dans le
   tiroir « En savoir plus ». Sans cela, 15 lignes de texte repoussaient
   les produits sous le deuxième écran. */
@media (max-width: 767px) {
	.lt-catbanner .taxonomy-description {
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 4;
		display: -webkit-box;
		overflow: hidden;
	}

	.lt-catbanner .taxonomy-description,
	.lt-catbanner .taxonomy-description p {
		font-size: 14px;
	}

	.lt-catbanner .taxonomy-description p {
		display: inline;
	}

	.lt-catbanner__more {
		margin-left: 0;
	}
}
