﻿/**
 * BienHabillé — ensemble Builder mobile-first.
 *
 * Matche la maquette : galerie en haut avec actions flottantes, tabs des
 * pièces, 1 panel visible à la fois, CTA sticky en bas, lightbox modal.
 */

/* === VARIABLES (réutilisées des conventions thème) === */
.bh-ensemble-builder {
	--bh-ensemble-accent: #c8a97e;
	--bh-ensemble-text: #111;
	--bh-ensemble-muted: #888;
	--bh-ensemble-border: #e8e8e8;
	--bh-ensemble-bg: #ffffff;
	--bh-ensemble-bg-alt: var(--bh-bg-section);
	--bh-ensemble-radius: 12px;
	--bh-ensemble-radius-sm: 8px;
	--bh-ensemble-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
	--bh-ensemble-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* === RESET LAYOUT WRAPPER === */
.bh-ensemble-builder {
	max-width: 100%;
	margin: 0 auto;
	padding: 0 0 110px 0;
	font-family: inherit;
	color: var(--bh-ensemble-text);
}

.bh-ensemble-builder__header,
.bh-ensemble-builder__panels {
	padding-left: 16px;
	padding-right: 16px;
}

.bh-ensemble-builder__tabs {
	padding-left: 0;
	padding-right: 0;
	margin-left: 16px;
	margin-right: 16px;
}

.bh-ensemble-builder__thumbs-bar {
	padding-left: 16px;
	padding-right: 16px;
}


.bh-ensemble-pdp .bh-gallery__dots {
	padding-left: 16px;
	padding-right: 16px;
	box-sizing: border-box;
}

/* === HEADER (titre + reset) === */
.bh-ensemble-builder__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 16px;
}

.bh-ensemble-builder__title-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	flex: 1 1 100%;
	min-width: 0;
}

.bh-ensemble-builder__title-row .bh-ensemble-builder__title {
	flex: 1;
	min-width: 0;
}

.bh-ensemble-builder__title {
	font-size: 18px;
	font-weight: 700;
	font-style: italic;
	margin: 0;
	flex: 1;
	letter-spacing: 0.005em;
}

.bh-ensemble-builder__reset {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: transparent;
	border: 1px solid var(--bh-ensemble-border);
	border-radius: 999px;
	padding: 6px 12px;
	font-size: 12px;
	cursor: pointer;
	color: var(--bh-ensemble-text);
	transition: background 0.15s, border-color 0.15s;
}

.bh-ensemble-builder__reset:hover {
	background: var(--bh-ensemble-bg-alt);
	border-color: var(--bh-ensemble-accent);
}

.bh-ensemble-builder__reset-icon {
	font-size: 16px;
	font-weight: 700;
}

/* === WRAP GALERIE : colonne mobile, rangée desktop === */
.bh-ensemble-builder__gallery-wrap {
	display: flex;
	flex-direction: column;
	min-width: 0;
	gap: 0;
}

/* === GALERIE PRINCIPALE === */
.bh-ensemble-builder__media {
	position: relative;
	background: #ffffff;
	border-radius: 0;
	overflow: hidden;
	margin-bottom: 8px;
	aspect-ratio: 3 / 4;
}

/*
s * Pattern aligné sur product-page.css : mobile/tablette = pile verticale + scroll page,
 * desktop (≥1024) = vignettes + pile verticale scroll-y dans #bh-viewport.
 */
.bh-ensemble-builder #bh-viewport::-webkit-scrollbar,
.bh-ensemble-builder .bh-ensemble-builder__viewport.bh-gallery__viewport::-webkit-scrollbar {
	display: none;
}

@media (max-width: 1023px) {

	/* Évite le léger scroll horizontal classique avec width:100vw sur certains navigateurs */
	main.bh-ensemble-single,
	main.bh-ensemble-pdp,
	.bh-ensemble-single,
	.bh-ensemble-pdp {
		overflow-x: hidden;
	}

	/*
	 * Galerie pleine largeur écran : sortir du padding du single (.bh-ensemble-single)
	 * et supprimer le padding latéral des vignettes.
	 */
	.bh-ensemble-pdp .bh-product__col-gallery .bh-ensemble-builder__gallery-wrap {
		flex-direction: column;
		width: 100vw;
		max-width: 100vw;
		margin-left: calc(50% - 50vw);
		margin-right: calc(50% - 50vw);
		box-sizing: border-box;
	}

	.bh-ensemble-pdp .bh-gallery__dots {
		width: 100vw;
		max-width: 100vw;
		margin-left: calc(50% - 50vw);
		margin-right: calc(50% - 50vw);
		padding-left: 0;
		padding-right: 0;
		box-sizing: border-box;
	}

	/* Onglets + carte swatches : même débordement pleine largeur que la galerie */
	.bh-ensemble-builder #bh-ensemble-tabs,
	.bh-ensemble-pdp .bh-product__col-summary .bh-ensemble-builder__panels {
		width: 100vw;
		max-width: 100vw;
		margin-left: calc(50% - 50vw);
		margin-right: calc(50% - 50vw);
		padding-left: 0;
		padding-right: 0;
		box-sizing: border-box;
	}

	.bh-ensemble-pdp .bh-product__col-summary .bh-ensemble-builder__panels {
		border-radius: 0;
		border-left: none;
		border-right: none;
	}

	/* Au-dessus de la galerie (100vw) pour les taps ; marge basse pour le CTA fixe. */
	.bh-ensemble-builder #bh-ensemble-tabs,
	.bh-ensemble-builder #bh-ensemble-sheet {
		position: relative;
		z-index: 2;
	}

	/*
	 * Ne pas mettre de padding-bottom ici : le CTA est en position fixed, ce padding
	 * créait un grand vide entre le builder et la description (hors du flux du CTA).
	 * L’espace pour défiler au-dessus du CTA est sur main.bh-ensemble-single (ensemble-base).
	 */

	.bh-ensemble-builder__thumbs-bar {
		padding-left: 0;
		padding-right: 0;
	}

	/* Vignettes horizontales AU-DESSUS du grand visuel */
	.bh-ensemble-builder__gallery-wrap > .bh-ensemble-builder__thumbs-bar {
		order: -1;
		margin-bottom: 12px;
	}

	.bh-ensemble-builder__gallery-wrap > .bh-ensemble-builder__media {
		order: 0;
	}

	.bh-ensemble-builder__media {
		border-radius: 0;
		width: 100%;
	}

	.bh-ensemble-ghost-landing {
		padding: 8px 12px 10px;
	}

	.bh-ensemble-ghost-board {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		padding-bottom: 4px;
	}

	.bh-ensemble-ghost-board::-webkit-scrollbar {
		display: none;
	}

	.bh-ensemble-builder__gallery-scroll {
		overflow: visible;
	}

	.bh-ensemble-builder__thumbs-bar {
		display: none;
	}

	.bh-ensemble-builder__media {
		aspect-ratio: auto;
		height: auto;
		overflow: visible;
	}

	.bh-ensemble-builder #bh-viewport.bh-pdp-stack,
	.bh-ensemble-builder #bh-viewport.bh-gallery__viewport,
	.bh-ensemble-builder #bh-viewport.bh-ensemble-builder__viewport {
		display: flex;
		flex-direction: column;
		width: 100%;
		height: auto;
		min-height: 0;
		overflow: visible;
		overflow-x: hidden;
		scroll-snap-type: y proximity;
		touch-action: pan-y;
	}

	.bh-ensemble-builder #bh-viewport .bh-pdp-image,
	.bh-ensemble-builder #bh-viewport .bh-gallery__slide {
		display: block;
		flex: 0 0 auto;
		width: 100%;
		min-width: 0;
		height: auto;
		min-height: 0;
		margin: 0;
		overflow: hidden;
	}

	.bh-ensemble-builder #bh-viewport .bh-pdp-image img,
	.bh-ensemble-builder #bh-viewport .bh-gallery__slide img {
		width: 100%;
		height: auto;
		max-height: none;
		object-fit: cover;
		object-position: center top;
	}
}

/* Desktop viewport + slides empilées : bloc unique dans @media (min-width: 1024px) tout en bas */

/* Shell zoom — garde overflow scroll sur le viewport en mode agrandi */

.bh-ensemble-builder #bh-ensemble-viewport-shell.bh-ensemble-builder__viewport-shell--zoom #bh-viewport {
	overflow: auto !important;
}

.bh-ensemble-builder__viewport-shell--zoom .bh-gallery__viewport .bh-gallery__slide img,
.bh-ensemble-builder__viewport-shell--zoom .bh-ensemble-builder__viewport .bh-gallery__slide img {
	transform: scale(1.12);
	transform-origin: center center;
	transition: transform 0.25s ease;
}

/* === ACTIONS FLOTTANTES (zoom, fullscreen) === */
.bh-ensemble-builder__media-actions {
	position: absolute;
	top: 12px;
	right: 12px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	z-index: 5;
}

.bh-ensemble-action-btn {
	width: 40px;
	height: 40px;
	background: rgba(255, 255, 255, 0.95);
	border: none;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: var(--bh-ensemble-shadow);
	color: var(--bh-ensemble-text);
	transition: background 0.15s, transform 0.15s;
}

.bh-ensemble-action-btn:hover {
	background: #fff;
	transform: scale(1.05);
}

.bh-ensemble-action-btn svg {
	display: block;
}

/* === FLOATING BAR : CARD PRIX + APERÇU === */
.bh-ensemble-builder__floating-bar {
	position: absolute;
	bottom: 12px;
	left: 12px;
	right: 12px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	pointer-events: none; /* on réactive sur les enfants */
	z-index: 5;
	flex-wrap: nowrap;
}

.bh-ensemble-builder__price-card {
	background: rgba(255, 255, 255, 0.96);
	border-radius: var(--bh-ensemble-radius-sm);
	padding: 10px 14px;
	box-shadow: var(--bh-ensemble-shadow);
	pointer-events: auto;
	flex-shrink: 1;
	min-width: 0;
	max-width: 50%;
}

.bh-ensemble-builder__price-label {
	display: block;
	font-size: 11px;
	color: var(--bh-ensemble-muted);
	letter-spacing: 0.05em;
	margin-bottom: 2px;
}

.bh-ensemble-builder__price-value {
	display: block;
	font-size: 17px;
	font-weight: 700;
	color: var(--bh-ensemble-text);
}

.bh-ensemble-builder__price-value .woocommerce-amount,
.bh-ensemble-builder__price-value .woocommerce-Price-amount {
	font: inherit;
	color: inherit;
}

.bh-ensemble-builder__preview-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--bh-ensemble-text);
	color: #fff;
	border: none;
	border-radius: var(--bh-ensemble-radius-sm);
	padding: 10px 14px;
	font-size: 12px;
	font-weight: 500;
	cursor: pointer;
	box-shadow: var(--bh-ensemble-shadow);
	pointer-events: auto;
	white-space: nowrap;
	transition: background 0.15s;
	flex-shrink: 0;
	max-width: 50%;
}

.bh-ensemble-builder__preview-btn:hover {
	background: var(--bh-ensemble-accent);
}

.bh-ensemble-builder__preview-btn svg {
	flex-shrink: 0;
	width: 16px;
	height: 16px;
}

/* === THUMBS HORIZONTAUX === */
.bh-ensemble-builder .bh-gallery__dots[hidden],
.bh-ensemble-builder__thumbs-bar + .bh-gallery__dots[hidden] {
	display: none !important;
}

.bh-ensemble-builder__thumbs-bar {
	margin-bottom: 16px;
	overflow: hidden;
}

.bh-ensemble-builder__thumbs {
	display: flex !important;
	flex-direction: row !important;
	gap: 8px;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	padding-bottom: 4px;
	width: 100%;
}

.bh-ensemble-builder__thumbs::-webkit-scrollbar {
	height: 4px;
}

.bh-ensemble-builder__thumbs::-webkit-scrollbar-thumb {
	background: var(--bh-ensemble-border);
	border-radius: 2px;
}

.bh-ensemble-builder__thumbs .bh-gallery__thumb {
	flex: 0 0 88px;
	flex-shrink: 0;
	width: 88px;
	height: 88px;
	background: var(--bh-ensemble-bg-alt);
	border: 2px solid transparent;
	border-radius: var(--bh-ensemble-radius-sm);
	overflow: hidden;
	cursor: pointer;
	padding: 0;
	scroll-snap-align: start;
	transition: border-color 0.15s;
}

.bh-ensemble-builder__thumbs .bh-gallery__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.bh-ensemble-builder__thumbs .bh-gallery__thumb.is-active {
	border-color: var(--bh-ensemble-text);
}

/* === TABS DES PIÈCES === */
.bh-ensemble-builder__tabs {
	display: flex;
	border-bottom: 1px solid var(--bh-ensemble-border);
	margin-bottom: 16px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	gap: 0;
}

.bh-ensemble-builder__tabs::-webkit-scrollbar {
	display: none;
}

.bh-ensemble-tab {
	flex: 1 1 auto;
	min-width: 82px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 6px;
	background: transparent;
	border: none;
	padding: 8px 8px 10px;
	cursor: pointer;
	color: var(--bh-ensemble-muted);
	font-size: 13px;
	font-weight: 500;
	border-bottom: 2px solid transparent;
	transition: color 0.15s, border-color 0.15s;
}

.bh-ensemble-tab:hover {
	color: var(--bh-ensemble-text);
}

.bh-ensemble-tab.is-active {
	color: var(--bh-ensemble-text);
	border-bottom-color: var(--bh-ensemble-text);
}

.bh-ensemble-tab__thumb {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border: 1px solid transparent;
	border-radius: 12px;
	background: var(--bh-bg-section);
	overflow: hidden;
	transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.bh-ensemble-tab__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 5px;
	box-sizing: border-box;
}

.bh-ensemble-tab.is-active .bh-ensemble-tab__thumb {
	border-color: #71c9d8;
	background: #eefbff;
	box-shadow: inset 0 0 0 1px rgba(113, 201, 216, 0.4);
}

.bh-ensemble-tab__icon,
.bh-ensemble-tab__ic {
	display: flex;
}

.bh-ensemble-tab__icon svg,
.bh-ensemble-tab__ic svg {
	display: block;
}

.bh-ensemble-tab__label,
.bh-ensemble-tab__text {
	font-size: 13px;
}

/* === PANELS DES PIÈCES === */
#bh-ensemble-sheet {
	min-width: 0;
}

.bh-ensemble-builder__panels {
	background: var(--bh-ensemble-bg);
	border: 1px solid var(--bh-ensemble-border);
	border-radius: var(--bh-ensemble-radius-sm);
	padding: 14px;
}

.bh-ensemble-pane {
	display: none;
}

.bh-ensemble-pane.is-active {
	display: block;
}

/* Un groupe slot visible à la fois (mobile ; desktop : tous ouverts ci-dessous) */
.bh-ensemble-builder__panels .bh-ensemble-slot-panel:not(.is-active) {
	display: none;
	pointer-events: none;
}

.bh-ensemble-builder__panels .bh-ensemble-slot-panel.is-active {
	display: block;
	pointer-events: auto;
}

.bh-ensemble-slot-panel .bh-ensemble-piece + .bh-ensemble-piece {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid var(--bh-ensemble-border);
}

/* === PIÈCE (header thumb + nom + prix) === */
.bh-ensemble-piece {
	background: transparent;
	border: none;
	border-radius: 0;
	box-shadow: none;
	padding: 0;
	transition: none;
}

.bh-ensemble-piece:hover {
	border-color: transparent;
}

.bh-ensemble-piece__head {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin-bottom: 16px;
}

.bh-ensemble-piece__thumb {
	flex: 0 0 64px;
	width: 64px;
	height: 64px;
	border-radius: var(--bh-ensemble-radius-sm);
	overflow: hidden;
	background: var(--bh-ensemble-bg-alt);
	display: block;
}

.bh-ensemble-piece__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.bh-ensemble-piece__info {
	flex: 1;
	min-width: 0;
}

.bh-ensemble-piece__slot {
	display: none; /* slot label déjà visible dans la tab */
}

.bh-ensemble-piece__title {
	display: block;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--bh-ensemble-text);
	text-decoration: none;
	margin-bottom: 4px;
}

.bh-ensemble-piece__price {
	font-size: 14px;
	color: var(--bh-ensemble-text);
	font-weight: 600;
	margin-top: 4px;
}

.bh-ensemble-piece__price .woocommerce-Price-amount {
	color: var(--bh-ensemble-text);
	font-weight: 600;
}

.bh-ensemble-piece__price del {
	color: var(--bh-ensemble-muted);
	font-weight: 400;
	margin-right: 6px;
}

.bh-ensemble-piece__price ins {
	background: transparent;
	text-decoration: none;
	font-weight: 700;
}

.bh-ensemble-piece__price--unavailable {
	font-style: italic;
	font-weight: 400;
	color: var(--bh-ensemble-muted);
	font-size: 13px;
}

.bh-ensemble-piece__title + .bh-ensemble-piece__default-note,
.bh-ensemble-piece__price + .bh-ensemble-piece__default-note,
.bh-ensemble-piece__info .bh-ensemble-piece__default-note {
	display: none;
}

/* === SWATCHES COULEUR === */
.bh-ensemble-piece__colors {
	margin-bottom: 18px;
	padding-top: 16px;
	border-top: 1px solid var(--bh-ensemble-border);
}

.bh-ensemble-piece__field-label {
	display: block;
	font-size: 11px;
	color: var(--bh-ensemble-muted);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin-bottom: 10px;
}

.bh-ensemble-piece__color-name {
	color: var(--bh-ensemble-text);
	text-transform: none;
	letter-spacing: normal;
	font-weight: 500;
	font-size: 13px;
	margin-left: 6px;
}

.bh-ensemble-piece__swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.bh-ensemble-swatch {
	width: 32px;
	height: 32px;
	padding: 3px;
	border: 2px solid transparent;
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
	transition: border-color 0.15s, transform 0.15s;
}

.bh-ensemble-swatch__dot {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	background: #eee;
	border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Couleurs (à étendre selon ta palette) */
.bh-ensemble-swatch[data-color-slug="blanc"] .bh-ensemble-swatch__dot { background: #ffffff; border-color: rgba(0, 0, 0, 0.15); }
.bh-ensemble-swatch[data-color-slug="noir"] .bh-ensemble-swatch__dot { background: #000000; }
.bh-ensemble-swatch[data-color-slug="vert"] .bh-ensemble-swatch__dot { background: #2d6a3e; }
.bh-ensemble-swatch[data-color-slug="rouge"] .bh-ensemble-swatch__dot { background: #c0392b; }
.bh-ensemble-swatch[data-color-slug="bleu"] .bh-ensemble-swatch__dot { background: #1f4e79; }
.bh-ensemble-swatch[data-color-slug="beige"] .bh-ensemble-swatch__dot { background: #d8c3a5; }
.bh-ensemble-swatch[data-color-slug="marron"] .bh-ensemble-swatch__dot,
.bh-ensemble-swatch[data-color-slug="brown"] .bh-ensemble-swatch__dot { background: #5d4037; }
.bh-ensemble-swatch[data-color-slug="gris"] .bh-ensemble-swatch__dot { background: #888888; }
.bh-ensemble-swatch[data-color-slug="rose"] .bh-ensemble-swatch__dot { background: #e8b4bc; }
.bh-ensemble-swatch[data-color-slug="kaki"] .bh-ensemble-swatch__dot { background: #6b7245; }
.bh-ensemble-swatch[data-color-slug="marine"] .bh-ensemble-swatch__dot { background: #001f3f; }

.bh-ensemble-swatch:hover:not(.is-disabled) {
	border-color: var(--bh-ensemble-accent);
}

.bh-ensemble-swatch.is-active {
	border-color: var(--bh-ensemble-text);
}

.bh-ensemble-swatch.is-disabled {
	opacity: 0.3;
	cursor: not-allowed;
	position: relative;
}

.bh-ensemble-swatch.is-disabled::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 6px;
	right: 6px;
	height: 1px;
	background: #999;
	transform: rotate(-45deg);
}

/* === SÉLECTEUR TAILLE === */
.bh-ensemble-piece__sizes {
	margin-bottom: 14px;
	padding-top: 16px;
	border-top: 1px solid var(--bh-ensemble-border);
}

.bh-ensemble-piece__size-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.bh-ensemble-size-btn {
	min-width: 56px;
	padding: 12px 14px;
	border: 1px solid var(--bh-ensemble-border);
	background: #fff;
	border-radius: var(--bh-ensemble-radius-sm);
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
	color: var(--bh-ensemble-text);
	transition: all 0.15s;
	position: relative;
	overflow: hidden;
}

.bh-ensemble-size-btn:hover:not(:disabled):not(.is-unavailable) {
	border-color: var(--bh-ensemble-text);
}

.bh-ensemble-size-btn.is-active {
	border-color: var(--bh-ensemble-text);
	background: var(--bh-ensemble-text);
	color: #fff;
}

.bh-ensemble-size-btn.is-unavailable {
	background: #fafafa;
	color: var(--bh-g3, #999);
	cursor: not-allowed;
	pointer-events: none;
	opacity: 1;
}

.bh-ensemble-size-btn.is-unavailable:hover {
	border-color: var(--bh-ensemble-border);
	background: #fafafa;
}

.bh-ensemble-size-btn .bh-ensemble-size-btn__cross,
.bh-ensemble-size-btn .bh-cross {
	display: none;
}

.bh-ensemble-size-btn.is-unavailable .bh-ensemble-size-btn__cross,
.bh-ensemble-size-btn.is-unavailable .bh-cross {
	display: block;
}

.bh-ensemble-size-btn:disabled {
	cursor: not-allowed;
}

.bh-ensemble-piece__notice {
	font-size: 13px;
	color: #b32d2e;
	margin-top: 10px;
}

/* === FOOTER PIÈCE (guide tailles + stock) === */
.bh-ensemble-piece__footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 14px;
	border-top: 1px solid var(--bh-ensemble-border);
	font-size: 13px;
	color: var(--bh-ensemble-muted);
}

.bh-ensemble-piece__size-guide {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--bh-ensemble-muted);
	text-decoration: none;
	transition: color 0.15s;
}

.bh-ensemble-piece__size-guide:hover {
	color: var(--bh-ensemble-text);
}

.bh-ensemble-piece__stock-status {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 500;
}

.bh-ensemble-piece__stock-status--limited {
	color: var(--bh-ensemble-accent);
}

.bh-ensemble-piece__stock-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
}

.bh-ensemble-piece__foot {
	display: none;
}

/* === STICKY CTA === */
.bh-ensemble-sticky-cta {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: #fff;
	padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
	box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
	z-index: 100;
}

.bh-ensemble-sticky-cta__label .bh-ensemble-sticky-cta__sep,
.bh-ensemble-sticky-cta__label .bh-ensemble-sticky-cta__price {
	font: inherit;
	color: inherit;
}

.bh-ensemble-sticky-cta__label .woocommerce-amount,
.bh-ensemble-sticky-cta__label .woocommerce-Price-amount {
	font: inherit;
	color: inherit;
}

.bh-ensemble-sticky-cta__btn {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: var(--bh-ensemble-text);
	color: #fff;
	border: none;
	border-radius: 999px;
	padding: 16px 24px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s, transform 0.15s;
	flex-wrap: wrap;
}

.bh-ensemble-sticky-cta__btn:hover:not(:disabled) {
	background: var(--bh-ensemble-accent);
}

.bh-ensemble-sticky-cta__btn:disabled {
	background: #444;
	cursor: not-allowed;
	opacity: 0.6;
}

.bh-ensemble-sticky-cta__btn svg {
	flex-shrink: 0;
}

.bh-ensemble-sticky-cta .bh-ensemble-cta__hint {
	text-align: center;
	font-size: 12px;
	color: var(--bh-ensemble-muted);
	margin: 8px 0 0;
}

/* === LIGHTBOX === */
.bh-ensemble-lightbox {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.92);
	z-index: 1000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.bh-ensemble-lightbox.is-open {
	display: flex;
}

.bh-ensemble-lightbox[hidden]:not(.is-open) {
	display: none !important;
}

.bh-ensemble-lightbox__close {
	position: absolute;
	top: 20px;
	right: 20px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.15);
	border: none;
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s;
	z-index: 2;
}

.bh-ensemble-lightbox__close:hover {
	background: rgba(255, 255, 255, 0.3);
}

.bh-ensemble-lightbox__content {
	max-width: 95vw;
	max-height: 90vh;
	overflow-y: auto;
	display: grid;
	gap: 12px;
}

.bh-ensemble-lightbox__item img {
	max-width: 100%;
	max-height: 90vh;
	object-fit: contain;
	display: block;
	margin: 0 auto;
	border-radius: var(--bh-ensemble-radius);
}

/* === Polish mobile catalogue : overrides (après règles base, ≤1023px uniquement) === */
@media (max-width: 1023px) {
	.bh-ensemble-builder__thumbs .bh-gallery__thumb {
		flex: 0 0 70px;
		flex-shrink: 0;
		width: 70px;
		height: 88px;
		background: #f5f5f5;
		border: 1px solid transparent;
		border-radius: 4px;
		overflow: hidden;
		cursor: pointer;
		padding: 0;
		scroll-snap-align: start;
		transition: border-color 0.15s;
	}

	.bh-ensemble-builder__thumbs .bh-gallery__thumb.is-active {
		border-color: var(--bh-ensemble-text);
		border-width: 2px;
	}

	.bh-ensemble-piece__size-buttons {
		display: grid;
		grid-template-columns: repeat(5, 1fr);
		gap: 6px;
	}

	.bh-ensemble-size-btn {
		min-width: 0;
		width: 100%;
		padding: 14px 8px;
		border: 1px solid var(--bh-ensemble-border);
		background: #fff;
		border-radius: 4px;
		cursor: pointer;
		font-size: 13px;
		font-weight: 500;
		color: var(--bh-ensemble-text);
		transition: all 0.15s;
		text-align: center;
		position: relative;
		overflow: hidden;
	}

	.bh-ensemble-piece__title {
		display: block;
		font-size: 15px;
		font-weight: 600;
		letter-spacing: 0.05em;
		text-transform: uppercase;
		color: var(--bh-ensemble-text);
		text-decoration: none;
		margin-bottom: 4px;
		line-height: 1.3;
	}

	.bh-ensemble-sticky-cta__btn {
		width: 100%;
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 10px;
		background: var(--bh-ensemble-text);
		color: #fff;
		border: none;
		border-radius: 4px;
		padding: 16px 24px;
		font-size: 14px;
		font-weight: 600;
		letter-spacing: 0.02em;
		cursor: pointer;
		transition: background 0.15s, transform 0.15s;
		flex-wrap: wrap;
	}
}

@media (max-width: 380px) {
	.bh-ensemble-piece__size-buttons {
		grid-template-columns: repeat(4, 1fr);
	}
}

/* === EMPTY STATE === */
.bh-ensemble-empty {
	text-align: center;
	padding: 60px 20px;
	color: var(--bh-ensemble-muted);
}

.bh-ensemble-empty--config {
	max-width: 640px;
	margin: 24px auto;
	padding: 32px 24px;
	border: 1px dashed var(--bh-ensemble-border, #e8e8e8);
	border-radius: var(--bh-ensemble-radius-sm, 8px);
	background: var(--bh-ensemble-bg-alt, var(--bh-bg-section));
}

.bh-ensemble-empty__hint,
.bh-ensemble-admin-debug {
	font-size: 14px;
	line-height: 1.5;
	margin: 10px 0 0;
	color: var(--bh-ensemble-muted, #667486);
}

.bh-ensemble-admin-debug a {
	color: var(--bh-ensemble-text, var(--bh-text-on-light));
	text-decoration: underline;
}

.bh-ensemble-admin-debug--inline {
	max-width: 1440px;
	margin: 0 auto 12px;
	padding: 8px 24px;
	font-size: 12px;
	background: #fff8e6;
	border-left: 3px solid var(--bh-brand-gold);
}

/* Bloc titre / prix PDP desktop : hors flux mobile (voir @media ci-dessous) */
.bh-ensemble-builder__desktop-summary-head {
	display: none;
}

/* Peek mobile (titre, prix, onglets) — masquée desktop */
.bh-ensemble-sheet__peek {
	display: none;
}

.bh-ensemble-sheet-live-hint {
	display: none;
}

/* Planche horizontale fixe en haut : titre, image transparente, couleur, swatches. */
.bh-ensemble-ghost-landing {
	flex: 0 0 auto;
	width: 100%;
	margin: 0;
	padding: 8px 18px 10px;
	box-sizing: border-box;
	background: var(--bh-ensemble-bg-alt);
	border-bottom: 1px solid var(--bh-ensemble-border);
	overflow: visible;
}

.bh-ensemble-ghost-board {
	display: grid;
	align-items: start;
	gap: 12px;
	width: 100%;
	min-height: 172px;
}

.bh-ensemble-ghost-piece {
	position: relative;
	display: grid;
	grid-template-rows: 28px 100px 15px 18px;
	align-items: center;
	justify-items: center;
	row-gap: 5px;
	padding: 0 4px 6px;
	box-sizing: border-box;
	isolation: isolate;
}

.bh-ensemble-ghost-piece__head {
	width: 100%;
	height: 28px;
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr) auto 48px;
	align-items: center;
	gap: 3px;
	box-sizing: border-box;
}

.bh-ensemble-ghost-piece__title-pill {
	min-width: 0;
	max-width: 100%;
	padding: 4px 8px;
	border: 1px solid rgba(28, 6, 113, 0.14);
	border-radius: 999px;
	box-shadow: 0 2px 10px rgba(28, 6, 113, 0.1);
	font-family: var(--bh-condensed);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.2px;
	text-transform: none;
	text-align: center;
	line-height: 1.1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.bh-ensemble-ghost-piece__head .bh-ensemble-ghost-piece__price {
	flex: 0 0 auto;
	min-height: 14px;
	padding: 1px 5px;
	border: 1px solid rgba(28, 6, 113, 0.18);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.42);
	color: var(--bh-text-on-light);
	font-family: var(--bh-condensed);
	font-size: 7.5px;
	font-weight: 700;
	letter-spacing: 0.4px;
	text-transform: uppercase;
	white-space: nowrap;
}

.bh-ensemble-ghost-piece__media {
	position: relative;
	width: 82%;
	height: 100px;
	display: grid;
	place-items: center;
	grid-row: 2;
}

.bh-ensemble-ghost-piece--accessory .bh-ensemble-ghost-piece__media,
.bh-ensemble-ghost-piece--accessoire .bh-ensemble-ghost-piece__media,
.bh-ensemble-ghost-piece--shoes .bh-ensemble-ghost-piece__media,
.bh-ensemble-ghost-piece--chaussures .bh-ensemble-ghost-piece__media {
	height: 76px;
}

.bh-ensemble-ghost-piece--bottom .bh-ensemble-ghost-piece__media,
.bh-ensemble-ghost-piece--bas .bh-ensemble-ghost-piece__media {
	width: 70%;
	height: 98px;
}

.bh-ensemble-ghost-piece__media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	filter: drop-shadow(0 18px 24px rgba(20, 30, 45, 0.2));
	user-select: none;
}

.bh-ensemble-ghost-piece__placeholder {
	width: 70%;
	height: 70%;
	border: 1px dashed var(--bh-ensemble-border);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.45);
}

.bh-ensemble-ghost-piece__color {
	height: 15px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	font-family: var(--bh-condensed);
	font-size: 9px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--bh-ensemble-muted);
	line-height: 1;
	white-space: nowrap;
}

.bh-ensemble-ghost-piece__swatches {
	height: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
}

.bh-ensemble-ghost-board-swatch {
	position: relative;
	width: 14px;
	height: 14px;
	padding: 0;
	border-radius: 50%;
	border: 1px solid var(--bh-ensemble-border);
	background: var(--bh-board-swatch, #d8d2c8);
	background-clip: padding-box;
	cursor: pointer;
}

.bh-ensemble-ghost-board-swatch.is-active {
	border-color: var(--bh-ensemble-text);
	box-shadow: 0 0 0 1.5px var(--bh-ensemble-text);
}

.bh-ensemble-ghost-board-swatch.is-disabled,
.bh-ensemble-ghost-board-swatch:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.bh-ensemble-ghost-piece__nav {
	position: absolute;
	top: 68px;
	z-index: 3;
	width: 30px;
	height: 30px;
	border: 1px solid var(--bh-ensemble-border);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.86);
	color: var(--bh-ensemble-text);
	display: grid;
	place-items: center;
	padding: 0;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	transform: translateY(-50%);
	box-shadow: 0 8px 22px rgba(20, 30, 45, 0.08);
}

.bh-ensemble-ghost-piece__head .bh-ensemble-ghost-piece__nav {
	position: static;
	top: auto;
	left: auto;
	right: auto;
	transform: none;
	width: 48px;
	height: 22px;
	grid-auto-flow: column;
	grid-auto-columns: max-content;
	gap: 4px;
	font-size: 8px;
	font-family: var(--bh-condensed);
	font-weight: 700;
	letter-spacing: 0.45px;
	text-transform: uppercase;
	flex: 0 0 auto;
}

.bh-ensemble-ghost-piece__cycle-dot {
	width: 10px;
	height: 10px;
	border: 1px solid rgba(28, 6, 113, 0.2);
	border-radius: 999px;
	background: var(--bh-cycle-swatch, #d8d2c8);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.38);
}

.bh-ensemble-ghost-piece__nav.is-disabled,
.bh-ensemble-ghost-piece__nav:disabled {
	opacity: 0.38;
	cursor: not-allowed;
}

/* Zone scrollable sous la planche (photos landing). */
.bh-ensemble-builder__gallery-scroll {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	overflow-x: hidden;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.bh-ensemble-builder__gallery-scroll::-webkit-scrollbar {
	display: none;
}

/* ============================================================ */
/* === DESKTOP (>= 1024px) ==================================== */
/* ============================================================ */

@media (min-width: 1024px) {

	.bh-ensemble-builder__header,
	.bh-ensemble-builder__tabs,
	.bh-ensemble-builder__panels,
	.bh-ensemble-builder__thumbs-bar,
	.bh-ensemble-pdp .bh-gallery__dots {
		padding-left: 0;
		padding-right: 0;
	}

	/* Layout colonnes : délégué à .bh-product__layout (product-page.css) */
	.bh-ensemble-pdp .bh-ensemble-builder {
		max-width: none;
		padding: 0;
		margin: 0;
	}

	.bh-ensemble-pdp .bh-ensemble-builder__layout.bh-product__layout {
		display: flex;
		width: 100%;
		align-items: flex-start;
	}

	/* === HEADER APP-STYLE MASQUÉ EN DESKTOP === */
	.bh-ensemble-builder__header {
		display: none;
	}

	/*
	 * + spécifique que la règle mobile display:none (évite qu’un autre feuille
	 * ou l’ordre de fusion laisse le bloc titre invisible en desktop).
	 */
	.bh-ensemble-builder #bh-ensemble-sheet > .bh-ensemble-builder__desktop-summary-head {
		display: block !important;
		visibility: visible;
		flex-shrink: 0;
		order: -1;
		margin-bottom: 24px;
		padding-bottom: 24px;
		border-bottom: 1px solid var(--bh-ensemble-border);
	}

	.bh-ensemble-builder__desktop-title {
		font-size: 32px;
		font-weight: 400;
		font-family: 'Times New Roman', Times, serif;
		font-style: italic;
		margin: 0 0 16px;
		letter-spacing: 0.01em;
	}

	.bh-ensemble-builder__desktop-price {
		font-size: 28px;
		font-weight: 600;
		color: var(--bh-ensemble-text);
		margin-bottom: 16px;
	}

	.bh-ensemble-builder__desktop-price .woocommerce-amount,
	.bh-ensemble-builder__desktop-price .woocommerce-Price-amount {
		font: inherit;
		color: inherit;
	}

	.bh-ensemble-builder__desktop-reset {
		display: inline-flex;
		align-items: center;
		gap: 6px;
		background: transparent;
		border: 1px solid var(--bh-ensemble-border);
		border-radius: 999px;
		padding: 6px 12px;
		font-size: 12px;
		cursor: pointer;
		color: var(--bh-ensemble-muted);
		transition: all 0.15s;
	}

	.bh-ensemble-builder__desktop-reset:hover {
		background: var(--bh-ensemble-bg-alt);
		border-color: var(--bh-ensemble-text);
		color: var(--bh-ensemble-text);
	}

	/* Galerie colonne gauche (.gallery-wrap inclut vignettes + .media — aligné PDP) */
	.bh-ensemble-pdp .bh-ensemble-builder__gallery-wrap {
		align-self: start;
		display: flex;
		flex-direction: row;
		align-items: stretch;
		gap: 12px;
		background: transparent;
		width: 100%;
		min-height: min(760px, calc(100vh - 120px));
		max-height: 760px;
		min-width: 0;
	}

	.bh-ensemble-builder__media {
		flex: 1;
		min-width: 0;
		aspect-ratio: auto;
		min-height: min(760px, calc(100vh - 120px));
		max-height: min(760px, calc(100vh - 120px));
		display: flex;
		flex-direction: column;
		background: transparent;
		border-radius: 0;
		overflow: hidden;
		margin-bottom: 0;
	}

	.bh-ensemble-ghost-landing {
		flex: 0 0 auto;
	}

	.bh-ensemble-builder__gallery-scroll {
		flex: 1 1 auto;
		min-height: 0;
		overflow-y: auto;
		overflow-x: hidden;
	}

	/* Thumbs en colonne à gauche du viewport */
	.bh-ensemble-builder__thumbs-bar {
		order: -1;
		flex: 0 0 100px;
		margin-bottom: 0;
		max-height: 760px;
		min-height: 0;
		padding: 0;
		align-self: stretch;
		overflow: hidden;
		display: flex;
		flex-direction: column;
	}

	.bh-ensemble-builder__thumbs {
		flex-direction: column !important;
		gap: 8px;
		max-height: 760px;
		overflow-y: auto;
		overflow-x: hidden;
		padding-bottom: 0;
		scroll-snap-type: y mandatory;
	}

	.bh-ensemble-builder__thumbs .bh-gallery__thumb {
		flex: 0 0 124px !important;
		width: 100px;
		height: 124px;
		scroll-snap-align: start;
	}

	/* Viewport PDP desktop : piles verticales + scroll-Y (inchangé vs branche PDP) */
	.bh-ensemble-builder #bh-viewport.bh-gallery__viewport,
	.bh-ensemble-builder #bh-viewport.bh-ensemble-builder__viewport,
	.bh-ensemble-builder .bh-gallery__viewport.bh-ensemble-builder__viewport {
		position: relative;
		flex: none;
		width: 100%;
		height: auto;
		min-height: 0;
		min-width: 0;
		overflow-x: hidden;
		overflow-y: visible;
		scroll-snap-type: none;
		display: block;
		scroll-behavior: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		border-radius: var(--bh-ensemble-radius);
		background: var(--bh-ensemble-bg-alt);
	}

	.bh-ensemble-builder .bh-gallery__viewport .bh-gallery__slide,
	.bh-ensemble-builder .bh-gallery__viewport .bh-pdp-image,
	.bh-ensemble-builder .bh-ensemble-builder__viewport .bh-gallery__slide,
	.bh-ensemble-builder .bh-ensemble-builder__viewport .bh-pdp-image {
		position: relative;
		display: block;
		width: 100%;
		margin: 0 0 12px;
		opacity: 1;
		inset: auto;
		flex: none;
		box-sizing: border-box;
		overflow: visible;
	}

	.bh-ensemble-builder .bh-gallery__slide:last-child {
		margin-bottom: 0;
	}

	.bh-ensemble-builder .bh-gallery__slide img {
		width: 100%;
		max-width: 100%;
		height: auto;
		object-fit: contain;
		display: block;
		user-select: none;
	}

	.bh-ensemble-builder .bh-gallery__slide-ph {
		width: 100%;
		min-height: 38vh;
		background: var(--bh-ensemble-bg-alt);
		border-radius: var(--bh-ensemble-radius-sm);
	}

	.bh-ensemble-builder .bh-gallery__dots {
		display: none !important;
	}

	.bh-ensemble-builder__media-actions,
	.bh-ensemble-builder .bh-ensemble-builder__media-actions {
		display: none !important;
	}

	.bh-ensemble-builder__floating-bar,
	.bh-ensemble-builder .bh-ensemble-builder__floating-bar {
		display: none !important;
	}

	.bh-ensemble-builder__tabs,
	.bh-ensemble-builder .bh-ensemble-builder__tabs {
		display: none !important;
	}

	/* Summary : sticky géré par .bh-product__col-summary (product-page.css) */
	.bh-ensemble-pdp #bh-ensemble-sheet {
		position: static;
		top: auto;
		max-height: none;
		overflow: visible;
		overflow-x: hidden;
		min-width: 0;
		align-self: stretch;
		display: flex;
		flex-direction: column;
		gap: 0;
		height: auto;
	}

	#bh-ensemble-sheet > #bh-ensemble-pieces-list {
		order: 0;
		flex: 0 0 auto;
		flex-grow: 0;
	}

	.bh-ensemble-builder__panels {
		position: static;
		min-height: 0;
		max-height: none;
		overflow: visible;
		padding: 0;
		background: transparent;
		border: none;
	}

	.bh-ensemble-builder__panels .bh-ensemble-slot-panel:not(.is-active) {
		display: block !important;
		pointer-events: auto !important;
	}

	.bh-ensemble-slot-panel .bh-ensemble-piece + .bh-ensemble-piece {
		margin-top: 0;
		padding-top: 0;
		border-top: none;
	}

	.bh-ensemble-builder #bh-ensemble-pieces-list .bh-ensemble-slot-panel > .bh-ensemble-piece {
		display: block;
		border-radius: 0;
	}

	.bh-ensemble-builder #bh-ensemble-pieces-list .bh-ensemble-slot-panel > .bh-ensemble-piece:not(:last-child) {
		margin-bottom: 28px;
		padding-bottom: 28px;
		border-bottom: 1px solid var(--bh-ensemble-border);
	}

	.bh-ensemble-builder #bh-ensemble-pieces-list > .bh-ensemble-slot-panel:not(:last-child) > .bh-ensemble-piece:last-child {
		margin-bottom: 28px;
		padding-bottom: 28px;
		border-bottom: 1px solid var(--bh-ensemble-border);
	}

	.bh-ensemble-builder #bh-ensemble-pieces-list > .bh-ensemble-slot-panel:last-child > .bh-ensemble-piece:last-child {
		margin-bottom: 0;
		padding-bottom: 0;
		border-bottom: none;
	}

	/* Fin de colonne : plus de fixed plein viewport (sinon overlap au scroll entre les pièces) */
	.bh-ensemble-builder #bh-ensemble-sheet > .bh-ensemble-sticky-cta,
	.bh-ensemble-builder #bh-ensemble-sticky-cta {
		position: static !important;
		inset: auto !important;
		max-width: none;
		width: 100%;
		left: auto !important;
		right: auto !important;
		bottom: auto !important;
		transform: none !important;
		background: transparent;
		backdrop-filter: none;
		box-shadow: none;
		padding: 24px 0 0 !important;
		padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)) !important;
		margin-top: 0;
		z-index: auto !important;
		flex-shrink: 0;
		order: 1;
		border-top: 1px solid var(--bh-ensemble-border);
	}

	.bh-ensemble-sticky-cta__btn {
		max-width: none;
		border-radius: var(--bh-ensemble-radius-sm);
	}

	.bh-ensemble-builder .bh-ensemble-cta__hint {
		max-width: none;
	}

	/* Lightbox plus large desktop */
	.bh-ensemble-lightbox__content {
		grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
		max-width: 90vw;
	}
}

/* ============================================================ */
/* === TOAST DE NOTIFICATION (panier) ========================= */
/* ============================================================ */

.bh-ensemble-toast {
	position: fixed;
	top: 24px;
	right: 24px;
	z-index: 9999;
	display: flex;
	align-items: center;
	gap: 12px;
	background: #ffffff;
	border-radius: 8px;
	padding: 14px 18px;
	min-width: 280px;
	max-width: 90vw;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.06);
	border-left: 4px solid #888;
	animation: bh-ensemble-toast-in 0.3s ease-out;
	font-size: 14px;
	line-height: 1.4;
}

.bh-ensemble-toast--success {
	border-left-color: #2e7d32;
}

.bh-ensemble-toast--success .bh-ensemble-toast__icon {
	color: #2e7d32;
}

.bh-ensemble-toast--error {
	border-left-color: #c62828;
}

.bh-ensemble-toast--error .bh-ensemble-toast__icon {
	color: #c62828;
}

.bh-ensemble-toast--info {
	border-left-color: #1565c0;
}

.bh-ensemble-toast--info .bh-ensemble-toast__icon {
	color: #1565c0;
}

.bh-ensemble-toast__icon {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.bh-ensemble-toast__message {
	flex: 1;
	color: #222;
	font-weight: 500;
}

.bh-ensemble-toast--fade-out {
	animation: bh-ensemble-toast-out 0.3s ease-in forwards;
}

@keyframes bh-ensemble-toast-in {
	from {
		opacity: 0;
		transform: translateX(20px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes bh-ensemble-toast-out {
	from {
		opacity: 1;
		transform: translateX(0);
	}
	to {
		opacity: 0;
		transform: translateX(20px);
	}
}

/* ============================================================ */
/* === MOBILE BOTTOM SHEET (aligné product-page.css) ========== */
/* ============================================================ */

@media (max-width: 768px) {

	.bh-ensemble-builder {
		padding-bottom: 0;
	}

	.bh-ensemble-builder__header {
		display: none;
	}

	.bh-ensemble-builder__floating-bar,
	.bh-ensemble-builder__media-actions {
		display: none;
	}

	.bh-ensemble-sheet__peek {
		display: block;
	}

	.bh-ensemble-builder #bh-ensemble-sheet {
		position: fixed;
		left: 8px;
		right: 8px;
		bottom: 0;
		z-index: 260;
		max-height: calc(92vh - env(safe-area-inset-top, 0px));
		padding: 30px 18px calc(16px + env(safe-area-inset-bottom, 0px));
		background: var(--bh-wh, #fff);
		border-radius: 22px 22px 0 0;
		box-shadow: 0 -10px 35px rgba(0, 0, 0, 0.18);
		transform: translateY(calc(100% - 198px - env(safe-area-inset-bottom, 0px)));
		transition: transform 0.32s var(--bh-ease, cubic-bezier(0.4, 0, 0.2, 1));
		overflow-y: auto;
		overscroll-behavior: contain;
		-webkit-overflow-scrolling: touch;
		width: auto;
		max-width: none;
		margin-left: 0;
		margin-right: 0;
	}

	.bh-ensemble-builder #bh-ensemble-sheet::before {
		content: "";
		position: absolute;
		top: 11px;
		left: 50%;
		width: 52px;
		height: 4px;
		border-radius: 999px;
		background: #d7d7d7;
		transform: translateX(-50%);
	}

	.bh-ensemble-builder #bh-ensemble-sheet.is-sheet-dragging {
		transition: none;
	}

	.bh-ensemble-builder #bh-ensemble-sheet.is-sheet-open {
		transform: translateY(0);
	}

	.bh-ensemble-sheet__peek .bh-summary__title,
	.bh-ensemble-sheet__peek .bh-summary__price {
		display: inline-block;
		vertical-align: top;
	}

	.bh-ensemble-sheet__peek .bh-summary__title {
		max-width: calc(100% - 82px);
		margin: 0 0 10px;
		font: 800 18px/1.15 var(--bh-sans, inherit);
		letter-spacing: 0.01em;
		text-transform: uppercase;
	}

	.bh-ensemble-sheet__peek .bh-summary__price {
		float: right;
		margin: 0;
		text-align: right;
	}

	.bh-ensemble-builder__tabs {
		clear: both;
		margin: 0 -6px 12px;
		border-bottom: 1px solid var(--bh-ensemble-border);
		gap: 6px;
		padding: 0 2px 6px;
	}

	.bh-ensemble-tab {
		min-width: 64px;
		padding: 4px 4px 8px;
		font-size: 10px;
	}

	.bh-ensemble-tab__thumb {
		width: 42px;
		height: 42px;
		border-radius: 10px;
	}

	.bh-ensemble-tab__text {
		font-size: 10px;
		line-height: 1.1;
	}

	.bh-ensemble-builder #bh-ensemble-sheet > .bh-ensemble-builder__panels {
		width: 100%;
		max-width: 100%;
		margin-left: 0;
		margin-right: 0;
		border: none;
		border-radius: 0;
		padding: 0;
		background: transparent;
	}

	#bh-ensemble-sheet:not(.is-sheet-open) .bh-ensemble-piece__head,
	#bh-ensemble-sheet:not(.is-sheet-open) .bh-summary__block--sizes,
	#bh-ensemble-sheet:not(.is-sheet-open) .bh-ensemble-piece__size-guide,
	#bh-ensemble-sheet:not(.is-sheet-open) .bh-ensemble-piece__stock-status,
	#bh-ensemble-sheet:not(.is-sheet-open) .bh-ensemble-sticky-cta {
		display: none !important;
	}

	#bh-ensemble-sheet:not(.is-sheet-open) .bh-ensemble-slot-panel:not(.is-active) {
		display: none !important;
	}

	#bh-ensemble-sheet:not(.is-sheet-open) .bh-summary__block--colors {
		clear: both;
		margin: 0 0 14px;
	}

	#bh-ensemble-sheet:not(.is-sheet-open) .bh-summary__block--colors .bh-label {
		margin: 0 0 7px;
		font-size: 9px;
		letter-spacing: 0.04em;
	}

	#bh-ensemble-sheet.is-sheet-open .bh-ensemble-piece__head,
	#bh-ensemble-sheet.is-sheet-open .bh-summary__block--sizes,
	#bh-ensemble-sheet.is-sheet-open .bh-ensemble-piece__size-guide,
	#bh-ensemble-sheet.is-sheet-open .bh-ensemble-piece__stock-status {
		display: revert;
	}

	#bh-ensemble-sheet.is-sheet-open .bh-ensemble-sticky-cta {
		display: block !important;
	}

	.bh-ensemble-sticky-cta {
		position: static;
		left: auto;
		right: auto;
		box-shadow: none;
		z-index: auto;
		padding: 0;
		margin-top: 16px;
	}

	.bh-ensemble-sticky-cta__btn {
		border-radius: 6px;
	}

	.bh-ensemble-mobile-sheet-toggle {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 5px;
		width: 100%;
		height: 38px;
		margin: 10px 0 0;
		border: 0;
		border-radius: 6px;
		background: var(--bh-bk, #111);
		color: var(--bh-wh, #fff);
		font: 800 14px/1 var(--bh-sans, inherit);
		cursor: pointer;
	}

	.bh-ensemble-summary.is-sheet-open .bh-mobile-sheet-toggle__arrow {
		transform: rotate(180deg);
	}

	.bh-ensemble-pdp .bh-gallery__dots {
		display: none !important;
	}
}

@media (min-width: 769px) and (max-width: 1023px) {

	.bh-ensemble-sheet__peek,
	.bh-ensemble-mobile-sheet-toggle {
		display: none !important;
	}

	.bh-ensemble-builder #bh-ensemble-sheet {
		position: relative;
		transform: none;
		box-shadow: none;
		border-radius: 0;
		max-height: none;
		padding: 0;
		left: auto;
		right: auto;
		bottom: auto;
	}

	.bh-ensemble-builder #bh-ensemble-sheet::before {
		display: none;
	}
}

/* Mobile : toast plus petit et collé en haut */
@media (max-width: 768px) {
	.bh-ensemble-toast {
		top: 12px;
		right: 12px;
		left: 12px;
		min-width: 0;
		max-width: calc(100vw - 24px);
		padding: 12px 14px;
		font-size: 13px;
	}
}

/* ============================================================ */
/* === SPINNER (état loading du CTA) ========================== */
/* ============================================================ */

.bh-ensemble-spinner {
	display: inline-block;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: bh-ensemble-spin 0.8s linear infinite;
	vertical-align: middle;
	margin-right: 6px;
}

@keyframes bh-ensemble-spin {
	to {
		transform: rotate(360deg);
	}
}

/* État disabled + loading du bouton CTA sticky */
.bh-ensemble-sticky-cta__btn.is-loading {
	opacity: 0.85;
	cursor: wait;
	pointer-events: none;
}

.bh-ensemble-sticky-cta__btn.is-loading .bh-ensemble-sticky-cta__label {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

/* ============================================================ */
/* === SECTIONS RELATED (ensembles similaires + autres styles) === */
/* ============================================================ */

.bh-ensemble-related {
	max-width: 1440px;
	margin: 60px auto;
	padding: 0 16px;
}

.bh-ensemble-related .bh-section__header {
	margin-bottom: 28px;
	text-align: center;
}

.bh-ensemble-related .bh-section__title {
	font-size: 24px;
	font-weight: 400;
	font-family: 'Times New Roman', Times, serif;
	font-style: italic;
	letter-spacing: 0.01em;
	margin: 0 0 8px;
	color: var(--bh-ensemble-text, #111);
}

.bh-ensemble-related .bh-section__subtitle {
	font-size: 14px;
	color: var(--bh-ensemble-muted, #888);
	margin: 0;
}

.bh-ensemble-related__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}

@media (min-width: 768px) {
	.bh-ensemble-related__grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 24px;
	}
}

@media (min-width: 1024px) {
	.bh-ensemble-related {
		padding: 0 32px;
		margin: 80px auto;
	}
	.bh-ensemble-related .bh-section__title {
		font-size: 32px;
	}
	.bh-ensemble-related__grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 32px;
	}
}

/* === CARTE ensemble (sections related) === */
body.single-bh_ensemble .bh-ensemble-card.bh-ensemble-card--medium,
body.single-bh_ensemble .bh-ensemble-card.bh-ensemble-card--small,
.bh-ensemble-pdp .bh-ensemble-card.bh-ensemble-card--medium,
.bh-ensemble-pdp .bh-ensemble-card.bh-ensemble-card--small {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 0;
	overflow: hidden;
	transition: transform 0.2s;
}

body.single-bh_ensemble .bh-ensemble-card.bh-ensemble-card--medium:hover,
body.single-bh_ensemble .bh-ensemble-card.bh-ensemble-card--small:hover,
.bh-ensemble-pdp .bh-ensemble-card.bh-ensemble-card--medium:hover,
.bh-ensemble-pdp .bh-ensemble-card.bh-ensemble-card--small:hover {
	transform: translateY(-2px);
}

body.single-bh_ensemble .bh-ensemble-card__image-wrap,
.bh-ensemble-pdp .bh-ensemble-card__image-wrap {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 3 / 4;
	background: #f5f5f5;
	overflow: hidden;
	margin-bottom: 12px;
}

body.single-bh_ensemble .bh-ensemble-card__image-wrap img,
.bh-ensemble-pdp .bh-ensemble-card__image-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s;
}

body.single-bh_ensemble .bh-ensemble-card.bh-ensemble-card--medium:hover .bh-ensemble-card__image-wrap img,
body.single-bh_ensemble .bh-ensemble-card.bh-ensemble-card--small:hover .bh-ensemble-card__image-wrap img,
.bh-ensemble-pdp .bh-ensemble-card.bh-ensemble-card--medium:hover .bh-ensemble-card__image-wrap img,
.bh-ensemble-pdp .bh-ensemble-card.bh-ensemble-card--small:hover .bh-ensemble-card__image-wrap img {
	transform: scale(1.04);
}

body.single-bh_ensemble .bh-ensemble-card__placeholder,
.bh-ensemble-pdp .bh-ensemble-card__placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
}

body.single-bh_ensemble .bh-ensemble-card__badge,
.bh-ensemble-pdp .bh-ensemble-card__badge {
	position: absolute;
	top: 12px;
	left: 12px;
	background: rgba(0, 0, 0, 0.85);
	color: #fff;
	font-size: 0;
	font-weight: 600;
	letter-spacing: 0.08em;
	padding: 5px 9px;
	border-radius: 2px;
}

body.single-bh_ensemble .bh-ensemble-card__badge::before,
.bh-ensemble-pdp .bh-ensemble-card__badge::before {
	content: "ENSEMBLE";
	font-size: 10px;
}

body.single-bh_ensemble .bh-ensemble-card__info,
.bh-ensemble-pdp .bh-ensemble-card__info {
	padding: 0 4px;
}

body.single-bh_ensemble .bh-ensemble-card__category,
.bh-ensemble-pdp .bh-ensemble-card__category {
	display: block;
	font-size: 11px;
	color: var(--bh-ensemble-muted, #888);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: 4px;
}

body.single-bh_ensemble .bh-ensemble-card__title,
.bh-ensemble-pdp .bh-ensemble-card__title {
	margin: 0 0 6px;
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 0.01em;
}

body.single-bh_ensemble .bh-ensemble-card__title a,
.bh-ensemble-pdp .bh-ensemble-card__title a {
	color: var(--bh-ensemble-text, #111);
	text-decoration: none;
	transition: color 0.15s;
}

body.single-bh_ensemble .bh-ensemble-card__title a:hover,
.bh-ensemble-pdp .bh-ensemble-card__title a:hover {
	color: var(--bh-ensemble-accent, #c8a97e);
}

body.single-bh_ensemble .bh-ensemble-card__meta,
.bh-ensemble-pdp .bh-ensemble-card__meta {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 8px;
	font-size: 13px;
}

body.single-bh_ensemble .bh-ensemble-card__pieces,
.bh-ensemble-pdp .bh-ensemble-card__pieces {
	color: var(--bh-ensemble-muted, #888);
	font-size: 12px;
}

body.single-bh_ensemble .bh-ensemble-card__price,
.bh-ensemble-pdp .bh-ensemble-card__price {
	font-weight: 600;
	color: var(--bh-ensemble-text, #111);
}

/* === ensemble PDP-style : images/landing en flux, sans galerie de vignettes à gauche === */
body.single-bh_ensemble,
body.single-bh_ensemble #bh-page,
body.single-bh_ensemble #bh-content,
body.single-bh_ensemble .bh-content-wrapper,
body.single-bh_ensemble main#primary.bh-ensemble-single {
	margin-left: 0 !important;
	padding-left: 0 !important;
}

.bh-ensemble-single {
	max-width: none;
	width: 100%;
	margin-left: 0;
	padding: 0;
}

.bh-ensemble-single .bh-ensemble__header {
	display: none;
}

.bh-ensemble-single .bh-ensemble__body {
	margin: 0;
}

/*
 * Legacy full-bleed (pré-PDP) : ignoré sur main.bh-ensemble-pdp.
 */
@media (min-width: 1024px) {
	main:not(.bh-ensemble-pdp) .bh-ensemble-builder {
		width: 100vw;
		max-width: 100vw;
		margin-left: calc(50% - 50vw);
		margin-right: calc(50% - 50vw);
		padding: 0;
		grid-template-columns: minmax(0, 1fr) 440px;
		gap: 0;
	}

	main:not(.bh-ensemble-pdp) .bh-ensemble-builder__gallery-wrap {
		display: block;
		max-height: none;
	}

	main:not(.bh-ensemble-pdp) .bh-ensemble-builder__thumbs-bar {
		display: none !important;
	}

	main:not(.bh-ensemble-pdp) .bh-ensemble-builder__media {
		display: block;
		width: 100%;
		margin: 0;
		max-height: none;
		aspect-ratio: auto;
		overflow: visible;
	}

	main:not(.bh-ensemble-pdp) .bh-ensemble-builder #bh-viewport.bh-gallery__viewport,
	main:not(.bh-ensemble-pdp) .bh-ensemble-builder #bh-viewport.bh-ensemble-builder__viewport,
	main:not(.bh-ensemble-pdp) .bh-ensemble-builder .bh-gallery__viewport.bh-ensemble-builder__viewport {
		display: flex;
		flex-direction: column;
		gap: 0;
		height: auto;
		width: 100%;
		max-height: none;
		overflow: visible;
		border-radius: 0;
		background: transparent;
	}

	main:not(.bh-ensemble-pdp) .bh-ensemble-builder .bh-gallery__viewport .bh-gallery__slide,
	main:not(.bh-ensemble-pdp) .bh-ensemble-builder .bh-gallery__viewport .bh-pdp-image,
	main:not(.bh-ensemble-pdp) .bh-ensemble-builder .bh-ensemble-builder__viewport .bh-gallery__slide,
	main:not(.bh-ensemble-pdp) .bh-ensemble-builder .bh-ensemble-builder__viewport .bh-pdp-image {
		margin: 0;
		min-height: calc(100vh - 132px);
		background: var(--bh-bg-section);
		overflow: hidden;
		border-radius: 0;
	}

	main:not(.bh-ensemble-pdp) .bh-ensemble-builder .bh-gallery__slide img {
		width: 100%;
		height: 100%;
		max-width: 100%;
		object-fit: cover;
		object-position: center top;
		display: block;
	}

	main:not(.bh-ensemble-pdp).bh-gallery-header-hidden .bh-ensemble-builder #bh-ensemble-sheet,
	main:not(.bh-ensemble-pdp).bh-gallery-header-hidden #bh-ensemble-sheet {
		top: var(--wp-admin--admin-bar--height, 0px);
		max-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px));
	}
}

/* === Ensemble typography / palette (édition condensée) === */
.bh-ensemble-builder {
	--bh-ensemble-accent: var(--bh-brand-gold);
	--bh-ensemble-text: var(--bh-text-on-light);
	--bh-ensemble-muted: #667486;
	--bh-ensemble-border: #ddd6d2;
	--bh-ensemble-bg-alt: var(--bh-bg-section);
	--bh-condensed: var(--bh-font-secondary, "BH Display Condensed", "Arial Narrow", Arial, sans-serif);
}

.bh-ensemble-builder #bh-ensemble-sheet,
.bh-ensemble-builder .bh-ensemble-summary--visual {
	background: var(--bh-bg-section);
	color: var(--bh-ensemble-text);
}

.bh-ensemble-builder__desktop-title,
.bh-ensemble-summary--visual .bh-ensemble-summary-title,
.bh-ensemble-builder__title {
	font-family: var(--bh-condensed);
	font-weight: 600;
	line-height: 0.98;
	letter-spacing: -0.02em;
	text-transform: uppercase;
	color: var(--bh-ensemble-text);
}

.bh-ensemble-builder__desktop-title {
	font-size: clamp(30px, 2.7vw, 44px);
	font-style: normal;
}

.bh-ensemble-builder__desktop-price,
.bh-ensemble-summary--visual .bh-ensemble-summary-total,
.bh-ensemble-summary--visual .bh-total-value,
.bh-ensemble-builder__desktop-price .woocommerce-Price-amount {
	font-family: var(--bh-condensed);
	font-size: 30px;
	font-weight: 700;
	line-height: 1;
	color: var(--bh-ensemble-text);
}

.bh-ensemble-summary--visual .bh-track-label,
.bh-ensemble-piece__field-label,
.bh-ensemble-piece__title,
.bh-ensemble-piece__price,
.bh-ensemble-size-cta,
.bh-ensemble-sticky-cta__btn,
.bh-ensemble-cta__hint,
.bh-ensemble-builder__desktop-reset {
	font-family: var(--bh-condensed);
	letter-spacing: 0.045em;
	text-transform: uppercase;
}

.bh-ensemble-piece__title,
.bh-ensemble-piece__price,
.bh-ensemble-summary--visual .bh-track-color {
	color: var(--bh-ensemble-text);
}

.bh-ensemble-summary--visual .bh-track-label,
.bh-ensemble-piece__field-label,
.bh-ensemble-cta__hint {
	color: var(--bh-ensemble-muted);
}

.bh-ensemble-summary--visual .bh-icon-btn,
.bh-ensemble-swatch {
	border-color: transparent;
	background: transparent;
}

.bh-ensemble-summary--visual .bh-icon-btn.is-selected,
.bh-ensemble-summary--visual .bh-icon-btn.is-active,
.bh-ensemble-swatch.is-active {
	border-color: var(--bh-ensemble-text);
	box-shadow: inset 0 0 0 2px #fff;
}

.bh-ensemble-size-btn {
	border-radius: 0;
	border-color: var(--bh-ensemble-border);
	background: transparent;
	font-family: var(--bh-condensed);
	font-size: 15px;
	font-weight: 500;
	color: var(--bh-ensemble-text);
}

.bh-ensemble-size-btn.is-active {
	border-color: var(--bh-ensemble-text);
	background: transparent;
}

.bh-ensemble-sticky-cta__btn,
.bh-ensemble-size-cta {
	border-radius: 0;
	background: var(--bh-ensemble-accent);
	color: var(--bh-ensemble-text);
	font-family: var(--bh-condensed);
	font-size: 17px;
	font-weight: 700;
	letter-spacing: 0.035em;
}

.bh-ensemble-sticky-cta__btn:hover:not(:disabled),
.bh-ensemble-size-cta:hover {
	background: var(--bh-brand-gold-hover);
	color: var(--bh-ensemble-text);
}

.bh-ensemble-sticky-cta__btn:disabled {
	background: var(--bh-ensemble-accent);
	color: var(--bh-ensemble-text);
	opacity: 0.55;
}

/* === Summary ensemble blanc + texte bleu === */
.bh-ensemble-builder #bh-ensemble-sheet,
.bh-ensemble-builder .bh-ensemble-summary--visual {
	background: var(--bh-ensemble-bg-alt);
	color: var(--bh-ensemble-text);
}

.bh-ensemble-builder__desktop-title,
.bh-ensemble-summary--visual .bh-ensemble-summary-title,
.bh-ensemble-builder__title,
.bh-ensemble-builder__desktop-price,
.bh-ensemble-summary--visual .bh-ensemble-summary-total,
.bh-ensemble-summary--visual .bh-total-value,
.bh-ensemble-builder__desktop-price .woocommerce-Price-amount,
.bh-ensemble-piece__title,
.bh-ensemble-piece__price,
.bh-ensemble-piece__price .woocommerce-Price-amount,
.bh-ensemble-summary--visual .bh-track-color,
.bh-ensemble-size-btn,
.bh-ensemble-builder__desktop-reset {
	color: var(--bh-ensemble-text);
}

.bh-ensemble-summary--visual .bh-track-label,
.bh-ensemble-piece__field-label,
.bh-ensemble-cta__hint,
.bh-ensemble-piece__price del,
.bh-ensemble-piece__price--unavailable,
.bh-ensemble-piece__footer,
.bh-ensemble-piece__size-guide {
	color: var(--bh-ensemble-muted);
}

.bh-ensemble-slot-panel .bh-ensemble-piece + .bh-ensemble-piece,
.bh-ensemble-piece__colors,
.bh-ensemble-piece__sizes,
.bh-ensemble-piece__footer,
.bh-ensemble-size-btn {
	border-color: var(--bh-ensemble-border);
}

.bh-ensemble-size-btn {
	background: transparent;
}

.bh-ensemble-size-btn:hover:not(:disabled):not(.is-unavailable) {
	border-color: var(--bh-ensemble-text);
}

.bh-ensemble-size-btn.is-active {
	border-color: var(--bh-ensemble-text);
	background: transparent;
	color: var(--bh-ensemble-text);
}

.bh-ensemble-swatch.is-active,
.bh-ensemble-summary--visual .bh-icon-btn.is-selected,
.bh-ensemble-summary--visual .bh-icon-btn.is-active {
	border-color: var(--bh-ensemble-text);
}

.bh-ensemble-summary--visual .bh-icon-btn.is-selected,
.bh-ensemble-summary--visual .bh-icon-btn.is-active {
	box-shadow: inset 0 0 0 3px #fff, 0 4px 14px rgba(28, 6, 113, 0.16);
}

.bh-ensemble-sticky-cta,
.bh-ensemble-final-cta {
	background: var(--bh-ensemble-bg-alt);
	color: var(--bh-ensemble-text);
}

.bh-ensemble-sticky-cta__btn,
.bh-ensemble-size-cta {
	background: var(--bh-ensemble-accent);
	color: var(--bh-ensemble-text);
}

.bh-ensemble-sticky-cta__btn:hover:not(:disabled),
.bh-ensemble-size-cta:hover {
	background: var(--bh-brand-gold-hover);
	color: var(--bh-ensemble-text);
}

/* === Intégration coque .bh-product.bh-ensemble-pdp === */
.bh-ensemble-pdp.bh-product {
	position: relative;
}

/* Breadcrumb ensemble : flux document (pas lié au repli recherche du header). */
.bh-ensemble-pdp .bh-product__breadcrumb {
	position: relative;
	top: auto;
	left: auto;
	right: auto;
	z-index: 1;
	width: 100%;
	margin: 0;
	padding: 14px 24px 10px;
	border: 0;
	background: #fff;
	pointer-events: auto;
	box-sizing: border-box;
}

.bh-ensemble-pdp .bh-product__breadcrumb .bh-breadcrumb {
	display: flex;
	align-items: center;
	width: 100%;
	padding: 0;
	border-radius: 0;
	background: transparent;
	backdrop-filter: none;
}

/* Gagne sur product-page.css (.bh-product__col-gallery { height:100vh; overflow:hidden }) */
.bh-ensemble-pdp.bh-product > .bh-product__layout > .bh-product__col-gallery,
.bh-ensemble-pdp.bh-product .bh-product__col-gallery {
	flex: 1 1 62%;
	width: auto;
	height: auto;
	min-height: 480px;
	overflow: hidden;
	position: relative;
	top: auto;
	padding: 0;
	z-index: 1;
}

.bh-ensemble-pdp.bh-product > .bh-product__layout > .bh-product__col-summary,
.bh-ensemble-pdp.bh-product .bh-product__col-summary {
	flex: 0 0 420px;
	width: 420px;
	max-width: 42%;
	height: auto;
	max-height: 100vh;
	overflow-y: auto;
	position: sticky;
	top: 0;
	align-self: flex-start;
	padding: 40px 34px 48px;
	box-sizing: border-box;
	background: var(--bh-bg-section);
	border-left: 1px solid rgba(28, 6, 113, 0.08);
	z-index: 5;
	scrollbar-width: none;
}

.bh-ensemble-pdp.bh-product > .bh-product__layout > .bh-product__col-summary::-webkit-scrollbar,
.bh-ensemble-pdp.bh-product .bh-product__col-summary::-webkit-scrollbar {
	display: none;
}

.bh-ensemble-pdp .bh-product__layout {
	display: flex;
	flex-wrap: nowrap;
	align-items: flex-start;
	width: 100%;
	min-height: 480px;
}

.bh-ensemble-pdp .bh-ensemble-builder {
	width: 100%;
	min-height: 480px;
	margin: 0;
	padding: 0;
	visibility: visible;
	opacity: 1;
}

.bh-ensemble-pdp .bh-ensemble-builder__layout {
	display: flex;
	flex-wrap: nowrap;
	align-items: flex-start;
	width: 100%;
	min-height: inherit;
}

.bh-ensemble-pdp .bh-ensemble-builder__gallery-wrap {
	width: 100%;
	min-height: 400px;
	gap: 0;
}

.bh-ensemble-pdp .bh-ensemble-builder__media {
	min-height: 360px;
	width: 100%;
}

/* Images visibles (évite .bh-product .bh-pdp-image { min-height:100vh } vide) */
.bh-ensemble-pdp.bh-product .bh-pdp-image,
.bh-ensemble-pdp.bh-product .bh-gallery__slide {
	display: block;
	width: 100%;
	min-height: 0;
	height: auto;
	margin: 0 0 12px;
	background: #f5f5f5;
	overflow: visible;
}

.bh-ensemble-pdp.bh-product .bh-pdp-image img,
.bh-ensemble-pdp.bh-product .bh-gallery__slide img {
	display: block;
	width: 100%;
	height: auto;
	min-height: 280px;
	max-height: none;
	object-fit: contain;
}

.bh-ensemble-pdp #bh-viewport,
.bh-ensemble-pdp #bh-viewport.bh-gallery__viewport {
	display: block;
	width: 100%;
	min-height: 360px;
	height: auto;
	overflow: visible;
	background: #f5f5f5;
}

.bh-ensemble-pdp--no-gallery .bh-product__col-gallery,
.bh-ensemble-pdp .bh-ensemble-builder--no-gallery .bh-ensemble-builder__col-gallery {
	min-height: 0;
}

@media (min-width: 1024px) {
	.bh-ensemble-pdp .bh-ensemble-summary-head {
		display: none;
	}

	.bh-ensemble-pdp .bh-product__col-gallery,
	.bh-ensemble-pdp .bh-ensemble-builder__col-summary {
		min-width: 0;
	}

	.bh-ensemble-pdp .bh-ensemble-builder {
		width: 100%;
		max-width: none;
		margin-left: 0;
		margin-right: 0;
	}

	.bh-ensemble-pdp .bh-ensemble-builder__gallery-wrap {
		display: flex;
		flex-direction: row;
		align-items: stretch;
		max-height: none;
		min-height: 480px;
		gap: 0;
	}

	.bh-ensemble-pdp .bh-ensemble-builder__thumbs-bar {
		display: none !important;
	}

	.bh-ensemble-pdp .bh-ensemble-builder__media {
		display: flex;
		flex: 1;
		aspect-ratio: auto;
		min-height: 480px;
		max-height: none;
		overflow: visible;
	}

	.bh-ensemble-pdp #bh-viewport.bh-gallery__viewport {
		display: block;
		flex: 1;
		height: auto;
		min-height: 400px;
		max-height: none;
		overflow-x: hidden;
		overflow-y: auto;
	}

	.bh-ensemble-pdp.bh-product .bh-pdp-image img,
	.bh-ensemble-pdp.bh-product .bh-gallery__slide img {
		min-height: 320px;
		object-fit: contain;
	}

	/* Summary dans la colonne droite (pas carte 380px flottante) */
	.bh-ensemble-pdp #bh-ensemble-sheet.bh-ensemble-summary--visual,
	.bh-ensemble-pdp .bh-ensemble-summary--visual {
		position: static;
		width: 100%;
		max-width: none;
		max-height: none;
		margin: 0;
		padding: 0;
		overflow: visible;
		border-radius: 0;
		border: none;
		box-shadow: none;
		background: transparent;
	}

	.bh-ensemble-pdp--no-gallery .bh-product__col-gallery,
	.bh-ensemble-pdp .bh-ensemble-builder--no-gallery .bh-ensemble-builder__col-gallery {
		height: auto;
		min-height: 0;
	}

	.bh-ensemble-pdp--no-gallery .bh-ensemble-builder__media,
	.bh-ensemble-pdp .bh-ensemble-builder--no-gallery .bh-ensemble-builder__media {
		min-height: 280px;
		max-height: none;
		aspect-ratio: auto;
	}

	.bh-ensemble-pdp--no-gallery #bh-viewport,
	.bh-ensemble-pdp .bh-ensemble-builder--no-gallery #bh-viewport {
		min-height: 0;
		height: auto;
	}
}

@media (max-width: 1023px) {
	.bh-ensemble-pdp .bh-ensemble-builder__layout {
		display: block;
		min-height: 0;
	}

	.bh-ensemble-pdp .bh-product__col-gallery .bh-ensemble-builder__gallery-wrap,
	.bh-ensemble-pdp .bh-gallery__dots {
		width: 100%;
		max-width: 100%;
		margin-left: 0;
		margin-right: 0;
	}
}

/* === Correctif final PDP ensemble : alignement avec la page produit === */
body.bh-ensemble-pdp:not(.bh-hero-overlay).bh-mega-menu-active .bh-site-header-stack,
body.bh-ensemble-pdp:not(.bh-hero-overlay).bh-mega-menu-active #bh-header,
body.bh-ensemble-pdp:not(.bh-hero-overlay).bh-mega-menu-active .bh-header--mega,
body.bh-ensemble-pdp:not(.bh-hero-overlay).bh-mega-menu-active .bh-header--mega .bh-mega-stack,
body.bh-ensemble-pdp:not(.bh-hero-overlay).bh-mega-menu-active .bh-header--mega .bh-mega-header-chrome,
body.bh-ensemble-pdp:not(.bh-hero-overlay).bh-mega-menu-active .bh-header--mega .bh-mega-top,
body.bh-ensemble-pdp:not(.bh-hero-overlay).bh-mega-menu-active .bh-header--mega .bh-mega-bottom,
body.bh-ensemble-pdp:not(.bh-hero-overlay).bh-mega-menu-active .bh-header--mega .bh-mega-mobile-search {
	background: var(--bh-white, #fff) !important;
	border-color: #e8e8e8 !important;
	box-shadow: none;
}

body.bh-ensemble-pdp.bh-gallery-header-autohide .bh-site-header-stack,
body.bh-ensemble-pdp.bh-gallery-header-hidden .bh-site-header-stack {
	transform: none !important;
	pointer-events: auto !important;
}

body.bh-ensemble-pdp .bh-product__breadcrumb,
.bh-ensemble-pdp .bh-product__breadcrumb {
	position: relative !important;
	top: auto !important;
	left: auto !important;
	right: auto !important;
	z-index: 1 !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 12px 16px 12px 0 !important;
	background: #fff !important;
	border-bottom: 1px solid var(--bh-g1) !important;
	box-sizing: border-box;
}

body.bh-ensemble-pdp .bh-product__breadcrumb .bh-breadcrumb,
.bh-ensemble-pdp .bh-product__breadcrumb .bh-breadcrumb {
	display: flex !important;
	width: 100% !important;
	padding: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	backdrop-filter: none !important;
}

@media (max-width: 1024px) {
	body.bh-ensemble-pdp .bh-product__breadcrumb,
	.bh-ensemble-pdp .bh-product__breadcrumb {
		padding-left: env(safe-area-inset-left, 0px) !important;
		padding-right: env(safe-area-inset-right, 0px) !important;
	}
}

@media (min-width: 1024px) {
	.bh-ensemble-pdp {
		--bh-ensemble-summary-sticky-top: var(--wp-admin--admin-bar--height, 0px);
	}

	body.bh-mega-menu-active.bh-has-announcement .bh-ensemble-pdp {
		--bh-ensemble-summary-sticky-top: var(--wp-admin--admin-bar--height, 0px);
	}

	.bh-ensemble-pdp .bh-ensemble-builder__header {
		display: none !important;
	}

	.bh-ensemble-pdp .bh-product__layout,
	.bh-ensemble-pdp .bh-ensemble-builder__layout {
		display: grid !important;
		grid-template-columns: minmax(0, 61%) minmax(360px, 39%);
		align-items: start !important;
		width: 100%;
		min-height: 0;
		background: #fff;
	}

	.bh-ensemble-pdp.bh-product .bh-product__col-gallery,
	.bh-ensemble-pdp .bh-ensemble-builder__col-gallery {
		width: auto !important;
		max-width: none !important;
		min-width: 0 !important;
		min-height: 0 !important;
		height: auto !important;
		overflow: visible !important;
		background: #f5f5f5;
	}

	.bh-ensemble-pdp.bh-product .bh-product__col-summary,
	.bh-ensemble-pdp .bh-ensemble-builder__col-summary {
		width: auto !important;
		max-width: none !important;
		min-width: 0 !important;
		height: calc(100vh - var(--bh-ensemble-summary-sticky-top)) !important;
		max-height: calc(100vh - var(--bh-ensemble-summary-sticky-top)) !important;
		overflow-x: hidden !important;
		overflow-y: auto !important;
		position: sticky !important;
		top: var(--bh-ensemble-summary-sticky-top) !important;
		align-self: start !important;
		padding: 28px 34px 48px !important;
		background: var(--bh-bg-section) !important;
		border-left: 1px solid rgba(28, 6, 113, 0.08);
		scrollbar-width: none;
	}

	.bh-ensemble-pdp.bh-product .bh-product__col-summary::-webkit-scrollbar,
	.bh-ensemble-pdp .bh-ensemble-builder__col-summary::-webkit-scrollbar {
		display: none;
	}

	.bh-ensemble-pdp .bh-ensemble-builder__col-summary > * {
		position: static !important;
		top: auto !important;
	}

	.bh-ensemble-pdp #bh-viewport,
	.bh-ensemble-pdp #bh-viewport.bh-gallery__viewport,
	.bh-ensemble-pdp .bh-ensemble-builder__media,
	.bh-ensemble-pdp .bh-ensemble-builder__gallery-wrap {
		min-height: 0 !important;
		height: auto !important;
		max-height: none !important;
		overflow: visible !important;
		background: #f5f5f5;
	}

	.bh-ensemble-pdp.bh-product .bh-pdp-image,
	.bh-ensemble-pdp.bh-product .bh-gallery__slide {
		margin: 0 !important;
		background: #f5f5f5;
	}

	.bh-ensemble-pdp.bh-product .bh-pdp-image img,
	.bh-ensemble-pdp.bh-product .bh-gallery__slide img {
		width: 100% !important;
		min-height: calc(100vh - var(--bh-mega-header-total, 120px)) !important;
		max-height: none !important;
		object-fit: cover !important;
		object-position: center top;
	}

	/*
	 * ensemblePageMotion layout final:
	 * la planche produits reste visible en haut, seul le landing sous la planche scrolle.
	 */
	.bh-ensemble-pdp .bh-ensemble-builder__layout {
		--bh-ensemble-builder-fixed-height: calc(
			100vh - var(--wp-admin--admin-bar--height, 0px) -
				var(--bh-mega-header-total, 120px) - 44px
		);
		height: max(520px, var(--bh-ensemble-builder-fixed-height)) !important;
		min-height: 0 !important;
		max-height: none !important;
		align-items: stretch !important;
		overflow: hidden !important;
		overscroll-behavior: contain !important;
	}

	.bh-ensemble-pdp.bh-product .bh-product__col-gallery,
	.bh-ensemble-pdp .bh-ensemble-builder__col-gallery {
		height: 100% !important;
		min-height: 0 !important;
		overflow: hidden !important;
		align-self: stretch !important;
		overscroll-behavior: contain !important;
	}

	.bh-ensemble-pdp .bh-ensemble-builder__gallery-wrap,
	.bh-ensemble-pdp .bh-ensemble-builder__media {
		height: 100% !important;
		min-height: 0 !important;
		max-height: none !important;
		overflow: hidden !important;
		background: #f5f5f5;
		overscroll-behavior: contain !important;
	}

	.bh-ensemble-pdp .bh-ensemble-builder__media {
		display: flex !important;
		flex-direction: column !important;
	}

	.bh-ensemble-pdp .bh-ensemble-ghost-landing {
		flex: 0 0 auto !important;
		height: 224px !important;
		min-height: 224px !important;
		max-height: 224px !important;
		padding: 10px 18px 12px !important;
		box-sizing: border-box !important;
		overflow: hidden !important;
		position: relative !important;
		z-index: 2;
		background: var(--bh-ensemble-bg-alt) !important;
		border-bottom: 1px solid var(--bh-ensemble-border) !important;
	}

	.bh-ensemble-pdp .bh-ensemble-ghost-board {
		height: 100% !important;
		min-height: 0 !important;
		align-items: start !important;
	}

	.bh-ensemble-pdp .bh-ensemble-ghost-piece {
		grid-template-rows: 18px 128px 15px 18px !important;
		row-gap: 5px !important;
		min-height: 0 !important;
		height: 100% !important;
		overflow: visible !important;
		padding: 0 4px 4px !important;
	}

	.bh-ensemble-pdp .bh-ensemble-ghost-piece__media {
		height: 128px !important;
		max-height: 128px !important;
		overflow: hidden !important;
	}

	.bh-ensemble-pdp .bh-ensemble-ghost-piece--accessory .bh-ensemble-ghost-piece__media,
	.bh-ensemble-pdp .bh-ensemble-ghost-piece--accessoire .bh-ensemble-ghost-piece__media,
	.bh-ensemble-pdp .bh-ensemble-ghost-piece--shoes .bh-ensemble-ghost-piece__media,
	.bh-ensemble-pdp .bh-ensemble-ghost-piece--chaussures .bh-ensemble-ghost-piece__media {
		height: 104px !important;
		max-height: 104px !important;
		align-self: center;
	}

	.bh-ensemble-pdp .bh-ensemble-ghost-piece--bottom .bh-ensemble-ghost-piece__media,
	.bh-ensemble-pdp .bh-ensemble-ghost-piece--bas .bh-ensemble-ghost-piece__media {
		width: 62% !important;
		height: 128px !important;
		max-height: 128px !important;
	}

	.bh-ensemble-pdp .bh-ensemble-ghost-piece__media img {
		width: 100% !important;
		height: 100% !important;
		max-width: 100% !important;
		max-height: 100% !important;
		object-fit: contain !important;
		display: block !important;
	}

	.bh-ensemble-pdp .bh-ensemble-builder__gallery-scroll {
		display: block !important;
		flex: 1 1 auto !important;
		min-height: 0 !important;
		height: auto !important;
		overflow-y: auto !important;
		overflow-x: hidden !important;
		overscroll-behavior: contain !important;
		scrollbar-width: thin;
		background: #f5f5f5;
	}

	.bh-ensemble-pdp .bh-ensemble-builder__gallery-scroll #bh-viewport,
	.bh-ensemble-pdp .bh-ensemble-builder__gallery-scroll #bh-viewport.bh-gallery__viewport {
		height: auto !important;
		min-height: 0 !important;
		max-height: none !important;
		overflow: visible !important;
		background: #f5f5f5;
	}

	.bh-ensemble-pdp .bh-ensemble-builder__gallery-scroll .bh-pdp-image,
	.bh-ensemble-pdp .bh-ensemble-builder__gallery-scroll .bh-gallery__slide {
		height: auto !important;
		min-height: 0 !important;
		margin: 0 !important;
	}

	.bh-ensemble-pdp .bh-ensemble-builder__gallery-scroll .bh-pdp-image img,
	.bh-ensemble-pdp .bh-ensemble-builder__gallery-scroll .bh-gallery__slide img {
		width: 100% !important;
		height: auto !important;
		min-height: 0 !important;
		max-height: none !important;
		object-fit: cover !important;
		object-position: center top !important;
	}

	.bh-ensemble-pdp.bh-product .bh-product__col-summary,
	.bh-ensemble-pdp .bh-ensemble-builder__col-summary {
		height: 100% !important;
		max-height: 100% !important;
		position: sticky !important;
		top: var(--bh-ensemble-summary-sticky-top) !important;
		align-self: stretch !important;
		overscroll-behavior: contain !important;
	}
}

/* === Summary board + galerie restaurée === */
@media (min-width: 1024px) {
	.bh-ensemble-pdp .bh-ensemble-builder__layout {
		height: auto !important;
		min-height: 0 !important;
		overflow: visible !important;
		align-items: start !important;
	}

	.bh-ensemble-pdp.bh-product .bh-product__col-gallery,
	.bh-ensemble-pdp .bh-ensemble-builder__col-gallery,
	.bh-ensemble-pdp .bh-ensemble-builder__gallery-wrap,
	.bh-ensemble-pdp .bh-ensemble-builder__media,
	.bh-ensemble-pdp #bh-viewport,
	.bh-ensemble-pdp #bh-viewport.bh-gallery__viewport {
		height: auto !important;
		min-height: 0 !important;
		max-height: none !important;
		overflow: visible !important;
	}

	.bh-ensemble-pdp .bh-ensemble-builder__media {
		display: block !important;
	}

	.bh-ensemble-pdp.bh-product .bh-product__col-summary,
	.bh-ensemble-pdp .bh-ensemble-builder__col-summary {
		height: calc(100vh - var(--bh-ensemble-summary-sticky-top)) !important;
		max-height: calc(100vh - var(--bh-ensemble-summary-sticky-top)) !important;
		overflow-y: auto !important;
		position: sticky !important;
		top: var(--bh-ensemble-summary-sticky-top) !important;
		align-self: start !important;
	}

	.bh-ensemble-pdp .bh-ensemble-ghost-landing--summary {
		height: auto !important;
		min-height: 0 !important;
		max-height: none !important;
		margin: 0 0 22px !important;
		padding: 0 0 22px !important;
		overflow: visible !important;
		background: transparent !important;
		border-bottom: 1px solid var(--bh-ensemble-border) !important;
	}

	.bh-ensemble-pdp .bh-ensemble-ghost-landing--summary .bh-ensemble-ghost-board {
		grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)) !important;
		height: auto !important;
		min-height: 0 !important;
		gap: 12px !important;
	}

	.bh-ensemble-pdp .bh-ensemble-ghost-landing--summary .bh-ensemble-ghost-piece {
		grid-template-rows: 28px 98px 15px 18px !important;
		min-height: 0 !important;
		height: auto !important;
		overflow: visible !important;
	}

	.bh-ensemble-pdp .bh-ensemble-ghost-landing--summary .bh-ensemble-ghost-piece__head {
		height: 28px !important;
	}

	.bh-ensemble-pdp .bh-ensemble-ghost-landing--summary .bh-ensemble-ghost-piece__title-pill {
		max-width: none !important;
		font-size: 9px !important;
	}

	.bh-ensemble-pdp .bh-ensemble-ghost-landing--summary .bh-ensemble-ghost-piece__media {
		height: 98px !important;
		max-height: 98px !important;
		overflow: hidden !important;
	}

	.bh-ensemble-pdp .bh-ensemble-ghost-landing--summary .bh-ensemble-ghost-piece--accessory .bh-ensemble-ghost-piece__media,
	.bh-ensemble-pdp .bh-ensemble-ghost-landing--summary .bh-ensemble-ghost-piece--accessoire .bh-ensemble-ghost-piece__media,
	.bh-ensemble-pdp .bh-ensemble-ghost-landing--summary .bh-ensemble-ghost-piece--shoes .bh-ensemble-ghost-piece__media,
	.bh-ensemble-pdp .bh-ensemble-ghost-landing--summary .bh-ensemble-ghost-piece--chaussures .bh-ensemble-ghost-piece__media {
		height: 78px !important;
		max-height: 78px !important;
	}

}

/* === Panier live popup ensemble === */
.bh-ensemble-sticky-cta__btn {
	--bh-live-progress: 0%;
	position: relative;
	overflow: hidden;
	background: #e7decf !important;
	color: var(--bh-text-on-light) !important;
	border-radius: 0 !important;
}

.bh-ensemble-sticky-cta__btn::before {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: var(--bh-live-progress);
	background: #f4c430;
	transition: width 0.35s ease;
}

.bh-ensemble-sticky-cta__label {
	position: relative;
	z-index: 1;
}

.bh-ensemble-sticky-cta__btn:disabled {
	cursor: pointer;
	opacity: 1;
}

.bh-ensemble-live-cart[hidden] {
	display: none !important;
}

.bh-ensemble-live-cart {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: grid;
	place-items: center;
	padding: 24px;
}

.bh-ensemble-live-cart__overlay {
	position: absolute;
	inset: 0;
	background: rgba(28, 6, 113, 0.34);
	backdrop-filter: blur(8px);
}

.bh-ensemble-live-cart__dialog {
	position: relative;
	z-index: 1;
	width: min(560px, calc(100vw - 36px));
	max-height: min(720px, calc(100vh - 42px));
	overflow-y: auto;
	padding: 24px;
	border: 1px solid rgba(28, 6, 113, 0.12);
	border-radius: 22px;
	background: var(--bh-bg-section);
	box-shadow: 0 28px 70px rgba(28, 6, 113, 0.24);
	box-sizing: border-box;
}

.bh-ensemble-live-cart__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 18px;
	padding-bottom: 16px;
	margin-bottom: 10px;
	border-bottom: 1px solid rgba(28, 6, 113, 0.12);
}

.bh-ensemble-live-cart__eyebrow,
.bh-ensemble-live-cart__name,
.bh-ensemble-live-cart__price,
.bh-ensemble-live-cart__total,
.bh-ensemble-live-cart__validate,
.bh-ensemble-live-cart__change-size,
.bh-ensemble-live-cart__size {
	font-family: var(--bh-condensed);
	text-transform: uppercase;
}

.bh-ensemble-live-cart__eyebrow {
	margin: 0;
	color: rgba(28, 6, 113, 0.55);
	font-size: 11px;
	letter-spacing: 2px;
}

.bh-ensemble-live-cart__title {
	margin: 3px 0 0;
	color: var(--bh-text-on-light);
	font-family: var(--bh-condensed);
	font-size: clamp(30px, 4vw, 44px);
	line-height: 0.95;
	text-transform: uppercase;
}

.bh-ensemble-live-cart__close,
.bh-ensemble-live-cart__remove {
	display: grid;
	place-items: center;
	border: 1px solid rgba(28, 6, 113, 0.12);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.42);
	color: var(--bh-text-on-light);
	cursor: pointer;
	line-height: 1;
}

.bh-ensemble-live-cart__close {
	width: 34px;
	height: 34px;
	font-size: 20px;
}

.bh-ensemble-live-cart__rows {
	display: grid;
	gap: 8px;
}

.bh-ensemble-live-cart__row {
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
	min-height: 64px;
	padding: 9px 0;
	border-bottom: 1px solid rgba(28, 6, 113, 0.08);
}

.bh-ensemble-live-cart__media {
	width: 48px;
	height: 48px;
	display: grid;
	place-items: center;
}

.bh-ensemble-live-cart__media img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	filter: drop-shadow(0 10px 14px rgba(28, 6, 113, 0.14));
}

.bh-ensemble-live-cart__body {
	min-width: 0;
	display: grid;
	gap: 3px;
}

.bh-ensemble-live-cart__name {
	margin: 0;
	color: var(--bh-text-on-light);
	font-size: 12px;
	letter-spacing: 1.15px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.bh-ensemble-live-cart__meta {
	margin: 0;
	color: rgba(28, 6, 113, 0.62);
	font-size: 13px;
}

.bh-ensemble-live-cart__change-size {
	width: max-content;
	margin-top: 5px;
	padding: 5px 9px;
	border: 1px solid rgba(28, 6, 113, 0.12);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.42);
	color: var(--bh-text-on-light);
	font-size: 10px;
	letter-spacing: 1px;
	cursor: pointer;
}

.bh-ensemble-live-cart__swatches,
.bh-ensemble-live-cart__sizes {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 7px;
}

.bh-ensemble-live-cart__swatch {
	position: relative;
	width: 18px;
	height: 18px;
	padding: 0;
	border: 1px solid rgba(28, 6, 113, 0.18);
	border-radius: 999px;
	background: var(--bh-live-swatch, #d8d2c8);
	cursor: pointer;
}

.bh-ensemble-live-cart__swatch.is-active {
	border-color: var(--bh-text-on-light);
	box-shadow: 0 0 0 3px var(--bh-bg-section), 0 0 0 4.5px var(--bh-text-on-light);
}

.bh-ensemble-live-cart__size {
	min-width: 36px;
	height: 30px;
	padding: 0 8px;
	border: 1px solid rgba(28, 6, 113, 0.12);
	background: rgba(255, 255, 255, 0.42);
	color: var(--bh-text-on-light);
	font-size: 11px;
	letter-spacing: 0.8px;
	cursor: pointer;
}

.bh-ensemble-live-cart__size.is-active {
	background: var(--bh-text-on-light);
	border-color: var(--bh-text-on-light);
	color: #fff;
}

.bh-ensemble-live-cart__size.is-unavailable,
.bh-ensemble-live-cart__size:disabled {
	color: rgba(28, 6, 113, 0.24);
	text-decoration: line-through;
	cursor: not-allowed;
}

.bh-ensemble-live-cart__aside {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
}

.bh-ensemble-live-cart__price {
	color: var(--bh-text-on-light);
	font-size: 13px;
	letter-spacing: 0.8px;
	white-space: nowrap;
}

.bh-ensemble-live-cart__remove {
	width: 24px;
	height: 24px;
	color: rgba(28, 6, 113, 0.55);
}

.bh-ensemble-live-cart__total {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	margin-top: 16px;
	color: var(--bh-text-on-light);
	font-size: 15px;
	letter-spacing: 1.2px;
}

.bh-ensemble-live-cart__validate {
	width: 100%;
	margin-top: 18px;
	padding: 17px 20px;
	border: 0;
	background: #f4c430;
	color: var(--bh-text-on-light);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 1px;
	cursor: pointer;
}

.bh-ensemble-live-cart__validate:disabled {
	background: #e7decf;
	color: rgba(28, 6, 113, 0.4);
	cursor: not-allowed;
}

@media (max-width: 640px) {
	.bh-ensemble-live-cart {
		padding: 14px;
	}

	.bh-ensemble-live-cart__dialog {
		width: calc(100vw - 20px);
		max-height: calc(100vh - 20px);
		padding: 18px;
	}

	.bh-ensemble-live-cart__row {
		grid-template-columns: 42px minmax(0, 1fr);
	}

	.bh-ensemble-live-cart__aside {
		grid-column: 2;
		justify-content: space-between;
	}
}

/* === ensemblePageMotion parity: only the board + live cart flow is visible === */
.bh-ensemble-builder__panels--legacy[hidden] {
	display: none !important;
}

.bh-ensemble-live-cart-dock {
	padding: 16px 0;
	border-bottom: 1px solid rgba(28, 6, 113, 0.12);
}

.bh-ensemble-live-cart-open {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 12px 15px;
	border: 1px solid rgba(28, 6, 113, 0.12);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.34);
	color: var(--bh-text-on-light);
	font-family: var(--bh-condensed);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 1.4px;
	text-transform: uppercase;
	cursor: pointer;
}

.bh-ensemble-live-cart-open [data-live-cart-dock-meta] {
	color: rgba(28, 6, 113, 0.55);
	font-size: 12px;
	letter-spacing: 1px;
	white-space: nowrap;
}

.bh-ensemble-pdp .bh-ensemble-ghost-landing--summary .bh-ensemble-ghost-board {
	align-items: start !important;
}

.bh-ensemble-pdp .bh-ensemble-ghost-landing--summary .bh-ensemble-ghost-piece {
	grid-template-rows: 18px 98px 15px 18px auto !important;
	row-gap: 5px !important;
	min-height: 220px !important;
	padding: 0 4px 6px !important;
}

.bh-ensemble-ghost-piece__sizes {
	width: 100%;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(34px, 1fr));
	gap: 5px;
	margin-top: 4px;
}

.bh-ensemble-ghost-size {
	min-height: 28px;
	padding: 6px 0;
	border: 1px solid rgba(28, 6, 113, 0.12);
	background: transparent;
	color: rgba(28, 6, 113, 0.58);
	font-family: var(--bh-condensed);
	font-size: 11px;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	cursor: pointer;
}

.bh-ensemble-ghost-size.is-active {
	background: var(--bh-text-on-light);
	border-color: var(--bh-text-on-light);
	color: #fff;
}

.bh-ensemble-ghost-size.is-unavailable,
.bh-ensemble-ghost-size:disabled {
	background: rgba(0, 0, 0, 0.02);
	color: rgba(28, 6, 113, 0.24);
	text-decoration: line-through;
	cursor: not-allowed;
}

.bh-ensemble-pdp .bh-ensemble-sticky-cta {
	position: static !important;
	padding: 16px 0 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	z-index: auto !important;
	border-top: 1px solid rgba(28, 6, 113, 0.12);
}

.bh-ensemble-pdp .bh-ensemble-sticky-cta__btn {
	border-radius: 0 !important;
	padding: 17px 0 !important;
	font-family: var(--bh-condensed);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.bh-ensemble-pdp .bh-ensemble-cta__hint {
	margin-top: 11px !important;
	color: rgba(28, 6, 113, 0.55) !important;
	font-family: var(--bh-condensed);
	font-size: 11px !important;
	letter-spacing: 1px;
	text-align: center;
	text-transform: uppercase;
}

/* === Mobile ensemblePageMotion parity ======================================= */
.bh-ensemble-mobile-topbar {
	display: none;
}

.bh-ensemble-ghost-piece__price {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 16px;
	padding: 1px 5px;
	border: 1px solid rgba(28, 6, 113, 0.12);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.42);
	color: var(--bh-text-on-light);
	font-size: 9px;
	letter-spacing: 0.7px;
	white-space: nowrap;
}

@keyframes bh-ensemble-scroll-hint {
	0%,
	100% {
		opacity: 0.58;
		transform: translateX(0);
	}

	50% {
		opacity: 1;
		transform: translateX(8px);
	}
}

@media (max-width: 768px) {
	.bh-ensemble-pdp .bh-ensemble-builder {
		padding-bottom: 0 !important;
	}

	.bh-ensemble-pdp .bh-ensemble-builder__header,
	.bh-ensemble-pdp .bh-ensemble-sheet__peek,
	.bh-ensemble-pdp .bh-ensemble-summary-head,
	.bh-ensemble-pdp .bh-ensemble-builder__desktop-summary-head,
	.bh-ensemble-pdp .bh-ensemble-live-cart-dock,
	.bh-ensemble-pdp .bh-ensemble-cta__hint {
		display: none !important;
	}

	.bh-ensemble-pdp .bh-ensemble-builder__gallery-scroll,
	.bh-ensemble-pdp .bh-ensemble-builder__media,
	.bh-ensemble-pdp #bh-viewport,
	.bh-ensemble-pdp #bh-viewport.bh-gallery__viewport,
	.bh-ensemble-pdp #bh-viewport.bh-ensemble-builder__viewport {
		height: auto !important;
		min-height: 100vh !important;
		overflow: visible !important;
	}

	.bh-ensemble-pdp .bh-ensemble-builder #bh-viewport .bh-pdp-image:first-child,
	.bh-ensemble-pdp .bh-ensemble-builder #bh-viewport .bh-gallery__slide:first-child {
		height: 100dvh !important;
		height: 100vh !important;
		min-height: 100vh !important;
		margin: 0 !important;
		overflow: hidden !important;
	}

	.bh-ensemble-pdp .bh-ensemble-builder #bh-viewport .bh-pdp-image:first-child img,
	.bh-ensemble-pdp .bh-ensemble-builder #bh-viewport .bh-gallery__slide:first-child img {
		width: 100% !important;
		height: 100% !important;
		max-height: none !important;
		object-fit: cover !important;
		object-position: center top !important;
	}

	.bh-ensemble-pdp .bh-ensemble-builder #bh-ensemble-sheet {
		--bh-mobile-sheet-peek: 260px;
		--bh-ensemble-live-hint-height: 46px;
		position: fixed !important;
		left: 0 !important;
		right: 0 !important;
		bottom: 0 !important;
		z-index: 260 !important;
		display: flex !important;
		flex-direction: column !important;
		width: auto !important;
		max-width: none !important;
		max-height: 92vh !important;
		margin: 0 !important;
		padding: var(--bh-ensemble-live-hint-height) 0 0 !important;
		border-radius: 18px 18px 0 0 !important;
		background: transparent !important;
		box-shadow: 0 -18px 48px rgba(28, 6, 113, 0.22) !important;
		overflow: visible !important;
		transform: translateY(0) !important;
		transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1) !important;
	}

	.bh-ensemble-pdp .bh-ensemble-builder #bh-ensemble-sheet.is-sheet-open {
		transform: translateY(0) !important;
	}

	.bh-ensemble-pdp .bh-ensemble-builder #bh-ensemble-sheet.is-sheet-docked:not(.is-sheet-open) {
		transform: translateY(calc(100% - var(--bh-ensemble-live-hint-height) - env(safe-area-inset-bottom, 0px))) !important;
	}

	.bh-ensemble-pdp .bh-ensemble-builder #bh-ensemble-sheet::before {
		display: none !important;
	}

	.bh-ensemble-pdp .bh-ensemble-toggle {
		position: absolute !important;
		top: -10px !important;
		left: 50% !important;
		z-index: 5 !important;
		width: 38px !important;
		height: 4px !important;
		min-height: 0 !important;
		margin: 0 !important;
		padding: 0 !important;
		border: 0 !important;
		border-radius: 999px !important;
		background: rgba(255, 255, 255, 0.72) !important;
		box-shadow: 0 1px 8px rgba(28, 6, 113, 0.18) !important;
		color: transparent !important;
		transform: translateX(-50%) !important;
	}

	.bh-ensemble-pdp .bh-ensemble-toggle svg {
		display: none !important;
	}

	.bh-ensemble-mobile-topbar {
		display: none !important;
	}

	.bh-ensemble-pdp .bh-ensemble-sheet-live-hint {
		position: absolute !important;
		top: 0 !important;
		left: 0 !important;
		right: 0 !important;
		z-index: 6 !important;
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) auto !important;
		align-items: center !important;
		gap: 10px !important;
		min-height: var(--bh-ensemble-live-hint-height) !important;
		padding: 9px 20px 7px !important;
		border-radius: 18px 18px 0 0 !important;
		background: var(--bh-brand-cream) !important;
		box-shadow: 0 1px 0 rgba(28, 6, 113, 0.08) !important;
		box-sizing: border-box !important;
	}

	.bh-ensemble-pdp .bh-ensemble-sheet-live-hint::before {
		content: "";
		position: absolute;
		top: 6px;
		left: 50%;
		width: 58px;
		height: 4px;
		border-radius: 999px;
		background: rgba(28, 6, 113, 0.18);
		transform: translateX(-50%);
	}

	.bh-ensemble-pdp .bh-ensemble-sheet-live-hint__title {
		min-width: 0;
		padding-top: 6px;
		color: var(--bh-text-on-light);
		font-family: var(--bh-condensed);
		font-size: 19px;
		font-weight: 800;
		letter-spacing: 0.15px;
		line-height: 1;
		text-transform: uppercase;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.bh-ensemble-pdp .bh-ensemble-sheet-live-hint__swipe {
		margin-top: 6px;
		padding: 4px 10px;
		border-radius: 999px;
		background: #f4c430;
		box-shadow: 0 6px 16px rgba(28, 6, 113, 0.12);
		color: var(--bh-brand-navy);
		font-family: var(--bh-condensed);
		font-size: 8px;
		font-weight: 700;
		letter-spacing: 1px;
		line-height: 1;
		text-transform: uppercase;
		white-space: nowrap;
		animation: bh-ensemble-scroll-hint 1.45s ease-in-out infinite;
	}

	.bh-ensemble-mobile-topbar__reset {
		flex: 0 0 auto;
		padding: 4px 8px;
		border: 1px solid #e2dace;
		border-radius: 999px;
		background: rgba(255, 255, 255, 0.42);
		color: var(--bh-brand-navy);
		font-family: var(--bh-condensed);
		font-size: 9px;
		letter-spacing: 0.9px;
		text-transform: uppercase;
		cursor: pointer;
	}

	.bh-ensemble-pdp .bh-ensemble-sticky-cta {
		order: 4;
		position: static !important;
		display: block !important;
		margin: 0 !important;
		padding: 2px 0 calc(8px + env(safe-area-inset-bottom, 0px)) !important;
		border-top: 0 !important;
		border-bottom: 0 !important;
		background: var(--bh-brand-cream) !important;
		box-shadow: none !important;
	}

	.bh-ensemble-pdp #bh-ensemble-sheet:not(.is-sheet-open) .bh-ensemble-sticky-cta,
	.bh-ensemble-pdp #bh-ensemble-sheet.is-sheet-open .bh-ensemble-sticky-cta {
		display: block !important;
	}

	.bh-ensemble-pdp .bh-ensemble-sticky-cta__btn {
		min-height: 0 !important;
		padding: 11px 0 !important;
		border-radius: 999px !important;
		background: #f4c430 !important;
		color: var(--bh-brand-navy) !important;
		font-size: 11px !important;
		line-height: 1 !important;
		letter-spacing: 1px !important;
	}

	.bh-ensemble-pdp .bh-ensemble-sticky-cta__btn::before,
	.bh-ensemble-pdp .bh-ensemble-sticky-cta__sep,
	.bh-ensemble-pdp .bh-ensemble-sticky-cta__price {
		display: none !important;
	}

	.bh-ensemble-pdp .bh-ensemble-ghost-landing--summary {
		order: 3;
		margin: 0 !important;
		padding: 0 !important;
		border-bottom: 0 !important;
		background: var(--bh-brand-cream) !important;
		overflow: hidden !important;
	}

	.bh-ensemble-pdp .bh-ensemble-ghost-landing--summary .bh-ensemble-ghost-board {
		position: relative;
		display: flex !important;
		flex-wrap: nowrap !important;
		align-items: start !important;
		gap: 7px !important;
		width: 100% !important;
		min-height: 0 !important;
		padding: 0 !important;
		box-sizing: border-box;
		overflow-x: auto !important;
		overflow-y: hidden !important;
		-webkit-overflow-scrolling: touch;
		scroll-snap-type: x proximity;
		scrollbar-width: none;
	}

	.bh-ensemble-pdp .bh-ensemble-ghost-landing--summary .bh-ensemble-ghost-board::-webkit-scrollbar {
		display: none !important;
	}

	.bh-ensemble-pdp .bh-ensemble-ghost-landing--summary .bh-ensemble-ghost-board::before {
		display: none !important;
	}

	.bh-ensemble-pdp .bh-ensemble-ghost-landing--summary .bh-ensemble-ghost-piece {
		flex: 0 0 112px !important;
		min-width: 112px !important;
		min-height: 142px !important;
		grid-template-rows: 24px 64px 12px 24px !important;
		row-gap: 2px !important;
		padding: 0 2px 2px !important;
		scroll-snap-align: center;
	}

	.bh-ensemble-pdp .bh-ensemble-ghost-piece__head {
		height: 24px !important;
		grid-template-columns: 22px minmax(0, 1fr) auto 22px !important;
		gap: 2px !important;
	}

	.bh-ensemble-pdp .bh-ensemble-ghost-piece__title-pill {
		max-width: 64px !important;
		padding: 3px 5px !important;
		font-size: 8px !important;
	}

	.bh-ensemble-pdp .bh-ensemble-ghost-piece__head .bh-ensemble-ghost-piece__price {
		min-height: 13px !important;
		padding: 0 4px !important;
		font-size: 6.5px !important;
	}

	.bh-ensemble-pdp .bh-ensemble-ghost-piece__head .bh-ensemble-ghost-piece__nav {
		width: 22px !important;
		height: 20px !important;
		gap: 0 !important;
		font-size: 0 !important;
	}

	.bh-ensemble-pdp .bh-ensemble-ghost-piece__cycle-text {
		display: none !important;
	}

	.bh-ensemble-pdp .bh-ensemble-ghost-piece__cycle-dot {
		width: 12px !important;
		height: 12px !important;
	}

	.bh-ensemble-pdp .bh-ensemble-ghost-piece__media,
	.bh-ensemble-pdp .bh-ensemble-ghost-piece--accessory .bh-ensemble-ghost-piece__media,
	.bh-ensemble-pdp .bh-ensemble-ghost-piece--accessoire .bh-ensemble-ghost-piece__media,
	.bh-ensemble-pdp .bh-ensemble-ghost-piece--shoes .bh-ensemble-ghost-piece__media,
	.bh-ensemble-pdp .bh-ensemble-ghost-piece--chaussures .bh-ensemble-ghost-piece__media,
	.bh-ensemble-pdp .bh-ensemble-ghost-piece--bottom .bh-ensemble-ghost-piece__media,
	.bh-ensemble-pdp .bh-ensemble-ghost-piece--bas .bh-ensemble-ghost-piece__media {
		width: 82% !important;
		height: 64px !important;
		max-height: 64px !important;
		touch-action: pan-y;
	}

	.bh-ensemble-pdp .bh-ensemble-ghost-piece--bottom .bh-ensemble-ghost-piece__media,
	.bh-ensemble-pdp .bh-ensemble-ghost-piece--bas .bh-ensemble-ghost-piece__media {
		width: 70% !important;
	}

	.bh-ensemble-pdp .bh-ensemble-ghost-piece__color {
		height: 12px !important;
		font-size: 9px !important;
		letter-spacing: 0.1em !important;
	}

	.bh-ensemble-pdp .bh-ensemble-ghost-piece__swatches {
		height: 24px !important;
		gap: 8px !important;
	}

	.bh-ensemble-pdp .bh-ensemble-ghost-board-swatch {
		width: 22px !important;
		height: 22px !important;
		border-width: 1.5px !important;
		border-radius: 5px !important;
		box-shadow: 0 1px 4px rgba(28, 6, 113, 0.12);
	}

	.bh-ensemble-pdp .bh-ensemble-ghost-board-swatch.is-active {
		box-shadow: 0 0 0 2px var(--bh-brand-cream), 0 0 0 3.5px var(--bh-text-on-light) !important;
	}

	.bh-ensemble-pdp .bh-ensemble-ghost-piece__sizes {
		display: none !important;
	}

	.bh-ensemble-pdp .bh-ensemble-ghost-size {
		min-height: 22px !important;
		padding: 3px 0 !important;
		font-size: 9px !important;
	}

	.bh-ensemble-pdp .bh-ensemble-live-cart {
		align-items: flex-end;
		padding: 0 !important;
	}

	.bh-ensemble-pdp .bh-ensemble-live-cart__dialog {
		width: 100% !important;
		max-height: min(68vh, calc(100dvh - 170px)) !important;
		margin: 0 !important;
		padding: 20px 18px calc(20px + env(safe-area-inset-bottom, 0px)) !important;
		border-radius: 22px 22px 0 0 !important;
	}
}
