/**
 * BienHabillé — Look 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-look-builder {
	--bh-look-accent: #c8a97e;
	--bh-look-text: #111;
	--bh-look-muted: #888;
	--bh-look-border: #e8e8e8;
	--bh-look-bg: #ffffff;
	--bh-look-bg-alt: #f7f5f0;
	--bh-look-radius: 12px;
	--bh-look-radius-sm: 8px;
	--bh-look-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
	--bh-look-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* === RESET LAYOUT WRAPPER === */
.bh-look-builder {
	max-width: 100%;
	margin: 0 auto;
	padding: 0 0 110px 0;
	font-family: inherit;
	color: var(--bh-look-text);
}

.bh-look-builder__header,
.bh-look-builder__panels {
	padding-left: 16px;
	padding-right: 16px;
}

.bh-look-builder__tabs {
	padding-left: 0;
	padding-right: 0;
	margin-left: 16px;
	margin-right: 16px;
}

.bh-look-builder__thumbs-bar {
	padding-left: 16px;
	padding-right: 16px;
}

.bh-look-pdp .bh-gallery__dots {
	padding-left: 16px;
	padding-right: 16px;
	box-sizing: border-box;
}

/* === HEADER (titre + reset) === */
.bh-look-builder__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 16px;
}

.bh-look-builder__title-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	flex: 1 1 100%;
	min-width: 0;
}

.bh-look-builder__title-row .bh-look-builder__title {
	flex: 1;
	min-width: 0;
}

.bh-look-builder__title {
	font-size: 18px;
	font-weight: 700;
	font-style: italic;
	margin: 0;
	flex: 1;
	letter-spacing: 0.005em;
}

.bh-look-builder__reset {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: transparent;
	border: 1px solid var(--bh-look-border);
	border-radius: 999px;
	padding: 6px 12px;
	font-size: 12px;
	cursor: pointer;
	color: var(--bh-look-text);
	transition: background 0.15s, border-color 0.15s;
}

.bh-look-builder__reset:hover {
	background: var(--bh-look-bg-alt);
	border-color: var(--bh-look-accent);
}

.bh-look-builder__reset-icon {
	font-size: 16px;
	font-weight: 700;
}

/* === WRAP GALERIE : colonne mobile, rangée desktop === */
.bh-look-builder__gallery-wrap {
	display: flex;
	flex-direction: column;
	min-width: 0;
	gap: 0;
}

/* === GALERIE PRINCIPALE === */
.bh-look-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-look-builder #bh-viewport::-webkit-scrollbar,
.bh-look-builder .bh-look-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-look-single,
	main.bh-look-pdp,
	.bh-look-single,
	.bh-look-pdp {
		overflow-x: hidden;
	}

	/*
	 * Galerie pleine largeur écran : sortir du padding du single (.bh-look-single)
	 * et supprimer le padding latéral des vignettes.
	 */
	.bh-look-pdp .bh-product__col-gallery .bh-look-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-look-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-look-builder #bh-look-tabs,
	.bh-look-pdp .bh-product__col-summary .bh-look-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-look-pdp .bh-product__col-summary .bh-look-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-look-builder #bh-look-tabs,
	.bh-look-builder #bh-look-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-look-single (look-base).
	 */

	.bh-look-builder__thumbs-bar {
		padding-left: 0;
		padding-right: 0;
	}

	/* Vignettes horizontales AU-DESSUS du grand visuel */
	.bh-look-builder__gallery-wrap > .bh-look-builder__thumbs-bar {
		order: -1;
		margin-bottom: 12px;
	}

	.bh-look-builder__gallery-wrap > .bh-look-builder__media {
		order: 0;
	}

	.bh-look-builder__media {
		border-radius: 0;
		width: 100%;
	}

	.bh-look-builder__thumbs-bar {
		display: none;
	}

	.bh-look-builder__media {
		aspect-ratio: auto;
		height: auto;
		overflow: visible;
	}

	.bh-look-builder #bh-viewport.bh-pdp-stack,
	.bh-look-builder #bh-viewport.bh-gallery__viewport,
	.bh-look-builder #bh-viewport.bh-look-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-look-builder #bh-viewport .bh-pdp-image,
	.bh-look-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-look-builder #bh-viewport .bh-pdp-image img,
	.bh-look-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-look-builder #bh-look-viewport-shell.bh-look-builder__viewport-shell--zoom #bh-viewport {
	overflow: auto !important;
}

.bh-look-builder__viewport-shell--zoom .bh-gallery__viewport .bh-gallery__slide img,
.bh-look-builder__viewport-shell--zoom .bh-look-builder__viewport .bh-gallery__slide img {
	transform: scale(1.12);
	transform-origin: center center;
	transition: transform 0.25s ease;
}

/* === ACTIONS FLOTTANTES (zoom, fullscreen) === */
.bh-look-builder__media-actions {
	position: absolute;
	top: 12px;
	right: 12px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	z-index: 5;
}

.bh-look-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-look-shadow);
	color: var(--bh-look-text);
	transition: background 0.15s, transform 0.15s;
}

.bh-look-action-btn:hover {
	background: #fff;
	transform: scale(1.05);
}

.bh-look-action-btn svg {
	display: block;
}

/* === FLOATING BAR : CARD PRIX + APERÇU === */
.bh-look-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-look-builder__price-card {
	background: rgba(255, 255, 255, 0.96);
	border-radius: var(--bh-look-radius-sm);
	padding: 10px 14px;
	box-shadow: var(--bh-look-shadow);
	pointer-events: auto;
	flex-shrink: 1;
	min-width: 0;
	max-width: 50%;
}

.bh-look-builder__price-label {
	display: block;
	font-size: 11px;
	color: var(--bh-look-muted);
	letter-spacing: 0.05em;
	margin-bottom: 2px;
}

.bh-look-builder__price-value {
	display: block;
	font-size: 17px;
	font-weight: 700;
	color: var(--bh-look-text);
}

.bh-look-builder__price-value .woocommerce-amount,
.bh-look-builder__price-value .woocommerce-Price-amount {
	font: inherit;
	color: inherit;
}

.bh-look-builder__preview-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--bh-look-text);
	color: #fff;
	border: none;
	border-radius: var(--bh-look-radius-sm);
	padding: 10px 14px;
	font-size: 12px;
	font-weight: 500;
	cursor: pointer;
	box-shadow: var(--bh-look-shadow);
	pointer-events: auto;
	white-space: nowrap;
	transition: background 0.15s;
	flex-shrink: 0;
	max-width: 50%;
}

.bh-look-builder__preview-btn:hover {
	background: var(--bh-look-accent);
}

.bh-look-builder__preview-btn svg {
	flex-shrink: 0;
	width: 16px;
	height: 16px;
}

/* === THUMBS HORIZONTAUX === */
.bh-look-builder .bh-gallery__dots[hidden],
.bh-look-builder__thumbs-bar + .bh-gallery__dots[hidden] {
	display: none !important;
}

.bh-look-builder__thumbs-bar {
	margin-bottom: 16px;
	overflow: hidden;
}

.bh-look-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-look-builder__thumbs::-webkit-scrollbar {
	height: 4px;
}

.bh-look-builder__thumbs::-webkit-scrollbar-thumb {
	background: var(--bh-look-border);
	border-radius: 2px;
}

.bh-look-builder__thumbs .bh-gallery__thumb {
	flex: 0 0 88px;
	flex-shrink: 0;
	width: 88px;
	height: 88px;
	background: var(--bh-look-bg-alt);
	border: 2px solid transparent;
	border-radius: var(--bh-look-radius-sm);
	overflow: hidden;
	cursor: pointer;
	padding: 0;
	scroll-snap-align: start;
	transition: border-color 0.15s;
}

.bh-look-builder__thumbs .bh-gallery__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.bh-look-builder__thumbs .bh-gallery__thumb.is-active {
	border-color: var(--bh-look-text);
}

/* === TABS DES PIÈCES === */
.bh-look-builder__tabs {
	display: flex;
	border-bottom: 1px solid var(--bh-look-border);
	margin-bottom: 16px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	gap: 0;
}

.bh-look-builder__tabs::-webkit-scrollbar {
	display: none;
}

.bh-look-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-look-muted);
	font-size: 13px;
	font-weight: 500;
	border-bottom: 2px solid transparent;
	transition: color 0.15s, border-color 0.15s;
}

.bh-look-tab:hover {
	color: var(--bh-look-text);
}

.bh-look-tab.is-active {
	color: var(--bh-look-text);
	border-bottom-color: var(--bh-look-text);
}

.bh-look-tab__thumb {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border: 1px solid transparent;
	border-radius: 12px;
	background: #f7f5f0;
	overflow: hidden;
	transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.bh-look-tab__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 5px;
	box-sizing: border-box;
}

.bh-look-tab.is-active .bh-look-tab__thumb {
	border-color: #71c9d8;
	background: #eefbff;
	box-shadow: inset 0 0 0 1px rgba(113, 201, 216, 0.4);
}

.bh-look-tab__icon,
.bh-look-tab__ic {
	display: flex;
}

.bh-look-tab__icon svg,
.bh-look-tab__ic svg {
	display: block;
}

.bh-look-tab__label,
.bh-look-tab__text {
	font-size: 13px;
}

/* === PANELS DES PIÈCES === */
#bh-look-sheet {
	min-width: 0;
}

.bh-look-builder__panels {
	background: var(--bh-look-bg);
	border: 1px solid var(--bh-look-border);
	border-radius: var(--bh-look-radius-sm);
	padding: 14px;
}

.bh-look-pane {
	display: none;
}

.bh-look-pane.is-active {
	display: block;
}

/* Un groupe slot visible à la fois (mobile ; desktop : tous ouverts ci-dessous) */
.bh-look-builder__panels .bh-look-slot-panel:not(.is-active) {
	display: none;
	pointer-events: none;
}

.bh-look-builder__panels .bh-look-slot-panel.is-active {
	display: block;
	pointer-events: auto;
}

.bh-look-slot-panel .bh-look-piece + .bh-look-piece {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid var(--bh-look-border);
}

/* === PIÈCE (header thumb + nom + prix) === */
.bh-look-piece {
	background: transparent;
	border: none;
	border-radius: 0;
	box-shadow: none;
	padding: 0;
	transition: none;
}

.bh-look-piece:hover {
	border-color: transparent;
}

.bh-look-piece__head {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin-bottom: 16px;
}

.bh-look-piece__thumb {
	flex: 0 0 64px;
	width: 64px;
	height: 64px;
	border-radius: var(--bh-look-radius-sm);
	overflow: hidden;
	background: var(--bh-look-bg-alt);
	display: block;
}

.bh-look-piece__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.bh-look-piece__info {
	flex: 1;
	min-width: 0;
}

.bh-look-piece__slot {
	display: none; /* slot label déjà visible dans la tab */
}

.bh-look-piece__title {
	display: block;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--bh-look-text);
	text-decoration: none;
	margin-bottom: 4px;
}

.bh-look-piece__price {
	font-size: 14px;
	color: var(--bh-look-text);
	font-weight: 600;
	margin-top: 4px;
}

.bh-look-piece__price .woocommerce-Price-amount {
	color: var(--bh-look-text);
	font-weight: 600;
}

.bh-look-piece__price del {
	color: var(--bh-look-muted);
	font-weight: 400;
	margin-right: 6px;
}

.bh-look-piece__price ins {
	background: transparent;
	text-decoration: none;
	font-weight: 700;
}

.bh-look-piece__price--unavailable {
	font-style: italic;
	font-weight: 400;
	color: var(--bh-look-muted);
	font-size: 13px;
}

.bh-look-piece__title + .bh-look-piece__default-note,
.bh-look-piece__price + .bh-look-piece__default-note,
.bh-look-piece__info .bh-look-piece__default-note {
	display: none;
}

/* === SWATCHES COULEUR === */
.bh-look-piece__colors {
	margin-bottom: 18px;
	padding-top: 16px;
	border-top: 1px solid var(--bh-look-border);
}

.bh-look-piece__field-label {
	display: block;
	font-size: 11px;
	color: var(--bh-look-muted);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin-bottom: 10px;
}

.bh-look-piece__color-name {
	color: var(--bh-look-text);
	text-transform: none;
	letter-spacing: normal;
	font-weight: 500;
	font-size: 13px;
	margin-left: 6px;
}

.bh-look-piece__swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.bh-look-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-look-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-look-swatch[data-color-slug="blanc"] .bh-look-swatch__dot { background: #ffffff; border-color: rgba(0, 0, 0, 0.15); }
.bh-look-swatch[data-color-slug="noir"] .bh-look-swatch__dot { background: #000000; }
.bh-look-swatch[data-color-slug="vert"] .bh-look-swatch__dot { background: #2d6a3e; }
.bh-look-swatch[data-color-slug="rouge"] .bh-look-swatch__dot { background: #c0392b; }
.bh-look-swatch[data-color-slug="bleu"] .bh-look-swatch__dot { background: #1f4e79; }
.bh-look-swatch[data-color-slug="beige"] .bh-look-swatch__dot { background: #d8c3a5; }
.bh-look-swatch[data-color-slug="marron"] .bh-look-swatch__dot,
.bh-look-swatch[data-color-slug="brown"] .bh-look-swatch__dot { background: #5d4037; }
.bh-look-swatch[data-color-slug="gris"] .bh-look-swatch__dot { background: #888888; }
.bh-look-swatch[data-color-slug="rose"] .bh-look-swatch__dot { background: #e8b4bc; }
.bh-look-swatch[data-color-slug="kaki"] .bh-look-swatch__dot { background: #6b7245; }
.bh-look-swatch[data-color-slug="marine"] .bh-look-swatch__dot { background: #001f3f; }

.bh-look-swatch:hover:not(.is-disabled) {
	border-color: var(--bh-look-accent);
}

.bh-look-swatch.is-active {
	border-color: var(--bh-look-text);
}

.bh-look-swatch.is-disabled {
	opacity: 0.3;
	cursor: not-allowed;
	position: relative;
}

.bh-look-swatch.is-disabled::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 6px;
	right: 6px;
	height: 1px;
	background: #999;
	transform: rotate(-45deg);
}

/* === SÉLECTEUR TAILLE === */
.bh-look-piece__sizes {
	margin-bottom: 14px;
	padding-top: 16px;
	border-top: 1px solid var(--bh-look-border);
}

.bh-look-piece__size-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.bh-look-size-btn {
	min-width: 56px;
	padding: 12px 14px;
	border: 1px solid var(--bh-look-border);
	background: #fff;
	border-radius: var(--bh-look-radius-sm);
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
	color: var(--bh-look-text);
	transition: all 0.15s;
	position: relative;
	overflow: hidden;
}

.bh-look-size-btn:hover:not(:disabled):not(.is-unavailable) {
	border-color: var(--bh-look-text);
}

.bh-look-size-btn.is-active {
	border-color: var(--bh-look-text);
	background: var(--bh-look-text);
	color: #fff;
}

.bh-look-size-btn.is-unavailable {
	background: #fafafa;
	color: var(--bh-g3, #999);
	cursor: not-allowed;
	pointer-events: none;
	opacity: 1;
}

.bh-look-size-btn.is-unavailable:hover {
	border-color: var(--bh-look-border);
	background: #fafafa;
}

.bh-look-size-btn .bh-look-size-btn__cross,
.bh-look-size-btn .bh-cross {
	display: none;
}

.bh-look-size-btn.is-unavailable .bh-look-size-btn__cross,
.bh-look-size-btn.is-unavailable .bh-cross {
	display: block;
}

.bh-look-size-btn:disabled {
	cursor: not-allowed;
}

.bh-look-piece__notice {
	font-size: 13px;
	color: #b32d2e;
	margin-top: 10px;
}

/* === FOOTER PIÈCE (guide tailles + stock) === */
.bh-look-piece__footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 14px;
	border-top: 1px solid var(--bh-look-border);
	font-size: 13px;
	color: var(--bh-look-muted);
}

.bh-look-piece__size-guide {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--bh-look-muted);
	text-decoration: none;
	transition: color 0.15s;
}

.bh-look-piece__size-guide:hover {
	color: var(--bh-look-text);
}

.bh-look-piece__stock-status {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 500;
}

.bh-look-piece__stock-status--limited {
	color: var(--bh-look-accent);
}

.bh-look-piece__stock-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
}

.bh-look-piece__foot {
	display: none;
}

/* === STICKY CTA === */
.bh-look-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-look-sticky-cta__label .bh-look-sticky-cta__sep,
.bh-look-sticky-cta__label .bh-look-sticky-cta__price {
	font: inherit;
	color: inherit;
}

.bh-look-sticky-cta__label .woocommerce-amount,
.bh-look-sticky-cta__label .woocommerce-Price-amount {
	font: inherit;
	color: inherit;
}

.bh-look-sticky-cta__btn {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: var(--bh-look-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-look-sticky-cta__btn:hover:not(:disabled) {
	background: var(--bh-look-accent);
}

.bh-look-sticky-cta__btn:disabled {
	background: #444;
	cursor: not-allowed;
	opacity: 0.6;
}

.bh-look-sticky-cta__btn svg {
	flex-shrink: 0;
}

.bh-look-sticky-cta .bh-look-cta__hint {
	text-align: center;
	font-size: 12px;
	color: var(--bh-look-muted);
	margin: 8px 0 0;
}

/* === LIGHTBOX === */
.bh-look-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-look-lightbox.is-open {
	display: flex;
}

.bh-look-lightbox[hidden]:not(.is-open) {
	display: none !important;
}

.bh-look-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-look-lightbox__close:hover {
	background: rgba(255, 255, 255, 0.3);
}

.bh-look-lightbox__content {
	max-width: 95vw;
	max-height: 90vh;
	overflow-y: auto;
	display: grid;
	gap: 12px;
}

.bh-look-lightbox__item img {
	max-width: 100%;
	max-height: 90vh;
	object-fit: contain;
	display: block;
	margin: 0 auto;
	border-radius: var(--bh-look-radius);
}

/* === Polish mobile Celio : overrides (après règles base, ≤1023px uniquement) === */
@media (max-width: 1023px) {
	.bh-look-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-look-builder__thumbs .bh-gallery__thumb.is-active {
		border-color: var(--bh-look-text);
		border-width: 2px;
	}

	.bh-look-piece__size-buttons {
		display: grid;
		grid-template-columns: repeat(5, 1fr);
		gap: 6px;
	}

	.bh-look-size-btn {
		min-width: 0;
		width: 100%;
		padding: 14px 8px;
		border: 1px solid var(--bh-look-border);
		background: #fff;
		border-radius: 4px;
		cursor: pointer;
		font-size: 13px;
		font-weight: 500;
		color: var(--bh-look-text);
		transition: all 0.15s;
		text-align: center;
		position: relative;
		overflow: hidden;
	}

	.bh-look-piece__title {
		display: block;
		font-size: 15px;
		font-weight: 600;
		letter-spacing: 0.05em;
		text-transform: uppercase;
		color: var(--bh-look-text);
		text-decoration: none;
		margin-bottom: 4px;
		line-height: 1.3;
	}

	.bh-look-sticky-cta__btn {
		width: 100%;
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 10px;
		background: var(--bh-look-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-look-piece__size-buttons {
		grid-template-columns: repeat(4, 1fr);
	}
}

/* === EMPTY STATE === */
.bh-look-empty {
	text-align: center;
	padding: 60px 20px;
	color: var(--bh-look-muted);
}

.bh-look-empty--config {
	max-width: 640px;
	margin: 24px auto;
	padding: 32px 24px;
	border: 1px dashed var(--bh-look-border, #e8e8e8);
	border-radius: var(--bh-look-radius-sm, 8px);
	background: var(--bh-look-bg-alt, #f7f5f0);
}

.bh-look-empty__hint,
.bh-look-admin-debug {
	font-size: 14px;
	line-height: 1.5;
	margin: 10px 0 0;
	color: var(--bh-look-muted, #667486);
}

.bh-look-admin-debug a {
	color: var(--bh-look-text, #12324a);
	text-decoration: underline;
}

.bh-look-admin-debug--inline {
	max-width: 1440px;
	margin: 0 auto 12px;
	padding: 8px 24px;
	font-size: 12px;
	background: #fff8e6;
	border-left: 3px solid #ffc533;
}

/* Bloc titre / prix PDP desktop : hors flux mobile (voir @media ci-dessous) */
.bh-look-builder__desktop-summary-head {
	display: none;
}

/* Peek mobile (titre, prix, onglets) — masquée desktop */
.bh-look-sheet__peek {
	display: none;
}

/* ============================================================ */
/* === DESKTOP (>= 1024px) ==================================== */
/* ============================================================ */

@media (min-width: 1024px) {

	.bh-look-builder__header,
	.bh-look-builder__tabs,
	.bh-look-builder__panels,
	.bh-look-builder__thumbs-bar,
	.bh-look-pdp .bh-gallery__dots {
		padding-left: 0;
		padding-right: 0;
	}

	/* Layout colonnes : délégué à .bh-product__layout (product-page.css) */
	.bh-look-pdp .bh-look-builder {
		max-width: none;
		padding: 0;
		margin: 0;
	}

	.bh-look-pdp .bh-look-builder__layout.bh-product__layout {
		display: flex;
		width: 100%;
		align-items: flex-start;
	}

	/* === HEADER APP-STYLE MASQUÉ EN DESKTOP === */
	.bh-look-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-look-builder #bh-look-sheet > .bh-look-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-look-border);
	}

	.bh-look-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-look-builder__desktop-price {
		font-size: 28px;
		font-weight: 600;
		color: var(--bh-look-text);
		margin-bottom: 16px;
	}

	.bh-look-builder__desktop-price .woocommerce-amount,
	.bh-look-builder__desktop-price .woocommerce-Price-amount {
		font: inherit;
		color: inherit;
	}

	.bh-look-builder__desktop-reset {
		display: inline-flex;
		align-items: center;
		gap: 6px;
		background: transparent;
		border: 1px solid var(--bh-look-border);
		border-radius: 999px;
		padding: 6px 12px;
		font-size: 12px;
		cursor: pointer;
		color: var(--bh-look-muted);
		transition: all 0.15s;
	}

	.bh-look-builder__desktop-reset:hover {
		background: var(--bh-look-bg-alt);
		border-color: var(--bh-look-text);
		color: var(--bh-look-text);
	}

	/* Galerie colonne gauche (.gallery-wrap inclut vignettes + .media — aligné PDP) */
	.bh-look-pdp .bh-look-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-look-builder__media {
		flex: 1;
		min-width: 0;
		aspect-ratio: 4 / 5;
		min-height: min(760px, calc(100vh - 120px));
		max-height: 760px;
		display: flex;
		flex-direction: column;
		background: transparent;
		border-radius: 0;
		overflow: visible;
		margin-bottom: 0;
	}

	/* Thumbs en colonne à gauche du viewport */
	.bh-look-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-look-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-look-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-look-builder #bh-viewport.bh-gallery__viewport,
	.bh-look-builder #bh-viewport.bh-look-builder__viewport,
	.bh-look-builder .bh-gallery__viewport.bh-look-builder__viewport {
		position: relative;
		flex: 1 1 0;
		width: 100%;
		height: 100%;
		min-height: min(760px, calc(100vh - 120px));
		min-width: 0;
		overflow-x: hidden;
		overflow-y: auto;
		scroll-snap-type: none;
		display: block;
		scroll-behavior: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		border-radius: var(--bh-look-radius);
		background: var(--bh-look-bg-alt);
	}

	.bh-look-builder .bh-gallery__viewport .bh-gallery__slide,
	.bh-look-builder .bh-gallery__viewport .bh-pdp-image,
	.bh-look-builder .bh-look-builder__viewport .bh-gallery__slide,
	.bh-look-builder .bh-look-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-look-builder .bh-gallery__slide:last-child {
		margin-bottom: 0;
	}

	.bh-look-builder .bh-gallery__slide img {
		width: 100%;
		max-width: 100%;
		height: auto;
		object-fit: contain;
		display: block;
		user-select: none;
	}

	.bh-look-builder .bh-gallery__slide-ph {
		width: 100%;
		min-height: 38vh;
		background: var(--bh-look-bg-alt);
		border-radius: var(--bh-look-radius-sm);
	}

	.bh-look-builder .bh-gallery__dots {
		display: none !important;
	}

	.bh-look-builder__media-actions,
	.bh-look-builder .bh-look-builder__media-actions {
		display: none !important;
	}

	.bh-look-builder__floating-bar,
	.bh-look-builder .bh-look-builder__floating-bar {
		display: none !important;
	}

	.bh-look-builder__tabs,
	.bh-look-builder .bh-look-builder__tabs {
		display: none !important;
	}

	/* Summary : sticky géré par .bh-product__col-summary (product-page.css) */
	.bh-look-pdp #bh-look-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-look-sheet > #bh-look-pieces-list {
		order: 0;
		flex: 0 0 auto;
		flex-grow: 0;
	}

	.bh-look-builder__panels {
		position: static;
		min-height: 0;
		max-height: none;
		overflow: visible;
		padding: 0;
		background: transparent;
		border: none;
	}

	.bh-look-builder__panels .bh-look-slot-panel:not(.is-active) {
		display: block !important;
		pointer-events: auto !important;
	}

	.bh-look-slot-panel .bh-look-piece + .bh-look-piece {
		margin-top: 0;
		padding-top: 0;
		border-top: none;
	}

	.bh-look-builder #bh-look-pieces-list .bh-look-slot-panel > .bh-look-piece {
		display: block;
		border-radius: 0;
	}

	.bh-look-builder #bh-look-pieces-list .bh-look-slot-panel > .bh-look-piece:not(:last-child) {
		margin-bottom: 28px;
		padding-bottom: 28px;
		border-bottom: 1px solid var(--bh-look-border);
	}

	.bh-look-builder #bh-look-pieces-list > .bh-look-slot-panel:not(:last-child) > .bh-look-piece:last-child {
		margin-bottom: 28px;
		padding-bottom: 28px;
		border-bottom: 1px solid var(--bh-look-border);
	}

	.bh-look-builder #bh-look-pieces-list > .bh-look-slot-panel:last-child > .bh-look-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-look-builder #bh-look-sheet > .bh-look-sticky-cta,
	.bh-look-builder #bh-look-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-look-border);
	}

	.bh-look-sticky-cta__btn {
		max-width: none;
		border-radius: var(--bh-look-radius-sm);
	}

	.bh-look-builder .bh-look-cta__hint {
		max-width: none;
	}

	/* Lightbox plus large desktop */
	.bh-look-lightbox__content {
		grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
		max-width: 90vw;
	}
}

/* ============================================================ */
/* === TOAST DE NOTIFICATION (panier) ========================= */
/* ============================================================ */

.bh-look-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-look-toast-in 0.3s ease-out;
	font-size: 14px;
	line-height: 1.4;
}

.bh-look-toast--success {
	border-left-color: #2e7d32;
}

.bh-look-toast--success .bh-look-toast__icon {
	color: #2e7d32;
}

.bh-look-toast--error {
	border-left-color: #c62828;
}

.bh-look-toast--error .bh-look-toast__icon {
	color: #c62828;
}

.bh-look-toast--info {
	border-left-color: #1565c0;
}

.bh-look-toast--info .bh-look-toast__icon {
	color: #1565c0;
}

.bh-look-toast__icon {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.bh-look-toast__message {
	flex: 1;
	color: #222;
	font-weight: 500;
}

.bh-look-toast--fade-out {
	animation: bh-look-toast-out 0.3s ease-in forwards;
}

@keyframes bh-look-toast-in {
	from {
		opacity: 0;
		transform: translateX(20px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes bh-look-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-look-builder {
		padding-bottom: 0;
	}

	.bh-look-builder__header {
		display: none;
	}

	.bh-look-builder__floating-bar,
	.bh-look-builder__media-actions {
		display: none;
	}

	.bh-look-sheet__peek {
		display: block;
	}

	.bh-look-builder #bh-look-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-look-builder #bh-look-sheet::before {
		content: "";
		position: absolute;
		top: 11px;
		left: 50%;
		width: 52px;
		height: 4px;
		border-radius: 999px;
		background: #d7d7d7;
		transform: translateX(-50%);
	}

	.bh-look-builder #bh-look-sheet.is-sheet-dragging {
		transition: none;
	}

	.bh-look-builder #bh-look-sheet.is-sheet-open {
		transform: translateY(0);
	}

	.bh-look-sheet__peek .bh-summary__title,
	.bh-look-sheet__peek .bh-summary__price {
		display: inline-block;
		vertical-align: top;
	}

	.bh-look-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-look-sheet__peek .bh-summary__price {
		float: right;
		margin: 0;
		text-align: right;
	}

	.bh-look-builder__tabs {
		clear: both;
		margin: 0 -6px 12px;
		border-bottom: 1px solid var(--bh-look-border);
		gap: 6px;
		padding: 0 2px 6px;
	}

	.bh-look-tab {
		min-width: 64px;
		padding: 4px 4px 8px;
		font-size: 10px;
	}

	.bh-look-tab__thumb {
		width: 42px;
		height: 42px;
		border-radius: 10px;
	}

	.bh-look-tab__text {
		font-size: 10px;
		line-height: 1.1;
	}

	.bh-look-builder #bh-look-sheet > .bh-look-builder__panels {
		width: 100%;
		max-width: 100%;
		margin-left: 0;
		margin-right: 0;
		border: none;
		border-radius: 0;
		padding: 0;
		background: transparent;
	}

	#bh-look-sheet:not(.is-sheet-open) .bh-look-piece__head,
	#bh-look-sheet:not(.is-sheet-open) .bh-summary__block--sizes,
	#bh-look-sheet:not(.is-sheet-open) .bh-look-piece__size-guide,
	#bh-look-sheet:not(.is-sheet-open) .bh-look-piece__stock-status,
	#bh-look-sheet:not(.is-sheet-open) .bh-look-sticky-cta {
		display: none !important;
	}

	#bh-look-sheet:not(.is-sheet-open) .bh-look-slot-panel:not(.is-active) {
		display: none !important;
	}

	#bh-look-sheet:not(.is-sheet-open) .bh-summary__block--colors {
		clear: both;
		margin: 0 0 14px;
	}

	#bh-look-sheet:not(.is-sheet-open) .bh-summary__block--colors .bh-label {
		margin: 0 0 7px;
		font-size: 9px;
		letter-spacing: 0.04em;
	}

	#bh-look-sheet.is-sheet-open .bh-look-piece__head,
	#bh-look-sheet.is-sheet-open .bh-summary__block--sizes,
	#bh-look-sheet.is-sheet-open .bh-look-piece__size-guide,
	#bh-look-sheet.is-sheet-open .bh-look-piece__stock-status {
		display: revert;
	}

	#bh-look-sheet.is-sheet-open .bh-look-sticky-cta {
		display: block !important;
	}

	.bh-look-sticky-cta {
		position: static;
		left: auto;
		right: auto;
		box-shadow: none;
		z-index: auto;
		padding: 0;
		margin-top: 16px;
	}

	.bh-look-sticky-cta__btn {
		border-radius: 6px;
	}

	.bh-look-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-look-summary.is-sheet-open .bh-mobile-sheet-toggle__arrow {
		transform: rotate(180deg);
	}

	.bh-look-pdp .bh-gallery__dots {
		display: none !important;
	}
}

@media (min-width: 769px) and (max-width: 1023px) {

	.bh-look-sheet__peek,
	.bh-look-mobile-sheet-toggle {
		display: none !important;
	}

	.bh-look-builder #bh-look-sheet {
		position: relative;
		transform: none;
		box-shadow: none;
		border-radius: 0;
		max-height: none;
		padding: 0;
		left: auto;
		right: auto;
		bottom: auto;
	}

	.bh-look-builder #bh-look-sheet::before {
		display: none;
	}
}

/* Mobile : toast plus petit et collé en haut */
@media (max-width: 768px) {
	.bh-look-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-look-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-look-spin 0.8s linear infinite;
	vertical-align: middle;
	margin-right: 6px;
}

@keyframes bh-look-spin {
	to {
		transform: rotate(360deg);
	}
}

/* État disabled + loading du bouton CTA sticky */
.bh-look-sticky-cta__btn.is-loading {
	opacity: 0.85;
	cursor: wait;
	pointer-events: none;
}

.bh-look-sticky-cta__btn.is-loading .bh-look-sticky-cta__label {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

/* ============================================================ */
/* === SECTIONS RELATED (looks similaires + autres styles) === */
/* ============================================================ */

.bh-look-related {
	max-width: 1440px;
	margin: 60px auto;
	padding: 0 16px;
}

.bh-look-related .bh-section__header {
	margin-bottom: 28px;
	text-align: center;
}

.bh-look-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-look-text, #111);
}

.bh-look-related .bh-section__subtitle {
	font-size: 14px;
	color: var(--bh-look-muted, #888);
	margin: 0;
}

.bh-look-related__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}

@media (min-width: 768px) {
	.bh-look-related__grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 24px;
	}
}

@media (min-width: 1024px) {
	.bh-look-related {
		padding: 0 32px;
		margin: 80px auto;
	}
	.bh-look-related .bh-section__title {
		font-size: 32px;
	}
	.bh-look-related__grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 32px;
	}
}

/* === CARTE LOOK (sections related) === */
body.single-bh_look .bh-look-card.bh-look-card--medium,
body.single-bh_look .bh-look-card.bh-look-card--small,
.bh-look-pdp .bh-look-card.bh-look-card--medium,
.bh-look-pdp .bh-look-card.bh-look-card--small {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 0;
	overflow: hidden;
	transition: transform 0.2s;
}

body.single-bh_look .bh-look-card.bh-look-card--medium:hover,
body.single-bh_look .bh-look-card.bh-look-card--small:hover,
.bh-look-pdp .bh-look-card.bh-look-card--medium:hover,
.bh-look-pdp .bh-look-card.bh-look-card--small:hover {
	transform: translateY(-2px);
}

body.single-bh_look .bh-look-card__image-wrap,
.bh-look-pdp .bh-look-card__image-wrap {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 3 / 4;
	background: #f5f5f5;
	overflow: hidden;
	margin-bottom: 12px;
}

body.single-bh_look .bh-look-card__image-wrap img,
.bh-look-pdp .bh-look-card__image-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s;
}

body.single-bh_look .bh-look-card.bh-look-card--medium:hover .bh-look-card__image-wrap img,
body.single-bh_look .bh-look-card.bh-look-card--small:hover .bh-look-card__image-wrap img,
.bh-look-pdp .bh-look-card.bh-look-card--medium:hover .bh-look-card__image-wrap img,
.bh-look-pdp .bh-look-card.bh-look-card--small:hover .bh-look-card__image-wrap img {
	transform: scale(1.04);
}

body.single-bh_look .bh-look-card__placeholder,
.bh-look-pdp .bh-look-card__placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
}

body.single-bh_look .bh-look-card__badge,
.bh-look-pdp .bh-look-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_look .bh-look-card__badge::before,
.bh-look-pdp .bh-look-card__badge::before {
	content: "ENSEMBLE";
	font-size: 10px;
}

body.single-bh_look .bh-look-card__info,
.bh-look-pdp .bh-look-card__info {
	padding: 0 4px;
}

body.single-bh_look .bh-look-card__category,
.bh-look-pdp .bh-look-card__category {
	display: block;
	font-size: 11px;
	color: var(--bh-look-muted, #888);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: 4px;
}

body.single-bh_look .bh-look-card__title,
.bh-look-pdp .bh-look-card__title {
	margin: 0 0 6px;
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 0.01em;
}

body.single-bh_look .bh-look-card__title a,
.bh-look-pdp .bh-look-card__title a {
	color: var(--bh-look-text, #111);
	text-decoration: none;
	transition: color 0.15s;
}

body.single-bh_look .bh-look-card__title a:hover,
.bh-look-pdp .bh-look-card__title a:hover {
	color: var(--bh-look-accent, #c8a97e);
}

body.single-bh_look .bh-look-card__meta,
.bh-look-pdp .bh-look-card__meta {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 8px;
	font-size: 13px;
}

body.single-bh_look .bh-look-card__pieces,
.bh-look-pdp .bh-look-card__pieces {
	color: var(--bh-look-muted, #888);
	font-size: 12px;
}

body.single-bh_look .bh-look-card__price,
.bh-look-pdp .bh-look-card__price {
	font-weight: 600;
	color: var(--bh-look-text, #111);
}

/* === Look PDP-style : images/landing en flux, sans galerie de vignettes à gauche === */
body.single-bh_look,
body.single-bh_look #bh-page,
body.single-bh_look #bh-content,
body.single-bh_look .bh-content-wrapper,
body.single-bh_look main#primary.bh-look-single {
	margin-left: 0 !important;
	padding-left: 0 !important;
}

.bh-look-single {
	max-width: none;
	width: 100%;
	margin-left: 0;
	padding: 0;
}

.bh-look-single .bh-look__header {
	display: none;
}

.bh-look-single .bh-look__body {
	margin: 0;
}

/*
 * Legacy full-bleed (pré-PDP) : ignoré sur main.bh-look-pdp.
 */
@media (min-width: 1024px) {
	main:not(.bh-look-pdp) .bh-look-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-look-pdp) .bh-look-builder__gallery-wrap {
		display: block;
		max-height: none;
	}

	main:not(.bh-look-pdp) .bh-look-builder__thumbs-bar {
		display: none !important;
	}

	main:not(.bh-look-pdp) .bh-look-builder__media {
		display: block;
		width: 100%;
		margin: 0;
		max-height: none;
		aspect-ratio: auto;
		overflow: visible;
	}

	main:not(.bh-look-pdp) .bh-look-builder #bh-viewport.bh-gallery__viewport,
	main:not(.bh-look-pdp) .bh-look-builder #bh-viewport.bh-look-builder__viewport,
	main:not(.bh-look-pdp) .bh-look-builder .bh-gallery__viewport.bh-look-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-look-pdp) .bh-look-builder .bh-gallery__viewport .bh-gallery__slide,
	main:not(.bh-look-pdp) .bh-look-builder .bh-gallery__viewport .bh-pdp-image,
	main:not(.bh-look-pdp) .bh-look-builder .bh-look-builder__viewport .bh-gallery__slide,
	main:not(.bh-look-pdp) .bh-look-builder .bh-look-builder__viewport .bh-pdp-image {
		margin: 0;
		min-height: calc(100vh - 132px);
		background: #f8f5f0;
		overflow: hidden;
		border-radius: 0;
	}

	main:not(.bh-look-pdp) .bh-look-builder .bh-gallery__slide img {
		width: 100%;
		height: 100%;
		max-width: 100%;
		object-fit: cover;
		object-position: center top;
		display: block;
	}

	main:not(.bh-look-pdp).bh-gallery-header-hidden .bh-look-builder #bh-look-sheet,
	main:not(.bh-look-pdp).bh-gallery-header-hidden #bh-look-sheet {
		top: var(--wp-admin--admin-bar--height, 0px);
		max-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px));
	}
}

/* === Asphalte-inspired Look typography / palette === */
.bh-look-builder {
	--bh-look-accent: #ffc533;
	--bh-look-text: #12324a;
	--bh-look-muted: #667486;
	--bh-look-border: #ddd6d2;
	--bh-look-bg-alt: #f8f4f4;
	--bh-condensed: "Oswald", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
}

.bh-look-builder #bh-look-sheet,
.bh-look-builder .bh-look-summary--bitmoji {
	background: #f8f4f4;
	color: var(--bh-look-text);
}

.bh-look-builder__desktop-title,
.bh-look-summary--bitmoji .bh-look-summary-title,
.bh-look-builder__title {
	font-family: var(--bh-condensed);
	font-weight: 600;
	line-height: 0.98;
	letter-spacing: -0.02em;
	text-transform: uppercase;
	color: var(--bh-look-text);
}

.bh-look-builder__desktop-title {
	font-size: clamp(30px, 2.7vw, 44px);
	font-style: normal;
}

.bh-look-builder__desktop-price,
.bh-look-summary--bitmoji .bh-look-summary-total,
.bh-look-summary--bitmoji .bh-total-value,
.bh-look-builder__desktop-price .woocommerce-Price-amount {
	font-family: var(--bh-condensed);
	font-size: 30px;
	font-weight: 700;
	line-height: 1;
	color: var(--bh-look-text);
}

.bh-look-summary--bitmoji .bh-track-label,
.bh-look-piece__field-label,
.bh-look-piece__title,
.bh-look-piece__price,
.bh-look-size-cta,
.bh-look-sticky-cta__btn,
.bh-look-cta__hint,
.bh-look-builder__desktop-reset {
	font-family: var(--bh-condensed);
	letter-spacing: 0.045em;
	text-transform: uppercase;
}

.bh-look-piece__title,
.bh-look-piece__price,
.bh-look-summary--bitmoji .bh-track-color {
	color: var(--bh-look-text);
}

.bh-look-summary--bitmoji .bh-track-label,
.bh-look-piece__field-label,
.bh-look-cta__hint {
	color: var(--bh-look-muted);
}

.bh-look-summary--bitmoji .bh-icon-btn,
.bh-look-swatch {
	border-color: transparent;
	background: transparent;
}

.bh-look-summary--bitmoji .bh-icon-btn.is-selected,
.bh-look-summary--bitmoji .bh-icon-btn.is-active,
.bh-look-swatch.is-active {
	border-color: var(--bh-look-text);
	box-shadow: inset 0 0 0 2px #fff;
}

.bh-look-size-btn {
	border-radius: 0;
	border-color: var(--bh-look-border);
	background: transparent;
	font-family: var(--bh-condensed);
	font-size: 15px;
	font-weight: 500;
	color: var(--bh-look-text);
}

.bh-look-size-btn.is-active {
	border-color: var(--bh-look-text);
	background: transparent;
}

.bh-look-sticky-cta__btn,
.bh-look-size-cta {
	border-radius: 0;
	background: var(--bh-look-accent);
	color: var(--bh-look-text);
	font-family: var(--bh-condensed);
	font-size: 17px;
	font-weight: 700;
	letter-spacing: 0.035em;
}

.bh-look-sticky-cta__btn:hover:not(:disabled),
.bh-look-size-cta:hover {
	background: #f3b91e;
	color: var(--bh-look-text);
}

.bh-look-sticky-cta__btn:disabled {
	background: var(--bh-look-accent);
	color: var(--bh-look-text);
	opacity: 0.55;
}

/* === Summary Look blanc + texte bleu === */
.bh-look-builder #bh-look-sheet,
.bh-look-builder .bh-look-summary--bitmoji {
	background: var(--bh-look-bg-alt);
	color: var(--bh-look-text);
}

.bh-look-builder__desktop-title,
.bh-look-summary--bitmoji .bh-look-summary-title,
.bh-look-builder__title,
.bh-look-builder__desktop-price,
.bh-look-summary--bitmoji .bh-look-summary-total,
.bh-look-summary--bitmoji .bh-total-value,
.bh-look-builder__desktop-price .woocommerce-Price-amount,
.bh-look-piece__title,
.bh-look-piece__price,
.bh-look-piece__price .woocommerce-Price-amount,
.bh-look-summary--bitmoji .bh-track-color,
.bh-look-size-btn,
.bh-look-builder__desktop-reset {
	color: var(--bh-look-text);
}

.bh-look-summary--bitmoji .bh-track-label,
.bh-look-piece__field-label,
.bh-look-cta__hint,
.bh-look-piece__price del,
.bh-look-piece__price--unavailable,
.bh-look-piece__footer,
.bh-look-piece__size-guide {
	color: var(--bh-look-muted);
}

.bh-look-slot-panel .bh-look-piece + .bh-look-piece,
.bh-look-piece__colors,
.bh-look-piece__sizes,
.bh-look-piece__footer,
.bh-look-size-btn {
	border-color: var(--bh-look-border);
}

.bh-look-size-btn {
	background: transparent;
}

.bh-look-size-btn:hover:not(:disabled):not(.is-unavailable) {
	border-color: var(--bh-look-text);
}

.bh-look-size-btn.is-active {
	border-color: var(--bh-look-text);
	background: transparent;
	color: var(--bh-look-text);
}

.bh-look-swatch.is-active,
.bh-look-summary--bitmoji .bh-icon-btn.is-selected,
.bh-look-summary--bitmoji .bh-icon-btn.is-active {
	border-color: var(--bh-look-text);
}

.bh-look-summary--bitmoji .bh-icon-btn.is-selected,
.bh-look-summary--bitmoji .bh-icon-btn.is-active {
	box-shadow: inset 0 0 0 3px #fff, 0 4px 14px rgba(18, 50, 74, 0.16);
}

.bh-look-sticky-cta,
.bh-look-final-cta {
	background: var(--bh-look-bg-alt);
	color: var(--bh-look-text);
}

.bh-look-sticky-cta__btn,
.bh-look-size-cta {
	background: var(--bh-look-accent);
	color: var(--bh-look-text);
}

.bh-look-sticky-cta__btn:hover:not(:disabled),
.bh-look-size-cta:hover {
	background: #f3b91e;
	color: var(--bh-look-text);
}

/* === Intégration coque .bh-product.bh-look-pdp === */
.bh-look-pdp.bh-product {
	position: relative;
}

.bh-look-pdp .bh-product__breadcrumb {
	position: absolute;
	top: calc(
		env(safe-area-inset-top, 0px) +
		var(--wp-admin--admin-bar--height, 0px) +
		var(--bh-topbar-height, 0px) +
		var(--bh-mega-header-total, 120px) +
		12px
	);
	left: 24px;
	right: 24px;
	z-index: 20;
	width: auto;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	pointer-events: auto;
}

body.bh-announcement-dismissed .bh-look-pdp .bh-product__breadcrumb,
body:not(.bh-has-announcement) .bh-look-pdp .bh-product__breadcrumb {
	top: calc(
		env(safe-area-inset-top, 0px) +
		var(--wp-admin--admin-bar--height, 0px) +
		var(--bh-mega-header-total, 120px) +
		12px
	);
}

.bh-look-pdp .bh-product__breadcrumb .bh-breadcrumb {
	display: inline-flex;
	align-items: center;
	width: auto;
	padding: 8px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.84);
	backdrop-filter: blur(10px);
}

/* Gagne sur product-page.css (.bh-product__col-gallery { height:100vh; overflow:hidden }) */
.bh-look-pdp.bh-product > .bh-product__layout > .bh-product__col-gallery,
.bh-look-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-look-pdp.bh-product > .bh-product__layout > .bh-product__col-summary,
.bh-look-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: #f8f4f4;
	border-left: 1px solid rgba(18, 50, 74, 0.08);
	z-index: 5;
	scrollbar-width: none;
}

.bh-look-pdp.bh-product > .bh-product__layout > .bh-product__col-summary::-webkit-scrollbar,
.bh-look-pdp.bh-product .bh-product__col-summary::-webkit-scrollbar {
	display: none;
}

.bh-look-pdp .bh-product__layout {
	display: flex;
	flex-wrap: nowrap;
	align-items: flex-start;
	width: 100%;
	min-height: 480px;
}

.bh-look-pdp .bh-look-builder {
	width: 100%;
	min-height: 480px;
	margin: 0;
	padding: 0;
	visibility: visible;
	opacity: 1;
}

.bh-look-pdp .bh-look-builder__layout {
	display: flex;
	flex-wrap: nowrap;
	align-items: flex-start;
	width: 100%;
	min-height: inherit;
}

.bh-look-pdp .bh-look-builder__gallery-wrap {
	width: 100%;
	min-height: 400px;
	gap: 0;
}

.bh-look-pdp .bh-look-builder__media {
	min-height: 360px;
	width: 100%;
}

/* Images visibles (évite .bh-product .bh-pdp-image { min-height:100vh } vide) */
.bh-look-pdp.bh-product .bh-pdp-image,
.bh-look-pdp.bh-product .bh-gallery__slide {
	display: block;
	width: 100%;
	min-height: 0;
	height: auto;
	margin: 0 0 12px;
	background: #f5f5f5;
	overflow: visible;
}

.bh-look-pdp.bh-product .bh-pdp-image img,
.bh-look-pdp.bh-product .bh-gallery__slide img {
	display: block;
	width: 100%;
	height: auto;
	min-height: 280px;
	max-height: none;
	object-fit: contain;
}

.bh-look-pdp #bh-viewport,
.bh-look-pdp #bh-viewport.bh-gallery__viewport {
	display: block;
	width: 100%;
	min-height: 360px;
	height: auto;
	overflow: visible;
	background: #f5f5f5;
}

.bh-look-pdp--no-gallery .bh-product__col-gallery,
.bh-look-pdp .bh-look-builder--no-gallery .bh-look-builder__col-gallery {
	min-height: 0;
}

@media (min-width: 1024px) {
	.bh-look-pdp .bh-look-summary-head {
		display: none;
	}

	.bh-look-pdp .bh-product__col-gallery,
	.bh-look-pdp .bh-look-builder__col-summary {
		min-width: 0;
	}

	.bh-look-pdp .bh-look-builder {
		width: 100%;
		max-width: none;
		margin-left: 0;
		margin-right: 0;
	}

	.bh-look-pdp .bh-look-builder__gallery-wrap {
		display: flex;
		flex-direction: row;
		align-items: stretch;
		max-height: none;
		min-height: 480px;
		gap: 0;
	}

	.bh-look-pdp .bh-look-builder__thumbs-bar {
		display: none !important;
	}

	.bh-look-pdp .bh-look-builder__media {
		display: flex;
		flex: 1;
		aspect-ratio: auto;
		min-height: 480px;
		max-height: none;
		overflow: visible;
	}

	.bh-look-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-look-pdp.bh-product .bh-pdp-image img,
	.bh-look-pdp.bh-product .bh-gallery__slide img {
		min-height: 320px;
		object-fit: contain;
	}

	/* Summary dans la colonne droite (pas carte 380px flottante) */
	.bh-look-pdp #bh-look-sheet.bh-look-summary--bitmoji,
	.bh-look-pdp .bh-look-summary--bitmoji {
		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-look-pdp--no-gallery .bh-product__col-gallery,
	.bh-look-pdp .bh-look-builder--no-gallery .bh-look-builder__col-gallery {
		height: auto;
		min-height: 0;
	}

	.bh-look-pdp--no-gallery .bh-look-builder__media,
	.bh-look-pdp .bh-look-builder--no-gallery .bh-look-builder__media {
		min-height: 280px;
		max-height: none;
		aspect-ratio: auto;
	}

	.bh-look-pdp--no-gallery #bh-viewport,
	.bh-look-pdp .bh-look-builder--no-gallery #bh-viewport {
		min-height: 0;
		height: auto;
	}
}

@media (max-width: 1023px) {
	.bh-look-pdp .bh-look-builder__layout {
		display: block;
		min-height: 0;
	}

	.bh-look-pdp .bh-product__col-gallery .bh-look-builder__gallery-wrap,
	.bh-look-pdp .bh-gallery__dots {
		width: 100%;
		max-width: 100%;
		margin-left: 0;
		margin-right: 0;
	}
}
