/*
Theme Name: Miss Merylin IN
Template: woodmart
Version: 1.0.0
Description: Miss Merylin child theme for WoodMart on missmerylin.in — trimmed from the .com child theme (homepage, header/footer, shop, cart, checkout, account and email templates). Delivery disclosure, stock and payments are owned by plugins.
Author: Miss Merylin
Text Domain: missmerylin
*/

/* ==========================================================================
   1 · BRAND TOKENS  (Miss Merylin)
   ========================================================================== */
:root {
	--mm-black: #1a1a1a;
	/* Corner radius scale (cards, buttons, sheets) and device-pixel hairline. */
	--mm-r-xs: 4px;
	--mm-r-s: 8px;
	--mm-r-m: 12px;
	--mm-r-l: 16px;
	--mm-r-xl: 20px;
	--mm-hair: 1px;
	/* Spacing scale: every padding / margin / gap in the theme's own CSS uses one of these. */
	--mm-s-1: 4px;
	--mm-s-2: 8px;
	--mm-s-3: 12px;
	--mm-s-4: 16px;
	--mm-s-5: 24px;
	--mm-s-6: 32px;
	--mm-accent: #c8556a;          /* rose red — replaces storefront gold #B8965A */
	--mm-blush: #f5ede8;
	--mm-offwhite: #f7f4f0;
	--mm-gray: #888888;            /* text secondary */
	--mm-muted: #aaaaaa;           /* text muted */
	--mm-border: #ebebeb;
	--mm-white: #ffffff;

	--mm-font-heading: "Cormorant Garamond", Georgia, "Times New Roman", serif;
	--mm-font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
/* Hairlines at device-pixel precision: half a CSS pixel = one device pixel on 2x/3x screens. */
@media (min-resolution: 2dppx) { :root { --mm-hair: .5px; } }

/* ==========================================================================
   2 · STOREFRONT DESIGN TOKENS  (ported from apps/web/app/globals.css)
   gold → pink, #FAFAF8 → blush, radius 8–16px → 0 (sharp editorial)
   ========================================================================== */
:root {
	--color-primary:        #1a1a1a;
	--color-accent:         #c8556a;
	--color-bg:             #f5ede8;
	--color-surface:        #ffffff;
	--color-border:         #ebebeb;
	--color-text-primary:   #1a1a1a;
	--color-text-secondary: #888888;
	--color-text-muted:     #aaaaaa;

	/* Inventory/status colours — kept from storefront (functional, not brand) */
	--color-fast: #047857;     --color-fast-bg: #ECFDF5;
	--color-imported: #92400E; --color-imported-bg: #FFF8ED;
	--color-incoming: #1D4ED8; --color-incoming-bg: #EFF6FF;
	--color-sold-out: #6B7280; --color-sold-out-bg: #F3F4F6;
	--color-limited-bg: #111111;

	--spacing-xs: 4px;  --spacing-sm: 8px;  --spacing-md: 16px;
	--spacing-lg: 24px; --spacing-xl: 32px;

	--radius-sm: 0; --radius-md: 0; --radius-lg: 0; --radius-full: 999px;

	--text-xs: 11px; --text-sm: 13px; --text-md: 15px;
	--text-base: 16px; --text-lg: 18px; --text-xl: 22px;

	--ease-editorial: cubic-bezier(0.22, 1, 0.36, 1);
	--ease-cinematic: cubic-bezier(0.16, 1, 0.30, 1);
	--ease-soft:      cubic-bezier(0.32, 0.72, 0, 1);
	--ease-drift:     cubic-bezier(0.45, 0, 0.55, 1);
	--dur-quick: 200ms; --dur-base: 550ms; --dur-slow: 1100ms; --dur-glacial: 20000ms;
}

/* ==========================================================================
   3 · WOODMART VARIABLE OVERRIDES  (--wd-* / --btn-*)
   Re-points WoodMart's native design system at Miss Merylin brand values, so
   header builder, mega menu, footer, Elementor widgets all inherit the brand.
   ========================================================================== */
:root {
	/* Accent / colour */
	--wd-primary-color: var(--mm-accent);
	--wd-main-bgcolor: var(--mm-blush);
	--wd-link-color: var(--mm-black);
	--wd-link-color-hover: var(--mm-accent);
	--wd-title-color: var(--mm-black);
	--wd-text-color: var(--mm-black);
	--wd-alternative-color: var(--mm-gray);
	--wd-label-color: var(--mm-accent);
	--wd-star-color: var(--mm-accent);
	--wd-empty-star-color: var(--mm-border);

	/* Entities (product/post titles) + headings */
	--wd-entities-title-color: var(--mm-black);
	--wd-entities-title-color-hover: var(--mm-accent);
	--wd-entities-title-font: var(--mm-font-body);
	--wd-title-font: var(--mm-font-heading);
	--wd-widget-title-font: var(--mm-font-heading);
	--wd-widget-title-color: var(--mm-black);

	/* Body + header element typography */
	--wd-text-font: var(--mm-font-body);
	--wd-header-el-font: var(--mm-font-body);
	--wd-header-el-color: var(--mm-black);
	--wd-header-el-color-hover: var(--mm-accent);
	--wd-navigation-color: 26, 26, 26;

	/* Actions (wishlist/compare/quick icons) */
	--wd-action-color: var(--mm-black);
	--wd-action-color-hover: var(--mm-accent);
	--wd-action-icon-color: var(--mm-black);
	--wd-action-icon-color-hover: var(--mm-accent);

	/* Forms */
	--wd-form-brd-color: var(--mm-border);
	--wd-form-brd-color-focus: var(--mm-black);
	--wd-form-bg: var(--mm-white);
	--wd-form-color: var(--mm-black);

	/* Sharp editorial corners everywhere */
	--wd-brd-radius: 0px;
	--wd-cat-brd-radius: 0px;
	--wd-form-brd-radius: 0px;
	--wd-thumb-brd-radius: 0px;
	--wd-arrow-radius: 0px;
	--wd-social-radius: 0px;
	--wd-pagin-radius: 0px;
	--wd-popup-brd-radius: 0px;

	/* Product grid spacing → storefront (16px column gap, 40px row gap) */
	--wd-prod-gap: 16px;
	--wd-col-gap: 16px;
	--wd-row-gap: 40px;
	--wd-prod-shadow: none;

	/* Buttons — charcoal default, accent hover, square, Inter, uppercase */
	--btn-font-family: var(--mm-font-body);
	--btn-accented-font-family: var(--mm-font-body);
	--btn-default-font-family: var(--mm-font-body);
	--btn-brd-radius: 0px;
	--btn-default-brd-radius: 0px;
	--btn-accented-brd-radius: 0px;
	--btn-accented-bgcolor: var(--mm-black);
	--btn-accented-bgcolor-hover: var(--mm-accent);
	--btn-accented-color: var(--mm-white);
	--btn-accented-color-hover: var(--mm-white);
	--btn-accented-transform: uppercase;
}

/* ==========================================================================
   4 · BASE + STOREFRONT TYPE UTILITIES + ANIMATIONS  (globals.css port)
   ========================================================================== */
body {
	background-color: var(--mm-blush);
	color: var(--mm-black);
	font-family: var(--mm-font-body);
	font-size: 14px;
	line-height: 1.5;
	letter-spacing: -0.003em;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--mm-font-heading); color: var(--mm-black); }

.font-editorial { font-family: var(--mm-font-heading); font-feature-settings: "liga" 1, "kern" 1; }
.label-xs { font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 500; }
.label-sm { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; }

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.snap-card { scroll-snap-align: start; flex-shrink: 0; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.animate-fade-up { animation: fadeUp var(--dur-base) var(--ease-editorial) both; }
.animate-fade-up-delay-1 { animation-delay: 0.08s; }
.animate-fade-up-delay-2 { animation-delay: 0.18s; }
.animate-fade-up-delay-3 { animation-delay: 0.3s; }

@keyframes imageReveal { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: scale(1); } }
.animate-image-reveal { animation: imageReveal var(--dur-slow) var(--ease-cinematic) both; will-change: transform, opacity; }

@keyframes zoomDrift { 0%,100% { transform: scale(1); } 50% { transform: scale(1.04); } }
.animate-zoom-drift { animation: zoomDrift var(--dur-glacial) var(--ease-drift) infinite both; will-change: transform; }

.fade-in-section { opacity: 0; transform: translateY(18px); transition: opacity 0.65s ease-out, transform 0.65s ease-out; }
.fade-in-section.is-visible { opacity: 1; transform: translateY(0); }

.soft-reveal { opacity: 0; transition: opacity var(--dur-slow) var(--ease-cinematic), transform var(--dur-slow) var(--ease-cinematic); will-change: opacity, transform; }
.soft-reveal--rise { transform: translateY(18px); }
.soft-reveal--image { transform: scale(1.06); }
.soft-reveal.is-visible { opacity: 1; transform: none; }

@keyframes shimmer { 0% { background-position: -200% center; } 100% { background-position: 200% center; } }
.shimmer { background: linear-gradient(105deg, #F5EFE8 0%, #EDE5D9 40%, #F5EFE8 55%, #EDE5D9 100%); background-size: 200% 100%; animation: shimmer 2.4s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
	.animate-zoom-drift, .animate-image-reveal { animation: none; transform: none; opacity: 1; }
	.fade-in-section, .soft-reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   5 · PRODUCT CARD  →  WoodMart .product-grid-item  (storefront ProductCard)
   3:4 portrait · 700ms zoom · cinematic bottom gradient · overline → name(12/300)
   → price(11/300) · inline accent discount · info lift on hover · sharp corners
   ========================================================================== */
.wd-product.product-grid-item,
.wd-product.product-grid-item .product-element-top,
.wd-product.product-grid-item .wd-product-img { box-shadow: none !important; }

.wd-product.product-grid-item { border: none; background: transparent; }

.wd-product.product-grid-item .wd-product-img {
	position: relative;
	margin-bottom: var(--mm-s-3);
	border-radius: 0;
	overflow: hidden;
	box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.06);
}
.wd-product.product-grid-item .wd-product-img img {
	width: 100%;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	transition: transform 700ms ease-out;
}
.wd-product.product-grid-item:hover .wd-product-img img { transform: scale(1.05); }

/* cinematic bottom gradient (52% height) */
.wd-product.product-grid-item .wd-product-img::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 52%;
	pointer-events: none;
	z-index: 1;
	background: linear-gradient(to top, rgba(0,0,0,0.11) 0%, rgba(0,0,0,0.04) 40%, transparent 100%);
}

/* info block lifts 2px toward image on desktop hover */
.wd-product.product-grid-item .product-element-bottom { transition: transform 500ms var(--ease-editorial); }
@media (min-width: 769px) {
	.wd-product.product-grid-item:hover .product-element-bottom { transform: translateY(-2px); }
}

/* category overline (WoodMart brand element) — 8px, .2em, muted */
.wd-product.product-grid-item .wd-product-brands,
.wd-product.product-grid-item .wd-product-brands a {
	font-family: var(--mm-font-body);
	font-size: 8px;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	line-height: 1;
	color: #CACACA;
}
.wd-product.product-grid-item .wd-product-brands { margin-bottom: var(--mm-s-1); }

/* product name — 12px / 300, 2-line clamp */
.wd-product.product-grid-item .wd-entities-title,
.wd-product.product-grid-item .wd-entities-title a {
	font-family: var(--mm-font-body);
	font-size: 12px;
	font-weight: 300;
	line-height: 1.4;
	color: #1A1A1A;
	letter-spacing: 0;
}
.wd-product.product-grid-item .wd-entities-title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin-bottom: var(--mm-s-2);
}

/* price row — 11px / 300; struck original muted; ins normal */
.wd-product.product-grid-item .price {
	font-family: var(--mm-font-body);
	font-size: 11px;
	font-weight: 300;
	color: #111111;
	letter-spacing: -0.01em;
}
.wd-product.product-grid-item .price del,
.wd-product.product-grid-item .price del .amount { font-size: 10px; font-weight: 300; color: #C8C8C8; }
.wd-product.product-grid-item .price ins,
.wd-product.product-grid-item .price ins .amount { text-decoration: none; }

/* discount % (Phase-1 woocommerce_sale_flash filter → "-30%") as the storefront's
   bottom-left editorial badge, in brand accent */
.wd-product.product-grid-item .onsale {
	top: auto;
	bottom: 10px;
	left: 10px;
	right: auto;
	padding: 3px var(--mm-s-2);
	border-radius: 0;
	border: none;
	box-shadow: none;
	min-width: 0;
	min-height: 0;
	background: rgba(26, 26, 26, 0.62);
	color: var(--mm-white);
	font-family: var(--mm-font-body);
	font-size: 8px;
	font-weight: 500;
	letter-spacing: 0.14em;
}

/* wishlist heart — reveal on hover, top-right */
.wd-product.product-grid-item .wd-wishlist-btn {
	position: absolute;
	top: 10px; right: 10px;
	z-index: 5;
	opacity: 0;
	transition: opacity 0.3s ease;
}
.wd-product.product-grid-item:hover .wd-wishlist-btn,
.wd-product.product-grid-item .wd-wishlist-btn.added { opacity: 1; }

/* hover swap image — opacity crossfade, no scale conflict */
.wd-product .wd-product-img-hover { transition: opacity 0.35s ease !important; }

/* ==========================================================================
   6 · PRODUCT GRID / COLLECTION LOOP  (storefront: 2 / 3 / 4 cols, gap 16/40)
   Scoped to shop + category archives so homepage rails (flex) are untouched.
   ========================================================================== */
.post-type-archive-product ul.products,
.tax-product_cat ul.products,
.woocommerce-shop ul.products {
	display: grid !important;
	grid-template-columns: repeat(2, 1fr);
	column-gap: var(--mm-s-4);
	row-gap: 40px;
	margin: 0 !important;
}
.post-type-archive-product ul.products > li.product,
.tax-product_cat ul.products > li.product,
.woocommerce-shop ul.products > li.product { width: auto !important; margin: 0 !important; float: none !important; }
@media (min-width: 640px) {
	.post-type-archive-product ul.products,
	.tax-product_cat ul.products,
	.woocommerce-shop ul.products { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
	.post-type-archive-product ul.products,
	.tax-product_cat ul.products,
	.woocommerce-shop ul.products { grid-template-columns: repeat(4, 1fr); }
}

/* ==========================================================================
   7 · BUTTONS  (WoodMart .btn / WooCommerce buttons) — square, Inter, uppercase
   ========================================================================== */
.btn, .button, .single_add_to_cart_button, .wd-buy-now-btn, button.alt {
	font-family: var(--mm-font-body) !important;
	letter-spacing: 2px;
	text-transform: uppercase;
	border-radius: 0 !important;
}
.single_add_to_cart_button, .button.alt {
	background-color: var(--mm-black) !important;
	color: var(--mm-white) !important;
}
.single_add_to_cart_button:hover, .button.alt:hover { background-color: var(--mm-accent) !important; }

/* ==========================================================================
   8 · SECTION TITLES / HEADINGS — Cormorant editorial
   ========================================================================== */
.wd-section-title .liner-title,
.title.title-style-default,
.single-product .product_title.entry-title {
	font-family: var(--mm-font-heading);
	color: var(--mm-black);
	font-weight: 500;
}
.whb-header .wd-nav-main > li > a {
	font-family: var(--mm-font-body);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--mm-black);
}
.whb-header .wd-nav-main > li > a:hover,
.whb-header .wd-nav-main > li.current-menu-item > a,
.whb-header .wd-nav-main > li.current-menu-ancestor > a { color: var(--mm-accent); }
.whb-header { border-bottom: 0.5px solid var(--mm-border); }

/* WoodMart native mobile toolbar — brand active state */
.wd-nav-mobile > li.current-menu-item > a,
.wd-nav-mobile > li > a:hover,
.wd-sticky-toolbar .wd-tools-element.wd-active > a,
.wd-sticky-toolbar .wd-tools-element > a:hover { color: var(--mm-black); }
.wd-sticky-toolbar { border-top: 0.5px solid var(--mm-border); }

/* ==========================================================================
   9 · SINGLE PRODUCT (PDP) — hook-injected blocks + WoodMart layout polish
   Design injected via woocommerce_single_product_summary hooks (functions.php);
   these rules style WoodMart's existing PDP elements + the injected blocks.
   ========================================================================== */

/* Title → Cormorant Garamond editorial */
.single-product div.product .product_title {
	font-family: var(--mm-font-heading);
	font-weight: 300;
	line-height: 1.15;
	font-size: clamp(1.6rem, 4vw, 2rem);
	letter-spacing: -0.02em;
	color: var(--mm-black);
}

/* Category overline (priority-4 hook) */
.mm-pdp__overline {
	font-family: var(--mm-font-body);
	font-size: 9px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	font-weight: 500;
	color: var(--mm-muted);
	margin: 0 0 var(--mm-s-2);
}

/* Price → 22px, charcoal (remove WoodMart pink) */
.single-product div.product .summary .price,
.single-product div.product .summary .price ins,
.single-product div.product .summary .price ins .amount {
	font-family: var(--mm-font-body);
	font-size: 22px;
	font-weight: 500;
	color: var(--mm-black) !important;
	text-decoration: none;
}
.single-product div.product .summary .price del,
.single-product div.product .summary .price del .amount {
	font-size: 14px;
	font-weight: 400;
	color: #cccccc !important;
}

/* Add to Cart → full width, square, uppercase */
.single-product div.product form.cart .single_add_to_cart_button {
	width: 100%;
	padding: var(--mm-s-4);
	border-radius: 0;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-weight: 500;
}
.single-product div.product form.cart .quantity { margin-bottom: var(--mm-s-3); }

/* Variation dropdowns → square, brand border */
.single-product .variations td.value select,
.single-product .variations select {
	border: 1px solid var(--mm-border);
	border-radius: 0;
	min-height: 42px;
	background-color: var(--mm-white);
	font-family: var(--mm-font-body);
	color: var(--mm-black);
}

/* ==========================================================================
   10 · COMPONENT SECTIONS (Phase 1 + enhancements) — brand, sharp
   ========================================================================== */

/* 10a · Announcement ticker */
.mm-announcement { background: var(--mm-black); overflow: hidden; }
.mm-announcement__track { display: inline-flex; white-space: nowrap; animation: mm-ticker 30s linear infinite; }
.mm-announcement:hover .mm-announcement__track { animation-play-state: paused; }
.mm-announcement__item { color: #fff; font-family: var(--mm-font-body); font-size: 11px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; padding: var(--mm-s-2) var(--mm-s-6); }
@keyframes mm-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .mm-announcement__track { animation: none; } }

/* 10b · Hero split */
.mm-hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 520px; }
.mm-hero__text { display: flex; flex-direction: column; justify-content: center; padding: 60px clamp(var(--mm-s-5),5vw,80px); background: var(--mm-blush); }
.mm-hero__eyebrow { font-family: var(--mm-font-body); font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--mm-gray); margin: 0 0 var(--mm-s-4); }
.mm-hero__headline { font-family: var(--mm-font-heading); font-weight: 500; font-size: clamp(34px,4vw,56px); line-height: 1.08; color: var(--mm-black); margin: 0 0 var(--mm-s-6); }
.mm-hero__cta { align-self: flex-start; background: var(--mm-black); color: #fff; font-family: var(--mm-font-body); font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; padding: var(--mm-s-4) var(--mm-s-6); }
.mm-hero__cta:hover { background: var(--mm-accent); color: #fff; }
.mm-hero__media { background: var(--mm-offwhite) center/cover no-repeat; min-height: 320px; }
@media (max-width: 768px) { .mm-hero { grid-template-columns: 1fr; } .mm-hero__media { order: -1; min-height: 360px; } }

/* 10c · Trust strip */
.mm-trust { background: var(--mm-black); }
.mm-trust__inner { display: grid; grid-template-columns: repeat(4,1fr); max-width: 1200px; margin: 0 auto; }
.mm-trust__col { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--mm-s-1); padding: var(--mm-s-5) var(--mm-s-4); border-left: 1px solid rgba(255,255,255,0.08); }
.mm-trust__col:first-child { border-left: none; }
.mm-trust__title { font-family: var(--mm-font-body); font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: #fff; }
.mm-trust__sub { font-family: var(--mm-font-body); font-size: 11px; color: rgba(255,255,255,0.6); }
@media (max-width: 768px) { .mm-trust__inner { grid-template-columns: repeat(2,1fr); } .mm-trust__col:nth-child(odd) { border-left: none; } .mm-trust__col:nth-child(3), .mm-trust__col:nth-child(4) { border-top: 1px solid rgba(255,255,255,0.08); } }

/* 10d · Category tiles */
.mm-cats { padding: 56px clamp(var(--mm-s-4),4vw,40px); }
.mm-cats__grid { display: grid; grid-template-columns: repeat(6,1fr); gap: var(--mm-s-4); max-width: 1280px; margin: 0 auto; }
.mm-cat { position: relative; display: flex; align-items: flex-end; justify-content: center; aspect-ratio: 1/1; background: var(--mm-offwhite); overflow: hidden; }
.mm-cat--image { background-size: cover; background-position: center; }
.mm-cat__label { position: relative; z-index: 2; font-family: var(--mm-font-body); font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--mm-black); padding: 0 0 var(--mm-s-4); transition: color 0.25s ease; }
.mm-cat--image .mm-cat__label { color: #fff; width: 100%; text-align: center; padding: var(--mm-s-5) 0 var(--mm-s-4); background: linear-gradient(to top, rgba(0,0,0,0.45), transparent); }
.mm-cat:hover .mm-cat__label { color: var(--mm-accent); }
.mm-cat::after { content: ""; position: absolute; inset: 0; border: 0.5px solid transparent; transition: border-color 0.25s ease; z-index: 1; }
.mm-cat:hover::after { border-color: var(--mm-border); }
@media (max-width: 1024px) { .mm-cats__grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 600px) { .mm-cats__grid { grid-template-columns: repeat(2,1fr); } }

/* 10f · Social proof *//* 10f · Social proof */
.mm-social { padding: 56px clamp(var(--mm-s-4),4vw,40px); max-width: 1280px; margin: 0 auto; text-align: center; }
.mm-social__title { font-family: var(--mm-font-heading); font-weight: 500; font-size: clamp(24px,2.6vw,34px); color: var(--mm-black); margin: 0 0 var(--mm-s-2); }
.mm-social__rating { font-family: var(--mm-font-body); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--mm-muted); margin: 0 0 var(--mm-s-6); }
.mm-social__rating .mm-star { font-size: 13px; }
.mm-social__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--mm-s-5); }
.mm-review { display: flex; flex-direction: column; gap: var(--mm-s-4); margin: 0; padding: var(--mm-s-6) var(--mm-s-5); background: #fff; border: var(--mm-hair) solid var(--mm-border); border-radius: 0; text-align: left; }
.mm-review__stars { display: inline-flex; gap: 2px; font-size: 14px; line-height: 1; }
.mm-star { color: var(--mm-border); }
.mm-star.is-on { color: var(--mm-accent); }
.mm-review__text { font-family: var(--mm-font-heading); font-size: 19px; font-style: italic; line-height: 1.5; color: var(--mm-black); margin: 0; }
.mm-review__name { font-family: var(--mm-font-body); font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--mm-black); }
.mm-review__city { font-weight: 400; letter-spacing: 0.5px; text-transform: none; color: var(--mm-gray); }
.mm-review__product { display: block; margin-top: 3px; font-size: 11px; font-weight: 400; letter-spacing: 0.5px; text-transform: none; color: var(--mm-gray); }
@media (max-width: 768px) { .mm-social__grid { grid-template-columns: 1fr; gap: var(--mm-s-4); } }

/* 10g · Mobile sticky add-to-bag */
.mm-sticky-atc { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999; box-sizing: border-box; display: flex; align-items: center; gap: var(--mm-s-3); min-height: 64px; padding: 0 var(--mm-s-3); padding-bottom: env(safe-area-inset-bottom, 0px); background: #fff; border-top: 0.5px solid var(--mm-border); transform: translateY(100%); transition: transform 0.3s ease; box-shadow: 0 -2px 12px rgba(26,26,26,0.06); }
.mm-sticky-atc.is-visible { transform: translateY(0); }
.mm-sticky-atc__info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.mm-sticky-atc__title { font-family: var(--mm-font-body); font-size: 13px; color: var(--mm-black); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mm-sticky-atc__price { font-family: var(--mm-font-body); font-size: 13px; font-weight: 500; color: var(--mm-black); }
.mm-sticky-atc__price del { color: var(--mm-gray); font-weight: 400; margin-right: var(--mm-s-1); }
.mm-sticky-atc__btn { flex: 0 0 auto; min-width: 45%; height: 44px; padding: 0 var(--mm-s-5); background: var(--mm-black); color: #fff; border: none; border-radius: 0; font-family: var(--mm-font-body); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; cursor: pointer; }
.mm-sticky-atc__btn:hover { background: var(--mm-accent); }
@media (min-width: 769px) { .mm-sticky-atc { display: none !important; } }
/* Clear the fixed mobile add-to-bag bar so PDP content (tabs · related · footer)
   scrolls fully into view above it. Bar is mobile-only, so pad only <=768px. */
@media (max-width: 768px) {
	body.single-product { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
}

/* 10h · Complete the Look cross-sell */
.mm-shop-look { margin: 48px 0; }
.mm-shop-look__title { font-family: var(--mm-font-body); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 3px; color: var(--mm-black); margin: 0 0 var(--mm-s-5); }
.mm-shop-look__grid { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--mm-s-5); }
.mm-shop-look__item { display: flex; flex-direction: column; }
.mm-shop-look__img { display: block; aspect-ratio: 3/4; overflow: hidden; margin-bottom: var(--mm-s-3); background: var(--mm-offwhite); }
.mm-shop-look__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity 0.35s ease; }
.mm-shop-look__img:hover img { opacity: 0.88; }
.mm-shop-look__name { font-family: var(--mm-font-body); font-size: 12px; line-height: 1.4; color: var(--mm-black); margin-bottom: var(--mm-s-1); }
.mm-shop-look__price { font-family: var(--mm-font-body); font-size: 13px; font-weight: 500; color: var(--mm-black); margin-bottom: var(--mm-s-2); }
.mm-shop-look__price del { color: var(--mm-gray); font-weight: 400; margin-right: var(--mm-s-1); }
.mm-shop-look__add.button, .mm-shop-look__add { align-self: flex-start; min-height: 0 !important; padding: 0 !important; background: none !important; border: none !important; box-shadow: none !important; font-family: var(--mm-font-body); font-size: 12px; font-weight: 500; line-height: 1.4; text-transform: uppercase; letter-spacing: 1px; color: var(--mm-black); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.mm-shop-look__add:hover { color: var(--mm-accent); background: none !important; }
@media (max-width: 768px) {
	.mm-shop-look__grid { display: flex; gap: var(--mm-s-4); overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; -ms-overflow-style: none; scrollbar-width: none; }
	.mm-shop-look__grid::-webkit-scrollbar { display: none; }
	.mm-shop-look__item { flex: 0 0 42%; scroll-snap-align: start; }
}

/* ==========================================================================
   11 · MY ACCOUNT — dashboard, navigation, orders, view-order, settings, search
   (markup in woocommerce/myaccount/* + search.php). Brand tokens, sharp corners.
   ========================================================================== */

/* ── Shared bits ─────────────────────────────────────────────────────────── */
.mm-status { display: inline-block; font-family: var(--mm-font-body); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; padding: var(--mm-s-1) var(--mm-s-2); border: 1px solid; white-space: nowrap; }
.mm-muted { font-family: var(--mm-font-body); font-size: 12px; color: var(--mm-muted); }
.mm-btn-dark { display: inline-block; padding: var(--mm-s-3) var(--mm-s-6); background: var(--mm-black); color: #fff; border: none; border-radius: 0; font-family: var(--mm-font-body); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; cursor: pointer; text-decoration: none; transition: background-color .2s ease; }
.mm-btn-dark:hover { background: var(--mm-accent); color: #fff; }
.mm-btn-dark--full { display: block; width: 100%; text-align: center; }
.mm-btn-outline { display: inline-block; padding: var(--mm-s-3) var(--mm-s-5); border: .5px solid #ccc; background: none; color: var(--mm-black); border-radius: 0; font-family: var(--mm-font-body); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; cursor: pointer; text-decoration: none; transition: all .2s ease; }
.mm-btn-outline:hover { border-color: var(--mm-black); background: var(--mm-black); color: #fff; }
.mm-btn-outline--danger { color: #EF4444; border-color: #EF4444; }
.mm-btn-outline--danger:hover { background: #EF4444; border-color: #EF4444; color: #fff; }
.mm-link-btn { font-family: var(--mm-font-body); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--mm-black); text-decoration: underline; text-underline-offset: 3px; }
.mm-link-btn:hover { color: var(--mm-accent); }
.mm-link-btn--danger { color: #EF4444; }
.mm-empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 72px var(--mm-s-4); gap: var(--mm-s-4); }
.mm-empty-state__title { font-family: var(--mm-font-heading); font-weight: 300; font-size: 22px; color: var(--mm-black); margin: 0; }
.mm-pagination { display: flex; align-items: center; justify-content: center; gap: var(--mm-s-4); margin-top: 40px; }
.mm-pagination__link { font-family: var(--mm-font-body); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--mm-black); text-decoration: none; }
.mm-pagination__link:hover { color: var(--mm-accent); }
.mm-pagination__count { font-family: var(--mm-font-body); font-size: 11px; color: var(--mm-muted); }
.mm-pagination ul { list-style: none; display: flex; gap: var(--mm-s-2); margin: 0; padding: 0; }
.mm-pagination ul a, .mm-pagination ul span { font-family: var(--mm-font-body); font-size: 12px; padding: var(--mm-s-2) var(--mm-s-3); color: var(--mm-black); text-decoration: none; border: var(--mm-hair) solid var(--mm-border); }
.mm-pagination ul .current { background: var(--mm-black); color: #fff; border-color: var(--mm-black); }

/* ── Dashboard ───────────────────────────────────────────────────────────── */
.mm-dash__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--mm-s-4); margin-bottom: var(--mm-s-6); }
.mm-dash__id { display: flex; align-items: center; gap: var(--mm-s-4); }
.mm-dash__avatar { width: 52px; height: 52px; border-radius: 999px; display: flex; align-items: center; justify-content: center; background: var(--mm-blush); font-family: var(--mm-font-heading); font-size: 22px; font-weight: 300; color: var(--mm-black); flex-shrink: 0; }
.mm-dash__name { font-family: var(--mm-font-heading); font-weight: 400; font-size: 24px; letter-spacing: -.01em; color: var(--mm-black); margin: 0; }
.mm-dash__email { font-family: var(--mm-font-body); font-size: 12px; color: var(--mm-gray); margin: 2px 0 0; }
.mm-dash__stats { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--mm-s-3); margin-bottom: 40px; }
.mm-stat { padding: var(--mm-s-4); border: var(--mm-hair) solid #f0f0f0; }
.mm-stat__label { display: block; font-family: var(--mm-font-body); font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: #bbb; margin-bottom: var(--mm-s-2); }
.mm-stat__value { font-family: var(--mm-font-heading); font-weight: 300; font-size: 24px; letter-spacing: -.01em; color: var(--mm-black); }
.mm-stat__value--sm { font-size: 18px; }
.mm-dash__seclabel { font-family: var(--mm-font-body); font-size: 9px; letter-spacing: .22em; text-transform: uppercase; color: var(--mm-muted); margin: 0 0 var(--mm-s-4); }
.mm-dash + .mm-dash__seclabel, .mm-dash__seclabel { margin-top: 40px; }
.mm-dash__stats + .mm-dash__seclabel { margin-top: 0; }

/* Recent orders + quick links */
.mm-orders-list { display: flex; flex-direction: column; }
.mm-order-row { display: flex; align-items: center; gap: var(--mm-s-3); padding: var(--mm-s-4) 0; border-bottom: var(--mm-hair) solid #f2f2f2; text-decoration: none; }
.mm-order-row:last-child { border-bottom: 0; }
.mm-order-row__main { flex: 1; min-width: 0; }
.mm-order-row__id { font-family: var(--mm-font-body); font-size: 13px; color: var(--mm-black); margin: 0; }
.mm-order-row__meta { font-family: var(--mm-font-body); font-size: 11px; color: var(--mm-muted); margin: 2px 0 0; }
.mm-order-row__total { font-family: var(--mm-font-body); font-size: 13px; font-weight: 500; color: var(--mm-black); white-space: nowrap; }
/* Mobile: 3-up flex line crams id+date / badge / total → badge overlaps. Switch to
   a 2-col grid — id+date top-left, price aligned top-right, status on its own line
   below the order number (natural pill width via justify-self:start). */
@media (max-width: 767px) {
	.mm-order-row { display: grid; grid-template-columns: 1fr auto; align-items: start; column-gap: var(--mm-s-3); row-gap: var(--mm-s-2); }
	.mm-order-row__main { grid-column: 1; grid-row: 1; min-width: 0; }
	.mm-order-row__total { grid-column: 2; grid-row: 1; justify-self: end; }
	.mm-order-row .mm-status { grid-column: 1 / -1; grid-row: 2; justify-self: start; }
}
.mm-quicklinks { display: flex; flex-wrap: wrap; gap: var(--mm-s-3); }
.mm-quicklinks a { font-family: var(--mm-font-body); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; padding: var(--mm-s-3) var(--mm-s-4); border: .5px solid #ccc; color: #444; text-decoration: none; transition: all .2s ease; }
.mm-quicklinks a:hover { background: var(--mm-black); color: #fff; border-color: var(--mm-black); }

/* ── Orders list (orders.php) ────────────────────────────────────────────── */
.mm-orders__title { font-family: var(--mm-font-heading); font-weight: 300; font-size: 28px; letter-spacing: -.01em; color: var(--mm-black); margin: 0 0 var(--mm-s-5); }
.mm-orders__filter { display: flex; gap: var(--mm-s-2); overflow-x: auto; margin-bottom: var(--mm-s-5); scrollbar-width: none; -ms-overflow-style: none; }
.mm-orders__filter::-webkit-scrollbar { display: none; }
.mm-ofilter { flex-shrink: 0; font-family: var(--mm-font-body); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; padding: var(--mm-s-2) var(--mm-s-4); border: .5px solid #e8e8e8; color: var(--mm-muted); text-decoration: none; }
.mm-ofilter.is-active { background: var(--mm-black); color: #fff; border-color: var(--mm-black); }
.mm-orders__list { display: flex; flex-direction: column; gap: var(--mm-s-3); }
.mm-order-card { display: flex; gap: var(--mm-s-4); padding: var(--mm-s-4); border: var(--mm-hair) solid var(--mm-border); }
.mm-order-card__thumb { flex-shrink: 0; width: 64px; height: 85px; overflow: hidden; background: var(--mm-offwhite); display: block; }
.mm-order-card__thumb img { width: 100%; height: 100%; object-fit: cover; margin: 0; }
.mm-order-card__body { flex: 1; min-width: 0; }
.mm-order-card__top { display: flex; align-items: center; justify-content: space-between; gap: var(--mm-s-3); margin-bottom: var(--mm-s-1); }
.mm-order-card__id { font-family: var(--mm-font-body); font-size: 13px; font-weight: 500; color: var(--mm-black); margin: 0; }
.mm-order-card__meta { font-family: var(--mm-font-body); font-size: 11px; color: var(--mm-muted); margin: 0 0 var(--mm-s-2); }
.mm-order-card__name { font-family: var(--mm-font-body); font-size: 12px; font-weight: 300; color: #555; margin: 0 0 var(--mm-s-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-order-card__total { font-family: var(--mm-font-body); font-size: 14px; font-weight: 500; color: var(--mm-black); margin: 0 0 var(--mm-s-3); }
.mm-order-card__actions { display: flex; flex-wrap: wrap; gap: var(--mm-s-4); }

/* ── View order (view-order.php) ─────────────────────────────────────────── */
.mm-vieworder__back { font-family: var(--mm-font-body); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--mm-muted); text-decoration: none; }
.mm-vieworder__back:hover { color: var(--mm-black); }
.mm-vieworder__head { display: flex; align-items: center; gap: var(--mm-s-3); margin: var(--mm-s-4) 0 var(--mm-s-1); }
.mm-vieworder__title { font-family: var(--mm-font-heading); font-weight: 300; font-size: 28px; letter-spacing: -.01em; color: var(--mm-black); margin: 0; }
.mm-vieworder__date { font-family: var(--mm-font-body); font-size: 12px; color: var(--mm-muted); margin: 0 0 var(--mm-s-6); }
.mm-vieworder__cancelled { font-family: var(--mm-font-body); font-size: 13px; color: #EF4444; padding: var(--mm-s-4) var(--mm-s-4); border: 1px solid #f3d2d2; background: #fdf2f2; margin-bottom: var(--mm-s-6); }
.mm-vieworder__seclabel { font-family: var(--mm-font-body); font-size: 9px; letter-spacing: .22em; text-transform: uppercase; color: var(--mm-muted); margin: var(--mm-s-6) 0 var(--mm-s-4); }
.mm-vieworder__items { border: var(--mm-hair) solid var(--mm-border); }
.mm-vieworder__item { display: flex; gap: var(--mm-s-4); padding: var(--mm-s-4) var(--mm-s-4); border-bottom: var(--mm-hair) solid #f2f2f2; }
.mm-vieworder__item:last-child { border-bottom: 0; }
.mm-vieworder__item-img { flex-shrink: 0; width: 80px; height: 107px; overflow: hidden; background: var(--mm-offwhite); }
.mm-vieworder__item-img img { width: 100%; height: 100%; object-fit: cover; margin: 0; }
.mm-vieworder__item-info { flex: 1; min-width: 0; }
.mm-vieworder__item-name { font-family: var(--mm-font-body); font-size: 13px; font-weight: 300; color: var(--mm-black); margin: 0 0 var(--mm-s-1); }
.mm-vieworder__item-meta { font-family: var(--mm-font-body); font-size: 11px; color: var(--mm-muted); margin: 0 0 var(--mm-s-1); }
.mm-vieworder__item-meta p { margin: 0; }
.mm-vieworder__item-qty { font-family: var(--mm-font-body); font-size: 11px; color: var(--mm-gray); margin: 0; }
.mm-vieworder__item-price { font-family: var(--mm-font-body); font-size: 13px; font-weight: 500; color: var(--mm-black); white-space: nowrap; }
.mm-vieworder__summary { border: var(--mm-hair) solid var(--mm-border); margin-top: var(--mm-s-4); }
.mm-vieworder__sumrow { display: flex; justify-content: space-between; gap: var(--mm-s-3); padding: var(--mm-s-3) var(--mm-s-4); font-family: var(--mm-font-body); font-size: 13px; color: #555; border-bottom: 1px solid #f5f5f5; }
.mm-vieworder__sumrow:last-child { border-bottom: 0; }
.mm-vieworder__sumrow.is-total { color: var(--mm-black); font-weight: 500; font-size: 15px; border-top: var(--mm-hair) solid var(--mm-border); }
.mm-vieworder__cols { display: grid; grid-template-columns: 1fr; gap: var(--mm-s-5); margin-top: var(--mm-s-1); }
@media (min-width: 640px) { .mm-vieworder__cols { grid-template-columns: 1fr 1fr; } }
.mm-vieworder__addr { font-family: var(--mm-font-body); font-size: 13px; line-height: 1.6; color: #555; font-style: normal; }
.mm-vieworder__pay { font-family: var(--mm-font-body); font-size: 13px; color: var(--mm-black); margin: 0; }
.mm-vieworder__actions { display: flex; flex-wrap: wrap; gap: var(--mm-s-3); margin-top: var(--mm-s-6); }

/* ── Settings (form-edit-account.php) ────────────────────────────────────── */
.mm-settings__sec { padding-bottom: var(--mm-s-6); margin-bottom: var(--mm-s-6); border-bottom: .5px solid var(--mm-border); }
.mm-settings__label { font-family: var(--mm-font-body); font-size: 9px; letter-spacing: .22em; text-transform: uppercase; color: var(--mm-muted); margin: 0 0 var(--mm-s-4); }
.mm-settings__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--mm-s-4); }
.mm-field { margin: 0; }
.mm-field--full { grid-column: 1 / -1; }
.mm-field label { display: block; font-family: var(--mm-font-body); font-size: 11px; letter-spacing: .04em; color: #555; margin-bottom: var(--mm-s-2); }
.mm-input { width: 100%; min-height: 44px; padding: 0 var(--mm-s-3); border: 1px solid var(--mm-border); border-radius: 0; background: var(--mm-white); font-family: var(--mm-font-body); font-size: 14px; color: var(--mm-black); }
.mm-input:focus { border-color: var(--mm-black); outline: none; }
.mm-settings__submit { margin-top: var(--mm-s-2); }
@media (max-width: 480px) { .mm-settings__grid { grid-template-columns: 1fr; } }

/* ── Search results (search.php) ─────────────────────────────────────────── */
.mm-search { max-width: 1320px; margin: 0 auto; padding: clamp(80px,10vw,104px) clamp(var(--mm-s-4),4vw,40px) 80px; }
.mm-search__eyebrow { font-family: var(--mm-font-body); font-size: 9px; letter-spacing: .22em; text-transform: uppercase; color: var(--mm-muted); margin: 0 0 var(--mm-s-2); }
.mm-search__title { font-family: var(--mm-font-heading); font-weight: 300; font-size: clamp(28px,5vw,44px); letter-spacing: -.02em; color: var(--mm-black); margin: 0; }
.mm-search__count { font-family: var(--mm-font-body); font-size: 12px; color: var(--mm-muted); margin: var(--mm-s-3) 0 var(--mm-s-6); }
.mm-search__grid { display: grid; grid-template-columns: repeat(2,1fr); column-gap: var(--mm-s-4); row-gap: 40px; margin: 0 !important; list-style: none; padding: 0; }
@media (min-width: 640px) { .mm-search__grid { grid-template-columns: repeat(3,1fr); } }
@media (min-width: 1024px) { .mm-search__grid { grid-template-columns: repeat(4,1fr); } }
.mm-search__grid > li.product { width: auto !important; margin: 0 !important; float: none !important; }
.mm-search__empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 64px var(--mm-s-4); gap: var(--mm-s-4); }
.mm-search__empty-title { font-family: var(--mm-font-heading); font-weight: 300; font-size: 24px; color: var(--mm-black); margin: 0; }
.mm-search__empty-sub { font-family: var(--mm-font-body); font-size: 12px; color: var(--mm-muted); margin: 0; }
.mm-search__tags { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--mm-s-2); margin: var(--mm-s-2) 0 var(--mm-s-5); }
.mm-search__tag { font-family: var(--mm-font-body); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: var(--mm-s-2) var(--mm-s-4); border: .5px solid var(--mm-border); color: var(--mm-black); text-decoration: none; transition: all .2s ease; }
.mm-search__tag:hover { background: var(--mm-black); color: #fff; border-color: var(--mm-black); }

/* ==========================================================================
   13 · HEADER/* ==========================================================================
   13 · HEADER — frosted → solid scroll states (WoodMart native sticky class)
   Frosted top requires the header row bg set transparent in the Header Builder;
   the stuck state always adds the hairline + soft shadow.
   ========================================================================== */
.whb-header { transition: box-shadow .28s ease, border-color .28s ease, background-color .28s ease; }
.whb-header:not(.whb-sticked) .whb-general-header .whb-row { background-color: rgba(255,255,255,.82) !important; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.whb-header.whb-sticked .whb-general-header .whb-row { background-color: rgba(255,255,255,.97) !important; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.whb-header.whb-sticked { box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 6px 24px rgba(0,0,0,.04); border-bottom: .5px solid var(--mm-border); }

/* ==========================================================================
   14 · MEGA MENU — editorial layout inside WoodMart's full-width dropdown
   Paste the .mm-mega markup (see docs) into a WoodMart HTML Block assigned to a
   full-width mega menu item. This styles it; mobile uses the native drawer.
   ========================================================================== */
.menu-item-design-full-width .wd-dropdown-menu { box-shadow: 0 8px 60px rgba(0,0,0,.06); border-bottom: .5px solid var(--mm-border); }
.mm-mega { display: flex; gap: clamp(var(--mm-s-6),4vw,64px); max-width: 1280px; margin: 0 auto; padding: 40px; }
.mm-mega__rail { flex: 0 0 200px; }
.mm-mega__brandline { font-family: var(--mm-font-body); font-size: 9px; letter-spacing: .3em; text-transform: uppercase; color: #ccc; margin: 0 0 var(--mm-s-3); }
.mm-mega__headline { font-family: var(--mm-font-heading); font-weight: 300; font-size: clamp(1.6rem,2.4vw,2.2rem); line-height: 1.1; color: var(--mm-black); margin: 0 0 var(--mm-s-3); }
.mm-mega__sub { font-family: var(--mm-font-body); font-size: 11px; line-height: 1.5; color: var(--mm-muted); margin: 0 0 var(--mm-s-5); max-width: 200px; }
.mm-mega__group { margin-bottom: var(--mm-s-5); }
.mm-mega__grouplabel { font-family: var(--mm-font-body); font-size: 9px; letter-spacing: .22em; text-transform: uppercase; color: #bbb; margin: 0 0 var(--mm-s-3); }
.mm-mega__link { display: flex; align-items: center; gap: var(--mm-s-2); padding: var(--mm-s-1) 0; font-family: var(--mm-font-body); font-size: 12px; font-weight: 300; color: #888; text-decoration: none; transition: color .15s ease; }
.mm-mega__link:hover { color: var(--mm-black); }
.mm-mega__dot { width: 6px; height: 6px; border-radius: 999px; flex-shrink: 0; transition: transform .15s ease; }
.mm-mega__link:hover .mm-mega__dot { transform: scale(1.4); }
.mm-mega__cats { flex: 1; display: grid; grid-template-columns: repeat(4,1fr); gap: var(--mm-s-6); }
.mm-mega__col-label { display: flex; align-items: center; gap: var(--mm-s-2); font-family: var(--mm-font-body); font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: #222; margin: 0 0 var(--mm-s-3); text-decoration: none; }
.mm-mega__col-label:hover { opacity: .7; }
.mm-mega__swatch { width: 12px; height: 12px; flex-shrink: 0; display: inline-block; }
.mm-mega__sublink { display: block; padding: var(--mm-s-1) 0; font-family: var(--mm-font-body); font-size: 12px; font-weight: 300; color: #888; text-decoration: none; }
.mm-mega__sublink:hover { color: var(--mm-black); }
@media (max-width: 1024px) { .mm-mega { display: none; } }

/* ==========================================================================
   17 · PHASE-1/* ==========================================================================
   17 · PHASE-1 LUXURY REFINEMENTS — motion · hairlines · type · whitespace
   ========================================================================== */
/* Scroll-reveal (progressive enhancement — visible without JS / reduced-motion) */
.js .mm-reveal { opacity: 0; transform: translateY(20px); transition: opacity .9s var(--ease-cinematic), transform .9s var(--ease-cinematic); }
.mm-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .mm-reveal { opacity: 1 !important; transform: none !important; transition: none !important; } }

/* Hairline discipline/* Hairline discipline — 0.5px structural borders */
.mm-review, .mm-stat, .mm-order-card, .mm-vieworder__items, .mm-vieworder__summary, .mm-settings__sec { border-width: .5px; }

/* Whitespace rhythm — more breathing room between sections */
.mm-social { padding-top: clamp(64px,8vw,88px); padding-bottom: clamp(64px,8vw,88px); }

/* Display weight + tracking — lighter, more luxury, consistent */
.mm-social__title { font-weight: 400; }

/* Product card — remove hover border (Next.js card has none); keep zoom + lift only */
.wd-product.product-grid-item:hover { border-color: transparent; }

/* ==========================================================================
   18 · PDP — brand styling for WoodMart-native Reviews · Tabs · Related
   (CSS only; WoodMart owns gallery/tabs/reviews/related architecture)
   ========================================================================== */
/* Tabs nav — editorial labels */
.single-product .wd-single-tabs .wd-nav-tabs-wrapper a,
.single-product .wc-tabs li a { font-family: var(--mm-font-body); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #888; }
.single-product .wd-single-tabs .wd-nav-tabs-wrapper li.active a,
.single-product .wc-tabs li.active a { color: var(--mm-black); }

/* Section titles (Reviews / Related / Complete-the-Look / reply) → Cormorant */
.single-product .related.products > h2,
.single-product .up-sells > h2,
.single-product #reviews h2,
.single-product .woocommerce-Reviews-title,
.single-product .wd-products-element-title .title,
.single-product .comment-reply-title { font-family: var(--mm-font-heading) !important; font-weight: 400; letter-spacing: -.01em; color: var(--mm-black); }

/* Star ratings → brand accent (filled) / border (empty) */
.single-product .star-rating::before { color: var(--mm-border); }
.single-product .star-rating span::before { color: var(--mm-accent); }
.single-product p.stars a::before,
.single-product p.stars a:hover::before { color: var(--mm-accent); }

/* Review list — hairlines + editorial author */
.single-product .commentlist li.review,
.single-product .commentlist li.comment { border-bottom: .5px solid var(--mm-border); }
.single-product .commentlist .meta strong,
.single-product .commentlist .woocommerce-review__author { font-family: var(--mm-font-body); font-weight: 500; letter-spacing: .04em; color: var(--mm-black); }
.single-product .commentlist .description p { font-family: var(--mm-font-heading); font-size: 16px; font-style: italic; color: #444; }

/* Review form → square brand fields + button */
.single-product #review_form input[type="text"],
.single-product #review_form input[type="email"],
.single-product #review_form textarea { border: 1px solid var(--mm-border); border-radius: 0; background: var(--mm-white); font-family: var(--mm-font-body); }
.single-product #respond .submit,
.single-product #review_form .submit { border-radius: 0 !important; text-transform: uppercase; letter-spacing: .1em; background: var(--mm-black) !important; color: #fff !important; border: none; }
.single-product #respond .submit:hover { background: var(--mm-accent) !important; }

.mm-reviews__zero { max-width: 680px; margin: var(--mm-s-6) auto var(--mm-s-4); text-align: center; color: #595959; }
.mm-reviews__zero-kicker { margin-bottom: var(--mm-s-2); font-family: var(--mm-font-heading); font-size: clamp(24px,3vw,34px); color: var(--mm-black); }

/* Related/up-sells spacing + sharp gallery thumbs */
.single-product .related.products,
.single-product .related-and-upsells { margin-top: clamp(40px,6vw,64px); }
.single-product .wd-single-product-images img,
.single-product .product-thumbnails img { border-radius: 0; }

/* ==========================================================================
   21 · FOOTER — luxury editorial footer (warm ivory) — HTML block .mm-ft
   Wordmark → 4-col grid (Shop/Support/Company/Newsletter) → social → trust →
   payments → copyright. Hides WoodMart's native copyright ("Based on WoodMart").
   ========================================================================== */
.wd-copyrights, .copyrights-wrapper { display: none !important; }

.mm-ft { background: #fafaf8; color: var(--mm-black); border-top: .5px solid var(--mm-border); font-family: var(--mm-font-body); padding: clamp(56px,7vw,88px) clamp(var(--mm-s-5),5vw,64px) 0; }
.mm-ft > * { max-width: 1280px; margin-left: auto; margin-right: auto; }

/* Row 1 — wordmark + tagline */
.mm-ft__top { text-align: center; padding-bottom: clamp(var(--mm-s-6),5vw,56px); border-bottom: .5px solid var(--mm-border); }
.mm-ft__wordmark { font-family: var(--mm-font-heading); font-weight: 300; font-size: clamp(30px,5vw,48px); letter-spacing: .08em; color: var(--mm-black); margin: 0 0 var(--mm-s-3); }
.mm-ft__tagline { font-size: 13px; font-weight: 300; line-height: 1.6; color: #666; max-width: 460px; margin: 0 auto; }

/* Row 2 — 4-column grid */
.mm-ft__grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1.4fr; gap: clamp(var(--mm-s-6),4vw,56px); padding: clamp(40px,5vw,56px) 0; }
.mm-ft__overline { font-family: var(--mm-font-heading); font-weight: 500; font-size: 16px; letter-spacing: .01em; color: var(--mm-black); margin: 0 0 var(--mm-s-4); }
.mm-ft__col > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; cursor: default; }
.mm-ft__col > summary::-webkit-details-marker { display: none; }
.mm-ft__col a { display: block; font-size: 13px; font-weight: 300; color: #555; text-decoration: none; padding: var(--mm-s-2) 0; transition: color .2s ease; }
.mm-ft__col a:hover { color: var(--mm-accent); }
.mm-ft__chev { display: none; color: var(--mm-gray); transition: transform .2s ease; }
.mm-ft__news-sub { font-size: 12px; font-weight: 300; line-height: 1.6; color: #666; max-width: 280px; margin: 0 0 var(--mm-s-4); }

/* Row 3 — social */
.mm-ft__social { display: flex; justify-content: center; gap: var(--mm-s-5); padding: clamp(var(--mm-s-6),4vw,40px) 0; border-top: .5px solid var(--mm-border); }
/* Brand-coloured SVG icons render at full colour (no dimming); subtle hover fade. */
.mm-ft__social a { display: flex; opacity: 1; transition: opacity .2s ease; }
.mm-ft__social a:hover { opacity: .7; }

/* Row 4 — trust strip */
.mm-ft__trust { list-style: none; margin: 0; padding: var(--mm-s-5) 0; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--mm-s-4) var(--mm-s-6); border-top: .5px solid var(--mm-border); }
.mm-ft__trust li { display: flex; align-items: center; gap: var(--mm-s-2); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #555; }
.mm-ft__trust li::before { content: "\2713"; color: var(--mm-accent); font-size: 11px; }

/* Row 5 — payment badges */
.mm-ft__pay { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--mm-s-2); padding: var(--mm-s-5) 0; border-top: .5px solid var(--mm-border); }
.mm-ft__pay-badge { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 24px; background: #fff; border: 1px solid #E5E5E5; border-radius: var(--mm-r-xs); padding: 0; overflow: hidden; }
.mm-ft__pay-badge svg { display: block; }

/* Row 6 — copyright */
.mm-ft__bottom { border-top: .5px solid var(--mm-border); padding: var(--mm-s-5) 0; text-align: center; }
.mm-ft__copy { font-size: 10px; letter-spacing: .06em; color: var(--mm-muted); margin: 0; }

/* Newsletter form (light) — shared with [mm_newsletter_form] */
.mm-fnews__form { display: flex; align-items: center; max-width: 320px; border-bottom: 1px solid var(--mm-black); }
.mm-fnews__form input { flex: 1; background: none; border: none; outline: none; color: var(--mm-black); font-family: var(--mm-font-body); font-size: 14px; padding: var(--mm-s-2) 0; }
.mm-fnews__form input::placeholder { color: var(--mm-muted); }
.mm-fnews__form button { background: none; border: none; color: var(--mm-black); cursor: pointer; padding: var(--mm-s-2); display: flex; }
.mm-fnews__form button:hover { color: var(--mm-accent); }
.mm-fnews__status { font-family: var(--mm-font-heading); font-style: italic; font-size: 15px; color: var(--mm-black); margin: var(--mm-s-3) 0 0; }

/* Mobile — accordions + full-width newsletter */
@media (max-width: 900px) {
	.mm-ft__grid { grid-template-columns: 1fr; gap: 0; padding: var(--mm-s-2) 0; }
	.mm-ft__col { border-bottom: .5px solid var(--mm-border); padding: var(--mm-s-1) 0; }
	.mm-ft__col > summary { cursor: pointer; padding: var(--mm-s-4) 0; }
	.mm-ft__col[open] .mm-ft__chev { transform: rotate(180deg); }
	.mm-ft__chev { display: block; }
	.mm-ft__news { padding: var(--mm-s-5) 0; border-bottom: .5px solid var(--mm-border); }
	.mm-fnews__form { max-width: none; }
}
@media (min-width: 901px) { .mm-ft__col > *:not(summary) { display: block !important; } }
/* Chrome 131+ hides closed <details> content in ::details-content; keep the footer columns open on desktop (.in fix). */
@media (min-width: 901px) { .mm-ft__col::details-content { content-visibility: visible; display: block; } }

/* ==========================================================================
   20 · TRUST STRIP ([mm_trust]) — editorial hairline-separated, luxury register
   Recreates storefront TrustChips (same messaging/icons) — sharp, muted, no colour.
   ========================================================================== */
.mm-trust { background: var(--mm-white); border-top: .5px solid var(--mm-border); border-bottom: .5px solid var(--mm-border); }
.mm-trust__inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: repeat(4,1fr); }
.mm-trust__item { display: flex; align-items: center; justify-content: center; gap: var(--mm-s-3); padding: var(--mm-s-5) var(--mm-s-4); border-left: .5px solid var(--mm-border); }
.mm-trust__item:first-child { border-left: none; }
.mm-trust__ic { color: var(--mm-muted); display: flex; flex-shrink: 0; }
.mm-trust__tx b { display: block; font-family: var(--mm-font-body); font-size: 12px; font-weight: 500; letter-spacing: .02em; color: var(--mm-black); }
.mm-trust__tx small { font-family: var(--mm-font-body); font-size: 10px; color: var(--mm-muted); }
@media (max-width: 768px) {
	.mm-trust__inner { grid-template-columns: repeat(2,1fr); }
	.mm-trust__item { justify-content: flex-start; padding: var(--mm-s-4) var(--mm-s-4); }
	.mm-trust__item:nth-child(odd) { border-left: none; }
	.mm-trust__item:nth-child(3), .mm-trust__item:nth-child(4) { border-top: .5px solid var(--mm-border); }
}


/* ==========================================================================
   22 · MEGA MENU — dynamic .mm-mega panels (functions.php) injected by JS into
   top-level li.mm-has-mega on desktop. White 1200px card, 4-column grid
   (children split · best-sellers · editorial image), hairline column rules,
   hover-reveal. Hidden < 1024px (WoodMart's mobile menu handles small screens).
   ========================================================================== */
.mm-mega { display: none; }                 /* hidden until desktop + injected   */
#mm-mega-store { display: none !important; } /* footer holding pen (pre-injection) */

@media ( min-width: 1024px ) {

	li.mm-has-mega { position: relative; }

	.mm-mega {
		display: block;
		position: absolute;
		top: 100%;
		left: 0;
		z-index: 9999;
		width: min( 1200px, 94vw );
		background: var(--mm-white);
		border: .5px solid var(--mm-border);
		box-shadow: 0 8px 32px rgba( 0, 0, 0, .08 );
		border-radius: 0;
		opacity: 0;
		visibility: hidden;
		transform: translateY( 8px );
		transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
		pointer-events: none;
	}
	.mm-mega * { box-sizing: border-box; }

	li.mm-has-mega:hover > .mm-mega,
	li.mm-has-mega:focus-within > .mm-mega {
		opacity: 1;
		visibility: visible;
		transform: translateY( 0 );
		pointer-events: auto;
	}

	/* 4-column grid: children (1+2) · best-sellers · editorial (200px image) */
	.mm-mega__inner {
		display: grid;
		grid-template-columns: minmax( 0, 1.5fr ) minmax( 0, 1fr ) 232px;
		padding: var(--mm-s-6);
	}

	.mm-mega__head {
		margin: 0 0 var(--mm-s-4);
		font-family: var(--mm-font-body);
		font-size: 9px;
		font-weight: 600;
		letter-spacing: .2em;
		text-transform: uppercase;
		color: var(--mm-muted);
	}

	/* Cols 1+2 — child categories */
	.mm-mega__cats { padding-right: var(--mm-s-6); }
	.mm-mega__links { list-style: none; margin: 0; padding: 0; }
	.mm-mega__links--split { columns: 2; column-gap: var(--mm-s-6); }
	.mm-mega__links li { margin: 0; break-inside: avoid; }
	.mm-mega__links a {
		display: block;
		padding: var(--mm-s-2) 0;
		font-family: var(--mm-font-body);
		font-size: 13px;
		font-weight: 300;
		line-height: 1.4;
		color: #555;
		text-decoration: none;
		transition: color .18s ease;
	}
	.mm-mega__links a:hover { color: var(--mm-accent); }
	.mm-mega__viewall {
		display: inline-block;
		margin-top: var(--mm-s-4);
		padding-bottom: 3px;
		font-family: var(--mm-font-body);
		font-size: 10px;
		letter-spacing: .14em;
		text-transform: uppercase;
		color: var(--mm-black);
		text-decoration: none;
		border-bottom: 1px solid var(--mm-black);
		transition: color .18s ease, border-color .18s ease;
	}
	.mm-mega__viewall:hover { color: var(--mm-accent); border-color: var(--mm-accent); }

	/* Col 3 — best-selling products (no add-to-cart) */
	.mm-mega__featured { padding: 0 var(--mm-s-6); border-left: .5px solid var(--mm-border); }
	.mm-mega__products { display: grid; grid-template-columns: repeat( 2, 1fr ); gap: var(--mm-s-4) var(--mm-s-4); }
	.mm-mega__product { display: block; text-decoration: none; }
	.mm-mega__thumb {
		display: block;
		width: 100%;
		aspect-ratio: 3 / 4;
		overflow: hidden;
		background: var(--mm-blush);
	}
	.mm-mega__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
	.mm-mega__pname {
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
		margin: var(--mm-s-2) 0 3px;
		font-family: var(--mm-font-body);
		font-size: 12px;
		font-weight: 300;
		line-height: 1.4;
		color: var(--mm-black);
	}
	.mm-mega__price { display: block; font-family: var(--mm-font-body); font-size: 11px; font-weight: 500; color: var(--mm-black); }
	.mm-mega__price del { color: var(--mm-muted); font-weight: 300; margin-right: var(--mm-s-1); }
	.mm-mega__price ins { text-decoration: none; }

	/* Col 4 — editorial image (200px, background confined to content box) */
	.mm-mega__editorial {
		position: relative;
		display: block;
		min-height: 300px;
		padding-left: var(--mm-s-6);
		border-left: .5px solid var(--mm-border);
		background-color: var(--mm-blush);
		background-size: cover;
		background-position: center;
		background-clip: content-box;
		background-origin: content-box;
		text-decoration: none;
		overflow: hidden;
	}
	.mm-mega__editorial-label {
		position: absolute;
		left: 32px;
		right: 0;
		bottom: 0;
		margin: 0;
		padding: var(--mm-s-4) var(--mm-s-4);
		font-family: var(--mm-font-heading);
		font-weight: 300;
		font-size: 18px;
		letter-spacing: .02em;
		color: #fff;
		background: linear-gradient( to top, rgba( 0, 0, 0, .5 ), rgba( 0, 0, 0, 0 ) );
	}
}


/* ==========================================================================
   11b · MY ACCOUNT — full-width shell · pill tabs · dashboard action cards ·
   tier benefits · recently-viewed (RN-app parity). Complements §11.
   ========================================================================== */
.mm-account { max-width: 1100px; margin: 0 auto; padding: clamp(var(--mm-s-5),4vw,88px) clamp(var(--mm-s-4),4vw,var(--mm-s-6)) 72px; }
.mm-account .woocommerce-MyAccount-content { min-width: 0; }

/* FULL-WIDTH FIX — WoodMart only neutralises WooCommerce's default float+width on
   the account nav/content INSIDE `.wd-content-layout` (woo-page-my-account.css:
   `.woocommerce-account .wd-content-layout :is(.woocommerce-MyAccount-navigation,
   .woocommerce-MyAccount-content){width:auto;float:none}`). Our my-account.php uses
   `.mm-account` (no `.wd-content-layout`), so that reset never runs and the content
   inherits a float/percentage width → collapses to a narrow column. Re-assert it. */
.mm-account .woocommerce-MyAccount-navigation,
.mm-account .woocommerce-MyAccount-content { float: none !important; width: 100% !important; max-width: 100% !important; }

/* WoodMart wraps nav+content in .wd-my-account-wrapper.wd-grid-g (CSS grid).
   The content cell collapses to ~15px because the grid assigns it a tiny track.
   Force the grid wrapper to block so content fills full width.
   Do NOT hide .woocommerce-MyAccount-navigation — that is our custom pill tab bar. */
.mm-account .wd-my-account-wrapper.wd-grid-g {
	display: block !important;
}
.mm-account .wd-my-account-wrapper.wd-grid-g .woocommerce-MyAccount-content {
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
}
.mm-account::after { content: ""; display: table; clear: both; }

/* OUTER-CONTAINER FIX — §11b only neutralised the inner content above; the OUTER
   WoodMart wrapper `#main-content.wd-content-layout.container` still imposes
   `max-width:var(--wd-container-w)` + side gutters, so the account page reads as a
   constrained column on mobile. Release it, scoped to the `.woocommerce-account`
   <body> class so no other page is affected. `.mm-account` keeps the 1100px desktop
   cap + gutters, so desktop is unchanged. 100% NOT 100vw — 100vw includes the
   vertical-scrollbar gutter → horizontal overflow. */
.woocommerce-account #main-content,
.woocommerce-account #main-content.wd-content-layout {
	--wd-container-w: 100%;
	width: 100% !important;
	max-width: 100% !important;
}
@media (max-width: 767px) {
	.woocommerce-account { overflow-x: hidden; }
	.woocommerce-account #main-content.wd-content-layout { padding-left: 0; padding-right: 0; }
}

@media (max-width: 767px) {
	.mm-account { overflow-x: hidden; padding-left: var(--mm-s-4); padding-right: var(--mm-s-4); }
	.mm-account .woocommerce-MyAccount-content input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
	.mm-account .woocommerce-MyAccount-content select,
	.mm-account .woocommerce-MyAccount-content textarea { width: 100% !important; max-width: 100%; box-sizing: border-box; }
	.mm-account .woocommerce-MyAccount-content .col2-set .col-1,
	.mm-account .woocommerce-MyAccount-content .col2-set .col-2,
	.mm-account .woocommerce-MyAccount-content .u-columns > div,
	.mm-account .woocommerce-MyAccount-content .woocommerce-Addresses > div { width: 100% !important; float: none !important; margin: 0 0 var(--mm-s-4); }
	.mm-account .woocommerce-MyAccount-content table.shop_table { display: block; width: 100%; overflow-x: auto; }
}

/* Pill tabs (navigation.php on sub-pages) */
.mm-acctabs { display: flex; gap: var(--mm-s-2); overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 var(--mm-s-6); padding-bottom: 2px; scrollbar-width: none; -ms-overflow-style: none; }
.mm-acctabs::-webkit-scrollbar { display: none; }
.mm-acctab { flex-shrink: 0; white-space: nowrap; padding: var(--mm-s-2) var(--mm-s-4); border: .5px solid var(--mm-border); font-family: var(--mm-font-body); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--mm-muted); text-decoration: none; transition: color .15s ease, border-color .15s ease, background-color .15s ease; }
.mm-acctab:hover { color: var(--mm-black); border-color: #ccc; }
.mm-acctab.is-active { background: var(--mm-black); color: #fff; border-color: var(--mm-black); }
/* margin-left:auto inside a horizontal-scroll flex track blows the track open on
   mobile (huge gap before Sign Out). Keep auto only on desktop. */
.mm-acctab--logout { margin-left: var(--mm-s-2); }
@media (min-width: 768px) { .mm-acctab--logout { margin-left: auto; } }

/* Dashboard hero meta */
.mm-dash__since { font-family: var(--mm-font-body); font-size: 11px; color: var(--mm-muted); margin: var(--mm-s-1) 0 0; }

/* Action cards (2x3) */
.mm-actions { display: grid; grid-template-columns: repeat(2,1fr); gap: var(--mm-s-3); margin: 0 0 48px; }
@media (min-width: 768px) { .mm-actions { grid-template-columns: repeat(3,1fr); } }
.mm-action-card { display: flex; align-items: flex-start; gap: var(--mm-s-4); padding: var(--mm-s-5); background: var(--mm-white); border: .5px solid var(--mm-border); text-decoration: none; transition: border-color .2s ease; }
.mm-action-card:hover { border-color: var(--mm-black); }
.mm-action-card__ic { color: var(--mm-black); flex-shrink: 0; line-height: 0; }
.mm-action-card__tx { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mm-action-card__t { font-family: var(--mm-font-body); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--mm-black); }
.mm-action-card__s { font-family: var(--mm-font-body); font-size: 11px; color: var(--mm-muted); }

/* Recently viewed rail */
/* grid-template-columns needs !important — WoodMart prints an INLINE
   grid-template-columns on `.products` (see §23 note) which otherwise outranks this
   rule and leaves dead space on the right. */
.mm-recent { width: 100%; }
.mm-recent .products { width: 100% !important; box-sizing: border-box; display: grid !important; grid-template-columns: repeat(2,1fr) !important; column-gap: var(--mm-s-4); row-gap: var(--mm-s-6); margin: 0 !important; padding: 0; list-style: none; }
@media (min-width: 768px) { .mm-recent .products { grid-template-columns: repeat(4,1fr) !important; } }
.mm-recent .products > .product, .mm-recent .products > li.product { width: auto !important; max-width: none !important; margin: 0 !important; float: none !important; }
@media (max-width: 767px) {
	.mm-recent {
		width: calc(100% + 32px) !important;
		margin-left: -16px !important;
		margin-right: -16px !important;
		padding-left: var(--mm-s-4);
		padding-right: var(--mm-s-4);
		box-sizing: border-box;
	}
	.mm-recent .wd-products-element {
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box;
	}
	.mm-recent .products {
		width: 100% !important;
		column-gap: var(--mm-s-3) !important;
	}
}

/* Policy links (dashboard "Information") — full-width tappable rows, clearly
   clickable (the old grey, no-underline inline-styled <a> read as plain text). */
.mm-dash-policies { display: flex; flex-direction: column; margin-bottom: var(--mm-s-2); }
.mm-policy-link {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: var(--mm-s-4) 0;
	border-bottom: 0.5px solid var(--mm-border);
	font-family: var(--mm-font-body);
	font-size: 13px;
	color: var(--mm-black);
	text-decoration: none;
}
.mm-policy-link:after {
	content: "→";
	color: var(--mm-muted);
}
.mm-policy-link:hover { color: var(--mm-accent); }
.mm-policy-link:hover:after { color: var(--mm-accent); }


/* Hide sticky Add-to-Bag bar/* Hide sticky Add-to-Bag bar while the mini-cart drawer is open */
.wd-dropdown-cart.wd-opened ~ .wd-sticky-btn-cont,
body:has(.wd-dropdown-cart.wd-opened) .wd-sticky-btn-cont,
body:has(.wd-cart-drawer.wd-opened) .wd-sticky-btn-cont,
body:has(.widget_shopping_cart.wd-opened) .wd-sticky-btn-cont {
    display: none !important;
    pointer-events: none !important;
}

/* Hide sticky Add-to-Bag bar while ANY cart drawer is open (corrected classes) */
body:has(.wd-dropdown-cart.wd-opened) .wd-sticky-btn-content,
body:has(.cart-widget-side.wd-opened) .wd-sticky-btn-content,
body:has(.widget_shopping_cart.wd-opened) .wd-sticky-btn-content,
body:has(.wd-cart-drawer.wd-opened) .wd-sticky-btn-content,
body:has(.wd-opened .widget_shopping_cart) .wd-sticky-btn-content {
    transform: translateY(120%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

/* ==========================================================================
   25 · CONTENT PAGES — editorial single-column (template-parts/
   mm-content-page.php: About, Contact, FAQ, policy pages). Off-white ground,
   hairline rules, no shadows. Mobile-first: full-width → 680px centred.
   ========================================================================== */
/* ── Policy / Contact / FAQ / About page — full-width layout override ──────
   WoodMart injects #main-content.wd-content-layout.container which imposes
   max-width + side gutters. Override for all custom mm page templates. */
.mm-policy-template #main-content,
.mm-policy-template #main-content.wd-content-layout,
.mm-contact-template #main-content,
.mm-contact-template #main-content.wd-content-layout,
.mm-faq-template #main-content,
.mm-faq-template #main-content.wd-content-layout,
.mm-about-template #main-content,
.mm-about-template #main-content.wd-content-layout {
	--wd-container-w: 100%;
	--wd-col-lg: 1 !important;
	--wd-gap-lg: 0px !important;
	--wd-gap-sm: 0px !important;
	width: 100% !important;
	max-width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	display: block !important;
	grid-template-columns: 1fr !important;
}
.mm-policy-template .wd-content-area,
.mm-contact-template .wd-content-area,
.mm-faq-template .wd-content-area,
.mm-about-template .wd-content-area {
	width: 100% !important;
	max-width: 100% !important;
	padding: 0 !important;
}
/* Inner page containers — the template <main>/<div> root elements collapse
   because they inherit from a grid/flex context with no explicit width. */
.mm-faq-template .mm-faq,
.mm-faq-template .mm-faq__inner,
.mm-contact-template .mm-contact,
.mm-contact-template .mm-contact__inner,
.mm-policy-template .mm-policy-page,
.mm-policy-template .mm-policy-page__inner,
.mm-about-template .mm-about,
.mm-about-template .mm-about__inner {
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
	display: block !important;
}
/* Hide WoodMart sidebar on all custom templates */
.mm-policy-template .widget-area,
.mm-contact-template .widget-area,
.mm-faq-template .widget-area,
.mm-about-template .widget-area { display: none !important; }

.mm-policy-page { background: var(--mm-offwhite); padding: clamp(56px,9vw,96px) clamp(var(--mm-s-5),5vw,var(--mm-s-6)) 120px; }
.mm-policy-page__inner { max-width: 680px; margin: 0 auto; }

/* Hero */
.mm-policy-page__hero { margin-bottom: clamp(40px,7vw,64px); }
.mm-policy-page__title { font-family: var(--mm-font-heading); font-weight: 300; font-size: clamp(34px,9vw,52px); line-height: 1.05; letter-spacing: -.01em; color: var(--mm-black); margin: 0 0 var(--mm-s-4); }
.mm-policy-page__subtitle { font-family: var(--mm-font-heading); font-weight: 300; font-size: clamp(16px,4.5vw,21px); line-height: 1.4; color: var(--mm-muted); margin: 0; }

/* Sections — small uppercase label + body, separated by hairline borders */
.mm-policy-page__sections { border-top: .5px solid var(--mm-border); }
.mm-policy-section { padding: clamp(var(--mm-s-5),5vw,var(--mm-s-6)) 0; border-bottom: .5px solid var(--mm-border); }
.mm-policy-section__label { font-family: var(--mm-font-body); font-size: 9px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--mm-muted); margin: 0 0 var(--mm-s-4); }
.mm-policy-section__body { font-family: var(--mm-font-body); font-weight: 300; font-size: 15px; line-height: 1.75; color: var(--mm-black); margin: 0; }

/* Inline contact line under the sections */
.mm-policy-page__contact { font-family: var(--mm-font-body); font-size: 13px; line-height: 1.7; color: var(--mm-muted); margin: clamp(var(--mm-s-6),6vw,48px) 0 0; }
.mm-policy-page__contact-link { color: var(--mm-black); text-decoration: underline; text-underline-offset: 3px; }
.mm-policy-page__contact-link:hover { color: var(--mm-accent); }

/* ===== Mobile Nav Panel Fix — force above page content ===== */
.mobile-nav.wd-side-hidden {
  z-index: 9999 !important;
}
.mobile-nav.wd-side-hidden.wd-opened {
  z-index: 9999 !important;
  transform: none !important;
  visibility: visible !important;
}
.wd-close-side.wd-fill {
  z-index: 9998 !important;
}
.wd-close-side.wd-opened,
body.wd-open-side .wd-close-side {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(0,0,0,0.5) !important;
  z-index: 9998 !important;
  opacity: 1 !important;
  visibility: visible !important;
}
/* Prevent page wrapper from creating stacking context that traps the nav */
.wd-page-wrapper.website-wrapper {
  z-index: auto !important;
}


/* ── §22 Footer full-width fix on shop/category archives ──────────────────────
   WoodMart's <main class="wd-content-layout"> is a CSS grid (8x 15px cols) on
   archive pages, which collapses .mm-ft to ~15px. Force the footer to break out
   of the grid and span the full viewport width. */
.archive .mm-ft,
.woocommerce-page .mm-ft,
.post-type-archive-product .mm-ft {
	grid-column: 1 / -1 !important;
	width: 100vw !important;
	max-width: 100vw !important;
	position: relative !important;
	left: 50% !important;
	right: 50% !important;
	margin-left: -50vw !important;
	margin-right: -50vw !important;
	box-sizing: border-box !important;
}
/* End §22 */


/* ── §23 Cart side panel above overlay (fix unclickable buttons) ──────────────
   WoodMart's .wd-close-side overlay (z-index 9998) was covering the cart side
   panel (z-index 500), so VIEW CART / CHECKOUT taps hit the overlay and closed
   the cart instead of navigating. Lift the panel above the overlay. */
.cart-widget-side.wd-opened,
.wd-cart-side.wd-opened,
.cart-widget-side.wd-right.wd-opened {
	z-index: 9999 !important;
}
/* End §23 */


/* ── §24 Account / my-account login side panel above overlay ──────────────────
   Same stacking bug as the mobile menu (above) and the cart panel (§23): the
   .wd-close-side overlay (z-index 9998) sat on top of the my-account login
   sidebar, so the form fields + LOG IN button received the overlay's taps instead
   of the panel's. Lift the opened panel above the overlay — the overlay stays at
   9998 (above page content, below the panel), so taps inside the panel hit the
   panel, not the overlay. */
.wd-side-hidden.wd-opened {
	z-index: 9999 !important;
}
.wd-header-my-account-side-opener + .wd-side-hidden,
.wd-dropdown-my-account.wd-side-hidden {
	z-index: 9999 !important;
}
/* End §24 */


/* ── §25 Bottom toolbar — iOS safe-area pin (no scroll gap) ───────────────────
   WoodMart's .wd-toolbar uses position:fixed; bottom:0 with NO safe-area inset.
   On iPhones with a home indicator, bottom:0 anchors to the physical screen edge
   while iOS's dynamic chrome/safe-area sits above it — so during a scroll/pull the
   bar appears to float up leaving a gap below. Mirror the env(safe-area-inset-bottom)
   handling already used on .mm-sticky-atc so the bar stays pinned above the home
   indicator. Scoped to the toolbar only — no layout/typography change. */
.wd-toolbar {
	bottom: 0 !important;
	padding-bottom: env(safe-area-inset-bottom, 0px) !important;
	box-sizing: border-box !important;
}
/* End §25 */

/* ==========================================================================
   §IN-1 · CART + CHECKOUT — full width, no sidebar (CSS fallback)
   functions.php already asks WoodMart for a full-width layout on these pages
   (woodmart_option 'main_layout' + _woodmart_main_layout page meta). These
   rules guarantee the result even if WoodMart still prints a sidebar column.
   ========================================================================== */
body.woocommerce-cart .widget-area,
body.woocommerce-checkout .widget-area,
body.woocommerce-cart .sidebar-container,
body.woocommerce-checkout .sidebar-container { display: none !important; }
body.woocommerce-cart #main-content.wd-content-layout,
body.woocommerce-checkout #main-content.wd-content-layout {
	--wd-col-lg: 1 !important;
	grid-template-columns: 1fr !important;
}
body.woocommerce-cart .wd-content-area,
body.woocommerce-checkout .wd-content-area {
	width: 100% !important;
	max-width: 100% !important;
	flex: 0 0 100% !important;
}

/* ==========================================================================
   IN-2 · "GLOBAL" TAG (globe icon) — product cards (content-product.php, top-left; the
   "-NN%" sale badge stays bottom-left) and PDP summary (priority-3 hook).
   ========================================================================== */
.wd-product.product-grid-item .product-element-top { position: relative; }
.mm-imported-tag { display: inline-flex; align-items: center; gap: var(--mm-s-1); font-family: var(--mm-font-body); font-size: 8px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; line-height: 1; color: var(--mm-black); background: rgba(255,255,255,.88); border: .5px solid var(--mm-border); padding: var(--mm-s-1) var(--mm-s-2); }
.wd-product.product-grid-item .mm-imported-tag { position: absolute; top: 10px; left: 10px; z-index: 2; pointer-events: none; }
.mm-imported-tag--pdp { font-size: 9px; padding: var(--mm-s-1) var(--mm-s-2); margin: 0 0 var(--mm-s-3); background: var(--mm-blush); border-color: transparent; }
.mm-imported-tag__ic { flex: 0 0 auto; width: 10px; height: 10px; }
.mm-imported-tag--pdp .mm-imported-tag__ic { width: 11px; height: 11px; }
