/* Fiche produit : fond beige et carrousel de la galerie (inc/fiche.php). */

/* Fond beige : toute la fiche, jusqu'au bandeau de l'infolettre (beige aussi). */
.csm-fiche {
	background: var(--beige);
}

/* Champs et quantité : crème sur le beige. La règle de woocommerce.css
 * (.woocommerce div.product form.cart .variations select) écrasait celle du
 * thème : même poids ici, chargé après, flèche du thème reprise. */
.csm-fiche .csm-fiche__produit form.cart table.variations select {
	background: var(--creme) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B110E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 22px center / 16px;
}

.csm-fiche .csm-fiche__produit form.cart .quantity .qty {
	background-color: var(--creme);
}

/* Petits textes : doré foncé et brun pour garder le contraste sur le beige. */
.csm-fiche .csm-eyebrow,
.csm-fiche .reset_variations {
	color: #7e5c33;
}

.csm-fiche .product_meta {
	color: var(--brun);
	border-top-color: rgba(47, 27, 17, .3);
}

.csm-fiche__description,
.csm-fiche__lies .related > h2 {
	border-top-color: rgba(47, 27, 17, .3);
}

.csm-fiche__lies .price,
.csm-fiche__lies .price * {
	color: var(--brun);
}

/* Carrousel : piste à défilement horizontal aimanté (glissement natif au doigt). */
.csm-fiche__piste {
	position: absolute;
	inset: 0;
	display: flex;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
	outline: none;
}

.csm-fiche__piste::-webkit-scrollbar {
	display: none;
}

.csm-fiche__piste > .csm-fiche__vue {
	position: relative;
	inset: auto;
	flex: 0 0 100%;
	height: 100%;
	opacity: 1;
	transition: none;
	scroll-snap-align: start;
	scroll-snap-stop: always;
}

.csm-fiche__scene:has(.csm-fiche__piste:focus-visible) {
	outline: 2px solid var(--dore);
	outline-offset: 4px;
}

.csm-fiche__fleche {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	margin-top: -24px;
	padding: 0;
	border: 1px dashed rgba(157, 116, 65, .7);
	border-radius: 50%;
	background: rgba(245, 241, 235, .92);
	color: var(--brun-noir);
	cursor: pointer;
	transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}

.csm-fiche__fleche--prec {
	left: 14px;
}

.csm-fiche__fleche--suiv {
	right: 14px;
}

.csm-fiche__fleche:hover,
.csm-fiche__fleche:focus-visible {
	background: var(--dore);
	border-color: var(--dore);
	color: var(--blanc);
}

.csm-fiche__fleche:focus-visible {
	outline: 2px solid var(--brun-noir);
	outline-offset: 2px;
}

.csm-fiche__compteur {
	position: absolute;
	bottom: 14px;
	left: 50%;
	z-index: 2;
	margin: 0;
	padding: .3em .9em;
	transform: translateX(-50%);
	border-radius: 47px;
	background: rgba(245, 241, 235, .92);
	font: 500 .8125rem / 1.3 var(--font-texte);
	letter-spacing: 1px;
	color: var(--brun-noir);
	pointer-events: none;
}

/* Vignettes sur le beige : bordure plus foncée. */
.csm-fiche__vignette {
	border-color: rgba(126, 92, 51, .6);
}

@media (max-width: 767px) {
	.csm-fiche__fleche {
		width: 40px;
		height: 40px;
		margin-top: -20px;
	}

	.csm-fiche__fleche--prec {
		left: 8px;
	}

	.csm-fiche__fleche--suiv {
		right: 8px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.csm-fiche__piste {
		scroll-behavior: auto;
	}
}
