/* « Complétez la tenue » (inc/products/cross-sell.php) : fiche produit et panier.
   Mobile d'abord : rangée qui défile au doigt ; ordinateur : grille de 4 (fiche) ou rangée avec flèches (panier). */

.slaychic-xs { --xs-brand: #6D1A2C; --xs-ink: #2A2224; --xs-soft: #F8EEF0; --xs-line: #EFE4E1; --xs-photo: #F6F1EC;
	clear: both; position: relative; margin: 40px 0 8px; padding: 24px 0 4px; border-top: 1px solid var(--xs-line); }
.slaychic-xs__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.slaychic-xs__eyebrow { display: inline-block; margin-bottom: 6px; padding: 4px 10px; font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--xs-brand); background: var(--xs-soft); border-radius: 999px; }
.slaychic-xs .slaychic-xs__title { margin: 0 !important; font-size: 24px !important; line-height: 1.15 !important; color: var(--xs-ink) !important; text-align: left; }

.slaychic-xs__list { display: flex; gap: 12px; margin: 0 -16px !important; padding: 2px 16px 10px !important; list-style: none !important; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding: 0 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.slaychic-xs__list::-webkit-scrollbar { display: none; }
.slaychic-xs__item { flex: 0 0 42%; min-width: 0; margin: 0 !important; padding: 0 !important; list-style: none !important; scroll-snap-align: start; }
.slaychic-xs__item::before { display: none !important; }

.slaychic-xs__card { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--xs-line); border-radius: 14px; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.slaychic-xs__img { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--xs-photo); }
.slaychic-xs__img img { display: block; width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; transition: transform .45s ease; }
.slaychic-xs__badge { position: absolute; top: 8px; left: 8px; padding: 3px 7px; font-size: 11px; font-weight: 700; line-height: 1.3; color: #fff; background: #B3261E; border-radius: 999px; }
.slaychic-xs__body { display: flex; flex: 1; flex-direction: column; gap: 4px; padding: 10px 10px 12px; }
.slaychic-xs .slaychic-xs__name { display: -webkit-box; overflow: hidden; min-height: 2.7em; font-size: 13px !important; font-weight: 500; line-height: 1.35 !important; color: var(--xs-ink) !important; text-decoration: none !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.slaychic-xs__price { font-size: 14px; font-weight: 700; color: var(--xs-brand); }
.slaychic-xs__price del { margin-right: 4px; font-size: 12px; font-weight: 400; color: #7A6F71; }
.slaychic-xs__price ins { text-decoration: none; }
.slaychic-xs .slaychic-xs__add { display: inline-flex !important; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 38px; margin-top: auto !important; padding: 0 10px !important; font-size: 13px !important; font-weight: 600 !important; line-height: 1 !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--xs-brand) !important; text-decoration: none !important; background: #fff !important; border: 1.5px solid var(--xs-brand) !important; border-radius: 999px !important; box-shadow: none !important; transition: background .15s, color .15s; }
.slaychic-xs__body .slaychic-xs__price + .slaychic-xs__add { margin-top: 8px !important; }
.slaychic-xs .slaychic-xs__add svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; }
.slaychic-xs .slaychic-xs__add:hover, .slaychic-xs .slaychic-xs__add:focus-visible { color: #fff !important; background: var(--xs-brand) !important; }
.slaychic-xs .slaychic-xs__add.loading { opacity: .6; pointer-events: none; }
.slaychic-xs .slaychic-xs__add.added { color: #fff !important; background: var(--xs-brand) !important; }
.slaychic-xs .slaychic-xs__add.added::after, .slaychic-xs .slaychic-xs__add.loading::after { display: none !important; }
/* Lien « Voir le panier » ajouté par WooCommerce après un ajout simple : inutile ici (le mini-panier s'ouvre). */
.slaychic-xs .added_to_cart { display: none !important; }

/* Flèches (ordinateur, quand la rangée déborde). */
.slaychic-xs__nav { display: flex; gap: 8px; }
.slaychic-xs__nav[hidden] { display: none; }
.slaychic-xs .slaychic-xs__arrow { position: relative; width: 40px; height: 40px; margin: 0 !important; padding: 0 !important; background: #fff !important; border: 1.5px solid #E5DAD7 !important; border-radius: 50% !important; cursor: pointer; transition: border-color .15s, opacity .15s; }
.slaychic-xs .slaychic-xs__arrow::before { content: ''; position: absolute; top: 50%; left: 50%; width: 9px; height: 9px; margin: -5px 0 0 -3px; border-top: 2px solid var(--xs-ink); border-left: 2px solid var(--xs-ink); transform: rotate(-45deg); }
.slaychic-xs .slaychic-xs__arrow.is-next::before { margin-left: -6px; transform: rotate(135deg); }
.slaychic-xs .slaychic-xs__arrow:hover { border-color: var(--xs-brand) !important; }
.slaychic-xs .slaychic-xs__arrow:disabled { opacity: .35; cursor: default; }

@media (hover: hover) {
	.slaychic-xs__card:hover { box-shadow: 0 10px 24px rgba(42, 34, 36, .08); transform: translateY(-2px); }
	.slaychic-xs__card:hover .slaychic-xs__img img { transform: scale(1.04); }
}

/* Panier : la section est dans le formulaire du panier, sous les articles. */
.slaychic-xs--panier { margin: 28px 0 8px; padding: 20px 0 0; }
.slaychic-xs--panier .slaychic-xs__title { font-size: 20px !important; }
.slaychic-xs--panier .slaychic-xs__item { flex-basis: 40%; }

@media (min-width: 768px) {
	.slaychic-xs { margin-top: 56px; padding-top: 32px; }
	.slaychic-xs .slaychic-xs__title { font-size: 30px !important; }
	.slaychic-xs__list { gap: 18px; margin: 0 !important; padding: 2px 2px 12px !important; }
	.slaychic-xs__item { flex-basis: calc((100% - 54px) / 4); }
	.slaychic-xs__body { padding: 12px 14px 14px; }
	.slaychic-xs .slaychic-xs__name { font-size: 14px !important; }
	.slaychic-xs__price { font-size: 15px; }
	.slaychic-xs--panier .slaychic-xs__title { font-size: 22px !important; }
	.slaychic-xs--panier .slaychic-xs__item { flex-basis: 180px; }
}
