/*
 * Delta-Lab Bundle Builder — design « page bundle » (maquette Delta-Lab).
 * Entièrement préfixé .dlbb-im : aucun style global du thème, de WooCommerce ou d'Elementor n'est modifié.
 * Couleurs : variables --dlbb-* (WooCommerce → Delta-Lab Bundles → Paramètres).
 */

.dlbb-im {
	--pink: var(--dlbb-accent, #c64b94);
	--green: var(--dlbb-success, #66e21a);
	--greend: #3d9b0b;
	--ink: var(--dlbb-text, #121014);
	--mut: var(--dlbb-muted, #6b6670);
	--disp: 'Anton', Impact, 'Arial Narrow', sans-serif;
	--mono: 'Inconsolata', ui-monospace, Menlo, monospace;
	--px: 'Silkscreen', ui-monospace, monospace;
	color: var(--ink);
	font-family: var(--mono);
	font-size: 15px;
	line-height: 1.4;
	text-align: left;
	-webkit-font-smoothing: antialiased;
}

.dlbb-im *,
.dlbb-im *::before,
.dlbb-im *::after {
	box-sizing: border-box;
}

/* Remise à zéro des styles de boutons/formulaires du thème, dans le bloc uniquement. */
.dlbb-im button {
	margin: 0;
	min-height: 0;
	min-width: 0;
	font: inherit;
	line-height: 1;
	letter-spacing: normal;
	text-transform: none;
	text-shadow: none;
	text-decoration: none;
	-webkit-appearance: none;
	appearance: none;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
}

.dlbb-im form.dlbb-form {
	margin: 0;
	padding: 0;
	display: block;
}

.dlbb-im {
	display: block;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	flex: 1 1 100%;
	grid-column: 1 / -1;
	align-self: stretch;
	/* Fond du site (comme une fiche produit normale) : aucun fond propre au bloc. */
	background: transparent;
}

.dlbb-im-main {
	position: relative;
	width: 100%;
	padding: 24px;
}

@media (max-width: 640px) {
	.dlbb-im-main {
		padding: 14px;
	}
}

/* ---------------- En-tête (remplace l'image) ---------------- */

.dlbb-im .dlbb-hero {
	border-radius: 20px;
	background: radial-gradient(circle at 88% 10%, color-mix(in srgb, var(--green) 35%, transparent), transparent 45%), var(--ink);
	color: #fff;
	padding: 26px;
	box-shadow: 7px 7px 0 var(--pink);
	margin: 0 7px 0 0;
}

.dlbb-im .dlbb-kicker {
	display: block;
	font: 10px var(--px);
	letter-spacing: .12em;
	color: var(--green);
}

.dlbb-im .dlbb-hero-title {
	margin: 8px 0 6px;
	padding: 0;
	font: 400 46px/1 var(--disp);
	letter-spacing: normal;
	text-transform: uppercase;
	color: #fff;
	border: 0;
}

.dlbb-im .dlbb-hero-title em {
	font-style: normal;
	color: var(--green);
}

.dlbb-im .dlbb-hero-text {
	margin: 0;
	color: #cfc8d4;
	font-size: 15px;
	line-height: 1.6;
	max-width: 560px;
	white-space: pre-line;
}

.dlbb-im .dlbb-tiers {
	display: flex;
	gap: 10px;
	margin-top: 18px;
	flex-wrap: wrap;
}

.dlbb-im .dlbb-tier {
	flex: 1;
	min-width: 120px;
	border: 2px solid #3a3340;
	border-radius: 14px;
	padding: 10px 12px;
	text-align: center;
	background: none;
	color: #fff;
	transition: .3s;
}

.dlbb-im button.dlbb-tier {
	cursor: pointer;
}

.dlbb-im button.dlbb-tier:hover:not(:disabled) {
	border-color: #6d6475;
}

.dlbb-im button.dlbb-tier:disabled {
	opacity: .4;
	cursor: not-allowed;
}

.dlbb-im .dlbb-tier b {
	display: block;
	font: 400 26px var(--disp);
	color: #fff;
}

.dlbb-im .dlbb-tier span {
	display: block;
	margin-top: 2px;
	font-size: 12px;
	color: #cfc8d4;
}

.dlbb-im .dlbb-tier.on {
	border-color: var(--green);
	background: color-mix(in srgb, var(--green) 12%, transparent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 25%, transparent);
}

.dlbb-im .dlbb-tier.on b {
	color: var(--green);
}

/* ---------------- Étape + filtres ---------------- */

.dlbb-im .dlbb-step {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 28px 0 14px;
}

.dlbb-im .dlbb-step i {
	display: grid;
	place-items: center;
	flex: 0 0 34px;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background: var(--ink);
	color: var(--green);
	font: 400 19px var(--disp);
	font-style: normal;
}

.dlbb-im .dlbb-step h2 {
	margin: 0;
	padding: 0;
	font: 400 24px/1.1 var(--disp);
	letter-spacing: normal;
	text-transform: uppercase;
	color: var(--ink);
}

.dlbb-im .dlbb-step small {
	margin-left: auto;
	font: 9px var(--px);
	letter-spacing: .08em;
	color: var(--mut);
	text-align: right;
}

.dlbb-im .dlbb-filters {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 14px;
}

.dlbb-im .dlbb-fl {
	font: 700 13px var(--mono);
	padding: 8px 13px;
	border: 2px solid var(--ink);
	border-radius: 10px;
	background: #fff;
	color: var(--ink);
	cursor: pointer;
}

.dlbb-im .dlbb-fl.on {
	background: var(--ink);
	color: var(--green);
}

/* ---------------- Grille de cartes ---------------- */

.dlbb-im .dlbb-hero + .dlbb-grid,
.dlbb-im .dlbb-hero + .dlbb-empty {
	margin-top: 28px;
}

.dlbb-im .dlbb-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	padding: 0 5px 5px 0;
}

.dlbb-im .dlbb-pc {
	position: relative;
	display: flex;
	flex-direction: column;
	margin: 0;
	border: 2px solid var(--ink);
	border-radius: 16px;
	background: #fff;
	box-shadow: 5px 5px 0 var(--ink);
	overflow: hidden;
	transition: transform .15s ease, box-shadow .15s ease;
}

.dlbb-im .dlbb-pc[hidden] {
	display: none;
}

.dlbb-im .dlbb-pc.sel {
	box-shadow: 5px 5px 0 var(--green);
}

.dlbb-im .dlbb-im-media {
	position: relative;
	display: grid;
	place-items: center;
	aspect-ratio: 1;
	border-bottom: 2px solid var(--ink);
	background: #f6f2f7;
	overflow: hidden;
}

.dlbb-im .dlbb-fb {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 10px;
	text-align: center;
	font: 400 18px/1.1 var(--disp);
	color: #fff;
}

.dlbb-im .dlbb-im-media img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	object-fit: contain;
	background: #fff;
	transition: transform .45s cubic-bezier(.2, .7, .2, 1);
}

/* 2e image (la fleur) : attend à droite, glisse au survol. */
.dlbb-im .dlbb-im-media img.dlbb-img2 {
	transform: translateX(100%);
}

/* Effet bouton : la carte s'enfonce de toute la longueur de son ombre. */
.dlbb-im .dlbb-pc {
	--dlbb-sh: 5px;
}

@media (hover: hover) and (pointer: fine) {
	.dlbb-im .dlbb-pc:not(.out):hover,
	.dlbb-im .dlbb-pc:not(.out):focus-within {
		transform: translate(var(--dlbb-sh), var(--dlbb-sh));
		box-shadow: 0 0 0 var(--ink);
	}

	.dlbb-im .dlbb-pc.sel:not(.out):hover,
	.dlbb-im .dlbb-pc.sel:not(.out):focus-within {
		box-shadow: 0 0 0 var(--green);
	}

	.dlbb-im .dlbb-pc.has-img2:hover .dlbb-img1,
	.dlbb-im .dlbb-pc.has-img2:focus-within .dlbb-img1 {
		transform: translateX(-100%);
	}

	.dlbb-im .dlbb-pc.has-img2:hover .dlbb-img2,
	.dlbb-im .dlbb-pc.has-img2:focus-within .dlbb-img2 {
		transform: translateX(0);
	}
}

/* Écrans tactiles : enfoncement au toucher. */
.dlbb-im .dlbb-pc:not(.out):active {
	transform: translate(var(--dlbb-sh), var(--dlbb-sh));
	box-shadow: 0 0 0 var(--ink);
}

.dlbb-im .dlbb-q {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 2;
	display: none;
	padding: 2px 9px;
	font: 400 16px var(--disp);
	color: var(--ink);
	background: var(--green);
	border: 2px solid var(--ink);
	border-radius: 9px;
}

.dlbb-im .dlbb-pc.sel .dlbb-q {
	display: block;
	animation: dlbb-pop .35s;
}

.dlbb-im .dlbb-st {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 2;
	padding: 3px 6px;
	font: 8px var(--px);
	letter-spacing: .04em;
	color: var(--ink);
	background: #fff;
	border: 1.5px solid var(--ink);
	border-radius: 6px;
}

.dlbb-im .dlbb-st.low {
	background: #ffd400;
}

.dlbb-im .dlbb-bd {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 4px;
	padding: 10px 12px 12px;
}

.dlbb-im .dlbb-bd b {
	font: 400 16px/1.15 var(--disp);
	text-transform: uppercase;
	color: var(--ink);
	overflow-wrap: anywhere;
}

.dlbb-im .dlbb-bd small {
	font-size: 12px;
	color: var(--mut);
}

.dlbb-im .dlbb-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-top: auto;
	padding-top: 8px;
}

.dlbb-im .dlbb-pr {
	font: 400 20px var(--disp);
	white-space: nowrap;
	color: var(--ink);
}

.dlbb-im .dlbb-add {
	flex: 0 0 38px;
	width: 38px;
	height: 38px;
	padding: 0;
	border-radius: 10px;
	border: 2px solid var(--ink);
	background: var(--pink);
	color: #fff;
	font: 700 22px/1 var(--mono);
	cursor: pointer;
	box-shadow: 2px 2px 0 var(--ink);
	transition: transform .1s;
}

.dlbb-im .dlbb-add:active:not(:disabled) {
	transform: translate(1px, 1px);
	box-shadow: 1px 1px 0 var(--ink);
}

.dlbb-im .dlbb-stp {
	display: none;
	align-items: center;
	border: 2px solid var(--ink);
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
}

.dlbb-im .dlbb-stp button {
	width: 32px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: #fff;
	color: var(--ink);
	font: 700 18px var(--mono);
	cursor: pointer;
	box-shadow: none;
}

.dlbb-im .dlbb-stp > span {
	min-width: 26px;
	text-align: center;
	font: 700 15px var(--mono);
}

.dlbb-im .dlbb-pc.sel .dlbb-add {
	display: none;
}

.dlbb-im .dlbb-pc.sel .dlbb-stp {
	display: flex;
}

.dlbb-im .dlbb-pc.out {
	opacity: .5;
}

.dlbb-im .dlbb-pc.out .dlbb-add {
	background: #ccc;
	cursor: not-allowed;
}

.dlbb-im .dlbb-pc.max .dlbb-add,
.dlbb-im .dlbb-pc .dlbb-stp .dlbb-p:disabled,
.dlbb-im .dlbb-add:disabled {
	opacity: .35;
	cursor: not-allowed;
}

.dlbb-im .dlbb-pc.out .dlbb-add:disabled {
	opacity: 1;
}

.dlbb-im button:focus-visible {
	outline: 3px solid var(--pink);
	outline-offset: 2px;
}

.dlbb-im .dlbb-note {
	margin: 26px 0 0;
	padding-left: 10px;
	font-size: 12.5px;
	line-height: 1.6;
	color: var(--mut);
	border-left: 3px solid #ffd400;
}

.dlbb-im .dlbb-empty,
.dlbb-im .dlbb-noscript {
	color: var(--mut);
}

/* Largeur réelle du bloc mesurée en JavaScript (classes dlbb-w-*) : fonctionne dans toute colonne,
   y compris un conteneur flexible d'Elementor. Repli avant JavaScript : largeur de l'écran. */
@media (max-width: 900px) {
	.dlbb-im .dlbb-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.dlbb-im.dlbb-w-900 .dlbb-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 640px) {
	.dlbb-im .dlbb-hero { padding: 18px; box-shadow: 5px 5px 0 var(--pink); margin-right: 5px; }
	.dlbb-im .dlbb-hero-title { font-size: 34px; }
	.dlbb-im .dlbb-tier { min-width: 0; padding: 8px 6px; }
	.dlbb-im .dlbb-tier b { font-size: 21px; }
	.dlbb-im .dlbb-tier span { font-size: 11px; }
	.dlbb-im .dlbb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 0 3px 3px 0; }
	.dlbb-im .dlbb-pc { box-shadow: 3px 3px 0 var(--ink); --dlbb-sh: 3px; }
	.dlbb-im .dlbb-pc.sel { box-shadow: 3px 3px 0 var(--green); }
	.dlbb-im .dlbb-bd { padding: 8px; }
	.dlbb-im .dlbb-bd b { font-size: 14px; }
	.dlbb-im .dlbb-pr { font-size: 17px; }
	.dlbb-im .dlbb-add { flex-basis: 34px; width: 34px; height: 34px; }
	.dlbb-im .dlbb-stp button { width: 26px; }
	.dlbb-im .dlbb-stp > span { min-width: 18px; }
	.dlbb-im .dlbb-row { gap: 4px; }
}

.dlbb-im.dlbb-w-640 .dlbb-hero { padding: 18px; box-shadow: 5px 5px 0 var(--pink); margin-right: 5px; }
.dlbb-im.dlbb-w-640 .dlbb-hero-title { font-size: 34px; }
.dlbb-im.dlbb-w-640 .dlbb-tier { min-width: 0; padding: 8px 6px; }
.dlbb-im.dlbb-w-640 .dlbb-tier b { font-size: 21px; }
.dlbb-im.dlbb-w-640 .dlbb-tier span { font-size: 11px; }
.dlbb-im.dlbb-w-640 .dlbb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 0 3px 3px 0; }
.dlbb-im.dlbb-w-640 .dlbb-pc { box-shadow: 3px 3px 0 var(--ink); --dlbb-sh: 3px; }
.dlbb-im.dlbb-w-640 .dlbb-pc.sel { box-shadow: 3px 3px 0 var(--green); }
.dlbb-im.dlbb-w-640 .dlbb-bd { padding: 8px; }
.dlbb-im.dlbb-w-640 .dlbb-bd b { font-size: 14px; }
.dlbb-im.dlbb-w-640 .dlbb-pr { font-size: 17px; }
.dlbb-im.dlbb-w-640 .dlbb-add { flex-basis: 34px; width: 34px; height: 34px; }
.dlbb-im.dlbb-w-640 .dlbb-stp button { width: 26px; }
.dlbb-im.dlbb-w-640 .dlbb-stp > span { min-width: 18px; }
.dlbb-im.dlbb-w-640 .dlbb-row { gap: 4px; }

/* ---------------- Barre fixe ---------------- */

.dlbb-im .dlbb-box {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	/* Sous les paniers latéraux, menus et fenêtres (Elementor, Astra, extensions) : ne passe jamais devant. */
	z-index: var(--dlbb-bar-z, 90);
	transition: bottom .2s ease;
	background: var(--ink);
	color: #fff;
	border-top: 3px solid var(--green);
	animation: dlbb-up .35s ease;
}

.dlbb-im .dlbb-box-in {
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 18px;
	align-items: center;
	max-width: 1180px;
	margin: 0 auto;
	padding: 14px 24px;
}

.dlbb-im .dlbb-slots {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	max-width: 420px;
}

.dlbb-im .dlbb-slot {
	position: relative;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 10px;
	border: 2px dashed #554d5c;
	font: 400 13px var(--disp);
	color: #554d5c;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	overflow: hidden;
	transition: border-color .25s, color .25s;
}

.dlbb-im .dlbb-slots.many .dlbb-slot {
	width: 30px;
	height: 30px;
	font-size: 11px;
}

.dlbb-im .dlbb-slot.f {
	border: 2px solid var(--green);
	color: #fff;
	background-color: #fff;
	animation: dlbb-pop .35s;
}

.dlbb-im .dlbb-slot.f::after {
	content: attr(data-n);
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 2px;
	background: var(--c);
	font: 400 11px/1 var(--disp);
	text-align: center;
	overflow-wrap: anywhere;
}

.dlbb-im .dlbb-slot.f.has-img::after {
	content: none;
}

.dlbb-im .dlbb-msg {
	font-size: 14px;
	line-height: 1.4;
	min-width: 0;
}

.dlbb-im .dlbb-msg b {
	color: var(--green);
}

.dlbb-im .dlbb-msg .dlbb-status {
	color: #fff;
}

.dlbb-im .dlbb-bar2 {
	display: block;
	height: 8px;
	margin-top: 7px;
	overflow: hidden;
	border-radius: 6px;
	background: #2a2430;
}

.dlbb-im .dlbb-bar2 i {
	display: block;
	width: 0;
	height: 100%;
	background: linear-gradient(90deg, var(--pink), var(--green));
	transition: width .4s;
}

.dlbb-im .dlbb-tot {
	text-align: right;
}

.dlbb-im .dlbb-tot s {
	display: block;
	min-height: 1em;
	font-size: 13px;
	color: #8d8594;
}

.dlbb-im .dlbb-tot strong {
	display: block;
	font: 400 28px/1.1 var(--disp);
	color: var(--green);
}

.dlbb-im .dlbb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 6px;
	padding: 11px 18px;
	font: 400 16px/1 var(--disp);
	letter-spacing: .04em;
	text-transform: uppercase;
	border: 0;
	border-radius: 12px;
	background: var(--green);
	color: var(--ink);
	box-shadow: 3px 3px 0 var(--greend);
	cursor: pointer;
	opacity: 1;
	white-space: nowrap;
	width: auto;
	min-height: 0;
}

.dlbb-im .dlbb-btn[disabled],
.dlbb-im .dlbb-btn.disabled {
	background: #3a3340;
	color: #8d8594;
	box-shadow: none;
	cursor: not-allowed;
	opacity: 1;
}

@media (max-width: 640px) {
	.dlbb-im .dlbb-box-in {
		grid-template-columns: 1fr auto;
		gap: 8px 10px;
		padding: 10px 12px 12px;
	}

	.dlbb-im .dlbb-slots {
		grid-column: 1 / -1;
		justify-content: space-between;
		max-width: none;
		flex-wrap: nowrap;
	}

	.dlbb-im .dlbb-slot,
	.dlbb-im .dlbb-slots.many .dlbb-slot {
		flex: 1;
		width: auto;
		height: 34px;
		min-width: 0;
	}

	.dlbb-im .dlbb-slots.many {
		flex-wrap: wrap;
	}

	.dlbb-im .dlbb-slots.many .dlbb-slot {
		flex: 1 0 calc(12.5% - 6px);
		height: 28px;
	}

	.dlbb-im .dlbb-msg { font-size: 12.5px; }
	.dlbb-im .dlbb-tot strong { font-size: 22px; }
	.dlbb-im .dlbb-btn { font-size: 14px; padding: 10px 12px; }
}

/* Prévisualisation dans l'administration : la barre reste dans le cadre. */
.dlbb-im.dlbb-context-preview .dlbb-box {
	position: sticky;
	border-radius: 0 0 14px 14px;
	animation: none;
}

.dlbb-im.dlbb-context-preview .dlbb-box-in {
	padding: 12px 14px;
}

/* Page bundle : le bloc occupe toute la largeur du contenu. */
.dlbb-page.product > .dlbb-im {
	clear: both;
	width: 100%;
	float: none;
	margin-bottom: 32px;
}

@keyframes dlbb-pop {
	50% { transform: scale(1.2); }
}

@keyframes dlbb-up {
	from { transform: translateY(100%); }
	to { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.dlbb-im *,
	.dlbb-im .dlbb-box {
		animation: none !important;
		transition: none !important;
	}
}

/* Page complète (prioritaire sur le template du thème / d'Elementor) :
   même fond que les fiches produit Delta-Lab (fond sombre à pois rose et vert, carte blanche). */
body.dlbb-immersive-page {
	--dlbb-page-bg: #141414;
	background-color: var(--dlbb-page-bg) !important;
	background-image:
		radial-gradient(circle at 20px 20px, rgba(201, 75, 149, .3) 2px, transparent 2.6px),
		radial-gradient(circle at 0 0, rgba(98, 237, 8, .14) 1.2px, transparent 1.8px) !important;
	background-size: 40px 40px, 40px 40px !important;
	background-position: 21px 11px, 21px 11px !important;
}

/* Conteneurs du thème transparents sur la fiche bundle uniquement (Astra, Storefront…). */
body.dlbb-immersive-page #page,
body.dlbb-immersive-page .site,
body.dlbb-immersive-page .site-content,
body.dlbb-immersive-page #content,
body.dlbb-immersive-page #primary,
body.dlbb-immersive-page .content-area,
body.dlbb-immersive-page .ast-container,
body.dlbb-immersive-page.ast-separate-container .ast-article-single,
body.dlbb-immersive-page.ast-separate-container #primary {
	background: transparent !important;
}

.dlbb-page-wrap {
	box-sizing: border-box;
	width: 100%;
	max-width: 1260px;
	margin: 0 auto;
	padding: 32px 24px 56px;
}

.dlbb-page-inner {
	box-sizing: border-box;
	background: #fff;
	border: 5px solid #0d0910;
	border-radius: 22px;
	box-shadow: 9px 9px 0 #0d0910;
	padding: 28px;
	margin-right: 9px;
}

.dlbb-page-inner .dlbb-page.product {
	margin: 0;
	padding: 0;
	float: none;
	width: auto;
}

.dlbb-page-inner .dlbb-im-main {
	padding: 0;
}

@media (max-width: 640px) {
	.dlbb-page-wrap {
		padding: 16px 10px 32px;
	}

	.dlbb-page-inner {
		border-width: 3px;
		border-radius: 16px;
		box-shadow: 5px 5px 0 #0d0910;
		padding: 14px;
		margin-right: 5px;
	}
}

.dlbb-im.dlbb-w-640 .dlbb-step h2 {
	font-size: 22px;
}

/* =====================================================================
 * Style pixel (cadres crénelés, ombres dures, effet bouton)
 * Le contour et l'ombre sont dessinés par filter: drop-shadow() sur un
 * enveloppant, la forme crénelée par clip-path sur l'élément intérieur.
 * =================================================================== */

.dlbb-im {
	--pxs: 4px;
	--pixel: polygon(
		0 calc(var(--pxs) * 2), var(--pxs) calc(var(--pxs) * 2), var(--pxs) var(--pxs), calc(var(--pxs) * 2) var(--pxs), calc(var(--pxs) * 2) 0,
		calc(100% - var(--pxs) * 2) 0, calc(100% - var(--pxs) * 2) var(--pxs), calc(100% - var(--pxs)) var(--pxs), calc(100% - var(--pxs)) calc(var(--pxs) * 2), 100% calc(var(--pxs) * 2),
		100% calc(100% - var(--pxs) * 2), calc(100% - var(--pxs)) calc(100% - var(--pxs) * 2), calc(100% - var(--pxs)) calc(100% - var(--pxs)), calc(100% - var(--pxs) * 2) calc(100% - var(--pxs)), calc(100% - var(--pxs) * 2) 100%,
		calc(var(--pxs) * 2) 100%, calc(var(--pxs) * 2) calc(100% - var(--pxs)), var(--pxs) calc(100% - var(--pxs)), var(--pxs) calc(100% - var(--pxs) * 2), 0 calc(100% - var(--pxs) * 2)
	);
}

/* Carte variété */
.dlbb-im .dlbb-pc {
	--bw: 3px;
	--sc: var(--ink);
	border: 0;
	border-radius: 0;
	box-shadow: none;
	background: transparent;
	overflow: visible;
	filter:
		drop-shadow(var(--bw) 0 0 var(--ink)) drop-shadow(calc(var(--bw) * -1) 0 0 var(--ink))
		drop-shadow(0 var(--bw) 0 var(--ink)) drop-shadow(0 calc(var(--bw) * -1) 0 var(--ink))
		drop-shadow(var(--dlbb-sh) var(--dlbb-sh) 0 var(--sc));
	transition: transform .15s ease, filter .15s ease;
	margin: var(--bw);
}

.dlbb-im .dlbb-pc.sel {
	--sc: var(--green);
	box-shadow: none;
}

.dlbb-im .dlbb-pc-in {
	display: flex;
	flex: 1;
	flex-direction: column;
	background: #fff;
	clip-path: var(--pixel);
}

.dlbb-im .dlbb-im-media {
	border-bottom: var(--bw) solid var(--ink);
}

.dlbb-im .dlbb-q { top: 12px; left: 12px; }
.dlbb-im .dlbb-st { top: 12px; right: 12px; }

.dlbb-im.dlbb-w-640 .dlbb-pc,
.dlbb-im .dlbb-grid .dlbb-pc.dlbb-narrow {
	--bw: 2px;
}

@media (max-width: 640px) {
	.dlbb-im .dlbb-pc { --bw: 2px; }
}

/* Enfoncement : la carte avance de toute la longueur de son ombre. */
@media (hover: hover) and (pointer: fine) {
	.dlbb-im .dlbb-pc:not(.out):hover,
	.dlbb-im .dlbb-pc:not(.out):focus-within,
	.dlbb-im .dlbb-pc.sel:not(.out):hover,
	.dlbb-im .dlbb-pc.sel:not(.out):focus-within {
		box-shadow: none;
		transform: translate(var(--dlbb-sh), var(--dlbb-sh));
		filter:
			drop-shadow(var(--bw) 0 0 var(--ink)) drop-shadow(calc(var(--bw) * -1) 0 0 var(--ink))
			drop-shadow(0 var(--bw) 0 var(--ink)) drop-shadow(0 calc(var(--bw) * -1) 0 var(--ink));
	}
}

.dlbb-im .dlbb-pc:not(.out):active {
	box-shadow: none;
	transform: translate(var(--dlbb-sh), var(--dlbb-sh));
	filter:
		drop-shadow(var(--bw) 0 0 var(--ink)) drop-shadow(calc(var(--bw) * -1) 0 0 var(--ink))
		drop-shadow(0 var(--bw) 0 var(--ink)) drop-shadow(0 calc(var(--bw) * -1) 0 var(--ink));
}

/* Bouton + (taille conservée), style pixel et enfoncement */
.dlbb-im .dlbb-add-w {
	--bs: 3px;
	display: inline-flex;
	flex: 0 0 auto;
	margin: 2px var(--bs) var(--bs) 2px;
	filter:
		drop-shadow(2px 0 0 var(--ink)) drop-shadow(-2px 0 0 var(--ink))
		drop-shadow(0 2px 0 var(--ink)) drop-shadow(0 -2px 0 var(--ink))
		drop-shadow(var(--bs) var(--bs) 0 var(--ink));
	transition: transform .1s ease, filter .1s ease;
}

.dlbb-im .dlbb-add {
	--pxs: 3px;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	clip-path: var(--pixel);
	text-shadow: 1px 1px 0 rgba(18, 16, 20, .45);
	transition: none;
}

.dlbb-im .dlbb-add:active:not(:disabled) {
	transform: none;
	box-shadow: none;
}

@media (hover: hover) and (pointer: fine) {
	.dlbb-im .dlbb-add-w:has(.dlbb-add:not(:disabled)):hover {
		transform: translate(var(--bs), var(--bs));
		filter:
			drop-shadow(2px 0 0 var(--ink)) drop-shadow(-2px 0 0 var(--ink))
			drop-shadow(0 2px 0 var(--ink)) drop-shadow(0 -2px 0 var(--ink));
	}
}

.dlbb-im .dlbb-add-w:has(.dlbb-add:not(:disabled)):active {
	transform: translate(var(--bs), var(--bs));
	filter:
		drop-shadow(2px 0 0 var(--ink)) drop-shadow(-2px 0 0 var(--ink))
		drop-shadow(0 2px 0 var(--ink)) drop-shadow(0 -2px 0 var(--ink));
}

.dlbb-im .dlbb-pc.sel .dlbb-add-w {
	display: none;
}

.dlbb-im .dlbb-pc.out .dlbb-add-w {
	filter: drop-shadow(2px 0 0 #999) drop-shadow(-2px 0 0 #999) drop-shadow(0 2px 0 #999) drop-shadow(0 -2px 0 #999);
}

/* Sélecteur − n + : même cadre pixel */
.dlbb-im .dlbb-stp {
	border: 0;
	border-radius: 0;
	overflow: visible;
	background: transparent;
	margin: 2px 4px 4px 2px;
	filter:
		drop-shadow(2px 0 0 var(--ink)) drop-shadow(-2px 0 0 var(--ink))
		drop-shadow(0 2px 0 var(--ink)) drop-shadow(0 -2px 0 var(--ink))
		drop-shadow(2px 2px 0 var(--ink));
}

.dlbb-im .dlbb-stp-in {
	--pxs: 3px;
	display: flex;
	align-items: center;
	background: #fff;
	clip-path: var(--pixel);
}

.dlbb-im .dlbb-stp-in > span {
	min-width: 26px;
	text-align: center;
	font: 700 15px var(--mono);
}

.dlbb-im .dlbb-stp button:active:not(:disabled) {
	background: #f1ecf3;
}

.dlbb-im.dlbb-w-640 .dlbb-stp-in > span { min-width: 18px; }

/* Bouton « Ajouter la box » : pixel + enfoncement */
.dlbb-im .dlbb-btn-w {
	--bs: 3px;
	display: inline-flex;
	margin-top: 6px;
	filter: drop-shadow(var(--bs) var(--bs) 0 var(--greend));
	transition: transform .1s ease, filter .1s ease;
}

.dlbb-im .dlbb-btn-w .dlbb-btn {
	--pxs: 4px;
	margin-top: 0;
	border-radius: 0;
	box-shadow: none;
	clip-path: var(--pixel);
}

.dlbb-im .dlbb-btn-w:has(.dlbb-btn[disabled]),
.dlbb-im .dlbb-btn-w:has(.dlbb-btn.disabled) {
	filter: none;
}

@media (hover: hover) and (pointer: fine) {
	.dlbb-im .dlbb-btn-w:has(.dlbb-btn:not([disabled]):not(.disabled)):hover {
		transform: translate(var(--bs), var(--bs));
		filter: none;
	}
}

.dlbb-im .dlbb-btn-w:has(.dlbb-btn:not([disabled]):not(.disabled)):active {
	transform: translate(var(--bs), var(--bs));
	filter: none;
}

/* Points du défilement d'images (téléphone) */
.dlbb-im .dlbb-dots {
	position: absolute;
	left: 50%;
	bottom: 8px;
	z-index: 2;
	display: flex;
	gap: 5px;
	transform: translateX(-50%);
}

.dlbb-im .dlbb-dots i {
	display: block;
	width: 7px;
	height: 7px;
	background: #fff;
	border: 1.5px solid var(--ink);
	opacity: .9;
}

.dlbb-im .dlbb-dots i:first-child,
.dlbb-im .dlbb-pc.show2 .dlbb-dots i:last-child {
	background: var(--ink);
}

.dlbb-im .dlbb-pc.show2 .dlbb-dots i:first-child {
	background: #fff;
}

@media (hover: hover) and (pointer: fine) {
	.dlbb-im .dlbb-dots { display: none; }
}

/* Défilement au doigt (classe posée par le script) */
.dlbb-im .dlbb-pc.show2 .dlbb-img1 { transform: translateX(-100%); }
.dlbb-im .dlbb-pc.show2 .dlbb-img2 { transform: translateX(0); }

.dlbb-im .dlbb-pc.has-img2 .dlbb-im-media {
	touch-action: pan-y;
	cursor: grab;
}

/* Cartes très étroites : le sélecteur passe sous le prix plutôt que de déborder. */
.dlbb-im .dlbb-row {
	flex-wrap: wrap;
	row-gap: 6px;
}

.dlbb-im .dlbb-row .dlbb-stp,
.dlbb-im .dlbb-row .dlbb-add-w {
	margin-left: auto;
}

@media (max-width: 640px) {
	.dlbb-page-inner {
		padding: 10px;
	}
}

@media (max-width: 900px) and (min-width: 641px) {
	.dlbb-page-wrap { padding: 20px 12px 40px; }
	.dlbb-page-inner { padding: 18px; }
}

/* Ajout au panier : état en cours / confirmation */
.dlbb-im .dlbb-btn.is-busy {
	cursor: progress;
	opacity: .85;
}

.dlbb-im .dlbb-btn.is-added,
.dlbb-im .dlbb-btn.is-added[disabled],
.dlbb-im .dlbb-btn.is-added.disabled {
	background: var(--green);
	color: var(--ink);
}

.dlbb-im .dlbb-notice {
	display: block;
	margin-top: 2px;
	font-weight: 700;
	animation: dlbb-in .2s ease;
}

.dlbb-im .dlbb-notice[hidden] {
	display: none;
}

.dlbb-im .dlbb-notice.is-success {
	color: var(--green);
}

.dlbb-im .dlbb-notice.is-error {
	color: #ff8fc6;
}

.dlbb-im .dlbb-notice a {
	color: #fff;
	text-decoration: underline;
	white-space: nowrap;
}

@keyframes dlbb-in {
	from { opacity: 0; transform: translateY(4px); }
	to { opacity: 1; transform: none; }
}
