/*
 * Lumio Fashion — core stylesheet
 *
 * Every value here resolves to a token declared in theme.json and bridged to a
 * --lm-* custom property in inc/tokens.php. There are no literal brand colours,
 * fonts, radii or spacing values below: that is what makes the theme resellable
 * to a different fashion brand without touching CSS.
 */

/* --------------------------------------------------------------- 1. Reset */

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}

body {
	margin: 0;
	background: var(--lm-base);
	color: var(--lm-ink);
	font-family: var(--lm-font-body);
	font-size: var(--wp--preset--font-size--base);
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
img { font-style: italic; color: var(--lm-muted); }

button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }

h1, h2, h3, h4, h5, h6 {
	margin: 0;
	font-family: var(--lm-font-display);
	font-weight: 400;
	line-height: 1.15;
	letter-spacing: var(--wp--custom--tracking--tight, -0.015em);
}

/*
 * Heading sizes normally come from theme.json, which WordPress emits as
 * `:root :where(h1)`. A type selector cannot outrank that, so these never
 * fight the Site Editor — they only take over when the global-styles sheet is
 * missing, which is when a store would otherwise render every heading at the
 * browser default and look broken.
 */
h1 { font-size: var(--wp--preset--font-size--4xl, 3.5rem); }
h2 { font-size: var(--wp--preset--font-size--3xl, 2.625rem); }
h3 { font-size: var(--wp--preset--font-size--2xl, 2rem); }
h4 { font-size: var(--wp--preset--font-size--xl, 1.5rem); }
h5 { font-size: var(--wp--preset--font-size--lg, 1.0625rem); }
h6 { font-size: var(--wp--preset--font-size--md, 1rem); }

p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--lm-muted); }

/* ------------------------------------------------------- 2. Accessibility */

.lm-sr-only {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--lm-ink);
	outline-offset: 2px;
	border-radius: 1px;
}

.lm-skip {
	position: absolute;
	top: -100px; left: var(--lm-gutter);
	z-index: 200;
	background: var(--lm-ink);
	color: var(--lm-base);
	padding: 0.75rem 1.25rem;
	font-size: var(--wp--preset--font-size--sm);
	transition: top var(--lm-t-base) var(--lm-ease);
}
.lm-skip:focus { top: 0.75rem; color: var(--lm-base); }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* -------------------------------------------------------------- 3. Layout */

.lm-site { display: flex; flex-direction: column; min-height: 100vh; }
.lm-main { flex: 1 0 auto; }

.lm-wrap {
	width: 100%;
	max-width: var(--lm-wide);
	margin-inline: auto;
	padding-inline: var(--lm-gutter);
}
.lm-wrap--narrow { max-width: 760px; }

.lm-grid { display: grid; gap: var(--wp--preset--spacing--50); }

/* ---------------------------------------------------------- 4. Typography */

.lm-eyebrow {
	font-size: var(--wp--preset--font-size--xs);
	letter-spacing: var(--lm-track-widest);
	text-transform: uppercase;
	font-weight: 600;
	color: var(--lm-muted);
}

.lm-wordmark {
	/*
	 * A store's name can be two letters or a forty-character domain. Left
	 * unbounded, a long one grows past the header and pushes search, account
	 * and bag off the right edge of the screen — reported from a live install
	 * whose title was still the hosting subdomain. Cap it, shrink it with the
	 * viewport, and cut it off rather than let it break the header.
	 */
	margin: 0;
	min-width: 0;
	max-width: min(22rem, 100%);
	overflow: hidden;
	font-family: var(--lm-font-display);
	font-size: clamp(1.05rem, 0.6rem + 1.15vw, 1.75rem);
	letter-spacing: var(--lm-track-wide);
	text-transform: uppercase;
	white-space: nowrap;
	text-overflow: ellipsis;
	line-height: 1.2;
}
.lm-wordmark a { display: block; overflow: hidden; text-overflow: ellipsis; }

@media (min-width: 62rem) {
	.lm-wordmark { letter-spacing: var(--lm-track-widest); }
}

.lm-page-head { padding-block: var(--wp--preset--spacing--80, 4.5rem) var(--wp--preset--spacing--60, 2rem); }
/* A page with no title of its own starts flush, so a full-bleed hero sits
   directly under the header instead of after a band of empty space. */
.lm-page--untitled > .lm-page__layout { padding-top: 0; }

/*
 * Block rhythm on a storefront page. WooCommerce's product blocks carry their
 * own bottom margin and a following section heading adds its own top margin, so
 * the two stacked into a band of empty page between every row.
 */


/*
 * Full-bleed and wide blocks inside a page.
 *
 * The first attempt sized these with 100vw, which counts the vertical
 * scrollbar: the hero ended up about 15px wider than the page and the whole
 * storefront gained a horizontal scrollbar. Viewport units cannot see the
 * scrollbar, so this does it the other way round — the page container is no
 * longer constrained, and each block constrains itself. No viewport units, no
 * overflow, nothing for a script to measure.
 */
.lm-page:not(.lm-page--toc) .lm-page__layout,
.lm-post:not(.lm-post--toc) .lm-post__layout {
	max-width: none;
	padding-inline: 0;
}
.lm-page:not(.lm-page--toc) .lm-page__body > *,
.lm-post:not(.lm-post--toc) .lm-post__body > * {
	max-width: var(--wp--style--global--content-size, 760px);
	margin-inline: auto;
	padding-inline: var(--lm-gutter);
	box-sizing: border-box;
}
.lm-page:not(.lm-page--toc) .lm-page__body > .alignwide,
.lm-post:not(.lm-post--toc) .lm-post__body > .alignwide {
	max-width: var(--lm-wide);
}
.lm-page:not(.lm-page--toc) .lm-page__body > .alignfull,
.lm-post:not(.lm-post--toc) .lm-post__body > .alignfull {
	max-width: none;
	padding-inline: 0;
}
.lm-page__body > .alignfull:first-child { margin-top: 0; }
.lm-page-head__title { font-size: var(--wp--preset--font-size--4xl); }
.lm-page-head__desc,
.lm-page-head__updated {
	margin-top: var(--wp--preset--spacing--40);
	color: var(--lm-muted);
	font-size: var(--wp--preset--font-size--sm);
}

.lm-link-quiet {
	font-size: var(--wp--preset--font-size--sm);
	color: var(--lm-muted);
	text-decoration: underline;
}

/* ------------------------------------------------------------- 5. Buttons */

.lm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: var(--lm-h-lg);
	padding-inline: 2rem;
	border: 1px solid var(--lm-accent);
	border-radius: var(--lm-radius-control);
	background: var(--lm-accent);
	color: var(--lm-accent-text);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 700;
	letter-spacing: var(--lm-track-wider);
	text-transform: uppercase;
	text-align: center;
	transition: background var(--lm-t-base) var(--lm-ease), color var(--lm-t-base) var(--lm-ease);
}
.lm-btn:hover { background: color-mix(in srgb, var(--lm-accent) 85%, var(--lm-base)); color: var(--lm-accent-text); }
.lm-btn[disabled], .lm-btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }

.lm-btn--ghost { background: transparent; color: var(--lm-ink); border-color: var(--lm-ink); }
.lm-btn--ghost:hover { background: var(--lm-ink); color: var(--lm-base); }

.lm-btn--sm { min-height: var(--lm-h-sm); padding-inline: 1.25rem; }
.lm-btn--block { width: 100%; }

.lm-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: var(--lm-h-sm);
	padding-inline: 0.875rem;
	border: 1px solid var(--lm-line-strong);
	border-radius: var(--lm-radius-control);
	background: var(--lm-base);
	font-size: var(--wp--preset--font-size--sm);
}
.lm-chip:hover { border-color: var(--lm-ink); color: var(--lm-ink); }
.lm-chip[aria-current="true"], .lm-chip.is-active {
	background: var(--lm-ink); color: var(--lm-base); border-color: var(--lm-ink);
}

/* --------------------------------------------------------------- 6. Forms */

.lm-field,
input[type="text"], input[type="email"], input[type="url"], input[type="password"],
input[type="search"], input[type="number"], input[type="tel"], input[type="date"],
select, textarea {
	width: 100%;
	min-height: var(--lm-h-md);
	padding: 0.6rem 0.875rem;
	border: 1px solid var(--lm-line-strong);
	border-radius: var(--lm-radius-control);
	background: var(--lm-base);
	color: var(--lm-ink);
	font-size: var(--wp--preset--font-size--base);
}
textarea { min-height: 8rem; line-height: 1.7; resize: vertical; }

:is(input, select, textarea):focus {
	outline: 2px solid var(--lm-ink);
	outline-offset: -2px;
	border-color: var(--lm-ink);
}
:is(input, select, textarea)[aria-invalid="true"] {
	border-color: var(--lm-danger);
	outline-color: var(--lm-danger);
}

.lm-label, label {
	display: block;
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 600;
	letter-spacing: var(--lm-track-wide);
	margin-bottom: 0.4rem;
	color: var(--lm-ink-soft);
}

input[type="checkbox"], input[type="radio"] {
	width: 1.125rem; height: 1.125rem;
	min-height: 0;
	accent-color: var(--lm-accent);
}

/* Any control a finger has to hit gets a real target, even when it looks small. */
:is(button, a, summary, label):where(.lm-touch, .lm-header__action, .lm-drawer__close) {
	min-width: var(--lm-touch);
	min-height: var(--lm-touch);
}

/* ---------------------------------------------------- 7. Announcement bar */

.lm-announce {
	background: var(--lm-inverse);
	color: var(--lm-inverse-text);
	font-size: var(--wp--preset--font-size--xs);
	letter-spacing: var(--lm-track-wider);
	text-transform: uppercase;
	font-weight: 600;
}
.lm-announce__viewport {
	display: grid;
	place-items: center;
	min-height: 2.5rem;
	padding-inline: var(--lm-gutter);
	text-align: center;
}
.lm-announce__item { grid-area: 1 / 1; }
.lm-announce a { color: inherit; text-decoration: underline; }

/* -------------------------------------------------------------- 8. Header */

.lm-header {
	background: var(--lm-base);
	border-bottom: 1px solid var(--lm-line);
}
.lm-header--sticky { position: sticky; top: 0; z-index: 60; }

/*
 * The header is a named grid, not a flex row.
 *
 * A fashion store with seven top-level categories and a long name cannot fit
 * nav, wordmark and actions on one line: on a live install the categories ran
 * straight through the store name. So on desktop the header takes two rows —
 * wordmark centred above, navigation on its own line below — which is how a
 * shop with a real category list stays legible, and gives the brand a line of
 * its own instead of a slot squeezed between links.
 */
.lm-header__inner {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	grid-template-areas: "burger brand actions";
	align-items: center;
	gap: 0.75rem 1rem;
	min-height: var(--lm-header-h-m);
	max-width: var(--lm-wide);
	margin-inline: auto;
	padding-inline: var(--lm-gutter);
}
.lm-header__burger { grid-area: burger; justify-self: start; margin-inline-start: -0.6rem; }
.lm-header .lm-nav { grid-area: nav; min-width: 0; }
.lm-header__brand { grid-area: brand; justify-self: center; min-width: 0; max-width: 100%; }
.lm-header__actions { grid-area: actions; justify-self: end; margin-inline-end: -0.4rem; }

.lm-header__burger { display: inline-flex; align-items: center; justify-content: center; }

.lm-header__brand { display: flex; align-items: center; min-width: 0; }
.lm-header__brand img { max-height: 40px; width: auto; }

.lm-header__actions { display: flex; align-items: center; gap: 0.25rem; flex-shrink: 0; }
.lm-header__action {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.lm-cart-count {
	position: absolute;
	top: 0.35rem; inset-inline-end: 0.15rem;
	display: none;
	min-width: 1rem; height: 1rem;
	padding-inline: 0.2rem;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--lm-accent);
	color: var(--lm-accent-text);
	font-size: 0.625rem;
	font-weight: 700;
	line-height: 1rem;
	text-align: center;
}
.lm-cart-count.is-filled { display: block; }

.lm-header__back,
.lm-header__secure {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: var(--wp--preset--font-size--sm);
	color: var(--lm-muted);
}
.lm-header--checkout .lm-header__inner { justify-content: space-between; min-height: 5.25rem; }
.lm-header--checkout .lm-header__back,
.lm-header--checkout .lm-header__secure { flex: 1; }
.lm-header--checkout .lm-header__secure { justify-content: flex-end; }

/* ---------------------------------------------------------- 9. Navigation */

.lm-nav { display: none; }

.lm-nav__list {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0 2.1rem;
	min-width: 0;
}
.lm-header--inline .lm-nav__list { justify-content: flex-start; gap: 0 1.6rem; }
.lm-nav__list > li { position: relative; }
.lm-nav__list a {
	display: block;
	padding-block: 1.05rem;
	font-size: var(--wp--preset--font-size--xs, 0.75rem);
	font-weight: 500;
	letter-spacing: var(--lm-track-wider);
	text-transform: uppercase;
	white-space: nowrap;
	transition: color var(--lm-t-fast) var(--lm-ease);
}
.lm-nav__list a:hover { color: var(--lm-ink); }
.lm-nav__list > li > a::after {
	content: "";
	display: block;
	height: 1.5px;
	margin-top: 0.55rem;
	background: var(--lm-ink);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform var(--lm-t-base) var(--lm-ease);
}
.lm-nav__list > li:hover > a::after,
.lm-nav__list > li.current-menu-item > a::after,
.lm-nav__list > li.current-menu-ancestor > a::after { transform: scaleX(1); }

/* Mega menu: a second level opens as a full-width panel, a third level as a
   column inside it. Works with any depth the merchant configures. */
.lm-nav__list .sub-menu {
	position: absolute;
	top: 100%; left: 0;
	z-index: 50;
	min-width: 14rem;
	padding: 1.5rem;
	background: var(--lm-base);
	border: 1px solid var(--lm-line);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-4px);
	transition: opacity var(--lm-t-base) var(--lm-ease), transform var(--lm-t-base) var(--lm-ease), visibility var(--lm-t-base);
}
.lm-nav__list li:hover > .sub-menu,
.lm-nav__list li:focus-within > .sub-menu {
	opacity: 1; visibility: visible; transform: none;
}
.lm-nav__list .sub-menu a {
	padding-block: 0.5rem;
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
}
.lm-nav__list .menu-item-has-children.lm-mega > .sub-menu {
	left: 50%;
	width: min(var(--lm-wide), calc(100vw - var(--lm-gutter) * 2));
	transform: translateX(-50%) translateY(-4px);
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
	gap: 1.5rem 2.5rem;
	padding: 2.5rem;
}
.lm-nav__list .lm-mega:hover > .sub-menu,
.lm-nav__list .lm-mega:focus-within > .sub-menu { transform: translateX(-50%); }
.lm-nav__list .lm-mega .sub-menu .sub-menu {
	position: static;
	opacity: 1; visibility: visible; transform: none;
	padding: 0; border: 0; min-width: 0;
}

@media (min-width: 62rem) {
	.lm-header__burger { display: none; }
	.lm-nav { display: block; min-width: 0; }

	/* Two rows: wordmark and actions above, navigation on its own line. */
	.lm-header__inner {
		grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
		grid-template-areas:
			"burger brand actions"
			"nav    nav   nav";
		padding-block: 1.35rem 0;
		min-height: 0;
	}
	.lm-header__brand { justify-self: center; max-width: min(24rem, 100%); }
	.lm-header .lm-nav {
		justify-self: center;
		width: 100%;
		border-top: 1px solid var(--lm-line);
		margin-top: 1.15rem;
	}

	/* Inline layout keeps everything on one line for stores with few links. */
	.lm-header--inline .lm-header__inner {
		grid-template-areas: "brand nav actions";
		grid-template-columns: auto minmax(0, 1fr) auto;
		padding-block: 0;
		min-height: var(--lm-header-h);
	}
	.lm-header--inline .lm-header__brand { justify-self: start; }
	.lm-header--inline .lm-nav { border-top: 0; margin-top: 0; }
}

/* ------------------------------------------------------------- 10. Drawer */

.lm-drawer {
	width: 100%;
	max-width: none;
	max-height: none;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	overflow: visible;
}
.lm-drawer::backdrop { background: rgb(0 0 0 / 0.45); }

.lm-drawer__panel {
	position: fixed;
	display: flex;
	flex-direction: column;
	max-height: 100dvh;
	background: var(--lm-base);
	box-shadow: var(--wp--preset--shadow--drawer);
	transition: transform var(--lm-t-slow) var(--lm-ease);
}

.lm-drawer--right .lm-drawer__panel { inset-block: 0; inset-inline-end: 0; width: min(26rem, 92vw); transform: translateX(100%); }
.lm-drawer--left  .lm-drawer__panel { inset-block: 0; inset-inline-start: 0; width: min(22rem, 88vw); transform: translateX(-100%); }
.lm-drawer--full  .lm-drawer__panel { inset: 0; width: 100%; transform: translateY(2%); }
.lm-drawer--bottom-sheet .lm-drawer__panel {
	inset-inline: 0; bottom: 0;
	max-height: 86dvh;
	transform: translateY(100%);
}

.lm-drawer[open] .lm-drawer__panel { transform: none; }

.lm-drawer__grip {
	width: 2.4rem; height: 4px;
	margin: 0.6rem auto 0;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--lm-line-strong);
}

.lm-drawer__head {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 0.875rem var(--lm-gutter);
	border-bottom: 1px solid var(--lm-line);
}
.lm-drawer__title { flex: 1; font-size: var(--wp--preset--font-size--xl); }
.lm-drawer__close { display: inline-flex; align-items: center; justify-content: center; }

.lm-drawer__content { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: var(--lm-gutter); }
.lm-drawer__foot {
	display: flex; gap: 0.75rem;
	padding: 0.875rem var(--lm-gutter) calc(1.25rem + env(safe-area-inset-bottom));
	border-top: 1px solid var(--lm-line);
	box-shadow: var(--wp--preset--shadow--sticky);
	background: var(--lm-base);
}
.lm-drawer__foot > * { flex: 1; }

@media (min-width: 62rem) {
	.lm-drawer--full .lm-drawer__panel {
		inset: auto;
		top: 0; left: 50%;
		width: min(48rem, 90vw);
		transform: translateX(-50%) translateY(-1rem);
		max-height: 80dvh;
	}
	.lm-drawer--full[open] .lm-drawer__panel { transform: translateX(-50%); }
	.lm-drawer--bottom-sheet .lm-drawer__panel {
		inset: auto; top: 50%; left: 50%;
		width: min(42rem, 90vw);
		max-height: 80dvh;
		transform: translate(-50%, -45%);
	}
	.lm-drawer--bottom-sheet[open] .lm-drawer__panel { transform: translate(-50%, -50%); }
	.lm-drawer--bottom-sheet .lm-drawer__grip { display: none; }
}

/* ------------------------------------------------------- 11. Mobile nav */

.lm-mobile-nav__list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: var(--lm-touch);
	padding-block: 0.875rem;
	border-bottom: 1px solid var(--lm-line);
	font-size: var(--wp--preset--font-size--md);
}
.lm-mobile-nav__list .sub-menu { padding-inline-start: 1rem; }
.lm-mobile-nav__list .sub-menu a { font-size: var(--wp--preset--font-size--base); color: var(--lm-muted); }

.lm-mobile-nav__foot { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.25rem; }
.lm-mobile-nav__link {
	display: flex; align-items: center; gap: 0.75rem;
	min-height: var(--lm-touch);
	font-size: var(--wp--preset--font-size--base);
}

/* ------------------------------------------------------------- 12. Search */

.lm-search__form { position: relative; display: flex; gap: 0.5rem; }
.lm-search__icon { position: absolute; inset-inline-start: 0.875rem; top: 50%; transform: translateY(-50%); color: var(--lm-muted); }
.lm-search__input { padding-inline-start: 2.75rem; min-height: var(--lm-h-lg); }
.lm-search__submit {
	flex: 0 0 auto;
	padding-inline: 1.5rem;
	background: var(--lm-accent);
	color: var(--lm-accent-text);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 700;
	letter-spacing: var(--lm-track-wider);
	text-transform: uppercase;
	border-radius: var(--lm-radius-control);
}
.lm-search__chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.lm-search__popular, .lm-search__recent { margin-top: 2rem; }
.lm-search__results:not(:empty) { margin-top: 1.5rem; }

.lm-searchform { display: flex; gap: 0.5rem; }
.lm-searchform__submit {
	flex: 0 0 auto;
	display: inline-flex; align-items: center; justify-content: center;
	min-width: var(--lm-h-md);
	border: 1px solid var(--lm-ink);
	background: var(--lm-ink);
	color: var(--lm-base);
	border-radius: var(--lm-radius-control);
}

/* ------------------------------------------------------------ 13. Notices */

.lm-notice {
	display: flex;
	gap: 0.75rem;
	padding: 0.875rem 1rem;
	margin-block: 1rem;
	border: 1px solid var(--lm-line-strong);
	border-radius: var(--lm-radius-card);
	background: var(--lm-surface);
	font-size: var(--wp--preset--font-size--base);
}
.lm-notice__body { flex: 1; }
.lm-notice__body ul { display: flex; flex-direction: column; gap: 0.35rem; }
.lm-notice--error   { border-color: var(--lm-danger);  color: var(--lm-danger); background: color-mix(in srgb, var(--lm-danger) 6%, var(--lm-base)); }
.lm-notice--success { border-color: var(--lm-success); color: var(--lm-success); background: color-mix(in srgb, var(--lm-success) 7%, var(--lm-base)); }
.lm-notice .lm-icon { flex: 0 0 auto; margin-top: 0.15rem; }

/* -------------------------------------------------------- 14. Empty state */

.lm-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
	padding-block: var(--wp--preset--spacing--80);
	text-align: center;
}
.lm-empty__icon { color: var(--lm-muted); }
.lm-empty__title { font-size: var(--wp--preset--font-size--2xl); }
.lm-empty__text { max-width: 36ch; color: var(--lm-muted); }
.lm-empty .lm-btn { margin-top: 0.75rem; }

/* -------------------------------------------------------- 15. Breadcrumbs */

.lm-crumbs {
	border-bottom: 1px solid var(--lm-line);
	font-size: var(--wp--preset--font-size--sm);
	color: var(--lm-muted);
}
.lm-crumbs .lm-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; min-height: 3.25rem; }
.lm-crumbs__sep { color: var(--lm-line-strong); }
.lm-crumbs [aria-current="page"] { color: var(--lm-ink); font-weight: 600; }

/* -------------------------------------------------------- 16. Pagination */

.lm-pagination ul { display: flex; justify-content: center; gap: 0.35rem; margin-block: var(--wp--preset--spacing--70); }
.lm-pagination :is(a, span) {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: var(--lm-touch); min-height: var(--lm-touch);
	border: 1px solid transparent;
	font-size: var(--wp--preset--font-size--sm);
}
.lm-pagination a:hover { border-color: var(--lm-line-strong); color: var(--lm-ink); }
.lm-pagination .current { background: var(--lm-ink); color: var(--lm-base); }

/* --------------------------------------------------------- 17. Editorial */

.lm-posts {
	display: grid;
	gap: var(--wp--preset--spacing--60);
	grid-template-columns: 1fr;
}
@media (min-width: 40rem) { .lm-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 62rem) { .lm-posts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.lm-post-card__media { display: block; overflow: hidden; }
.lm-post-card__img {
	width: 100%;
	aspect-ratio: var(--wp--custom--ratio--editorial);
	object-fit: cover;
	transition: transform var(--lm-t-slow) var(--lm-ease);
}
.lm-post-card:hover .lm-post-card__img { transform: scale(1.03); }
.lm-post-card__body { padding-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.lm-post-card__title { font-size: var(--wp--preset--font-size--xl); }
.lm-post-card__excerpt { color: var(--lm-ink-soft); }
.lm-post-card__meta { font-size: var(--wp--preset--font-size--sm); color: var(--lm-muted); display: flex; gap: 0.5rem; }

.lm-article__head { padding-block: var(--wp--preset--spacing--80) var(--wp--preset--spacing--50); text-align: center; }
.lm-article__title { font-size: var(--wp--preset--font-size--4xl); margin-top: 0.75rem; }
.lm-article__meta { margin-top: 0.75rem; font-size: var(--wp--preset--font-size--sm); color: var(--lm-muted); display: flex; gap: 0.5rem; justify-content: center; }
.lm-article__hero { margin-block: var(--wp--preset--spacing--50); }
.lm-article__hero-img { width: 100%; aspect-ratio: var(--wp--custom--ratio--editorial); object-fit: cover; }
.lm-article__hero figcaption { margin-top: 0.75rem; text-align: center; font-size: var(--wp--preset--font-size--sm); color: var(--lm-muted); }
.lm-article__body { font-size: var(--wp--preset--font-size--lg); }
.lm-article__body > * + * { margin-top: 1.25rem; }
.lm-article__body h2 { font-size: var(--wp--preset--font-size--2xl); margin-top: 2.5rem; }
.lm-article__body h3 { font-size: var(--wp--preset--font-size--xl); margin-top: 2rem; }
.lm-article__body a { text-decoration: underline; }
.lm-article__body blockquote {
	margin-block: 2rem;
	padding-inline-start: 1.5rem;
	border-inline-start: 1px solid var(--lm-ink);
	font-family: var(--lm-font-display);
	font-size: var(--wp--preset--font-size--xl);
	line-height: 1.5;
}
.lm-article__tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-block: var(--wp--preset--spacing--60); }

/* ------------------------------------------------------- 18. Page + TOC */

.lm-page__layout { display: grid; gap: var(--wp--preset--spacing--60); padding-bottom: var(--wp--preset--spacing--80); }
.lm-page__body > * + * { margin-top: 1rem; }
.lm-page__body h2 { font-size: var(--wp--preset--font-size--2xl); margin-top: 2.75rem; scroll-margin-top: 6rem; }
.lm-page__body h3 { font-size: var(--wp--preset--font-size--lg); font-family: var(--lm-font-body); font-weight: 700; margin-top: 1.75rem; }
.lm-page__body a { text-decoration: underline; }
.lm-page__body ul { list-style: disc; padding-inline-start: 1.25rem; }
.lm-page__body ol { list-style: decimal; padding-inline-start: 1.25rem; }
.lm-page__body li + li { margin-top: 0.4rem; }
.lm-page__body table { width: 100%; border-collapse: collapse; margin-top: 1.25rem; font-size: var(--wp--preset--font-size--base); }
.lm-page__body :is(th, td) { text-align: start; padding: 0.875rem 0.625rem 0.875rem 0; border-bottom: 1px solid var(--lm-line); vertical-align: top; }
.lm-page__body th { border-bottom-color: var(--lm-ink); font-size: var(--wp--preset--font-size--xs); letter-spacing: var(--lm-track-wide); text-transform: uppercase; }

/*
 * Storefront rhythm.
 *
 * The rules above are written for a policy page: prose, tight leading, a 1rem
 * gap between paragraphs. A homepage built out of full-bleed bands and product
 * rows needs the opposite, and it needs to beat them, so it is scoped to a page
 * that is not a long text page.
 */
.lm-page:not(.lm-page--toc) .lm-page__body > * + * { margin-top: var(--wp--preset--spacing--70, 3rem); }
.lm-page:not(.lm-page--toc) .lm-page__body > .wp-block-cover + *,
.lm-page:not(.lm-page--toc) .lm-page__body > .wp-block-media-text + * { margin-top: var(--wp--preset--spacing--80, 4.5rem); }
.lm-page:not(.lm-page--toc) .lm-page__body > .wp-block-group + * { margin-top: 0; }
.lm-page:not(.lm-page--toc) .lm-page__body > .wp-block-cover,
.lm-page:not(.lm-page--toc) .lm-page__body > .wp-block-media-text { margin-block: var(--wp--preset--spacing--90, 6.25rem) 0; }
.lm-page:not(.lm-page--toc) .lm-page__body > .alignfull:first-child { margin-top: 0; }
.lm-page:not(.lm-page--toc) .lm-page__body h2 { margin-top: 0; }
.lm-page:not(.lm-page--toc) .lm-page__body a { text-decoration: none; }
.lm-page:not(.lm-page--toc) .lm-page__body .wc-block-grid__products { margin-block: 0; }

.lm-toc { font-size: var(--wp--preset--font-size--sm); }
.lm-toc__title {
	padding-bottom: 0.75rem;
	border-bottom: 1px solid var(--lm-ink);
	font-size: var(--wp--preset--font-size--xs);
	letter-spacing: var(--lm-track-wider);
	text-transform: uppercase;
	font-weight: 600;
}
.lm-toc__list a { display: block; padding-block: 0.7rem; border-bottom: 1px solid var(--lm-line); color: var(--lm-ink-soft); }
.lm-toc__list a:hover { color: var(--lm-ink); }

@media (min-width: 62rem) {
	.lm-page--toc .lm-page__layout { grid-template-columns: 14rem minmax(0, 1fr); gap: var(--wp--preset--spacing--80); }
	.lm-page--toc .lm-toc { position: sticky; top: calc(var(--lm-header-h) + 1.5rem); align-self: start; }
	.lm-page--toc .lm-page__body { max-width: 46rem; }
}

/* ----------------------------------------------------------------- 19. 404 */

.lm-404 { text-align: center; padding-block: var(--wp--preset--spacing--90); }
.lm-404__code { font-family: var(--lm-font-display); font-size: var(--wp--preset--font-size--5xl); color: var(--lm-line-strong); line-height: 1; }
.lm-404__title { font-size: var(--wp--preset--font-size--3xl); margin-top: 1rem; }
.lm-404__text { margin-top: 0.75rem; color: var(--lm-ink-soft); }
.lm-404__search { margin-top: 2rem; }
.lm-404__chips { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-top: 1.5rem; }
.lm-404__suggest { padding-block: var(--wp--preset--spacing--70); }

/* -------------------------------------------------------------- 20. Footer */

.lm-footer { background: var(--lm-inverse); color: var(--lm-inverse-text); margin-top: var(--wp--preset--spacing--90); }

/* Reassurance row. Navigation, not promises: each card points at the page that
   states the store's real terms. */
.lm-footer__assure { border-bottom: 1px solid rgb(255 255 255 / 0.13); }
.lm-footer__assure-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1px;
	padding-block: 0;
}
@media (min-width: 40rem) { .lm-footer__assure-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 62rem) { .lm-footer__assure-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.lm-assure {
	display: flex;
	align-items: flex-start;
	gap: 0.85rem;
	padding: 1.6rem 1.5rem 1.6rem 0;
	color: var(--lm-inverse-text);
	text-decoration: none;
}
@media (min-width: 40rem) {
	.lm-assure + .lm-assure { border-inline-start: 1px solid rgb(255 255 255 / 0.13); padding-inline-start: 1.5rem; }
}
.lm-assure__icon { color: var(--lm-base); flex-shrink: 0; margin-top: 0.1rem; opacity: 0.9; }
.lm-assure__text { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.lm-assure__title {
	font-size: var(--wp--preset--font-size--sm, 0.8125rem);
	font-weight: 500;
	letter-spacing: var(--lm-track-wide);
	color: var(--lm-base);
}
.lm-assure__desc { font-size: var(--wp--preset--font-size--xs, 0.75rem); line-height: 1.6; opacity: 0.72; }
a.lm-assure:hover .lm-assure__title { text-decoration: underline; text-underline-offset: 3px; }

/* Newsletter */
.lm-footer__news-copy { margin-top: 1rem; font-size: var(--wp--preset--font-size--sm, 0.8125rem); line-height: 1.75; opacity: 0.78; }
.lm-subscribe {
	display: flex;
	margin-top: 1.1rem;
	border: 1px solid rgb(255 255 255 / 0.28);
	border-radius: var(--lm-radius-control);
	background: transparent;
}
.lm-subscribe .lm-subscribe__input,
.lm-subscribe__input {
	flex: 1 1 auto;
	min-width: 0;
	padding: 0.85rem 0.9rem;
	border: 0;
	background: transparent;
	color: var(--lm-base);
	font-size: var(--wp--preset--font-size--sm, 0.8125rem);
}
.lm-subscribe__input::placeholder { color: rgb(255 255 255 / 0.5); }
.lm-subscribe__input:focus-visible { outline: 2px solid var(--lm-base); outline-offset: -2px; }
.lm-subscribe .lm-subscribe__btn,
.lm-subscribe__btn {
	flex: 0 0 auto;
	padding-inline: 1.3rem;
	background: var(--lm-base);
	color: var(--lm-ink);
	font-size: var(--wp--preset--font-size--xs, 0.75rem);
	font-weight: 500;
	letter-spacing: var(--lm-track-wider);
	text-transform: uppercase;
}
.lm-footer__news-legal { margin-top: 0.8rem; font-size: var(--wp--preset--font-size--xs, 0.75rem); line-height: 1.7; opacity: 0.6; }
.lm-footer__news-legal a { text-decoration: underline; }

/* Social */
.lm-social { display: flex; gap: 0.5rem; margin-top: 1.4rem; }
.lm-social__link {
	width: var(--lm-touch);
	height: var(--lm-touch);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid rgb(255 255 255 / 0.22);
	border-radius: 50%;
	transition: border-color var(--lm-t-base) var(--lm-ease);
}
.lm-social__link:hover { border-color: var(--lm-base); }
.lm-footer__grid {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--60) var(--wp--preset--spacing--70);
	padding-block: var(--wp--preset--spacing--80) var(--wp--preset--spacing--60);
}
.lm-footer__brand { flex: 1 1 17rem; max-width: 26rem; min-width: 0; }
.lm-footer__col { flex: 0 1 9.5rem; min-width: 0; }
.lm-footer__news { flex: 1 1 17rem; max-width: 23rem; min-width: 0; }
@media (min-width: 62rem) { .lm-footer__news { margin-inline-start: auto; } }

.lm-footer .lm-wordmark, .lm-footer a { color: var(--lm-inverse-text); }
.lm-footer a:hover { color: var(--lm-base); }
.lm-footer__about, .lm-footer__contact { margin-top: 1rem; font-size: var(--wp--preset--font-size--base); font-style: normal; line-height: 1.8; }
.lm-footer__col-title {
	font-size: var(--wp--preset--font-size--xs, 0.75rem);
	letter-spacing: var(--lm-track-wider);
	text-transform: uppercase;
	font-weight: 600;
	color: var(--lm-base);
}
.lm-footer__list { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.7rem; font-size: var(--wp--preset--font-size--base); }

.lm-footer__bar { border-top: 1px solid rgb(255 255 255 / 0.14); }
.lm-footer__bar-inner {
	display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem;
	padding-block: 1.5rem;
	font-size: var(--wp--preset--font-size--sm);
}
.lm-footer__legal-list { display: flex; flex-wrap: wrap; gap: 1.25rem; }

/* Designer credit. Sits at the end of the bottom bar, quieter than the policy
   links next to it — a credit that shouts competes with the legal navigation
   a shopper actually needs. */
.lm-footer__credit {
	flex: 0 0 auto;
	margin-left: auto;
	opacity: 0.72;
	font-size: var(--wp--preset--font-size--sm);
}
.lm-footer__credit-link { border-bottom: 1px solid rgb(255 255 255 / 0.28); padding-bottom: 1px; }
.lm-footer__credit-link:hover,
.lm-footer__credit-link:focus-visible { opacity: 1; border-bottom-color: currentColor; }

@media (max-width: 47.9375rem) {
	.lm-footer__credit { margin-left: 0; width: 100%; }
}
.lm-footer__pay { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1.5rem; }
.lm-footer__pay-item {
	padding: 0.3rem 0.55rem;
	border: 1px solid rgb(255 255 255 / 0.3);
	border-radius: var(--wp--custom--radius--sm);
	font-size: 0.625rem;
	letter-spacing: var(--lm-track-wide);
	font-weight: 700;
	text-transform: uppercase;
}
.lm-footer--checkout { margin-top: 0; background: var(--lm-base); color: var(--lm-muted); border-top: 1px solid var(--lm-line); }
.lm-footer--checkout a { color: var(--lm-muted); }
.lm-footer--checkout a:hover { color: var(--lm-ink); }

/* --------------------------------------------------------------- 21. Print */

@media print {
	.lm-header, .lm-footer, .lm-announce, .lm-drawer, .lm-skip, .lm-toc { display: none !important; }
	body { color: #000; background: #fff; }
	.lm-page__body a::after { content: " (" attr(href) ")"; font-size: 0.8em; }
}

/* ------------------------------------------------- 22. Storefront bands
 *
 * The sections a shop needs in order to be believed: what you promise, why you
 * are worth buying from, what customers said, and the four questions that stop
 * a purchase. Each is a shortcode, so a merchant keeps the ones that suit them.
 */

.lm-band { margin-block: var(--wp--preset--spacing--90, 6.25rem); }
.lm-band__title { font-size: var(--wp--preset--font-size--3xl, 2.625rem); margin-top: 0.5rem; }
.lm-band__intro { margin-top: 1rem; max-width: 46ch; color: var(--lm-muted); }

/* Reassurance strip, light — the version that sits under a hero. */
.lm-band--assure { margin-block: 0; background: var(--lm-surface); border-block: 1px solid var(--lm-line); }
.lm-assure-row { display: grid; grid-template-columns: 1fr; gap: 0; }
@media (min-width: 40rem) { .lm-assure-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 62rem) { .lm-assure-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.lm-assure--light { color: var(--lm-ink); padding-block: 1.6rem; }
.lm-assure--light .lm-assure__icon { color: var(--lm-ink); opacity: 1; }
.lm-assure--light .lm-assure__title { color: var(--lm-ink); }
.lm-assure--light .lm-assure__desc { color: var(--lm-muted); opacity: 1; }
@media (min-width: 40rem) {
	.lm-assure-row > .lm-assure + .lm-assure { border-inline-start: 1px solid var(--lm-line); padding-inline-start: 1.5rem; }
}

/* Three reasons to buy here. */
.lm-usp-grid { display: grid; gap: var(--wp--preset--spacing--60, 2rem); }
@media (min-width: 48rem) { .lm-usp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--wp--preset--spacing--70, 3rem); } }
.lm-usp { display: flex; flex-direction: column; gap: 0.85rem; }
.lm-usp__icon { color: var(--lm-ink); }
.lm-usp__title { font-size: var(--wp--preset--font-size--xl, 1.5rem); }
.lm-usp__body { color: var(--lm-muted); line-height: 1.8; }

/* The questions that stop a purchase. */
.lm-faq { display: grid; gap: var(--wp--preset--spacing--60, 2rem); }
@media (min-width: 62rem) { .lm-faq { grid-template-columns: 22rem minmax(0, 1fr); gap: var(--wp--preset--spacing--80, 4.5rem); align-items: start; } }
.lm-faq__title { font-size: var(--wp--preset--font-size--2xl, 2rem); margin-top: 0.5rem; }
.lm-faq__intro { margin-block: 1rem 1.5rem; color: var(--lm-muted); line-height: 1.8; }
.lm-faq__item { border-bottom: 1px solid var(--lm-line); }
.lm-faq__item:first-child { border-top: 1px solid var(--lm-line); }
.lm-faq__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: var(--lm-touch);
	padding-block: 1.25rem;
	cursor: pointer;
	list-style: none;
	font-size: var(--wp--preset--font-size--lg, 1.0625rem);
	font-family: var(--lm-font-display);
}
.lm-faq__q::-webkit-details-marker { display: none; }
.lm-faq__q::after { content: "+"; font-size: 1.25rem; line-height: 1; color: var(--lm-muted); }
.lm-faq__item[open] .lm-faq__q::after { content: "\2212"; }
.lm-faq__a { padding-bottom: 1.4rem; color: var(--lm-muted); line-height: 1.85; max-width: 62ch; }
.lm-faq__link { display: inline-block; margin-top: 0.75rem; text-decoration: underline; color: var(--lm-ink); font-size: var(--wp--preset--font-size--sm, 0.8125rem); }

/* Real reviews. */
.lm-quote-grid { display: grid; gap: var(--wp--preset--spacing--50, 1.5rem); margin-top: var(--wp--preset--spacing--60, 2rem); }
@media (min-width: 48rem) { .lm-quote-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.lm-quote {
	margin: 0;
	padding: var(--wp--preset--spacing--60, 2rem);
	background: var(--lm-surface);
	border: 1px solid var(--lm-line);
	display: flex;
	flex-direction: column;
	gap: 1rem;
}
.lm-quote__stars { color: var(--lm-ink); letter-spacing: 0.15em; font-size: 0.9rem; }
.lm-quote__text { margin: 0; font-size: var(--wp--preset--font-size--lg, 1.0625rem); line-height: 1.75; }
.lm-quote__by { display: flex; flex-direction: column; gap: 0.25rem; margin-top: auto; }
.lm-quote__name { font-weight: 500; font-size: var(--wp--preset--font-size--sm, 0.8125rem); }
.lm-quote__meta { font-size: var(--wp--preset--font-size--xs, 0.75rem); color: var(--lm-muted); }

/* Follow strip. */
.lm-band--social { text-align: center; }
.lm-band--social .lm-band__intro { margin-inline: auto; }
.lm-band--social .lm-btn { margin-top: 1.5rem; }
