/*
Theme Name:   Euridys
Theme URI:    https://euridys-chaussures.com
Description:  Thème enfant Divi pour Euridys Chaussures & Maroquinerie — Arcachon. Développé par Ormone.
Author:       Ormone
Author URI:   https://ormone.fr
Template:     Divi
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  euridys
*/

/* ------------------------------------------------------------------
   CSS personnalisé Euridys
   Ajouter les styles spécifiques au site ci-dessous.
   ------------------------------------------------------------------ */
/* Supprime la flèche d'infobulle parasite sur les pastilles */
.variable-items-wrapper .variable-item::before,
.variable-items-wrapper .variable-item::after,
.variable-items-wrapper .variable-item .variable-item-span::before,
.variable-items-wrapper .variable-item .variable-item-span::after {
	content: none !important;
	display: none !important;
}


/* Barre "Ajouter au panier" sticky en bas sur mobile */
@media (max-width: 980px) {
	.single-product form.cart .woocommerce-variation-add-to-cart {
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		z-index: 9999;
		background: #fff;
		padding: 10px 16px;
		box-shadow: 0 -2px 12px rgba(0, 0, 0, .08);
		display: flex;
		align-items: center;
		gap: 12px;
		margin: 0;
	}
	.single-product form.cart .single_add_to_cart_button {
		flex: 1;
		white-space: nowrap;
	}
	/* Évite que la barre masque le bas de page */
	body.single-product {
		padding-bottom: 80px;
	}
	/* Prix dans la barre sticky : prix actuel au-dessus, ancien prix barré dessous */
	.euridys-sticky-prix,
	.euridys-sticky-prix .price {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		align-self: center;
		gap: 0;
		line-height: 1.2;
		white-space: nowrap;
		flex-shrink: 0;
		margin: 0;
	}
	.euridys-sticky-prix ins {
		order: 1;
		text-decoration: none;
		color: rgb(102, 102, 102);
		font-weight: 700;
		font-size: 18px;
	}
	.euridys-sticky-prix del {
		order: 2;
		color: #9a9a9a;
		font-weight: 400;
		font-size: 13px;
	}
}
/* Pas de prix cloné sur desktop */
@media (min-width: 981px) {
	.euridys-sticky-prix {
		display: none;
	}
}
/* Bouton panier : même apparence avec ou sans pointure choisie */
.single-product form.cart .single_add_to_cart_button.disabled,
.single-product form.cart .single_add_to_cart_button:disabled {
	opacity: 1 !important;
	cursor: pointer;
}


/* Rangées à 90% de largeur sur tablette et mobile */
@media (max-width: 980px) {
	.et_pb_row {
		width: 90% !important;
	}
}


/* Respiration des titres dans les contenus texte */
.et_pb_wc_description h2,
.et_pb_text h2,
.et_pb_post_content h2 {
	margin-top: 1.6em;
	margin-bottom: 0.6em;
}

.et_pb_wc_description h3,
.et_pb_text h3,
.et_pb_post_content h3 {
	margin-top: 1.4em;
	margin-bottom: 0.5em;
}

.et_pb_text h4,
.et_pb_post_content h4 {
	margin-top: 1.2em;
	margin-bottom: 0.3em;
}

/* Pas d'espace au-dessus d'un titre en début de module */
.et_pb_text h2:first-child,
.et_pb_text h3:first-child,
.et_pb_text h4:first-child,
.et_pb_wc_description h2:first-child,
.et_pb_post_content h2:first-child {
	margin-top: 0;
}


/* Galerie produit : vignettes verticales à gauche (desktop) */
@media (min-width: 981px) {
	.single-product .woocommerce-product-gallery {
		display: flex;
		align-items: flex-start;
		justify-content: flex-start;
		gap: 14px;
	}
	.single-product .woocommerce-product-gallery .flex-viewport {
		order: 2;
		flex: 1;
	}
	.single-product .woocommerce-product-gallery .flex-viewport img {
		margin: 0;
	}
	.single-product .woocommerce-product-gallery .flex-control-thumbs {
		order: 1;
		display: flex;
		flex-direction: column;
		gap: 10px;
		width: 80px;
		flex-shrink: 0;
		margin: 0 !important;
		padding: 0 !important;
		align-self: flex-start;
	}
	.single-product .woocommerce-product-gallery--columns-4 .flex-control-thumbs li,
	.single-product .woocommerce-product-gallery .flex-control-thumbs li {
		display: block;
		width: 100% !important;
		float: none;
		margin: 0;
	}
	.single-product .woocommerce-product-gallery .flex-control-thumbs li img {
		display: block;
		width: 100% !important;
		height: auto;
	}
	.single-product .et_pb_wc_images span.onsale,
	.single-product .woocommerce-product-gallery span.onsale {
		left: 105px !important;
		right: auto !important;
	}
}

/* Inverse l'ordre des colonnes sur tablette/mobile */
@media (max-width: 980px) {
	.reverse {
		display: flex;
		flex-direction: column-reverse;
	}
}

/* Rangée pleine largeur sur mobile (image bord à bord) */
@media (max-width: 980px) {
	.et_pb_row.full {
		width: 100% !important;
	}
}

/* Entrée "Mon compte" du menu en icône personnage */
.menu-compte > a {
	font-size: 0; /* masque le texte, gardé pour l'accessibilité */
}


/* Entrée "Mon compte" du menu en icône personnage */
.et_pb_menu li.menu-compte > a {
	font-size: 0 !important;
}

.et_pb_menu li.menu-compte > a::after {
	content: "";
	display: inline-block;
	width: 20px;
	height: 20px;
	background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23112941"><path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/></svg>') center / contain no-repeat;
	position: relative;
	top: 4px; /* le tournevis : augmente pour descendre, diminue pour monter */
}