/**
 * Fiche produit, bureau : barre d'ajout au panier en bas, en-tête à nouveau collant.
 *
 * Par défaut CommerceKit fixe sa barre en haut de l'écran et sa feuille de
 * compatibilité Shoptimizer décolle l'en-tête header-4 pour éviter que les deux
 * se disputent le haut de page. On inverse : la barre descend en bas (comme sur
 * mobile) et l'en-tête redevient collant.
 */

@media (min-width: 993px) {

	/* En-tête à nouveau collant sur la fiche produit. */
	html body.sticky-d.theme-shoptimizer.header-4.single-product .header-4-container {
		position: sticky;
		top: 0;
	}

	html body.admin-bar.sticky-d.theme-shoptimizer.header-4.single-product .header-4-container {
		top: 32px;
	}

	/* Barre d'ajout au panier : position basse. */
	body.single-product .commercekit-sticky-add-to-cart {
		top: auto;
		bottom: -300px;
		border-top: 1px solid rgba(162, 144, 123, 0.3);
		border-bottom: 0;
		box-shadow: 0 -6px 18px rgba(50, 50, 50, 0.07);
		z-index: 90;
	}

	body.single-product .commercekit-sticky-add-to-cart.visible,
	body.admin-bar.single-product .commercekit-sticky-add-to-cart.visible {
		top: auto;
		bottom: 0;
	}

	body.single-product .commercekit-sticky-add-to-cart .commercekit-container {
		padding-top: 8px;
		padding-bottom: 8px;
	}
}

@media (min-width: 993px) {

	/* L'en-tête collant ne doit pas masquer la cible des ancres. */
	html {
		scroll-padding-top: 110px;
	}
}
