/**
 * SFI - Feuille de style personnalisée
 * Thème : Supreme Store (child de Divi)
 * Chargée via functions.php (hook wp_enqueue_scripts, priorité 20)
 *
 * Ajouter les personnalisations CSS ci-dessous.
 */

/* ==========================================================================
   Variables
   ========================================================================== */
:root {
	/* --sfi-color-primary: #2ea3f2; */
}

/* ==========================================================================
   Général
   ========================================================================== */

/* ==========================================================================
   Header / Menu
   ========================================================================== */

/* ==========================================================================
   WooCommerce - Boutique & catégories
   ========================================================================== */

/* Ligne quantite + bouton "Ajouter au panier" dans le listing produit */
.sfi-loop-cart {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 8px;
	margin-top: 10px;
}

/* Largeur du bloc quantite verrouillee : sans cela il herite d'une largeur
   pleine (CSS WooCommerce / Divi) et pousse le bouton a la ligne suivante. */
.sfi-loop-cart .quantity {
	flex: 0 0 64px !important;
	width: 64px !important;
	min-width: 64px !important;
	max-width: 64px !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
}

.sfi-loop-cart .quantity input.qty {
	box-sizing: border-box;
	width: 100% !important;
	height: 100%;
	min-height: 40px;
	margin: 0 !important;
	padding: 0 4px !important;
	text-align: center;
	line-height: normal;
}

.sfi-loop-cart a.button {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0 !important;
	text-align: center;
	white-space: nowrap;
}

/* style.css masque volontairement le bouton d'ajout dans tous les listings
   (regle ".products .add_to_cart_button.ajax_add_to_cart, ... { display:none }")
   et le repositionne en petite icone absolue. On le reaffiche uniquement
   a l'interieur de .sfi-loop-cart, en bouton texte normal. */
.products .sfi-loop-cart a.add_to_cart_button,
.products .sfi-loop-cart a.button.product_type_simple {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	position: static !important;
	top: auto !important;
	right: auto !important;
	width: auto !important;
	height: auto !important;
	min-height: 40px;
	flex: 1 1 auto;
	min-width: 0;
	margin: 0 !important;
	padding: 8px 10px !important;
	font-size: 14px !important;
	line-height: 1.2 !important;
	text-align: center;
	white-space: nowrap;
}

/* Neutralise l'icone :after, calibree pour l'ancien bouton carre de 30px */
.products .sfi-loop-cart a.add_to_cart_button:after,
.products .sfi-loop-cart a.add_to_cart_button.added:after,
.products .sfi-loop-cart a.add_to_cart_button.loading:after {
	display: none !important;
	content: none !important;
}

/* Lien "Voir le panier" ajoute apres un ajout AJAX : en dessous de la ligne,
   au lieu du positionnement absolu prevu par style.css */
.products .sfi-loop-cart a.added_to_cart {
	position: static !important;
	flex: 1 0 100%;
	margin: 6px 0 0 !important;
	padding: 0 !important;
	background: none !important;
	color: inherit !important;
	font-size: 13px;
	text-align: center;
	text-decoration: underline;
}

@media (max-width: 479px) {
	.sfi-loop-cart a.button {
		white-space: normal;
	}
}

/* ==========================================================================
   WooCommerce - Fiche produit
   ========================================================================== */

/* ==========================================================================
   Mon compte
   ========================================================================== */

/* Onglet actif du menu "Mon compte" en noir */
#page-container .woocommerce-MyAccount-navigation-link.is-active a {
    color: #000000 !important;
}
a.button.wc-forward {
    color: #ffffff !important;
}

/* ==========================================================================
   Panier / Commande
   ========================================================================== */

/* ==========================================================================
   Footer
   ========================================================================== */

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {

}

@media (max-width: 767px) {

}
