/* Full For Live – Espace Merch
 * La typographie vient du thème du site ; seule la couleur du client (--ffl-accent) personnalise l'affichage. */

.ffl-store,
.ffl-dash {
	--ffl-accent: #2b4c7e;
	--ffl-ink: currentColor;
	--ffl-rule: color-mix(in srgb, currentColor 14%, transparent);
	--ffl-soft: color-mix(in srgb, var(--ffl-accent) 7%, transparent);
	--ffl-muted: color-mix(in srgb, currentColor 62%, transparent);
}

/* ------------------------------------------------------------------ Vitrine */

.ffl-store__banner {
	margin: 0 0 0;
	border-radius: 6px;
	overflow: hidden;
	aspect-ratio: 16 / 5;
	background: var(--ffl-soft);
}
.ffl-store__banner img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.ffl-store__intro {
	display: flex;
	gap: 28px;
	align-items: flex-start;
	padding: 0 4px;
	margin: 0 0 40px;
}
.ffl-store__banner + .ffl-store__intro .ffl-store__logo {
	margin-top: -56px;
}
.ffl-store__logo {
	flex: 0 0 auto;
	width: 128px;
	height: 128px;
	border-radius: 50%;
	overflow: hidden;
	background: #fff;
	border: 4px solid #fff;
	box-shadow: 0 0 0 2px var(--ffl-accent);
}
.ffl-store__logo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.ffl-store__text {
	max-width: 68ch;
	padding-top: 16px;
}
.ffl-store__badge {
	display: inline-block;
	margin: 0 0 8px;
	padding: 2px 10px;
	border-radius: 999px;
	background: var(--ffl-accent);
	color: #fff;
	font-size: 0.8125rem;
	font-weight: 600;
}
.ffl-store__empty {
	padding: 32px;
	text-align: center;
	background: var(--ffl-soft);
	border-radius: 6px;
}
.ffl-sold-by {
	display: block;
	margin-top: 8px;
}

@media (max-width: 640px) {
	.ffl-store__intro {
		flex-direction: column;
		gap: 12px;
	}
	.ffl-store__logo {
		width: 96px;
		height: 96px;
	}
	.ffl-store__banner + .ffl-store__intro .ffl-store__logo {
		margin-top: -40px;
	}
	.ffl-store__text {
		padding-top: 0;
	}
}

/* -------------------------------------------------------- Tableau de bord */

.ffl-dash {
	display: grid;
	gap: 28px;
}
.ffl-dash h2,
.ffl-dash h3 {
	margin: 0;
}
.ffl-dash h3 {
	font-size: 1.05rem;
	margin-bottom: 12px;
}

.ffl-dash__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
}
.ffl-dash__logo img {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
	box-shadow: 0 0 0 2px var(--ffl-accent);
}
.ffl-dash__id {
	flex: 1 1 200px;
}
.ffl-dash__name {
	font-size: 1.5rem;
	line-height: 1.2;
}
.ffl-dash__store {
	font-size: 0.9rem;
}
.ffl-dash__filters {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}
.ffl-dash__filters select {
	min-width: 170px;
}

/* Le seul élément appuyé : ce qui revient au client. */
.ffl-dash__summary {
	border-top: 4px solid var(--ffl-accent);
	background: var(--ffl-soft);
	border-radius: 0 0 6px 6px;
	padding: 24px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
	gap: 24px;
	align-items: center;
}
.ffl-dash__payout-label {
	margin: 0 0 4px;
	color: var(--ffl-muted);
}
.ffl-dash__payout-value {
	margin: 0;
	font-size: clamp(2rem, 5vw, 2.75rem);
	font-weight: 700;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
}
.ffl-dash__facts {
	margin: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px 24px;
}
.ffl-dash__facts div {
	border-left: 1px solid var(--ffl-rule);
	padding-left: 12px;
}
.ffl-dash__facts dt {
	font-size: 0.875rem;
	color: var(--ffl-muted);
}
.ffl-dash__facts dd {
	margin: 0;
	font-size: 1.2rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.ffl-dash__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 28px 32px;
}

.ffl-table {
	width: 100%;
	border-collapse: collapse;
	font-variant-numeric: tabular-nums;
	margin: 0;
}
.ffl-table th,
.ffl-table td {
	text-align: left;
	padding: 8px 6px;
	border: 0;
	border-bottom: 1px solid var(--ffl-rule);
	background: none;
}
.ffl-table th {
	font-weight: 600;
	font-size: 0.875rem;
	color: var(--ffl-muted);
}
.ffl-table .num {
	text-align: right;
	white-space: nowrap;
}
.ffl-dash__statements {
	overflow-x: auto;
}

.ffl-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.ffl-list li {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 0;
	border-bottom: 1px solid var(--ffl-rule);
	font-variant-numeric: tabular-nums;
}
.ffl-stock li.is-low span:last-child {
	color: #a15c00;
	font-weight: 600;
}
.ffl-stock li.is-out span:last-child {
	color: #b32d2e;
	font-weight: 600;
}

.ffl-empty,
.ffl-note {
	color: var(--ffl-muted);
	font-size: 0.925rem;
	margin: 8px 0 0;
}

.ffl-dash__share {
	display: flex;
	gap: 24px;
	align-items: center;
	border: 1px solid var(--ffl-rule);
	border-radius: 6px;
	padding: 20px;
}
.ffl-qr {
	flex: 0 0 auto;
	width: 152px;
	background: #fff;
	padding: 8px;
	border-radius: 4px;
}
.ffl-qr img,
.ffl-qr canvas {
	width: 100% !important;
	height: auto !important;
	display: block;
}
.ffl-share-url input {
	width: 100%;
	max-width: 420px;
}

.ffl-dash a:focus-visible,
.ffl-dash select:focus-visible,
.ffl-dash input:focus-visible {
	outline: 2px solid var(--ffl-accent);
	outline-offset: 2px;
}

@media (max-width: 640px) {
	.ffl-dash__summary {
		grid-template-columns: 1fr;
		padding: 18px;
	}
	.ffl-dash__share {
		flex-direction: column;
		align-items: flex-start;
	}
}
