/*
 * Pilote Xiaomi Store : fiche produit au format de la page « Acheter » de mi.com/fr.
 * Mêmes repères que l'explorateur de la boutique : texte #191919, gris #757575 / #898989, orange #ff6900,
 * filets #eeeeee, police MiSans. Ordinateur : barre du produit collée sous l'en-tête, galerie grise à gauche qui
 * reste en vue, colonne d'achat à droite. Jusqu'à 1023 px : une colonne, barre d'achat fixe en bas de l'écran.
 */

.xs-fp {
	--xs-police: "XS MiSans", CamphorProForXiaoMi, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--xs-orange: #ff6900;
	--xs-orange-fonce: #f25a00;
	--xs-encre: #191919;
	--xs-gris: #757575;
	--xs-gris-clair: #898989;
	--xs-filet: #eeeeee;
	--xs-galerie: #f5f6f8;
	--xs-vert: #1da851;
	--xs-fp-haut: 84px; /* bas de l'en-tête collant du thème, mesuré par le script */
	--xs-fp-barre: 64px;
	position: relative;
	width: 100%;
	background: #fff; /* page blanche comme mi.com : la colonne d'achat ne forme plus un bloc blanc sur fond gris */
	color: var(--xs-encre);
	font-family: var(--xs-police);
	font-size: 14px;
	line-height: 1.45;
	text-align: left;
}
.xs-fp *, .xs-fp *::before, .xs-fp *::after { box-sizing: border-box; }
.xs-fp [hidden] { display: none !important; }
.xs-fp button, .xs-fp input { margin: 0; font-family: var(--xs-police); letter-spacing: normal; text-transform: none; box-shadow: none; }
.xs-fp button { min-width: 0; min-height: 0; cursor: pointer; -webkit-appearance: none; appearance: none; line-height: 1.2; text-decoration: none; }
.xs-fp a { text-decoration: none; }
.xs-fp button:focus-visible, .xs-fp a:focus-visible, .xs-fp input:focus-visible, .xs-fp summary:focus-visible, .xs-fp [tabindex]:focus-visible { outline: 2px solid var(--xs-orange); outline-offset: 2px; }
.xs-fp .xs-ico, .xs-fp .xs-fp-ico { display: block; flex: 0 0 auto; }
.xs-fp del, .xs-fp del * { color: var(--xs-gris-clair) !important; -webkit-text-stroke-color: transparent !important; text-decoration: line-through !important; text-decoration-color: var(--xs-gris-clair) !important; }
/* Le thème coupe ce qui dépasse de .wrapper-container (overflow: hidden), ce qui empêche la barre et la galerie de
   rester en vue (sticky). clip coupe pareil sans créer de zone de défilement. */
.wrapper-container:has(.xs-fp) { overflow: clip; }
/* Barre d'achat collante du thème : remplacée par la barre du produit. Bouton WhatsApp flottant : la fiche a le
   sien (colonne d'achat, barre du bas du téléphone), et il masquait le total. */
body:has(.xs-fp) #sticky-menu-bar, body:has(.xs-fp) .xs-wa-flottant { display: none !important; }

.xs-fp__avis { max-width: 1440px; margin: 0 auto; padding: 16px 32px 0; }

/* ---------- barre du produit ---------- */
.xs-fp__barre { position: sticky; top: var(--xs-fp-haut); z-index: 60; background: #fff; border-bottom: 1px solid var(--xs-filet); }
.xs-fp__barre-in { display: flex; align-items: center; gap: 24px; max-width: 1360px; height: var(--xs-fp-barre); margin: 0 auto; padding: 0 32px; }
.xs-fp__titre { display: flex; flex: 0 1 auto; align-items: center; gap: 10px; min-width: 0; }
.xs-fp .xs-fp__nom { margin: 0; padding: 0; overflow: hidden; color: var(--xs-encre); font-family: var(--xs-police); font-size: 22px; font-weight: 600; line-height: 1.2; letter-spacing: normal; text-overflow: ellipsis; text-transform: none; white-space: nowrap; }
.xs-fp__badges { display: inline-flex; flex: 0 0 auto; gap: 6px; }
.xs-fp-badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 600; line-height: 1; white-space: nowrap; }
.xs-fp-badge--nouveau { background: #f6ecd7; color: #be7600; }
.xs-fp-badge--promo { background: #fff0e6; color: var(--xs-orange); }
.xs-fp__onglets { display: flex; flex: 1 1 auto; gap: 28px; min-width: 0; margin-left: 16px; overflow-x: auto; scrollbar-width: none; }
.xs-fp__onglets::-webkit-scrollbar { display: none; }
.xs-fp .xs-fp__onglet { position: relative; flex: 0 0 auto; padding: 21px 0; color: var(--xs-gris); font-size: 15px; line-height: 20px; white-space: nowrap; transition: color .15s; }
.xs-fp .xs-fp__onglet:hover, .xs-fp .xs-fp__onglet.est-actif { color: var(--xs-encre); }
.xs-fp .xs-fp__onglet.est-actif::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--xs-encre); }
.xs-fp__barre-achat { display: flex; flex: 0 0 auto; align-items: center; gap: 16px; margin-left: auto; }
.xs-fp__barre-prix { font-size: 18px; font-weight: 600; white-space: nowrap; }

/* ---------- boutons ---------- */
.xs-fp .xs-fp-bouton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; height: 50px; padding: 0 20px; overflow: hidden; border: 1px solid transparent; border-radius: 999px; font-size: 15px; font-weight: 600; line-height: 1.2; text-align: center; text-overflow: ellipsis; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s, opacity .15s; }
.xs-fp .xs-fp-bouton--petit { height: 40px; padding: 0 22px; font-size: 14px; }
.xs-fp .xs-fp-bouton--noir { border-color: var(--xs-encre); background: var(--xs-encre); color: #fff; }
.xs-fp .xs-fp-bouton--noir:hover { border-color: #3a3a3a; background: #3a3a3a; color: #fff; }
.xs-fp .xs-fp-bouton--orange { border-color: var(--xs-orange); background: var(--xs-orange); color: #fff; }
.xs-fp .xs-fp-bouton--orange:hover { border-color: var(--xs-orange-fonce); background: var(--xs-orange-fonce); color: #fff; }
.xs-fp .xs-fp-bouton--wa { border-color: var(--xs-vert); background: #fff; color: var(--xs-vert); }
.xs-fp .xs-fp-bouton--wa:hover { background: var(--xs-vert); color: #fff; }
.xs-fp .xs-fp-bouton:disabled { border-color: #e6e6e6; background: #e6e6e6; color: #9a9a9a; cursor: not-allowed; }
.xs-fp .xs-fp-bouton.est-envoi { opacity: .6; cursor: progress; }
.xs-fp .xs-fp-bouton.est-ajoute, .xs-fp .xs-fp-bouton.est-ajoute:hover { border-color: var(--xs-vert); background: var(--xs-vert); color: #fff; opacity: 1; }

/* ---------- zone d'achat : galerie | colonne ---------- */
/* Galerie en carte grise à côté de la colonne, à hauteur d'écran mais 640 px au plus : la photo ne mange pas l'écran. */
.xs-fp__zone { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(400px, 1fr); gap: 0 56px; align-items: start; max-width: 1360px; margin: 0 auto; padding: 24px 32px 0; }

.xs-fp__galerie { align-self: stretch; min-width: 0; }
.xs-fp__galerie-in { position: sticky; top: calc(var(--xs-fp-haut) + var(--xs-fp-barre) + 24px); display: flex; flex-direction: column; height: min(calc(100vh - var(--xs-fp-depart, calc(var(--xs-fp-haut) + var(--xs-fp-barre))) - 48px), 640px); min-height: 420px; padding: 20px 24px 16px; border-radius: 20px; background: var(--xs-galerie); }
.xs-fp__scene { position: relative; flex: 1 1 auto; min-height: 0; }
.xs-fp__piste { display: flex; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; outline: 0; -webkit-overflow-scrolling: touch; }
.xs-fp__piste::-webkit-scrollbar { display: none; }
.xs-fp .xs-fp__vue { display: flex; flex: 0 0 100%; align-items: center; justify-content: center; width: 100%; height: 100%; margin: 0; padding: 40px 48px 8px; scroll-snap-align: center; scroll-snap-stop: always; cursor: zoom-in; }
.xs-fp .xs-fp__vue img { display: block; width: auto; max-width: 100%; height: auto; max-height: 100%; margin: 0; object-fit: contain; border: 0; border-radius: 0; box-shadow: none; mix-blend-mode: multiply; }
.xs-fp__accroche { position: absolute; top: 0; left: 50%; z-index: 2; max-width: calc(100% - 120px); margin: 0; padding: 8px 16px; overflow: hidden; border-radius: 999px; background: #fff; color: var(--xs-encre); font-size: 14px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; transform: translateX(-50%); box-shadow: 0 1px 4px rgba(0, 0, 0, .05); }
.xs-fp .xs-fp__fleche { position: absolute; top: 50%; z-index: 2; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-top: -22px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--xs-encre); box-shadow: 0 2px 10px rgba(0, 0, 0, .08); transition: opacity .15s, background-color .15s; }
.xs-fp .xs-fp__fleche:hover { background: #fff; color: var(--xs-encre); }
.xs-fp .xs-fp__fleche:disabled { opacity: 0; pointer-events: none; }
.xs-fp__fleche--prec { left: 0; }
.xs-fp__fleche--suiv { right: 0; }
.xs-fp .xs-fp__agrandir { position: absolute; right: 0; bottom: 0; z-index: 2; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--xs-encre); box-shadow: 0 2px 10px rgba(0, 0, 0, .08); }
.xs-fp .xs-fp__agrandir:hover { background: #fff; color: var(--xs-orange); }
.xs-fp__compteur { display: none; }
.xs-fp__vignettes { position: relative; display: flex; flex: 0 0 auto; justify-content: flex-start; gap: 10px; margin-top: 16px; overflow-x: auto; scrollbar-width: none; }
.xs-fp__vignettes::-webkit-scrollbar { display: none; }
/* Vignettes centrées tant qu'elles tiennent ; au-delà, alignées à gauche et défilables (« justify-content: center »
   coupait les premières, hors d'atteinte du défilement). */
.xs-fp__vignettes::before, .xs-fp__vignettes::after { content: ""; flex: 0 0 0px; margin: auto; }
.xs-fp .xs-fp__vignette { flex: 0 0 56px; width: 56px; height: 56px; padding: 4px; border: 1px solid transparent; border-radius: 10px; background: #fff; transition: border-color .15s; }
.xs-fp .xs-fp__vignette:hover { border-color: #c9c9c9; background: #fff; }
.xs-fp .xs-fp__vignette.est-actif { border-color: var(--xs-orange); box-shadow: inset 0 0 0 1px var(--xs-orange); }
.xs-fp .xs-fp__vignette img { display: block; width: 100%; height: 100%; margin: 0; object-fit: contain; border: 0; border-radius: 6px; mix-blend-mode: multiply; }

/* ---------- colonne d'achat ---------- */
.xs-fp__colonne { min-width: 0; margin: 0; padding: 12px 0 56px; background: none; }
.xs-fp__prix-ligne { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.xs-fp__prix { margin: 0; color: var(--xs-orange); font-size: 14px; line-height: 1.15; }
.xs-fp__prix strong { color: var(--xs-orange); font-size: 34px; font-weight: 700; letter-spacing: -.01em; }
.xs-fp__des { color: var(--xs-gris); font-size: 14px; font-weight: 400; }
.xs-fp__prix.est-sans-prix strong { color: var(--xs-gris); font-size: 26px; font-weight: 600; }
.xs-fp .xs-fp__partager { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--xs-encre); }
.xs-fp .xs-fp__partager:hover { background: #f5f5f5; color: var(--xs-orange); }
.xs-fp__promo { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 8px 0 0; font-size: 14px; }
.xs-fp__eco { color: var(--xs-orange); font-weight: 600; }
.xs-fp__ttc { margin: 6px 0 0; color: var(--xs-gris-clair); font-size: 12px; }
.xs-fp__resume { margin: 20px 0 0; color: #555555; font-size: 14px; line-height: 1.6; }
.xs-fp__resume p { margin: 0 0 8px; }
.xs-fp .xs-fp__plus { display: inline-flex; margin-top: 10px; color: var(--xs-encre); font-size: 14px; font-weight: 600; }
.xs-fp .xs-fp__plus::after { content: "→"; margin-left: 6px; }
.xs-fp .xs-fp__plus:hover { color: var(--xs-orange); }

/* Points forts : coche orange, texte court ; « libellé : valeur » en petit tableau. */
.xs-fp .xs-fp-points { margin: 0; padding: 0; list-style: none; }
.xs-fp .xs-fp-points li { position: relative; margin: 0; padding: 0 0 0 26px; color: #333333; line-height: 1.5; list-style: none; }
.xs-fp .xs-fp-points li::before { content: ""; position: absolute; top: .3em; left: 1px; width: 16px; height: 16px; background: var(--xs-orange); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") no-repeat center / contain; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") no-repeat center / contain; }
.xs-fp .xs-fp-points--court li { font-size: 14px; }
.xs-fp .xs-fp-points--court li + li { margin-top: 6px; }
.xs-fp .xs-fp-mini { margin: 0 0 8px; padding: 0; border-top: 1px solid var(--xs-filet); }
.xs-fp .xs-fp-mini > div { display: grid; grid-template-columns: minmax(0, 34%) minmax(0, 1fr); gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--xs-filet); }
.xs-fp .xs-fp-mini dt { margin: 0; color: var(--xs-gris); font-size: 15px; font-weight: 400; line-height: 1.5; }
.xs-fp .xs-fp-mini dd { margin: 0; color: var(--xs-encre); font-size: 15px; font-weight: 500; line-height: 1.5; overflow-wrap: anywhere; }
.xs-fp .xs-fp__resume blockquote, .xs-fp .xs-fp__resume q { margin: 0; padding: 0; border: 0; background: none; color: inherit; font-family: inherit; font-size: inherit; font-style: normal; font-weight: inherit; line-height: inherit; quotes: none; }
.xs-fp .xs-fp__resume blockquote::before, .xs-fp .xs-fp__resume blockquote::after { content: none; }
.xs-fp__resume > :last-child { margin-bottom: 0; }

.xs-fp-attr { min-width: 0; margin: 32px 0 0; padding: 0; border: 0; }
.xs-fp .xs-fp-attr__titre { display: block; float: none; width: 100%; margin: 0 0 14px; padding: 0; border: 0; color: var(--xs-encre); font-family: var(--xs-police); font-size: 20px; font-weight: 600; line-height: 1.3; }
.xs-fp-attr__choisi { margin-left: 6px; color: var(--xs-gris); font-size: 14px; font-weight: 400; }
.xs-fp-attr__choix { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 12px; }
.xs-fp .xs-fp-option { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 64px; margin: 0; padding: 12px 10px; border: 1px solid #e0e0e0; border-radius: 12px; background: #fff; color: var(--xs-encre); font-weight: 400; text-align: center; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.xs-fp-attr__choix--couleurs .xs-fp-option { min-height: 84px; }
.xs-fp .xs-fp-option:hover { border-color: #9a9a9a; }
.xs-fp .xs-fp-option.est-actif, .xs-fp .xs-fp-option.est-actif:hover { border-color: var(--xs-orange); box-shadow: inset 0 0 0 1px var(--xs-orange); }
.xs-fp .xs-fp-option:has(input:focus-visible) { outline: 2px solid var(--xs-orange); outline-offset: 2px; }
.xs-fp .xs-fp-option input { position: absolute; top: 0; left: 0; width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; opacity: 0; }
.xs-fp-option__pastille { display: block; width: 24px; height: 24px; border-radius: 50%; background: var(--xs-teinte, #ddd); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14); }
.xs-fp-option__nom { font-size: 14px; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.xs-fp-option__prix { color: var(--xs-gris); font-size: 13px; line-height: 1.2; }
.xs-fp-option__etat { display: none; color: var(--xs-gris-clair); font-size: 12px; line-height: 1.2; }
.xs-fp .xs-fp-option.est-epuise { border-style: dashed; }
.xs-fp .xs-fp-option.est-epuise .xs-fp-option__nom, .xs-fp .xs-fp-option.est-epuise .xs-fp-option__prix { color: #b4b4b4; }
.xs-fp .xs-fp-option.est-epuise .xs-fp-option__pastille { opacity: .45; }
.xs-fp .xs-fp-option.est-epuise .xs-fp-option__etat { display: block; }
.xs-fp .xs-fp-option.est-epuise .xs-fp-option__prix { display: none; }

/* Souvent achetés ensemble (extension WPC) : articles à cocher, prix d'ensemble, option, lien vers la fiche. */
.xs-fp-ens { min-width: 0; margin: 32px 0 0; padding: 0; border: 0; }
.xs-fp-ens[hidden] { display: none; }
.xs-fp .xs-fp-ens__texte, .xs-fp .xs-fp-ens__remise { margin: -6px 0 12px; color: var(--xs-gris); font-size: 13px; line-height: 1.45; }
.xs-fp .xs-fp-ens__remise { color: var(--xs-orange-fonce); font-weight: 500; }
.xs-fp .xs-fp-ens__liste { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.xs-fp-ens__item { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; margin: 0; border: 1px solid #e0e0e0; border-radius: 12px; background: #fff; transition: border-color .15s ease, box-shadow .15s ease; }
.xs-fp-ens__item:hover { border-color: #bdbdbd; }
.xs-fp-ens__item.est-coche { border-color: var(--xs-orange); box-shadow: inset 0 0 0 1px var(--xs-orange); }
.xs-fp-ens__case { position: absolute; top: 0; left: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.xs-fp .xs-fp-ens__carte { display: grid; grid-template-columns: 22px 56px minmax(0, 1fr); align-items: center; gap: 12px; min-width: 0; margin: 0; padding: 10px 0 10px 14px; color: inherit; font-size: inherit; font-weight: 400; line-height: inherit; cursor: pointer; }
.xs-fp-ens__case:focus-visible + .xs-fp-ens__carte { outline: 2px solid var(--xs-orange); outline-offset: 2px; border-radius: 12px; }
.xs-fp-ens__coche { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; box-sizing: border-box; border: 1.5px solid #c4c4c4; border-radius: 50%; color: transparent; background: #fff; transition: background-color .15s ease, border-color .15s ease; }
.xs-fp-ens__case:checked + .xs-fp-ens__carte .xs-fp-ens__coche { border-color: var(--xs-orange); color: #fff; background: var(--xs-orange); }
.xs-fp-ens__img { display: block; width: 56px; height: 56px; overflow: hidden; border-radius: 8px; background: var(--xs-galerie); }
.xs-fp-ens__img img { display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.xs-fp-ens__txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.xs-fp-ens__nom { display: -webkit-box; overflow: hidden; color: var(--xs-encre); font-size: 14px; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.xs-fp-ens__qte { color: var(--xs-gris); white-space: nowrap; }
.xs-fp-ens__prix { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-size: 14px; line-height: 1.3; }
.xs-fp-ens__prix strong { font-weight: 600; }
.xs-fp-ens__prix del { font-size: 12px; }
.xs-fp .xs-fp-ens__offert { color: var(--xs-orange-fonce); }
.xs-fp .xs-fp-ens__lien { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-right: 6px; border-radius: 50%; color: var(--xs-gris); text-decoration: none; }
.xs-fp .xs-fp-ens__lien:hover { color: var(--xs-encre); background: var(--xs-galerie); }
.xs-fp .xs-fp-ens__var { grid-column: 1 / -1; justify-self: start; width: auto; min-width: 140px; max-width: calc(100% - 130px); height: 34px; margin: -4px 0 12px 116px; padding: 0 32px 0 12px; border: 1px solid #e0e0e0; border-radius: 8px; color: var(--xs-encre); font-family: var(--xs-police); font-size: 13px; line-height: 32px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23757575' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9.5l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; box-shadow: none; -webkit-appearance: none; appearance: none; cursor: pointer; }
.xs-fp__recap-ens .xs-fp__recap-nom, .xs-fp__recap-ens .xs-fp__recap-prix { font-size: 14px; font-weight: 400; }
.xs-fp__recap-ens[hidden] { display: none; }
.xs-fp .xs-fp__recap-moins { color: var(--xs-orange-fonce); }

.xs-fp__recap { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--xs-filet); }
.xs-fp__recap-ligne { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.xs-fp__recap-ligne + .xs-fp__recap-ligne { margin-top: 14px; }
.xs-fp__recap-nom { min-width: 0; margin: 0; font-size: 15px; font-weight: 600; line-height: 1.35; }
.xs-fp__recap-var { display: block; color: var(--xs-gris); font-size: 13px; font-weight: 400; }
.xs-fp__recap-var:empty { display: none; }
.xs-fp__recap-prix { display: flex; flex: 0 0 auto; flex-direction: column; align-items: flex-end; margin: 0; font-size: 15px; font-weight: 600; white-space: nowrap; }
.xs-fp__recap-prix del { font-size: 13px; font-weight: 400; }
.xs-fp__stock { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--xs-vert); font-size: 13px; font-weight: 500; }
.xs-fp__stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.xs-fp__stock.est-dernier { color: var(--xs-orange); }
.xs-fp__stock.est-indispo { color: var(--xs-gris); }
.xs-fp-qte { display: inline-flex; flex: 0 0 auto; align-items: center; height: 40px; border: 1px solid #e0e0e0; border-radius: 999px; background: #fff; }
.xs-fp .xs-fp-qte button { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 38px; padding: 0; border: 0; border-radius: 999px; background: none; color: var(--xs-encre); }
.xs-fp .xs-fp-qte button:hover { background: #f5f5f5; color: var(--xs-encre); }
.xs-fp .xs-fp-qte button:disabled { background: none; color: #cccccc; cursor: default; }
.xs-fp .xs-fp-qte input { width: 36px; height: 38px; padding: 0; border: 0; background: none; color: var(--xs-encre); font-size: 15px; font-weight: 600; text-align: center; -moz-appearance: textfield; appearance: textfield; }
.xs-fp .xs-fp-qte input::-webkit-outer-spin-button, .xs-fp .xs-fp-qte input::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }
.xs-fp__total { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: 20px; padding-top: 18px; border-top: 1px dashed #e0e0e0; }
.xs-fp__total span { font-size: 18px; font-weight: 600; }
.xs-fp__total strong { font-size: 26px; font-weight: 700; white-space: nowrap; }

.xs-fp__boutons { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-top: 24px; }
.xs-fp__boutons .xs-fp-bouton--wa { grid-column: 1 / -1; }
.xs-fp__boutons.est-indispo .xs-fp-bouton--wa { grid-column: 1 / -1; }
.xs-fp__autre { grid-column: 1 / -1; }

.xs-fp__avantages { margin-top: 32px; border-top: 1px solid var(--xs-filet); border-bottom: 1px solid var(--xs-filet); }
.xs-fp__avantages > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0; color: var(--xs-encre); font-size: 18px; font-weight: 600; line-height: 1.3; list-style: none; cursor: pointer; }
.xs-fp__avantages > summary::-webkit-details-marker { display: none; }
.xs-fp__avantages > summary .xs-fp-ico { transition: transform .2s; }
.xs-fp__avantages[open] > summary .xs-fp-ico { transform: rotate(180deg); }
.xs-fp .xs-reassurance--mi { gap: 18px; margin: 0 0 20px; }
.xs-fp .xs-reassurance--mi .xs-reassurance__el, .xs-fp .xs-reassurance--mi .xs-reassurance__el > a { align-items: flex-start; gap: 12px; }
.xs-fp .xs-reassurance--mi .xs-ico { margin-top: 1px; }
.xs-fp .xs-reassurance--mi .xs-reassurance__t { flex-direction: column; gap: 2px; }
.xs-fp .xs-reassurance--mi .xs-reassurance__t strong { font-size: 15px; font-weight: 600; }
.xs-fp .xs-reassurance--mi .xs-reassurance__t span { color: var(--xs-gris); font-size: 13px; }
.xs-fp .xs-manuel { margin: 20px 0 0; }

/* ---------- sections ---------- */
.xs-fp__section { scroll-margin-top: calc(var(--xs-fp-haut) + var(--xs-fp-barre) + 8px); border-top: 1px solid var(--xs-filet); background: #fff; }
.xs-fp__section-in { max-width: 1200px; margin: 0 auto; padding: 64px 32px; }
.xs-fp .xs-fp__h2 { margin: 0 0 32px; padding: 0; color: var(--xs-encre); font-family: var(--xs-police); font-size: 32px; font-weight: 700; line-height: 1.2; letter-spacing: normal; text-align: center; text-transform: none; }
.xs-fp__desc { max-width: 960px; margin: 0 auto; color: #333333; font-size: 16px; line-height: 1.7; }
.xs-fp__desc p { margin: 0 0 16px; }
.xs-fp__desc h2, .xs-fp__desc h3, .xs-fp__desc h4 { margin: 32px 0 12px; color: var(--xs-encre); font-family: var(--xs-police); font-weight: 700; line-height: 1.3; text-transform: none; }
.xs-fp__desc img { max-width: 100%; height: auto; border-radius: 12px; }
.xs-fp .xs-fp__desc > .xs-fp-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 48px; margin: 0 0 24px; }
.xs-fp .xs-fp__desc > .xs-fp-points li { font-size: 16px; }
.xs-fp .xs-fp__h3 { margin: 36px 0 14px; padding: 0; color: var(--xs-encre); font-family: var(--xs-police); font-size: 20px; font-weight: 700; line-height: 1.3; text-transform: none; }
.xs-fp .xs-fp__desc > .xs-fp__h3:first-child { margin-top: 0; }
.xs-fp .xs-fp__desc blockquote { margin: 0 0 16px; padding: 0 0 0 16px; border: 0; border-left: 3px solid var(--xs-orange); background: none; color: #333333; font-size: inherit; font-style: normal; }
.xs-fp__desc iframe, .xs-fp__desc video { max-width: 100%; }
.xs-fp__desc .xsf { max-width: none; }

.xs-fp__specs { max-width: 960px; margin: 0 auto; padding: 0; border-top: 1px solid var(--xs-filet); }
.xs-fp__spec { display: grid; grid-template-columns: minmax(0, 34%) minmax(0, 1fr); gap: 24px; margin: 0; padding: 18px 0; border-bottom: 1px solid var(--xs-filet); }
.xs-fp__spec dt { margin: 0; color: var(--xs-gris); font-size: 15px; font-weight: 400; line-height: 1.5; }
.xs-fp__spec dd { margin: 0; color: var(--xs-encre); font-size: 15px; font-weight: 500; line-height: 1.5; overflow-wrap: anywhere; white-space: pre-line; }

/* Présentation de mi.com : pleine largeur, dans un cadre isolé (ses propres styles) ; source citée. */
.xs-fp__section--mi { overflow: hidden; overflow: clip; }
.xs-fp__section-in--mi { padding-bottom: 32px; }
.xs-fp .xs-fp-mi__source { margin: -12px 0 0; color: var(--xs-gris); font-size: 13px; text-align: center; }
.xs-fp .xs-fp-mi__source a { color: var(--xs-encre); text-decoration: underline; text-underline-offset: 3px; }
.xs-fp-mi { display: block; width: 100%; min-height: 160px; }
.xs-fp .xs-fp-mi__attente { margin: 0; padding: 48px 16px; color: var(--xs-gris); font-size: 14px; text-align: center; }
.xs-fp-mi.est-erreur .xs-fp-mi__attente { color: var(--xs-gris-clair); }

.xs-fp__section--reco { background: #fafafa; }
.xs-fp__reco { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.xs-fp__reco li { margin: 0; }
.xs-fp .xs-fp-reco { display: flex; flex-direction: column; height: 100%; padding: 16px 16px 20px; border-radius: 16px; background: #fff; color: var(--xs-encre); transition: box-shadow .2s, transform .2s; }
.xs-fp .xs-fp-reco:hover { color: var(--xs-encre); box-shadow: 0 8px 24px rgba(0, 0, 0, .08); transform: translateY(-2px); }
.xs-fp-reco__visuel { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; margin-bottom: 14px; border-radius: 12px; background: var(--xs-galerie); }
.xs-fp-reco__visuel img { display: block; width: 78%; height: 78%; margin: 0; object-fit: contain; mix-blend-mode: multiply; }
.xs-fp-reco__nom { display: -webkit-box; overflow: hidden; margin-bottom: 8px; font-size: 15px; font-weight: 600; line-height: 1.35; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.xs-fp-reco__prix { margin-top: auto; font-size: 13px; }
.xs-fp-reco__prix strong { color: var(--xs-encre); font-size: 16px; font-weight: 700; }
.xs-fp-reco__prix del { margin-left: 6px; }
.xs-fp-reco__des { color: var(--xs-gris); }

/* ---------- barre d'achat du téléphone, message ---------- */
.xs-fp__pied { display: none; }
.xs-fp__toast { position: fixed; top: calc(var(--xs-fp-haut) + var(--xs-fp-barre) + 12px); right: 24px; z-index: 1000; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; max-width: min(420px, calc(100vw - 32px)); padding: 14px 18px; border-radius: 14px; background: var(--xs-encre); color: #fff; font-size: 14px; line-height: 1.35; box-shadow: 0 12px 32px rgba(0, 0, 0, .22); opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s; }
.xs-fp__toast.est-visible { opacity: 1; transform: none; }
.xs-fp__toast.est-erreur { background: #b3261e; }
.xs-fp .xs-fp__toast a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.xs-fp .xs-fp__toast a:hover { color: #ffd0b0; }

/* ---------- loupe (photos en grand) ---------- */
.xs-fp-loupe { position: fixed; inset: 0; z-index: 100001; width: 100vw; max-width: none; height: 100vh; max-height: none; margin: 0; padding: 0; border: 0; background: #fff; color: #191919; font-family: "XS MiSans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.xs-fp-loupe::backdrop { background: #fff; }
.xs-fp-loupe__piste { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior: contain; }
.xs-fp-loupe__piste::-webkit-scrollbar { display: none; }
.xs-fp-loupe__vue { display: flex; flex: 0 0 100%; align-items: center; justify-content: center; margin: 0; padding: 64px 72px; scroll-snap-align: center; }
.xs-fp-loupe__vue img { max-width: 100%; max-height: 100%; object-fit: contain; }
.xs-fp-loupe button { position: absolute; z-index: 2; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: #f2f2f2; color: #191919; cursor: pointer; box-shadow: none; }
.xs-fp-loupe button:hover { background: #e6e6e6; color: #191919; }
.xs-fp-loupe button:disabled { opacity: 0; pointer-events: none; }
.xs-fp-loupe__fermer { top: 16px; right: 16px; }
.xs-fp-loupe__prec { top: 50%; left: 16px; margin-top: -24px !important; }
.xs-fp-loupe__suiv { top: 50%; right: 16px; margin-top: -24px !important; }
.xs-fp-loupe__compteur { position: absolute; top: 28px; left: 50%; margin: 0; color: #757575; font-size: 14px; transform: translateX(-50%); }

/* ---------- écrans moyens ---------- */
@media (max-width: 1279px) {
	.xs-fp__zone { gap: 0 40px; padding: 20px 24px 0; }
	.xs-fp__barre-in { padding: 0 24px; }
	.xs-fp__onglets { gap: 20px; margin-left: 8px; }
	.xs-fp .xs-fp__nom { font-size: 20px; }
	.xs-fp__reco { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.xs-fp__reco li:nth-child(n+5) { display: none; }
}

/* ---------- tablette et téléphone ---------- */
@media (max-width: 1023px) {
	.xs-fp__avis { padding: 12px 16px 0; }
	.xs-fp__barre { position: static; border-bottom: 0; }
	.xs-fp__barre-in { display: block; height: auto; padding: 20px 16px 14px; }
	.xs-fp__titre { flex-wrap: wrap; gap: 8px; }
	.xs-fp .xs-fp__nom { display: -webkit-box; font-size: 22px; white-space: normal; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
	.xs-fp__onglets, .xs-fp__barre-achat { display: none; }

	.xs-fp__zone { display: block; max-width: none; padding: 0 16px; }
	.xs-fp__galerie-in { position: static; height: auto; min-height: 0; max-height: none; padding: 0; border-radius: 16px; overflow: hidden; }
	.xs-fp__scene { height: min(76vw, 44vh); max-height: 420px; }
	.xs-fp .xs-fp__vue { padding: 36px 24px 30px; cursor: default; }
	.xs-fp__accroche { top: 10px; max-width: calc(100% - 32px); padding: 5px 12px; font-size: 12px; }
	.xs-fp .xs-fp__fleche { display: none; }
	.xs-fp .xs-fp__agrandir { right: 12px; bottom: 12px; width: 36px; height: 36px; }
	.xs-fp__compteur { position: absolute; bottom: 14px; left: 50%; z-index: 2; display: block; margin: 0; padding: 3px 10px; border-radius: 999px; background: rgba(25, 25, 25, .55); color: #fff; font-size: 12px; line-height: 1.4; transform: translateX(-50%); }
	.xs-fp__vignettes { display: none; }

	.xs-fp__colonne { padding: 20px 0 32px; }
	.xs-fp .xs-fp__desc > .xs-fp-points { grid-template-columns: minmax(0, 1fr); gap: 10px; }
	.xs-fp .xs-fp__desc > .xs-fp-points li { font-size: 15px; }
	.xs-fp .xs-fp-mini > div { grid-template-columns: minmax(0, 40%) minmax(0, 1fr); gap: 16px; padding: 12px 0; }
	.xs-fp .xs-fp-mini dt, .xs-fp .xs-fp-mini dd { font-size: 14px; }
	.xs-fp__prix strong { font-size: 30px; }
	.xs-fp-attr { margin-top: 26px; }
	.xs-fp .xs-fp-attr__titre { font-size: 18px; }
	.xs-fp-attr__choix { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
	.xs-fp-attr__choix--couleurs { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
	.xs-fp__avantages > summary { font-size: 16px; }

	.xs-fp__section { scroll-margin-top: calc(var(--xs-fp-haut) + 8px); }
	.xs-fp__section-in { padding: 40px 16px; }
	.xs-fp .xs-fp__h2 { margin-bottom: 20px; font-size: 24px; text-align: left; }
	.xs-fp__desc { font-size: 15px; }
	.xs-fp__spec { grid-template-columns: minmax(0, 40%) minmax(0, 1fr); gap: 16px; padding: 14px 0; }
	.xs-fp__spec dt, .xs-fp__spec dd { font-size: 14px; }
	.xs-fp__reco { display: flex; gap: 12px; margin: 0 -16px; padding: 0 16px 4px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
	.xs-fp__reco::-webkit-scrollbar { display: none; }
	.xs-fp__reco li { flex: 0 0 44%; scroll-snap-align: start; }
	.xs-fp__reco li:nth-child(n+5) { display: block; }

	/* Barre d'achat fixe : au-dessus de la barre du thème, quand les boutons de la colonne ne sont plus visibles. */
	.xs-fp__pied { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9995; display: flex; align-items: center; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -1px 0 #ececec, 0 -6px 20px rgba(0, 0, 0, .06); transform: translateY(110%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; }
	.xs-fp__pied.est-visible { transform: none; visibility: visible; transition: transform .25s ease, visibility 0s; }
	.xs-fp__pied-prix { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; margin: 0; line-height: 1.15; }
	.xs-fp__pied-prix strong { overflow: hidden; color: var(--xs-orange); font-size: 18px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
	.xs-fp__pied-prix del { font-size: 12px; }
	.xs-fp__pied .xs-fp-bouton { flex: 0 0 auto; height: 44px; padding: 0 16px; font-size: 14px; }
	.xs-fp__pied .xs-fp-bouton--wa { flex: 0 1 auto; }
	.xs-fp__toast { top: auto; right: 12px; bottom: calc(80px + env(safe-area-inset-bottom)); left: 12px; max-width: none; transform: translateY(8px); }
	.xs-fp-loupe__vue { padding: 64px 8px; }
	.xs-fp-loupe__prec, .xs-fp-loupe__suiv { display: none !important; }
}

@media (max-width: 600px) {
	.xs-fp__spec { grid-template-columns: minmax(0, 1fr); gap: 4px; }
	.xs-fp__spec dt { font-size: 13px; }
}

@media (max-width: 380px) {
	.xs-fp__pied { gap: 6px; padding-right: 8px; padding-left: 8px; }
	.xs-fp__pied .xs-fp-bouton { padding: 0 12px; font-size: 13px; }
	.xs-fp__pied-prix strong { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
	.xs-fp *, .xs-fp-loupe * { scroll-behavior: auto !important; transition: none !important; }
}

/* Galerie de la page d'achat mi.com : seules les photos de la couleur choisie sont montrées. */
.xs-fp .xs-fp__vue[hidden],
.xs-fp .xs-fp__vignette[hidden],
.xs-fp .xs-fp__vignettes[hidden],
.xs-fp .xs-fp__compteur[hidden] {
	display: none !important;
}
