/*
 * Pilote Xiaomi Store : explorateur du catalogue (boutique, catégories, recherche), au format de mi.com/fr.
 * Texte #191919, gris #757575 / #898989, orange #ff6900, « Nouveau » #be7600, fonds #f7f7f7, filets #eeeeee,
 * coins 12 px. Ordinateur : panneau de filtres à gauche ; jusqu'à 1023 px : puces qui défilent et panneau en bas.
 */

.xs-cat {
	--xs-police: "XS MiSans", CamphorProForXiaoMi, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--xs-orange: #ff6900;
	--xs-cat-haut: 84px; /* bas de l'en-tête collant du thème, mesuré par le script */
	--xs-cat-fond: #f7f7f7; /* fond de la page, relevé par le script */
	max-width: 1440px;
	margin: 0 auto;
	padding: 24px 0 48px;
	color: #191919;
	font-family: var(--xs-police);
	font-size: 14px;
	line-height: 1.4;
}
.xs-cat *, .xs-cat *::before, .xs-cat *::after { box-sizing: border-box; }
.xs-cat [hidden] { display: none !important; }
.xs-cat button, .xs-cat input, .xs-cat select { margin: 0; font-family: var(--xs-police); letter-spacing: normal; text-transform: none; box-shadow: none; }
.xs-cat button { min-width: 0; min-height: 0; cursor: pointer; -webkit-appearance: none; appearance: none; line-height: 1.2; text-decoration: none; }
.xs-cat button:focus-visible, .xs-cat a:focus-visible, .xs-cat input:focus-visible, .xs-cat select:focus-visible { outline: 2px solid var(--xs-orange); outline-offset: 2px; }
.xs-cat .xs-ico { display: block; }

/* ---------- en-tête et rangées de puces ---------- */
.xs-cat__tete { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin: 0 0 20px; }
.xs-cat .xs-cat__titre { margin: 0; color: #191919; font-family: var(--xs-police); font-size: 30px; font-weight: 700; line-height: 1.2; letter-spacing: normal; text-transform: none; }
.xs-cat__compte { margin: 0; color: #757575; font-size: 15px; }
.xs-cat__univers, .xs-cat__familles { margin: 0 0 12px; }
.xs-cat__defile { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.xs-cat__defile::-webkit-scrollbar { display: none; }
.xs-cat__sep { flex: 0 0 1px; margin: 6px 4px; background: #e0e0e0; }

.xs-cat .xs-cat-puce { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border: 1px solid #e0e0e0; border-radius: 999px; background: #fff; color: #191919; font-size: 14px; font-weight: 500; white-space: nowrap; transition: border-color .15s, color .15s, background-color .15s; }
.xs-cat .xs-cat-puce b { color: #898989; font-size: 13px; font-weight: 400; }
.xs-cat .xs-cat-puce b:empty { display: none; }
.xs-cat .xs-cat-puce:hover { border-color: #191919; background: #fff; color: #191919; }
.xs-cat .xs-cat-puce.est-actif, .xs-cat .xs-cat-puce.est-actif:hover { border-color: var(--xs-orange); background: #fff4ed; color: var(--xs-orange); }
.xs-cat .xs-cat-puce.est-actif b { color: var(--xs-orange); }
.xs-cat .xs-cat-puce.est-vide { border-color: #eeeeee; color: #b4b4b4; cursor: default; }
.xs-cat .xs-cat-puce.est-vide b { color: #c8c8c8; }
.xs-cat__picto { flex: 0 0 auto; }
.xs-cat__familles .xs-cat-puce { height: 36px; padding: 0 14px; background: #f7f7f7; border-color: #f7f7f7; }
.xs-cat__familles .xs-cat-puce:hover { background: #f7f7f7; }

/* ---------- corps : panneau + résultats ---------- */
/* Le thème coupe ce qui dépasse de .wrapper-container avec overflow: hidden, ce qui empêche le panneau de rester en
   vue (sticky). clip coupe pareil sans créer de zone de défilement. */
.wrapper-container:has(.xs-cat) { overflow: clip; }
.xs-cat__corps { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 32px; align-items: start; margin-top: 20px; }
.xs-cat__panneau { position: sticky; top: calc(var(--xs-cat-haut) + 12px); max-height: calc(100vh - var(--xs-cat-haut) - 24px); overflow: auto; padding: 4px 20px 12px; border-radius: 12px; background: #fff; outline: 0; scrollbar-width: thin; scrollbar-color: #dcdcdc transparent; }
.xs-cat__panneau-attente { margin: 0; padding: 24px 0; color: #898989; font-size: 13px; }
.xs-cat.est-attente, .xs-cat.est-attente button { cursor: progress; }
.xs-cat .xs-cat-puce.est-attente { border-color: var(--xs-orange); color: var(--xs-orange); }
.xs-cat__panneau-tete, .xs-cat__panneau-pied, .xs-cat__voile, .xs-cat__ouvrir, .xs-cat-bloc--tri { display: none; }
.xs-cat-bloc { padding: 16px 0; border-bottom: 1px solid #eeeeee; }
.xs-cat-bloc:last-child { border-bottom: 0; }
.xs-cat .xs-cat-bloc__titre { margin: 0 0 12px; color: #191919; font-family: var(--xs-police); font-size: 16px; font-weight: 700; line-height: 1.3; letter-spacing: normal; text-transform: none; }

.xs-cat-arbre, .xs-cat-arbre ul { margin: 0; padding: 0; list-style: none; }
.xs-cat-arbre ul { margin: 2px 0 6px 12px; padding-left: 8px; border-left: 1px solid #eeeeee; }
.xs-cat .xs-cat-ligne { display: flex; justify-content: space-between; gap: 8px; width: 100%; height: auto; padding: 8px 10px; border: 0; border-radius: 8px; background: none; color: #303030; font-size: 14px; font-weight: 400; text-align: left; white-space: normal; }
.xs-cat .xs-cat-ligne:hover { border: 0; background: #f7f7f7; color: #191919; }
.xs-cat .xs-cat-ligne--univers { font-weight: 600; }
.xs-cat .xs-cat-ligne.est-actif, .xs-cat .xs-cat-ligne.est-actif:hover { border: 0; background: #fff4ed; color: var(--xs-orange); font-weight: 600; }
.xs-cat .xs-cat-ligne.est-vide { background: none; color: #b4b4b4; }
.xs-cat .xs-cat-ligne--case { justify-content: flex-start; align-items: center; }
.xs-cat .xs-cat-ligne--case::before { content: ""; flex: 0 0 18px; width: 18px; height: 18px; border: 1.5px solid #b4b4b4; border-radius: 5px; background: #fff; }
.xs-cat .xs-cat-ligne--case.est-actif::before { border-color: var(--xs-orange); background: var(--xs-orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat; }
.xs-cat .xs-cat-ligne--case b { margin-left: auto; }
.xs-cat .xs-cat-ligne b { color: #898989; font-weight: 400; }
.xs-cat .xs-cat-ligne.est-actif b { color: var(--xs-orange); }

/* budget : histogramme, double curseur, budgets tout faits */
.xs-cat-histo { display: flex; align-items: flex-end; gap: 2px; height: 56px; padding: 0 9px; }
.xs-cat-histo span { flex: 1 1 0; min-height: 2px; border-radius: 3px 3px 0 0; background: #e6e6e6; transition: height .2s, background-color .2s; }
.xs-cat-histo span.est-dedans { background: #ffb27a; }
.xs-cat-glissiere { position: relative; height: 28px; }
.xs-cat-glissiere::before { content: ""; position: absolute; top: 13px; left: 9px; right: 9px; height: 2px; border-radius: 2px; background: #dbdbdb; }
.xs-cat .xs-cat-curseur { position: absolute; top: 0; left: 0; width: 100%; height: 28px; padding: 0; border: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.xs-cat .xs-cat-curseur::-webkit-slider-runnable-track { height: 28px; background: none; border: 0; }
.xs-cat .xs-cat-curseur::-moz-range-track { height: 28px; background: none; border: 0; }
.xs-cat .xs-cat-curseur::-webkit-slider-thumb { width: 20px; height: 20px; margin-top: 4px; border: 2px solid var(--xs-orange); border-radius: 50%; background: #fff; cursor: grab; pointer-events: auto; -webkit-appearance: none; appearance: none; }
.xs-cat .xs-cat-curseur::-moz-range-thumb { width: 16px; height: 16px; border: 2px solid var(--xs-orange); border-radius: 50%; background: #fff; cursor: grab; pointer-events: auto; }
.xs-cat-bornes { display: flex; justify-content: space-between; margin: 2px 0 12px; color: #757575; font-size: 13px; }
.xs-cat-budgets, .xs-cat-gammes, .xs-cat__vide-choix { display: flex; flex-wrap: wrap; gap: 8px; }
.xs-cat-budgets .xs-cat-puce, .xs-cat-gammes .xs-cat-puce { height: 34px; padding: 0 12px; font-size: 13px; }

/* ---------- barre des résultats (collée sous l'en-tête pendant le défilement) ---------- */
.xs-cat__fixe { position: sticky; top: var(--xs-cat-haut); z-index: 30; margin: 0 -8px 4px; padding: 12px 8px 0; background: var(--xs-cat-fond); transition: box-shadow .2s; }
.xs-cat__fixe.est-colle { box-shadow: 0 12px 12px -12px rgba(0, 0, 0, .16); }
.xs-cat__barre { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 12px; }
.xs-cat__chercher { display: flex; flex: 1 1 320px; align-items: center; gap: 10px; height: 44px; margin: 0; padding: 0 16px; border: 1px solid #dbdbdb; border-radius: 12px; background: #fff; color: #757575; cursor: text; }
.xs-cat__chercher:focus-within { border-color: #191919; }
.xs-cat .xs-cat__chercher input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0 !important; border-radius: 0; outline: 0; background: transparent !important; box-shadow: none !important; color: #191919; font-size: 15px; -webkit-appearance: none; appearance: none; }
.xs-cat__chercher input::-webkit-search-cancel-button { cursor: pointer; }
.xs-cat__trier { display: flex; align-items: center; gap: 6px; height: 44px; margin: 0; padding: 0 8px 0 16px; border: 1px solid #dbdbdb; border-radius: 12px; background: #fff; color: #757575; font-size: 14px; }
.xs-cat .xs-cat__trier select { height: 100%; min-width: 0; padding: 0 4px; border: 0 !important; background-color: transparent !important; box-shadow: none !important; color: #191919; font-size: 14px; font-weight: 600; cursor: pointer; }
.xs-cat .xs-cat__partager { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border: 1px solid #dbdbdb; border-radius: 12px; background: #fff; color: #191919; font-size: 14px; font-weight: 500; }
.xs-cat .xs-cat__partager:hover { border-color: #1da851; background: #fff; color: #1da851; }
.xs-cat__actifs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0 0 12px; }
.xs-cat .xs-cat-filtre { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px 0 14px; border: 0; border-radius: 999px; background: #191919; color: #fff; font-size: 13px; font-weight: 500; }
.xs-cat .xs-cat-filtre:hover { background: #3d3d3d; color: #fff; }
.xs-cat .xs-cat__effacer--lien { height: auto; padding: 4px; border: 0; background: none; color: #757575; font-size: 13px; text-decoration: underline; }
.xs-cat .xs-cat__effacer--lien:hover { background: none; color: #191919; }

/* ---------- grille et cartes ---------- */
.xs-cat .xs-cat__grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.xs-cat__item { display: flex; margin: 0; padding: 0; }
.xs-cat .xs-cat-carte { display: flex; flex-direction: column; width: 100%; padding: 20px 20px 24px; border-radius: 12px; background: #fff; color: #191919; text-decoration: none; transition: box-shadow .2s, transform .2s; }
.xs-cat .xs-cat-carte:hover { color: #191919; box-shadow: 0 8px 24px rgba(0, 0, 0, .08); transform: translateY(-2px); }
.xs-cat-carte__visuel { position: relative; display: block; aspect-ratio: 1 / 1; margin: 0 0 16px; }
.xs-cat .xs-cat-carte__visuel img { display: block; width: 100%; height: 100%; object-fit: contain; border: 0; border-radius: 0; box-shadow: none; }
.xs-cat-carte__badges { position: absolute; top: 0; left: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.xs-cat-badge { padding: 3px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; line-height: 1.3; }
.xs-cat-badge--nouveau { background: #fdf3e1; color: #be7600; }
.xs-cat-badge--promo { background: var(--xs-orange); color: #fff; }
.xs-cat-badge--commande { background: #f0f0f0; color: #555; }
.xs-cat-carte__nom { display: -webkit-box; overflow: hidden; color: #191919; font-size: 16px; font-weight: 700; line-height: 1.35; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.xs-cat-carte__accroche { display: -webkit-box; overflow: hidden; margin-top: 6px; color: #757575; font-size: 13px; line-height: 1.45; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.xs-cat-carte__prix { display: block; margin-top: auto; padding-top: 12px; color: #191919; font-size: 14px; }
.xs-cat-carte__prix strong { color: var(--xs-orange); font-size: 16px; font-weight: 700; }
/* Le style global du site rend le texte des <del> transparent (prix WooCommerce dans un <span> coloré) : on le rétablit. */
.xs-cat .xs-cat-carte__prix del { margin-left: 4px; color: #898989 !important; -webkit-text-stroke-color: transparent !important; font-size: 13px; text-decoration: line-through !important; text-decoration-color: #898989 !important; }
.xs-cat-carte__des { color: #757575; font-size: 13px; }

.xs-cat__plus { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 32px 0 8px; }
.xs-cat .xs-cat__suite { height: 44px; padding: 0 32px; border: 1px solid #191919; border-radius: 12px; background: #fff; color: #191919; font-size: 15px; font-weight: 600; }
.xs-cat .xs-cat__suite:hover { background: #191919; color: #fff; }
.xs-cat__progression { margin: 0; color: #757575; font-size: 13px; }
.xs-cat__vide, .xs-cat__chargement { padding: 48px 16px; border-radius: 12px; background: #fff; text-align: center; }
.xs-cat__chargement { color: #757575; }
.xs-cat__vide-titre { margin: 0 0 6px; color: #191919; font-size: 18px; font-weight: 700; }
.xs-cat__vide-texte { margin: 0 0 16px; color: #757575; }
.xs-cat__vide-choix { justify-content: center; margin-bottom: 12px; }
.xs-cat .xs-cat__wa { display: inline-flex; align-items: center; gap: 8px; height: 44px; margin: 0 0 16px; padding: 0 20px; border-radius: 12px; background: #1da851; color: #fff; font-size: 15px; font-weight: 600; text-decoration: none; }
.xs-cat .xs-cat__wa:hover, .xs-cat .xs-cat__wa:focus { background: #178f45; color: #fff; }
.xs-cat__avis { padding: 16px; border: 1px dashed #d63638; color: #d63638; }

/* ---------- jusqu'à 1023 px : puces qui défilent, panneau en bas d'écran ---------- */
@media (max-width: 1023px) {
	.xs-cat { padding: 16px 0 40px; }
	.xs-cat .xs-cat__titre { font-size: 22px; }
	.xs-cat__compte { font-size: 14px; }
	.xs-cat__tete { margin-bottom: 12px; }
	.xs-cat .xs-cat-puce { height: 36px; padding: 0 14px; font-size: 13px; }
	.xs-cat__univers .xs-cat__picto { width: 18px; height: 18px; }
	.xs-cat__corps { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 12px; }

	.xs-cat__voile { display: block; position: fixed; inset: 0; z-index: 99998; background: rgba(0, 0, 0, .45); }
	.xs-cat__panneau { position: fixed; top: auto; right: 0; bottom: 0; left: 0; z-index: 99999; display: flex; flex-direction: column; max-height: 86vh; padding: 0; border-radius: 16px 16px 0 0; box-shadow: 0 -8px 32px rgba(0, 0, 0, .15); transform: translateY(105%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; }
	.xs-cat.est-panneau-ouvert .xs-cat__panneau { transform: none; visibility: visible; transition: transform .25s ease; }
	.xs-cat__panneau-tete { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 12px 20px; border-bottom: 1px solid #eeeeee; }
	.xs-cat__panneau-titre { margin: 0; font-size: 18px; font-weight: 700; }
	.xs-cat .xs-cat__fermer { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: #f7f7f7; color: #191919; }
	.xs-cat__panneau-corps { flex: 1 1 auto; overflow: auto; padding: 0 20px; -webkit-overflow-scrolling: touch; }
	.xs-cat__panneau-pied { display: flex; gap: 12px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid #eeeeee; background: #fff; }
	.xs-cat .xs-cat__panneau-pied .xs-cat__effacer { flex: 0 0 auto; height: 48px; padding: 0 16px; border: 1px solid #dbdbdb; border-radius: 12px; background: #fff; color: #191919; font-size: 15px; font-weight: 500; }
	.xs-cat .xs-cat__voir { flex: 1 1 auto; height: 48px; padding: 0 16px; border: 0; border-radius: 12px; background: #191919; color: #fff; font-size: 16px; font-weight: 700; }
	.xs-cat .xs-cat__voir:hover { background: #3d3d3d; color: #fff; }
	.xs-cat-histo { height: 64px; }

	/* Une seule rangée collée : recherche, Filtres (le tri passe dans le panneau), partage. */
	.xs-cat__fixe { margin: 0 -15px 4px; padding: 8px 15px 0; }
	.xs-cat__barre { flex-wrap: nowrap; gap: 8px; margin-bottom: 8px; }
	.xs-cat__chercher { flex: 1 1 auto; min-width: 0; padding: 0 12px; gap: 8px; }
	.xs-cat .xs-cat__chercher input { font-size: 16px; }
	.xs-cat .xs-cat__ouvrir { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 6px; height: 44px; padding: 0 12px; border: 1px solid #dbdbdb; border-radius: 12px; background: #fff; color: #191919; font-size: 14px; font-weight: 600; }
	.xs-cat__trier { display: none; }
	.xs-cat-bloc--tri { display: block; }
	.xs-cat-tris { display: flex; flex-wrap: wrap; gap: 8px; }
	.xs-cat-tris .xs-cat-puce { height: 34px; padding: 0 12px; font-size: 13px; }
	.xs-cat .xs-cat__partager { flex: 0 0 44px; justify-content: center; padding: 0; }
	.xs-cat__actifs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
	.xs-cat__actifs::-webkit-scrollbar { display: none; }
	.xs-cat .xs-cat-filtre, .xs-cat .xs-cat__effacer--lien { flex: 0 0 auto; }
	.xs-cat .xs-cat__partager span { display: none; }
	.xs-cat__nb { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--xs-orange); color: #fff; font-size: 12px; font-weight: 700; }

	.xs-cat .xs-cat__grille { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.xs-cat .xs-cat-carte { padding: 12px 12px 16px; }
	.xs-cat .xs-cat-carte:hover { box-shadow: none; transform: none; }
	.xs-cat-carte__visuel { margin-bottom: 10px; }
	.xs-cat-carte__nom { font-size: 14px; }
	.xs-cat-carte__accroche { font-size: 12px; }
	.xs-cat-carte__prix strong { font-size: 15px; }
	.xs-cat-badge { padding: 2px 6px; font-size: 11px; }


}
@media (min-width: 768px) and (max-width: 1023px) {
	.xs-cat .xs-cat__grille { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
	.xs-cat__panneau { left: 50%; width: 560px; margin-left: -280px; }
}
html.xs-cat-fige, html.xs-cat-fige body { overflow: hidden; }

/* ---------- carte agrandie : fenêtre centrée, toujours de la même taille ---------- */
/* Ordinateur : photos | achat | caractéristiques, tout visible d'un coup d'œil. Les valeurs longues sont coupées à deux
   lignes (texte entier au survol) ; « Voir les N caractéristiques » fait défiler la colonne, la fenêtre ne grandit pas. */
.xs-cat .xs-cat-carte.est-ouvert, .xs-cat .xs-cat-carte.est-ouvert:hover { box-shadow: 0 0 0 2px var(--xs-orange); transform: none; }
.xs-cat.xs-cat-apercu { position: fixed; inset: 0; z-index: 100000; max-width: none; margin: 0; padding: 0; background: rgba(17, 17, 17, .55); font-family: var(--xs-police); transition: background-color .28s ease; }
.xs-cat.xs-cat-apercu.est-depart { background: rgba(17, 17, 17, 0); }
.xs-cat.xs-cat-apercu.est-ferme { opacity: 0; transition: opacity .18s ease; }
.xs-cat-apercu__boite { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 38fr) minmax(0, 33fr) minmax(0, 29fr); grid-template-rows: minmax(0, 1fr) auto; grid-template-areas: "galerie infos carac" "galerie actions carac"; column-gap: 32px; width: min(1160px, calc(100vw - 64px)); height: min(640px, calc(100vh - 48px)); margin: auto; padding: 32px; overflow: hidden; border-radius: 20px; background: #fff; color: #191919; box-shadow: 0 24px 64px rgba(0, 0, 0, .25); }
.xs-cat-apercu.est-anime .xs-cat-apercu__boite { transition: transform .34s cubic-bezier(.2, .8, .2, 1); }
.xs-cat-apercu__boite > *, .xs-cat-apercu__corps > * { transition: opacity .2s ease .14s; }
.xs-cat-apercu.est-depart .xs-cat-apercu__boite > *, .xs-cat-apercu.est-depart .xs-cat-apercu__corps > * { opacity: 0; transition: none; }
.xs-cat-apercu__corps { display: contents; }
.xs-cat .xs-cat-apercu__fermer { position: absolute; top: 16px; right: 16px; z-index: 3; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: #191919; box-shadow: 0 2px 10px rgba(0, 0, 0, .12); }
.xs-cat .xs-cat-apercu__fermer:hover { background: #f2f2f2; color: #191919; }
.xs-cat-apercu__erreur { grid-column: 1 / -1; align-self: center; color: #757575; text-align: center; }

/* photos */
.xs-cat-apercu__galerie { display: flex; flex-direction: column; grid-area: galerie; min-width: 0; min-height: 0; }
.xs-cat-apercu__image { position: relative; display: flex; flex: 1 1 auto; align-items: center; justify-content: center; min-height: 0; overflow: hidden; border-radius: 14px; background: #f5f6f8; }
.xs-cat .xs-cat-apercu__image img { display: block; width: 100%; height: 100%; padding: 16px; object-fit: contain; border: 0; border-radius: 0; box-shadow: none; mix-blend-mode: multiply; }
.xs-cat-apercu__image .xs-cat-carte__badges { top: 14px; left: 14px; }
.xs-cat-apercu.est-chargement .xs-cat-apercu__image img { animation: xs-cat-pouls 1.2s ease-in-out infinite; }
@keyframes xs-cat-pouls { 50% { opacity: .55; } }
.xs-cat-apercu__vignettes { display: flex; flex: 0 0 auto; gap: 8px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; }
.xs-cat-apercu__vignettes::-webkit-scrollbar { display: none; }
.xs-cat .xs-cat-apercu__vignette { flex: 0 0 60px; width: 60px; height: 60px; padding: 4px; border: 1px solid #eeeeee; border-radius: 10px; background: #fff; }
.xs-cat .xs-cat-apercu__vignette:hover { border-color: #191919; background: #fff; }
.xs-cat .xs-cat-apercu__vignette.est-actif { border-color: var(--xs-orange); box-shadow: inset 0 0 0 1px var(--xs-orange); }
.xs-cat .xs-cat-apercu__vignette img { display: block; width: 100%; height: 100%; object-fit: contain; }

/* nom, prix, options */
.xs-cat-apercu__infos { grid-area: infos; min-width: 0; min-height: 0; overflow-y: auto; scrollbar-width: thin; }
.xs-cat .xs-cat-apercu__nom { display: -webkit-box; overflow: hidden; margin: 4px 0 0; color: #191919; font-family: var(--xs-police); font-size: 24px; font-weight: 700; line-height: 1.25; letter-spacing: normal; text-transform: none; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.xs-cat-apercu__accroche { display: -webkit-box; overflow: hidden; margin: 8px 0 0; color: #757575; font-size: 14px; line-height: 1.45; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.xs-cat-apercu__prix { margin: 14px 0 0; color: #191919; font-size: 14px; }
.xs-cat-apercu__prix strong { color: var(--xs-orange); font-size: 26px; font-weight: 700; }
.xs-cat .xs-cat-apercu__prix del { margin-left: 8px; color: #898989 !important; -webkit-text-stroke-color: transparent !important; font-size: 15px; text-decoration: line-through !important; text-decoration-color: #898989 !important; }
.xs-cat-apercu__attente { margin: 16px 0 0; color: #898989; font-size: 14px; }
.xs-cat-apercu__option { margin-top: 16px; }
.xs-cat-apercu__option-titre { margin: 0 0 8px; color: #757575; font-size: 13px; }
.xs-cat-apercu__option-titre b { color: #191919; font-weight: 600; }
.xs-cat-apercu__choix { display: flex; flex-wrap: wrap; gap: 8px; }
.xs-cat .xs-cat-option { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid #e0e0e0; border-radius: 12px; background: #fff; color: #191919; font-size: 14px; font-weight: 600; }
.xs-cat-option__pastille { flex: 0 0 auto; width: 18px; height: 18px; border-radius: 50%; background: var(--xs-teinte, #ddd); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14); }
.xs-cat .xs-cat-option:hover { border-color: #9a9a9a; background: #fff; color: #191919; }
.xs-cat .xs-cat-option.est-actif, .xs-cat .xs-cat-option.est-actif:hover { border-color: var(--xs-orange); background: #fff; color: #191919; box-shadow: inset 0 0 0 1px var(--xs-orange); }
.xs-cat .xs-cat-option.est-epuise { border-style: dashed; color: #b4b4b4; text-decoration: line-through; }
.xs-cat .xs-cat-option.est-epuise .xs-cat-option__pastille { opacity: .45; }
.xs-cat-apercu__etat { display: flex; align-items: center; gap: 6px; margin: 14px 0 0; color: #1da851; font-size: 13px; font-weight: 500; }
.xs-cat-apercu__etat:empty { display: none; }
.xs-cat-apercu__pastille { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.xs-cat-apercu__indispo { color: #757575; font-weight: 400; }
/* réassurance de la boutique (3 premiers points), retirée si la place manque */
.xs-cat-apercu__confiance .xs-reassurance { gap: 9px; margin: 16px 0 0; }
.xs-cat-apercu__confiance .xs-reassurance__el, .xs-cat-apercu__confiance .xs-reassurance__el > a { gap: 10px; font-size: 13px; }
.xs-cat-apercu__confiance .xs-reassurance__el:nth-child(n+4) { display: none; }
.xs-cat-apercu__confiance .xs-reassurance__t span { color: #757575; }
.xs-cat-apercu__confiance .xs-ico { flex: 0 0 20px; width: 20px; height: 20px; color: #757575; }
.xs-cat-apercu__infos.sans-confiance .xs-cat-apercu__confiance { display: none; }
.xs-cat .xs-cat-apercu__fiche { display: inline-flex; margin-top: 12px; color: #191919; font-size: 14px; font-weight: 600; text-decoration: none; }
.xs-cat .xs-cat-apercu__fiche::after { content: "→"; margin-left: 6px; }
.xs-cat .xs-cat-apercu__fiche:hover { color: var(--xs-orange); }

/* achat */
.xs-cat-apercu__actions { display: grid; grid-area: actions; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: center; padding-top: 16px; }
.xs-cat-qte { display: inline-flex; align-items: center; height: 48px; border: 1px solid #e0e0e0; border-radius: 999px; background: #fff; }
.xs-cat .xs-cat-qte button { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 46px; padding: 0; border: 0; border-radius: 999px; background: none; color: #191919; }
.xs-cat .xs-cat-qte button:hover { background: #f7f7f7; color: #191919; }
.xs-cat .xs-cat-qte button:disabled { background: none; color: #cccccc; cursor: default; }
.xs-cat-qte span { min-width: 26px; font-size: 16px; font-weight: 600; text-align: center; }
.xs-cat .xs-cat-apercu__ajouter, .xs-cat .xs-cat-apercu__acheter { min-width: 0; height: 48px; padding: 0 16px; overflow: hidden; border-radius: 999px; font-size: 15px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.xs-cat .xs-cat-apercu__ajouter { border: 1px solid #191919; background: #191919; color: #fff; }
.xs-cat .xs-cat-apercu__ajouter:hover { border-color: #3a3a3a; background: #3a3a3a; color: #fff; }
.xs-cat .xs-cat-apercu__ajouter:first-child, .xs-cat .xs-cat-apercu__acheter, .xs-cat .xs-cat-apercu__wa, .xs-cat-apercu__message { grid-column: 1 / -1; }
.xs-cat .xs-cat-apercu__acheter { border: 1px solid var(--xs-orange); background: var(--xs-orange); color: #fff; }
.xs-cat .xs-cat-apercu__acheter:hover { border-color: #f25a00; background: #f25a00; color: #fff; }
.xs-cat .xs-cat-apercu__ajouter:disabled, .xs-cat .xs-cat-apercu__acheter:disabled { opacity: .55; cursor: progress; }
.xs-cat .xs-cat-apercu__ajouter.est-ajoute, .xs-cat .xs-cat-apercu__ajouter.est-ajoute:hover { border-color: #1da851; background: #1da851; color: #fff; opacity: 1; }
.xs-cat .xs-cat-apercu__wa { display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border: 1px solid #1da851; border-radius: 999px; color: #1da851; font-size: 14px; font-weight: 600; text-decoration: none; }
.xs-cat .xs-cat-apercu__wa:hover { background: #1da851; color: #fff; }
.xs-cat-apercu__message { margin: 0; color: #191919; font-size: 13px; }
.xs-cat-apercu__message:empty { display: none; }
.xs-cat .xs-cat-apercu__message a { color: var(--xs-orange); font-weight: 600; text-decoration: underline; }

/* caractéristiques */
.xs-cat-apercu__carac { display: flex; flex-direction: column; grid-area: carac; min-width: 0; min-height: 0; padding: 20px; border-radius: 14px; background: #f7f7f7; }
.xs-cat .xs-cat-apercu__carac h3 { flex: 0 0 auto; margin: 0 0 6px; padding-right: 36px; color: #191919; font-family: var(--xs-police); font-size: 16px; font-weight: 700; line-height: 1.3; letter-spacing: normal; text-transform: none; }
.xs-cat-apercu__court { display: -webkit-box; flex: 0 0 auto; overflow: hidden; margin: 0 0 6px; color: #555555; font-size: 13px; line-height: 1.45; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.xs-cat-apercu__carac dl { flex: 1 1 auto; min-height: 0; margin: 0; overflow: hidden; outline: 0; }
.xs-cat-apercu__carac dl > div { padding: 9px 0; border-bottom: 1px solid #e9e9e9; }
.xs-cat-apercu__carac dl > div:last-child { border-bottom: 0; }
.xs-cat-apercu__carac dt { margin: 0; color: #757575; font-size: 12px; font-weight: 400; line-height: 1.35; }
.xs-cat-apercu__carac dd { display: -webkit-box; overflow: hidden; margin: 2px 0 0; color: #191919; font-size: 13px; font-weight: 500; line-height: 1.4; overflow-wrap: anywhere; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.xs-cat-apercu__carac.est-coupe dl { -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent); mask-image: linear-gradient(to bottom, #000 82%, transparent); }
.xs-cat-apercu__carac.est-tout dl { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.xs-cat-apercu__carac.est-tout dd { display: block; overflow: visible; }
.xs-cat .xs-cat-apercu__tout { display: none; flex: 0 0 auto; align-self: flex-start; margin-top: 8px; padding: 0; border: 0; background: none; color: #191919; font-size: 13px; font-weight: 600; text-decoration: underline; }
.xs-cat .xs-cat-apercu__tout:hover { background: none; color: var(--xs-orange); }
.xs-cat .xs-cat-apercu__carac.est-coupe .xs-cat-apercu__tout { display: inline-flex; }

/* Écran d'ordinateur bas : un peu moins d'air pour garder tout visible */
@media (min-width: 1024px) and (max-height: 720px) {
	.xs-cat-apercu__boite { height: calc(100vh - 32px); padding: 24px; column-gap: 24px; }
	.xs-cat .xs-cat-apercu__nom { font-size: 21px; }
	.xs-cat-apercu__prix strong { font-size: 23px; }
}

/* Jusqu'à 1023 px : fenêtre presque plein écran, achat toujours visible en bas, le contenu défile au-dessus */
@media (max-width: 1023px) {
	.xs-cat-apercu__boite { display: flex; flex-direction: column; width: min(720px, calc(100vw - 16px)); height: min(960px, calc(100% - 16px)); padding: 0; border-radius: 18px; }
	.xs-cat-apercu__corps { display: block; flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 12px 12px 8px; -webkit-overflow-scrolling: touch; }
	.xs-cat .xs-cat-apercu__fermer { top: 20px; right: 20px; }
	.xs-cat-apercu__image { flex: none; height: min(36vh, 320px); }
	.xs-cat .xs-cat-apercu__vignette { flex-basis: 52px; width: 52px; height: 52px; }
	.xs-cat-apercu__infos { overflow: visible; margin-top: 14px; padding: 0 4px; }
	.xs-cat .xs-cat-apercu__nom { font-size: 20px; }
	.xs-cat-apercu__prix strong { font-size: 22px; }
	.xs-cat-apercu__carac { margin-top: 16px; padding: 16px; }
	.xs-cat-apercu__carac dl { overflow: visible; }
	.xs-cat-apercu__carac dd { display: block; overflow: visible; }
	.xs-cat-apercu__carac.est-coupe dl { -webkit-mask-image: none; mask-image: none; }
	.xs-cat .xs-cat-apercu__carac .xs-cat-apercu__tout { display: none; }
	.xs-cat-apercu__actions { flex: 0 0 auto; grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1fr); gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid #eeeeee; background: #fff; }
	.xs-cat-apercu__actions .xs-cat-qte { display: none; }
	.xs-cat .xs-cat-apercu__wa { grid-column: 1; grid-row: 1; height: 48px; padding: 0; }
	.xs-cat .xs-cat-apercu__wa span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.xs-cat .xs-cat-apercu__wa:first-child { grid-column: 1 / -1; padding: 0 16px; }
	.xs-cat .xs-cat-apercu__wa:first-child span { position: static; width: auto; height: auto; clip: auto; }
	.xs-cat .xs-cat-apercu__ajouter, .xs-cat .xs-cat-apercu__ajouter:first-child { grid-column: 2; grid-row: 1; padding: 0 8px; font-size: 14px; }
	.xs-cat .xs-cat-apercu__acheter { grid-column: 3; grid-row: 1; padding: 0 8px; font-size: 14px; }
	.xs-cat-apercu__message { grid-row: 2; }
}
