/* Saad's Boutique — retouches dans l'esprit noir / or du thème Astra. */
:root {
	--sb-gold: #e3c207;
	--sb-ink: #1b1b1b;
	--sb-cream: #faf5e5;
	--sb-muted: #6b6b6b;
	--sb-gold-text: #806500; /* or foncé lisible sur fond clair (5,6:1) */
	--sb-whatsapp: #008069;  /* vert WhatsApp foncé : texte blanc lisible (4,9:1) */
}

/* Focus clavier visible partout */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
	outline: 2px solid var(--sb-ink);
	outline-offset: 2px;
}

/* En-tête qui reste visible : menu et panier toujours à portée (sauf en-tête transparent sur photo) */
body:not(.ast-theme-transparent-header) #masthead {
	position: sticky;
	top: 0;
	z-index: 99;
	background: #fff;
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}
.admin-bar:not(.ast-theme-transparent-header) #masthead { top: 32px; }
@media (max-width: 782px) {
	.admin-bar:not(.ast-theme-transparent-header) #masthead { top: 46px; }
}

/* Accroche et promesses */
.sb-intro {
	margin: -0.5em 0 1em;
	color: var(--sb-muted);
	font-size: 1.05em;
}
.sb-promises {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em 1.5em;
	margin: 0 0 2em;
	padding: 0.9em 1.2em;
	list-style: none;
	background: var(--sb-cream);
	border-radius: 12px;
	font-size: 0.9em;
	color: var(--sb-ink);
}
.sb-promises li { margin: 0; }
.sb-promises li::before {
	content: "✓";
	margin-right: 0.45em;
	color: var(--sb-gold-text);
	font-weight: 700;
}
.sb-promises a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.single-product .sb-promises { flex-direction: column; margin: 1.5em 0; }

/* Barre de tri : le compteur « Affichage de 1–12 sur 14 » n'aide pas à acheter */
.woocommerce-result-count { display: none; }

/* Cartes produit */
body .woocommerce ul.products li.product .astra-shop-thumbnail-wrap,
body.woocommerce ul.products li.product .astra-shop-thumbnail-wrap {
	overflow: hidden;
	border-radius: 12px;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.woocommerce ul.products li.product .astra-shop-thumbnail-wrap img { transition: transform 0.4s ease; }
	.woocommerce ul.products li.product:hover .astra-shop-thumbnail-wrap img { transform: scale(1.04); }
}
.woocommerce ul.products li.product .woocommerce-loop-product__title { margin-bottom: 0.25em; }
.woocommerce ul.products li.product .price del,
.woocommerce div.product p.price del { color: var(--sb-muted); font-weight: 400; opacity: 1; }
.woocommerce ul.products li.product .price ins,
.woocommerce div.product p.price ins { text-decoration: none; }

/* Badge promo noir et or */
body .woocommerce .ast-onsale-card,
body.woocommerce .ast-onsale-card,
.woocommerce span.onsale {
	background: var(--sb-ink);
	color: var(--sb-gold);
	font-weight: 600;
}

/* Boutons : casse normale, une seule ligne, toute la largeur de la carte */
body .woocommerce a.button,
body .woocommerce button.button,
body.woocommerce a.button,
body.woocommerce button.button,
body.woocommerce-page a.button,
body.woocommerce-page button.button {
	text-transform: none;
	letter-spacing: 0;
	font-weight: 600;
}
body .woocommerce ul.products li.product .button,
body.woocommerce ul.products li.product .button {
	display: block;
	width: 100%;
	text-align: center;
	white-space: nowrap;
	padding: 0.75em 0.5em;
}
@media (max-width: 544px) {
	body .woocommerce ul.products li.product .button,
	body.woocommerce ul.products li.product .button { font-size: 14px; }
}

/* Fiche produit : formulaire d'avis plus discret */
body.woocommerce-js #reviews #review_form {
	border: 0;
	padding: 0;
}

/* Bouton WhatsApp flottant */
.sb-whatsapp {
	position: fixed;
	left: 16px;
	bottom: calc(16px + env(safe-area-inset-bottom));
	z-index: 98;
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--sb-whatsapp);
	color: #fff;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
	transition: transform 0.2s ease;
}
.sb-whatsapp:hover,
.sb-whatsapp:focus-visible { color: #fff; transform: scale(1.06); }

/* Fiche produit : bouton d'achat principal bien visible, WhatsApp au même gabarit */
.single-product div.product form.cart:not(.variations_form),
.single-product div.product .woocommerce-variation-add-to-cart {
	display: flex;
	gap: 0.75em;
	align-items: stretch;
}
.single-product div.product form.cart .button {
	flex: 1;
	max-width: 22em;
	padding: 0.9em 1.5em;
	font-size: 1.05em;
}
.single-product .evowap_btn {
	width: 100%;
	max-width: calc(22em + 4.5em);
	justify-content: center;
	border-radius: 999px !important;
	box-shadow: none !important;
}
.single-product div.product .woocommerce-product-details__short-description { color: var(--sb-muted); }

/* Tri : vrai champ lisible */
.woocommerce .woocommerce-ordering select {
	padding: 0.55em 2.5em 0.55em 1.1em;
	border: 1px solid #ddd;
	border-radius: 999px;
	background-color: #fff;
	color: var(--sb-ink);
}

/* FAQ : l'accordéon impose « Open Sans », jamais chargée (rendu en Times) → police du site */
body #wpsm_accordion_865 .wpsm_panel-title a,
body #wpsm_accordion_865 .wpsm_panel-body {
	font-family: 'Work Sans', sans-serif !important;
}

@media (max-width: 544px) {
	.sb-whatsapp { width: 48px; height: 48px; left: 12px; }
	.sb-whatsapp svg { width: 24px; height: 24px; }
}

/* FAQ : le bloc pleine largeur qui contient l'accordéon (uagb-block-1f5598a8, page FAQ) n'a aucune marge :
   titre collé à la photo, et au bord de l'écran sur mobile. */
body .wp-block-uagb-container.uagb-block-1f5598a8 {
	padding-top: 2.5em;
	padding-bottom: 3em;
}
/* Jusqu'à 1240 px (conteneur Astra de 1200 px + 2 × 20 px) le bloc touche les bords. */
@media (max-width: 1240px) {
	body .wp-block-uagb-container.uagb-block-1f5598a8 {
		padding-left: 20px;
		padding-right: 20px;
	}
}

/* ---------- Couleurs lisibles : jaune réservé aux fonds et aux accents ---------- */

/* Menu ordinateur : page active et survol en noir, soulignés d'or (en-tête blanc uniquement) */
@media (min-width: 922px) {
	body:not(.ast-theme-transparent-header) .ast-builder-menu-1 .menu-item.current-menu-item > .menu-link,
	body:not(.ast-theme-transparent-header) .ast-builder-menu-1 .current-menu-ancestor > .menu-link,
	body:not(.ast-theme-transparent-header) .ast-builder-menu-1 .menu-item:hover > .menu-link {
		color: var(--sb-ink);
		text-decoration: underline;
		text-decoration-color: var(--sb-gold);
		text-decoration-thickness: 2px;
		text-underline-offset: 10px;
	}
}

/* En-tête mobile : bouton « Menus » et icône panier en noir, bordure or conservée */
body:not(.ast-theme-transparent-header) [data-section="section-header-mobile-trigger"] .ast-button-wrap .ast-mobile-menu-trigger-outline { color: var(--sb-ink); }
body:not(.ast-theme-transparent-header) [data-section="section-header-mobile-trigger"] .ast-button-wrap .mobile-menu-toggle-icon .ast-mobile-svg { fill: var(--sb-ink); }
/* Libellé « Menus » : 7 px en jaune réglé dans le thème → lisible */
[data-section="section-header-mobile-trigger"] .ast-button-wrap .mobile-menu-wrap .mobile-menu { font-size: 11px; font-weight: 600; letter-spacing: 0.04em; white-space: nowrap; }
body:not(.ast-theme-transparent-header) [data-section="section-header-mobile-trigger"] .ast-button-wrap .mobile-menu-wrap .mobile-menu { color: var(--sb-ink); }
body:not(.ast-theme-transparent-header) .ast-site-header-cart .ast-cart-menu-wrap,
body:not(.ast-theme-transparent-header) .ast-site-header-cart .ast-addon-cart-wrap,
body:not(.ast-theme-transparent-header) .ast-site-header-cart .ast-woo-header-cart-info-wrap { color: var(--sb-ink); }

/* Mini-panier : bouton « Voir le panier » (contour) en noir */
body .ast-site-header-cart .woocommerce-mini-cart__buttons a.button:not(.checkout) { color: var(--sb-ink); }

/* Pied de page : liens en noir, or foncé au survol */
body #astra-footer-menu .menu-item > a { color: var(--sb-ink); }
body #astra-footer-menu .menu-item:hover > a,
body #astra-footer-menu .menu-item.current-menu-item > a { color: var(--sb-gold-text); }

/* Bandeau noir du bas : le jaune vif y est lisible (10:1), on le garde */
body .site-below-footer-wrap a,
body .ast-footer-copyright a { color: var(--sb-gold); }

/* Fil d'Ariane et astérisques juste sous le seuil */
.woocommerce .woocommerce-breadcrumb,
.woocommerce .woocommerce-breadcrumb a { color: var(--sb-muted); }
body abbr.required,
body span.required { color: #c00 !important; }

/* Bouton « Commandez via whatsapp » : vert foncé, texte blanc lisible */
body .evowap_btn,
body .evowap_btn:hover { background-color: var(--sb-whatsapp) !important; color: #fff !important; }

/* Pagination (si le catalogue dépasse 24 produits) : page courante sur fond jaune, texte noir */
body.woocommerce nav.woocommerce-pagination ul li span.current {
	background: var(--sb-gold);
	border-color: var(--sb-gold);
	color: var(--sb-ink);
}

/* Formulaires : Astra colore les libellés avec --ast-global-color-2, qui est blanc dans cette palette
   → « Identifiant », « Mot de passe », champs d'avis… invisibles. */
body label,
body legend { color: var(--sb-ink); }

/* Petits titres au-dessus des sections (« Nos offres exclusives », « 01. »…) : la palette les rendait blancs
   sur fond blanc. Seulement ceux posés sur fond clair (pages Notre marque, Services, À propos). */
body .uagb-block-a63b6bfe .uagb-ifb-title-prefix,
body .uagb-block-62734ee7 .uagb-ifb-title-prefix,
body .uagb-block-954c3c53 .uagb-ifb-title-prefix,
body .uagb-block-c1796f0d .uagb-ifb-title-prefix,
body .uagb-block-812031ae .uagb-ifb-title-prefix,
body .uagb-block-518dc936 .uagb-ifb-title-prefix,
body .uagb-block-604ec268 .uagb-ifb-title-prefix,
body .uagb-block-10403128 .uagb-ifb-title-prefix,
body .uagb-block-a485eae5 .uagb-ifb-title-prefix,
body .uagb-block-619321b6 .uagb-ifb-title-prefix {
	color: var(--sb-gold-text) !important;
}

/* Commande : le pays n'a plus qu'une valeur possible (Togo) → champ masqué ; la valeur reste envoyée */
#billing_country_field:has(select.country_to_state--single),
#shipping_country_field:has(select.country_to_state--single) { display: none !important; }

/* Contenance */
.single-product .sb-contenance { margin: -0.4em 0 1em; color: var(--sb-muted); }
.single-product .sb-contenance strong { color: var(--sb-ink); font-weight: 600; }
.woocommerce ul.products li.product .sb-contenance-card { display: block; margin: -0.15em 0 0.3em; font-size: 0.85em; color: var(--sb-muted); }
