/* ==========================================================================
   Mukka Sports — main stylesheet
   Tokens come from the Customizer as CSS variables (inc/customizer-css.php).
   Breakpoint: 992px (desktop navigation) per the layout blueprint.
   ========================================================================== */

:root {
	--mk-ink: #010101;
	--mk-indigo: #C1282D;
	--mk-accent: #C1282D;
	--mk-accent-contrast: #FFFFFF;
	--mk-stitch: #C1282D;
	--mk-surface: #F4F4F4;
	--mk-text: #1A1A1A;
	--mk-muted: #5E5E5E;
	--mk-white: #FFFFFF;
	--mk-line: rgba(1, 1, 1, .12);
	--mk-font-heading: "Saira Condensed", "Arial Narrow", system-ui, sans-serif;
	--mk-font-body: "Source Sans 3", system-ui, sans-serif;
	--mk-container: 1320px;
	--mk-base-size: 17px;
	--mk-gutter: clamp(16px, 4vw, 32px);
	--mk-header-h: 84px;
	--mk-shadow: 0 14px 36px rgba(1, 1, 1, .14);
	--mk-accent-hover: color-mix(in srgb, var(--mk-accent) 85%, #000);
	--mk-weave: repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 2px, transparent 2px 6px),
		repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 2px, transparent 2px 6px);
	--mk-sticky-top: var(--wp-admin--admin-bar--height, 0px);

	/* Design tokens: every component reads these, so the site stays consistent. */
	--mk-radius-xs: 4px;      /* badges, chips */
	--mk-radius-sm: 6px;      /* buttons, inputs */
	--mk-radius: 10px;        /* cards, notices */
	--mk-radius-lg: 14px;     /* panels, modals */
	--mk-radius-pill: 999px;

	--mk-space-1: 4px; --mk-space-2: 8px; --mk-space-3: 12px; --mk-space-4: 16px;
	--mk-space-5: 24px; --mk-space-6: 32px; --mk-space-7: 48px; --mk-space-8: 64px;

	--mk-fs-h1: clamp(2.2rem, 4.2vw, 3.5rem);
	--mk-fs-h2: clamp(1.75rem, 3vw, 2.5rem);
	--mk-fs-h3: clamp(1.35rem, 2vw, 1.75rem);
	--mk-fs-h4: 1.3rem;
	--mk-fs-h5: 1.12rem;
	--mk-fs-h6: 1rem;
	--mk-fs-lead: 1.2rem;
	--mk-fs-small: .875rem;
	--mk-fs-xs: .78rem;

	--mk-btn-h: 46px; --mk-btn-h-sm: 38px; --mk-btn-h-lg: 54px;
	--mk-input-h: 48px;
	--mk-focus: 0 0 0 3px color-mix(in srgb, var(--mk-ink) 15%, transparent);
	--mk-success: #1f8a4c; --mk-success-bg: #e9f6ee;
	--mk-info: #1d3f8f;    --mk-info-bg: #e8effd;
	--mk-warning: #8a5a00; --mk-warning-bg: #fff6e0;
	--mk-error: #c0392b;   --mk-error-bg: #fdecea;
}

/* Reset ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--mk-font-body);
	font-size: var(--mk-base-size);
	line-height: 1.6;
	color: var(--mk-text);
	background: var(--mk-white);
	-webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
svg.icon { display: inline-block; flex-shrink: 0; vertical-align: middle; }
a { color: var(--mk-accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--mk-accent-hover); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
hr { border: 0; border-top: 1px solid var(--mk-line); margin: 2rem 0; }
address { font-style: normal; }

:focus-visible { outline: 3px solid var(--mk-stitch); outline-offset: 2px; }
.topbar :focus-visible, .site-footer :focus-visible { outline-color: var(--mk-white); }

.screen-reader-text {
	border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; margin: 0;
	top: 8px; left: 8px; z-index: 100000; padding: 12px 18px;
	background: var(--mk-white); color: var(--mk-ink); font-weight: 700;
}

/* Typography ------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
	font-family: var(--mk-font-heading);
	color: var(--mk-ink);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -.005em;
	margin: 0 0 .5em;
	text-wrap: balance;
}
h1, .h1 { font-size: var(--mk-fs-h1); line-height: 1.04; }
h2, .h2 { font-size: var(--mk-fs-h2); }
h3, .h3 { font-size: var(--mk-fs-h3); }
h4, .h4 { font-size: var(--mk-fs-h4); }
h5, .h5 { font-size: var(--mk-fs-h5); }
h6, .h6 { font-size: var(--mk-fs-h6); }
p { margin: 0 0 1em; }
.lead, .is-style-lead { font-size: var(--mk-fs-lead); line-height: 1.55; color: var(--mk-muted); max-width: 62ch; }
small, .text-small { font-size: var(--mk-fs-small); }
.text-muted { color: var(--mk-muted); }
.text-accent { color: var(--mk-accent); }
strong, b { font-weight: 700; }
mark { padding: 0 .2em; border-radius: 2px; background: color-mix(in srgb, var(--mk-stitch) 18%, transparent); color: inherit; }
code, kbd, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
code, kbd { padding: .1em .35em; border-radius: var(--mk-radius-xs); background: var(--mk-surface); color: var(--mk-ink); }
kbd { border: 1px solid var(--mk-line); border-bottom-width: 2px; }
pre { overflow-x: auto; padding: var(--mk-space-4) var(--mk-space-5); border-radius: var(--mk-radius); background: var(--mk-ink); color: #f4f4f4; line-height: 1.5; }
pre code { padding: 0; background: none; color: inherit; }
abbr[title] { text-decoration: underline dotted; cursor: help; }

/* Editor font-size presets (Settings > Typography in the block editor) */
.has-small-font-size { font-size: var(--mk-fs-small) !important; }
.has-normal-font-size, .has-regular-font-size { font-size: 1rem !important; }
.has-medium-font-size { font-size: 1.2rem !important; }
.has-large-font-size { font-size: 1.6rem !important; line-height: 1.3; }
.has-x-large-font-size { font-size: 2.2rem !important; line-height: 1.15; }

/* Layout ----------------------------------------------------------------- */
/* Footer stays at the bottom of the screen even when a page is short. */
.site { display: flex; flex-direction: column; min-height: 100vh; }
.admin-bar .site { min-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px)); }
.site-content { flex: 1 0 auto; }

.container {
	width: 100%;
	max-width: calc(var(--mk-container) + var(--mk-gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--mk-gutter);
}
.container--narrow { max-width: calc(760px + var(--mk-gutter) * 2); }

.content-area {
	display: grid;
	gap: clamp(28px, 4vw, 56px);
	padding-block: clamp(32px, 5vw, 64px);
}
.site-main { min-width: 0; }
.site-main--full { width: 100%; }

@media (min-width: 992px) {
	.layout--right { grid-template-columns: minmax(0, 1fr) 300px; }
	.layout--left { grid-template-columns: 280px minmax(0, 1fr); }
	.layout--left > .sidebar { order: -1; }
}

/* Buttons ---------------------------------------------------------------- */
/* One button family for the theme, WooCommerce, block-editor Buttons, Elementor and
   form plugins. :where() keeps the site-wide rule at minimum strength, so any
   component's own button style (search bars, cards...) always wins. */
.btn,
html :where(.wp-element-button, .wpcf7-submit, .wpforms-submit, input[type="submit"], input[type="button"], input[type="reset"], button[type="submit"]:not(.search-submit):not(.msearch__submit)),
.wp-block-button .wp-block-button__link,
.elementor-widget-button .elementor-button {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	min-height: var(--mk-btn-h);
	padding: .6em 1.4em;
	border: 2px solid var(--mk-accent);
	border-radius: var(--mk-radius-sm);
	background: var(--mk-accent);
	color: var(--mk-accent-contrast);
	font-family: var(--mk-font-heading);
	font-size: 1.08rem; font-weight: 600; letter-spacing: .01em; line-height: 1.1;
	text-align: center; text-decoration: none;
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn:hover,
html :where(.wp-element-button, .wpcf7-submit, .wpforms-submit, input[type="submit"], input[type="button"], button[type="submit"]:not(.search-submit):not(.msearch__submit)):hover,
.wp-block-button .wp-block-button__link:hover,
.elementor-widget-button .elementor-button:hover {
	background: var(--mk-accent-hover); border-color: var(--mk-accent-hover); color: var(--mk-accent-contrast);
}
.btn:focus-visible, .wp-block-button__link:focus-visible, .elementor-button:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--mk-white), 0 0 0 5px var(--mk-ink); }
.btn svg, .elementor-button svg { width: 1.15em; height: 1.15em; flex: 0 0 auto; }
.btn[disabled], .btn.is-disabled, button[disabled], input[disabled][type="submit"] { opacity: .5; cursor: not-allowed; pointer-events: none; }

/* Variants */
.btn--accent { background: var(--mk-accent); border-color: var(--mk-accent); color: var(--mk-accent-contrast); }
.btn--dark { background: var(--mk-ink); border-color: var(--mk-ink); color: var(--mk-white); }
.btn--dark:hover { background: var(--mk-accent); border-color: var(--mk-accent); color: var(--mk-white); }
.btn--ghost, .btn--outline,
.wp-block-button.is-style-outline > .wp-block-button__link:not(.has-background) { background: transparent; border-color: var(--mk-ink); color: var(--mk-ink); }
.btn--ghost:hover, .btn--outline:hover,
.wp-block-button.is-style-outline > .wp-block-button__link:not(.has-background):hover { background: var(--mk-ink); border-color: var(--mk-ink); color: var(--mk-white); }
.btn--light { background: var(--mk-white); border-color: var(--mk-white); color: var(--mk-ink); }
.btn--light:hover { background: var(--mk-surface); border-color: var(--mk-surface); color: var(--mk-ink); }
.btn--text { min-height: 0; padding: 0; border: 0; background: none; color: var(--mk-accent); text-decoration: underline; text-underline-offset: .2em; }
.btn--text:hover { background: none; color: var(--mk-accent-hover); }

/* Sizes */
.btn--sm, .elementor-button.elementor-size-xs, .elementor-button.elementor-size-sm { min-height: var(--mk-btn-h-sm); padding: .4em 1em; font-size: .95rem; }
.btn--lg, .btn--large, .elementor-button.elementor-size-lg, .elementor-button.elementor-size-xl { min-height: var(--mk-btn-h-lg); padding: .7em 1.8em; font-size: 1.2rem; }
.btn--block { display: flex; width: 100%; }
.btn-group { display: flex; flex-wrap: wrap; gap: var(--mk-space-3); }

/* Block editor Buttons block: honour its own colour pickers */
.wp-block-button .wp-block-button__link.has-background { border-color: transparent; }
.wp-block-buttons { gap: var(--mk-space-3); }

.icon-btn {
	display: inline-flex; align-items: center; justify-content: center;
	position: relative;
	width: 44px; height: 44px;
	padding: 0; border: 0; border-radius: var(--mk-radius-sm);
	background: transparent; color: var(--mk-ink);
	text-decoration: none;
}
.icon-btn:hover { background: var(--mk-surface); color: var(--mk-ink); }
.icon-btn svg { width: 22px; height: 22px; }

/* Forms ------------------------------------------------------------------ */
input[type="text"], input[type="email"], input[type="tel"], input[type="url"],
input[type="password"], input[type="search"], input[type="number"], input[type="date"],
input[type="datetime-local"], input[type="time"], input[type="month"],
select, textarea {
	width: 100%;
	min-height: var(--mk-input-h);
	padding: .55em .85em;
	border: 1px solid color-mix(in srgb, var(--mk-ink) 25%, transparent);
	border-radius: var(--mk-radius-sm);
	background-color: var(--mk-white);
	color: var(--mk-text);
	font-size: 1rem;
	transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { min-height: 130px; line-height: 1.5; resize: vertical; }
select { padding-right: 2.4em; }  /* room for the arrow; components can override */
:where(select:not([multiple]):not([size])) {
	-webkit-appearance: none; appearance: none;
	padding-right: 2.4em;
	background-image: linear-gradient(45deg, transparent 50%, var(--mk-ink) 50%), linear-gradient(135deg, var(--mk-ink) 50%, transparent 50%);
	background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%;
	background-size: 5px 5px; background-repeat: no-repeat;
}
input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--mk-ink) 45%, transparent); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--mk-ink); box-shadow: var(--mk-focus); }
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--mk-muted) 75%, transparent); }
input[disabled], select[disabled], textarea[disabled] { background-color: var(--mk-surface); opacity: .7; cursor: not-allowed; }
input[aria-invalid="true"], .is-invalid, .wpcf7-not-valid, .woocommerce-invalid input.input-text { border-color: var(--mk-error) !important; }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; accent-color: var(--mk-ink); vertical-align: -3px; }
label { font-weight: 600; color: var(--mk-ink); }
.form-help, .description, .wpcf7-form-control-wrap + small { display: block; margin-top: 4px; font-size: var(--mk-fs-small); color: var(--mk-muted); }
.form-error, .wpcf7-not-valid-tip { display: block; margin-top: 4px; font-size: var(--mk-fs-small); color: var(--mk-error); font-weight: 600; }
fieldset { margin: 0 0 var(--mk-space-5); padding: var(--mk-space-5); border: 1px solid var(--mk-line); border-radius: var(--mk-radius); }
legend { padding: 0 var(--mk-space-2); font-family: var(--mk-font-heading); font-size: 1.2rem; font-weight: 700; color: var(--mk-ink); }

.search-form { display: flex; gap: 8px; max-width: 640px; }
.search-form .search-field { flex: 1; }
.search-submit,
.woocommerce-product-search button {
	min-height: var(--mk-input-h); padding: 0 1.2em;
	border: 0; border-radius: var(--mk-radius-sm);
	background: var(--mk-ink); color: var(--mk-white);
	font-family: var(--mk-font-heading); font-weight: 600; font-size: 1.05rem;
}
.search-submit:hover, .woocommerce-product-search button:hover { background: var(--mk-accent); }
.woocommerce-product-search { display: flex; gap: 8px; max-width: 640px; }
.woocommerce-product-search .search-field { flex: 1; }

/* Content components ----------------------------------------------------- */
.badge {
	display: inline-flex; align-items: center; gap: 4px;
	padding: 2px 9px; border-radius: var(--mk-radius-xs);
	background: var(--mk-surface); color: var(--mk-ink);
	font-size: var(--mk-fs-xs); font-weight: 700; line-height: 1.5; white-space: nowrap;
}
.badge--dark { background: var(--mk-ink); color: var(--mk-white); }
.badge--accent { background: var(--mk-accent); color: var(--mk-white); }
.badge--outline { background: var(--mk-white); box-shadow: inset 0 0 0 1px var(--mk-ink); }
.badge--success { background: var(--mk-success-bg); color: var(--mk-success); }
.badge--warning { background: var(--mk-warning-bg); color: var(--mk-warning); }
.badge--pill { border-radius: var(--mk-radius-pill); }

.notice-box {
	margin: 0 0 var(--mk-space-5); padding: var(--mk-space-4) var(--mk-space-5);
	border-left: 4px solid var(--mk-info); border-radius: var(--mk-radius);
	background: var(--mk-info-bg); color: var(--mk-ink);
}
.notice-box > :last-child { margin-bottom: 0; }
.notice-box--success { border-left-color: var(--mk-success); background: var(--mk-success-bg); }
.notice-box--warning { border-left-color: #d79a00; background: var(--mk-warning-bg); }
.notice-box--error { border-left-color: var(--mk-error); background: var(--mk-error-bg); }

.mk-card { padding: var(--mk-space-5); border: 1px solid var(--mk-line); border-radius: var(--mk-radius); background: var(--mk-white); }
.mk-card--surface { border-color: transparent; background: var(--mk-surface); }
.mk-card--dark { border-color: var(--mk-ink); background-color: var(--mk-ink); background-image: var(--mk-weave); color: rgba(255, 255, 255, .85); }
.mk-card--dark h1, .mk-card--dark h2, .mk-card--dark h3, .mk-card--dark h4 { color: var(--mk-white); }

/* Block editor blocks */
.wp-block-quote, blockquote {
	margin: 1.6em 0; padding: .3em 0 .3em 1.2em;
	border-left: 3px dashed var(--mk-stitch);
	font-size: 1.15rem; color: var(--mk-ink);
}
.wp-block-quote cite, blockquote cite { display: block; margin-top: .5em; font-size: var(--mk-fs-small); font-style: normal; color: var(--mk-muted); }
.wp-block-pullquote { padding: var(--mk-space-6) 0; border-top: 3px solid var(--mk-ink); border-bottom: 3px solid var(--mk-ink); text-align: center; }
.wp-block-pullquote blockquote { border: 0; padding: 0; font-family: var(--mk-font-heading); font-size: 1.8rem; line-height: 1.2; }
.wp-block-separator { border: 0; border-top: 1px solid var(--mk-line); }
.wp-block-separator.is-style-wide { border-top-width: 2px; }
.wp-block-separator.is-style-dots::before { color: var(--mk-accent); }
.wp-block-table table, .entry-content table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.wp-block-table th, .wp-block-table td { padding: 10px 12px; border: 0; border-bottom: 1px solid var(--mk-line); text-align: left; }
.wp-block-table thead th { background: var(--mk-surface); color: var(--mk-ink); font-weight: 700; }
.wp-block-table.is-style-stripes tbody tr:nth-child(odd) { background: var(--mk-surface); }
.wp-block-table.is-style-stripes { border-bottom: 0; }
.wp-block-image figcaption, .wp-caption-text, figcaption { margin-top: 8px; font-size: var(--mk-fs-small); color: var(--mk-muted); text-align: center; }
.wp-block-image img { border-radius: var(--mk-radius-sm); }
.wp-block-details { padding: var(--mk-space-4) 0; border-bottom: 1px solid var(--mk-line); }
.wp-block-details summary { font-family: var(--mk-font-heading); font-size: 1.15rem; font-weight: 700; color: var(--mk-ink); cursor: pointer; }
.wp-block-file { display: flex; flex-wrap: wrap; align-items: center; gap: var(--mk-space-3); }
.wp-block-file .wp-block-file__button { padding: .5em 1.1em; border-radius: var(--mk-radius-sm); background: var(--mk-ink); color: var(--mk-white); font-family: var(--mk-font-heading); font-weight: 600; text-decoration: none; }
.wp-block-group.has-background, .wp-block-cover { border-radius: var(--mk-radius); }

/* Elementor: widgets follow the theme unless set differently in Elementor */
.elementor-widget-heading .elementor-heading-title { font-family: var(--mk-font-heading); font-weight: 700; color: var(--mk-ink); line-height: 1.1; }
.elementor-widget-text-editor { color: var(--mk-text); }
.elementor-widget-icon-list .elementor-icon-list-icon i, .elementor-widget-icon-list .elementor-icon-list-icon svg { color: var(--mk-accent); fill: var(--mk-accent); }
.elementor-widget-divider .elementor-divider-separator { border-top-color: var(--mk-line); }

/* ==========================================================================
   Top utility bar
   ========================================================================== */
.topbar {
	background: var(--mk-ink);
	color: rgba(255,255,255,.82);
	font-size: .88rem;
}
.topbar__inner {
	display: flex; align-items: center; justify-content: space-between;
	gap: 16px; min-height: 38px;
}
.topbar__note { margin: 0; }
.topbar__links { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; }
.topbar__links li { padding: 0 14px; border-left: 1px solid rgba(255,255,255,.18); }
.topbar__links li:first-child { border-left: 0; }
.topbar__links li:last-child { padding-right: 0; }
.topbar a { color: rgba(255,255,255,.9); text-decoration: none; }
.topbar a:hover { color: var(--mk-white); text-decoration: underline; }
.topbar .topbar__b2b { color: var(--mk-white); font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--mk-accent); padding-bottom: 1px; }
.topbar .topbar__b2b:hover { text-decoration: none; border-bottom-color: var(--mk-white); }
.topbar__currency { display: inline-flex; align-items: center; gap: 6px; }
.topbar__currency svg { width: 15px; height: 15px; }
.topbar__currency select { min-height: 0; padding: 2px 6px; background: transparent; color: inherit; border-color: rgba(255,255,255,.3); }

@media (max-width: 767px) {
	.topbar__inner { justify-content: center; }
	.topbar__links { display: none; }
	.topbar__note { text-align: center; }
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
	position: relative;
	z-index: 9999; /* Blueprint: nav layer above sliders and canvases */
	background: var(--mk-white);
	border-bottom: 1px solid var(--mk-line);
	transition: box-shadow .2s ease;
}
.site-header.is-sticky { position: sticky; top: var(--mk-sticky-top); }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(1,1,1,.1); }

.site-header__inner {
	display: flex; align-items: center; gap: 24px;
	min-height: var(--mk-header-h);
}

.site-branding { flex-shrink: 0; }
.site-title { margin: 0; font-family: var(--mk-font-heading); font-size: 1.7rem; font-weight: 700; line-height: 1; letter-spacing: .02em; }
.site-title a { color: var(--mk-ink); text-decoration: none; }
.custom-logo-link { display: block; }
.custom-logo, .site-logo-img { max-height: 66px; width: auto; }
.site-logo-link { display: block; }
@media (max-width: 991px) { .custom-logo, .site-logo-img { max-height: 46px; } }

.header-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.header-cta { margin-left: 8px; }
.header-cart .mukka-cart-count {
	position: absolute; top: 4px; right: 2px;
	min-width: 18px; height: 18px; padding: 0 4px;
	border-radius: 9px;
	background: var(--mk-accent); color: var(--mk-accent-contrast);
	font-size: .7rem; font-weight: 700; line-height: 18px; text-align: center;
}
.header-cart .mukka-cart-count[data-count="0"] { display: none; }

/* Search toggle: magnifier swaps to a close icon while open */
.search-toggle .search-toggle__open { display: inline-flex; }
.search-toggle .search-toggle__close { display: none; }
.search-toggle[aria-expanded="true"] .search-toggle__open { display: none; }
.search-toggle[aria-expanded="true"] .search-toggle__close { display: inline-flex; }
.search-toggle[aria-expanded="true"] { background: var(--mk-surface); }

/* ==========================================================================
   Header search panel
   ========================================================================== */
.header-search {
	position: absolute; left: 0; right: 0; top: 100%;
	background: var(--mk-white);
	border-top: 3px solid var(--mk-accent);
	box-shadow: var(--mk-shadow);
	max-height: calc(100vh - var(--mk-header-h) - var(--mk-sticky-top));
	overflow-y: auto; overscroll-behavior: contain;
}
.header-search[hidden] { display: none; }
.header-search__inner { padding-top: 22px; padding-bottom: 26px; }
@media (prefers-reduced-motion: no-preference) {
	.header-search:not([hidden]) { animation: mk-drop .18s ease-out; }
}
@keyframes mk-drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* One connected bar: [category | icon input clear | Search] */
.msearch__bar {
	position: relative;
	display: flex; align-items: stretch;
	min-height: 58px;
	border: 2px solid var(--mk-ink);
	border-radius: var(--mk-radius-sm);
	background: var(--mk-white);
	transition: border-color .15s ease, box-shadow .15s ease;
}
.msearch__bar:focus-within { border-color: var(--mk-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--mk-accent) 15%, transparent); }
.msearch .msearch__cat {
	flex: 0 0 auto; width: auto; max-width: 210px; min-height: 0;
	padding: 0 34px 0 16px;
	border: 0; border-right: 1px solid var(--mk-line); border-radius: 2px 0 0 2px;
	background-color: var(--mk-surface);
	font-weight: 600; color: var(--mk-ink);
	cursor: pointer;
}
.msearch .msearch__cat:focus { box-shadow: none; background-color: color-mix(in srgb, var(--mk-surface) 70%, var(--mk-line)); }
.msearch__icon { display: flex; align-items: center; padding-left: 16px; color: var(--mk-muted); }
.msearch .msearch__input {
	flex: 1; min-width: 0; min-height: 0;
	padding: 0 12px;
	border: 0; border-radius: 0; background: transparent;
	font-size: 1.15rem; color: var(--mk-ink);
}
.msearch .msearch__input:focus { box-shadow: none; }
.msearch__input::-webkit-search-cancel-button { display: none; }
.msearch__input::placeholder { color: color-mix(in srgb, var(--mk-muted) 80%, transparent); }
.msearch__clear {
	display: flex; align-items: center; justify-content: center;
	width: 44px; padding: 0; border: 0; background: transparent; color: var(--mk-muted);
}
.msearch__clear:hover { color: var(--mk-accent); }
.msearch__clear[hidden] { display: none; }
.msearch__clear svg { width: 18px; height: 18px; }
.msearch__submit {
	flex: 0 0 auto;
	margin: -2px -2px -2px 0; padding: 0 28px;
	border: 0; border-radius: 0 4px 4px 0;
	background: var(--mk-accent); color: var(--mk-accent-contrast);
	font-family: var(--mk-font-heading); font-size: 1.15rem; font-weight: 700;
}
.msearch__submit:hover { background: var(--mk-accent-hover); }

/* Loading: a thin red bar sweeps under the input */
.msearch.is-loading .msearch__bar::after {
	content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 30%;
	background: var(--mk-accent);
	animation: mk-sweep .9s ease-in-out infinite;
}
@keyframes mk-sweep { from { left: 0; } to { left: 70%; } }

/* Dropdown content */
.msearch__drop { margin-top: 20px; }
.msearch__label { margin: 0 0 10px; font-size: .85rem; font-weight: 700; color: var(--mk-muted); }
.msearch__chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.msearch__chip {
	display: inline-block; padding: 7px 14px;
	border: 1px solid var(--mk-line); border-radius: 999px;
	color: var(--mk-ink); text-decoration: none; font-weight: 600; font-size: .95rem;
	transition: border-color .15s ease, color .15s ease;
}
.msearch__chip:hover { border-color: var(--mk-accent); color: var(--mk-accent); }
.msearch__popular[hidden], .msearch__results[hidden] { display: none; }

.msearch__results { display: grid; gap: 24px 40px; }
@media (min-width: 992px) {
	.msearch__results { grid-template-columns: minmax(0, 1fr) 260px; }
	.msearch__group--items:only-child, .msearch__empty, .msearch__foot { grid-column: 1 / -1; }
}
.msr-list, .msr-terms { list-style: none; margin: 0; padding: 0; }
.msr-list { display: grid; gap: 4px 20px; }
@media (min-width: 768px) { .msr-list { grid-template-columns: 1fr 1fr; } }

.msr {
	display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 14px;
	padding: 8px; border-radius: 4px;
	color: var(--mk-ink); text-decoration: none;
}
.msr:hover, [role="option"].is-active > .msr { background: var(--mk-surface); }
.msr__img { width: 64px; height: 64px; object-fit: cover; border-radius: 3px; background: var(--mk-surface); }
.msr__img--empty { display: block; }
.msr__body { min-width: 0; }
.msr__title { display: block; font-weight: 600; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.msr mark, .msr-term mark { background: transparent; color: var(--mk-accent); font-weight: 700; }
.msr__meta { display: flex; flex-wrap: wrap; gap: 2px 10px; margin-top: 3px; font-size: .82rem; color: var(--mk-muted); }
.msr__moq { color: var(--mk-accent); font-weight: 700; }
.msr__mode { font-weight: 600; }
.msr__mode--ready { color: var(--mk-ink); }
.msr__oos { color: #8a1f14; }
.msr__price { font-weight: 700; white-space: nowrap; text-align: right; }
.msr__price del { display: block; font-weight: 400; font-size: .85em; color: var(--mk-muted); }
.msr__price ins { text-decoration: none; color: var(--mk-accent); }

.msearch__group--terms { padding-left: 0; }
@media (min-width: 992px) { .msearch__group--terms { padding-left: 28px; border-left: 2px dashed color-mix(in srgb, var(--mk-stitch) 45%, transparent); } }
.msr-term { display: block; padding: 9px 10px; border-radius: 4px; color: var(--mk-ink); text-decoration: none; font-weight: 600; }
.msr-term:hover, [role="option"].is-active > .msr-term { background: var(--mk-surface); }
.msr-term__parent { display: block; font-size: .82rem; font-weight: 400; color: var(--mk-muted); }

.msearch__foot { padding-top: 14px; border-top: 1px solid var(--mk-line); }
.msearch__all { font-family: var(--mk-font-heading); font-size: 1.1rem; font-weight: 700; color: var(--mk-ink); text-decoration: none; border-bottom: 2px solid var(--mk-accent); }
.msearch__all:hover, .msearch__foot.is-active .msearch__all { color: var(--mk-accent); }

.msearch__empty { padding: 8px 0; }
.msearch__empty-title { margin-bottom: 6px; font-family: var(--mk-font-heading); font-size: 1.3rem; font-weight: 700; color: var(--mk-ink); }
.msearch__empty p:last-child { margin: 0; color: var(--mk-muted); }
.msearch__empty a { font-weight: 700; }

/* Small screens: stacked bar, full-height panel */
@media (max-width: 767px) {
	.header-search__inner { padding-top: 14px; }
	.msearch__bar { flex-wrap: wrap; min-height: 0; }
	.msearch .msearch__cat { flex: 1 0 100%; max-width: none; min-height: 44px; border-right: 0; border-bottom: 1px solid var(--mk-line); border-radius: 2px 2px 0 0; }
	.msearch__icon { padding-left: 12px; }
	.msearch .msearch__input { min-height: 52px; font-size: 1rem; }
	.msearch__submit { margin: 0; padding: 0 16px; border-radius: 0 0 2px 0; }
	.msearch__submit { font-size: 1rem; }
	.msr { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 10px; padding: 6px; }
	.msr__img { width: 52px; height: 52px; }
}

/* Primary navigation — shared --------------------------------------------- */
.menu--primary, .menu--primary ul { list-style: none; margin: 0; padding: 0; }
.menu--primary a { text-decoration: none; }
.submenu-toggle {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 0; border: 0; background: transparent; color: inherit;
}
.submenu-toggle svg { width: 16px; height: 16px; transition: transform .2s ease; }
.menu-item.is-open > .submenu-toggle svg { transform: rotate(180deg); }

.mega-badge {
	display: inline-block; line-height: 1.5;
	margin-left: 8px; padding: 1px 8px;
	border-radius: 2px;
	background: color-mix(in srgb, var(--mk-stitch) 22%, transparent);
	color: var(--mk-ink);
	font-family: var(--mk-font-body); font-size: .75rem; font-weight: 600;
	vertical-align: middle; white-space: nowrap;
}
.mega-zone {
	margin: 16px 0 0; padding: 12px 14px;
	background: var(--mk-surface);
	border-left: 3px solid var(--mk-stitch);
	color: var(--mk-muted);
	font-size: .88rem; line-height: 1.45;
}

.site-nav__head, .site-nav__extras { display: none; }

/* Desktop (>= 992px): inline flex menu, hover dropdowns, full-width mega grid */
@media (min-width: 992px) {
	.menu-toggle { display: none; }
	.site-nav { flex: 1; align-self: stretch; }
	.menu--primary { display: flex; align-items: stretch; height: 100%; }
	.menu--primary > li { position: relative; display: flex; align-items: center; }
	.menu--primary > li.has-mega { position: static; }
	.menu--primary > li > a {
		display: flex; align-items: center; height: 100%;
		padding: 0 6px 0 14px;
		color: var(--mk-ink);
		font-family: var(--mk-font-heading); font-size: 1.12rem; font-weight: 600;
		border-bottom: 3px solid transparent;
		border-top: 3px solid transparent;
	}
	.menu--primary > li:not(.menu-item-has-children) > a { padding-right: 14px; }
	.menu--primary > li > a:hover,
	.menu--primary > li:hover > a,
	.menu--primary > li.is-open > a { color: var(--mk-accent); }
	.menu--primary > li.current-menu-item > a,
	.menu--primary > li.current-menu-ancestor > a,
	.menu--primary > li.current-menu-parent > a { border-bottom: 3px dashed var(--mk-stitch); }
	.menu--primary > li > .submenu-toggle { width: 22px; height: 44px; margin-right: 8px; color: var(--mk-muted); }

	/* Standard dropdown */
	.sub-menu {
		position: absolute; top: 100%; left: 0;
		min-width: 250px; padding: 10px 0;
		background: var(--mk-white);
		border: 1px solid var(--mk-line);
		border-top: 3px solid var(--mk-accent);
		box-shadow: var(--mk-shadow);
		opacity: 0; visibility: hidden; transform: translateY(6px);
		transition: opacity .15s ease, transform .15s ease, visibility .15s;
	}
	.sub-menu .sub-menu { top: -13px; left: 100%; }
	.sub-menu li { position: relative; display: flex; align-items: center; }
	.sub-menu a { flex: 1; display: block; padding: 8px 20px; color: var(--mk-text); }
	.sub-menu a:hover { background: var(--mk-surface); color: var(--mk-accent); }
	.sub-menu .submenu-toggle { width: 32px; height: 32px; transform: rotate(-90deg); }

	.menu-item:hover > .sub-menu,
	.menu-item:focus-within > .sub-menu,
	.menu-item.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }

	/* Mega panel: spans the header width; columns in a grid */
	.mega-panel {
		position: absolute; left: 0; right: 0; top: 100%;
		background: var(--mk-white);
		border-top: 3px solid var(--mk-accent);
		box-shadow: var(--mk-shadow);
		opacity: 0; visibility: hidden; transform: translateY(6px);
		transition: opacity .15s ease, transform .15s ease, visibility .15s;
	}
	.has-mega:hover > .mega-panel,
	.has-mega:focus-within > .mega-panel,
	.has-mega.is-open > .mega-panel { opacity: 1; visibility: visible; transform: none; }
	.mega-panel__inner { max-width: calc(var(--mk-container) + var(--mk-gutter) * 2); margin-inline: auto; padding: 32px var(--mk-gutter) 36px; }
	/* Equal columns: spacing comes from the grid gap; the stitched divider sits in the middle of it. */
	.mega-columns { --mega-gap: 48px; display: grid; grid-template-columns: repeat(var(--mega-cols, 3), minmax(0, 1fr)); column-gap: var(--mega-gap); }
	.mega-columns[style*="--mega-cols:4"], .mega-columns[style*="--mega-cols:5"] { --mega-gap: 36px; }
	.mega-column { position: relative; display: flex; flex-direction: column; }
	.mega-column + .mega-column::before {
		content: ""; position: absolute; top: 0; bottom: 0;
		left: calc(var(--mega-gap) / -2 - 1px);
		border-left: 2px dashed color-mix(in srgb, var(--mk-stitch) 55%, transparent);
	}
	.mega-column > a:not(.mega-thumb) {
		display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px;
		min-height: 1.6em; margin-bottom: 12px;
		color: var(--mk-ink);
		font-family: var(--mk-font-heading); font-size: 1.25rem; font-weight: 700; line-height: 1.2;
	}
	.mega-column > a .mega-badge { margin-left: 0; }
	.mega-column > a:hover { color: var(--mk-accent); }
	.mega-links { flex: 1; }
	.mega-links a { display: block; padding: 5px 0; color: var(--mk-text); }
	.mega-links a:hover { color: var(--mk-accent); text-decoration: underline; }
	.submenu-toggle--column { display: none; }

	.mega-thumb { display: block; margin-bottom: 14px; overflow: hidden; border-radius: 4px; }
	.mega-thumb__img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .3s ease; }
	.mega-column:hover .mega-thumb__img { transform: scale(1.03); }

	.mega-foot {
		display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
		margin-top: 28px; padding-top: 18px;
		border-top: 1px solid var(--mk-line);
	}
	.mega-foot__all {
		font-family: var(--mk-font-heading); font-size: 1.1rem; font-weight: 700;
		color: var(--mk-ink); text-decoration: none;
		border-bottom: 2px solid var(--mk-accent);
	}
	.mega-foot__all:hover { color: var(--mk-accent); }
	.mega-foot__quote { margin: 0; color: var(--mk-muted); }
	.mega-foot__quote a { font-weight: 700; }
}

@media (min-width: 992px) and (max-width: 1199px) {
	.menu--primary > li > a { font-size: 1.02rem; padding-left: 10px; }
	.header-cta { display: none; }
}

/* Mobile and touch (< 992px): off-canvas drawer with accordions */
@media (max-width: 991px) {
	.header-cta { display: none; }
	.site-nav {
		position: fixed; top: 0; right: 0; bottom: 0;
		z-index: 10001;
		width: min(88vw, 400px);
		display: flex; flex-direction: column;
		background: var(--mk-white);
		overflow-y: auto; overscroll-behavior: contain;
		transform: translateX(100%);
		visibility: hidden;
		transition: transform .25s ease, visibility .25s;
	}
	.nav-open .site-nav { transform: none; visibility: visible; }
	.admin-bar .site-nav { top: var(--wp-admin--admin-bar--height, 0px); }
	.site-nav__head {
		display: flex; align-items: center; justify-content: space-between;
		padding: 10px 12px 10px 20px;
		border-bottom: 1px solid var(--mk-line);
	}
	.site-nav__title { font-family: var(--mk-font-heading); font-size: 1.3rem; font-weight: 700; color: var(--mk-ink); }

	.menu--primary li { position: relative; border-bottom: 1px solid var(--mk-line); }
	.menu--primary a { display: block; padding: 14px 56px 14px 20px; color: var(--mk-ink); }
	.menu--primary > li > a { font-family: var(--mk-font-heading); font-size: 1.2rem; font-weight: 600; }
	.submenu-toggle { position: absolute; top: 4px; right: 6px; width: 44px; height: 44px; }

	.sub-menu, .mega-panel { display: none; background: var(--mk-surface); }
	.menu-item.is-open > .sub-menu,
	.menu-item.is-open > .mega-panel { display: block; }
	.sub-menu li, .mega-links li { border-bottom: 1px solid var(--mk-line); }
	.sub-menu li:last-child, .mega-links li:last-child { border-bottom: 0; }
	.sub-menu a, .mega-links a { padding-left: 34px; font-size: .98rem; }
	.mega-column > a { font-family: var(--mk-font-heading); font-weight: 700; padding-left: 28px; }
	.mega-links { display: none; background: var(--mk-white); }
	.mega-column.is-open > .mega-links { display: block; }
	.mega-links a { padding-left: 42px; }
	.mega-zone { display: none; margin: 8px 20px 14px 42px; }
	.mega-column.is-open > .mega-zone { display: block; }
	.menu--primary .mega-thumb { display: none; }
	.mega-foot { padding: 14px 20px 16px 28px; }
	.menu--primary .mega-foot__all { display: inline-block; padding: 0; font-weight: 700; color: var(--mk-accent); }
	.mega-foot__quote { margin: 8px 0 0; font-size: .92rem; color: var(--mk-muted); }

	.site-nav__extras { display: flex; flex-direction: column; gap: 4px; padding: 20px; margin-top: auto; }
	.site-nav__extras .btn { width: 100%; margin-bottom: 8px; }
	.site-nav__link { padding: 8px 0; color: var(--mk-ink); text-decoration: none; font-weight: 600; }

	.nav-overlay {
		position: fixed; inset: 0; z-index: 10000;
		background: rgba(1,1,1,.5);
	}
	.nav-overlay[hidden] { display: none; }
	.nav-open { overflow: hidden; }
}

/* ==========================================================================
   Page header and breadcrumbs
   ========================================================================== */
.page-header {
	padding: clamp(28px, 4vw, 48px) 0 clamp(22px, 3vw, 34px);
	background: var(--mk-surface);
	border-bottom: 2px dashed color-mix(in srgb, var(--mk-stitch) 55%, transparent);
}
.page-title { margin: 0; max-width: 24ch; }
.page-header .entry-meta { margin-top: 12px; }
.page-description { max-width: 65ch; margin-top: 10px; color: var(--mk-muted); }
.page-description p:last-child { margin-bottom: 0; }

.breadcrumbs { margin-bottom: 10px; font-size: .9rem; color: var(--mk-muted); }
.breadcrumbs a { color: var(--mk-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--mk-accent); text-decoration: underline; }
.breadcrumbs .sep { margin: 0 8px; opacity: .6; }
.shop-crumbs .breadcrumbs { margin: 24px 0 0; }

/* ==========================================================================
   Content
   ========================================================================== */
.entry-content { max-width: 78ch; }
.site-main--full .entry-content,
.entry-content--front { max-width: none; }
.entry-content > * + h2, .entry-content > * + h3 { margin-top: 1.6em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li + li { margin-top: .3em; }
.entry-content blockquote {
	margin: 1.6em 0; padding: .4em 0 .4em 1.2em;
	border-left: 3px dashed var(--mk-stitch);
	font-size: 1.15rem; color: var(--mk-ink);
}
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .95rem; }
.entry-content th, .entry-content td { padding: 10px 12px; border-bottom: 1px solid var(--mk-line); text-align: left; }
.entry-content th { background: var(--mk-surface); font-weight: 700; color: var(--mk-ink); }
.entry-content .wp-block-table { overflow-x: auto; }
.entry-content img { border-radius: 4px; }
.entry-thumb { margin: 0 0 28px; }
.entry-thumb img { width: 100%; border-radius: 4px; }
.entry-tags a {
	display: inline-block; margin: 0 6px 6px 0; padding: 3px 10px;
	background: var(--mk-surface); border-radius: 2px;
	color: var(--mk-ink); font-size: .85rem; text-decoration: none;
}
.alignwide { margin-inline: calc(-1 * min(8vw, 120px)); max-width: none; }
.alignfull { margin-inline: calc(50% - 50vw); max-width: 100vw; width: 100vw; }

.entry-meta { margin: 0 0 8px; color: var(--mk-muted); font-size: .9rem; }
.entry-meta__cats::before { content: "/"; margin: 0 8px; opacity: .5; }
.entry-meta a { color: inherit; text-decoration: none; }
.entry-meta a:hover { color: var(--mk-accent); }

/* Post grid */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 36px 28px; }
.card { display: flex; flex-direction: column; }
.card__media { display: block; overflow: hidden; border-radius: 4px; margin-bottom: 16px; background: var(--mk-surface); }
.card__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .35s ease; }
.card__media:hover img { transform: scale(1.03); }
.card__title { font-size: 1.45rem; margin-bottom: 8px; }
.card__title a { color: var(--mk-ink); text-decoration: none; }
.card__title a:hover { color: var(--mk-accent); }
.card__excerpt { color: var(--mk-muted); }
.card__excerpt p:last-child { margin: 0; }
.sticky .card__title::after { content: ""; display: inline-block; width: 10px; height: 10px; margin-left: 8px; background: var(--mk-stitch); border-radius: 50%; vertical-align: middle; }

/* Pagination */
.pagination, .posts-navigation, .post-navigation { margin-top: 48px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 44px; height: 44px; padding: 0 12px;
	border: 1px solid var(--mk-line); border-radius: 3px;
	color: var(--mk-ink); text-decoration: none; font-weight: 600;
}
.page-numbers.current { background: var(--mk-ink); border-color: var(--mk-ink); color: var(--mk-white); }
a.page-numbers:hover { border-color: var(--mk-accent); color: var(--mk-accent); }
.post-navigation .nav-links { justify-content: space-between; gap: 24px; }
.post-navigation a { color: var(--mk-ink); text-decoration: none; font-family: var(--mk-font-heading); font-size: 1.2rem; font-weight: 600; }
.post-navigation a:hover { color: var(--mk-accent); }
.nav-label { display: block; font-family: var(--mk-font-body); font-size: .85rem; font-weight: 400; color: var(--mk-muted); }

/* Sidebar & widgets */
.sidebar .widget { margin-bottom: 36px; }
.widget-title { font-size: 1.3rem; padding-bottom: 10px; margin-bottom: 14px; border-bottom: 2px dashed color-mix(in srgb, var(--mk-stitch) 55%, transparent); }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 6px 0; border-bottom: 1px solid var(--mk-line); }
.widget li a { color: var(--mk-text); text-decoration: none; }
.widget li a:hover { color: var(--mk-accent); }

/* Comments */
.comments { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--mk-line); }
.comment-list { list-style: none; padding: 0; margin: 0 0 32px; }
.comment-list .children { list-style: none; padding-left: clamp(16px, 4vw, 40px); }
.comment-body { padding: 18px 0; border-bottom: 1px solid var(--mk-line); }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.comment-author img { border-radius: 50%; }
.comment-metadata { font-size: .85rem; margin: 4px 0 8px; }
.comment-metadata a { color: var(--mk-muted); }
.comment-form p { margin-bottom: 16px; }

/* 404 / no results */
.not-found .search-form { margin: 24px 0; }
.not-found__links { display: flex; flex-wrap: wrap; gap: 12px; }

/* ==========================================================================
   Quote form
   ========================================================================== */
.rfq { max-width: 860px; }
.rfq__form { display: grid; gap: 28px; }
.rfq__group { margin: 0; padding: 0; border: 0; }
.rfq__group legend {
	width: 100%; margin-bottom: 16px; padding-bottom: 8px;
	border-bottom: 2px dashed color-mix(in srgb, var(--mk-stitch) 55%, transparent);
	font-family: var(--mk-font-heading); font-size: 1.4rem; font-weight: 700; color: var(--mk-ink);
}
.rfq__grid { display: grid; gap: 0 20px; }
@media (min-width: 640px) { .rfq__grid { grid-template-columns: 1fr 1fr; } }
.rfq .field { margin: 0 0 16px; }
.rfq .field label, .field__label { display: block; margin-bottom: 6px; font-size: .95rem; }
.rfq .req { color: var(--mk-accent); }
.field--checks { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 16px; }
.field--checks .field__label { flex-basis: 100%; }
.check { display: inline-flex !important; align-items: center; gap: 8px; font-weight: 400 !important; }
.check input { width: 18px; height: 18px; accent-color: var(--mk-accent); }
.rfq input[type="file"] { padding: 10px; border: 1px dashed color-mix(in srgb, var(--mk-ink) 30%, transparent); border-radius: var(--mk-radius-sm); width: 100%; background: var(--mk-surface); }
.rfq__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rfq__notice { margin-bottom: 24px; padding: 14px 18px; border-radius: 3px; border-left: 4px solid; font-weight: 600; }
.rfq__notice--success { background: #e9f6ee; border-color: #1f8a4c; color: #145c33; }
.rfq__notice--warning { background: #fff6e0; border-color: var(--mk-stitch); color: #6b4a00; }
.rfq__notice--error { background: #fdecea; border-color: #c0392b; color: #8a1f14; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer-before { padding: 40px 0; background: var(--mk-surface); }
.site-footer {
	background-color: var(--mk-ink); background-image: var(--mk-weave);
	color: rgba(255,255,255,.78);
	font-size: .96rem;
}
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: var(--mk-white); text-decoration: underline; }
.site-footer__grid {
	display: grid; gap: 36px;
	padding-block: clamp(48px, 6vw, 80px);
	grid-template-columns: 1fr;
}
@media (min-width: 640px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 992px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer-logo { display: inline-block; margin-bottom: 14px; font-family: var(--mk-font-heading); font-size: 1.7rem; font-weight: 700; letter-spacing: .02em; color: var(--mk-white) !important; }
.footer-logo img { max-height: 76px; width: auto; }
.footer-about { max-width: 36ch; }
.footer-title { color: var(--mk-white); font-size: 1.2rem; margin-bottom: 14px; }
.footer-menu, .contact-list { list-style: none; margin: 0; padding: 0; }
.footer-menu li { padding: 4px 0; }
.contact-list li { display: flex; gap: 10px; padding: 5px 0; }
.contact-list svg { width: 18px; height: 18px; margin-top: 3px; color: var(--mk-stitch); }
.social-links { display: flex; gap: 6px; list-style: none; margin: 18px 0 0; padding: 0; }
.social-links a {
	display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.22); border-radius: 3px;
}
.social-links a:hover { background: rgba(255,255,255,.1); text-decoration: none; }
.social-links svg { width: 18px; height: 18px; }
.site-footer__bottom {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
	padding-block: 20px;
	border-top: 2px dashed color-mix(in srgb, var(--mk-stitch) 40%, transparent);
	font-size: .88rem;
}
.copyright { margin: 0; }
.legal-menu { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.legal-menu li + li::before { content: "|"; margin: 0 10px; opacity: .4; }

.back-to-top {
	position: fixed; right: 18px; bottom: 18px; z-index: 900;
	display: inline-flex; align-items: center; justify-content: center;
	width: 46px; height: 46px; border-radius: 3px;
	background: var(--mk-ink); color: var(--mk-white);
	box-shadow: var(--mk-shadow);
}
.back-to-top:hover { background: var(--mk-accent); color: var(--mk-white); }
.back-to-top[hidden] { display: none; }

/* ==========================================================================
   Block editor color palette classes
   ========================================================================== */
.has-ink-color { color: var(--mk-ink); } .has-ink-background-color { background-color: var(--mk-ink); }
.has-indigo-color { color: var(--mk-indigo); } .has-indigo-background-color { background-color: var(--mk-indigo); }
.has-accent-color { color: var(--mk-accent); } .has-accent-background-color { background-color: var(--mk-accent); }
.has-stitch-color { color: var(--mk-stitch); } .has-stitch-background-color { background-color: var(--mk-stitch); }
.has-surface-color { color: var(--mk-surface); } .has-surface-background-color { background-color: var(--mk-surface); }
.has-white-color { color: #fff; } .has-white-background-color { background-color: #fff; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Print */
@media print {
	.topbar, .site-header, .site-footer, .back-to-top, .sidebar { display: none !important; }
}

/* ==========================================================================
   Currency converter
   ========================================================================== */
html.mk-fx-pending [data-mk-amount] { visibility: hidden; }
.currency-switch { display: inline-flex; align-items: center; gap: 6px; position: relative; }
.currency-switch svg { width: 15px; height: 15px; flex: 0 0 auto; }
.currency-switch select {
	-webkit-appearance: none; appearance: none;
	min-height: 0; width: auto; padding: 2px 18px 2px 4px;
	border: 0; border-radius: var(--mk-radius-sm); background: transparent;
	font: inherit; font-weight: 600; color: inherit; cursor: pointer;
	background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
	background-position: calc(100% - 8px) 55%, calc(100% - 4px) 55%;
	background-size: 4px 4px; background-repeat: no-repeat;
}
.currency-switch select:focus { box-shadow: none; outline: 2px solid currentColor; outline-offset: 1px; }
.topbar .currency-switch select { color: rgba(255, 255, 255, .9); }
.topbar .currency-switch select option { color: var(--mk-text); background: var(--mk-white); }
.currency-switch--drawer {
	align-self: flex-start; margin-bottom: 8px; padding: 8px 12px;
	border: 1px solid var(--mk-line); border-radius: 6px; color: var(--mk-ink);
}
.currency-switch--drawer select { font-size: 1rem; }
.fx-credit { margin: 0; font-size: .78rem; opacity: .75; }
.fx-credit a { color: inherit; }
.currency-note {
	margin: 0 0 18px; padding: 12px 16px;
	border-left: 4px solid var(--mk-ink); border-radius: 8px;
	background: var(--mk-surface); color: var(--mk-ink); font-weight: 600;
}
.currency-note[hidden] { display: none; }
.currency-switch.is-single select { pointer-events: none; background-image: none; padding-right: 4px; }

/* ==========================================================================
   Header profile icon / account menu
   ========================================================================== */
.header-account-menu { position: relative; }
.header-account--in {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; padding: 0;
	border: 0; border-radius: 50%; background: transparent; cursor: pointer;
}
.header-account__avatar {
	display: inline-flex; align-items: center; justify-content: center;
	width: 34px; height: 34px; border-radius: 50%;
	background: var(--mk-ink); color: var(--mk-white);
	font-family: var(--mk-font-heading); font-size: .9rem; font-weight: 700; letter-spacing: .02em;
	transition: box-shadow .15s ease;
}
.header-account--in:hover .header-account__avatar,
.header-account--in[aria-expanded="true"] .header-account__avatar { box-shadow: 0 0 0 3px color-mix(in srgb, var(--mk-accent) 35%, transparent); }
.header-account__panel {
	position: absolute; top: calc(100% + 10px); right: 0; z-index: 20;
	width: 260px; padding: 8px;
	border: 1px solid var(--mk-line); border-radius: 12px;
	background: var(--mk-white); box-shadow: var(--mk-shadow);
}
.header-account__panel[hidden] { display: none; }
.header-account__who { display: flex; flex-direction: column; padding: 10px 12px 12px; border-bottom: 1px solid var(--mk-line); margin-bottom: 6px; }
.header-account__name { font-family: var(--mk-font-heading); font-size: 1.1rem; font-weight: 700; color: var(--mk-ink); }
.header-account__email { font-size: .85rem; color: var(--mk-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header-account__list { list-style: none; margin: 0; padding: 0; }
.header-account__list a {
	display: flex; align-items: center; gap: 10px;
	padding: 9px 12px; border-radius: 8px;
	color: var(--mk-ink); font-weight: 600; text-decoration: none;
}
.header-account__list a:hover, .header-account__list a:focus-visible { background: var(--mk-surface); color: var(--mk-ink); }
.header-account__list svg { width: 18px; height: 18px; color: var(--mk-muted); }
.header-account__item--customer-logout { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--mk-line); }
.header-account__item--customer-logout a { color: var(--mk-muted); }
.header-account__item--customer-logout a:hover { color: var(--mk-accent); }
@media (max-width: 480px) {
	.header-account__panel { position: fixed; top: auto; left: 12px; right: 12px; width: auto; margin-top: 8px; }
	.header-account__avatar { width: 30px; height: 30px; font-size: .8rem; }
}

/* ==========================================================================
   404 page
   ========================================================================== */
.nf-hero {
	padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px);
	background: var(--mk-surface);
	border-bottom: 2px dashed color-mix(in srgb, var(--mk-stitch) 55%, transparent);
	text-align: center;
}
.nf-hero__inner { max-width: 760px; }
.nf-code {
	margin: 0 0 8px;
	font-family: var(--mk-font-heading); font-weight: 700; line-height: .9;
	font-size: clamp(5.5rem, 18vw, 10rem); letter-spacing: -.02em;
	color: transparent; -webkit-text-stroke: 3px var(--mk-ink);
	background-image: repeating-linear-gradient(90deg, var(--mk-accent) 0 10px, transparent 10px 18px);
	-webkit-background-clip: text; background-clip: text;
}
.nf-title { margin: 0 0 12px; font-size: clamp(2rem, 4.5vw, 3rem); }
.nf-text { margin: 0 auto 28px; max-width: 560px; font-size: 1.1rem; color: var(--mk-muted); }

.nf-search {
	display: flex; align-items: center; gap: 0;
	max-width: 620px; margin: 0 auto 24px;
	border: 2px solid var(--mk-ink); border-radius: 8px; background: var(--mk-white);
	overflow: hidden;
}
.nf-search:focus-within { border-color: var(--mk-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--mk-accent) 15%, transparent); }
.nf-search > svg { flex: 0 0 auto; width: 20px; height: 20px; margin-left: 16px; color: var(--mk-muted); }
.nf-search input[type="search"] { flex: 1; min-width: 0; min-height: 56px; padding: 0 12px; border: 0; border-radius: 0; background: transparent; font-size: 1.1rem; box-shadow: none; }
.nf-search input[type="search"]:focus { box-shadow: none; }
.nf-search button {
	flex: 0 0 auto; align-self: stretch; padding: 0 26px;
	border: 0; background: var(--mk-accent); color: var(--mk-accent-contrast);
	font-family: var(--mk-font-heading); font-size: 1.15rem; font-weight: 700; cursor: pointer;
}
.nf-search button:hover { background: var(--mk-accent-hover); }

.nf-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 16px; margin: 0; }
.nf-home { font-weight: 600; }

.nf-section { padding-top: clamp(40px, 6vw, 64px); }
.nf-section:last-child { padding-bottom: clamp(48px, 7vw, 88px); }
.nf-section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 22px; }
.nf-section__title { margin: 0 0 22px; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.nf-section__head .nf-section__title { margin: 0; }
.nf-section__head a { font-weight: 700; }


@media (max-width: 599px) {
	.nf-search button { padding: 0 16px; font-size: 1rem; }
	.nf-search input[type="search"] { min-height: 52px; font-size: 1rem; }
	.nf-actions .btn { flex: 1 1 100%; }
}

/* Style guide page (admins only) */
.sg__body { padding-top: var(--mk-space-6); padding-bottom: var(--mk-space-8); }
.sg__section { padding: var(--mk-space-6) 0; border-bottom: 1px solid var(--mk-line); }
.sg__label { margin-bottom: var(--mk-space-5); font-size: var(--mk-fs-xs); font-family: var(--mk-font-body); font-weight: 700; color: var(--mk-muted); letter-spacing: .04em; }
.sg__swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--mk-space-4); }
.sg__swatch { display: flex; flex-direction: column; gap: 4px; }
.sg__swatch span { height: 64px; border-radius: var(--mk-radius); border: 1px solid var(--mk-line); }
.sg__swatch code { font-size: .75rem; align-self: flex-start; }
.sg__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--mk-space-5); margin: var(--mk-space-4) 0; }
.sg .btn-group { margin-bottom: var(--mk-space-4); align-items: center; }
.sg__dark { padding: var(--mk-space-5); border-radius: var(--mk-radius); background-color: var(--mk-ink); background-image: var(--mk-weave); margin-bottom: var(--mk-space-4); }
.sg__dark .btn-group { margin: 0; }
.sg__form { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 var(--mk-space-5); max-width: 820px; }
.sg__form p { margin: 0 0 var(--mk-space-4); }
.sg__form label { display: block; margin-bottom: 6px; }
.sg__form label:has(input[type="checkbox"]), .sg__form label:has(input[type="radio"]) { display: inline-flex; align-items: center; gap: 6px; margin-right: 12px; font-weight: 500; }
.sg__full { grid-column: 1 / -1; }

/* ==========================================================================
   Button motion and icons
   ========================================================================== */
:root {
	--mk-ico-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6'/%3E%3C/svg%3E");
	--mk-ico-cart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h2l2.4 11.2a1 1 0 0 0 1 .8h9.2a1 1 0 0 0 1-.8L20.5 8H6.2'/%3E%3Ccircle cx='9.5' cy='20' r='1.3'/%3E%3Ccircle cx='17' cy='20' r='1.3'/%3E%3C/svg%3E");
	--mk-ico-quote: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3h7l5 5v13H7z'/%3E%3Cpath d='M14 3v5h5M10 13h6M10 17h4'/%3E%3C/svg%3E");
	--mk-ico-lock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E");
	--mk-ico-whatsapp: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20l1.3-4A8 8 0 1 1 8.4 19z'/%3E%3Cpath d='M9 9.5c0 3 2.5 5.5 5.5 5.5l1-1.5-2-1-1 1a4 4 0 0 1-2-2l1-1-1-2z'/%3E%3C/svg%3E");
	--mk-ico-send: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 3 10 14M21 3l-7 18-4-7-7-4z'/%3E%3C/svg%3E");
}

/* Lift on hover, press on click (all button families) */
.btn, .wp-block-button .wp-block-button__link, .elementor-widget-button .elementor-button,
html :where(input[type="submit"], button[type="submit"]:not(.search-submit):not(.msearch__submit), .wpcf7-submit, .wpforms-submit),
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.mukka-card .pcard__actions .button, .sticky-buy__main, .sticky-buy__icon,
body.mukka-checkout-flow .wc-block-cart__submit-button,
body.mukka-checkout-flow .wc-block-components-checkout-place-order-button {
	transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .18s ease, background-color .18s ease, background-size .3s ease, color .18s ease, border-color .18s ease;
	will-change: transform;
}
.btn:hover, .wp-block-button .wp-block-button__link:hover, .elementor-widget-button .elementor-button:hover,
html :where(input[type="submit"], button[type="submit"]:not(.search-submit):not(.msearch__submit), .wpcf7-submit, .wpforms-submit):hover,
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover,
.mukka-card .pcard__actions .button:hover, .sticky-buy__main:hover,
body.mukka-checkout-flow .wc-block-cart__submit-button:hover,
body.mukka-checkout-flow .wc-block-components-checkout-place-order-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 20px -10px rgba(1, 1, 1, .45);
}
.btn:active, .wp-block-button .wp-block-button__link:active, .elementor-widget-button .elementor-button:active,
html :where(input[type="submit"], button[type="submit"]):active,
.woocommerce a.button:active, .woocommerce button.button:active,
.mukka-card .pcard__actions .button:active, .sticky-buy__main:active, .sticky-buy__icon:active,
body.mukka-checkout-flow .wc-block-cart__submit-button:active,
body.mukka-checkout-flow .wc-block-components-checkout-place-order-button:active {
	transform: translateY(0) scale(.98);
	box-shadow: none;
	transition-duration: .06s;
}
.btn--text:hover, .btn--text:active { transform: none; box-shadow: none; }

/* Shine sweep on main theme buttons */
.btn:not(.btn--text):not(.btn--outline):not(.btn--ghost), .wp-block-button:not(.is-style-outline) .wp-block-button__link { position: relative; overflow: hidden; isolation: isolate; }
.btn:not(.btn--text):not(.btn--outline):not(.btn--ghost)::after,
.wp-block-button:not(.is-style-outline) .wp-block-button__link::after {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
	transform: translateX(-120%);
	transition: transform .6s ease;
	pointer-events: none;
}
.btn:not(.btn--text):not(.btn--outline):not(.btn--ghost):hover::after,
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover::after { transform: translateX(120%); }

/* Outline buttons fill from the left */
.btn--outline, .btn--ghost,
.wp-block-button.is-style-outline > .wp-block-button__link:not(.has-background),
.woocommerce ul.products li.product .pcard__actions a.mukka-card-quote,
.mukka-card .pcard__actions a.mukka-card-quote,
.woocommerce .mukka-panel__actions a.mukka-quote-sample {
	background-color: transparent;
	background-image: linear-gradient(var(--mk-ink), var(--mk-ink));
	background-repeat: no-repeat; background-position: left center; background-size: 0% 100%;
	transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .18s ease, background-size .32s ease, color .12s ease .14s, border-color .18s ease;
}
.btn--outline:hover, .btn--ghost:hover,
.wp-block-button.is-style-outline > .wp-block-button__link:not(.has-background):hover,
.woocommerce ul.products li.product .pcard__actions a.mukka-card-quote:hover,
.mukka-card .pcard__actions a.mukka-card-quote:hover {
	background-color: transparent; background-image: linear-gradient(var(--mk-ink), var(--mk-ink)); background-size: 100% 100%; color: var(--mk-white);
}

/* Icon motion */
.btn svg, .elementor-button-icon svg, .elementor-button-icon i, .sticky-buy__main svg, .sticky-buy__icon svg,
.woocommerce .button svg, .account-card svg { transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.btn:hover .icon-arrow, .elementor-button:hover .elementor-align-icon-right svg, .elementor-button:hover .elementor-button-icon,
a:hover > .icon-arrow { transform: translateX(4px); }
.btn:hover .icon-cart, .sticky-buy__main:hover .icon-cart, .woocommerce .button:hover .icon-cart { animation: mk-bump .45s ease; }
.btn:hover .icon-quote, .sticky-buy__main:hover .icon-quote, .sticky-buy__icon:hover .icon-quote,
.btn:hover .icon-whatsapp, .sticky-buy__icon:hover .icon-whatsapp { transform: rotate(-8deg) scale(1.08); }
.btn:hover .icon-send { transform: translate(3px, -3px); }
.btn:hover .icon-lock { animation: mk-bump .45s ease; }
.account-card:hover svg { transform: translateY(-3px); }
@keyframes mk-bump { 0% { transform: none; } 30% { transform: translateY(-3px) rotate(-6deg); } 60% { transform: translateY(1px) rotate(3deg); } 100% { transform: none; } }

/* CSS icons for buttons whose markup comes from WooCommerce */
.mk-ico::before, .mk-ico-after::after,
.woocommerce div.product form.cart .single_add_to_cart_button::before,
body.mukka-checkout-flow .wc-block-cart__submit-button .wc-block-components-button__text::after,
body.mukka-checkout-flow .wc-block-components-checkout-place-order-button .wc-block-components-button__text::before,
.content-area--checkout .wc-proceed-to-checkout a.checkout-button::after,
.content-area--checkout #place_order::before {
	content: ""; display: inline-block; flex: 0 0 auto;
	width: 1.1em; height: 1.1em; vertical-align: -.15em;
	background-color: currentColor;
	-webkit-mask: var(--mk-ico, var(--mk-ico-arrow)) center / contain no-repeat;
	        mask: var(--mk-ico, var(--mk-ico-arrow)) center / contain no-repeat;
	transition: transform .25s cubic-bezier(.2,.8,.2,1);
}
.woocommerce div.product form.cart .single_add_to_cart_button { display: inline-flex; align-items: center; gap: .5em; --mk-ico: var(--mk-ico-cart); }
.woocommerce div.product form.cart .single_add_to_cart_button:hover::before { animation: mk-bump .45s ease; }
body.mukka-checkout-flow .wc-block-cart__submit-button .wc-block-components-button__text { display: inline-flex; align-items: center; gap: .5em; --mk-ico: var(--mk-ico-arrow); }
body.mukka-checkout-flow .wc-block-cart__submit-button:hover .wc-block-components-button__text::after { transform: translateX(4px); }
body.mukka-checkout-flow .wc-block-components-checkout-place-order-button .wc-block-components-button__text { display: inline-flex; align-items: center; gap: .5em; --mk-ico: var(--mk-ico-lock); }
.content-area--checkout .wc-proceed-to-checkout a.checkout-button { gap: .5em; --mk-ico: var(--mk-ico-arrow); }
.content-area--checkout #place_order { gap: .5em; --mk-ico: var(--mk-ico-lock); }

/* Block editor Button styles: Arrow, Cart, Quote, WhatsApp (pick under Styles in the editor) */
.wp-block-button[class*="is-style-mk-"] .wp-block-button__link { gap: .55em; }
.wp-block-button[class*="is-style-mk-"] .wp-block-button__link::before {
	content: ""; display: inline-block; flex: 0 0 auto; width: 1.15em; height: 1.15em;
	background-color: currentColor;
	-webkit-mask: var(--mk-ico) center / contain no-repeat; mask: var(--mk-ico) center / contain no-repeat;
	transition: transform .25s cubic-bezier(.2,.8,.2,1);
}
.wp-block-button.is-style-mk-arrow .wp-block-button__link { --mk-ico: var(--mk-ico-arrow); flex-direction: row-reverse; } /* icon after the text */
.wp-block-button.is-style-mk-cart .wp-block-button__link { --mk-ico: var(--mk-ico-cart); }
.wp-block-button.is-style-mk-quote .wp-block-button__link { --mk-ico: var(--mk-ico-quote); }
.wp-block-button.is-style-mk-whatsapp .wp-block-button__link { --mk-ico: var(--mk-ico-whatsapp); }
.wp-block-button.is-style-mk-whatsapp .wp-block-button__link:not(.has-background) { background-color: #1f9d55; border-color: #1f9d55; color: #fff; }
.wp-block-button.is-style-mk-whatsapp .wp-block-button__link:not(.has-background):hover { background-color: #17834a; border-color: #17834a; }
.wp-block-button.is-style-mk-arrow .wp-block-button__link:hover::before { transform: translateX(4px); }
.wp-block-button.is-style-mk-cart .wp-block-button__link:hover::before { animation: mk-bump .45s ease; }
.wp-block-button.is-style-mk-quote .wp-block-button__link:hover::before,
.wp-block-button.is-style-mk-whatsapp .wp-block-button__link:hover::before { transform: rotate(-8deg) scale(1.08); }

/* Loading state */
.btn.is-loading, button.is-loading, input.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading > *, button.is-loading > * { visibility: hidden; }
.btn.is-loading::before, button.is-loading::before {
	content: ""; position: absolute; top: 50%; left: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px;
	border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%;
	animation: mk-spin .7s linear infinite; z-index: 2;
}
.btn--outline.is-loading::before, .btn--ghost.is-loading::before, .btn--light.is-loading::before { border-color: rgba(1, 1, 1, .2); border-top-color: var(--mk-ink); }
@keyframes mk-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
	.btn, .btn::after, .wp-block-button__link, .wp-block-button__link::after, .elementor-button, .woocommerce .button, .sticky-buy__main { transition: none !important; transform: none !important; animation: none !important; }
	.btn:hover, .wp-block-button__link:hover, .woocommerce .button:hover { transform: none !important; }
}

/* ==========================================================================
   Shop by category tiles (product listings, product pages, 404)
   ========================================================================== */
.cat-tiles-section { padding: clamp(40px, 6vw, 72px) 0; }
.cat-tiles-section--bottom { margin-top: clamp(8px, 2vw, 24px); border-top: 2px dashed color-mix(in srgb, var(--mk-stitch) 45%, transparent); }
.cat-tiles-section--404 { padding-bottom: 0; }
.cat-tiles-section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 22px; }
.cat-tiles-section__title { margin: 0; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.cat-tiles-section__all { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; }
.cat-tiles-section__all svg { width: 18px; height: 18px; transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.cat-tiles-section__all:hover svg { transform: translateX(4px); }

.cat-tiles-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 14px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 700px) { .cat-tiles-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cat-tiles-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; } }

.cat-tile { display: flex; flex-direction: column; gap: 10px; color: var(--mk-ink); text-decoration: none; }
.cat-tile__media {
	position: relative;
	display: flex; align-items: center; justify-content: center;
	aspect-ratio: 1 / 1; border-radius: var(--mk-radius); background: var(--mk-surface); overflow: hidden;
	transition: background-color .2s ease, box-shadow .2s ease, transform .2s cubic-bezier(.2,.8,.2,1);
}
.cat-tile__media img { width: 100%; height: 100%; object-fit: contain; padding: 10%; mix-blend-mode: multiply; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.cat-tile__media svg { width: 40px; height: 40px; color: var(--mk-accent); }
.cat-tile__name { display: flex; align-items: center; gap: 6px; font-family: var(--mk-font-heading); font-size: 1.15rem; font-weight: 700; line-height: 1.15; }
.cat-tile:hover .cat-tile__media { background: color-mix(in srgb, var(--mk-surface) 92%, var(--mk-ink)); transform: translateY(-3px); box-shadow: 0 12px 24px -14px rgba(1, 1, 1, .4); }
.cat-tile:hover .cat-tile__media img { transform: scale(1.04); }
.cat-tile:hover .cat-tile__name { color: var(--mk-accent); }
.cat-tile.is-current .cat-tile__media { box-shadow: inset 0 0 0 2px var(--mk-ink); }
.cat-tile.is-current .cat-tile__name::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mk-accent); }
@media (prefers-reduced-motion: reduce) { .cat-tile__media, .cat-tile__media img { transition: none; transform: none !important; } }
