/*
 * Motokiwo Foundry design system.
 * The visual layer is deliberately independent from Kalium and shared by
 * normal pages, WooCommerce, Builder sections, and footer widgets.
 */
:root {
  --mk-ink: #111111;
  --mk-paper: #f3f3f1;
  --mk-card: #ffffff;
  --mk-surface: #ececea;
  --mk-surface-2: #e6e6e3;
  --mk-line: #d9d9d4;
  --mk-line-strong: #bdbdb7;
  --mk-muted: #696965;
  --mk-accent: #e9e9e5;
  --mk-canvas: #111111;
  --mk-canvas-type: #f6f6f3;
  --mk-header-bg: #ffffff;
  --mk-footer-bg: #111111;
  --mk-footer-text: #f6f6f3;
  --mk-site-width: 1360px;
  --mk-reading-width: 780px;
  --mk-gutter: clamp(18px, 3.25vw, 50px);
  --mk-radius: 0px;
  --mk-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mk-font-heading: var(--mk-font-body);
  --mk-header-height: 82px;
  --mk-card-shadow: 0 1px 2px rgba(17, 18, 20, .025), 0 14px 36px rgba(17, 18, 20, .05);
  --mk-card-shadow-hover: var(--mk-card-shadow);
  --mk-transition: 180ms cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: clip;
  color: var(--mk-ink);
  background: var(--mk-paper);
  font-family: var(--mk-font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html.has-open-menu,
body.has-open-menu { overflow: hidden; }
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a {
  color: inherit;
  text-decoration-thickness: .07em;
  text-underline-offset: .18em;
  text-decoration-color: color-mix(in srgb, currentColor 42%, transparent);
}
a:hover { text-decoration-color: currentColor; }
p, ul, ol, blockquote, figure, table { margin-top: 0; }
h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  color: inherit;
  font-family: var(--mk-font-heading);
  font-weight: 450;
  line-height: 1.08;
  letter-spacing: -.035em;
  text-wrap: balance;
}
h1 { font-size: var(--mk-page-heading-size, 36px); }
h2 { font-size: var(--mk-h2-size, 34px); }
h3 { font-size: var(--mk-h3-size, 25px); }
h4 { font-size: var(--mk-h4-size, 19px); }
h5 { font-size: var(--mk-h5-size, 16px); }
hr { height: 1px; margin: clamp(38px, 6vw, 76px) 0; background: var(--mk-line); border: 0; }
::selection { color: var(--mk-ink); background: var(--mk-accent); }

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.screen-reader-text:focus,
.skip-link:focus {
  z-index: 100000;
  top: 10px;
  left: 10px;
  width: auto;
  height: auto;
  clip: auto;
  padding: 10px 14px;
  color: #fff;
  background: #000;
}
:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

/* Layout */
.mk-container {
  width: min(calc(100% - (var(--mk-gutter) * 2)), var(--mk-site-width));
  margin-inline: auto;
}
.mk-site-main { min-height: 44vh; }
.mk-content-stack { padding-block: clamp(58px, 8vw, 116px); }
.mk-content-stack > * + * { margin-top: clamp(44px, 6vw, 82px); }
.entry-content { min-width: 0; }
.entry-content::after { display: table; clear: both; content: ""; }
.entry-content > :where(p, ul, ol, blockquote, pre, table, details):not(.alignwide):not(.alignfull),
.entry-content > .wp-block-list:not(.alignwide):not(.alignfull) {
  max-width: var(--mk-reading-width);
  margin-inline: auto;
}
.entry-content > :where(h1, h2, h3, h4, h5, h6):not(.alignwide):not(.alignfull) {
  max-width: 980px;
  margin-inline: auto;
}
.entry-content > :where(p, ul, ol, blockquote, pre, table, details) + :where(p, ul, ol, blockquote, pre, table, details) { margin-top: 1.25em; }
.entry-content > :where(h2, h3, h4) { margin-top: clamp(46px, 7vw, 88px); margin-bottom: .48em; }
.entry-content > .alignwide,
.entry-content > .wp-block-group.alignwide { width: min(100%, var(--mk-site-width)); margin-inline: auto; }
.entry-content > .alignfull { width: 100%; max-width: none; }
.entry-content img { border-radius: var(--mk-radius); }
.entry-content figcaption { margin-top: 10px; color: var(--mk-muted); font-size: .82rem; }
.entry-content blockquote,
.wp-block-quote {
  padding: 8px 0 8px clamp(22px, 4vw, 42px);
  border-left: 2px solid var(--mk-ink);
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  line-height: 1.38;
}
.entry-content blockquote cite,
.wp-block-quote cite { display: block; margin-top: 16px; color: var(--mk-muted); font-size: .78rem; font-style: normal; letter-spacing: .08em; text-transform: uppercase; }
.entry-content > table, .entry-content .wp-block-table table { width: 100%; border-collapse: collapse; background: var(--mk-card); }
.entry-content .wp-block-table th, .entry-content > table th,
.entry-content .wp-block-table td, .entry-content > table td { padding: 15px 16px; border: 1px solid var(--mk-line); text-align: left; vertical-align: top; }
.entry-content .wp-block-table th, .entry-content > table th { background: var(--mk-surface); font-size: .82rem; font-weight: 600; letter-spacing: .045em; text-transform: uppercase; }
.entry-content details { padding-block: 18px; border-top: 1px solid var(--mk-line); }
.entry-content details:last-child { border-bottom: 1px solid var(--mk-line); }
.entry-content summary { font-weight: 600; }

/* Standard page title area */
.mk-standard-page { padding-block: clamp(54px, 7vw, 104px) clamp(72px, 9vw, 136px); }
.mk-standard-page .entry-header,
.entry-header {
  max-width: 1120px;
  margin: 0 auto clamp(42px, 6vw, 82px);
  padding-top: 20px;
  border-top: 1px solid var(--mk-ink);
}
.entry-header__eyebrow,
.mk-eyebrow {
  display: block;
  margin: 0 0 14px;
  color: var(--mk-muted);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.entry-title { max-width: 14ch; margin: 0; font-size: clamp(3rem, 7vw, 6.5rem); }
.entry-header__intro { max-width: 680px; margin: 24px 0 0; color: var(--mk-muted); font-size: clamp(1.04rem, 1.8vw, 1.28rem); line-height: 1.65; }
.entry-meta { margin-top: 16px; color: var(--mk-muted); font-size: .84rem; }
.page-links, .post-navigation, .posts-navigation, .pagination { margin-top: 54px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 10px; }
.page-numbers {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 8px;
  border: 1px solid var(--mk-line);
  background: var(--mk-card);
  text-decoration: none;
}
.page-numbers:hover { border-color: var(--mk-ink); }
.page-numbers.current { color: var(--mk-paper); background: var(--mk-ink); border-color: var(--mk-ink); }

/* Native blocks and Builder content */
.wp-block-columns { gap: clamp(24px, 4vw, 64px); }
.wp-block-group.has-background { padding: clamp(28px, 5vw, 72px); }
.wp-block-button__link { border-radius: 0; }
.wp-block-separator { border: 0; border-top: 1px solid var(--mk-line); }
.mk-visual-page .entry-content { width: 100%; }
.mk-visual-page--content > .entry-content { padding-block: clamp(54px, 7vw, 104px) clamp(78px, 10vw, 144px); }
.mk-visual-page--content > .entry-content > :first-child { margin-top: 0; }
.mk-visual-page--content > .entry-content > :last-child { margin-bottom: 0; }
.mk-visual-page .entry-content > :first-child { margin-top: 0; }
.mk-visual-page :where(.vc_row, .wpb_row) { width: min(calc(100% - (var(--mk-gutter) * 2)), var(--mk-site-width)); margin-right: auto; margin-left: auto; }
.mk-visual-page :where(.vc_row.vc_row-no-padding, .vc_row[data-vc-full-width="true"], .alignfull) { width: 100%; max-width: none; }
.mk-visual-page :where(.vc_column_container > .vc_column-inner, .wpb_wrapper) { min-width: 0; }
.mk-visual-page .wpb_content_element { margin-bottom: 28px; }

/* Posts and archives */
.mk-post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(24px, 3.4vw, 46px);
}
.mk-post-grid .mk-entry {
  display: flex;
  min-width: 0;
  height: 100%;
  flex-direction: column;
  background: var(--mk-card);
  border: 1px solid var(--mk-line);
  box-shadow: var(--mk-card-shadow);
}
.mk-entry { min-width: 0; }
.mk-entry__image { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--mk-surface); }
.mk-entry__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 320ms cubic-bezier(.2,.7,.2,1); }
.mk-entry__image:hover img { transform: scale(1.018); }
.mk-post-grid .mk-entry__header,
.mk-post-grid .mk-entry .entry-content { width: 100%; margin: 0; padding-inline: 22px; }
.mk-post-grid .mk-entry__header { padding-top: 22px; padding-bottom: 0; border: 0; }
.mk-post-grid .mk-entry .entry-content { padding-bottom: 26px; color: var(--mk-muted); }
.mk-entry__header { margin-bottom: 18px; }
.mk-entry__title { margin: 0; font-size: clamp(1.55rem, 2.7vw, 2.35rem); }
.mk-entry__title a { text-decoration: none; }
.mk-entry__title a:hover { text-decoration: underline; }
.mk-entry .entry-content > :where(p, ul, ol, blockquote, pre, table) { max-width: none; margin-inline: 0; }
.mk-entry .entry-content > :last-child { margin-bottom: 0; }
.single .mk-entry__image { max-width: 1120px; margin: 0 auto clamp(34px, 5vw, 68px); aspect-ratio: 16 / 9; }
.single .mk-entry__header { max-width: 980px; }
.single .mk-entry .entry-content { max-width: 100%; }
.no-results, .mk-not-found { max-width: 780px; }

/* Header */
.site-header {
  position: relative;
  z-index: 100;
  width: 100%;
  color: var(--mk-ink);
  background: var(--mk-header-bg);
  border-bottom: 0;
  box-shadow: 0 8px 28px rgba(17,18,20,.055);
}
.site-header__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  min-height: var(--mk-header-height);
  gap: clamp(20px, 3vw, 48px);
}
.site-branding { min-width: 0; }
.site-branding__link { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.site-branding .custom-logo-link { display: inline-flex; align-items: center; line-height: 0; text-decoration: none; }
.site-branding .custom-logo { width: auto; max-width: min(245px, 35vw); max-height: 52px; object-fit: contain; }
.site-branding__mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--mk-accent); font-weight: 700; }
.site-branding__name { font-size: 1.25rem; font-weight: 600; letter-spacing: -.025em; }
.site-branding__description { display: none; }
.primary-navigation { justify-self: end; }
.primary-navigation .menu,
.mobile-navigation .menu,
.site-footer .menu { list-style: none; margin: 0; padding: 0; }
.primary-navigation__menu { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: clamp(20px, 2.4vw, 38px); }
.primary-navigation__menu li { position: relative; margin: 0; }
.primary-navigation__menu > li > a {
  display: block;
  padding: 29px 0 26px;
  font-size: clamp(.92rem, 1.15vw, 1.03rem);
  font-weight: 400;
  letter-spacing: -.01em;
  text-decoration: none;
  white-space: nowrap;
}
.primary-navigation__menu > li > a::after {
  position: absolute;
  right: 0;
  bottom: 20px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--mk-transition);
}
.primary-navigation__menu > li:hover > a::after,
.primary-navigation__menu > li.current-menu-item > a::after,
.primary-navigation__menu > li.current-menu-ancestor > a::after { transform: scaleX(1); transform-origin: left; }
.primary-navigation .sub-menu {
  position: absolute;
  top: calc(100% - 12px);
  left: -20px;
  min-width: 230px;
  margin: 0;
  padding: 10px;
  list-style: none;
  visibility: hidden;
  opacity: 0;
  transform: translateY(6px);
  background: var(--mk-card);
  border: 1px solid var(--mk-line);
  box-shadow: var(--mk-card-shadow-hover);
  transition: opacity var(--mk-transition), transform var(--mk-transition), visibility var(--mk-transition);
}
.primary-navigation li:hover > .sub-menu,
.primary-navigation li:focus-within > .sub-menu { visibility: visible; opacity: 1; transform: none; }
.primary-navigation .sub-menu a { display: block; padding: 9px 10px; font-size: .92rem; text-decoration: none; }
.primary-navigation .sub-menu a:hover { background: var(--mk-surface); }
.site-header__actions { display: flex; align-items: center; gap: 3px; }
.mk-icon-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 99px;
  text-decoration: none;
}
.mk-icon-button:hover { background: color-mix(in srgb, var(--mk-ink) 7%, transparent); }
.mk-icon-button svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.site-header__menu-toggle { display: none; }
.mk-header-cart__count { position: absolute; top: 1px; right: -1px; display: grid; place-items: center; min-width: 18px; height: 18px; padding-inline: 4px; border-radius: 999px; color: var(--mk-ink); background: var(--mk-accent); font-size: .63rem; font-weight: 700; line-height: 1; }
.mobile-navigation { border-top: 1px solid var(--mk-line); background: var(--mk-header-bg); }
.mobile-navigation[hidden] { display: none; }
.mobile-navigation__menu { padding-block: 12px 26px; }
.mobile-navigation__menu a { display: block; padding: 13px 0; border-bottom: 1px solid var(--mk-line); font-size: 1.08rem; text-decoration: none; }
.mobile-navigation .sub-menu { list-style: none; margin: 0; padding: 0 0 0 18px; }

/* Buttons and forms */
.mk-button,
.wp-element-button,
button[type="submit"],
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 11px 21px;
  color: var(--mk-paper);
  background: var(--mk-ink);
  border: 1px solid var(--mk-ink);
  border-radius: var(--mk-radius);
  font-weight: 550;
  line-height: 1.2;
  text-decoration: none;
  transition: color var(--mk-transition), background-color var(--mk-transition), border-color var(--mk-transition);
}
.mk-button:hover,
.wp-element-button:hover,
button[type="submit"]:hover,
input[type="submit"]:hover { color: var(--mk-ink); background: var(--mk-accent); border-color: var(--mk-accent); }
.mk-button--small { min-height: 42px; padding: 8px 15px; font-size: .86rem; }
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
select,
textarea {
  width: 100%;
  min-height: 50px;
  padding: 11px 13px;
  color: var(--mk-ink);
  background: var(--mk-card);
  border: 1px solid var(--mk-line-strong);
  border-radius: var(--mk-radius);
  box-shadow: none;
}
input:focus,
select:focus,
textarea:focus { border-color: var(--mk-ink); outline: 0; box-shadow: 0 0 0 1px var(--mk-ink); }
textarea { min-height: 150px; resize: vertical; }
label { font-size: .9rem; }
fieldset { padding: 24px; border: 1px solid var(--mk-line); }
legend { padding-inline: 8px; font-weight: 600; }
.wpcf7-form,
.wpforms-form,
.gform_wrapper,
form.contact-form { max-width: 920px; }
.mk-contact-notice {
  max-width: 920px;
  margin: 0 0 20px;
  padding: 12px 14px;
  border: 1px solid var(--mk-line-strong);
  border-radius: var(--mk-radius);
  background: var(--mk-card);
}
.mk-contact-notice.is-success { border-color: color-mix(in srgb, var(--mk-accent) 65%, var(--mk-line-strong)); }
.mk-contact-notice.is-error { border-color: color-mix(in srgb, #b42318 55%, var(--mk-line-strong)); }
.mk-contact-form .form-group { margin-bottom: 18px; }
.mk-contact-form label { display: block; margin-bottom: 7px; }
.mk-contact-form .contact-form-privacy-policy > label { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 18px; }
.mk-contact-form .contact-form-privacy-policy input[type="checkbox"] { width: auto; min-height: 0; margin-top: .3em; flex: 0 0 auto; }
.wpcf7-form p { margin-bottom: 18px; }
.wpcf7-form label { display: block; }
.wpcf7-form-control-wrap { display: block; margin-top: 7px; }
.wpcf7-not-valid-tip { margin-top: 6px; font-size: .8rem; }

/* Shared product specimen entry: Shop, related products, and Motokiwo blocks.
   Static soft-depth catalogue treatment. No hover motion or alternate image. */
.mk-product-card {
  position: relative;
  display: flex;
  min-width: 0;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  color: #111214;
  background: #fff;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(17, 18, 20, .025), 0 14px 36px rgba(17, 18, 20, .05);
}
.mk-product-card__media {
  position: relative;
  display: grid;
  aspect-ratio: 3 / 2;
  margin: 0;
  overflow: hidden;
  place-items: center;
  background: #ececea;
  border: 0;
}
.mk-product-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: none;
}
.mk-product-card__badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  padding: 6px 8px;
  color: #fff;
  background: #111214;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .055em;
  line-height: 1;
  text-transform: uppercase;
}
.mk-product-card__body {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 10px;
  padding: 18px 20px 22px;
}
.mk-product-card__copy { min-width: 0; }
.mk-product-card__title {
  display: block;
  min-height: 0;
  margin: 0 0 6px;
  overflow: visible;
  color: #111214;
  font-size: clamp(20px, 1.65vw, 25px);
  font-weight: 450;
  line-height: 1.08;
  letter-spacing: -.03em;
  -webkit-line-clamp: unset;
}
.mk-product-card__title a { color: inherit; text-decoration: none; }
.mk-product-card__title a::after { position: absolute; inset: 0; content: ""; }
.mk-product-card__title a:focus-visible { outline: 2px solid #111214; outline-offset: -4px; }
.mk-product-card__category {
  margin: 0;
  overflow: hidden;
  color: #73736f;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap;
}
.mk-product-card__category a { color: inherit; text-decoration: none; }
.mk-product-card__price {
  position: relative;
  z-index: 2;
  padding-top: 2px;
  color: #111214;
  font-size: 15px;
  font-weight: 550;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.mk-product-card__price del { color: #858580; font-size: .78em; font-weight: 400; }
.mk-product-card__price ins { background: transparent; text-decoration: none; }
.mk-product-card__actions { position: relative; z-index: 2; padding: 0 20px 20px; }
/* Footer: footer widgets, restyled in normal document flow. */
.site-footer {
  position: relative;
  clear: both;
  margin: 0;
  color: var(--mk-footer-text);
  background: var(--mk-footer-bg);
  border-top: 1px solid color-mix(in srgb, var(--mk-footer-text) 18%, transparent);
}
.site-footer::before { position: absolute; top: 0; left: var(--mk-gutter); width: 58px; height: 4px; background: var(--mk-accent); content: ""; }
.mk-footer-row { border-bottom: 1px solid color-mix(in srgb, var(--mk-footer-text) 17%, transparent); }
.mk-footer-row--saved { color: var(--mk-footer-row-text, var(--mk-footer-text)); background: var(--mk-footer-row-bg, transparent); }
.site-footer .mk-footer-row--saved :where(h1,h2,h3,h4,h5,h6,.widget-title) { color: var(--mk-footer-row-headings, currentColor); }
.site-footer .mk-footer-row--saved a { color: var(--mk-footer-row-link, currentColor); }
.site-footer .mk-footer-row--saved a:hover { color: var(--mk-footer-row-link-hover, var(--mk-footer-row-link, currentColor)); }
.mk-footer-row__full { width: 100%; padding-inline: var(--mk-gutter); }
.mk-footer-grid {
  display: grid;
  align-items: start;
  gap: clamp(34px, 5vw, 78px);
  padding-block: clamp(62px, 8vw, 108px);
}
.mk-footer-grid--saved,
.mk-footer-grid--auto { grid-template-columns: repeat(var(--mk-footer-columns, 1), minmax(0, 1fr)); }
.mk-footer-grid--count-2 { grid-template-columns: minmax(0, 1.35fr) minmax(200px, .65fr); }
.mk-footer-grid--count-3 { grid-template-columns: minmax(260px, 1.4fr) repeat(2, minmax(170px, .8fr)); }
.mk-footer-grid--count-4 { grid-template-columns: minmax(260px, 1.45fr) repeat(3, minmax(145px, .7fr)); }
.mk-footer-grid--count-5,
.mk-footer-grid--count-6 { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.mk-footer-column { min-width: 0; }
.mk-footer-grid--saved > .mk-footer-column { grid-column: auto !important; order: initial !important; text-align: var(--mk-footer-align-desktop, start); }
.site-footer .widget { margin: 0; }
.site-footer .widget + .widget { margin-top: 32px; }
.site-footer .widget-title {
  margin: 0 0 18px;
  color: inherit;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .105em;
  line-height: 1.4;
  text-transform: uppercase;
}
.site-footer p,
.site-footer li,
.site-footer a { font-size: .98rem; line-height: 1.65; }
.site-footer p { max-width: 34em; }
.site-footer a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 34%, transparent); }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li + li { margin-top: 9px; }
.site-footer .textwidget > :last-child,
.site-footer .widget > :last-child { margin-bottom: 0; }
.site-footer input[type="email"],
.site-footer input[type="text"] { color: var(--mk-footer-text); background: transparent; border-color: color-mix(in srgb, var(--mk-footer-text) 38%, transparent); }
.site-footer input::placeholder { color: color-mix(in srgb, var(--mk-footer-text) 55%, transparent); }
.site-footer button,
.site-footer input[type="submit"] { color: var(--mk-ink); background: var(--mk-accent); border-color: var(--mk-accent); }
.site-footer button:hover,
.site-footer input[type="submit"]:hover { color: var(--mk-ink); background: #fff; border-color: #fff; }
.mk-footer-fallback { display: grid; grid-template-columns: minmax(0, 1.3fr) auto; align-items: end; gap: 40px; padding-block: clamp(66px, 9vw, 118px); }
.mk-footer-brand { margin: 0 0 12px; font-size: clamp(2.3rem, 5vw, 5rem) !important; font-weight: 450; letter-spacing: -.05em; line-height: 1; }
.mk-footer-menu .menu,
.mk-footer-social .menu { display: flex; flex-wrap: wrap; gap: 10px 25px; }
.mk-footer-bottom { padding-block: 19px; }
.mk-footer-bottom__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.mk-footer-bottom p { margin: 0; color: color-mix(in srgb, var(--mk-footer-text) 70%, transparent); font-size: .8rem; }

/* Comments */
.comments-area { max-width: var(--mk-reading-width); margin: 72px auto 0; }
.comment-list { padding: 0; list-style: none; }
.comment-body { padding-block: 24px; border-top: 1px solid var(--mk-line); }

/* Page-specific improvements without requiring special templates. */
.mk-page-slug-license .entry-content :where(h2, h3) { scroll-margin-top: 110px; }
.mk-page-slug-license .entry-content h2 + ul,
.mk-page-slug-license .entry-content h3 + ul { padding-left: 0; list-style: none; }
.mk-page-slug-license .entry-content h2 + ul > li,
.mk-page-slug-license .entry-content h3 + ul > li { padding: 13px 0; border-bottom: 1px solid var(--mk-line); }
.mk-page-slug-contact .entry-content :where(.wp-block-columns, .vc_row) { gap: clamp(38px, 7vw, 100px); }
.mk-page-slug-contact .entry-content form { width: 100%; }
.mk-page-slug-contact .entry-content address { font-style: normal; }
.mk-page-slug-cart .mk-standard-page,
.mk-page-slug-checkout .mk-standard-page,
.mk-page-slug-my-account .mk-standard-page { padding-top: clamp(40px, 5vw, 74px); }

/* WordPress utilities */
.wp-caption, .gallery-caption { color: var(--mk-muted); font-size: .86rem; }
.sticky, .bypostauthor { position: relative; }
.alignleft { float: left; margin: .4em 1.5em 1em 0; }
.alignright { float: right; margin: .4em 0 1em 1.5em; }
.aligncenter { display: block; margin-inline: auto; }

@media (max-width: 1080px) {
  .primary-navigation__menu { gap: 20px; }
  .site-header__actions .mk-icon-button:not(.mk-header-cart) { display: none; }
  .mk-footer-grid--count-4,
  .mk-footer-grid--count-5,
  .mk-footer-grid--count-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 959px) {
  :root { --mk-header-height: 70px; }
  .site-header__inner { grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; }
  .site-header__menu-toggle { display: inline-grid; }
  .primary-navigation { display: none; }
  .site-branding { justify-self: center; }
  .site-branding__name { display: none; }
  .site-header__actions .mk-icon-button:not(.mk-header-cart):nth-last-child(n+2) { display: none; }
  .mk-footer-grid--count-3,
  .mk-footer-grid--count-4,
  .mk-footer-grid--count-5,
  .mk-footer-grid--count-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mk-footer-grid--saved > .mk-footer-column { text-align: var(--mk-footer-align-tablet, start); }
}

@media (max-width: 767px) {
  :root { --mk-gutter: 16px; }
  body { font-size: 16px; }
  .mk-standard-page { padding-block: 44px 80px; }
  .entry-header { padding-top: 16px; }
  .entry-title { max-width: none; font-size: clamp(2.65rem, 15vw, 4.25rem); }
  .site-branding .custom-logo { max-width: 170px; max-height: 42px; }
  .site-header__actions { gap: 0; }
  .mk-icon-button { width: 40px; height: 40px; }
  .mk-product-card__media { margin: 0; }
  .mk-product-card__body { gap: 18px; padding: 13px 0 20px; }
  .mk-product-card__title { min-height: 0; font-size: 17px; }
  .mk-product-card__category { font-size: 10px; }
  .mk-product-card__price { font-size: 15px; }
  .mk-footer-grid { padding-block: 58px; }
  .mk-footer-grid--saved,
  .mk-footer-grid--auto,
  .mk-footer-grid--count-2,
  .mk-footer-grid--count-3,
  .mk-footer-grid--count-4,
  .mk-footer-grid--count-5,
  .mk-footer-grid--count-6 { grid-template-columns: 1fr; }
  .mk-footer-grid--saved > .mk-footer-column { text-align: var(--mk-footer-align-mobile, start); }
  .mk-footer-fallback { grid-template-columns: 1fr; }
  .mk-footer-bottom__inner { align-items: flex-start; flex-direction: column; }
  .alignleft, .alignright { float: none; margin-inline: 0; }
  .entry-content > table, .entry-content .wp-block-table table { display: block; overflow-x: auto; }
}

@media (max-width: 480px) {
  .site-header__inner { width: calc(100% - 20px); }
  .site-header__menu-toggle { justify-self: start; }
  .site-branding .custom-logo { max-width: 145px; }
  .mk-product-card__body { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ========================================================================
   Motokiwo 2.2 visual parity layer
   This layer intentionally restores the compact proportions, quiet type,
   original footer grid and generous white space of the established site.
   ======================================================================== */
:root {
  --mk-ink: #24242b;
  --mk-paper: #f5f5f7;
  --mk-card: #fff;
  --mk-surface: #fff;
  --mk-surface-2: #fafafd;
  --mk-line: #dedee5;
  --mk-line-strong: #bfc0c8;
  --mk-muted: #777781;
  --mk-accent: #d5ef53;
  --mk-header-bg: #15122b;
  --mk-header-text: #f8f7ff;
  --mk-header-rail: #0e0c20;
  --mk-footer-bg: #15122b;
  --mk-footer-text: #f2f1f7;
  --mk-interface-radius: 16px;
  --mk-site-width: 1320px;
  --mk-reading-width: 760px;
  --mk-gutter: clamp(20px, 2.72vw, 40px);
  --mk-header-height: auto;
  --mk-body-size: 16px;
  --mk-body-mobile: 16px;
  --mk-page-heading-size: 36px;
  --mk-page-heading-mobile: 30px;
  --mk-h2-size: 34px;
  --mk-h2-mobile: 28px;
  --mk-h3-size: 25px;
  --mk-h3-mobile: 22px;
  --mk-h4-size: 19px;
  --mk-h4-mobile: 18px;
  --mk-h5-size: 16px;
  --mk-h5-mobile: 16px;
  --mk-logo-width: 180px;
  --mk-header-padding: 24px;
  --mk-menu-size: 16px;
  --mk-page-spacing: 32px;
  --mk-card-shadow: 0 7px 16px rgba(28, 31, 25, .035);
  --mk-card-shadow-hover: 0 11px 24px rgba(28, 31, 25, .07);
}
html { scroll-behavior: smooth; }
body {
  color: var(--mk-ink);
  background: var(--mk-paper);
  font-family: var(--mk-font-body, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif);
  font-size: var(--mk-body-size);
  font-weight: 400;
  line-height: 1.58;
  letter-spacing: 0;
}
h1,h2,h3,h4,h5,h6 {
  font-family: var(--mk-font-heading, var(--mk-font-body));
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.028em;
}
h1 { font-size: var(--mk-page-heading-size); }
h2 { font-size: var(--mk-h2-size, 34px); }
h3 { font-size: var(--mk-h3-size, 25px); }
h4 { font-size: var(--mk-h4-size, 19px); }
h5 { font-size: var(--mk-h5-size, 16px); }
a { text-underline-offset: 3px; }
.mk-container { width: min(calc(100% - (var(--mk-gutter) * 2)), var(--mk-site-width)); }
.mk-site-main { min-height: 28vh; }
.mk-content-stack { padding-block: clamp(48px, 5.3vw, 78px) clamp(64px, 7vw, 104px); }
.mk-content-stack > * + * { margin-top: clamp(36px, 4vw, 60px); }

/* Header: logo and navigation use the same compact geometry as the original. */
.site-header {
  color: var(--mk-ink);
  background: var(--mk-header-bg);
  border-bottom: 1px solid #e5e5e1;
}
.site-header__inner {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  min-height: 0;
  padding-block: clamp(10px, calc(var(--mk-header-padding) * .5), 22px);
  gap: clamp(22px, 3vw, 48px);
}
.site-branding .custom-logo {
  width: min(var(--mk-logo-width), 34vw);
  max-width: none;
  max-height: 46px;
  object-fit: contain;
}
.site-branding__mark { width: 34px; height: 34px; }
.site-branding__name { font-size: 21px; font-weight: 600; }
.primary-navigation { justify-self: end; }
.primary-navigation__menu { gap: clamp(26px, 2.5vw, 39px); }
.primary-navigation__menu > li > a {
  padding: 8px 0;
  font-size: var(--mk-menu-size);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -.012em;
}
.primary-navigation__menu > li > a::after { bottom: 2px; }
.site-header__actions { gap: 18px; }
.mk-header-text-link,
.mk-header-cart { color: inherit; font-size: var(--mk-menu-size); text-decoration: none; white-space: nowrap; }
.mk-header-cart { position: relative; }
.mk-header-cart__count { top: -11px; right: -13px; }
.mk-header-rail { width: 100%; height: 32px; background: var(--mk-header-rail); }
.primary-navigation .sub-menu {
  top: calc(100% + 7px);
  padding: 8px;
  background: #fff;
  border-color: var(--mk-line);
  box-shadow: 0 12px 28px rgba(26,28,23,.08);
}
.primary-navigation .sub-menu a { padding: 8px 11px; font-size: 14px; }

/* Normal pages stay editorial and compact; no oversized generic hero. */
.mk-standard-page { padding-block: clamp(52px, 5vw, 76px) clamp(70px, 7vw, 108px); }
.mk-standard-page .entry-header,
.entry-header {
  max-width: var(--mk-site-width);
  margin: 0 auto clamp(34px, 4vw, 56px);
  padding-top: 0;
  border-top: 0;
}
.entry-header__eyebrow,
.mk-eyebrow {
  margin-bottom: 12px;
  color: var(--mk-muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .1em;
  line-height: 1.45;
  text-transform: uppercase;
}
.entry-title {
  max-width: 24ch;
  margin: 0;
  font-size: var(--mk-page-heading-size);
  font-weight: 400;
  line-height: 1.13;
  letter-spacing: -.035em;
}
.entry-header__intro,
.archive-description {
  max-width: 520px;
  margin: 18px 0 0;
  color: var(--mk-muted);
  font-size: 14px;
  line-height: 1.65;
}
.entry-content > :where(h2,h3,h4):not(.alignwide):not(.alignfull) { max-width: var(--mk-reading-width); }
.entry-content > :where(h2,h3,h4) { margin-top: calc(var(--mk-page-spacing) * 1.5); }
.entry-content img { max-width: var(--mk-page-image-width,100%); border-radius: 0; }
.mk-visual-page--content > .entry-content { padding-block: clamp(40px, 4vw, 64px) clamp(70px, 7vw, 108px); }
.mk-visual-page :where(.vc_row,.wpb_row) { width: min(calc(100% - (var(--mk-gutter) * 2)), var(--mk-site-width)); }
.mk-post-grid { gap: 30px 22px; }
.mk-post-grid .mk-entry { border-color: var(--mk-line); box-shadow: none; }
.mk-entry__title { font-size: 24px; }

/* Footer: render the saved footer, not a replacement design. */
.site-footer {
  position: relative;
  clear: both;
  margin: 0;
  color: var(--mk-footer-text);
  background: var(--mk-footer-bg);
  border: 0;
}
.site-footer::before { display: none; }
.mk-footer-row {
  color: var(--mk-footer-row-text, var(--mk-footer-text));
  background: var(--mk-footer-row-bg, transparent);
  border: 0;
}
.mk-footer-row + .mk-footer-row { border-top: 1px solid rgba(37,38,34,.12); }
.mk-footer-row__full { width: 100%; padding-inline: var(--mk-gutter); }
.mk-footer-grid {
  display: grid;
  align-items: start;
  gap: var(--mk-footer-gap-desktop, clamp(28px,4vw,62px));
  padding-block: clamp(38px, 4.5vw, 68px);
}
.mk-footer-grid--saved {
  grid-template-columns: repeat(60,minmax(0,1fr));
  column-gap: 0;
  row-gap: var(--mk-footer-gap-desktop,clamp(24px,3vw,42px));
}
.mk-footer-grid--saved > .mk-footer-column {
  grid-column: span var(--mk-footer-span-desktop,60) !important;
  order: var(--mk-footer-order-desktop,0) !important;
  text-align: var(--mk-footer-align-desktop,start);
  min-width: 0;
}
.mk-footer-grid--saved > .mk-footer-column:not(:last-child) { padding-inline-end: clamp(18px,3vw,42px); }
.mk-footer-grid--auto { grid-template-columns: repeat(var(--mk-footer-columns,1),minmax(0,1fr)); }
.mk-footer-grid--count-2,
.mk-footer-grid--count-3,
.mk-footer-grid--count-4,
.mk-footer-grid--count-5,
.mk-footer-grid--count-6 { grid-template-columns: repeat(var(--mk-footer-columns,1),minmax(0,1fr)); }
.site-footer .widget { margin: 0; }
.site-footer .widget + .widget { margin-top: 24px; }
.site-footer .widget-title {
  margin: 0 0 13px;
  color: var(--mk-footer-row-headings,currentColor);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1.35;
  text-transform: none;
}
.site-footer p,
.site-footer li,
.site-footer a { font-size: 15px; line-height: 1.6; }
.site-footer p { max-width: 38em; margin-bottom: 12px; }
.site-footer a { color: var(--mk-footer-row-link,currentColor); text-decoration: none; }
.site-footer a:hover { color: var(--mk-footer-row-link-hover,currentColor); text-decoration: underline; }
.site-footer li + li { margin-top: 6px; }
.site-footer .menu { list-style: none; margin: 0; padding: 0; }
.mk-footer-social .menu { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.mk-footer-row--fallback { border-top: 1px solid rgba(37,38,34,.12); }
.mk-footer-fallback {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-block: 28px;
}
.mk-footer-brand { margin: 0; font-size: 16px !important; font-weight: 500; letter-spacing: 0; line-height: 1.5; }
.mk-footer-bottom { padding-block: 17px; border-top: 1px solid rgba(37,38,34,.12); }
.mk-footer-bottom p { color: inherit; font-size: 13px; opacity: .72; }

/* Forms, buttons and utilities retain the quiet foundry style. */
:where(input[type="text"],input[type="email"],input[type="url"],input[type="password"],input[type="search"],input[type="number"],input[type="tel"],select,textarea) {
  min-height: 44px;
  padding: 9px 11px;
  color: var(--mk-ink);
  background: transparent;
  border: 1px solid var(--mk-line-strong);
  border-radius: 0;
  box-shadow: none;
}
textarea { min-height: 130px; }
.mk-button,
button:not(.site-header__menu-toggle):not(.mk-icon-button),
input[type="submit"] {
  border-radius: 0;
}

@media (max-width: 1040px) {
  .site-header__inner { gap: 18px; }
  .primary-navigation__menu { gap: 22px; }
  .primary-navigation__menu > li > a { font-size: min(var(--mk-menu-size),15px); }
  .mk-footer-grid { gap: var(--mk-footer-gap-tablet,clamp(26px,4vw,46px)); }
  .mk-footer-grid--saved { column-gap:0; row-gap:var(--mk-footer-gap-tablet,clamp(24px,4vw,40px)); }
  .mk-footer-grid--saved > .mk-footer-column {
    grid-column: span var(--mk-footer-span-tablet,30) !important;
    order: var(--mk-footer-order-tablet,0) !important;
    text-align: var(--mk-footer-align-tablet,start);
  }
}
@media (max-width: 959px) {
  .site-header__inner { grid-template-columns: auto 1fr auto; padding-block: 11px; }
  .site-branding { justify-self: start; }
  .site-header__actions { justify-self: end; }
  .site-header__menu-toggle { justify-self: end; }
  .mk-header-rail { height: 20px; }
  .site-branding .custom-logo { width: min(var(--mk-logo-width),190px); max-height: 42px; }
}
@media (max-width: 767px) {
  :root { --mk-gutter: 20px; }
  body { font-size: var(--mk-body-mobile); }
  h1 { font-size: var(--mk-page-heading-mobile); }
  h2 { font-size: var(--mk-h2-mobile, 28px); }
  h3 { font-size: var(--mk-h3-mobile, 22px); }
  h4 { font-size: var(--mk-h4-mobile, 18px); }
  h5 { font-size: var(--mk-h5-mobile, 16px); }
  .entry-title { font-size: var(--mk-page-heading-mobile); }
  .mk-standard-page { padding-block: 40px 72px; }
  .mk-header-rail { height: 14px; }
  .site-branding .custom-logo { max-width: min(var(--mk-logo-width),160px); }
  .mk-product-card__media { margin: 0; }
  .mk-product-card__body { padding: 12px 0 20px; }
  .mk-product-card__title { font-size: 17px; }
  .mk-product-card__category { font-size: 12px; }
  .mk-product-card__price { font-size: 15px; }
  .mk-footer-grid { gap: var(--mk-footer-gap-mobile,26px); padding-block: 38px; }
  .mk-footer-grid--saved { column-gap:0; row-gap:var(--mk-footer-gap-mobile,26px); }
  .mk-footer-grid--saved > .mk-footer-column:not(:last-child) { padding-inline-end:0; }
  .mk-footer-grid--saved { grid-template-columns: repeat(60,minmax(0,1fr)); }
  .mk-footer-grid--saved > .mk-footer-column {
    grid-column: span var(--mk-footer-span-mobile,12) !important;
    order: var(--mk-footer-order-mobile,0) !important;
    text-align: var(--mk-footer-align-mobile,start);
  }
  .mk-footer-grid--auto,
  .mk-footer-grid--count-2,
  .mk-footer-grid--count-3,
  .mk-footer-grid--count-4,
  .mk-footer-grid--count-5,
  .mk-footer-grid--count-6 { grid-template-columns: 1fr; }
  .mk-footer-fallback { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 480px) {
  .site-header__inner { width: min(calc(100% - 32px),var(--mk-site-width)); }
}

/* Storefront base layout.
   The previous v2.x previews were reinterpretations. These rules deliberately
   restore the compact Motokiwo geometry from the final pre-Fresh storefront. */
:root{
  --mk-site-width:1320px;
  --mk-gutter:clamp(20px,2.72vw,40px);
  --mk-card-shadow:none;
  --mk-card-shadow-hover:0 8px 18px rgba(28,31,25,.065);
}
body{background:#fff;}
.site-header__inner{
  min-height:56px;
  padding-block:8px;
  gap:clamp(24px,3.2vw,52px);
}
.site-branding .custom-logo{width:min(var(--mk-logo-width),180px);max-height:40px;}
.primary-navigation__menu{gap:clamp(28px,2.7vw,40px);}
.primary-navigation__menu>li>a,.mk-header-text-link,.mk-header-cart{
  font-size:var(--mk-menu-size,16px);
  font-weight:400;
  line-height:1.2;
}
.mk-header-rail{height:32px;background:#20251d;}

/* Saved footer: use its own row colors/layout and the same restrained rhythm as
   the old theme. Do not invent a branded footer shell around it. */
.site-footer{margin:0;border:0;box-shadow:none;}
.mk-footer-row+ .mk-footer-row{border-top:0;}
.mk-footer-grid{padding-block:32px;gap:var(--mk-footer-gap-desktop,32px);}
.mk-footer-grid--saved{row-gap:var(--mk-footer-gap-desktop,32px);}
.site-footer .widget+.widget{margin-top:20px;}
.site-footer .widget-title{margin-bottom:12px;font-size:20px;line-height:1.3;font-weight:400;}
.site-footer p,.site-footer li,.site-footer a{font-size:17px;line-height:1.65;}
.site-footer li+li{margin-top:4px;}
.mk-footer-row--fallback{border-top:0;}
.mk-footer-fallback{padding-block:32px;}

/* Standard pages use the previous Studio scale rather than a new editorial
   system. Content remains wide unless the block itself requests a narrower width. */
.mk-standard-page{padding-block:48px 72px;}
.mk-standard-page .entry-header,.entry-header{margin-bottom:36px;}
.entry-title{font-size:var(--mk-page-heading-size,36px);line-height:1.15;letter-spacing:-.03em;}
.entry-header__intro,.archive-description{font-size:var(--mk-body-size,16px);line-height:1.6;}
.mk-visual-page--content>.entry-content{padding-block:40px 72px;}

@media(max-width:959px){
  .site-header__inner{min-height:54px;padding-block:7px;}
  .site-branding .custom-logo{max-height:38px;}
  .mk-header-rail{height:24px;}
}
@media(max-width:767px){
  .mk-header-rail{height:18px;}
  .mk-product-card__media{margin:0;}
  .mk-product-card__title{font-size:17px;}
  .mk-product-card__category{font-size:12px;}
  .mk-product-card__price{font-size:15px;}
  .mk-footer-grid{padding-block:26px;gap:var(--mk-footer-gap-mobile,26px);}
  .site-footer .widget-title{font-size:18px;}
  .site-footer p,.site-footer li,.site-footer a{font-size:16px;}
}


/* Sticky site header. */
.site-header,
header.site-header,
.mk-site-header{
  position:sticky;
  top:0;
  z-index:1000;
}

.admin-bar .site-header,
.admin-bar header.site-header,
.admin-bar .mk-site-header{
  top:32px;
}

@media (max-width:782px){
  .admin-bar .site-header,
  .admin-bar header.site-header,
  .admin-bar .mk-site-header{
    top:46px;
  }
}
