/* =========================================================
   7DevShopTools — styles frontend
   Toutes les couleurs passent par les variables générées
   depuis les réglages : ne codez pas de couleur en dur ici.
   ========================================================= */

.sdst-scope {
	font-family: var(--sdst-font-body);
	font-size: var(--sdst-fs);
	line-height: 1.55;
	color: var(--sdst-text);
	-webkit-font-smoothing: antialiased;
}

.sdst-scope *,
.sdst-scope *::before,
.sdst-scope *::after { box-sizing: border-box; }

/* ---------------------------------------------------------
   Blindage : les thèmes WordPress imposent leurs propres
   règles aux boutons, titres, listes et liens. On remet à
   zéro ce qui nous concerne, à une spécificité (0,2,0) que
   les sélecteurs génériques d'un thème n'atteignent pas,
   tout en restant sous celle des contrôles Elementor, qui
   ajoutent {{WRAPPER}} et gardent donc le dernier mot.
   --------------------------------------------------------- */
.sdst-scope button,
.sdst-scope input,
.sdst-scope select,
.sdst-scope textarea {
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
	letter-spacing: inherit;
	text-transform: none;
	margin: 0;
}

.sdst-scope .sdst-btn,
.sdst-scope .sdst-card__add,
.sdst-scope .sdst-card__wish {
	-webkit-appearance: none;
	appearance: none;
	box-shadow: none;
	text-shadow: none;
	text-decoration: none;
	float: none;
	max-width: none;
	min-width: 0;
	white-space: normal;
	vertical-align: middle;
}

.sdst-scope .sdst-btn::after,
.sdst-scope .sdst-btn::before,
.sdst-scope .sdst-card__add::after,
.sdst-scope .sdst-card__add::before { content: none; }

.sdst-scope .sdst-card,
.sdst-scope .sdst-card * { float: none; }

.sdst-scope .sdst-card p,
.sdst-scope .sdst-card h3,
.sdst-scope .sdst-card ul,
.sdst-scope .sdst-card li { margin: 0; padding: 0; list-style: none; }

.sdst-scope .sdst-card a { text-decoration: none; box-shadow: none; }

.sdst-scope .sdst-card img {
	max-width: 100%;
	height: auto;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.sdst-scope h2,
.sdst-scope h3,
.sdst-scope .sdst-title {
	font-family: var(--sdst-font-heading);
	font-weight: 600;
	line-height: 1.25;
	margin: 0 0 .6em;
	color: var(--sdst-text);
}

.sdst-icon { width: 1.25em; height: 1.25em; flex: none; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden; clip: rect(1px,1px,1px,1px);
	white-space: nowrap;
}

.sdst-scope :focus-visible {
	outline: 2px solid var(--sdst-primary);
	outline-offset: 2px;
	border-radius: 4px;
}

.sdst-notice {
	padding: 14px 16px;
	border: 1px dashed var(--sdst-border);
	border-radius: var(--sdst-radius-sm);
	background: var(--sdst-bg);
	color: var(--sdst-muted);
	font-size: .92em;
}

.sdst-empty {
	grid-column: 1 / -1;
	text-align: center;
	color: var(--sdst-muted);
	padding: 40px 16px;
}

/* ---------- Boutons ---------- */

.sdst-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5em;
	padding: .7em 1.2em;
	border: 1px solid transparent;
	border-radius: var(--sdst-radius-sm);
	font: inherit;
	font-weight: 500;
	line-height: 1.2;
	cursor: pointer;
	text-decoration: none;
	transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .12s ease;
	min-height: 44px;
}

.sdst-btn:active { transform: translateY(1px); }

.sdst-btn--primary {
	background: var(--sdst-primary);
	color: #fff;
}
.sdst-btn--primary:hover { background: var(--sdst-primary-hover); color: #fff; }

.sdst-btn--ghost {
	background: transparent;
	border-color: var(--sdst-border);
	color: var(--sdst-text);
}
.sdst-btn--ghost:hover { border-color: var(--sdst-primary); color: var(--sdst-primary); }

.sdst-btn--block { display: flex; width: 100%; }

.sdst-btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------- Champs ---------- */

.sdst-field { position: relative; display: block; flex: 1; }

.sdst-field input,
.sdst-field select,
.sdst-scope select {
	width: 100%;
	min-height: 44px;
	padding: .65em .9em;
	border: 1px solid var(--sdst-border);
	border-radius: var(--sdst-radius-sm);
	background: var(--sdst-surface);
	color: var(--sdst-text);
	font: inherit;
	appearance: none;
}

.sdst-field select { padding-right: 2.4em; }

.sdst-field .sdst-icon--chevron {
	position: absolute;
	right: .7em; top: 50%;
	transform: translateY(-50%) rotate(90deg);
	pointer-events: none;
	color: var(--sdst-muted);
	width: .9em; height: .9em;
}

.sdst-field input::placeholder { color: var(--sdst-muted); }

/* ---------- Spinner ---------- */

.sdst-spinner {
	width: 18px; height: 18px;
	border: 2px solid var(--sdst-border);
	border-top-color: var(--sdst-primary);
	border-radius: 50%;
	animation: sdst-spin .7s linear infinite;
	display: inline-block;
}
@keyframes sdst-spin { to { transform: rotate(360deg); } }

/* =========================================================
   Recherche
   ========================================================= */

.sdst-search { position: relative; width: 100%; }

.sdst-search__form {
	display: flex;
	align-items: stretch;
	gap: 0;
	background: var(--sdst-surface);
	border: 1px solid var(--sdst-border);
	overflow: hidden;
}

.sdst-search--pill .sdst-search__form { border-radius: 999px; }
.sdst-search--soft .sdst-search__form { border-radius: var(--sdst-radius); }
.sdst-search--square .sdst-search__form { border-radius: 0; }
.sdst-search--minimal .sdst-search__form {
	border: 0;
	border-bottom: 2px solid var(--sdst-border);
	border-radius: 0;
	background: transparent;
}

.sdst-search__form:focus-within { border-color: var(--sdst-primary); }

.sdst-search__cat { border-right: 1px solid var(--sdst-border); }
.sdst-search__cat select {
	border: 0;
	border-radius: 0;
	background: transparent;
	max-width: 160px;
	color: var(--sdst-muted);
	height: 100%;
}

.sdst-search__field { position: relative; flex: 1; display: flex; }

.sdst-search__input {
	flex: 1;
	min-height: 48px;
	padding: .7em 2.4em .7em 1em;
	border: 0;
	background: transparent;
	color: var(--sdst-text);
	font: inherit;
}
.sdst-search__input:focus { outline: none; }
.sdst-search__input::-webkit-search-cancel-button { display: none; }

.sdst-search__clear {
	position: absolute;
	right: .5em; top: 50%;
	transform: translateY(-50%);
	background: none; border: 0; cursor: pointer;
	color: var(--sdst-muted);
	padding: 4px;
	line-height: 0;
}

.sdst-search__submit {
	display: inline-flex;
	align-items: center;
	gap: .5em;
	padding: 0 1.3em;
	border: 0;
	background: var(--sdst-primary);
	color: #fff;
	cursor: pointer;
	font: inherit;
	font-weight: 500;
}
.sdst-search__submit:hover { background: var(--sdst-primary-hover); }
.sdst-search--minimal .sdst-search__submit { background: transparent; color: var(--sdst-primary); padding: 0 .6em; }

.sdst-search__results {
	position: absolute;
	left: 0; right: 0; top: calc(100% + 8px);
	z-index: 60;
	background: var(--sdst-surface);
	border: 1px solid var(--sdst-border);
	border-radius: var(--sdst-radius);
	box-shadow: var(--sdst-shadow);
	max-height: 70vh;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.sdst-result {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	text-decoration: none;
	color: inherit;
	border-bottom: 1px solid var(--sdst-border);
}
.sdst-result:last-child { border-bottom: 0; }
.sdst-result:hover,
.sdst-result.is-highlighted { background: var(--sdst-bg); }

.sdst-result__img {
	width: 52px; height: 52px;
	object-fit: cover;
	border-radius: var(--sdst-radius-sm);
	flex: none;
	background: var(--sdst-bg);
}

.sdst-result__body { min-width: 0; flex: 1; }
.sdst-result__title {
	margin: 0;
	font-size: .95em;
	font-weight: 500;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.sdst-result__meta {
	display: flex; gap: 10px; align-items: baseline;
	font-size: .85em;
	color: var(--sdst-muted);
	margin: 2px 0 0;
}
.sdst-result__price { color: var(--sdst-text); font-weight: 600; }
.sdst-result__price del { opacity: .5; font-weight: 400; margin-right: 4px; }
.sdst-result__stock.is-out { color: var(--sdst-danger); }
.sdst-result__stock.is-in { color: var(--sdst-success); }

.sdst-search__foot {
	display: block;
	padding: 12px 14px;
	text-align: center;
	font-weight: 500;
	color: var(--sdst-primary);
	text-decoration: none;
	border-top: 1px solid var(--sdst-border);
}

.sdst-search__state {
	padding: 24px 16px;
	text-align: center;
	color: var(--sdst-muted);
}
.sdst-search__state strong { display: block; color: var(--sdst-text); margin-bottom: 4px; }

.sdst-search__recent { padding: 10px 14px; }
.sdst-search__recent h4 {
	margin: 0 0 8px;
	font-size: .8em;
	font-weight: 600;
	color: var(--sdst-muted);
}
.sdst-search__recent-list { display: flex; flex-wrap: wrap; gap: 6px; }
.sdst-search__recent-item {
	background: var(--sdst-bg);
	border: 1px solid var(--sdst-border);
	border-radius: 999px;
	padding: 5px 12px;
	font-size: .85em;
	cursor: pointer;
	color: var(--sdst-text);
}

/* =========================================================
   Grille et carte produit
   ========================================================= */

.sdst-shop__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 18px;
}
.sdst-shop__count { margin: 0; color: var(--sdst-muted); font-size: .92em; }
.sdst-shop__sort { position: relative; display: block; min-width: 190px; }
.sdst-shop__sort .sdst-icon--chevron {
	position: absolute; right: .7em; top: 50%;
	transform: translateY(-50%) rotate(90deg);
	pointer-events: none; color: var(--sdst-muted);
	width: .8em; height: .8em;
}

.sdst-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}

/* =========================================================
   Cartes produit — trois modèles
   vitrine : image portrait, informations dessous
   marche  : ligne horizontale, vignette à gauche
   affiche : image plein cadre, texte en surimpression
   ========================================================= */

.sdst-scope .sdst-card {
	position: relative;
	background: var(--sdst-surface);
	border-radius: var(--sdst-radius);
	overflow: hidden;
	transition: box-shadow .2s ease, transform .2s ease;
}

.sdst-shop--raised .sdst-card { box-shadow: var(--sdst-shadow); }
.sdst-shop--raised .sdst-card:hover { transform: translateY(-3px); }
.sdst-shop--outline .sdst-card { border: 1px solid var(--sdst-border); }
.sdst-shop--flat .sdst-card { background: var(--sdst-bg); }
.sdst-shop--bare .sdst-card { background: transparent; }

/* ---------- Média commun ---------- */

.sdst-scope .sdst-card__media {
	position: relative;
	background: var(--sdst-bg);
	overflow: hidden;
	max-width: 100%;
}

.sdst-ratio-1-1 .sdst-card--vitrine .sdst-card__media { aspect-ratio: 1 / 1; }
.sdst-ratio-4-5 .sdst-card--vitrine .sdst-card__media { aspect-ratio: 4 / 5; }
.sdst-ratio-3-4 .sdst-card--vitrine .sdst-card__media { aspect-ratio: 3 / 4; }
.sdst-ratio-16-9 .sdst-card--vitrine .sdst-card__media { aspect-ratio: 16 / 9; }
.sdst-ratio-auto .sdst-card--vitrine .sdst-card__media { aspect-ratio: auto; }

.sdst-scope .sdst-card__link { display: block; width: 100%; height: 100%; }

.sdst-scope .sdst-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: opacity .3s ease, transform .5s ease;
}

.sdst-scope .sdst-card__img--hover { position: absolute; inset: 0; opacity: 0; }
.sdst-card.has-hover:hover .sdst-card__img--hover { opacity: 1; }
.sdst-card.has-hover:hover .sdst-card__img:not(.sdst-card__img--hover) { opacity: 0; }
.sdst-shop--zoom .sdst-card:hover .sdst-card__img { transform: scale(1.05); }

/* ---------- Badges ---------- */

.sdst-scope .sdst-card__badges {
	position: absolute;
	top: 10px;
	left: 10px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	z-index: 2;
}

.sdst-scope .sdst-badge {
	font-size: .72em;
	font-weight: 600;
	padding: 4px 9px;
	border-radius: 999px;
	color: #fff;
	background: var(--sdst-text);
	letter-spacing: .01em;
	line-height: 1.3;
}
.sdst-scope .sdst-badge--sale { background: var(--sdst-accent); }
.sdst-scope .sdst-badge--new { background: var(--sdst-primary); }
.sdst-scope .sdst-badge--out { background: var(--sdst-danger); }

/* ---------- Icône favoris ---------- */

.sdst-scope .sdst-card__wish {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 3;
	width: var(--sdst-wish-size);
	height: var(--sdst-wish-size);
	display: grid;
	place-items: center;
	padding: 0;
	cursor: pointer;
	background: var(--sdst-wish-bg);
	color: var(--sdst-wish-ink);
	border: var(--sdst-wish-border) solid var(--sdst-wish-border-color);
	border-radius: var(--sdst-wish-radius);
	transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.sdst-scope .sdst-card__wish svg {
	width: 48%;
	height: 48%;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
}

.sdst-scope .sdst-card__wish.is-active {
	background: var(--sdst-wish-bg-active);
	color: var(--sdst-wish-ink-active);
	border-color: var(--sdst-wish-bg-active);
}
.sdst-scope .sdst-card__wish.is-active svg { fill: currentColor; }

/* ---------- Corps commun ---------- */

.sdst-scope .sdst-card__cat {
	font-size: .76em;
	letter-spacing: .07em;
	text-transform: uppercase;
	color: var(--sdst-muted);
	line-height: 1.4;
}

.sdst-scope .sdst-card__title {
	font-family: var(--sdst-font-body);
	font-size: 1em;
	font-weight: 500;
	line-height: 1.35;
	margin: 0;
	color: var(--sdst-text);
}
.sdst-scope .sdst-card__title a { color: inherit; }
.sdst-scope .sdst-card__title a:hover { color: var(--sdst-primary); }

.sdst-scope .sdst-card__rating { display: flex; align-items: center; gap: 6px; font-size: .8em; }
.sdst-scope .sdst-card__count { color: var(--sdst-muted); }

.sdst-scope .sdst-card__price {
	font-family: var(--sdst-font-heading);
	font-weight: 600;
	font-size: 1.05em;
	color: var(--sdst-text);
	font-variant-numeric: tabular-nums;
	line-height: 1.3;
}
.sdst-scope .sdst-card__price del { opacity: .55; font-weight: 400; font-size: .85em; margin-left: 6px; }
.sdst-scope .sdst-card__price ins { text-decoration: none; }

/* ---------- Bouton d'ajout ---------- */

.sdst-scope .sdst-card__cart {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5em;
	width: 100%;
	min-height: 44px;
	padding: .7em 1em;
	border: 0;
	border-radius: var(--sdst-cta-radius);
	background: var(--sdst-cta-bg);
	color: var(--sdst-cta-ink);
	cursor: pointer;
	transition: background .18s ease, color .18s ease, filter .18s ease;
}
.sdst-scope .sdst-card__cart:hover {
	background: var(--sdst-cta-bg-hover);
	color: var(--sdst-cta-ink-hover);
}
.sdst-scope a.sdst-card__cart { text-decoration: none; }
.sdst-scope .sdst-card__cart.sdst-btn--ghost {
	background: transparent;
	color: var(--sdst-cta-bg);
	border: 1px solid var(--sdst-cta-bg);
}
.sdst-scope .sdst-card__cart.sdst-btn--ghost:hover {
	background: var(--sdst-cta-bg);
	color: var(--sdst-cta-ink);
}

/* Bouton rond d'ajout rapide du modèle Marché. */
.sdst-scope .sdst-card__add {
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	display: grid;
	place-items: center;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--sdst-cta-bg);
	color: var(--sdst-cta-ink);
	font-size: 1.3em;
	line-height: 1;
	cursor: pointer;
	transition: background .18s ease, filter .18s ease;
}
.sdst-scope .sdst-card__add:hover { filter: brightness(1.08); }

/* ---------- Pastille ---------- */

.sdst-scope .sdst-pill {
	display: inline-block;
	font-size: .74em;
	font-weight: 500;
	padding: 3px 9px;
	border-radius: 999px;
	background: var(--sdst-bg);
	background: color-mix(in srgb, var(--sdst-primary) 14%, transparent);
	color: var(--sdst-primary);
	white-space: nowrap;
	line-height: 1.5;
}
.sdst-scope .sdst-pill--low {
	background: var(--sdst-bg);
	background: color-mix(in srgb, var(--sdst-accent) 18%, transparent);
	color: var(--sdst-accent);
}
.sdst-scope .sdst-pill--out {
	background: var(--sdst-bg);
	background: color-mix(in srgb, var(--sdst-danger) 14%, transparent);
	color: var(--sdst-danger);
}

/* =========================================================
   1. Vitrine
   ========================================================= */

.sdst-scope .sdst-card--vitrine { display: flex; flex-direction: column; }

.sdst-scope .sdst-card--vitrine .sdst-card__body {
	padding: 14px;
	display: flex;
	flex-direction: column;
	gap: 7px;
	flex: 1;
}
.sdst-shop--bare .sdst-card--vitrine .sdst-card__body { padding: 12px 0 0; }

.sdst-scope .sdst-card--vitrine .sdst-card__row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
}

.sdst-scope .sdst-card--vitrine .sdst-card__cart { margin-top: auto; }

/* =========================================================
   2. Marché
   ========================================================= */

.sdst-scope .sdst-card--marche {
	display: grid;
	grid-template-columns: var(--sdst-marche-media) minmax(0, 1fr);
	align-items: stretch;
	border: 1px solid var(--sdst-border);
}
.sdst-shop--raised .sdst-card--marche { border-color: transparent; }

.sdst-scope .sdst-card--marche .sdst-card__media { aspect-ratio: 1 / 1; height: 100%; }

.sdst-scope .sdst-card--marche .sdst-card__body {
	padding: 12px 14px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.sdst-scope .sdst-card--marche .sdst-card__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: auto;
	padding-top: 4px;
}

.sdst-scope .sdst-card--marche .sdst-card__facts {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	min-width: 0;
}

.sdst-scope .sdst-card--marche .sdst-card__wish {
	top: 8px;
	right: 8px;
	width: calc(var(--sdst-wish-size) - 6px);
	height: calc(var(--sdst-wish-size) - 6px);
}

.sdst-scope .sdst-card--marche .sdst-card__badges { top: 6px; left: 6px; }
.sdst-scope .sdst-card--marche .sdst-badge { font-size: .62em; padding: 3px 7px; }
.sdst-scope .sdst-card--marche .sdst-card__title { font-size: .95em; }

/* Image à droite. */
.sdst-shop--media-right .sdst-card--marche { grid-template-columns: minmax(0, 1fr) var(--sdst-marche-media); }
.sdst-shop--media-right .sdst-card--marche .sdst-card__media { order: 2; }

/* Marché tient mal à quatre colonnes : deux par défaut, à spécificité
   nulle pour que le contrôle « Colonnes » d'Elementor l'emporte. */
.sdst-shop--marche :where(.sdst-grid) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sdst-shop--marche { --sdst-car-per: 2; }

/* =========================================================
   3. Affiche
   ========================================================= */

.sdst-scope .sdst-card--affiche {
	display: block;
	aspect-ratio: 3 / 4;
	max-width: 100%;
	isolation: isolate;
}
.sdst-ratio-1-1 .sdst-card--affiche { aspect-ratio: 1 / 1; }
.sdst-ratio-4-5 .sdst-card--affiche { aspect-ratio: 4 / 5; }
.sdst-ratio-16-9 .sdst-card--affiche { aspect-ratio: 16 / 9; }

.sdst-scope .sdst-card--affiche .sdst-card__media { position: absolute; inset: 0; }

.sdst-scope .sdst-card__veil {
	position: absolute;
	inset: auto 0 0 0;
	height: var(--sdst-veil-height);
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(to top, var(--sdst-veil) 12%, rgba(0,0,0,.42) 48%, transparent 100%);
	background: linear-gradient(to top, var(--sdst-veil) 12%, color-mix(in srgb, var(--sdst-veil) 60%, transparent) 48%, transparent 100%);
}

.sdst-scope .sdst-card--affiche .sdst-card__body {
	position: absolute;
	inset: auto 0 0 0;
	z-index: 2;
	padding: 14px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	color: #fff;
}
.sdst-scope .sdst-card--affiche .sdst-card__title,
.sdst-scope .sdst-card--affiche .sdst-card__title a,
.sdst-scope .sdst-card--affiche .sdst-card__price { color: #fff; }
.sdst-scope .sdst-card--affiche .sdst-card__cat { color: rgba(255,255,255,.74); }
.sdst-scope .sdst-card--affiche .sdst-card__price del { color: rgba(255,255,255,.62); }
.sdst-scope .sdst-card--affiche .sdst-card__count { color: rgba(255,255,255,.7); }

/* Le bouton se déplie au survol, sans saut de hauteur. */
.sdst-scope .sdst-card__slot {
	display: grid;
	grid-template-rows: 0fr;
	margin-top: 0;
	transition: grid-template-rows .26s ease, margin-top .26s ease;
}
.sdst-scope .sdst-card__slot > div { overflow: hidden; }
.sdst-card--affiche:hover .sdst-card__slot,
.sdst-card--affiche:focus-within .sdst-card__slot { grid-template-rows: 1fr; margin-top: 8px; }

/* Pas de survol sur écran tactile : le bouton reste déplié. */
@media (hover: none) {
	.sdst-scope .sdst-card__slot { grid-template-rows: 1fr; margin-top: 8px; }
}
.sdst-shop--cta-always .sdst-card__slot { grid-template-rows: 1fr; margin-top: 8px; }
.sdst-shop--cta-never .sdst-card--affiche .sdst-card__slot { display: none; }

.sdst-scope .sdst-card--affiche .sdst-card__cart {
	background: var(--sdst-surface);
	color: var(--sdst-text);
}
.sdst-scope .sdst-card--affiche .sdst-card__cart:hover {
	background: var(--sdst-cta-bg);
	color: var(--sdst-cta-ink);
}

.sdst-grid__loader {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 22px;
	color: var(--sdst-muted);
}

.sdst-grid__more { display: flex; justify-content: center; margin-top: 24px; }

/* =========================================================
   Filtres
   ========================================================= */

.sdst-filters__bar {
	display: none;
	align-items: center;
	gap: 10px;
	margin-bottom: 14px;
}

.sdst-filters__count {
	background: var(--sdst-primary);
	color: #fff;
	border-radius: 999px;
	min-width: 20px;
	height: 20px;
	display: inline-grid;
	place-items: center;
	font-size: .72em;
	padding: 0 6px;
}

.sdst-filters__reset {
	background: none; border: 0;
	color: var(--sdst-muted);
	text-decoration: underline;
	cursor: pointer;
	font: inherit;
	font-size: .9em;
}

.sdst-facet { border-bottom: 1px solid var(--sdst-border); padding: 14px 0; }
.sdst-facet:first-child { padding-top: 0; }

.sdst-facet__head { margin: 0; }

.sdst-facet__toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	background: none; border: 0;
	padding: 0;
	font: inherit;
	font-family: var(--sdst-font-heading);
	font-weight: 600;
	font-size: .95em;
	color: var(--sdst-text);
	cursor: pointer;
}
.sdst-facet__toggle .sdst-icon {
	transition: transform .2s ease;
	transform: rotate(90deg);
	color: var(--sdst-muted);
	width: .8em; height: .8em;
}
.sdst-facet__toggle[aria-expanded="false"] .sdst-icon { transform: rotate(0deg); }

.sdst-facet__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 12px;
	max-height: 260px;
	overflow-y: auto;
}
.sdst-facet.is-collapsible .sdst-facet__toggle[aria-expanded="false"] + .sdst-facet__body,
.sdst-facet__body[hidden] { display: none; }

.sdst-facet__body--chip,
.sdst-facet__body--swatch {
	flex-direction: row;
	flex-wrap: wrap;
	gap: 8px;
}

.sdst-opt {
	display: flex;
	align-items: center;
	gap: 9px;
	cursor: pointer;
	font-size: .92em;
	min-height: 32px;
}
.sdst-opt input { accent-color: var(--sdst-primary); width: 17px; height: 17px; flex: none; }
.sdst-opt__label { flex: 1; }
.sdst-opt__count { color: var(--sdst-muted); font-size: .85em; }

.sdst-opt--chip input,
.sdst-opt--swatch input { position: absolute; opacity: 0; pointer-events: none; }

.sdst-opt--chip {
	border: 1px solid var(--sdst-border);
	border-radius: 999px;
	padding: 6px 14px;
	min-height: 0;
}
.sdst-opt--chip:has(input:checked) {
	border-color: var(--sdst-primary);
	background: var(--sdst-primary);
	color: #fff;
}
.sdst-opt--chip:has(input:checked) .sdst-opt__count { color: rgba(255,255,255,.75); }

.sdst-opt--swatch { flex-direction: column; gap: 4px; width: 46px; text-align: center; }
.sdst-opt--swatch .sdst-opt__label { font-size: .72em; line-height: 1.2; }
.sdst-opt--swatch .sdst-opt__count { display: none; }

.sdst-swatch {
	width: 30px; height: 30px;
	border-radius: 50%;
	background: var(--swatch, var(--sdst-border));
	border: 2px solid var(--sdst-surface);
	box-shadow: 0 0 0 1px var(--sdst-border);
	display: block;
}
.sdst-opt--swatch:has(input:checked) .sdst-swatch {
	box-shadow: 0 0 0 2px var(--sdst-primary);
}

.sdst-opt--switch { justify-content: space-between; }

.sdst-range { padding: 6px 0 2px; position: relative; }
.sdst-range__track {
	height: 4px;
	background: var(--sdst-border);
	border-radius: 999px;
	position: relative;
	margin: 12px 0;
}
.sdst-range__track span {
	position: absolute;
	height: 100%;
	background: var(--sdst-primary);
	border-radius: 999px;
	left: 0; right: 0;
}
.sdst-range input[type="range"] {
	position: absolute;
	left: 0; right: 0;
	top: 14px;
	width: 100%;
	appearance: none;
	background: none;
	pointer-events: none;
	height: 0;
	margin: 0;
}
.sdst-range input[type="range"]::-webkit-slider-thumb {
	appearance: none;
	width: 20px; height: 20px;
	border-radius: 50%;
	background: var(--sdst-surface);
	border: 2px solid var(--sdst-primary);
	pointer-events: auto;
	cursor: grab;
}
.sdst-range input[type="range"]::-moz-range-thumb {
	width: 20px; height: 20px;
	border-radius: 50%;
	background: var(--sdst-surface);
	border: 2px solid var(--sdst-primary);
	pointer-events: auto;
	cursor: grab;
}
.sdst-range__values {
	display: flex;
	justify-content: space-between;
	font-size: .88em;
	color: var(--sdst-muted);
	margin-top: 16px;
}

.sdst-filters__actions { display: none; margin-top: 18px; }

/* =========================================================
   Tiroirs (panier, filtres)
   ========================================================= */

.sdst-drawer {
	position: fixed;
	inset: 0;
	z-index: 99990;
	visibility: hidden;
	pointer-events: none;
}
.sdst-drawer.is-open { visibility: visible; pointer-events: auto; }

.sdst-drawer__backdrop {
	position: absolute; inset: 0;
	background: var(--sdst-overlay);
	opacity: 0;
	transition: opacity .25s ease;
}
.sdst-drawer.is-open .sdst-drawer__backdrop { opacity: 1; }

.sdst-drawer__panel {
	position: absolute;
	top: 0; right: 0;
	height: 100%;
	width: min(420px, 100%);
	background: var(--sdst-surface);
	color: var(--sdst-text);
	font-family: var(--sdst-font-body);
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform .28s cubic-bezier(.4,0,.2,1);
	box-shadow: var(--sdst-shadow);
	padding-bottom: env(safe-area-inset-bottom, 0px);
}
.sdst-drawer.is-open .sdst-drawer__panel { transform: none; }

.sdst-drawer--left .sdst-drawer__panel {
	right: auto; left: 0;
	transform: translateX(-100%);
	width: min(360px, 88%);
}

.sdst-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 20px;
	border-bottom: 1px solid var(--sdst-border);
	padding-top: calc(18px + env(safe-area-inset-top, 0px));
}
.sdst-drawer__title { margin: 0; font-size: 1.05em; font-family: var(--sdst-font-heading); }

.sdst-drawer__close {
	background: none; border: 0;
	cursor: pointer;
	color: var(--sdst-muted);
	width: 40px; height: 40px;
	display: grid; place-items: center;
	border-radius: 50%;
}
.sdst-drawer__close:hover { background: var(--sdst-bg); color: var(--sdst-text); }

.sdst-drawer__body {
	flex: 1;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 16px 20px;
}

.sdst-drawer__ship { padding: 14px 20px; border-bottom: 1px solid var(--sdst-border); }
.sdst-drawer__ship-text { margin: 0 0 8px; font-size: .88em; color: var(--sdst-muted); }
.sdst-drawer__ship-text strong { color: var(--sdst-text); }

.sdst-progress {
	height: 6px;
	background: var(--sdst-border);
	border-radius: 999px;
	overflow: hidden;
}
.sdst-progress span {
	display: block;
	height: 100%;
	width: 0;
	background: var(--sdst-primary);
	border-radius: 999px;
	transition: width .4s ease;
}
.sdst-progress.is-complete span { background: var(--sdst-success); }

.sdst-drawer__foot {
	border-top: 1px solid var(--sdst-border);
	padding: 16px 20px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	background: var(--sdst-surface);
}
.sdst-drawer__row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	font-size: 1.02em;
}
.sdst-drawer__row strong { font-size: 1.15em; font-family: var(--sdst-font-heading); }

/* Lignes du panier */

.sdst-line {
	display: grid;
	grid-template-columns: 68px 1fr auto;
	gap: 12px;
	padding: 14px 0;
	border-bottom: 1px solid var(--sdst-border);
}
.sdst-line:last-child { border-bottom: 0; }

.sdst-line__img {
	width: 68px; height: 68px;
	object-fit: cover;
	border-radius: var(--sdst-radius-sm);
	background: var(--sdst-bg);
}
.sdst-line__name {
	margin: 0 0 2px;
	font-size: .94em;
	font-weight: 500;
}
.sdst-line__name a { color: inherit; text-decoration: none; }
.sdst-line__meta { font-size: .82em; color: var(--sdst-muted); margin: 0 0 6px; }
.sdst-line__meta p { margin: 0; }

.sdst-qty {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--sdst-border);
	border-radius: 999px;
	overflow: hidden;
}
.sdst-qty button {
	width: 32px; height: 32px;
	background: none; border: 0;
	cursor: pointer;
	color: var(--sdst-text);
	font-size: 1.1em;
	line-height: 1;
}
.sdst-qty button:hover { background: var(--sdst-bg); }
.sdst-qty span { min-width: 28px; text-align: center; font-size: .9em; }

.sdst-line__side {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: space-between;
}
.sdst-line__price { font-weight: 600; font-size: .95em; }
.sdst-line__remove {
	background: none; border: 0;
	color: var(--sdst-muted);
	cursor: pointer;
	font-size: .82em;
	text-decoration: underline;
	padding: 0;
}
.sdst-line__remove:hover { color: var(--sdst-danger); }

.sdst-cart-empty { text-align: center; padding: 48px 16px; color: var(--sdst-muted); }
.sdst-cart-empty svg { width: 46px; height: 46px; opacity: .35; margin-bottom: 12px; }

/* Déclencheur du panier */

.sdst-cart-trigger {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: none;
	border: 0;
	cursor: pointer;
	color: var(--sdst-text);
	font: inherit;
	padding: 6px;
}
.sdst-cart-trigger__icon { position: relative; display: grid; place-items: center; }
.sdst-cart-trigger__icon .sdst-icon { width: 24px; height: 24px; }

.sdst-cart-trigger__badge {
	position: absolute;
	top: -6px; right: -8px;
	background: var(--sdst-primary);
	color: #fff;
	font-size: .68em;
	font-weight: 600;
	min-width: 18px; height: 18px;
	border-radius: 999px;
	display: grid; place-items: center;
	padding: 0 5px;
}
.sdst-cart-trigger__text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; font-size: .9em; }
.sdst-cart-trigger--button {
	border: 1px solid var(--sdst-border);
	border-radius: var(--sdst-radius-sm);
	padding: .6em 1em;
}

/* =========================================================
   Toast
   ========================================================= */

.sdst-toast {
	position: fixed;
	left: 50%;
	bottom: calc(24px + env(safe-area-inset-bottom, 0px));
	transform: translate(-50%, 20px);
	background: var(--sdst-text);
	color: var(--sdst-surface);
	padding: 12px 20px;
	border-radius: 999px;
	font-family: var(--sdst-font-body);
	font-size: .92em;
	z-index: 99999;
	opacity: 0;
	pointer-events: none;
	transition: opacity .25s ease, transform .25s ease;
	max-width: calc(100vw - 32px);
	text-align: center;
}
.sdst-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================
   Livraison
   ========================================================= */

.sdst-ship {
	border: 1px solid var(--sdst-border);
	border-radius: var(--sdst-radius);
	padding: 16px;
	background: var(--sdst-surface);
}
.sdst-ship__title { display: flex; align-items: center; gap: 8px; font-size: 1em; margin-bottom: 12px; }
.sdst-ship__row { display: flex; gap: 10px; align-items: stretch; }
.sdst-ship--stacked .sdst-ship__row { flex-direction: column; }

.sdst-ship__result {
	margin-top: 12px;
	padding: 12px 14px;
	background: var(--sdst-bg);
	border-radius: var(--sdst-radius-sm);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}
.sdst-ship__result strong { font-size: 1.1em; color: var(--sdst-primary); }
.sdst-ship__result.is-free strong { color: var(--sdst-success); }
.sdst-ship__delay { font-size: .85em; color: var(--sdst-muted); }
.sdst-ship__hint { margin: 10px 0 0; font-size: .85em; color: var(--sdst-muted); }

/* =========================================================
   WhatsApp
   ========================================================= */

.sdst-wa--brand { background: #25D366; color: #fff; }
.sdst-wa--brand:hover { background: #1DA851; color: #fff; }
.sdst-wa--primary { background: var(--sdst-primary); color: #fff; }
.sdst-wa--primary:hover { background: var(--sdst-primary-hover); color: #fff; }
.sdst-wa--ghost { border: 1px solid var(--sdst-border); color: var(--sdst-text); }
.sdst-wa--ghost:hover { border-color: #25D366; color: #25D366; }

.sdst-wa-float {
	position: fixed;
	right: 16px;
	bottom: calc(16px + env(safe-area-inset-bottom, 0px));
	width: 56px; height: 56px;
	border-radius: 50%;
	background: #25D366;
	color: #fff;
	display: grid;
	place-items: center;
	box-shadow: 0 6px 20px rgba(37,211,102,.4);
	z-index: 9980;
}
.sdst-wa-float .sdst-icon { width: 28px; height: 28px; }

/* =========================================================
   Barre d'annonce
   ========================================================= */

.sdst-annonce {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	background: var(--sdst-primary);
	color: #fff;
	padding: 10px 44px;
	font-size: .9em;
	position: relative;
	text-align: center;
	padding-top: calc(10px + env(safe-area-inset-top, 0px));
}
.sdst-annonce.is-sticky { position: sticky; top: 0; z-index: 9970; }
.sdst-annonce a { color: inherit; text-decoration: underline; }
.sdst-annonce__track { position: relative; min-height: 1.4em; flex: 0 1 auto; }
.sdst-annonce__item { display: none; }
.sdst-annonce__item.is-active { display: block; animation: sdst-fade .4s ease; }
@keyframes sdst-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.sdst-annonce__timer {
	font-variant-numeric: tabular-nums;
	font-weight: 600;
	background: rgba(255,255,255,.18);
	padding: 3px 10px;
	border-radius: 999px;
	white-space: nowrap;
}

.sdst-annonce__close {
	position: absolute;
	right: 8px; top: 50%;
	transform: translateY(-50%);
	background: none; border: 0;
	color: inherit;
	opacity: .8;
	cursor: pointer;
	padding: 6px;
	line-height: 0;
}
.sdst-annonce__close:hover { opacity: 1; }

/* =========================================================
   Réassurance
   ========================================================= */

.sdst-trust {
	display: grid;
	grid-template-columns: repeat(4, minmax(0,1fr));
	gap: 14px;
}

.sdst-trust__item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	background: var(--sdst-surface);
	border-radius: var(--sdst-radius);
}
.sdst-trust--inline .sdst-trust__item { background: transparent; padding: 8px 0; }
.sdst-trust--divided .sdst-trust__item {
	background: transparent;
	border-right: 1px solid var(--sdst-border);
	border-radius: 0;
}
.sdst-trust--divided .sdst-trust__item:last-child { border-right: 0; }

.sdst-trust__icon {
	display: grid; place-items: center;
	width: 42px; height: 42px;
	flex: none;
	border-radius: 50%;
	background: var(--sdst-bg);
	color: var(--sdst-primary);
}
.sdst-trust__icon .sdst-icon { width: 21px; height: 21px; }

.sdst-trust__text { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.sdst-trust__text strong { font-size: .94em; font-weight: 600; }
.sdst-trust__text span { font-size: .84em; color: var(--sdst-muted); }

/* =========================================================
   Stock
   ========================================================= */

.sdst-stock { margin: 0; }
.sdst-stock__label { margin: 0 0 8px; font-size: .9em; font-weight: 500; }
.sdst-stock--low .sdst-stock__label { color: var(--sdst-accent); }
.sdst-stock--critical .sdst-stock__label { color: var(--sdst-danger); }
.sdst-stock--ok .sdst-stock__label { color: var(--sdst-success); }
.sdst-stock--out { color: var(--sdst-danger); font-weight: 500; }

.sdst-progress--stock span { background: var(--sdst-accent); }
.sdst-stock--critical .sdst-progress span { background: var(--sdst-danger); }
.sdst-stock--ok .sdst-progress span { background: var(--sdst-success); }

/* =========================================================
   Compte à rebours
   ========================================================= */

.sdst-countdown__title { margin: 0 0 10px; font-size: .9em; color: var(--sdst-muted); }
.sdst-countdown__units { display: flex; gap: 10px; }

.sdst-countdown__unit {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	min-width: 62px;
	padding: 10px 6px;
	background: var(--sdst-bg);
	border-radius: var(--sdst-radius-sm);
}
.sdst-countdown__value {
	font-family: var(--sdst-font-heading);
	font-size: 1.5em;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	line-height: 1;
	color: var(--sdst-text);
}
.sdst-countdown__label { font-size: .72em; color: var(--sdst-muted); }

.sdst-countdown--inline .sdst-countdown__units { gap: 4px; }
.sdst-countdown--inline .sdst-countdown__unit {
	flex-direction: row;
	align-items: baseline;
	gap: 3px;
	background: transparent;
	padding: 0;
	min-width: 0;
}
.sdst-countdown--inline .sdst-countdown__value { font-size: 1.05em; }
.sdst-countdown--inline .sdst-countdown__unit:not(:last-child)::after { content: ':'; color: var(--sdst-muted); margin-left: 4px; }

.sdst-countdown--ring .sdst-countdown__unit {
	border-radius: 50%;
	width: 68px; height: 68px;
	justify-content: center;
	border: 2px solid var(--sdst-primary);
	background: transparent;
}

.sdst-countdown.is-over .sdst-countdown__units { display: none; }

/* =========================================================
   Favoris
   ========================================================= */

.sdst-wish-counter {
	position: relative;
	background: none; border: 0;
	cursor: pointer;
	color: var(--sdst-text);
	padding: 6px;
	display: inline-grid;
	place-items: center;
}
.sdst-wish-counter .sdst-icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.sdst-wish-counter__badge {
	position: absolute;
	top: -4px; right: -6px;
	background: var(--sdst-danger);
	color: #fff;
	font-size: .68em;
	min-width: 18px; height: 18px;
	border-radius: 999px;
	display: grid; place-items: center;
	padding: 0 5px;
}

.sdst-wish-btn .sdst-icon { fill: none; stroke: currentColor; stroke-width: 1.7; }
.sdst-wish-btn.is-active { color: var(--sdst-danger); border-color: var(--sdst-danger); }
.sdst-wish-btn.is-active .sdst-icon { fill: currentColor; }

/* =========================================================
   Ventes récentes
   ========================================================= */

.sdst-sales { position: fixed; z-index: 9960; pointer-events: none; }
.sdst-sales--bottom-left { left: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
.sdst-sales--bottom-right { right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
.sdst-sales--top-left { left: 18px; top: calc(18px + env(safe-area-inset-top, 0px)); }
.sdst-sales--top-right { right: 18px; top: calc(18px + env(safe-area-inset-top, 0px)); }

.sdst-sales__card {
	display: flex;
	align-items: center;
	gap: 12px;
	background: var(--sdst-surface);
	border: 1px solid var(--sdst-border);
	border-radius: var(--sdst-radius);
	box-shadow: var(--sdst-shadow);
	padding: 12px 14px;
	max-width: 330px;
	pointer-events: auto;
	opacity: 0;
	transform: translateY(12px);
	transition: opacity .3s ease, transform .3s ease;
}
.sdst-sales__card.is-visible { opacity: 1; transform: none; }

.sdst-sales__img { width: 52px; height: 52px; object-fit: cover; border-radius: var(--sdst-radius-sm); flex: none; }
.sdst-sales__body { min-width: 0; }
.sdst-sales__text { margin: 0; font-size: .88em; line-height: 1.35; }
.sdst-sales__text strong { font-weight: 600; }
.sdst-sales__meta { margin: 2px 0 0; font-size: .78em; color: var(--sdst-muted); }
.sdst-sales__close {
	background: none; border: 0;
	color: var(--sdst-muted);
	cursor: pointer;
	padding: 4px;
	line-height: 0;
	align-self: flex-start;
}

/* =========================================================
   Alerte stock et suivi de commande
   ========================================================= */

.sdst-bis,
.sdst-track {
	border: 1px solid var(--sdst-border);
	border-radius: var(--sdst-radius);
	padding: 18px;
	background: var(--sdst-surface);
}

.sdst-bis__title,
.sdst-track__title { font-size: 1em; margin-bottom: 12px; }

.sdst-bis__form,
.sdst-track__form { display: flex; gap: 10px; flex-wrap: wrap; }
.sdst-bis--stacked .sdst-bis__form { flex-direction: column; }
.sdst-track__form .sdst-field { min-width: 170px; }

.sdst-bis__msg {
	margin: 12px 0 0;
	font-size: .88em;
	padding: 10px 12px;
	border-radius: var(--sdst-radius-sm);
	background: var(--sdst-bg);
}
.sdst-bis__msg.is-error { color: var(--sdst-danger); }
.sdst-bis__msg.is-success { color: var(--sdst-success); }

.sdst-track__result { margin-top: 16px; }

.sdst-track__summary {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: 12px;
	padding: 14px;
	background: var(--sdst-bg);
	border-radius: var(--sdst-radius-sm);
	margin-bottom: 16px;
}
.sdst-track__cell span { display: block; font-size: .78em; color: var(--sdst-muted); }
.sdst-track__cell strong { font-size: .95em; }

.sdst-steps { display: flex; margin: 20px 0; }
.sdst-step { flex: 1; text-align: center; position: relative; font-size: .8em; color: var(--sdst-muted); }
.sdst-step::before {
	content: '';
	display: block;
	width: 26px; height: 26px;
	border-radius: 50%;
	border: 2px solid var(--sdst-border);
	background: var(--sdst-surface);
	margin: 0 auto 8px;
	position: relative;
	z-index: 2;
}
.sdst-step::after {
	content: '';
	position: absolute;
	top: 13px; left: -50%;
	width: 100%; height: 2px;
	background: var(--sdst-border);
	z-index: 1;
}
.sdst-step:first-child::after { display: none; }
.sdst-step.is-done { color: var(--sdst-text); }
.sdst-step.is-done::before { border-color: var(--sdst-primary); background: var(--sdst-primary); }
.sdst-step.is-done::after { background: var(--sdst-primary); }

.sdst-track__items { list-style: none; margin: 0; padding: 0; }
.sdst-track__items li {
	display: flex;
	justify-content: space-between;
	padding: 8px 0;
	border-bottom: 1px solid var(--sdst-border);
	font-size: .92em;
}
.sdst-track__items li:last-child { border-bottom: 0; }

.sdst-track__error { color: var(--sdst-danger); font-size: .9em; margin: 12px 0 0; }

/* =========================================================
   Thème et langue
   ========================================================= */

.sdst-switcher { display: flex; align-items: center; gap: 12px; }

.sdst-theme-switch { background: none; border: 0; cursor: pointer; padding: 0; }
.sdst-theme-switch__track {
	display: block;
	width: 54px; height: 28px;
	border-radius: 999px;
	background: var(--sdst-bg);
	border: 1px solid var(--sdst-border);
	position: relative;
	transition: background-color .25s ease;
}
.sdst-theme-switch__thumb {
	position: absolute;
	top: 2px; left: 2px;
	width: 22px; height: 22px;
	border-radius: 50%;
	background: var(--sdst-surface);
	box-shadow: 0 1px 4px rgba(0,0,0,.2);
	display: grid;
	place-items: center;
	transition: transform .25s cubic-bezier(.4,0,.2,1);
	color: var(--sdst-accent);
}
[data-sdst-theme="dark"] .sdst-theme-switch__thumb { transform: translateX(26px); color: var(--sdst-primary); }

.sdst-theme-switch__sun,
.sdst-theme-switch__moon { display: grid; place-items: center; line-height: 0; }
.sdst-theme-switch__sun .sdst-icon,
.sdst-theme-switch__moon .sdst-icon { width: 13px; height: 13px; }
.sdst-theme-switch__moon { display: none; }
[data-sdst-theme="dark"] .sdst-theme-switch__sun { display: none; }
[data-sdst-theme="dark"] .sdst-theme-switch__moon { display: grid; }

.sdst-theme-icon {
	background: none;
	border: 1px solid var(--sdst-border);
	border-radius: 50%;
	width: 40px; height: 40px;
	display: grid; place-items: center;
	cursor: pointer;
	color: var(--sdst-text);
}
.sdst-theme-icon__moon { display: none; }
[data-sdst-theme="dark"] .sdst-theme-icon__sun { display: none; }
[data-sdst-theme="dark"] .sdst-theme-icon__moon { display: block; }

.sdst-theme-pair {
	display: inline-flex;
	border: 1px solid var(--sdst-border);
	border-radius: 999px;
	padding: 3px;
	gap: 2px;
}
.sdst-theme-pair__btn {
	background: none; border: 0;
	width: 34px; height: 34px;
	border-radius: 50%;
	display: grid; place-items: center;
	cursor: pointer;
	color: var(--sdst-muted);
}
[data-sdst-theme="light"] .sdst-theme-pair__btn[data-sdst-theme-set="light"],
[data-sdst-theme="dark"] .sdst-theme-pair__btn[data-sdst-theme-set="dark"] {
	background: var(--sdst-primary);
	color: #fff;
}

.sdst-lang { position: relative; display: flex; align-items: center; gap: 4px; }

.sdst-lang__btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: none;
	border: 1px solid var(--sdst-border);
	border-radius: 999px;
	padding: 7px 12px;
	cursor: pointer;
	color: var(--sdst-text);
	font: inherit;
	font-size: .88em;
	min-height: 40px;
}
.sdst-lang__btn .sdst-icon--chevron { width: .7em; height: .7em; transform: rotate(90deg); color: var(--sdst-muted); }
.sdst-lang__btn[aria-expanded="true"] .sdst-icon--chevron { transform: rotate(-90deg); }

.sdst-lang__menu {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	min-width: 160px;
	background: var(--sdst-surface);
	border: 1px solid var(--sdst-border);
	border-radius: var(--sdst-radius-sm);
	box-shadow: var(--sdst-shadow);
	list-style: none;
	margin: 0; padding: 6px;
	z-index: 70;
}
.sdst-lang__menu a {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 9px 10px;
	border-radius: var(--sdst-radius-sm);
	text-decoration: none;
	color: var(--sdst-text);
	font-size: .9em;
}
.sdst-lang__menu a:hover { background: var(--sdst-bg); }
.sdst-lang__menu [aria-selected="true"] a { color: var(--sdst-primary); font-weight: 600; }
.sdst-lang__flag { font-size: 1.05em; }

.sdst-lang__item {
	padding: 6px 9px;
	border-radius: var(--sdst-radius-sm);
	text-decoration: none;
	color: var(--sdst-muted);
	font-size: .85em;
	font-weight: 500;
	min-height: 36px;
	display: inline-flex;
	align-items: center;
}
.sdst-lang__item.is-active { color: var(--sdst-primary); background: var(--sdst-bg); }
.sdst-lang--flags .sdst-lang__item { font-size: 1.15em; }

/* =========================================================
   Responsive
   ========================================================= */

/* =========================================================
   Carrousel
   Piste à défilement aligné : pas de dépendance externe,
   le défilement natif reste disponible au doigt et au
   trackpad, les flèches et les points pilotent la même piste.
   ========================================================= */

.sdst-carousel { position: relative; }

.sdst-scope .sdst-carousel__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - (var(--sdst-car-gap) * (var(--sdst-car-per) - 1))) / var(--sdst-car-per));
	gap: var(--sdst-car-gap);
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	padding-bottom: 4px;
	scrollbar-width: none;
	-ms-overflow-style: none;
}
.sdst-scope .sdst-carousel__track::-webkit-scrollbar { display: none; }
.sdst-scope .sdst-carousel__track > * { scroll-snap-align: start; min-width: 0; }

.sdst-carousel--peek .sdst-carousel__track {
	grid-auto-columns: calc((100% - (var(--sdst-car-gap) * var(--sdst-car-per))) / var(--sdst-car-per));
}

.sdst-scope .sdst-carousel__nav {
	position: absolute;
	top: var(--sdst-car-nav-top, 38%);
	width: 40px;
	height: 40px;
	display: grid;
	place-items: center;
	padding: 0;
	z-index: 4;
	cursor: pointer;
	border: 1px solid var(--sdst-border);
	border-radius: 50%;
	background: var(--sdst-surface);
	color: var(--sdst-text);
	box-shadow: var(--sdst-shadow);
	transition: opacity .2s ease, background .2s ease, color .2s ease;
}
.sdst-scope .sdst-carousel__nav:hover {
	background: var(--sdst-primary);
	color: #fff;
	border-color: var(--sdst-primary);
}
.sdst-scope .sdst-carousel__nav--prev { left: -8px; }
.sdst-scope .sdst-carousel__nav--next { right: -8px; }
.sdst-scope .sdst-carousel__nav[disabled] { opacity: .3; cursor: default; pointer-events: none; }
.sdst-scope .sdst-carousel__nav svg { width: 18px; height: 18px; }
.sdst-scope .sdst-carousel__nav--prev svg { transform: rotate(180deg); }

.sdst-scope .sdst-carousel__dots {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin-top: 16px;
	flex-wrap: wrap;
}
.sdst-scope .sdst-carousel__dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: var(--sdst-border);
	cursor: pointer;
	transition: width .2s ease, background .2s ease;
}
.sdst-scope .sdst-carousel__dot.is-active { width: 22px; background: var(--sdst-primary); }

.sdst-carousel--no-nav .sdst-carousel__nav { display: none; }
.sdst-carousel--no-dots .sdst-carousel__dots { display: none; }

/* Flèches à l'intérieur quand la place manque. */
@media (max-width: 1180px) {
	.sdst-scope .sdst-carousel__nav--prev { left: 6px; }
	.sdst-scope .sdst-carousel__nav--next { right: 6px; }
}

@media (max-width: 767px) {
	.sdst-scope .sdst-carousel__nav { width: 36px; height: 36px; }
	.sdst-scope .sdst-carousel__dots { margin-top: 12px; }
}

@media (max-width: 1024px) {
	:where(.sdst-grid) { gap: 16px; }
}

@media (max-width: 767px) {

	.sdst-search__cat { display: none; }
	.sdst-search__submit-text { display: none; }
	.sdst-search__submit { padding: 0 1em; }
	.sdst-search__results { position: fixed; left: 8px; right: 8px; top: auto; max-height: 60vh; }

	:where(.sdst-grid) { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
	.sdst-card__body { padding: 10px; gap: 4px; }
	.sdst-card__title { font-size: .9em; }
	.sdst-card__cart { font-size: .85em; padding: .6em .8em; min-height: 40px; }
	.sdst-card__wish { width: 34px; height: 34px; top: 8px; right: 8px; }

	.sdst-shop__bar { flex-direction: column; align-items: stretch; }
	.sdst-shop__sort { min-width: 0; width: 100%; }

	/* Les filtres passent en tiroir */
	.sdst-filters__bar { display: flex; }
	.sdst-filters[data-drawer="1"] .sdst-filters__inner { display: none; }
	.sdst-filters[data-drawer="1"].is-drawer-open .sdst-filters__inner { display: block; }
	.sdst-filters__actions { display: block; }
	.sdst-facet__body { max-height: none; }

	.sdst-drawer__panel { width: 100%; }
	.sdst-drawer--left .sdst-drawer__panel { width: min(340px, 90%); }

	.sdst-trust { grid-template-columns: 1fr; }
	.sdst-trust.is-scrollable {
		display: flex;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		gap: 10px;
		padding-bottom: 6px;
		-webkit-overflow-scrolling: touch;
	}
	.sdst-trust.is-scrollable .sdst-trust__item {
		flex: 0 0 78%;
		scroll-snap-align: start;
		border-right: 0;
	}

	.sdst-countdown__unit { min-width: 54px; padding: 8px 4px; }
	.sdst-countdown__value { font-size: 1.25em; }

	.sdst-ship__row { flex-direction: column; }

	.sdst-track__form { flex-direction: column; }
	.sdst-track__form .sdst-field { min-width: 0; }

	.sdst-sales.is-desktop-only { display: none; }
	.sdst-sales { left: 10px !important; right: 10px !important; }
	.sdst-sales__card { max-width: none; }

	.sdst-cart-trigger.is-floating-mobile {
		position: fixed;
		right: 16px;
		bottom: calc(16px + env(safe-area-inset-bottom, 0px));
		width: 54px; height: 54px;
		border-radius: 50%;
		background: var(--sdst-primary);
		color: #fff;
		display: grid;
		place-items: center;
		box-shadow: var(--sdst-shadow);
		z-index: 9975;
		padding: 0;
	}
	.sdst-cart-trigger.is-floating-mobile .sdst-cart-trigger__text { display: none; }

	.sdst-annonce { font-size: .82em; padding-left: 14px; padding-right: 38px; }
	.sdst-annonce__timer { font-size: .95em; }
}

@media (max-width: 420px) {
	:where(.sdst-grid) { grid-template-columns: 1fr; }
	.sdst-countdown__units { justify-content: space-between; width: 100%; }
	.sdst-countdown__unit { flex: 1; min-width: 0; }
}

/* Modèles de carte sur petit écran. */
@media (max-width: 767px) {
	/* Marché garde sa ligne horizontale : c'est tout son intérêt sur mobile. */
	.sdst-scope .sdst-card--marche { grid-template-columns: 88px minmax(0, 1fr); }
	.sdst-shop--media-right .sdst-card--marche { grid-template-columns: minmax(0, 1fr) 88px; }
	.sdst-scope .sdst-card--marche .sdst-card__body { padding: 10px 12px; gap: 4px; }
	.sdst-scope .sdst-card--marche .sdst-card__add { width: 38px; height: 38px; }

	.sdst-scope .sdst-card--vitrine .sdst-card__body { padding: 10px; gap: 5px; }
	.sdst-scope .sdst-card__cart { min-height: 42px; padding: .6em .8em; }
	.sdst-scope .sdst-card--affiche .sdst-card__body { padding: 12px; }
}

/* Accessibilité : mouvement réduit */
@media (prefers-reduced-motion: reduce) {
	.sdst-scope *,
	.sdst-drawer__panel,
	.sdst-drawer__backdrop,
	.sdst-toast,
	.sdst-sales__card {
		transition-duration: .01ms !important;
		animation-duration: .01ms !important;
	}
	.sdst-card:hover { transform: none; }
}

/* Impression */
@media print {
	.sdst-drawer, .sdst-toast, .sdst-sales, .sdst-wa-float, .sdst-annonce { display: none !important; }
}
