/**
 * STOREGSM.ma — charte graphique (Navy + Orange)
 * Typo : Poppins (titres, prix, boutons) · Inter (texte, menus)
 */

:root {
	/* Brand */
	--primary: #0b1f4b;
	--primary-light: #173a70;
	--accent: #ff6b00;

	/* Text */
	--text-primary: #111827;
	--text-secondary: #6b7280;

	/* Backgrounds */
	--background: #ffffff;
	--background-light: #f3f4f6;
	--background-blue: #eff5ff;
	--background-orange: #fff1e8;

	/* Borders */
	--border: #e5e7eb;

	/* Status */
	--success: #16a34a;
	--danger: #dc2626;

	/* Aliases thème */
	--storegsm-font-heading: "Poppins", system-ui, sans-serif;
	--storegsm-font-body: "Inter", system-ui, sans-serif;
}

/* ——— Base ——— */
body {
	font-family: var(--storegsm-font-body);
	color: var(--text-primary);
	background-color: var(--background);
}

h1,
h2,
h3,
h4,
h5,
h6,
.product_title,
.woocommerce-loop-product__title,
.elementor-heading-title {
	font-family: var(--storegsm-font-heading);
	color: var(--primary);
	font-weight: 600;
}

p,
.entry-content,
.woocommerce-product-details__short-description {
	color: var(--text-primary);
}

.site-content {
	background-color: var(--background);
}

/* ——— Header & navigation ——— */
#masthead.site-header,
.handheld-header,
.site-header.header-v1 {
	background-color: var(--primary) !important;
	border-bottom: 3px solid var(--accent);
}

#masthead a,
.handheld-header a,
.primary-navigation a,
.handheld-navigation a,
.site-header .navbar-nav a {
	color: #fff !important;
}

.primary-navigation a:hover,
.handheld-navigation a:hover,
#masthead a:hover {
	color: var(--accent) !important;
}

/* Sous-menus desktop (fond blanc — ne pas hériter du texte blanc header) */
#masthead .dropdown-menu a,
#masthead .departments-menu-dropdown a,
#masthead .yamm .dropdown-menu a,
.site-header .dropdown-menu a,
.site-header .departments-menu-dropdown a {
	color: var(--primary) !important;
}

#masthead .dropdown-menu a:hover,
#masthead .departments-menu-dropdown a:hover,
.site-header .dropdown-menu a:hover,
.site-header .departments-menu-dropdown a:hover {
	color: var(--accent) !important;
}

.handheld-navigation .navbar-toggler {
	background: var(--primary-light) !important;
	color: #fff !important;
	box-shadow: none !important;
}

/* ——— Footer ——— */
.site-footer.footer-v1 {
	background-color: var(--primary) !important;
	color: rgba(255, 255, 255, 0.92);
	border-top: 3px solid var(--accent);
}

.site-footer a {
	color: #fff;
}

.site-footer a:hover {
	color: var(--accent);
}

/* ——— Prix & promos ——— */
.woocommerce-Price-amount,
.price,
.amount {
	font-family: var(--storegsm-font-heading);
	font-weight: 600;
	color: var(--primary);
}

ins .woocommerce-Price-amount,
.sale .woocommerce-Price-amount,
.price ins {
	color: var(--accent);
}

.onsale,
.techmarket-sale-flash,
.product .onsale,
span.onsale {
	background-color: var(--accent) !important;
	color: var(--primary) !important;
	font-family: var(--storegsm-font-heading);
	font-weight: 700;
	border-radius: 4px;
}

/* ——— Boutons (texte navy sur orange — WCAG) ——— */
.button,
button.button,
input[type="submit"],
.add_to_cart_button,
.single_add_to_cart_button,
.checkout-button,
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.wc-forward {
	background-color: var(--accent) !important;
	color: var(--primary) !important;
	border: 2px solid var(--accent) !important;
	font-family: var(--storegsm-font-heading) !important;
	font-weight: 600 !important;
	border-radius: 6px !important;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.button:hover,
.add_to_cart_button:hover,
.single_add_to_cart_button:hover,
.checkout-button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover {
	background-color: var(--primary) !important;
	color: #fff !important;
	border-color: var(--primary) !important;
}

.button.alt,
.checkout-button {
	background-color: var(--accent) !important;
	color: var(--primary) !important;
}

/* Boutons secondaires */
.woocommerce a.button.wc-backward,
.button.wc-backward {
	background-color: transparent !important;
	color: var(--primary) !important;
	border-color: var(--primary) !important;
}

/* ——— Cartes produits & sections ——— */
.products .product,
ul.products li.product {
	background: var(--background);
	border: 1px solid var(--border);
	border-radius: 8px;
}

.storegsm-trust-bar {
	background: var(--background-blue);
	border-bottom: 1px solid var(--border);
	color: var(--text-primary);
	font-family: var(--storegsm-font-body);
}

.storegsm-trust-bar__list li::before {
	color: var(--success);
}

/* ——— Formulaires ——— */
input[type="text"],
input[type="email"],
input[type="search"],
input[type="tel"],
input[type="password"],
textarea,
select,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
	border: 1px solid var(--border);
	border-radius: 6px;
	color: var(--text-primary);
}

input:focus,
textarea:focus,
select:focus {
	border-color: var(--primary-light);
	outline: 2px solid var(--background-blue);
	outline-offset: 1px;
}

/* ——— Fil d'Ariane & liens contenu ——— */
.rank-math-breadcrumb a,
.entry-content a:not(.button):not(.add_to_cart_button) {
	color: var(--primary-light);
}

.entry-content a:not(.button):hover {
	color: var(--accent);
}

/* ——— Stock ——— */
.stock.in-stock {
	color: var(--success);
}

.stock.out-of-stock {
	color: var(--danger);
}

/* ——— Bloc SEO accueil ——— */
.storegsm-seo-intro {
	background: var(--background-light);
	border-top: 1px solid var(--border);
	color: var(--text-primary);
}

.storegsm-seo-intro h2 {
	color: var(--primary);
}

.storegsm-seo-intro a {
	color: var(--primary-light);
	font-weight: 600;
}

.storegsm-seo-intro a strong {
	color: var(--primary);
}

/* ——— Logo header mobile (centré) ——— */
@media (max-width: 767px) {
	.handheld-header > .row:first-child {
		display: grid;
		grid-template-columns: 1fr auto 1fr;
		align-items: center;
		min-height: 0;
		padding: 6px 0;
	}

	.handheld-header .site-branding {
		grid-column: 2;
		justify-self: center;
		max-width: none !important;
		width: auto !important;
		flex: 0 0 auto !important;
		padding: 0 10px !important;
		text-align: center;
	}

	.handheld-header .handheld-header-links {
		grid-column: 3;
		justify-self: end;
		padding-right: 10px;
	}

	.handheld-header .custom-logo-link {
		display: inline-block;
		max-width: none !important;
	}

	.handheld-header .custom-logo {
		max-height: 80px !important;
		width: auto !important;
		height: auto !important;
		max-width: min(220px, 62vw) !important;
		margin: 0 auto;
		display: block;
	}

}
