/*
Theme Name: Microshopping Child
Theme URI: https://mshopg.com
Description: Presentation-only child theme for Microshopping based on the WoodMart parent theme. Business logic lives in the lglg-microshopping-core plugin, never in this theme.
Author: Logialog
Author URI: https://logialog.com
Template: woodmart
Version: 0.1.0
Text Domain: microshopping-child
*/

/* Microshopping child theme styles. Keep presentation-only. */

/* ==========================================================================
   Brand tokens (Phase 3A) — code-level fallback so CSS vars survive a
   Theme Settings reset. Primary values are set via Theme Settings
   (primary-color / secondary-color); these are the structural defaults.
   ========================================================================== */
:root {
	--ms-primary: #0B6B4F;   /* emerald — 6.50:1 on white (AA) */
	--ms-accent:  #C9A227;   /* gold — decorative/on-dark only */
	--ms-gold-ink: #8A6D1D;  /* gold as text on white — 4.90:1 (AA) */
}

/* ==========================================================================
   Shop / archive / card (Phase 3A, structural; colors are placeholders).
   ========================================================================== */

/* Family/Gender quick-nav pill row (above the shop grid). */
.lglg-quick-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0 0 20px;
}

.lglg-quick-nav__label {
	font-weight: 600;
	font-size: 13px;
	margin-inline-start: 12px;
}

.lglg-quick-nav__label:first-of-type {
	margin-inline-start: 0;
}

.lglg-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	padding: 0 14px;
	border: 1px solid var(--wd-border-color, #e5e5e5);
	border-radius: 999px;
	background: transparent;
	color: inherit;
	font-size: 13px;
	line-height: 1;
	text-decoration: none;
	transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.lglg-pill:hover,
.lglg-pill:focus-visible {
	border-color: var(--wd-primary-color, #3a3a3a);
	color: var(--wd-primary-color, #3a3a3a);
}

.lglg-pill.is-active {
	background: var(--wd-primary-color, #3a3a3a);
	border-color: var(--wd-primary-color, #3a3a3a);
	color: #fff;
}

.lglg-pill--all {
	font-weight: 600;
}

/* Card meta line (family · gender, under the product name, above price). */
.lglg-product-meta-line {
	margin: 0 0 6px;
	font-size: 12px;
	line-height: 1.4;
	color: var(--wd-text-color-muted, #767676);
}

/* Empty archive state. */
.lglg-empty-state {
	max-width: 480px;
	margin: 0 auto;
	padding: 40px 20px;
	text-align: center;
}

.lglg-empty-state__actions {
	margin-top: 20px;
}

.lglg-empty-state__reset {
	font-weight: 600;
}

.lglg-empty-state__search {
	margin-top: 24px;
}

/* ==========================================================================
   Single product — structural layout (Phase 3A, no visual polish).
   ========================================================================== */

/* Compact facts strip in the summary column. */
.mshopg-facts-strip {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
	font-size: 0.85em;
	color: var(--wd-secondary-color, #777);
}
.mshopg-facts-sep {
	opacity: 0.6;
}

/* Single breadcrumb at the top of the summary column. */
.mshopg-single-breadcrumb {
	font-size: 0.8em;
	color: var(--wd-secondary-color, #777);
	margin-bottom: 0.75rem;
}

/* Note pyramid (summary preview + full tab). */
.mshopg-note-pyramid {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	margin: 0.75rem 0;
}
.mshopg-note-tier {
	display: flex;
	gap: 0.6rem;
	align-items: baseline;
}
.mshopg-note-tier-label {
	flex: 0 0 auto;
	min-width: 3.5rem;
	font-weight: 600;
	color: var(--wd-title-color, #333);
}
.mshopg-note-tier-notes {
	color: var(--wd-text-color, #555);
}

/* Fragrance facts grid (Caractéristiques tab). */
.mshopg-facts-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem 2rem;
}
.mshopg-fact {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}
.mshopg-fact-label {
	font-size: 0.8em;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: var(--wd-secondary-color, #777);
}
.mshopg-fact-value {
	color: var(--wd-text-color, #333);
}
@media (max-width: 767px) {
	.mshopg-facts-grid {
		grid-template-columns: 1fr;
	}
}

/* Muted microcopy (payment, SKU) + stock spacing. */
.mshopg-bank-transfer,
.mshopg-sku-meta {
	font-size: 0.8em;
	color: var(--wd-secondary-color, #777);
}
.mshopg-stock {
	margin: 0.5rem 0;
}

/* Public inspiration line (only when legal-gated render is wired in). */
.mshopg-public-inspiration {
	font-size: 0.85em;
	color: var(--wd-secondary-color, #777);
	margin-top: 0.5rem;
}

/* ==========================================================================
   Homepage — Phase 3A structural styles.
   Custom classes are applied by the editor via each block's
   "Additional CSS class(es)" field.
   ========================================================================== */

/* ---- [S1] Trust strip ---- */
.mshg-trust-strip {
	border-bottom: 1px solid var(--wd-divider-color, rgba(0,0,0,.07));
}
.mshg-trust-strip .wd-list-content {
	font-size: .85rem;
}

/* ---- [S2] Hero ---- */
.mshg-hero { text-align: center; }
.mshg-hero-title { max-width: 22em; margin-inline: auto; }
.mshg-hero-sub   { max-width: 34em; margin-inline: auto; }

/* ---- Tiles (discovery / families / gender) ---- */
.mshg-tile {
	display: block;
	height: 100%;
	border-radius: var(--wd-brd-radius, 8px);
	transition: box-shadow .2s ease, transform .2s ease;
}
.mshg-tile:hover { transform: translateY(-2px); }
/* Whole tile is the link — keep it tappable, no dead padding */
.mshg-tile a,
.mshg-tile .wd-infobox-link { display: flex; flex-direction: column; height: 100%; }

/* ---- [S4] Families: 2-col grid on mobile (5-col desktop is set
   via column colWidth in the editor) ---- */
@media (max-width: 768px) {
	.mshg-families .wd-row > .wd-col { flex-basis: 50% !important; max-width: 50%; }
}

/* ---- [S6] Guide / reassurance ---- */
.mshg-guide .wd-list-content { line-height: 1.5; }

/* ---- Tap targets (architecture §9) ---- */
.mshg-tile,
.mshg-hero-cta,
.mshg-guide .wd-accordion-title {
	min-height: 44px;
}

/* ==========================================================================
   Navigation / mobile / accessibility (Phase 3A).
   Presentation only. Scoped to WoodMart header/product-card classes.
   ========================================================================== */

/* Mobile header — search icon in the sticky row, cart as persistent bag icon. */
.whb-sticky-header .wd-header-mobile-nav,
.wd-header-mobile-nav .wd-header-search,
.wd-header-mobile-nav .wd-header-cart,
.wd-header-mobile-nav .wd-header-cart .wd-tools-icon {
	transform: none;
	opacity: 1;
}

.wd-header-mobile-nav .wd-header-search .wd-tools-text,
.wd-header-mobile-nav .wd-header-cart .wd-tools-text {
	display: none;
}

@media (min-width: 769px) {
	.wd-header-mobile-nav .wd-header-search .wd-tools-text,
	.wd-header-mobile-nav .wd-header-cart .wd-tools-text {
		display: none;
	}
}

/* Tap targets >= 44px. */
.wd-header-mobile-nav a,
.wd-header-mobile-nav .wd-header-search a,
.wd-header-mobile-nav .wd-header-cart a,
.wd-header-search a,
.wd-header-cart a {
	min-height: 44px;
	min-width: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.wd-header-mobile-nav .wd-tools-icon,
.wd-header-search .wd-tools-icon,
.wd-header-cart .wd-tools-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
}

.wd-off-canvas .wd-nav > li > a,
.wd-off-canvas .wd-dropdown-menu a,
.wd-dropdown-menu.wd-design-default .wd-nav > li > a {
	min-height: 44px;
	display: flex;
	align-items: center;
}

.wd-hover-base .wd-bottom-actions .wd-action-btn > a,
.wd-hover-base .wd-add-btn > a,
.wd-hover-base .wd-more-desc-btn {
	min-width: 44px;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* Keyboard / AT parity for hover-reveal card content. */
.wd-hover-base:focus-within .wd-product-card-hover,
.wd-hover-base:focus-within .wd-bottom-actions,
.wd-hover-base:focus-within .wd-product-card-hover .hover-content {
	opacity: 1;
	visibility: visible;
	transform: none;
}

/* Visible focus indicators (keyboard-first). */
.wd-header-mobile-nav a:focus-visible,
.wd-header-search a:focus-visible,
.wd-header-cart a:focus-visible,
.wd-off-canvas .wd-nav > li > a:focus-visible,
.wd-hover-base .wd-product-img-link:focus-visible,
.wd-hover-base .wd-bottom-actions a:focus-visible,
.wd-hover-base .wd-more-desc-btn:focus-visible {
	outline: 2px solid var(--wd-primary-color, #83b735);
	outline-offset: 2px;
}

/* Skip-link / screen-reader text becomes visible when focused. */
.screen-reader-text:focus {
	clip: auto !important;
	clip-path: none;
	height: auto;
	width: auto;
	overflow: visible;
	position: absolute;
	left: 0.5em;
	top: 0.5em;
	z-index: 100000;
	padding: 0.75em 1em;
	background: #fff;
	color: #111;
}

/* Off-canvas drawer + overlay. */
.wd-off-canvas,
.wd-side-hidden {
	z-index: 500;
}

.wd-close-side.wd-fill {
	z-index: 499;
}

.wd-off-canvas .wd-close-side,
.wd-off-canvas .wd-nav .wd-nav-opener,
.wd-off-canvas .wd-nav .wd-nav-opener a {
	min-width: 44px;
	min-height: 44px;
}

/* Reduced motion. */
@media (prefers-reduced-motion: reduce) {
	.wd-hover-base .wd-product-card-hover,
	.wd-hover-base .wd-bottom-actions,
	.wd-off-canvas,
	.wd-header-mobile-nav .wd-header-search,
	.wd-header-mobile-nav .wd-header-cart {
		transition: none !important;
		animation: none !important;
	}
}


/* ==========================================================================
   Homepage Section 2 — "Choisissez votre univers" (gender discovery)
   Premium editorial fragrance-discovery tiles (3 equal vertical tiles).
   Inserted after the frozen Hero (f3205ae), before "New In" (5540c7a).
   Presentation only; no WoodMart parent edits; no JS; no carousel.

   PLACEHOLDER imagery — awaiting approved MSHOPG gender imagery.
   The tile "image" is a CSS art-direction placeholder (layered gradients),
   not photography. When approved owned imagery is available, replace the
   ::before background in each .msgp-gender-entry--* modifier with the real
   asset and remove this notice. No third-party/branded assets are used.
   ========================================================================== */

/* Section band: off-white, compact vertical rhythm (reduced footprint). */
.e-con.msgp-gender-section {
	background-color: #f6f4ef;
	padding-top: 48px;
	padding-bottom: 48px;
}

/* Section heading (H2) — stronger editorial presence. */
.msgp-gender-section .title-wrapper {
	margin-bottom: 2px;
}

.msgp-gender-section .woodmart-title-container {
	font-size: 42px;
	line-height: 1.08;
	font-weight: 600;
	letter-spacing: -0.01em;
	margin-bottom: 0;
	color: #1c1c1c;
}

/* Restrained gold accent rule (decorative only — never gold body text). */
.msgp-gender-section .woodmart-title-container::after {
	content: "";
	display: block;
	width: 56px;
	height: 2px;
	margin: 6px auto 0;
	background-color: var(--ms-accent, #c9a227);
}

/* Intro line — readable, generous measure. */
.msgp-gender-section .wd-text-block {
	margin: 0 auto 8px;
	max-width: 620px;
	text-align: center;
	font-size: 17px;
	line-height: 1.6;
	color: #4a4a4a;
}

/* Entries grid: one row, three equal columns on desktop. */
.e-con.msgp-gender-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	max-width: 1120px;
	margin-inline: auto;
}

/* Entry tile: compact editorial image treatment (4:5, premium vertical). */
.msgp-gender-entry {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 6 / 7;
	border: 1px solid rgba(17, 17, 17, 0.06);
	border-radius: 4px;
	background-color: #0a2b21;
}

/* PLACEHOLDER image layer — premium art-direction gradient (see header note). */
.msgp-gender-entry::before {
	content: "";
	position: absolute;
	inset: -2px; /* slight bleed so scale(1.02) never reveals edges */
	z-index: 0;
	background:
		radial-gradient(120% 80% at 80% 6%, rgba(201, 162, 39, 0.20) 0%, rgba(201, 162, 39, 0) 52%),
		radial-gradient(150% 120% at 12% 108%, rgba(11, 107, 79, 0.55) 0%, rgba(11, 107, 79, 0) 58%),
		linear-gradient(170deg, #1c332b 0%, #0c5a43 50%, #041c14 100%);
	transform-origin: center;
	transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1), filter 0.5s ease;
}

.msgp-gender-entry--homme::before {
	background:
		radial-gradient(120% 80% at 80% 6%, rgba(201, 162, 39, 0.20) 0%, rgba(201, 162, 39, 0) 52%),
		radial-gradient(150% 120% at 12% 108%, rgba(11, 107, 79, 0.55) 0%, rgba(11, 107, 79, 0) 58%),
		linear-gradient(170deg, #1c332b 0%, #0c5a43 50%, #041c14 100%);
}

.msgp-gender-entry--femme::before {
	background:
		radial-gradient(120% 80% at 80% 6%, rgba(201, 162, 39, 0.22) 0%, rgba(201, 162, 39, 0) 52%),
		radial-gradient(150% 120% at 12% 108%, rgba(120, 54, 84, 0.50) 0%, rgba(120, 54, 84, 0) 58%),
		linear-gradient(170deg, #2f2530 0%, #5a3347 45%, #1b111f 100%);
}

.msgp-gender-entry--unisexe::before {
	background:
		radial-gradient(120% 80% at 80% 6%, rgba(201, 162, 39, 0.20) 0%, rgba(201, 162, 39, 0) 52%),
		radial-gradient(150% 120% at 12% 108%, rgba(11, 107, 79, 0.45) 0%, rgba(11, 107, 79, 0) 58%),
		linear-gradient(170deg, #1d3138 0%, #14545c 45%, #0b2128 100%);
}

/* Dark overlay — bottom-anchored so the ivory label always reads. */
.msgp-gender-entry::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(
		to top,
		rgba(3, 14, 10, 0.78) 0%,
		rgba(3, 14, 10, 0.34) 48%,
		rgba(3, 14, 10, 0.10) 100%
	);
}

/* Content (label + descriptor) sits INSIDE the image, bottom-left. */
.msgp-gender-entry .info-box-content {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	padding: 30px 30px 32px;
}

/* Category label — large, elegant, ivory on dark. */
.msgp-gender-entry .info-box-title {
	font-size: 30px;
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: 0.01em;
	margin: 0 0 8px;
	color: #fdfbf6;
}

/* Small descriptor under label — editorial nav copy, not product data. */
.msgp-gender-entry .info-box-inner,
.msgp-gender-entry .info-box-inner p {
	margin: 0;
	color: rgba(253, 251, 246, 0.82);
	font-size: 12.5px;
	font-weight: 500;
	line-height: 1.6;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

/* Restrained hover: subtle image scale + gentle darkening. */
.msgp-gender-entry:hover::before {
	transform: scale(1.02);
	filter: brightness(0.88);
}

/* Whole tile is the link; keep it above the label for full-card click. */
.msgp-gender-entry a.wd-info-box-link {
	z-index: 3;
}

/* Visible keyboard focus ring on the whole tile (high contrast on dark). */
.msgp-gender-entry a.wd-info-box-link:focus-visible {
	outline: 3px solid #fdfbf6;
	outline-offset: -3px;
	border-radius: 4px;
}

/* Tablet: keep three columns, tighter gap. */
@media (max-width: 1024px) {
	.e-con.msgp-gender-grid {
		gap: 18px;
	}

	.msgp-gender-entry .info-box-content {
		padding: 24px 20px 26px;
	}

	.msgp-gender-entry .info-box-title {
		font-size: 24px;
	}
}

/* Mobile: single-column vertical stack, full-width entries, no overflow. */
@media (max-width: 768.98px) {
	.e-con.msgp-gender-section {
		padding-top: 44px;
		padding-bottom: 44px;
	}

	.e-con.msgp-gender-grid {
		grid-template-columns: 1fr;
		gap: 15px;
	}

	.msgp-gender-section .woodmart-title-container {
		font-size: 30px;
	}

	.msgp-gender-section .wd-text-block {
		margin-bottom: 20px;
		font-size: 16px;
	}

	.msgp-gender-entry {
		aspect-ratio: 5 / 2;
		min-height: 128px;
	}

	.msgp-gender-entry .info-box-content {
		padding: 24px 22px 26px;
	}

	.msgp-gender-entry .info-box-title {
		font-size: 26px;
	}
}

/* Reduced motion. */
@media (prefers-reduced-motion: reduce) {
	.msgp-gender-entry::before {
		transition: none;
	}

	.msgp-gender-entry:hover::before {
		transform: none;
		filter: none;
	}
}

/* ==========================================================================
   Homepage Section 3 — "Nouveautés" (static product grid)
   4 columns desktop / 2 columns mobile. No carousel / slider / autoplay / JS —
   the grid is driven entirely by WoodMart's native products element
   (wd_products, layout=grid, --wd-col-lg:4 / --wd-col-md:2 / --wd-col-sm:2)
   configured in the Section 3 Elementor data. The WoodMart/Elementor Products
   widget owns the product cards — no template override, no custom loop markup,
   no parent-theme change. This file only adds scoped presentation under
   .msgp-products-section (container 5540c7a).

   PREMIUM PERFUME-BOUTIQUE CARD (5.3.2.1):
   The Section 3 wd_products widget renders WoodMart's loop-builder card
   (custom hover block 1160, `.wd-loop-builder-on` / `.wd-loop-item-wrap-1160`),
   NOT the legacy `.product-element-top` / `.wd-product-card-hover` structure.
   The card is flattened CSS-only into a cream outer card + pure-white square
   image panel + stacked content (badge → title → bottom-anchored price) — no
   PHP/JS and no template override. Real rendered card DOM (verified read-only
   against the production server):
     • grid item (li)  = .wd-product.wd-col
     • card wrapper    = .wd-product-wrapper      (flex column)
     • media box       = .wd-loop-prod-thumb       (flex, holds image + content)
     • image link      = .wd-product-img-link      (<a>, wraps the <img>)
     • content block   = .wd-loop-prod-thumb > .wp-block-wd-container
                         (title+price; absolute overlay by default)
       ├ title block   = .wd-loop-prod-title.wd-entities-title
       └ price block   = .wp-block-wd-container.wd-transform → .wd-loop-prod-price .price
     • gender meta     = .wd-el-hook .lglg-product-meta-line (after-title hook)
     • wishlist heart  = .wd-wishlist-btn
     • floating cart   = .wd-add-btn-wrapp
     • gallery arrows  = .wd-product-grid-slider-nav
     • gallery slides  = .wd-product-grid-slider
   STABLE SELECTORS (5.3.2.4): the content wrapper and price container are
   WoodMart `wd/container` blocks rendered with the stable base class
   `wp-block-wd-container` (plus `wd-dir-col`). The content wrapper is the
   only `wp-block-wd-container` that is a direct child of `.wd-loop-prod-thumb`
   (the image link is an `<a>`, not a container), so
   `.wd-loop-prod-thumb > .wp-block-wd-container` targets it uniquely. The
   price container is the only `wp-block-wd-container.wd-transform` inside the
   card (the content wrapper and title container carry no `wd-transform`), so
   `.wd-loop-prod-thumb .wp-block-wd-container.wd-transform` targets it
   uniquely. These replace the previous instance-specific blockId hash classes
   (`.wd-06832d7b`, `.wd-5340ca53`) which regenerated on layout re-save and
   would silently break the card. All scoped rules below target those real
   selectors. `!important` is used only where the loop-builder block CSS
   (`xts-blocks-1160.css`, loaded later in the document) or the Elementor page
   CSS (`elementor-post-14.css`) would otherwise win on specificity/order. The
   4/2 column counts and the wd_products widget itself are NOT modified.
   ========================================================================== */

/* Intro + grid share Section 2's 1120px measure (kept aligned). */
.msgp-products-section .title-wrapper,
.msgp-products-section .wd-products-element {
	max-width: 1120px;
	margin-inline: auto;
}

/* Section 3 bottom rhythm: the Elementor container (5540c7a) carries a
   120px bottom margin that leaves an oversized gap before the next section
   ("Shop by Olfactory Family"). Tighten to 60px — smoother flow, still
   breathing room. The next section itself is untouched. */
.msgp-products-section {
	margin-bottom: 60px !important;
}

/* Heading: restrained to Section 2's measure but slightly lighter so the
   "Nouveautés" title does not dominate the rest of the homepage (38px). */
.msgp-products-section .woodmart-title-container {
	font-weight: 600;
	line-height: 1.08 !important;
	letter-spacing: -0.01em;
	color: #1c1c1c;
	font-size: 38px !important;
}

/* Subtitle (after_title): muted, readable, clean separation from the grid.
   WoodMart's section-title markup gives the heading's .liner-continer wrapper a
   default 10px bottom margin (.wd-set-mb > *), so the heading→subtitle gap was
   12px (subtitle top) + 10px (wrapper) + line-box descent ≈ 24px. Reset the
   wrapper margin and hold the gap with the subtitle's own top margin only,
   targeting ~10–14px between the heading and subtitle. */
.msgp-products-section .liner-continer {
	margin-bottom: 0;
}

.msgp-products-section .title-after_title {
	margin: 10px 0 28px;
	font-size: 16px;
	line-height: 1.6;
	color: #6b6b6b;
}

/* ---- Grid rhythm + card shell ---- */

/* Equal-height cards: stretch the grid items so every cream card and its
   bottom-anchored price share one baseline. The 4/2 column counts stay on
   the wd_products widget (--wd-col-lg/md/sm) — only the gap is lifted into
   the 20–24px spec band. */
.msgp-products-section .wd-products {
	align-items: stretch !important;
}

.msgp-products-section .wd-grid-g {
	--wd-gap-lg: 24px !important;
	--wd-gap-md: 20px !important;
	--wd-gap-sm: 20px !important;
	--wd-gap-xs: 20px !important;
}

.msgp-products-section .wd-product {
	display: flex;
	flex-direction: column;
	height: 100%;
}

/* Cream outer card. */
.msgp-products-section .wd-product .wd-product-wrapper {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	padding: 16px;
	background-color: #f6f4ef;
	border-radius: 5px;
	box-sizing: border-box;
}

/* Media box becomes an inner flex column: white image panel + content below. */
.msgp-products-section .wd-product .wd-loop-prod-thumb {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	width: 100%;
}

/* Pure-white square image panel. Image inset reduced (5.3.2.2) from 12% to 3%
   so a tightly-framed perfume bottle fills ~85–90% of the panel height instead
   of floating as a small thumbnail. The source images additionally carry ~25%
   top whitespace — the panel padding alone cannot correct that; the originals
   remain untouched and any tighter framing is handled at the asset level. */
.msgp-products-section .wd-product .wd-product-img-link {
	position: relative;
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 1 / 1;
	padding: 3%;
	background-color: #ffffff;
	border-radius: 4px;
	box-sizing: border-box;
	overflow: hidden;
}

.msgp-products-section .wd-product .wd-product-img-link img {
	width: 100% !important;
	height: 100% !important;
	object-fit: contain;
	object-position: center;
}

/* ---- Card content: stacked badge → title → bottom-anchored price ---- */

/* Content block flows below the image panel (was an absolute overlay).
   Stable selector: the content wrapper is the only wp-block-wd-container that
   is a direct child of .wd-loop-prod-thumb (the image link is an <a>). */
.msgp-products-section .wd-product .wd-loop-prod-thumb > .wp-block-wd-container {
	position: static !important;
	top: auto !important;
	right: auto !important;
	bottom: auto !important;
	left: auto !important;
	order: 2;
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	justify-content: space-between;
	width: 100%;
	padding: 12px 4px 0 !important;
	pointer-events: auto !important;
}

/* Gender/type meta hook — reflowed above the title (flex order 1). */
.msgp-products-section .wd-product .wd-el-hook {
	position: static !important;
	top: auto !important;
	left: auto !important;
	order: 1;
	width: 100%;
}

/* Restrained pill badge (Homme / Femme / Unisexe / family · gender). */
.msgp-products-section .wd-product .lglg-product-meta-line {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0 0 10px !important;
	padding: 4px 10px;
	font-size: 11px !important;
	font-weight: 500 !important;
	line-height: 1.3 !important;
	letter-spacing: 0.06em !important;
	text-transform: none !important;
	color: #6a5f4a !important;
	background-color: #efece3;
	border: 1px solid rgba(106, 95, 74, 0.14);
	border-radius: 999px;
}

/* Product name — premium hierarchy, 1–2 lines, no clipping. */
.msgp-products-section .wd-product .wd-loop-prod-title {
	display: -webkit-box !important;
	-webkit-line-clamp: 2 !important;
	-webkit-box-orient: vertical !important;
	overflow: hidden !important;
	margin: 0;
	font-size: 16px !important;
	font-weight: 600 !important;
	line-height: 1.35 !important;
	letter-spacing: 0;
}

.msgp-products-section .wd-product .wd-entities-title a {
	color: #1c1c1c;
}

.msgp-products-section .wd-product .wd-entities-title a:hover {
	color: var(--ms-primary, #0b6b4f);
}

/* Price — anchored at card bottom, stable (no hover slide).
   Stable selector: the price container is the only wp-block-wd-container.wd-transform
   inside the card (content wrapper and title container carry no wd-transform). */
.msgp-products-section .wd-product .wd-loop-prod-thumb .wp-block-wd-container.wd-transform {
	--wd-transform-translateY: 0% !important;
	transform: none !important;
}

.msgp-products-section .wd-product .wd-loop-prod-price .price {
	font-size: 15px !important;
	font-weight: 600 !important;
	line-height: 1.3 !important;
	color: #1c1c1c !important;
}

/* ---- UI noise reduction (this section only) ---- */

/* Remove floating wishlist heart, floating add-to-cart icon, and the
   grid-gallery slider + its prev/next arrows. Actions remain available on
   the shop grid and single-product page. */
.msgp-products-section .wd-product .wd-wishlist-btn,
.msgp-products-section .wd-product .wd-add-btn-wrapp,
.msgp-products-section .wd-product .wd-product-grid-slider,
.msgp-products-section .wd-product .wd-product-grid-slider-nav {
	display: none !important;
}

/* ---- Desktop hover: subtle lift + soft shadow (nothing else) ---- */
@media (min-width: 1025px) {
	.msgp-products-section .wd-product .wd-product-wrapper {
		transition: transform 0.3s ease, box-shadow 0.3s ease;
	}

	.msgp-products-section .wd-product:hover .wd-product-wrapper {
		transform: translateY(-3px);
		box-shadow: 0 14px 30px rgba(28, 28, 28, 0.08);
	}
}

/* ---- Mobile: 2 columns, compact, no overflow ---- */
@media (max-width: 768.98px) {
	.msgp-products-section .woodmart-title-container {
		font-size: 28px !important;
	}

	.msgp-products-section {
		margin-bottom: 40px !important;
	}

	.msgp-products-section .title-after_title {
		margin: 8px 0 20px;
	}

	.msgp-products-section .wd-product .wd-product-wrapper {
		padding: 12px;
	}

	.msgp-products-section .wd-product .wd-product-img-link {
		padding: 4%;
	}

	.msgp-products-section .wd-product .wd-loop-prod-thumb > .wp-block-wd-container {
		padding: 10px 2px 0 !important;
	}

	.msgp-products-section .wd-product .lglg-product-meta-line {
		margin-bottom: 7px !important;
		padding: 3px 8px;
		font-size: 10px !important;
		letter-spacing: 0.05em !important;
	}

	.msgp-products-section .wd-product .wd-loop-prod-title {
		font-size: 13px !important;
		line-height: 1.3 !important;
	}

	.msgp-products-section .wd-product .wd-loop-prod-price .price {
		font-size: 13px !important;
	}
}

/* Reduced motion. */
@media (prefers-reduced-motion: reduce) {
	.msgp-products-section .wd-product .wd-product-wrapper {
		transition: none;
	}

	.msgp-products-section .wd-product:hover .wd-product-wrapper {
		transform: none;
		box-shadow: none;
	}
}

/* ==========================================================================
   Homepage Section 4 — "Familles olfactives" (10 family tiles → archives).
   Mirrors Section 2/3 language. Presentation only; no JS; no carousel.
   Tiles are wd_infobox widgets with whole-tile links to /famille-olfactive/<slug>/.
   ========================================================================== */

/* Section band: cream, compact vertical rhythm (reduced footprint). */
.e-con.msgp-families-section {
	background-color: #f6f4ef;
	padding-top: 40px;
	padding-bottom: 40px;
	margin-bottom: 48px !important; /* tighten the 120px Elementor margin, like §3 */
}

/* Section heading (H2) — editorial presence, centered as one unit with the
   gold rule underneath. Horizontal breathing room so it never hugs the edge. */
.msgp-families-section .woodmart-title-container {
	font-size: 42px;
	line-height: 1.08;
	font-weight: 600;
	letter-spacing: -0.01em;
	color: #1c1c1c;
	text-align: center;
	padding-inline: 20px;
}

/* Restrained gold accent rule (decorative only — never gold body text).
   Centered directly under the heading, consistent spacing. */
.msgp-families-section .woodmart-title-container::after {
	content: "";
	display: block;
	width: 56px;
	height: 2px;
	margin: 8px auto 0;
	background-color: var(--ms-accent, #c9a227);
}

/* Grid: 5-col desktop (10 = 5×2), matching §2's 1120px measure. */
.e-con.msgp-families-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 16px;
	max-width: 1120px;
	margin-inline: auto;
}

/* Tile: lighter-than-band surface, emerald name, whole-tile link.
   No hard border, no heavy shadow — a clean discovery tile, not a button. */
.msgp-family-entry {
	position: relative;
	display: block;
	min-height: 56px;
	border-radius: 5px;
	background-color: #fbfaf6;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.msgp-family-entry .info-box-content {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px 10px;
	text-align: center;
}

.msgp-family-entry .info-box-title {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: 0.01em;
	color: var(--ms-primary, #0b6b4f);
}

/* Whole tile is the link, above content for full-card click. */
.msgp-family-entry a.wd-info-box-link {
	z-index: 3;
}

.msgp-family-entry a.wd-info-box-link:focus-visible {
	outline: 3px solid var(--ms-primary, #0b6b4f);
	outline-offset: -3px;
	border-radius: 5px;
}

/* Desktop hover: subtle lift + very soft shadow (nothing else). */
@media (min-width: 1025px) {
	.msgp-family-entry:hover {
		transform: translateY(-2px);
		box-shadow: 0 8px 20px rgba(28, 28, 28, 0.06);
	}
}

/* Tablet: 3 columns (10th tile wraps). */
@media (max-width: 1024px) {
	.e-con.msgp-families-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 16px;
	}
}

/* Mobile: 2 columns, no overflow, reduced rhythm. */
@media (max-width: 768.98px) {
	.e-con.msgp-families-section {
		padding-top: 36px;
		padding-bottom: 36px;
		margin-bottom: 36px !important;
	}

	.msgp-families-section .woodmart-title-container {
		font-size: 36px;
	}

	.e-con.msgp-families-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 18px;
	}

	.msgp-family-entry {
		min-height: 76px;
	}

	.msgp-family-entry .info-box-content {
		padding: 16px 10px;
	}

	.msgp-family-entry .info-box-title {
		font-size: 15px;
	}
}

/* Reduced motion. */
@media (prefers-reduced-motion: reduce) {
	.msgp-family-entry {
		transition: none;
	}

	.msgp-family-entry:hover {
		transform: none;
		box-shadow: none;
	}
}

/* ==========================================================================
   Homepage Section 5 — marquee separator (sillage asset).
   Scoped to .msgp-marquee-section only. Replaces the old star SVG separator
   with the MICROSHOPPING sillage graphic (attachment 8908) rendered at a
   small separator scale (not a logo), vertically centered between words.
   Presentation only; no JS; marquee behavior/words/order untouched.
   ========================================================================== */

/* Separator image: small, vertically centered between the marquee words.
   The marquee item is already flex; center the img and keep it balanced.
   Scale: ~30% larger than the original 40x60 so it reads as an intentional
   brand separator rather than a tiny icon, while staying clearly shorter
   than the 84px marquee words. */
.msgp-marquee-section .wd-marquee-item img {
	display: inline-block;
	width: 52px;
	height: 78px;
	object-fit: contain;
	object-position: center;
	vertical-align: middle;
	align-self: center;
}

/* Mobile: slightly smaller separator so it stays balanced with the smaller
   36px marquee text and never overflows. */
@media (max-width: 768.98px) {
	.msgp-marquee-section .wd-marquee-item img {
		width: 34px;
		height: 51px;
	}
}

/* Reduced motion: stop the marquee scroll. WoodMart has no native
   prefers-reduced-motion guard; this scoped rule freezes the loop so the
   words render statically for users who request less motion. */
@media (prefers-reduced-motion: reduce) {
	.msgp-marquee-section .wd-marquee-content {
		animation: none;
	}
}

/* ==========================================================================
   Global header — brand integration (6.1.1.0). Header-local only.
   Ivory surface, emerald text/icons, subtle gold accent. Replaces the
   WoodMart demo identity (charcoal/orange) inside the header shell without
   touching the global theme palette.
   ========================================================================== */

/* Ivory header surface (override WoodMart .whb-color-dark white default). */
.whb-general-header.whb-row {
	background-color: #FBF9F4 !important;
}

/* Preserve SVG logo aspect ratio. WoodMart forces height:100% on SVG logos
   (.wd-logo img[src$=".svg"]), which distorts a non-square wordmark; override
   to auto so the logo keeps its native proportions at the set max-width. */
.whb-general-header .wd-logo img[src$=".svg"] {
	height: auto;
}

/* Subtle gold bottom border (brand accent under the header). */
.whb-general-header .whb-general-header-inner {
	border-color: #C9A227 !important;
}

/* Emerald text + icons for header utilities (search/account/cart/burger). */
.whb-general-header .wd-tools-element {
	--wd-header-el-color: var(--ms-primary, #0B6B4F);
	--wd-header-el-color-hover: var(--ms-gold-ink, #8A6D1D);
}

/* Desktop main nav: emerald links, gold hover/active. */
.whb-general-header .wd-header-main-nav .wd-nav-main > li > a {
	color: var(--ms-primary, #0B6B4F);
}

.whb-general-header .wd-header-main-nav .wd-nav-main > li > a:hover,
.whb-general-header .wd-header-main-nav .wd-nav-main > li.current-menu-item > a {
	color: var(--ms-gold-ink, #8A6D1D);
}

/* Mobile drawer: ivory surface + emerald links, gold hover. */
.wd-side-hidden-nav.mobile-nav {
	background-color: #FBF9F4 !important;
}

.wd-side-hidden-nav.mobile-nav .wd-nav-mobile > li > a {
	color: var(--ms-primary, #0B6B4F);
}

.wd-side-hidden-nav.mobile-nav .wd-nav-mobile > li > a:hover {
	color: var(--ms-gold-ink, #8A6D1D);
}

/* MICRO SHOPPING wordmark at the top of the mobile drawer (brand logo). */
.wd-side-hidden-nav.mobile-nav::before {
	content: '';
	display: block;
	width: 170px;
	height: 24px;
	margin: 20px 20px 12px;
	background: transparent url('/wp-content/uploads/2021/11/logo-sable-header-split.svg') no-repeat center / contain;
}

/* Homepage: hero starts directly under the header.
   WoodMart adds 40px top+bottom padding to <main class="wd-content-layout">.
   Zero only the top padding on the front page so the hero sits flush under
   the header's gold bottom border. Bottom padding and inner pages unchanged. */
.home .wd-content-layout {
	padding-top: 0;
	padding-block-start: 0;
}

/* ---- Static lightweight hero (6.2.1.0) ---- */

/* Hero surface: ivory full-bleed. */
.msgp-static-hero {
	background-color: #FBF9F4;
}

/* Eyebrow: subtle gold accent, uppercase, letter-spaced, with a short gold rule. */
.msgp-static-hero .msgp-hero-eyebrow p {
	margin: 0;
	color: #8A6D1D;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

.msgp-static-hero .msgp-hero-eyebrow p::before {
	content: '';
	display: inline-block;
	width: 36px;
	height: 1px;
	background: #C9A227;
	vertical-align: middle;
	margin-right: 12px;
}

/* H1: single hero heading, near-black, large. */
.msgp-static-hero .msgp-hero-title .title {
	color: #221F1D;
	font-size: 48px;
	font-weight: 600;
	line-height: 1.12;
	margin: 0;
}

/* Supporting paragraph: muted, readable measure. */
.msgp-static-hero .msgp-hero-text p {
	margin: 0;
	color: #5C5A57;
	font-size: 17px;
	line-height: 1.7;
	max-width: 34em;
}

/* CTA: emerald fill, ivory text, gold hover. */
.msgp-static-hero .wd-button-wrapper .btn.msgp-hero-cta {
	--btn-bgcolor: #0B6B4F;
	--btn-bgcolor-hover: #8A6D1D;
	--btn-height: 52px;
	--btn-padding: 0 32px;
	font-size: 15px;
	font-weight: 600;
	text-transform: none;
	letter-spacing: 0.02em;
}

/* Right visual panel: emerald surface + gold sillage symbol (one lightweight SVG). */
.msgp-static-hero .msgp-hero-visual {
	min-height: 440px;
	background-color: #0B6B4F;
	background-image: url('/wp-content/themes/microshopping-child/assets/brand/microshopping-symbol.svg');
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
}

/* Tablet: stack content above a shorter visual band. */
@media (max-width: 1024px) {
	.msgp-static-hero .msgp-hero-title .title {
		font-size: 36px;
	}

	.msgp-static-hero .msgp-hero-visual {
		min-height: 260px;
	}
}

/* Mobile: hide the hero entirely (matches Elementor hide_mobile, <768px). */
@media (max-width: 767px) {
	.msgp-static-hero {
		display: none !important;
	}
}

/* ==========================================================================
   Footer — brand integration (6.4.2.0). Block-scoped only.
   Rebuild of CMS block #36 ("Footer Perfumes"). Premium DARK surface
   rgb(17,18,17) with emerald/gold brand accents. Native WoodMart widgets
   only; no JS. Scope: .msgp-footer* — never leaks into header/hero/
   sections 2-5/Instagram. No global palette change.
   ========================================================================== */

/* Local dark-footer tokens (scoped to the footer only — not :root/global). */
.msgp-footer {
	--msgp-footer-bg: rgb(17, 18, 17);
	--msgp-footer-surface: #1B1C1A;      /* raised bar/section tone */
	--msgp-footer-heading: #FFFFFF;      /* 18.78:1 on dark (AAA) */
	--msgp-footer-text: #F5F5F4;         /* 17.21:1 on dark (AAA) */
	--msgp-footer-muted: #A8A8A4;        /* 7.87:1 on dark (AAA) */
	--msgp-footer-link: #3FA37F;         /* 6.04:1 on dark (AA) — brand emerald, dark-safe */
	--msgp-footer-link-hover: #E1A74D;   /* 8.79:1 on dark (AA) — brand gold, dark-safe */
	--msgp-footer-gold: #C9A227;         /* decorative rule/accent only */
}

/* Dark surface for the branded footer. Matches the WoodMart .wd-footer
   background (rgb(17,18,17)); declared explicitly so the block never
   inherits an unintended light surface.
   Also rebalances the Elementor container spacing (post-36.css sets
   --padding-top:64px / --row-gap:44px) which left excessive vertical voids
   beneath the shorter columns. Scoped to the footer root only; `!important`
   is required to beat the instance-specific Elementor rule. */
.wd-footer .msgp-footer {
	background-color: var(--msgp-footer-bg);
	color: var(--msgp-footer-text);
	--padding-top: 48px !important;
	--row-gap: 34px !important;
}

/* Columns: top-align content so all four headings share one baseline and no
   column adds trailing void below its own content. */
.wd-footer .msgp-footer > .msgp-footer-col {
	align-self: flex-start;
}

/* Column headings: high-contrast light, compact caps-like weight; gold rule. */
.msgp-footer .msgp-footer-col-title .title {
	margin: 0 0 4px;
	color: var(--msgp-footer-heading);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.msgp-footer .msgp-footer-col-title .title::after {
	content: '';
	display: block;
	width: 28px;
	height: 2px;
	margin-top: 10px;
	background: var(--msgp-footer-gold);
}

/* Brand logo: dark-surface variant (attachment 8924,
   microshopping-logo-horizontal-dark.svg) sits directly on the dark footer —
   no plate, no background, no border-radius. Geometry and emerald/gold identity
   are preserved; only gradient stop luminance was raised for AA readability. */
.msgp-footer .msgp-footer-logo {
	display: inline-block;
}

.msgp-footer .msgp-footer-logo img {
	display: block;
	width: 230px;
	max-width: 100%;
	height: auto;
}

.msgp-footer .msgp-footer-tagline p {
	margin: 10px 0 0;
	max-width: 22em;
	color: var(--msgp-footer-muted);
	font-size: 14px;
	line-height: 1.6;
}

/* Link lists (native wd_extra_menu_list). Dark-safe emerald links, gold hover. */
.msgp-footer .msgp-footer-menu .wd-sub-menu,
.msgp-footer .msgp-footer-menu .sub-sub-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.msgp-footer .msgp-footer-menu .sub-sub-menu li a {
	display: inline-block;
	padding: 6px 0;
	color: var(--msgp-footer-link);
	font-size: 15px;
	line-height: 1.4;
	text-decoration: none;
}

.msgp-footer .msgp-footer-menu .sub-sub-menu li a:hover,
.msgp-footer .msgp-footer-menu .sub-sub-menu li a:focus-visible {
	color: var(--msgp-footer-link-hover);
}

/* The brand column heading is absent by design (logo replaces it); hide any
   empty parent anchor the extra-menu-list widget may render. */
.msgp-footer .msgp-footer-menu > .wd-sub-menu > li > a:empty {
	display: none;
}

/* Bottom bar: full-width, gold top rule, light copy. */
.msgp-footer .msgp-footer-bar {
	border-top: 1px solid var(--msgp-footer-gold);
	padding-top: 20px;
}

.msgp-footer .msgp-footer-bar p {
	margin: 0;
	color: var(--msgp-footer-text);
	font-size: 13px;
	line-height: 1.6;
}

/* Legal placeholders render as plain text (unpublished pages, no fake hrefs). */
.msgp-footer .msgp-footer-bar__legal p {
	color: var(--msgp-footer-muted);
}

/* Tablet: 2 x 2 column grid. */
@media (max-width: 1024px) {
	.msgp-footer .msgp-footer-col {
		width: 48%;
	}
}

/* Mobile: single stacked column, generous tap targets. */
@media (max-width: 767px) {
	.msgp-footer .msgp-footer-col {
		width: 100%;
	}

	.msgp-footer .msgp-footer-menu .sub-sub-menu li a {
		padding: 11px 0;
	}

	.msgp-footer .msgp-footer-bar {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* Accessibility: visible focus parity, no hover-only affordance. */
.msgp-footer .msgp-footer-menu .sub-sub-menu li a:focus-visible {
	outline: 2px dotted currentColor;
	outline-offset: 3px;
}

.msgp-footer .msgp-footer-logo a:focus-visible {
	outline: 2px dotted #0B6B4F;
	outline-offset: 3px;
}

