/**
 * Widgets flottants : panier rapide + retour en haut.
 * Conteneur fixe en bas-droite ; les boutons s'empilent verticalement.
 */
.cbdco-fw {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 9990;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 12px;
	pointer-events: none;
}
.cbdco-fw > * { pointer-events: auto; }

/* ------ Panier flottant ------------------------------------- */
.cbdco-fc {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--btn-bg, var(--gold-gradient));
	color: #1a1208;
	border: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.3);
	cursor: pointer;
	padding: 0;
	text-decoration: none;
	transition: transform .18s ease, box-shadow .18s ease;
}
.cbdco-fc:hover,
.cbdco-fc:focus-visible {
	color: #1a1208;
	transform: translateY(-2px) scale(1.04);
	/* Lueur externe dorée à la manière du bouton ATC : double couche
	   (halo proche + diffuse) pour un effet "pulsant" au survol. */
	box-shadow:
		0 0 0 4px rgba(212, 168, 75, 0.18),
		0 12px 32px rgba(212, 168, 75, 0.55),
		0 4px 10px rgba(0, 0, 0, 0.35);
	outline: none;
}
.cbdco-fc:hover svg,
.cbdco-fc:focus-visible svg { color: #1a1208; stroke: #1a1208; }
.cbdco-fc__icon { display: inline-flex; }
.cbdco-fc__icon svg { display: block; }
.cbdco-fc__count {
	position: absolute;
	top: -4px;
	right: -4px;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: 11px;
	background: #0f0f0f;
	color: var(--gold-soft, #f0d28a);
	border: 1.5px solid var(--gold, #d4a648);
	font-family: var(--font-mono, "JetBrains Mono", monospace);
	font-size: 11px;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	letter-spacing: 0;
	line-height: 1;
}
/* Compteur masqué quand panier vide (data-count="0"). */
.cbdco-fc__count[data-count="0"] { display: none; }

/* ------ Retour en haut -------------------------------------- */
.cbdco-btt {
	width: 44px !important;
	height: 44px !important;
	min-width: 44px;
	min-height: 44px;
	max-width: 44px;
	max-height: 44px;
	aspect-ratio: 1 / 1;
	flex: 0 0 44px;
	padding: 0;
	border-radius: 50%;
	background: var(--bg-2, #1a1a1a);
	color: var(--gold, #d4a648);
	border: 1px solid var(--line, rgba(226, 203, 151, 0.12));
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
	opacity: 0;
	transform: translateY(8px);
	transition: opacity .25s ease, transform .25s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.cbdco-btt[hidden] { display: none; }
.cbdco-btt.is-visible {
	opacity: 1;
	transform: translateY(0);
}
.cbdco-btt:hover,
.cbdco-btt:focus-visible {
	background: var(--btn-bg, var(--gold-gradient));
	color: var(--btn-fg, #0f0f0f);
	border-color: transparent;
}
.cbdco-btt__icon {
	display: inline-block;
	width: 22px; height: 22px;
	background: var(--gold-gradient);
	transition: background .2s ease;
	-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 15 12 9 18 15'/></svg>") center / contain no-repeat;
	        mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 15 12 9 18 15'/></svg>") center / contain no-repeat;
}
.cbdco-btt:hover .cbdco-btt__icon,
.cbdco-btt:focus-visible .cbdco-btt__icon { background: #1a1208; }

/* Mobile : on rapproche du bord et on réduit légèrement. */
@media (max-width: 640px) {
	.cbdco-fw { right: 14px; bottom: 14px; gap: 10px; }
	.cbdco-fc { width: 50px; height: 50px; }
	.cbdco-btt {
		width: 40px !important;
		height: 40px !important;
		min-width: 40px;
		min-height: 40px;
		max-width: 40px;
		max-height: 40px;
		flex: 0 0 40px;
	}
}
