/* MileKart storefront. Built from design-tokens.css (tokens.css). No breakpoints for layout:
   flex-wrap and auto-fit grids reflow at any width, as in the design package. */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--mk-font);
  font-size: var(--mk-size-body);
  line-height: 1.55;
  color: var(--mk-navy);
  background: var(--mk-white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--mk-navy); }
a:hover { color: var(--mk-navy-deep); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: var(--mk-focus-ring); outline-offset: 2px; }
.mk-topbar :focus-visible, .mk-footer :focus-visible, .mk-offer-tile--dark:focus-visible, .mk-search button:focus-visible { outline-color: var(--mk-white); }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; }
p { margin: 0; }
.mk-sr, .screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.mk-skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 10px 16px; background: var(--mk-yellow); font-weight: 700; border-radius: var(--mk-radius-control); }
.mk-skip:focus { left: 8px; }

.mk-wrap { max-width: calc(var(--mk-page-max) + 2 * var(--mk-page-gutter)); margin: 0 auto; padding: 0 var(--mk-page-gutter); }
.mk-section { padding-top: var(--mk-section-gap); }
.mk-section--tight { padding-top: 24px; }  /* category, product: design 24px */
.mk-main > .mk-section:last-child { padding-bottom: var(--mk-page-bottom); }
.mk-store-page { padding-top: 40px; padding-bottom: var(--mk-page-bottom); }
.search-results .mk-section--tight, .search-no-results .mk-section--tight { padding-top: 40px; }  /* design: search 40px */
.mk-section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 24px; }

.mk-h1 { font-size: var(--mk-size-h1); font-weight: var(--mk-weight-display); letter-spacing: var(--mk-tracking-display); line-height: 1.05; }
.mk-h2 { font-size: var(--mk-size-h2); font-weight: var(--mk-weight-display); letter-spacing: -0.02em; line-height: 1.1; }
.mk-h3 { font-size: var(--mk-size-h3); font-weight: var(--mk-weight-strong); letter-spacing: -0.01em; }
.mk-muted { color: var(--mk-text-muted); }
.mk-caps { font-size: var(--mk-size-caption); font-weight: var(--mk-weight-display); letter-spacing: var(--mk-tracking-caps); text-transform: uppercase; }
.mk-link { display: inline-flex; align-items: center; min-height: var(--mk-touch-min); font-size: var(--mk-size-ui); font-weight: var(--mk-weight-strong); text-decoration: underline; }

.mk-road { border-top: var(--mk-road); }
.mk-road-quiet { border-top: var(--mk-road-quiet); }
.mk-marker { width: 28px; height: 32px; flex: none; }

.mk-prose { max-width: 640px; }
.mk-prose > * + * { margin-top: 1em; }
.mk-prose p, .mk-prose li { font-size: 16px; line-height: 1.65; color: var(--mk-text-muted); }
.mk-prose h2, .mk-prose h3 { margin-top: 1.4em; }
.mk-prose .mk-h1 + * { margin-top: 28px; }

/* ---------- Buttons ---------- */
.mk-btn, .button, button.button, a.button, input.button, #place_order {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border: 2px solid var(--mk-navy); border-radius: var(--mk-radius-control);
  background: var(--mk-white); color: var(--mk-navy);
  font-family: inherit; font-size: var(--mk-size-ui); font-weight: var(--mk-weight-strong);
  line-height: 1.2; text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.mk-btn:hover, .button:hover { background: var(--mk-panel); color: var(--mk-navy); }
.mk-btn--lg { min-height: var(--mk-button-lg); padding: 0 28px; font-size: 17px; font-weight: var(--mk-weight-display); border-radius: var(--mk-radius-button); }
.mk-btn--md { min-height: 52px; padding: 0 26px; font-size: 16px; border-radius: var(--mk-radius-button); }
.mk-btn--primary, .checkout-button, #place_order, .single_add_to_cart_button {
  background: var(--mk-yellow); border-color: var(--mk-yellow); color: var(--mk-navy); font-weight: var(--mk-weight-display);
}
.mk-btn--primary:hover, .checkout-button:hover, #place_order:hover, .single_add_to_cart_button:hover {
  background: var(--mk-yellow-hover); border-color: var(--mk-yellow-hover); color: var(--mk-navy);
}
.mk-btn--navy { background: var(--mk-navy); border-color: var(--mk-navy); color: var(--mk-white); }
.mk-btn--navy:hover { background: var(--mk-navy-deep); border-color: var(--mk-navy-deep); color: var(--mk-white); }
.mk-btn--outline { background: transparent; }
.mk-btn--quiet { border-color: var(--mk-line); }
.mk-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button.loading { opacity: .6; pointer-events: none; }
.button.disabled, .button:disabled, .mk-btn:disabled { opacity: var(--mk-disabled-opacity); cursor: not-allowed; }

.mk-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 8px; background: var(--mk-yellow-tint); font-size: var(--mk-size-small); font-weight: var(--mk-weight-strong); }
.mk-chip--status { padding: 8px 14px; border-radius: 10px; font-weight: var(--mk-weight-display); }
.mk-chip--note { padding: 10px 14px; border-radius: 10px; font-weight: var(--mk-weight-label); }
.mk-chip--grey { background: var(--mk-panel); }
.mk-chip .mk-marker { width: 16px; height: 18px; }

/* ---------- Forms ---------- */
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password], input[type=search], input[type=url], select, textarea {
  width: 100%; min-height: var(--mk-input); padding: 0 14px;
  border: var(--mk-border-control); border-radius: var(--mk-radius-control);
  background: var(--mk-white); font-size: var(--mk-size-body); color: var(--mk-navy);
}
textarea { padding: 14px; min-height: 120px; }
select { appearance: none; padding-right: 40px; background: var(--mk-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310243E' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 16px; font-weight: var(--mk-weight-label); }
::placeholder { color: #6B7A8F; opacity: 1; }
label { font-size: var(--mk-size-small); font-weight: var(--mk-weight-strong); }
.form-row { margin: 0 0 18px; display: flex; flex-direction: column; gap: 8px; }
.form-row .required { color: var(--mk-navy); text-decoration: none; border: 0; }
.form-row .optional { display: none; }
.woocommerce-invalid input, .woocommerce-invalid select { border-color: var(--mk-error); }
.mk-hidden-field { display: none !important; }

.mk-check { display: flex; align-items: center; gap: 12px; width: 100%; min-height: var(--mk-touch-min); font-size: var(--mk-size-ui); font-weight: 400; cursor: pointer; }
.mk-check input { width: 20px; height: 20px; margin: 0; accent-color: var(--mk-navy); flex: none; }

/* Notices */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner {
  list-style: none; margin: 0 0 24px; padding: 16px 20px;
  border-radius: var(--mk-radius-card); background: var(--mk-yellow-tint);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px;
  font-weight: var(--mk-weight-label);
}
.woocommerce-error { background: #FDECEA; flex-direction: column; align-items: flex-start; }
.woocommerce-error li { margin: 0; }
.woocommerce-message .button, .woocommerce-info .button { order: 2; min-height: 48px; }

/* ---------- Header ---------- */
.mk-topbar { background: var(--mk-navy); color: var(--mk-text-on-navy); font-size: var(--mk-size-caption); font-weight: 500; }
.mk-topbar__row { min-height: 44px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 24px; }
.mk-topbar__promises { padding: 6px 0; }
.mk-topbar__links { display: flex; gap: 24px; }
.mk-topbar__links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--mk-white); font-weight: var(--mk-weight-label); text-decoration: none; }
.mk-topbar__links a { white-space: nowrap; }
@media (max-width: 380px) { .mk-topbar__long { display: none; } }

.mk-header__row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 32px; padding-top: 16px; padding-bottom: 16px; }
.mk-logo { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; text-decoration: none; color: var(--mk-navy); }
.mk-logo svg { width: 40px; height: 45px; flex: none; }
.mk-logo span { font-size: 28px; font-weight: var(--mk-weight-display); letter-spacing: var(--mk-tracking-display); line-height: 1; }
.mk-logo--reversed, .mk-logo--reversed:hover { color: var(--mk-white); }

.mk-search { flex: 1 1 360px; min-width: 0; height: var(--mk-input); display: flex; border: var(--mk-border-control); border-radius: var(--mk-radius-button); overflow: hidden; }
.mk-search__field { flex: 1; min-width: 0; display: flex; }
.mk-search input[type=search] { flex: 1; min-width: 0; min-height: 0; border: 0; border-radius: 0; padding: 0 16px; background: transparent; font-size: var(--mk-size-ui); }
.mk-search input[type=search]:focus { outline: none; }
.mk-search:focus-within { outline: var(--mk-focus-ring); outline-offset: 2px; }
.mk-search button { width: 56px; flex: none; border: 0; background: var(--mk-navy); color: var(--mk-white); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.mk-search svg { width: 22px; height: 22px; }

.mk-header__actions { display: flex; align-items: center; gap: 4px; }
.mk-header__link { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 10px; font-size: var(--mk-size-small); font-weight: var(--mk-weight-label); text-decoration: none; }
.mk-header__link svg, .mk-kart-button svg { width: 22px; height: 22px; }
.mk-kart-button { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 14px; border-radius: var(--mk-radius-button); background: var(--mk-yellow); font-size: var(--mk-size-small); font-weight: var(--mk-weight-display); color: var(--mk-navy); text-decoration: none; }
.mk-kart-button:hover { background: var(--mk-yellow-hover); }
.mk-kart-icon { position: relative; display: inline-flex; }
.mk-kart-icon:has(.mk-kart-count) { margin-right: 6px; } /* room for the badge before "Kart" */
.mk-kart-count { position: absolute; top: -8px; right: -10px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--mk-navy); color: var(--mk-white); font-size: 11px; font-weight: var(--mk-weight-display); line-height: 18px; text-align: center; box-sizing: border-box; }

.mk-catbar { position: relative; border-top: 1px solid var(--mk-line); border-bottom: 1px solid var(--mk-line); }
.mk-catbar__row { display: flex; align-items: center; gap: 22px; }
/* The links row: phones scroll it sideways (faded edge); wider screens show the links that fit whole
   (the rest wrap onto a hidden second line) and the Categories menu lists everything. */
.mk-catbar__links { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 0 30px; overflow-x: auto; scrollbar-width: none; }
.mk-catbar__links::-webkit-scrollbar { display: none; }
.mk-catbar__links > li { flex: none; display: flex; list-style: none; }
.mk-catbar__links a { flex: none; display: inline-flex; align-items: center; min-height: 48px; font-size: var(--mk-size-ui); font-weight: var(--mk-weight-label); text-decoration: none; white-space: nowrap; }
.mk-catbar__links a.is-current, .mk-catbar__links .current-menu-item a { font-weight: var(--mk-weight-display); }
@media (max-width: 720px) {
  .mk-catbar__row { gap: 16px; }
  .mk-catbar__links { gap: 0 24px; margin-right: calc(-1 * var(--mk-page-gutter)); padding-right: var(--mk-page-gutter); }
}
@media (min-width: 721px) { .mk-catbar__links { flex-wrap: wrap; height: 48px; overflow: hidden; } }

/* Categories menu: every category in both worlds, with sub-categories. */
.mk-allcats { flex: none; }
.mk-allcats > summary { list-style: none; display: inline-flex; align-items: center; gap: 9px; min-height: 48px; padding-right: 22px; border-right: 1px solid var(--mk-line); font-size: var(--mk-size-ui); font-weight: var(--mk-weight-display); cursor: pointer; user-select: none; }
.mk-allcats > summary::-webkit-details-marker { display: none; }
.mk-allcats > summary::after { content: ""; width: 7px; height: 7px; margin: -4px 0 0 1px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .15s; }
.mk-allcats[open] > summary::after { margin-top: 4px; transform: rotate(-135deg); }
.mk-allcats__icon { position: relative; width: 16px; height: 12px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; }
.mk-allcats__icon::before { content: ""; position: absolute; left: 0; right: 0; top: 3px; border-top: 2px solid currentColor; }
.mk-allcats__panel { position: absolute; z-index: 60; left: 0; right: 0; top: 100%; background: var(--mk-white); border-top: 1px solid var(--mk-line); box-shadow: 0 24px 40px rgba(16, 35, 63, .16); max-height: min(72vh, 680px); overflow-y: auto; overscroll-behavior: contain; }
.mk-allcats__inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; padding-top: 20px; padding-bottom: 20px; }
@media (min-width: 1000px) { .mk-allcats__inner { grid-template-columns: minmax(0, 3fr) minmax(260px, 1fr); gap: 28px; padding-top: 26px; } }
.mk-allcats__label { margin: 0 0 6px; font-size: 16px; font-weight: 800; }
.mk-allcats__label span { margin-left: 6px; font-size: 13px; font-weight: 600; color: var(--mk-text-muted); }
.mk-allcats__list { list-style: none; margin: 0; padding: 0; columns: 2 150px; column-gap: 24px; }
@media (min-width: 1000px) { .mk-allcats__ready .mk-allcats__list { columns: 4 170px; } }
.mk-allcats__list > li { break-inside: avoid; }
.mk-allcats__list a { display: inline-flex; align-items: center; min-height: var(--mk-touch-min); font-weight: 700; text-decoration: none; color: inherit; }
.mk-allcats__list a:hover { text-decoration: underline; }
.mk-allcats__list ul { list-style: none; margin: -6px 0 6px; padding: 0 0 0 12px; border-left: 2px solid var(--mk-line); }
.mk-allcats__list ul a { min-height: 38px; font-size: 14.5px; font-weight: 500; color: var(--mk-text-muted); }
.mk-allcats__design { align-self: start; padding: 16px 20px 12px; border-radius: 18px; background: var(--mk-navy); color: var(--mk-white); }
.mk-allcats__design .mk-allcats__label span { color: var(--mk-text-on-navy); }
.mk-allcats__design .mk-allcats__list { columns: 2 120px; }
.mk-allcats__more { display: inline-flex; align-items: center; gap: 6px; min-height: var(--mk-touch-min); color: var(--mk-yellow); font-weight: 800; }
.mk-allcats__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0 28px; padding-top: 6px; border-top: 1px solid var(--mk-line); }
.mk-allcats__foot a { display: inline-flex; align-items: center; gap: 6px; min-height: var(--mk-touch-min); font-weight: 800; }
@media (max-width: 720px) {
  .mk-allcats > summary { padding-right: 16px; }
  .mk-allcats__panel { max-height: calc(100vh - 160px); max-height: calc(100dvh - 160px); }
}

.mk-header--minimal { border-bottom: 1px solid var(--mk-line); }
.mk-header--minimal .mk-header__row { justify-content: space-between; }
.mk-header__help { font-size: var(--mk-size-ui); font-weight: var(--mk-weight-label); color: var(--mk-text-muted); text-decoration: none; }

/* ---------- Footer ---------- */
.mk-footer { background: var(--mk-navy); color: var(--mk-text-on-navy); margin-top: 0; }
.mk-footer a { color: var(--mk-text-on-navy); text-decoration: none; }
.mk-footer a:hover { color: var(--mk-white); }
.mk-footer__grid { padding: 56px 0 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 40px; }
.mk-footer__brand { display: flex; flex-direction: column; gap: 16px; }
.mk-footer__brand p { max-width: 300px; font-size: var(--mk-size-ui); line-height: 1.6; }
/* Official social profiles: 44 px tap targets, one-colour marks; the first icon lines up with the text above. */
.mk-social { display: flex; flex-wrap: wrap; gap: 4px; margin: -4px 0 0 -12px; }
.mk-social__link { display: inline-flex; align-items: center; justify-content: center; width: var(--mk-touch-min); height: var(--mk-touch-min); border-radius: 50%; transition: background-color .15s, color .15s; }
.mk-social__link:hover { background: rgba(255, 255, 255, .1); }
.mk-social__link svg { width: 20px; height: 20px; display: block; }
.mk-footer__col { display: flex; flex-direction: column; }
.mk-footer__col .mk-caps { color: var(--mk-white); padding-bottom: 8px; }
.mk-footer__col a, .mk-footer__col > div:not(.mk-caps) { display: inline-flex; align-items: center; min-height: var(--mk-touch-min); font-size: var(--mk-size-ui); }
.mk-footer__legal { padding: 20px 0 28px; border-top: 1px solid #2C4059; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; font-size: var(--mk-size-caption); line-height: 1.6; }
.mk-footer--minimal { background: var(--mk-white); color: var(--mk-text-muted); border-top: 1px solid var(--mk-line); }
.mk-footer--minimal .mk-footer__legal { border-top: 0; }

/* ---------- Panels; step markers on the thank-you page ---------- */
.mk-how__marker { display: flex; align-items: center; gap: 12px; }
.mk-how__marker .mk-road-quiet { flex: 1; }

.mk-panel { flex: 1 1 420px; min-width: 0; padding: clamp(24px, 3vw, 40px); border-radius: var(--mk-radius-panel); background: var(--mk-panel); display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.mk-panel p { max-width: 440px; font-size: 17px; line-height: 1.55; }
.mk-panel .mk-btn { margin-top: 8px; }
.mk-panel--tint { background: var(--mk-yellow-tint); padding: 28px; }
.mk-panel--line { background: var(--mk-white); border: 2px solid var(--mk-line); }

/* ---------- Product grid and card ---------- */
ul.products, .mk-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(max(150px, 22%), 1fr)); gap: var(--mk-grid-gap); }
.mk-grid--3 { grid-template-columns: repeat(auto-fill, minmax(max(150px, 30%), 1fr)); }
.mk-card { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.mk-card__media { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: var(--mk-radius-card); background: var(--mk-panel); overflow: hidden; }
.mk-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.mk-card__media:hover img { transform: scale(1.03); }
.mk-badge { position: absolute; top: 12px; left: 12px; padding: 5px 10px; border-radius: 8px; background: var(--mk-navy); color: var(--mk-white); font-size: 12px; font-weight: var(--mk-weight-strong); letter-spacing: 0.04em; }
.mk-badge--muted { background: var(--mk-white); color: var(--mk-navy); }
.mk-card__title { min-height: 44px; font-size: var(--mk-size-ui); font-weight: var(--mk-weight-label); line-height: 1.4; text-decoration: none; text-wrap: pretty; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mk-card__title:hover { text-decoration: underline; }
.mk-card .button { width: 100%; min-height: 46px; }
.mk-card .added_to_cart { display: inline-flex; justify-content: center; min-height: var(--mk-touch-min); align-items: center; font-size: var(--mk-size-small); font-weight: var(--mk-weight-strong); }
.mk-card .button.added { display: none; }
.outofstock .mk-card__media img { opacity: .5; }

/* Prices: sale price first, struck regular price after. */
.mk-price, .mk-price .price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font-size: 19px; font-weight: var(--mk-weight-display); }
.mk-price del { order: 2; font-size: var(--mk-size-small); font-weight: 400; color: var(--mk-text-muted); }
.mk-price ins { order: 1; text-decoration: none; }
.mk-price .screen-reader-text { order: 3; }
.mk-price--lg { font-size: 38px; letter-spacing: -0.02em; line-height: 1; }
.mk-price--lg del { font-size: 20px; }
.mk-price del.mk-mrp { white-space: nowrap; }
.mk-chip--off { background: var(--mk-yellow); color: var(--mk-navy); }
.mk-pdp__mrp-note + .mk-pdp__tax { margin-top: -14px; }

/* ---------- Listing (shop, category, search) ---------- */
.mk-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-height: var(--mk-touch-min); font-size: var(--mk-size-small); font-weight: var(--mk-weight-label); }
.mk-breadcrumb a { color: var(--mk-text-muted); font-weight: 500; }
.mk-breadcrumb span { color: var(--mk-text-muted); }
.mk-listing__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin: 32px 0 28px; }
.mk-listing__head .mk-muted { margin-top: 10px; font-size: var(--mk-size-ui); }
.mk-sort .woocommerce-ordering { display: flex; align-items: center; gap: 12px; margin: 0; }
.mk-sort .woocommerce-ordering::before { content: "Sort by"; font-size: var(--mk-size-small); font-weight: var(--mk-weight-label); }
.mk-sort select { width: auto; min-width: 176px; min-height: 48px; }
.mk-listing { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px; margin-top: 32px; }
.mk-listing__results { flex: 999 1 560px; min-width: 0; }
.mk-listing--full .mk-listing__results { flex-basis: 100%; }
.mk-filters { flex: 1 1 220px; max-width: 100%; padding: 24px; border-radius: 18px; background: var(--mk-panel); }
.mk-filters fieldset { border: 0; padding: 0; margin: 0 0 20px; }
.mk-filters legend { padding: 0 0 6px; }
.mk-filters__more > summary { display: inline-flex; align-items: center; gap: 8px; min-height: var(--mk-touch-min); font-size: var(--mk-size-ui); font-weight: var(--mk-weight-display); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; list-style: none; }
.mk-filters__more > summary::-webkit-details-marker { display: none; }
.mk-filters__more[open] > summary { display: none; }
.mk-filters .mk-btn { width: 100%; }
.mk-filters__toggle > summary { display: none; list-style: none; }
.mk-chips { display: flex; gap: 10px; overflow-x: auto; padding: 4px 0 8px; scrollbar-width: none; }
.mk-chips__item { flex: none; display: inline-flex; align-items: center; min-height: var(--mk-touch-min); padding: 0 18px; border: 2px solid var(--mk-line-strong); border-radius: var(--mk-radius-control); font-size: var(--mk-size-ui); font-weight: var(--mk-weight-label); text-decoration: none; }
.mk-chips__item.is-current { background: var(--mk-navy); border-color: var(--mk-navy); color: var(--mk-white); }

.woocommerce-pagination { margin-top: 48px; display: flex; justify-content: center; }
.woocommerce-pagination ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.woocommerce-pagination .page-numbers a, .woocommerce-pagination .page-numbers span { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 48px; padding: 0 20px; border: 2px solid var(--mk-line); border-radius: var(--mk-radius-control); font-weight: var(--mk-weight-strong); text-decoration: none; }
.woocommerce-pagination .page-numbers .current { background: var(--mk-navy); border-color: var(--mk-navy); color: var(--mk-white); }
.mk-empty-panel { align-items: flex-start; }

/* ---------- Product page ---------- */
.mk-pdp { padding-bottom: 40px; }
.mk-pdp__top { display: flex; flex-wrap: wrap; gap: 40px 64px; margin-top: 40px; }
.mk-pdp__gallery { flex: 1.25 1 520px; min-width: 0; }
.mk-pdp__summary { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.mk-pdp__summary .product_title { font-size: clamp(28px, 3.2vw, 42px); font-weight: var(--mk-weight-display); letter-spacing: -0.025em; line-height: 1.1; text-wrap: balance; }
.mk-pdp__price { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.mk-pdp__tax { font-size: var(--mk-size-small); color: var(--mk-text-muted); margin-top: -6px; }
.mk-pdp__divider { margin: 8px 0; }
.woocommerce-product-rating { display: flex; gap: 10px; align-items: center; font-size: var(--mk-size-small); }

/* Product gallery.
   - One calm frame: light panel background; photos use multiply so the white bands in supplier photos
     melt into the panel (no white boxes).
   - Desktop: thumbnails in a column on the left, big photo on the right, hover to zoom, arrows on hover.
   - Phones: photo full width, arrows always shown, thumbnails in one row that scrolls sideways.
   - Photo counter (1 / 5) and a full-screen button on the photo; tapping the photo opens full screen. */
.woocommerce-product-gallery { position: relative; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 16px; align-items: start; }
.woocommerce-product-gallery__wrapper { margin: 0; }
.woocommerce-product-gallery .flex-viewport,
.woocommerce-product-gallery > .woocommerce-product-gallery__wrapper,
.woocommerce-product-gallery--without-images .woocommerce-product-gallery__image { grid-column: 2; grid-row: 1; border-radius: var(--mk-radius-panel); overflow: hidden; background: var(--mk-panel); }
.woocommerce-product-gallery__image { background: var(--mk-panel); }
.woocommerce-product-gallery__image img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; mix-blend-mode: multiply; display: block; }
.woocommerce-product-gallery__image:not(:first-child) { display: none; }
.flex-viewport .woocommerce-product-gallery__image { display: block; }
.woocommerce-product-gallery__image a { cursor: zoom-in; display: block; }
.woocommerce-product-gallery .zoomImg { background: var(--mk-white); mix-blend-mode: normal; }

.woocommerce-product-gallery .flex-control-thumbs { grid-column: 1; grid-row: 1; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; max-height: 100%; overflow-y: auto; scrollbar-width: none; }
.woocommerce-product-gallery .flex-control-thumbs::-webkit-scrollbar { display: none; }
.woocommerce-product-gallery .flex-control-thumbs li { flex: 0 0 auto; cursor: pointer; border-radius: var(--mk-radius-card); background: var(--mk-panel); }
.woocommerce-product-gallery .flex-control-thumbs img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; mix-blend-mode: multiply; display: block; border-radius: var(--mk-radius-card); outline: 2px solid transparent; outline-offset: -2px; opacity: .72; transition: opacity .15s, outline-color .15s; }
.woocommerce-product-gallery .flex-control-thumbs img:hover { opacity: 1; }
.woocommerce-product-gallery .flex-control-thumbs img.flex-active { opacity: 1; outline-color: var(--mk-navy); }

/* Arrows on the photo (FlexSlider direction nav). */
.woocommerce-product-gallery .flex-direction-nav { list-style: none; margin: 0; padding: 0; }
.woocommerce-product-gallery .flex-direction-nav a { position: absolute; top: 50%; z-index: 8; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; background: var(--mk-white); border: 1px solid var(--mk-line); color: var(--mk-navy); font-size: 0; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .15s; }
.woocommerce-product-gallery .flex-direction-nav a::before { content: ""; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--mk-arrow) center / contain no-repeat; mask: var(--mk-arrow) center / contain no-repeat; }
.woocommerce-product-gallery .flex-direction-nav .flex-prev { left: calc(76px + 16px + 12px); --mk-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.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 5l-7 7 7 7'/%3E%3C/svg%3E"); }
.woocommerce-product-gallery .flex-direction-nav .flex-next { right: 12px; --mk-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.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E"); }
.woocommerce-product-gallery:hover .flex-direction-nav a, .woocommerce-product-gallery .flex-direction-nav a:focus-visible { opacity: 1; }
.woocommerce-product-gallery .flex-direction-nav a.flex-disabled { opacity: 0 !important; pointer-events: none; }
.woocommerce-product-gallery .flex-direction-nav a:hover { border-color: var(--mk-navy); }
.woocommerce-product-gallery .flex-direction-nav a:focus-visible { outline: var(--mk-focus-ring); outline-offset: 2px; }

/* Photo counter, bottom left of the photo. */
.mk-gallery-count { position: absolute; z-index: 8; left: calc(76px + 16px + 12px); bottom: 12px; padding: 4px 10px; border-radius: 999px; background: var(--mk-white); border: 1px solid var(--mk-line); font-size: var(--mk-size-caption); font-weight: var(--mk-weight-strong); color: var(--mk-navy); pointer-events: none; }

/* Full-screen button: white circle, expand icon, top right of the photo. */
.woocommerce-product-gallery__trigger { position: absolute; top: 12px; right: 12px; z-index: 9; width: 44px; height: 44px; padding: 0; border: 1px solid var(--mk-line); border-radius: 50%; background: var(--mk-white); color: var(--mk-navy); display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 0; text-indent: 0; }
.woocommerce-product-gallery__trigger > span[aria-hidden], .woocommerce-product-gallery__trigger img { display: none; }
.woocommerce-product-gallery__trigger::before { content: ""; width: 20px; height: 20px; background: currentColor; -webkit-mask: 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.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E") center / contain no-repeat; mask: 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.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E") center / contain no-repeat; }
.woocommerce-product-gallery__trigger:hover { border-color: var(--mk-navy); }
.woocommerce-product-gallery__trigger:focus-visible { outline: var(--mk-focus-ring); outline-offset: 2px; }

/* Desktop: keep the photos in view while reading the details. */
@media (min-width: 900px) { .mk-pdp__gallery { position: sticky; top: 24px; align-self: flex-start; } }

/* Phones and small tablets: photo full width, thumbnails in one sideways row underneath. */
@media (max-width: 720px) {
	.woocommerce-product-gallery { grid-template-columns: minmax(0, 1fr); gap: 10px; }
	.woocommerce-product-gallery .flex-viewport, .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper { grid-column: 1; }
	.woocommerce-product-gallery .flex-control-thumbs { grid-column: 1; grid-row: 2; flex-direction: row; overflow-x: auto; overflow-y: hidden; max-height: none; }
	.woocommerce-product-gallery .flex-control-thumbs li { width: 64px; }
	.woocommerce-product-gallery .flex-direction-nav a { opacity: 1; width: 44px; height: 44px; margin-top: -22px; }
	.woocommerce-product-gallery .flex-direction-nav .flex-prev, .mk-gallery-count { left: 10px; }
	.mk-gallery-count { top: 10px; bottom: auto; }
	.woocommerce-product-gallery .flex-direction-nav .flex-next { right: 10px; }
	.woocommerce-product-gallery__trigger { top: 10px; right: 10px; }
}

/* Full-screen product gallery (WooCommerce's PhotoSwipe): navy backdrop, large white round controls
   that are easy to tap, readable photo counter. Share is not used. */
.pswp__bg { background: var(--mk-panel); }
/* Panel colour behind the photo even when zoomed far beyond the frame, so white photo edges blend away
   (an invisible spread "shadow" in the background colour, not a visual shadow). */
.pswp .pswp__zoom-wrap { background: var(--mk-panel) !important; box-shadow: 0 0 0 6000px var(--mk-panel); }
.pswp__img { mix-blend-mode: multiply; }
.pswp__img--placeholder { opacity: 0 !important; }
.pswp__top-bar { height: 64px; background: transparent !important; }
.pswp__counter { left: 8px; height: 64px; line-height: 64px; padding: 0 16px; font-size: 15px; font-weight: var(--mk-weight-strong); color: var(--mk-navy); opacity: 1; }
.pswp__button--share { display: none !important; }
.pswp button.pswp__button--close, .pswp button.pswp__button--fs, .pswp button.pswp__button--zoom { width: 44px; height: 44px; margin: 10px 6px; border-radius: 50%; opacity: 1; background: var(--mk-white) !important; background-image: none !important; position: relative; border: 1px solid var(--mk-line) !important; }
.pswp__button--close { margin-right: 16px; }
.pswp__button--close::after, .pswp__button--fs::after, .pswp__button--zoom::after,
.pswp__button--arrow--left::after, .pswp__button--arrow--right::after {
	content: ""; position: absolute; width: 20px; height: 20px; background: var(--mk-navy); pointer-events: none;
	-webkit-mask: var(--mk-pswp-icon) center / contain no-repeat; mask: var(--mk-pswp-icon) center / contain no-repeat;
}
.pswp__button--close::after, .pswp__button--fs::after, .pswp__button--zoom::after { top: 12px; left: 12px; }
.pswp__button--close { --mk-pswp-icon: 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.4' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E"); }
.pswp__button--fs { --mk-pswp-icon: 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.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E"); }
.pswp--fs .pswp__button--fs { --mk-pswp-icon: 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.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 14h6v6M20 10h-6V4M14 10l7-7M3 21l7-7'/%3E%3C/svg%3E"); }
.pswp__button--zoom { --mk-pswp-icon: 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.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M11 8v6M8 11h6M21 21l-5-5'/%3E%3C/svg%3E"); }
.pswp--zoomed-in .pswp__button--zoom { --mk-pswp-icon: 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.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M8 11h6M21 21l-5-5'/%3E%3C/svg%3E"); }
.pswp__button--arrow--left, .pswp__button--arrow--right { width: 76px; opacity: 1; }
.pswp button.pswp__button--arrow--left::before, .pswp button.pswp__button--arrow--right::before { background: var(--mk-white) !important; background-image: none !important; width: 48px; height: 48px; top: 26px; border-radius: 50%; border: 1px solid var(--mk-line); opacity: 1; }
.pswp__button--arrow--left::before { left: 16px; }
.pswp__button--arrow--right::before { right: 16px; }
.pswp__button--arrow--left::after, .pswp__button--arrow--right::after { top: 40px; }
.pswp__button--arrow--left::after { left: 30px; --mk-pswp-icon: 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.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 5l-7 7 7 7'/%3E%3C/svg%3E"); }
.pswp__button--arrow--right::after { right: 30px; --mk-pswp-icon: 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.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E"); }
.pswp__button:focus-visible { outline: var(--mk-focus-ring); outline-offset: 2px; }
/* Phones: swipe to move between photos, so the side arrows step aside. */
@media (max-width: 720px) { .pswp__button--arrow--left, .pswp__button--arrow--right { display: none; } }
/* Name and price under the photo, so shoppers know what they're looking at. */
.pswp__caption { background: transparent !important; min-height: 0; }
.pswp__caption__center { max-width: 640px; padding: 14px 20px calc(18px + env(safe-area-inset-bottom)); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--mk-navy); font-size: 15px; line-height: 1.35; }
.pswp__caption .mk-pswp-name { font-weight: var(--mk-weight-strong); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pswp__caption .mk-pswp-price { color: var(--mk-navy); font-weight: var(--mk-weight-display); font-size: 17px; }

form.cart { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
form.cart .variations, form.cart .single_variation_wrap, form.cart .woocommerce-variation-add-to-cart { width: 100%; }
form.variations_form { display: block; }
.woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; gap: 12px; }
.single_add_to_cart_button, .mk-buy-now { flex: 1 1 170px; min-height: var(--mk-button-lg); font-size: 17px; border-radius: var(--mk-radius-button); }
table.variations { border-collapse: collapse; margin-bottom: 8px; }
table.variations tr { display: block; margin-bottom: 16px; }
table.variations th, table.variations td { display: block; padding: 0; text-align: left; }
table.variations th label { font-size: var(--mk-size-ui); }
table.variations td { margin-top: 10px; }
.mk-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.mk-pill { min-height: 46px; padding: 0 20px; border: 2px solid var(--mk-line-strong); border-radius: var(--mk-radius-control); background: var(--mk-white); font-size: var(--mk-size-ui); font-weight: var(--mk-weight-strong); cursor: pointer; }
.mk-pill[aria-pressed="true"] { background: var(--mk-navy); border-color: var(--mk-navy); color: var(--mk-white); }
.mk-pill:disabled { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
/* Sold out (with the options chosen so far): greyed and struck through, dashed edge. */
.mk-pill--oos { border-style: dashed; color: var(--mk-text-muted); text-decoration: line-through; background: var(--mk-panel); }
.mk-pill--oos[aria-pressed="true"] { background: var(--mk-text-muted); border-color: var(--mk-text-muted); color: var(--mk-white); }
.mk-main .mk-buy-now.disabled { opacity: var(--mk-disabled-opacity); cursor: not-allowed; }
.mk-pills + select, table.variations select.mk-replaced { display: none; }
.reset_variations { display: inline-block; margin-top: 8px; font-size: var(--mk-size-small); }
.woocommerce-variation-price { margin-bottom: 12px; }
.woocommerce-variation-availability .stock, .stock { font-size: var(--mk-size-small); font-weight: var(--mk-weight-label); }
.stock.out-of-stock { color: var(--mk-error); }

.quantity { display: inline-flex; align-items: center; height: var(--mk-button-lg); border: var(--mk-border-control); border-radius: var(--mk-radius-button); overflow: hidden; background: var(--mk-white); }
.quantity input.qty { width: 44px; min-height: 0; height: 100%; padding: 0; border: 0; border-radius: 0; text-align: center; font-size: 17px; font-weight: var(--mk-weight-display); -moz-appearance: textfield; }
.quantity input.qty::-webkit-inner-spin-button, .quantity input.qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.mk-qty__btn { width: 48px; height: 100%; border: 0; background: transparent; font-size: 20px; font-weight: var(--mk-weight-strong); cursor: pointer; }
.mk-qty__btn:hover { background: var(--mk-panel); }

.mk-promises { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.mk-promises li { display: flex; align-items: center; gap: 12px; font-size: var(--mk-size-ui); font-weight: var(--mk-weight-label); }
.mk-promises .mk-marker { width: 20px; height: 23px; }

.mk-pdp__road { margin-top: 48px; }
.mk-pdp__about { display: flex; flex-wrap: wrap; gap: 40px 64px; padding-top: 40px; }
.mk-pdp__about > * { flex: 1 1 420px; min-width: 0; }
.mk-pdp__about .mk-h2 { margin-bottom: 18px; }
.mk-details { margin: 0; }
.mk-details > div { display: flex; justify-content: space-between; gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--mk-line); font-size: var(--mk-size-ui); }
.mk-details dt { flex: 0 1 auto; max-width: 45%; color: var(--mk-text-muted); }
.mk-details dd { min-width: 0; margin: 0; font-weight: var(--mk-weight-strong); text-align: right; overflow-wrap: anywhere; }
.mk-details dd a { color: inherit; }

#reviews { margin-top: 56px; padding: clamp(24px, 3vw, 40px); border-radius: var(--mk-radius-panel); background: var(--mk-panel); }
#reviews .woocommerce-Reviews-title { font-size: var(--mk-size-h2); font-weight: var(--mk-weight-display); letter-spacing: -0.02em; }
#reviews .woocommerce-noreviews { margin-top: 8px; color: var(--mk-text-muted); font-size: 17px; }
#reviews .commentlist { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 16px; }
#reviews .commentlist li { padding: 20px; border-radius: var(--mk-radius-card); background: var(--mk-white); }
#reviews .commentlist img.avatar { display: none; }
#review_form_wrapper { margin-top: 24px; }
#review_form .comment-reply-title { font-size: var(--mk-size-h3); font-weight: var(--mk-weight-strong); display: block; margin-bottom: 16px; }
#review_form p { margin-bottom: 14px; display: flex; flex-direction: column; gap: 8px; }
#review_form .stars a { font-size: 0; display: inline-block; width: 30px; height: 30px; }
#review_form .stars a::before { content: "★"; font-size: 26px; color: var(--mk-line-strong); }
#review_form .stars:hover a::before, #review_form .stars.selected a.active::before, #review_form .stars.selected a:not(.active)::before { color: var(--mk-yellow); }
#review_form .stars.selected a.active ~ a::before, #review_form .stars a:hover ~ a::before { color: var(--mk-line-strong); }
.star-rating { font-size: 0; }
.star-rating span { font-size: var(--mk-size-small); }
.mk-reviews-toggle { margin-top: 16px; }

.related.products { margin-top: 56px; }
.related.products > h2 { font-size: var(--mk-size-h2); font-weight: var(--mk-weight-display); letter-spacing: -0.02em; margin-bottom: 28px; }

/* ---------- Kart and checkout shared ---------- */
.mk-page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; margin-bottom: 36px; }
.mk-steps { list-style: none; margin: 0; padding: 0; display: flex; align-items: flex-start; flex: 0 1 560px; }
.mk-steps__item { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: var(--mk-size-caption); font-weight: var(--mk-weight-strong); color: var(--mk-text-muted); position: relative; flex: 1; }
.mk-steps__item.is-current, .mk-steps__item.is-done { color: var(--mk-navy); }
.mk-steps__item .mk-marker { position: relative; z-index: 1; background: var(--mk-white); }
.mk-steps__item:not(:last-child)::after { content: ""; position: absolute; top: 16px; left: calc(50% + 24px); right: calc(-50% + 24px); border-top: 3px dashed var(--mk-line-strong); }
.mk-steps__item.is-done:not(:last-child)::after { border-top: 3px solid var(--mk-navy); }
.mk-steps__link { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 44px; min-height: 44px; color: inherit; text-decoration: none; border-radius: var(--mk-radius-button); }
/* No underline at rest (keeps the tracker clean); on hover the marker lifts and the label underlines. */
.mk-steps__link .mk-marker { transition: transform .15s ease; }
.mk-steps__link span { text-underline-offset: 4px; text-decoration-thickness: 2px; }
.mk-steps__link:hover .mk-marker, .mk-steps__link:focus-visible .mk-marker { transform: translateY(-3px); }
.mk-steps__link:hover span, .mk-steps__link:focus-visible span { text-decoration-line: underline; }
@media (prefers-reduced-motion: reduce) { .mk-steps__link .mk-marker { transition: none; } }
.mk-steps__link:focus-visible { outline: var(--mk-focus-ring); outline-offset: 2px; }
#mk-step-address, #mk-step-payment { scroll-margin-top: 24px; }

.mk-two-col { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px 56px; }
.mk-two-col__main { flex: 999 1 560px; min-width: 0; }
.mk-two-col__side { flex: 1 1 340px; min-width: 0; padding: 28px; border-radius: var(--mk-radius-panel); background: var(--mk-panel); }
.mk-summary-title { font-size: var(--mk-size-h3); font-weight: var(--mk-weight-display); margin-bottom: 18px; }
.mk-summary-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.mk-summary-edit { font-size: var(--mk-size-small); font-weight: var(--mk-weight-strong); color: var(--mk-navy); text-decoration: underline; text-underline-offset: 3px; padding: 12px 0; }
.mk-summary-rows { display: flex; flex-direction: column; gap: 18px; }
.mk-summary-row { display: flex; justify-content: space-between; gap: 16px; font-size: var(--mk-size-body); }
.mk-summary-row > :first-child { color: var(--mk-text-muted); }
.mk-summary-row > :last-child { font-weight: var(--mk-weight-strong); text-align: right; }
.mk-summary-total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 18px; margin-top: 18px; border-top: var(--mk-road-quiet); }
.mk-summary-total > :first-child { font-size: 17px; font-weight: var(--mk-weight-display); }
.mk-summary-total > :last-child { font-size: 28px; font-weight: var(--mk-weight-display); letter-spacing: -0.02em; }
.mk-summary-note { margin-top: 16px; text-align: center; font-size: var(--mk-size-small); color: var(--mk-text-muted); }

/* Kart */
.mk-cart-items { width: 100%; border-collapse: collapse; }
.mk-cart-items thead { display: none; }
.mk-cart-items tr.cart_item { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto auto; grid-template-areas: "thumb name qty total"; align-items: center; gap: 16px 24px; padding: 24px 0; border-top: 1px solid var(--mk-line); }
.mk-cart-items tr.cart_item:last-of-type { border-bottom: 1px solid var(--mk-line); }
.mk-cart-items td { padding: 0; display: block; }
.mk-cart-items .product-thumbnail { grid-area: thumb; }
.mk-cart-items .product-thumbnail img { width: 96px; height: 96px; object-fit: cover; border-radius: var(--mk-radius-card); background: var(--mk-panel); }
.mk-cart-items .product-name { grid-area: name; }
.mk-cart-items .product-name > a { font-size: 17px; font-weight: var(--mk-weight-strong); text-decoration: none; }
.mk-cart-items .product-name dl.variation { margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 0 6px; color: var(--mk-text-muted); font-size: var(--mk-size-small); }
.mk-cart-items .product-name dl.variation dt { display: none; }
.mk-cart-items .product-name dl.variation dd { margin: 0; }
.mk-cart-items .product-name dl.variation dd p { display: inline; }
.mk-cart-items .product-name dl.variation dd:not(:last-child)::after { content: " ·"; }
.mk-cart-items .mk-remove { display: inline-flex; align-items: center; min-height: var(--mk-touch-min); font-size: var(--mk-size-small); font-weight: var(--mk-weight-strong); text-decoration: underline; }
/* "Edit design" on a designed kart line (kart and checkout): reopens the designer with the design. */
.mk-edit-design { display: inline-flex; align-items: center; gap: 6px; min-height: var(--mk-touch-min); margin: 6px 0 0; padding: 0 16px; border: var(--mk-border-control, 1.5px solid var(--mk-line-strong)); border-radius: 999px; background: var(--mk-white); color: var(--mk-navy); font-size: var(--mk-size-small); font-weight: var(--mk-weight-strong); line-height: 1.2; text-decoration: none; white-space: nowrap; }
.mk-edit-design::before { content: ""; width: 16px; height: 16px; flex: none; background-color: currentColor; -webkit-mask: var(--mk-pencil) center / contain no-repeat; mask: var(--mk-pencil) center / contain no-repeat; }
.mk-edit-design:hover { border-color: var(--mk-navy); background: var(--mk-yellow-tint); }
.mk-review-item__meta .mk-edit-design { min-height: 36px; margin: 4px 6px 2px 0; padding: 0 12px; font-size: var(--mk-size-caption); }
.mk-cart-items .product-quantity { grid-area: qty; }
.mk-cart-items .product-quantity .quantity { height: 48px; border-radius: var(--mk-radius-control); }
.mk-cart-items .product-quantity .mk-qty__btn { width: 44px; }
.mk-cart-items .product-quantity input.qty { font-size: 16px; }
.mk-cart-items .product-subtotal { grid-area: total; min-width: 96px; text-align: right; font-size: 19px; font-weight: var(--mk-weight-display); }
.mk-cart-items .product-price, .mk-cart-items .product-remove { display: none; }
.mk-cart-items tr.mk-cart-actions { display: block; }
.mk-cart-actions td { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; }
.mk-cart-actions [name=update_cart] { display: none; }
.mk-coupon { display: flex; gap: 8px; margin-top: 8px; }
.mk-coupon input { min-width: 0; flex: 1; min-height: 48px; }
.mk-coupon .button { flex: none; min-height: 48px; }
.mk-coupon-label { display: block; margin-top: 18px; }
.cart_totals .checkout-button, .wc-proceed-to-checkout .button { width: 100%; min-height: 56px; margin-top: 20px; font-size: 17px; border-radius: var(--mk-radius-button); }
.cart_totals .woocommerce-remove-coupon { font-size: var(--mk-size-caption); margin-left: 6px; }
.cart-empty-panel { text-align: center; align-items: center; margin: 24px auto 0; max-width: 640px; }
.cart-empty-panel p { margin: 0 auto; }
.blockUI.blockOverlay { background: rgba(255,255,255,.6) !important; }

/* Checkout */
.mk-checkout__heading { margin: 40px 0 18px; font-weight: var(--mk-weight-strong); }
.woocommerce-billing-fields > h3 { display: none; }
.mk-contact-fields, .woocommerce-billing-fields__field-wrapper, .woocommerce-address-fields__field-wrapper, .woocommerce-account-fields { display: flex; flex-wrap: wrap; column-gap: 18px; }
.mk-contact-fields .form-row, .woocommerce-billing-fields__field-wrapper .form-row, .woocommerce-address-fields__field-wrapper .form-row { flex: 1 1 100%; }
.mk-contact-fields .form-row-first, .mk-contact-fields .form-row-last, .woocommerce-billing-fields__field-wrapper .form-row-first, .woocommerce-billing-fields__field-wrapper .form-row-last,
.woocommerce-address-fields__field-wrapper .form-row-first, .woocommerce-address-fields__field-wrapper .form-row-last { flex: 1 1 260px; }
.mk-field-note { flex: 1 1 100%; margin: -8px 0 8px; font-size: var(--mk-size-small); color: var(--mk-text-muted); }
.mk-checkout-group { margin: 40px 0 18px; font-size: var(--mk-size-h3); font-weight: var(--mk-weight-strong); }
.mk-checkout-group:first-child { margin-top: 0; }
#customer_details .col-2:empty, .woocommerce-shipping-fields:empty { display: none; }
.woocommerce-form-coupon-toggle .woocommerce-info { background: var(--mk-panel); }
form.checkout_coupon { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
form.checkout_coupon p:not(.form-row) { display: none; }
form.checkout_coupon .form-row { margin: 0; flex: 1 1 200px; }

#payment ul.payment_methods { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
#payment .wc_payment_method { position: relative; border: 2px solid var(--mk-text-on-navy); border-radius: var(--mk-radius-card); background: var(--mk-white); }
#payment .wc_payment_method.is-selected { border-color: var(--mk-navy); background: var(--mk-yellow-tint); }
#payment .wc_payment_method > input { position: absolute; left: 18px; top: 21px; width: 22px; height: 22px; margin: 0; accent-color: var(--mk-navy); }
#payment .wc_payment_method > label { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-height: 64px; padding: 10px 18px 10px 56px; font-size: 16px; font-weight: var(--mk-weight-display); cursor: pointer; }
#payment .wc_payment_method > label img { max-height: 24px; width: auto; }
#payment .payment_box { padding: 0 18px 12px 56px; margin-top: -8px; font-size: var(--mk-size-small); color: var(--mk-text-muted); }
#payment .payment_box p { margin: 0; }
#payment .form-row.place-order, form#order_review #payment > .form-row { margin-top: 32px; } /* checkout; Pay for order */
#payment .mk-cod-note { margin: -16px 0 24px; font-size: var(--mk-size-small); color: var(--mk-text-muted); }
/* Cash on delivery: email code panel (milekart-core includes/cod-verify.php) */
#payment .mk-cod-verify { margin: 24px 0 0; padding: 20px; border: 2px solid var(--mk-navy); border-radius: var(--mk-radius-card); background: var(--mk-white); }
#payment .mk-cod-verify[hidden], .mk-cod-verify [hidden] { display: none !important; }
#payment .mk-cod-verify.is-verified { border-color: var(--mk-success); background: var(--mk-success-bg); padding: 14px 20px; }
.mk-cod-verify__title { margin: 0 0 6px; font-size: 17px; font-weight: var(--mk-weight-display); line-height: 1.35; }
.mk-cod-verify__text { margin: 0 0 16px; font-size: var(--mk-size-ui); color: var(--mk-text-muted); overflow-wrap: anywhere; }
.mk-cod-verify__text strong { color: var(--mk-navy); }
.mk-cod-verify .mk-btn { min-height: var(--mk-button-sm); padding: 0 22px; border-radius: var(--mk-radius-control); }
.mk-cod-verify__send { width: 100%; }
.mk-cod-verify__label { display: block; margin: 0 0 6px; font-size: var(--mk-size-ui); font-weight: var(--mk-weight-label); }
.mk-cod-verify__row { display: flex; gap: 10px; }
.mk-cod-verify__row .mk-cod-verify__code { flex: 1 1 auto; min-width: 0; max-width: 220px; height: var(--mk-button-sm); font-size: 22px; font-weight: var(--mk-weight-strong); letter-spacing: 0.3em; text-align: center; font-variant-numeric: tabular-nums; }
.mk-cod-verify__row .mk-btn { flex: 0 0 auto; }
.mk-cod-verify__row .mk-cod-verify__check { padding: 0 16px; font-weight: var(--mk-weight-label); color: var(--mk-text-muted); } /* fallback: the code is checked on its own */
.mk-cod-verify__resend { margin: 12px 0 0; font-size: var(--mk-size-small); color: var(--mk-text-muted); }
.mk-cod-verify__again { display: inline; min-height: var(--mk-touch-min); padding: 0 2px; border: 0; background: none; color: var(--mk-navy); font: inherit; font-weight: var(--mk-weight-strong); text-decoration: underline; cursor: pointer; }
.mk-cod-verify__again:disabled { opacity: var(--mk-disabled-opacity); cursor: default; text-decoration: none; }
.mk-cod-verify__msg { margin: 10px 0 0; font-size: var(--mk-size-small); }
.mk-cod-verify__msg:empty { display: none; }
.mk-cod-verify__msg--error { color: var(--mk-error); font-weight: var(--mk-weight-label); }
.mk-cod-verify__msg--busy { color: var(--mk-text-muted); }
.mk-cod-verify__done { margin: 0; font-size: var(--mk-size-ui); font-weight: var(--mk-weight-strong); color: var(--mk-success); overflow-wrap: anywhere; }
.mk-cod-verify__done span[aria-hidden] { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 6px; border-radius: 50%; background: var(--mk-success); color: var(--mk-white); font-size: 13px; }
@media (max-width: 420px) { .mk-cod-verify__row .mk-cod-verify__code { max-width: none; } }
#payment #place_order { width: 100%; min-height: 56px; font-size: 17px; border-radius: var(--mk-radius-button); }
.woocommerce-terms-and-conditions-wrapper, .woocommerce-privacy-policy-text { text-align: center; font-size: var(--mk-size-small); color: var(--mk-text-muted); }
.woocommerce-privacy-policy-text p { margin-bottom: 16px; }
/* Consent line above Place order (milekart-core includes/checkout.php). Line height and link padding give each
   policy link a tap area of about 44 px without spreading the sentence out. */
.mk-consent { margin: 0 0 16px; font-size: var(--mk-size-small); line-height: 2; color: var(--mk-text-muted); text-wrap: pretty; }
.mk-consent__link { padding: 13px 0; color: var(--mk-navy); font-weight: var(--mk-weight-label); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.woocommerce-NoticeGroup-checkout { margin-bottom: 24px; }

.mk-review-items { list-style: none; margin: 0 0 18px; padding: 0 0 18px; display: flex; flex-direction: column; gap: 14px; border-bottom: 1px solid var(--mk-line); }
.mk-review-item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.mk-review-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; background: var(--mk-white); }
.mk-review-item__name { font-size: var(--mk-size-ui); font-weight: var(--mk-weight-label); line-height: 1.35; }
.mk-review-item__meta { font-size: var(--mk-size-caption); color: var(--mk-text-muted); }
.mk-review-item__meta dl, .mk-review-item__meta dd, .mk-review-item__meta p { display: inline; margin: 0; }
.mk-review-item__meta dt { display: none; }
.mk-review-item__price { font-weight: var(--mk-weight-strong); }
.woocommerce-checkout-review-order-table { width: 100%; }
#shipping_method { list-style: none; margin: 0; padding: 0; text-align: right; }
#shipping_method li { display: flex; gap: 6px; justify-content: flex-end; align-items: center; }

/* ---------- Order confirmed ---------- */
.mk-thanks__hero { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 48px; }
.mk-thanks__art { width: 140px; flex: none; }
.mk-thanks__copy { flex: 1 1 480px; display: flex; flex-direction: column; gap: 20px; }
.mk-thanks__copy .mk-h1 { font-size: clamp(34px, 4.6vw, 64px); }
.mk-thanks__copy p { font-size: var(--mk-size-body-lg); color: var(--mk-text-muted); max-width: 640px; }
.mk-next { margin-top: 48px; padding: clamp(28px, 4vw, 40px); border-radius: var(--mk-radius-panel); background: var(--mk-panel); }
.mk-next__grid { margin-top: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 28px; }
.mk-next__grid > div { display: flex; flex-direction: column; gap: 10px; }
.mk-next__title { font-size: 18px; font-weight: var(--mk-weight-display); }
.mk-next__grid .is-upcoming .mk-next__title { color: var(--mk-navy); }
.mk-thanks__duo { margin-top: 48px; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 28px; }
.mk-thanks__duo > * { flex: 1 1 420px; }
.mk-address-card { padding: 18px 20px; border-radius: var(--mk-radius-card); background: var(--mk-white); font-style: normal; line-height: 1.6; }
.mk-address-card strong { display: block; }
.mk-order-lines .mk-summary-row > :first-child { color: var(--mk-navy); }

/* ---------- Tracking ---------- */
.mk-track-form { margin-top: 40px; padding: 28px; border-radius: var(--mk-radius-panel); background: var(--mk-panel); display: flex; flex-wrap: wrap; align-items: flex-end; gap: 18px; }
.mk-track-form .form-row { flex: 1 1 260px; margin: 0; }
.mk-track-form .mk-btn { flex: 0 1 180px; min-height: var(--mk-input); }
.mk-track-form .woocommerce-error { flex: 1 1 100%; margin: 0; }
.mk-track { margin-top: 40px; padding-top: 40px; border-top: var(--mk-road); }
.mk-track__eyebrow { font-size: var(--mk-size-ui); font-weight: var(--mk-weight-label); color: var(--mk-text-muted); }
.mk-track__title { margin: 6px 0 28px; font-size: clamp(28px, 3.4vw, 42px); font-weight: var(--mk-weight-display); letter-spacing: -0.02em; }
.mk-timeline { list-style: none; margin: 0; padding: 0; }
.mk-timeline li { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); align-content: start; gap: 18px; min-height: 92px; padding-bottom: 24px; }
.mk-timeline li.is-current { min-height: 124px; }
.mk-timeline li:not(:last-child)::before { content: ""; position: absolute; left: 13px; top: 34px; bottom: 2px; border-left: 3px solid var(--mk-navy); }
.mk-timeline li.is-upcoming:not(:last-child)::before, .mk-timeline li.is-next::before { border-left: 3px dashed var(--mk-line-strong); }
.mk-timeline__label { font-size: 17px; font-weight: var(--mk-weight-display); }
.mk-timeline li.is-upcoming .mk-timeline__label { color: var(--mk-text-muted); }
.mk-timeline__when { margin-top: 4px; font-size: var(--mk-size-small); color: var(--mk-text-muted); }
.mk-timeline .mk-chip { margin-top: 10px; }
.mk-side-stack { display: flex; flex-direction: column; gap: 20px; flex: 1 1 340px; min-width: 0; }
.mk-side-card { padding: 24px; border-radius: 20px; background: var(--mk-panel); }
.mk-side-card .mk-caps { margin-bottom: 12px; }
.mk-side-card--line { background: var(--mk-white); border: 2px solid var(--mk-line); }
.mk-side-card .mk-btn { margin-top: 14px; }

/* ---------- My account ---------- */
.mk-account__head { padding-bottom: 28px; margin-bottom: 36px; border-bottom: var(--mk-road); }
.mk-account { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px 56px; }
.woocommerce-MyAccount-navigation { flex: 1 1 220px; max-width: 100%; padding: 12px; border-radius: 18px; background: var(--mk-panel); }
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.woocommerce-MyAccount-navigation a { display: flex; align-items: center; min-height: 48px; padding: 0 16px; border-radius: var(--mk-radius-control); font-size: var(--mk-size-ui); font-weight: var(--mk-weight-label); text-decoration: none; }
.woocommerce-MyAccount-navigation .is-active a { background: var(--mk-navy); color: var(--mk-white); font-weight: var(--mk-weight-strong); }
.woocommerce-MyAccount-content { flex: 999 1 560px; min-width: 0; }
.woocommerce-MyAccount-content > h2, .woocommerce-MyAccount-content .mk-h2 { margin-bottom: 24px; }
.mk-orders { display: flex; flex-direction: column; gap: 24px; }
.mk-order-card { padding: clamp(20px, 2.6vw, 28px); border: 2px solid var(--mk-line); border-radius: 20px; display: flex; flex-direction: column; gap: 18px; }
.mk-order-card.is-active { border-color: var(--mk-navy); }
.mk-order-card__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px; }
.mk-order-card__title { font-size: 18px; font-weight: var(--mk-weight-display); }
.mk-order-card__items { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.mk-order-card__items img { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; background: var(--mk-panel); }
.mk-order-card__items p { flex: 1 1 260px; color: var(--mk-text-muted); }
.woocommerce-Addresses { display: flex; flex-wrap: wrap; gap: 24px; }
.woocommerce-Address { flex: 1 1 260px; padding: 24px; border-radius: 20px; background: var(--mk-panel); }
.woocommerce-Address-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.woocommerce-Address-title h2 { font-size: var(--mk-size-h3); }
.woocommerce-Address address { font-style: normal; line-height: 1.6; }
.woocommerce-EditAccountForm fieldset { border: 0; padding: 0; margin: 24px 0; }
.woocommerce-form-row { margin-bottom: 18px; }

/* Order details (view order page) */
.woocommerce-table, .shop_table { width: 100%; border-collapse: collapse; }
.woocommerce-table th, .woocommerce-table td, .shop_table th, .shop_table td { padding: 14px 0; text-align: left; border-bottom: 1px solid var(--mk-line); vertical-align: top; }
.woocommerce-table td:last-child, .woocommerce-table th:last-child { text-align: right; }
.woocommerce-order-details, .woocommerce-customer-details { margin-top: 40px; }
.woocommerce-order-details__title, .woocommerce-column__title { font-size: var(--mk-size-h3); margin-bottom: 12px; }
.woocommerce-customer-details address { font-style: normal; line-height: 1.6; padding: 20px; border-radius: var(--mk-radius-card); background: var(--mk-panel); }

/* Login / register */
.u-columns.col2-set { display: flex; flex-wrap: wrap; gap: 32px; }
.u-columns .u-column1, .u-columns .u-column2 { flex: 1 1 360px; padding: clamp(24px, 4vw, 40px); border-radius: var(--mk-radius-panel); background: var(--mk-panel); }
.u-columns h2, .woocommerce-form-login + h2 { font-size: var(--mk-size-h2); font-weight: var(--mk-weight-display); margin-bottom: 20px; }
.woocommerce-form-login__rememberme { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-weight: 500; }
.woocommerce-form-login .button, .woocommerce-form-register .button { width: 100%; background: var(--mk-navy); color: var(--mk-white); }
.lost_password { margin-top: 14px; }
.woocommerce-password-strength { font-size: var(--mk-size-small); margin-top: 6px; }
.show-password-input { display: none; }
.password-input { display: block; }

/* ---------- Phone ---------- */
@media (max-width: 720px) {

  .mk-topbar__promises { display: none; }
  .mk-topbar__row { justify-content: flex-end; }
  .mk-header__row { gap: 12px 16px; }
  .mk-header__actions { margin-left: auto; }
  .mk-search { order: 3; flex-basis: 100%; }
  .mk-header__link { padding: 0 6px; }
  ul.products, .mk-grid, .mk-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mk-filters { padding: 0; background: none; }
  .mk-filters__toggle { padding: 0 18px; border-radius: 18px; background: var(--mk-panel); }
  .mk-filters__toggle > summary { display: flex; align-items: center; min-height: 52px; font-weight: var(--mk-weight-strong); cursor: pointer; }
  .mk-filters__toggle > summary::after { content: "+"; margin-left: auto; font-size: 22px; }
  .mk-filters__toggle[open] > summary::after { content: "−"; }
  .mk-filters__toggle form { padding-bottom: 18px; }
  .mk-listing { gap: 16px; margin-top: 16px; }
  /* Category pages: a compact head (title, then count and sort on one line) so the first row of
     products shows on the first screen. */
  .mk-section--tight:has(> .mk-listing__head) { padding-top: 4px; }
  .mk-listing__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-auto-flow: row dense; align-items: center; gap: 8px 12px; margin: 4px 0 12px; }
  .mk-listing__head > div:first-child { display: contents; }
  .mk-listing__head > div:first-child > * { grid-column: 1 / -1; }
  .mk-listing__head > div:first-child > p.mk-muted:not(.mk-stock-switch) { grid-column: 1; margin-top: 0; font-size: var(--mk-size-small); }
  .mk-listing__head .mk-listing__intro { margin-top: 0; font-size: var(--mk-size-small); }
  .mk-listing__head .mk-sort { grid-column: 2; }
  .mk-sort .woocommerce-ordering::before { content: none; }
  .mk-sort select { min-width: 0; }
  .mk-listing__head + .mk-road { display: none; }
  .mk-cart-items tr.cart_item { grid-template-columns: 80px minmax(0, 1fr) auto; grid-template-areas: "thumb name name" "thumb qty total"; }
  .mk-cart-items .product-thumbnail img { width: 80px; height: 80px; }
  .mk-steps { flex-basis: 100%; }
  .mk-two-col__side { padding: 24px; }
  .mk-track-form { padding: 24px; }
  .mk-track-form .mk-btn { flex-basis: 100%; }
  .mk-thanks__art { width: 96px; }
}
.mk-pdp__about .mk-prose h2 { margin-top: 0; }

/* Primary actions beat the generic button.button rule. */
.mk-main .single_add_to_cart_button, .mk-main a.checkout-button, .mk-main button#place_order, .mk-main .mk-btn--primary {
  background: var(--mk-yellow); border-color: var(--mk-yellow); color: var(--mk-navy); font-weight: var(--mk-weight-display);
}
.mk-main .single_add_to_cart_button:hover, .mk-main a.checkout-button:hover, .mk-main button#place_order:hover, .mk-main .mk-btn--primary:hover {
  background: var(--mk-yellow-hover); border-color: var(--mk-yellow-hover); color: var(--mk-navy);
}
.mk-main .single_add_to_cart_button.disabled { opacity: var(--mk-disabled-opacity); }
.woocommerce-variation-price .price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; font-size: 38px; letter-spacing: -0.02em; line-height: 1; font-weight: var(--mk-weight-display); }
.woocommerce-variation-price .price del { order: 2; font-size: 20px; font-weight: 400; color: var(--mk-text-muted); }
.woocommerce-variation-price .price ins { order: 1; text-decoration: none; }
.mk-cart-items td, .mk-cart-items th { border: 0 !important; }
.mk-ship-table { width: 100%; border-collapse: collapse; }
.mk-ship-table th, .mk-ship-table td { padding: 0; border: 0; font-size: var(--mk-size-body); }
.mk-ship-table th { text-align: left; font-weight: 400; color: var(--mk-text-muted); }
.mk-ship-table td { text-align: right; font-weight: var(--mk-weight-strong); }

/* Two fields per row, as in the design. */
.mk-contact-fields .form-row-first, .mk-contact-fields .form-row-last,
.woocommerce-billing-fields__field-wrapper .form-row-first, .woocommerce-billing-fields__field-wrapper .form-row-last,
.woocommerce-address-fields__field-wrapper .form-row-first, .woocommerce-address-fields__field-wrapper .form-row-last { flex: 1 1 calc(50% - 18px); min-width: 220px; }

/* Searchable dropdown (State) matches the inputs. */
.select2-container { width: 100% !important; }
.select2-container .select2-selection--single { height: var(--mk-input); border: var(--mk-border-control); border-radius: var(--mk-radius-control); display: flex; align-items: center; }
.select2-container .select2-selection--single .select2-selection__rendered { padding: 0 40px 0 16px; line-height: normal; color: var(--mk-navy); font-weight: var(--mk-weight-label); }
.select2-container .select2-selection--single .select2-selection__placeholder { color: #6B7A8F; font-weight: 400; }
.select2-container .select2-selection--single .select2-selection__arrow { height: 100%; right: 10px; }
.select2-dropdown { border: var(--mk-border-control); border-radius: var(--mk-radius-control); overflow: hidden; }
.select2-search--dropdown .select2-search__field { min-height: 44px; border-radius: 8px; }
.select2-results__option { padding: 10px 14px; }
.select2-container--default .select2-results__option--highlighted[aria-selected], .select2-container--default .select2-results__option--highlighted[data-selected] { background: var(--mk-navy); }
@media (max-width: 720px) {
  .mk-header__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .mk-header__link { min-width: 44px; justify-content: center; }
  /* Track order keeps a short visible caption under its icon: first-time shoppers read words, not icons. */
  .mk-header__link--track { flex-direction: column; gap: 2px; min-height: 48px; font-size: 12px; line-height: 1.1; white-space: nowrap; }
  .mk-header__link--track .mk-header__label { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
  .mk-header__row { column-gap: 8px; }
  .mk-header__row .mk-logo span { font-size: 25px; }
  .mk-header__row .mk-logo svg { width: 36px; height: 40px; }
  .mk-header__link--track { padding: 0 4px; }
}
/* Small phones: logo, Track and Kart still share one row. */
@media (max-width: 380px) {
  .mk-header__long { display: none; }
  .mk-kart-button { padding: 0 10px; }
}

/* Logged-out My account: login form as a panel. */
.mk-store-page > .woocommerce > h2 { font-size: var(--mk-size-h2); font-weight: var(--mk-weight-display); letter-spacing: -0.02em; margin-bottom: 20px; }
.mk-store-page > .woocommerce > form.woocommerce-form-login { max-width: 520px; padding: clamp(24px, 4vw, 40px); border-radius: var(--mk-radius-panel); background: var(--mk-panel); }

/* WhatsApp support links: green WhatsApp mark so it's clearly chat, not a phone number to call. */
.mk-wa-link { display: inline-flex; align-items: center; gap: 8px; }
.mk-wa-icon { width: 20px; height: 20px; flex: none; }
.mk-topbar .mk-wa-icon { width: 18px; height: 18px; }

/* Homepage FAQ (answer-engine friendly: real headings and text, not hidden behind scripts). */
.mk-faq { display: flex; flex-direction: column; gap: 12px; max-width: 880px; }
.mk-faq__item { border-radius: var(--mk-radius-card); background: var(--mk-panel); }
.mk-faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 14px 22px; cursor: pointer; list-style: none; }
.mk-faq__item summary::-webkit-details-marker { display: none; }
.mk-faq__item summary::after { content: "+"; font-size: 24px; font-weight: 700; line-height: 1; flex: none; }
.mk-faq__item[open] summary::after { content: "−"; }
.mk-faq__item h3 { margin: 0; font-size: 17px; font-weight: var(--mk-weight-strong); }
.mk-faq__item p { padding: 0 22px 18px; color: var(--mk-text-muted); font-size: var(--mk-size-ui); line-height: 1.6; max-width: 640px; }
.mk-listing__intro { position: relative; margin-top: 10px; max-width: 760px; color: var(--mk-text-muted); }
.mk-listing__intro p { margin: 0 0 8px; }
.mk-listing__intro p:last-of-type { margin-bottom: 0; }
/* Phones: two lines, then "More" (archive-product.php adds the class and the button only when the text is longer). */
.mk-listing__intro.is-clamped { max-height: calc(2 * 1.55em); overflow: hidden; cursor: pointer; }
.mk-listing__more { position: relative; padding: 0; border: 0; background: none; font: inherit; font-weight: var(--mk-weight-strong); color: var(--mk-navy); text-decoration: underline; cursor: pointer; }
.mk-listing__more::before { content: ""; position: absolute; inset: -12px -10px; } /* 44 px tap area */
.mk-listing__intro:not(.is-clamped) .mk-listing__more { margin-top: 4px; }
.mk-listing__intro.is-clamped .mk-listing__more { position: absolute; right: 0; bottom: 0; line-height: 1.55; padding-left: 3em; background: linear-gradient(to right, rgba(255, 255, 255, 0), var(--mk-white) 2.5em); }

/* Order-pay page (behind the Razorpay popup, or after closing it). */
.woocommerce-order-pay .mk-store-page, .mk-store-page:has(#btn-razorpay) { max-width: 720px; }
ul.order_details { list-style: none; margin: 0 0 24px; padding: 24px; border-radius: var(--mk-radius-panel); background: var(--mk-panel); display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; }
ul.order_details li { display: flex; flex-direction: column; gap: 4px; font-size: var(--mk-size-small); color: var(--mk-text-muted); }
ul.order_details strong { font-size: 17px; color: var(--mk-navy); }
#btn-razorpay, #btn-razorpay-cancel { min-height: 52px; padding: 0 26px; margin: 16px 12px 0 0; border-radius: var(--mk-radius-button); font-family: inherit; font-size: 16px; font-weight: var(--mk-weight-strong); cursor: pointer; }
#btn-razorpay { background: var(--mk-yellow); border: 2px solid var(--mk-yellow); color: var(--mk-navy); font-weight: var(--mk-weight-display); }
#btn-razorpay-cancel { background: transparent; border: 2px solid var(--mk-navy); color: var(--mk-navy); }

/* ---------- Home page (design package v2) ---------- */
.mk-home { display: flex; flex-direction: column; gap: 56px; padding-top: 24px; padding-bottom: var(--mk-page-bottom); }
.mk-home__top { display: flex; flex-direction: column; gap: 24px; }
.mk-home-row .mk-section__head { margin-bottom: 24px; }

/* Two worlds: "Shop" (ready-made, light) and "Design your own" (print on demand, navy). */
.mk-home > *, .mk-home__top > * { min-width: 0; }
.mk-worlds { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
/* Desktop: side by side. Shop takes the width its circles need, up to about 60%; Design your own keeps the rest. */
@media (min-width: 1000px) { .mk-worlds { grid-template-columns: fit-content(60%) minmax(320px, 1fr); gap: 20px; align-items: start; } }
.mk-catgroup { min-width: 0; padding: 16px 18px 18px; border-radius: 22px; display: flex; flex-direction: column; gap: 14px; }
.mk-catgroup--ready { background: var(--mk-panel); }
.mk-catgroup--design { background: var(--mk-navy); color: var(--mk-white); }
.mk-catgroup__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.mk-catgroup__label { margin: 0; display: inline-flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.mk-catgroup__label svg { width: 18px; height: 18px; fill: none; stroke: var(--mk-yellow); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.mk-catgroup__sub { font-size: 13px; font-weight: 600; color: var(--mk-text-muted); }
.mk-catgroup--design .mk-catgroup__sub { color: var(--mk-text-on-navy); }
.mk-catgroup__all { margin-left: auto; display: inline-flex; align-items: center; min-height: var(--mk-touch-min); margin-block: -12px; font-size: 14px; font-weight: 800; color: var(--mk-yellow); }
.mk-catgroup--ready .mk-catgroup__all { color: var(--mk-navy); }

.mk-catstrip { position: relative; display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; margin: 0 -18px; padding: 0 18px; scroll-padding: 0 18px; scroll-snap-type: x proximity; }
.mk-catstrip::-webkit-scrollbar { display: none; }
.mk-catstrip__item { flex: 0 0 92px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; color: inherit; scroll-snap-align: start; }
@media (min-width: 1000px) { .mk-catstrip__item { flex: 1 0 96px; max-width: 132px; } }
.mk-catstrip__tile { width: 100%; aspect-ratio: 1 / 1; border-radius: var(--mk-radius-milestone); border-top: 7px solid var(--mk-yellow); background: var(--mk-white); overflow: hidden; display: block; }
.mk-catstrip__tile img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.mk-catstrip__name { font-size: 13px; font-weight: 700; text-align: center; line-height: 1.3; }
@media (max-width: 520px) {
  .mk-catgroup { padding: 14px 16px 14px; gap: 10px; border-radius: 20px; }
  .mk-catstrip { gap: 12px; margin: 0 -16px; padding: 0 16px; }
  .mk-catstrip__item { flex-basis: 78px; gap: 6px; }
  .mk-catstrip__tile { border-top-width: 6px; }
  .mk-catstrip__name { font-size: 12.5px; }
  .mk-catgroup__label { font-size: 17px; }
  .mk-catgroup__sub { display: none; }
}
/* "All categories" tile at the end of a long strip. */
.mk-catstrip__item--more .mk-catstrip__tile { display: grid; place-items: center; border-top-color: var(--mk-navy); }
.mk-catstrip__count { font-size: 22px; font-weight: 800; color: var(--mk-navy); }
/* Scroll arrows (added by main.js when a strip overflows; mouse and trackpad only, phones swipe). */
.mk-catgroup__nav { display: inline-flex; gap: 6px; margin: -10px 0 -10px auto; }
.mk-catgroup__nav[hidden] { display: none; }
.mk-catgroup__all + .mk-catgroup__nav { margin-left: 10px; }
.mk-catgroup__arrow { width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 1px solid var(--mk-line); border-radius: 50%; background: var(--mk-white); color: var(--mk-navy); cursor: pointer; }
.mk-catgroup__arrow::before { content: ""; width: 8px; height: 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateX(-2px) rotate(-45deg); }
.mk-catgroup__arrow--prev::before { transform: translateX(2px) rotate(135deg); }
.mk-catgroup__arrow:disabled { opacity: .35; cursor: default; }
.mk-catgroup--design .mk-catgroup__arrow { border-color: rgba(255, 255, 255, .25); background: transparent; color: var(--mk-white); }
@media (hover: none), (max-width: 720px) { .mk-catgroup__nav { display: none; } }
.mk-catgroup--ready .mk-catstrip__item:hover .mk-catstrip__tile { border-top-color: var(--mk-navy); }
.mk-catgroup--design .mk-catstrip__item:hover .mk-catstrip__tile { border-top-color: var(--mk-white); }

/* Offer banner: copy + a collage of real product photos. */
.mk-offer { border-radius: 24px; background: var(--mk-yellow-tint); overflow: hidden; display: flex; flex-wrap: wrap; align-items: stretch; }
.mk-offer--design { background: #E8EDF4; }
.mk-offer__copy { flex: 1 1 380px; min-width: 0; padding: clamp(24px, 4.4vw, 64px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 16px; }
.mk-offer__eyebrow { padding: 6px 12px; border-radius: 8px; background: var(--mk-navy); color: var(--mk-white); font-size: 13px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.mk-offer__title { margin: 0; font-size: clamp(32px, 4.4vw, 60px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.04; text-wrap: balance; }
.mk-offer__text { margin: 0; max-width: 440px; font-size: 18px; line-height: 1.5; }
.mk-offer .mk-btn { margin-top: 8px; }
.mk-offer__photo { flex: 1.2 1 300px; min-width: 0; display: block; margin: clamp(12px, 1.6vw, 20px); }

.mk-collage { display: grid; gap: 10px; }
.mk-collage__cell { display: block; min-width: 0; min-height: 0; overflow: hidden; border-radius: 16px; background: var(--mk-white); }
.mk-collage__cell img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; transition: transform .3s; }
a:hover .mk-collage__cell img { transform: scale(1.03); }
.mk-collage--banner { height: clamp(260px, 30vw, 420px); grid-template-columns: 1.2fr 1fr; grid-template-rows: 1fr 1fr; }
.mk-collage--banner.mk-collage--n3 .mk-collage__cell:first-child { grid-row: span 2; }
.mk-collage--banner.mk-collage--n2 { grid-template-rows: 1fr; grid-template-columns: 1fr 1fr; }
.mk-collage--banner.mk-collage--n1 { grid-template: 1fr / 1fr; }
.mk-collage--tile { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mk-collage--tile .mk-collage__cell { aspect-ratio: 1 / 1; border-radius: 12px; }
.mk-collage--tile.mk-collage--n1 { grid-template-columns: 1fr; }
.mk-collage--tile.mk-collage--n1 .mk-collage__cell { aspect-ratio: 2 / 1; }
.mk-collage--tile.mk-collage--n2 { grid-template-columns: 1fr 1fr; }
.mk-collage--tile.mk-collage--n2 .mk-collage__cell { aspect-ratio: 4 / 3; }
/* Photo fit (mk_photo_fit_attrs()): the picture inside a photo's white padding (--mk-a: its aspect ratio;
   --mk-x/--mk-y: its offset and --mk-sw/--mk-sh: the image's size, in picture units) covers the box,
   top aligned. A product on white (--mk-k: 1.25) is zoomed to the product, cropped at most a little. */
@supports (width: 1cqw) {
  .mk-fitbox { container-type: size; position: relative; }
  /* A product on white: the studio white takes the card's colour (a shade deeper), so no white box shows. */
  .mk-fitbox--cutout { background: #FFFFFF; }
  .mk-fitbox--cutout > img.mk-fit { mix-blend-mode: multiply; }
  .mk-offer .mk-fitbox--cutout { background: color-mix(in srgb, var(--mk-yellow-tint), var(--mk-navy) 5%); }
  .mk-offer--design .mk-fitbox--cutout { background: color-mix(in srgb, #E8EDF4, var(--mk-navy) 5%); }
  .mk-offer-tile--light .mk-fitbox--cutout { background: color-mix(in srgb, var(--mk-panel), var(--mk-navy) 5%); }
  .mk-offer-tile--dark .mk-fitbox--cutout { background: #FFFFFF; }
  .mk-fitbox > img.mk-fit {
    --mk-wc: min(max(100cqw, 100cqh * var(--mk-a)), min(100cqw, 100cqh * var(--mk-a)) * var(--mk-k));
    --mk-hc: calc(var(--mk-wc) / var(--mk-a));
    position: absolute; max-width: none; object-fit: fill;
    width: calc(var(--mk-wc) * var(--mk-sw)); height: calc(var(--mk-hc) * var(--mk-sh));
    left: calc((100cqw - var(--mk-wc)) / 2 - var(--mk-wc) * var(--mk-x));
    top: calc(max((100cqh - var(--mk-hc)) / 2, 0px) - var(--mk-hc) * var(--mk-y));
  }
}

.mk-home-promises { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(max(150px, 22%), 1fr)); gap: 12px clamp(12px, 2vw, 28px); font-size: 15px; font-weight: 800; }
.mk-home-promises li { display: flex; align-items: center; gap: 12px; }
.mk-home-promises__icon { width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--mk-panel); display: flex; align-items: center; justify-content: center; }
.mk-home-promises__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--mk-navy); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Offer tiles: copy on top, a strip of product photos below. */
.mk-offer-tiles { display: flex; flex-wrap: wrap; gap: clamp(14px, 2vw, 28px); }
.mk-offer-tile { flex: 1 1 340px; min-width: 0; padding: clamp(20px, 2.6vw, 32px); border-radius: 24px; text-decoration: none; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.mk-offer-tile--dark, .mk-offer-tile--dark:hover { background: var(--mk-navy); color: var(--mk-white); }
.mk-offer-tile--light, .mk-offer-tile--light:hover { background: var(--mk-panel); color: var(--mk-navy); }
.mk-offer-tile__copy { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.mk-offer-tile__eyebrow { display: inline-flex; padding: 4px 10px; border-radius: 999px; background: var(--mk-yellow); color: var(--mk-navy); font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.mk-offer-tile--light .mk-offer-tile__eyebrow { background: var(--mk-navy); color: var(--mk-white); }
.mk-offer-tile__title { font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; text-wrap: balance; }
.mk-offer-tile__text { font-size: 15px; line-height: 1.5; }
.mk-offer-tile--dark .mk-offer-tile__text { color: var(--mk-text-on-navy); }
.mk-offer-tile--light .mk-offer-tile__text { color: var(--mk-text-muted); }
.mk-offer-tile__cta { margin-top: 4px; font-size: 15px; font-weight: 800; }
.mk-offer-tile--dark .mk-offer-tile__cta { color: var(--mk-yellow); }
.mk-offer-tile--light .mk-offer-tile__cta { text-decoration: underline; }
.mk-offer-tile--dark .mk-collage__cell { background: #1D3554; }

/* "Design your own" showcase: navy panel, its own headline, steps and cards. */
.mk-dyo { padding: clamp(20px, 3.4vw, 48px); border-radius: var(--mk-radius-panel); background: var(--mk-navy); color: var(--mk-white); }
.mk-dyo__head { display: grid; gap: 20px 48px; align-items: center; margin-bottom: clamp(22px, 2.6vw, 36px); }
@media (min-width: 1000px) {
  .mk-dyo__head { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .mk-dyo__cta { grid-column: 1; justify-self: start; }
  .mk-dyo__steps { grid-column: 2; grid-row: 1 / span 2; }
}
.mk-dyo__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.mk-dyo__eyebrow { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 10px; border-radius: 999px; background: var(--mk-yellow); color: var(--mk-navy); font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.mk-dyo__eyebrow svg, .mk-badge--design svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.mk-dyo__title { margin: 0; font-size: clamp(30px, 3.8vw, 52px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; text-wrap: balance; color: var(--mk-white); }
.mk-dyo__text { margin: 0; max-width: 520px; font-size: 17px; line-height: 1.5; color: var(--mk-text-on-navy); }
.mk-dyo__steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.mk-dyo__steps li { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .07); font-size: 16px; font-weight: 700; }
.mk-dyo__steps span { width: 32px; height: 32px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--mk-yellow); color: var(--mk-navy); font-weight: 800; }
.mk-dyo__cta { border-color: var(--mk-white); }
.mk-dyo .mk-card__title, .mk-dyo .mk-price { color: var(--mk-white); }
.mk-dyo .mk-card__media { background: var(--mk-white); }
.mk-dyo .mk-badge--design { display: none; }
.mk-dyo .mk-card--design .button { background: var(--mk-white); border-color: var(--mk-white); color: var(--mk-navy); }
.mk-dyo .mk-card--design .button::before { background-color: var(--mk-navy); }
.mk-dyo .mk-card--design .button:hover { background: var(--mk-yellow-tint); }
@media (min-width: 721px) { .mk-dyo__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .mk-dyo__grid > li:nth-child(n+5) { display: none; } }
@media (max-width: 720px) {
  .mk-dyo .mk-dyo__grid { position: relative; display: flex; overflow-x: auto; gap: 12px; margin: 0 -20px; padding: 0 20px 4px; scroll-padding: 0 20px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .mk-dyo__grid::-webkit-scrollbar { display: none; }
  .mk-dyo__grid > li { flex: 0 0 46%; scroll-snap-align: start; }
}

/* Print-on-demand cards read distinctly wherever they appear. */
.mk-badge--design { top: auto; bottom: 10px; left: 10px; display: inline-flex; align-items: center; gap: 5px; background: var(--mk-white); color: var(--mk-navy); border: 1px solid var(--mk-line); letter-spacing: 0; }
.mk-card--design .button { background: var(--mk-navy); color: var(--mk-white); }
.mk-card--design .button:hover { background: var(--mk-navy-deep); color: var(--mk-white); }
.mk-card--design .button::before { content: ""; width: 16px; height: 16px; flex: none; background-color: currentColor; -webkit-mask: var(--mk-pencil) center / contain no-repeat; mask: var(--mk-pencil) center / contain no-repeat; }
:root { --mk-pencil: 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.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20h4L19 9l-4-4L4 16z'/%3E%3Cpath d='M13.5 6.5l4 4'/%3E%3C/svg%3E"); }

/* Header: "Design your own" is an accent pill. */
.mk-catbar__row a.mk-catbar__design, .mk-catbar__row .mk-catbar__design > a { align-self: center; min-height: var(--mk-touch-min); padding: 0 16px 0 13px; gap: 7px; border-radius: 999px; background: var(--mk-navy); color: var(--mk-white); font-weight: var(--mk-weight-display); }
.mk-catbar__row a.mk-catbar__design::before, .mk-catbar__row .mk-catbar__design > a::before { content: ""; width: 15px; height: 15px; background-color: var(--mk-yellow); -webkit-mask: var(--mk-pencil) center / contain no-repeat; mask: var(--mk-pencil) center / contain no-repeat; }
.mk-catbar__row a.mk-catbar__design:hover, .mk-catbar__row .mk-catbar__design > a:hover { background: var(--mk-navy-deep); color: var(--mk-white); }

.mk-support { padding: clamp(24px, 3vw, 40px); border-radius: 24px; background: var(--mk-panel); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.mk-support__copy { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.mk-support .mk-btn { background: var(--mk-white); }

/* "% off" badge on product photos, and the "Save X%" chip on online payment methods. */
.mk-badge--off { left: auto; right: 12px; padding: 5px 9px; background: var(--mk-yellow); color: var(--mk-navy); font-weight: var(--mk-weight-display); letter-spacing: 0; }
.mk-save-chip { display: inline-block; margin-left: auto; padding: 6px 10px; border-radius: 8px; background: var(--mk-yellow); color: var(--mk-navy); font-size: 13px; font-weight: 800; line-height: 1; }

/* Error state (SPACING-AND-COMPONENTS.md section 10): red border, message below starting with "Error:". */
.checkout-inline-error-message { margin: 0; font-size: var(--mk-size-small); color: var(--mk-error); }
.checkout-inline-error-message::before { content: "Error: "; font-weight: var(--mk-weight-strong); }
.button:disabled:hover, .mk-btn:disabled:hover { background: var(--mk-white); }

/* Product page main buttons are Large (56 / 28 / 12 / 17-800); beats the generic button.button rule. */
.mk-main .single_add_to_cart_button, .mk-main .mk-buy-now { min-height: var(--mk-button-lg); padding: 0 28px; border-radius: var(--mk-radius-button); font-size: 17px; font-weight: var(--mk-weight-display); }
/* Every link at least 44 tall: breadcrumb links and the "Clear" option link. */
.mk-breadcrumb a, .reset_variations { display: inline-flex; align-items: center; min-height: var(--mk-touch-min); }
.mk-breadcrumb a { min-width: var(--mk-touch-min); }
.mk-header__help, .showcoupon { display: inline-flex; align-items: center; min-height: var(--mk-touch-min); }
input[type=checkbox], input[type=radio] { width: 20px; height: 20px; accent-color: var(--mk-navy); }

/* Floating WhatsApp button (inc/whatsapp-button.php). No shadow by design.
   Default style: navy circle with a white WhatsApp mark and a small green "online" dot, so it reads as
   WhatsApp but belongs to the MileKart palette (chosen 2026-11-13). */
.mk-wa-fab {
  position: fixed; z-index: 900;
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(16px + env(safe-area-inset-bottom));
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--mk-navy); color: var(--mk-white);
  border: 3px solid var(--mk-white);
  font-size: 15px; font-weight: var(--mk-weight-strong); text-decoration: none;
  transition: background-color .15s;
}
.mk-wa-fab::after { content: ""; position: absolute; top: 1px; right: 1px; width: 14px; height: 14px; border-radius: 50%; background: #25D366; border: 2px solid var(--mk-white); }
.mk-wa-fab:hover { background: var(--mk-navy-deep); color: var(--mk-white); }
.mk-wa-fab:focus-visible { outline: var(--mk-focus-ring); outline-offset: 2px; }
.mk-wa-fab__icon { width: 28px; height: 28px; flex: none; }
.has-wa-fab .mk-footer__legal { padding-bottom: 88px; }
/* Phone: smaller, tucked into the corner, and out of the way when it would sit on a card's title or
   button (main.js adds .is-tucked while anything tappable or a product title is under it). */
@media (max-width: 720px) {
  .mk-wa-fab { right: max(10px, env(safe-area-inset-right)); bottom: calc(10px + env(safe-area-inset-bottom)); width: 46px; height: 46px; border-width: 2px; }
  .mk-wa-fab__icon { width: 23px; height: 23px; }
  .mk-wa-fab::after { width: 11px; height: 11px; top: 0; right: 0; }
  .has-wa-fab .mk-footer__legal { padding-bottom: 72px; }
}
.mk-wa-fab { transition: background-color .15s, transform .2s ease, opacity .2s ease; }
.mk-wa-fab.is-tucked { transform: translateX(calc(100% + 24px)); opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .mk-wa-fab { transition: none; } }
@media (min-width: 721px) {
  .mk-wa-fab { right: 24px; bottom: calc(24px + env(safe-area-inset-bottom)); }
  .mk-wa-fab { width: 60px; height: 60px; }
  .mk-wa-fab__icon { width: 30px; height: 30px; }
  .has-wa-fab .mk-footer__legal { padding-bottom: 28px; padding-right: 96px; }
}
@media print { .mk-wa-fab { display: none; } }

.mk-filters__count { margin-left: 8px; padding: 2px 8px; border-radius: 8px; background: var(--mk-yellow-tint); font-size: 13px; font-weight: var(--mk-weight-display); }

/* "Design your own" product page call to action. */
.mk-design-cta { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: var(--mk-radius-card); background: var(--mk-panel); }
.mk-design-cta__label { font-size: 13px; font-weight: var(--mk-weight-strong); text-transform: uppercase; letter-spacing: var(--mk-tracking-caps, .06em); color: var(--mk-text-muted); }
.mk-design-cta__swatches { display: flex; flex-wrap: wrap; gap: 10px 14px; }
.mk-design-swatch { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 64px; font-size: 12px; text-align: center; color: var(--mk-navy); text-decoration: none; }
.mk-design-swatch span { width: 44px; height: 44px; border-radius: 50%; background: var(--sw); border: 1px solid var(--mk-line-strong); }
.mk-design-swatch:hover span { outline: 2px solid var(--mk-navy); outline-offset: 3px; }
.mk-design-cta__go { width: 100%; }
.mk-design-cta__note { margin: 0; font-size: var(--mk-size-small); color: var(--mk-text-muted); }

/* ---------- All categories page (/categories/) ---------- */
.mk-catindex .mk-listing__head { margin-bottom: 8px; }
.mk-catindex__group { margin-top: 28px; padding: 22px 22px 24px; border-radius: 22px; }
.mk-catindex__group--ready { background: var(--mk-panel); }
.mk-catindex__group--design { background: var(--mk-navy); color: var(--mk-white); }
.mk-catindex__title { margin: 0 0 18px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.mk-catindex__title span { font-size: 14px; font-weight: 600; color: var(--mk-text-muted); }
.mk-catindex__group--design .mk-catindex__title span { color: var(--mk-text-on-navy); }
.mk-catindex__title svg { align-self: center; width: 20px; height: 20px; fill: none; stroke: var(--mk-yellow); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.mk-catindex__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); align-items: start; gap: 14px; }
.mk-catcard { min-width: 0; padding: 12px; border-radius: 18px; background: var(--mk-white); color: var(--mk-navy); }
.mk-catcard__main { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; }
.mk-catcard__photo { flex: none; width: 76px; aspect-ratio: 1 / 1; border-radius: var(--mk-radius-milestone); border-top: 6px solid var(--mk-yellow); background: var(--mk-panel); overflow: hidden; }
.mk-catcard__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.mk-catcard__copy { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mk-catcard__name { font-size: 17px; font-weight: 800; line-height: 1.25; }
.mk-catcard__meta { font-size: 13.5px; color: var(--mk-text-muted); }
.mk-catcard__main:hover .mk-catcard__name { text-decoration: underline; }
.mk-catcard__subs { list-style: none; margin: 10px 0 0; padding: 8px 0 0; border-top: 1px solid var(--mk-line); display: flex; flex-wrap: wrap; gap: 6px; }
.mk-catcard__subs a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 999px; background: var(--mk-panel); font-size: 14px; font-weight: 600; text-decoration: none; color: inherit; }
.mk-catcard__subs a:hover { background: var(--mk-line); }
@media (max-width: 720px) {
  .mk-catindex__group { margin-top: 20px; padding: 16px 14px 16px; border-radius: 20px; }
  /* Phones: two cards a row, photo above the name, so a long list stays short. */
  .mk-catindex__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .mk-catcard { padding: 10px 10px 12px; }
  .mk-catcard__main { flex-direction: column; align-items: stretch; gap: 8px; text-align: center; }
  .mk-catcard__photo { width: 100%; }
  .mk-catcard__name { font-size: 15px; }
  .mk-catcard__meta { font-size: 12.5px; }
  .mk-catcard__subs { justify-content: center; gap: 4px; }
  .mk-catcard__subs a { min-height: var(--mk-touch-min); padding: 0 10px; font-size: 13px; }
}

/* ---------- Soft launch: "Orders open soon" (milekart-core includes/orders-gate.php) ---------- */
/* A status, not a button: yellow-tint pill (status chip), no border, default cursor, nothing to tap. */
.mk-soon { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px 20px; border-radius: var(--mk-radius-card); background: var(--mk-panel); max-width: 560px; }
.mk-soon__pill { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: 0; padding: 0 18px; border-radius: 999px; background: var(--mk-yellow-tint); color: var(--mk-navy); font-size: 17px; font-weight: var(--mk-weight-display); cursor: default; user-select: none; }
.mk-soon__pill svg, .mk-soon-chip svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mk-soon__line { margin: 0; max-width: 46ch; color: var(--mk-text-muted); font-size: var(--mk-size-ui); line-height: 1.5; }
.mk-soon__wa { display: inline-flex; align-items: center; gap: 8px; min-height: var(--mk-touch-min, 44px); color: var(--mk-navy); font-size: var(--mk-size-small); font-weight: var(--mk-weight-label); text-decoration: underline; text-underline-offset: 3px; }
.mk-design-cta + .mk-soon { margin-top: 4px; }
.mkd-sheet__foot .mk-soon { max-width: none; padding: 12px 14px; gap: 6px; }
.mkd-sheet__foot .mk-soon__pill { min-height: 40px; font-size: 16px; }
.mkd-sheet__foot .mk-soon__line { font-size: 14px; }
.mkd-sheet__foot .mk-soon__wa { display: none; } /* keep the sticky foot short: the design and sizes stay in view */
/* Product cards: in place of Add to kart. */
.mk-soon-chip { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 46px; padding: 0 8px; border-radius: var(--mk-radius-control); background: var(--mk-panel); color: var(--mk-text-muted); font-size: var(--mk-size-small); font-weight: var(--mk-weight-label); text-align: center; line-height: 1.2; cursor: default; user-select: none; }
.mk-soon-chip svg { width: 16px; height: 16px; }
/* The notice bar above the header (dismissible for the session). */
.mk-soonbar { background: var(--mk-yellow-tint); color: var(--mk-navy); font-size: var(--mk-size-small); border-bottom: 1px solid var(--mk-line); }
.mk-soonbar[hidden] { display: none; }
.mk-soonbar__row { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; }
.mk-soonbar p { margin: 0; padding: 6px 0; line-height: 1.4; text-align: center; }
.mk-soonbar__close { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -10px; padding: 0; border: 0; border-radius: var(--mk-radius-control); background: transparent; color: var(--mk-navy); cursor: pointer; }
.mk-soonbar__close:hover { background: rgba(16, 36, 62, .08); }
.mk-soonbar__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
@media (max-width: 720px) {
  .mk-soonbar__row { justify-content: space-between; }
  .mk-soonbar p { text-align: left; padding: 4px 0; }
  .mk-soonbar__long { display: none; } /* one or two short lines on phones: the first products stay on the first screen */
}
/* The kart page while ordering is closed. */
.mk-soon-kart .mk-soon__pill { margin: 0 auto; }
.mk-soon-kart .mk-actions { justify-content: center; }

/* ===== Trade mark (2026-11-18): MILEKART application pending, so ™ only, never ®. ===== */
/* The ™ sits inside the wordmark, small and level with the tops of its capitals; it adds no line height. */
.mk-logo .mk-logo__tm { font-size: .36em; font-weight: 600; letter-spacing: 0; line-height: 0; vertical-align: .95em; margin-left: 1px; }
/* ===== end trade mark ===== */
