/* Alexa : carte produit globale (boutique, accueil, produits liés, vus récemment). */

.products .product {
	position: relative;
	display: block;
	min-width: 0;
	margin: 0;
	padding: 0;
	container-type: inline-size;
}

.products .product a.woocommerce-LoopProduct-link {
	display: block;
	color: var(--alx-ink);
}

.products .product a.woocommerce-LoopProduct-link img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	border-radius: 0;
	background: var(--alx-soft);
}

.products .product.outofstock a.woocommerce-LoopProduct-link img {
	opacity: 0.6;
}

.products .product .woocommerce-loop-product__title {
	display: block;
	margin: 10px 0 0;
	overflow: hidden;
	color: var(--alx-ink);
	font-size: 13.5px;
	font-weight: 400;
	line-height: 1.3;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.products .product .price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0 7px;
	margin: 4px 0 0;
	color: var(--alx-ink);
	font-size: 14px;
	font-weight: 600;
}

.products .product.outofstock .price {
	color: #8a8a90;
}

.products .product .price ins {
	order: -1;
	color: var(--alx-promo);
	text-decoration: none;
}

.products .product .price del {
	order: 1;
	color: #8a8a90;
	font-size: 12.5px;
	font-weight: 400;
	opacity: 1;
}

.products .product .price .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.products .product .star-rating,
.products .product .button.add_to_cart_button,
.products .product .added_to_cart,
.products .product > .screen-reader-text {
	display: none;
}

/* Badges du plugin : pastilles de la maquette. */
.products .product .swe-badges {
	top: 8px;
	left: 8px;
	gap: 4px;
	max-width: calc(100% - 56px);
	--swe-badge-radius: 999px;
	--swe-badge-font-size: 11px;
	--swe-badge-padding: 3px 9px;
}

.products .product .swe-badge--new,
.products .product .swe-badge--best {
	--swe-badge-bg: #fff;
	--swe-badge-fg: var(--alx-ink);
}

.products .product .swe-badge--discount {
	--swe-badge-bg: var(--alx-promo);
	--swe-badge-fg: #fff;
}

.products .product .swe-badge--low {
	--swe-badge-bg: var(--alx-ink);
	--swe-badge-fg: #fff;
}

.products .product .swe-badge--soldout {
	--swe-badge-bg: var(--alx-line);
	--swe-badge-fg: var(--alx-text-soft);
}

/* Cœur (favoris) en haut à droite, œil (aperçu rapide) en bas à droite de la photo. */
.products .product button.swe-wl-btn--overlay,
.products .product button.swe-qv-btn--overlay {
	position: absolute;
	right: 8px;
	z-index: 4;
	width: 34px;
	height: 34px;
	background: #fff;
	color: var(--alx-ink);
	box-shadow: none;
}

.products .product button.swe-wl-btn--overlay {
	top: 8px;
	left: auto;
}

.products .product button.swe-qv-btn--overlay {
	top: calc(100cqw * 4 / 3 - 42px);
}

.products .product button.swe-wl-btn--overlay svg,
.products .product button.swe-qv-btn--overlay svg {
	width: 17px;
	height: 17px;
}

.products .product button.swe-wl-btn--overlay.is-active {
	color: var(--alx-promo);
}

.products .product button.swe-wl-btn--overlay.is-active svg {
	fill: var(--alx-promo);
	stroke: var(--alx-promo);
}

.products .product button.swe-wl-btn--overlay:hover,
.products .product button.swe-qv-btn--overlay:hover {
	color: var(--alx-ink);
	background: #fff;
}

.products .product button.swe-wl-btn--overlay.is-active:hover {
	color: var(--alx-promo);
}

/* Pastilles couleur et tailles du module swatches. */
.products .product .swe-sw-loop {
	margin: 8px 0 0;
}

.products .product .swe-sw-loop__colors {
	gap: 6px;
}

.products .product .swe-sw-dot {
	width: 14px;
	height: 14px;
	border: 0;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.products .product .swe-sw-loop__more {
	color: var(--alx-text-soft);
	font-size: 11.5px;
	text-decoration: none;
}

.products .product .swe-sw-loop__sizes {
	display: flex;
	flex-wrap: wrap;
	gap: 0 7px;
	margin: 7px 0 0;
	padding: 0;
	color: var(--alx-text-soft);
	font-size: 11.5px;
	list-style: none;
}

.products .product .swe-sw-size {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
}

.products .product .swe-sw-size.is-oos {
	color: #b8b8be;
	text-decoration: line-through;
}

@media (hover: hover) and (pointer: fine) {
	.products .product button.swe-qv-btn--overlay {
		opacity: 0;
	}

	.products .product:hover button.swe-qv-btn--overlay,
	.products .product button.swe-qv-btn--overlay:focus-visible {
		opacity: 1;
	}
}

@media (max-width: 767px) {
	.products .product .swe-badges {
		top: 6px;
		left: 6px;
		--swe-badge-font-size: 10.5px;
		--swe-badge-padding: 2px 8px;
	}

	.products .product button.swe-wl-btn--overlay,
	.products .product button.swe-qv-btn--overlay {
		right: 6px;
		width: 30px;
		height: 30px;
	}

	.products .product button.swe-wl-btn--overlay {
		top: 6px;
	}

	.products .product button.swe-qv-btn--overlay {
		top: calc(100cqw * 4 / 3 - 36px);
	}

	.products .product .woocommerce-loop-product__title {
		font-size: 13px;
	}

	.products .product .price {
		gap: 0 6px;
		font-size: 13.5px;
	}

	.products .product .swe-sw-loop__sizes {
		gap: 0 6px;
		font-size: 10.5px;
	}
}

/* Vus récemment : cartes réduites, photo et prix seulement. */
.swe-rv .products .product .swe-sw-loop,
.swe-rv .products .product button.swe-qv-btn--overlay,
.swe-rv .products .product .swe-badges {
	display: none;
}

.swe-rv .products .product a.woocommerce-LoopProduct-link img {
	border-radius: 8px;
}

.swe-rv .products .product .woocommerce-loop-product__title {
	margin-top: 8px;
	font-size: 12.5px;
}

.swe-rv .products .product .price {
	margin-top: 2px;
	font-size: 13px;
}

.swe-rv .products .product button.swe-wl-btn--overlay {
	top: 6px;
	right: 6px;
	width: 28px;
	height: 28px;
}

.swe-rv .products .product button.swe-wl-btn--overlay svg {
	width: 15px;
	height: 15px;
}

/* Mur de produits façon Shein (accueil, panier, favoris) */
ul.products.alx-wall {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 28px 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

ul.products.alx-wall li.product {
	width: auto;
	margin: 0;
}

.alx-wallsec {
	margin-top: 56px;
}

.alx-wall__more {
	margin: 36px 0 0;
	text-align: center;
}

@media (max-width: 1199px) {
	ul.products.alx-wall {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	ul.products.alx-wall {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px 10px;
	}
}

body .alx-wallsec .alx-wall__more a.alx-btn {
	display: inline-flex;
	align-items: center;
	min-height: 46px;
	padding: 0 26px;
	border-radius: var(--alx-radius-pill, 999px);
	background: var(--alx-ink);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
}

body .alx-wallsec .alx-wall__more a.alx-btn:hover {
	opacity: 0.88;
}
