/*
 * Base styles used on every page: brand fonts and background for the whole
 * site (including Kadence's own pages), page width, buttons, eyebrows,
 * focus rings, reduced motion. Loaded after tokens.css.
 */

/* Kadence reads these variables for its own text, so shop pages, cart and
 * account pages use the self-hosted brand fonts too. */
:root {
	--global-body-font-family: var(--font-body);
	--global-heading-font-family: var(--font-heading);
	--global-primary-nav-font-family: var(--font-body);
}

/* "hidden" always wins, even over a class that sets display (as in the design). */
[hidden] {
	display: none !important;
}

body {
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 16.5px;
	line-height: 1.6;
}

/* Kadence's content wrapper sits between our header and footer. */
body #inner-wrap {
	overflow: visible;
}

.mn-wrap {
	max-width: 1280px;
	margin: 0 auto;
	padding-inline: 24px;
}

.mn-h,
.mn-section h2,
.mn-section h3 {
	margin: 0;
	font-family: var(--font-heading);
	font-weight: 600;
	line-height: 1.08;
	color: var(--ink);
}

.mn-eyebrow {
	margin: 0 0 10px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--lime-deep);
}

/* Buttons: colour sweeps in from the left on hover. */
.mn-btn {
	position: relative;
	isolation: isolate;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 50px;
	padding: 13px 28px;
	overflow: hidden;
	border: 0;
	border-radius: 999px;
	font: 600 16px/1.2 var(--font-body);
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.3s var(--ease-spring), color 0.35s var(--ease);
}
.mn-btn::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	transform: translateX(-101%);
	transition: transform 0.45s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
	.mn-btn:hover {
		transform: translateY(-2px);
	}
}
.mn-btn:focus-visible::before {
	transform: none;
}
@media (hover: hover) and (pointer: fine) {
	.mn-btn:hover::before {
		transform: none;
	}
}
.mn-btn .mn-arr {
	transition: transform 0.35s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
	.mn-btn:hover .mn-arr {
		transform: translateX(4px);
	}
}
.mn-btn--lime {
	background: var(--lime);
	color: var(--ink);
}
.mn-btn--lime::before {
	background: var(--ink);
}
.mn-btn--lime:focus-visible {
	color: var(--lime);
}
@media (hover: hover) and (pointer: fine) {
	.mn-btn--lime:hover {
		color: var(--lime);
	}
}
.mn-btn--ghost {
	background: var(--white);
	color: var(--ink);
	box-shadow: inset 0 0 0 1.5px var(--sage-2);
}
.mn-btn--ghost::before {
	background: var(--lime-soft);
}

/* One visible focus ring for everything we build. */
.mn-top a:focus-visible,
.mn-top button:focus-visible,
.mn-footer a:focus-visible,
.mn-section a:focus-visible,
.mn-section button:focus-visible,
.mn-btn:focus-visible {
	outline: 3px solid var(--ink);
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	.mn-btn,
	.mn-btn::before,
	.mn-btn .mn-arr {
		transition: none;
	}
}

/* ---------- Pre-launch mode (Minali settings → General) ---------- */

/* "First drop coming soon" on empty listings. */
.mn-soon {
	max-width: 560px;
	margin: 32px auto;
	padding: 32px 24px;
	border: 1px solid var(--line);
	border-radius: 18px;
	background: var(--white);
	text-align: center;
}
.mn-soon h2 {
	margin: 0 0 8px;
	color: var(--ink);
	font: 600 clamp(26px, 4vw, 34px)/1.15 var(--font-heading);
}
.mn-soon p {
	margin: 0 0 20px;
	color: var(--muted);
}

/* The note on the homepage after being sent away from the cart or checkout. */
.mn-soon-note {
	padding: 12px 16px;
	background: var(--lime-soft);
	color: var(--ink);
	text-align: center;
}
.mn-soon-note p {
	margin: 0;
}
.mn-soon-note a {
	color: var(--lime-deep);
	font-weight: 600;
}

/* "Be first to know when we open." on the register form. */
.mn-soon-reg {
	color: var(--lime-deep);
	font-weight: 500;
}

/* ---------- My account ---------- */

/* Empty states ("No order has been made yet." / "No downloads available yet."
   + Browse products): the message on its own line and the button 16px below
   it. WooCommerce floats the button right, over the text on phones. */
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info:has(.button) {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
}
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info:has(.button)::before,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info:has(.button)::after {
	content: none; /* Float clearers, not needed (they'd add extra gaps). */
}
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	float: none;
	min-height: 48px;
	margin: 0;
}
@media (max-width: 900px) {
	.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info .button {
		align-self: stretch; /* Full width on phones. */
	}
}

/* ---------- "Measurements coming soon" (size group switched off, Round C) ---------- */
.mn-soon-note {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
	margin: 12px 0;
	padding: 12px 14px;
	border-radius: 14px;
	background: var(--lime-soft);
	color: var(--ink);
}
.mn-soon-note p {
	flex: 1 1 220px;
	margin: 0;
	font-size: 15px;
}
.mn-soon-note__btn {
	min-height: 44px;
}

/* ---------- New logo (Round D): the lady at her sewing machine + MINALI Luxe Wear ---------- */
/* Only the height is set, so the drawing is never stretched. "img." / "body img." make these beat
   WooCommerce pages' ".woocommerce-page img { height: auto }" (Kadence), which made the logo
   (and so the whole header) taller on shop, category, product, cart, checkout and account pages. */
body img.mn-logo__img {
	display: block;
	width: auto;
	height: 64px;
	max-width: 100%;
	transition: height 0.4s var(--ease);
}
.mn-top.is-scrolled img.mn-logo__img {
	height: 54px;
}
.mn-logo {
	align-items: center;
}
.mn-footer img.mn-logo__img {
	height: 66px;
}
.mn-ck-top img.mn-logo__img {
	height: 44px;
}
.mn-soon__logo img.mn-logo__img {
	height: 58px;
}
@media (hover: hover) and (pointer: fine) {
	.mn-logo:hover img.mn-logo__img {
		opacity: 0.85;
	}
}
@media (max-width: 900px) {
	body img.mn-logo__img,
	.mn-top.is-scrolled img.mn-logo__img {
		height: 46px;
	}
	.mn-soon__logo img.mn-logo__img {
		height: 46px;
	}
}
@media (max-width: 359px) {
	body img.mn-logo__img,
	.mn-top.is-scrolled img.mn-logo__img {
		height: 38px;
	}
}
@media (prefers-reduced-motion: reduce) {
	.mn-logo__img {
		transition: none;
	}
}

/* ---------- Switched-off collection: "Coming soon" ---------- */
body.mn-collection-soon {
	background: var(--bg);
}
.mn-soonpage {
	padding: 56px 0 72px;
	background: var(--bg);
}
.mn-soonpage__card {
	max-width: 620px;
	margin: 0 auto;
	padding: 44px 28px;
	border: 1px solid var(--line);
	border-radius: 24px;
	background: var(--white);
	text-align: center;
}
.mn-soonpage__eyebrow {
	margin: 0 0 8px;
	color: var(--lime-deep);
	font: 600 13px/1.4 var(--font-body);
	letter-spacing: 0.18em;
	text-transform: uppercase;
}
.mn-soonpage__title {
	margin: 0 0 14px;
	color: var(--ink);
	font: 600 clamp(36px, 7vw, 52px)/1.1 var(--font-heading);
}
.mn-soonpage__text {
	margin: 0 auto 26px;
	max-width: 34ch;
	color: var(--text);
	font-size: 17px;
	line-height: 1.6;
}
.mn-soonpage__btns {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
}
@media (max-width: 899px) {
	.mn-soonpage {
		padding: 32px 0 48px;
	}
	.mn-soonpage__card {
		padding: 32px 20px;
	}
	.mn-soonpage__btns .mn-btn {
		width: 100%;
	}
}
