@import url("/assets/mm-settings.css");  /* logo override written by the admin panel */
/* MED MIND — supplemental styles for the pages added on top of the Medcore design.
   Scoped with an `mm-` prefix so nothing here can collide with the prebuilt
   Tailwind in styles-DnbKuh_m.css (which cannot generate new utilities). */

/* ---------- header dropdowns ---------- */
.mm-nav-item { position: relative; }
.mm-nav-item > a { color: inherit; text-decoration: none; border-radius: 9999px; }
.mm-nav-item:hover > a { background: var(--secondary); }
.mm-dd {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(-4px);
  min-width: 232px; padding: 8px; border-radius: 16px;
  background: var(--card); border: 1px solid var(--border);
  box-shadow: 0 18px 40px -20px var(--primary);
  opacity: 0; visibility: hidden; transition: opacity .16s ease, transform .16s ease; z-index: 60;
}
.mm-nav-item:hover .mm-dd, .mm-nav-item:focus-within .mm-dd { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mm-dd::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.mm-dd:empty { display: none; }
.mm-dd a {
  display: block; padding: 9px 12px; border-radius: 10px; white-space: nowrap;
  font-size: 12px; font-weight: 500; color: var(--foreground); text-decoration: none;
}
.mm-dd a:hover { background: var(--secondary); }

/* ---------- page scaffolding ---------- */
.mm-main { padding: 0 16px 8px; }
@media (min-width: 640px) { .mm-main { padding: 0 40px 8px; } }
.mm-wrap { max-width: 1180px; margin: 0 auto; }

.mm-hero { background: var(--gradient-hero); border-radius: 24px; padding: 44px 28px; margin-top: 8px; }
@media (min-width: 640px) { .mm-hero { padding: 64px 48px; } }
.mm-eyebrow {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--primary); background: var(--card); padding: 7px 14px; border-radius: 9999px; box-shadow: var(--shadow-card);
}
.mm-h1 { font-family: var(--font-display); font-stretch: 112%; font-weight: 800; line-height: .95;
  font-size: clamp(34px, 6vw, 68px); margin: 18px 0 0; color: var(--foreground); text-transform: uppercase; }
.mm-lead { margin: 16px 0 0; max-width: 60ch; font-size: 14px; line-height: 1.7; color: var(--muted-foreground); }

.mm-section { margin-top: 56px; }
.mm-h2 { font-family: var(--font-display); font-stretch: 85%; font-weight: 800; text-transform: uppercase;
  line-height: .95; font-size: clamp(26px, 3.4vw, 42px); margin: 0; color: var(--foreground); }
.mm-h3 { font-size: 15px; font-weight: 800; margin: 0; color: var(--foreground); }
.mm-p  { font-size: 13px; line-height: 1.7; color: var(--muted-foreground); margin: 8px 0 0; }
.mm-sectionhead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }

/* ---------- cards & grids ---------- */
.mm-grid { display: grid; gap: 16px; margin-top: 24px; }
.mm-grid-2 { grid-template-columns: 1fr; }
.mm-grid-3 { grid-template-columns: 1fr; }
.mm-grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) {
  .mm-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .mm-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .mm-grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.mm-card { background: var(--card); border-radius: 18px; padding: 22px; box-shadow: var(--shadow-card); }
.mm-card-link { display: block; text-decoration: none; color: inherit; transition: transform .18s ease; }
.mm-card-link:hover { transform: translateY(-3px); }
.mm-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  background: var(--sky-soft); color: var(--primary); margin-bottom: 14px; }
.mm-icon svg { width: 20px; height: 20px; }
.mm-num { font-family: var(--font-display); font-stretch: 112%; font-size: 30px; font-weight: 800; color: var(--primary); line-height: 1; }

/* ---------- tables ---------- */
.mm-tablewrap { overflow-x: auto; margin-top: 24px; border-radius: 18px; box-shadow: var(--shadow-card); background: var(--card); }
.mm-table { width: 100%; border-collapse: collapse; min-width: 620px; font-size: 13px; }
.mm-table th, .mm-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); }
.mm-table thead th { background: var(--primary); color: var(--primary-foreground); font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase; }
.mm-table tbody tr:last-child td { border-bottom: 0; }
.mm-table tbody tr:hover { background: var(--secondary); }
.mm-pill { display: inline-block; padding: 3px 10px; border-radius: 9999px; font-size: 11px; font-weight: 700;
  background: var(--sky-soft); color: var(--primary); }

/* ---------- forms ---------- */
.mm-form { margin-top: 24px; background: var(--card); border-radius: 20px; padding: 24px; box-shadow: var(--shadow-card); }
@media (min-width: 640px) { .mm-form { padding: 32px; } }
.mm-field { display: block; margin-bottom: 16px; }
.mm-field > span { display: block; font-size: 12px; font-weight: 700; margin-bottom: 6px; color: var(--foreground); }
.mm-input, .mm-select, .mm-textarea {
  width: 100%; box-sizing: border-box; font: inherit; font-size: 13px; color: var(--foreground);
  background: var(--background); border: 1px solid var(--input); border-radius: 10px; padding: 11px 13px;
}
.mm-input:focus, .mm-select:focus, .mm-textarea:focus { outline: 2px solid var(--ring); outline-offset: 1px; border-color: transparent; }
.mm-textarea { min-height: 104px; resize: vertical; }
.mm-fieldrow { display: grid; gap: 0 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .mm-fieldrow-2 { grid-template-columns: 1fr 1fr; } .mm-fieldrow-3 { grid-template-columns: 1fr 1fr 1fr; } }
.mm-check { display: flex; align-items: center; gap: 9px; font-size: 13px; padding: 9px 12px;
  border: 1px solid var(--input); border-radius: 10px; cursor: pointer; }
.mm-check:hover { background: var(--secondary); }
.mm-check input { accent-color: var(--primary); width: 15px; height: 15px; }

.mm-btn { display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; font: inherit;
  font-size: 13px; font-weight: 700; padding: 13px 26px; border-radius: 9999px;
  background: var(--primary); color: var(--primary-foreground); text-decoration: none; }
.mm-btn:hover { opacity: .9; }
.mm-btn-ghost { background: var(--card); color: var(--foreground); border: 1px solid var(--primary); }
.mm-btn-sm { padding: 8px 16px; font-size: 12px; }
.mm-note { font-size: 11px; color: var(--muted-foreground); margin-top: 12px; }

/* bulk order line items */
.mm-lines { margin-top: 8px; }
.mm-line { display: grid; grid-template-columns: 1fr 104px 40px; gap: 10px; align-items: center; margin-bottom: 10px; }
.mm-line-del { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--input); background: var(--card); cursor: pointer; color: var(--muted-foreground); font-size: 16px; }
.mm-line-del:hover { background: var(--destructive); color: var(--destructive-foreground); border-color: transparent; }

.mm-ok { margin-top: 18px; padding: 15px 18px; border-radius: 12px; font-size: 13px; line-height: 1.6;
  background: var(--sky-soft); color: var(--primary); font-weight: 600; }

/* ---------- misc ---------- */
.mm-split { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: center; margin-top: 24px; }
@media (min-width: 860px) { .mm-split { grid-template-columns: 1.05fr .95fr; gap: 44px; } }
.mm-split img { width: 100%; border-radius: 20px; display: block; }
.mm-list { margin: 14px 0 0; padding: 0; list-style: none; }
.mm-list li { position: relative; padding-left: 24px; font-size: 13px; line-height: 1.75; color: var(--muted-foreground); }
.mm-list li::before { content: ""; position: absolute; left: 6px; top: 9px; width: 6px; height: 6px;
  border-radius: 9999px; background: var(--sky); }
.mm-cta { margin-top: 56px; background: var(--primary); color: var(--primary-foreground);
  border-radius: 24px; padding: 40px 28px; text-align: center; }
@media (min-width: 640px) { .mm-cta { padding: 56px; } }
.mm-cta .mm-h2 { color: var(--primary-foreground); }
.mm-cta p { color: var(--primary-foreground); opacity: .8; font-size: 13px; line-height: 1.7;
  max-width: 54ch; margin: 14px auto 0; }
.mm-breadcrumb { font-size: 11px; color: var(--muted-foreground); padding: 18px 0 0; }
.mm-breadcrumb a { color: inherit; text-decoration: none; }
.mm-breadcrumb a:hover { text-decoration: underline; }
.mm-demo { font-size: 11px; color: var(--muted-foreground); border: 1px dashed var(--border);
  border-radius: 10px; padding: 9px 13px; margin-top: 14px; display: inline-block; }

/* post cards */
.mm-post-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 14px; background: var(--secondary); }
.mm-meta { font-size: 11px; color: var(--muted-foreground); margin-top: 12px; }

/* ---------- header rebuilt to match medmind.mn (logo, search, actions) ---------- */
.mm-logo { display: inline-flex; flex-direction: column; line-height: 1; text-decoration: none; color: inherit; }
.mm-logo-main { font-family: var(--font-display); font-stretch: 100%; font-weight: 800;
  font-size: 22px; letter-spacing: -0.01em; color: var(--foreground); }
.mm-logo-sub { margin-top: 3px; font-size: 9px; font-weight: 600; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--muted-foreground); }
@media (min-width: 640px) { .mm-logo-main { font-size: 26px; } .mm-logo-sub { font-size: 10px; } }

.mm-navlink { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--foreground); text-decoration: none; padding: 8px 2px; display: inline-flex;
  align-items: center; gap: 6px; border-bottom: 2px solid transparent; }
.mm-navlink:hover { border-bottom-color: var(--primary); }
.mm-navlink.is-active { border-bottom-color: var(--primary); }

.mm-iconbtn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 9999px;
  border: 1px solid var(--border); background: var(--card); color: var(--foreground);
  position: relative; text-decoration: none; }
.mm-iconbtn:hover { background: var(--secondary); }
.mm-iconbtn svg { width: 18px; height: 18px; }
.mm-badge { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9999px; background: var(--primary); color: var(--primary-foreground);
  font-size: 10px; font-weight: 700; display: grid; place-items: center; }

/* full-width search strip under the header */
.mm-searchwrap { padding: 0 16px 14px; background: var(--card); }
@media (min-width: 640px) { .mm-searchwrap { padding: 0 40px 18px; } }
.mm-search { display: flex; max-width: 1180px; margin: 0 auto; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--input); background: var(--background); }
.mm-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit;
  font-size: 14px; padding: 13px 16px; color: var(--foreground); outline: none; }
.mm-search input::placeholder { color: var(--muted-foreground); }
.mm-search button { border: 0; cursor: pointer; width: 54px; display: grid; place-items: center;
  background: var(--foreground); color: var(--primary-foreground); }
.mm-search button svg { width: 18px; height: 18px; }

/* search results panel */
.mm-results { max-width: 1180px; margin: 0 auto; }
.mm-results-empty { font-size: 13px; color: var(--muted-foreground); padding: 10px 2px; }

/* ---------- category shortcut cards (the four icon tiles) ---------- */
.mm-cat { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  text-decoration: none; color: inherit; }
.mm-cat-label { font-size: 12px; font-weight: 700; line-height: 1.25; }
@media (min-width: 640px) { .mm-cat-label { font-size: 14px; } }
.mm-result { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px;
  text-decoration: none; color: inherit; background: var(--card); margin-top: 8px; box-shadow: var(--shadow-card); }
.mm-result:hover { background: var(--secondary); }
.mm-result img { width: 42px; height: 42px; object-fit: contain; flex: none; }
.mm-result > span { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.mm-result b { font-size: 13px; font-weight: 700; }
.mm-result i { font-style: normal; font-size: 11px; color: var(--muted-foreground); }
.mm-result em { font-style: normal; font-size: 13px; font-weight: 800; white-space: nowrap; }

/* ---------- hero facts (address / phone), replaces the old strapline ---------- */
.mm-herofacts { max-width: 34ch; }
.mm-herofacts p { margin: 0 0 10px; font-size: 15px; font-weight: 500; line-height: 1.6;
  color: var(--foreground); }
.mm-herofacts p:last-child { margin-bottom: 0; }
.mm-herofacts span { display: block; font-size: 10px; font-weight: 800; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--muted-foreground); margin-bottom: 2px; }
@media (min-width: 1024px) { .mm-herofacts p { font-size: 14px; } }

/* ---------- the four tiles, now real category shortcuts ---------- */
.mm-cat-card { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--card); border-radius: 16px; padding: 12px; box-shadow: var(--shadow-card);
  text-decoration: none; color: inherit; min-height: 80px; transition: transform .18s ease; }
.mm-cat-card:hover { transform: translateY(-2px); }
@media (min-width: 640px) { .mm-cat-card { padding: 20px; min-height: 128px; } }

/* ---------- utilities missing from the prebuilt Tailwind build ---------- */
@media (min-width: 640px) {
  .sm\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sm\:text-base { font-size: 1rem; line-height: 1.5rem; }
}

/* =====================================================================
   iOS-style polish layer
   Loaded after the prebuilt Tailwind, so these refine the existing look
   without changing any markup: softer corners, quieter elevation,
   hairline borders, comfortable touch targets.
   ===================================================================== */

/* ---- corners: iOS uses larger, more continuous radii ---- */
.rounded-xl   { border-radius: 14px; }
.rounded-2xl  { border-radius: 20px; }
.rounded-lg   { border-radius: 12px; }

/* ---- elevation: one soft, neutral shadow instead of a blue blur ---- */
.shadow-card {
  box-shadow: 0 1px 2px rgba(14, 42, 77, .05), 0 10px 28px -14px rgba(14, 42, 77, .18);
}

/* ---- hairline borders, the way iOS separates surfaces ---- */
.border, .border-b, .border-t { border-color: var(--border); }

/* ---- typography: tighter headings, calmer body ---- */
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.font-display-cond, .font-display-wide, .mm-h1, .mm-h2 { letter-spacing: -0.02em; }

/* ---- comfortable touch targets (44px is the iOS minimum) ---- */
header .mm-iconbtn { width: 44px; height: 44px; }
.mm-search input { padding-top: 15px; padding-bottom: 15px; }
.mm-search button { width: 58px; }

/* ---- inputs: rounded, hairline, clear focus ---- */
.mm-input, .mm-select, .mm-textarea {
  border-radius: 12px; border-color: var(--border); background: var(--card);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.mm-input:hover, .mm-select:hover, .mm-textarea:hover { border-color: var(--input); }
.mm-input:focus, .mm-select:focus, .mm-textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--primary) 16%, transparent);
}
/* inline validation, shown next to the field it belongs to */
.mm-input:user-invalid, .mm-textarea:user-invalid {
  border-color: var(--destructive);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--destructive) 14%, transparent);
}

/* ---- buttons: pill, springy, never cramped ---- */
.mm-btn {
  min-height: 46px; border-radius: 9999px; letter-spacing: .01em;
  transition: transform .15s cubic-bezier(.2,.8,.3,1), box-shadow .15s ease, opacity .15s ease;
  box-shadow: 0 1px 2px rgba(14,42,77,.08), 0 8px 20px -10px rgba(32,100,182,.5);
}
.mm-btn:hover { transform: translateY(-1px); opacity: 1; }
.mm-btn:active { transform: translateY(0) scale(.985); }
.mm-btn-ghost { box-shadow: none; border: 1px solid var(--border); background: var(--card); }
.mm-btn-ghost:hover { background: var(--secondary); }
.mm-btn-sm { min-height: 38px; }

/* ---- cards: calmer surface, consistent padding rhythm ---- */
.mm-card { border-radius: 20px; border: 1px solid color-mix(in oklab, var(--border) 60%, transparent); }
.mm-cat-card { border-radius: 18px; border: 1px solid color-mix(in oklab, var(--border) 60%, transparent); }
.mm-hero { border-radius: 28px; }
.mm-cta  { border-radius: 28px; }

/* ---- dropdown: iOS popover feel ---- */
.mm-dd { border-radius: 18px; box-shadow: 0 2px 6px rgba(14,42,77,.06), 0 24px 48px -24px rgba(14,42,77,.35); }
.mm-dd a { border-radius: 12px; }

/* ---- search results panel ---- */
.mm-result { border-radius: 16px; border: 1px solid color-mix(in oklab, var(--border) 60%, transparent); }

/* ---- tables ---- */
.mm-tablewrap { border-radius: 20px; border: 1px solid color-mix(in oklab, var(--border) 60%, transparent); }

/* ---- the teal from the palette, used as the accent for success/!info ---- */
.mm-pill { background: color-mix(in oklab, var(--accent) 45%, var(--card)); color: var(--foreground); }
.mm-ok   { background: color-mix(in oklab, var(--accent) 35%, var(--card)); color: var(--foreground); }
.mm-icon { background: color-mix(in oklab, var(--accent) 40%, var(--card)); color: var(--foreground); }

/* ---- respect reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .mm-btn, .mm-card-link, .mm-cat-card, .mm-dd { transition: none; }
}

/* search submit carries the brand blue rather than near-black */
.mm-search button { background: var(--primary); }
.mm-search button:hover { background: color-mix(in oklab, var(--primary) 88%, black); }
.mm-search { border-color: color-mix(in oklab, var(--border) 70%, transparent); background: var(--card); }

/* ---- small fixes found while reviewing the pages ---- */
/* "Тоо ширхэг" was wrapping onto two lines next to the stepper */
.min-h-screen .w-16.text-sm.font-semibold { width: auto; white-space: nowrap; padding-right: 12px; }

/* keyboard focus is visible everywhere, without showing on mouse clicks */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 10px;
}
/* iOS-ish interaction details */
* { -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
::selection { background: color-mix(in oklab, var(--primary) 22%, transparent); }

/* =====================================================================
   Navy / royal / sky / neon theme
   Dark shell (header, hero, footer, CTA bands) + light shopping surface,
   so the product photos that still carry a white backdrop keep working.
   ===================================================================== */
:root {
  --navy:  oklch(19.5% .121 268);   /* #04044A */
  --royal: oklch(26%   .172 264);   /* #000675 */
  --skyb:  oklch(69.4% .173 245);   /* #00A4FF */
  --neon:  oklch(84.9% .146 208);   /* #00E7FF */
}

/* ---------- dark header band ---------- */
header {
  background: linear-gradient(118deg, var(--navy) 0%, var(--royal) 58%, oklch(34% .19 258) 100%);
  color: #fff; border-bottom: 0;
}
header .mm-logo-main { color: #fff; }
header .mm-logo-sub  { color: var(--neon); opacity: .9; }
header .mm-navlink   { color: rgba(255,255,255,.82); border-bottom-color: transparent; }
header .mm-navlink:hover { color: #fff; border-bottom-color: var(--neon); }
header .mm-navlink.is-active { color: #fff; border-bottom-color: var(--neon); }
header .mm-iconbtn {
  background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.22); color: #fff;
  backdrop-filter: blur(6px);
}
header .mm-iconbtn:hover { background: rgba(255,255,255,.18); }
header .mm-badge { background: var(--neon); color: var(--navy); }
header button[aria-label="Цэс"], header button[aria-label="Menu"] { color: #fff; }
/* popovers inside the dark header stay light sheets */
header [data-mm-mobile], header .mm-dd { color: var(--foreground); }
header [data-mm-mobile] a { color: var(--foreground); }

/* ---------- the search field, rebuilt as a pill inside the band ---------- */
.mm-searchwrap {
  background: linear-gradient(118deg, var(--navy) 0%, var(--royal) 58%, oklch(34% .19 258) 100%);
  padding: 0 16px 18px;
}
@media (min-width: 640px) { .mm-searchwrap { padding: 0 40px 22px; } }
.mm-search {
  position: relative; border: 1px solid rgba(255,255,255,.18); border-radius: 9999px;
  background: rgba(255,255,255,.10); backdrop-filter: blur(10px); overflow: visible;
  padding: 4px 4px 4px 20px; align-items: center; transition: border-color .18s ease, box-shadow .18s ease;
}
.mm-search:focus-within {
  border-color: var(--neon);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--neon) 22%, transparent);
}
.mm-search input { color: #fff; font-size: 15px; padding: 12px 8px 12px 0; background: transparent; }
.mm-search input::placeholder { color: rgba(255,255,255,.60); }
.mm-search button {
  width: 44px; height: 44px; border-radius: 9999px; flex: none;
  background: var(--skyb); color: #fff; box-shadow: 0 6px 18px -8px var(--skyb);
}
.mm-search button:hover { background: var(--neon); color: var(--navy); }
.mm-results { padding-top: 10px; }
.mm-results-empty { color: rgba(255,255,255,.75); }
.mm-result { background: rgba(255,255,255,.96); border-color: transparent; }

/* ---------- hero becomes the dark feature panel from the reference ---------- */
.bg-hero-gradient { color: #fff; }
.bg-hero-gradient h1 { color: #fff; }
.mm-herofacts p { color: rgba(255,255,255,.94); }
.mm-herofacts span { color: var(--neon); }

/* ---------- accents on the light surface ---------- */
.mm-pill { background: color-mix(in oklab, var(--skyb) 16%, #fff); color: var(--royal); }
.mm-icon { background: color-mix(in oklab, var(--skyb) 14%, #fff); color: var(--royal); }
.mm-ok   { background: color-mix(in oklab, var(--skyb) 12%, #fff); color: var(--royal); }
.mm-btn  { box-shadow: 0 1px 2px rgba(4,4,74,.10), 0 10px 24px -12px var(--skyb); }
.mm-navlink.is-active { border-bottom-color: var(--skyb); }

/* footer wordmark glows in neon against the royal panel */
footer .font-display-wide { color: var(--neon); }

/* white chips/pills sitting on the dark hero keep dark text */
.bg-hero-gradient .bg-card,
.bg-hero-gradient .bg-card * { color: var(--foreground); }
.bg-hero-gradient .text-foreground { color: var(--foreground); }

/* the static pages' hero uses --gradient-hero too, so its type must go light */
.mm-hero { color: #fff; }
.mm-hero .mm-h1 { color: #fff; }
.mm-hero .mm-lead { color: rgba(255,255,255,.88); }
.mm-hero .mm-eyebrow { background: rgba(255,255,255,.14); color: #fff;
  border: 1px solid rgba(255,255,255,.26); box-shadow: none; backdrop-filter: blur(6px); }

/* =====================================================================
   Soft medical theme — replaces the navy/neon shell.
   Calm sky-blue gradients, white chrome, lighter display type.
   ===================================================================== */
:root { --brand: oklch(52.5% .125 253); --brand-soft: oklch(63.8% .124 252);
        --wash: oklch(93.3% .026 248); }

/* ---- header returns to white chrome, just softer ---- */
header {
  background: #fff; color: var(--foreground);
  border-bottom: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
}
header .mm-logo-main { color: var(--foreground); }
header .mm-logo-sub  { color: var(--brand-soft); opacity: 1; }
header .mm-navlink   { color: var(--foreground); border-bottom-color: transparent; }
header .mm-navlink:hover,
header .mm-navlink.is-active { color: var(--brand); border-bottom-color: var(--brand); }
header .mm-iconbtn {
  background: #fff; border-color: var(--border); color: var(--foreground); backdrop-filter: none;
}
header .mm-iconbtn:hover { background: var(--secondary); border-color: var(--brand-soft); }
header .mm-badge { background: var(--brand); color: #fff; }
header button[aria-label="Цэс"], header button[aria-label="Menu"] { color: var(--foreground); }

/* ---- search: a calm centred pill, not a full-width strip ---- */
.mm-searchwrap { background: #fff; padding: 0 16px 16px; }
@media (min-width: 640px) { .mm-searchwrap { padding: 0 40px 20px; } }
.mm-search {
  max-width: 560px; margin: 0 auto; background: var(--muted);
  border: 1px solid color-mix(in oklab, var(--border) 80%, transparent);
  border-radius: 9999px; padding: 4px 6px 4px 20px; backdrop-filter: none;
}
.mm-search:focus-within {
  border-color: var(--brand-soft); background: #fff;
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--brand-soft) 16%, transparent);
}
.mm-search input { color: var(--foreground); }
.mm-search input::placeholder { color: var(--muted-foreground); }
.mm-search button { width: 40px; height: 40px; background: var(--brand); color: #fff;
  box-shadow: 0 6px 16px -10px var(--brand); }
.mm-search button:hover { background: var(--brand-soft); color: #fff; }
.mm-results { max-width: 560px; }
.mm-results-empty { color: var(--muted-foreground); }
.mm-result { background: #fff; border-color: color-mix(in oklab, var(--border) 70%, transparent); }

/* ---- hero: light wash, softer display type, dark calm headline ---- */
.bg-hero-gradient, .bg-hero-gradient h1 { color: var(--foreground); }
.bg-hero-gradient h1, .mm-h1 {
  font-weight: 700; font-stretch: 100%; letter-spacing: -0.015em; line-height: .98;
}
.mm-herofacts p { color: var(--foreground); }
.mm-herofacts span { color: var(--brand); }

/* static-page heroes go back to dark type on the light wash */
.mm-hero { color: var(--foreground); }
.mm-hero .mm-h1 { color: var(--foreground); }
.mm-hero .mm-lead { color: var(--muted-foreground); }
.mm-hero .mm-eyebrow { background: #fff; color: var(--brand); border: 0;
  box-shadow: var(--shadow-card); backdrop-filter: none; }

/* ---- accents calm down ---- */
.mm-pill { background: color-mix(in oklab, var(--accent) 38%, #fff); color: var(--brand); }
.mm-icon { background: color-mix(in oklab, var(--accent) 34%, #fff); color: var(--brand); }
.mm-ok   { background: color-mix(in oklab, var(--accent) 26%, #fff); color: var(--foreground); }
.mm-btn  { box-shadow: 0 1px 2px rgba(34,54,79,.08), 0 10px 22px -14px var(--brand); }
footer .font-display-wide { color: var(--wash); }

/* hero labels sit on the deep end of the wash, so they need a deeper blue than the brand tint */
.mm-herofacts span { color: oklch(40% .12 253); }
:root { --brand: oklch(46% .13 253); }

/* footer body text was 0.09 short of AA at 70% opacity */
footer .opacity-70 { opacity: .82; }
footer .opacity-60 { opacity: .78; }

/* =====================================================================
   Shoppimark palette — electric blue #0057FF, cyan #23DCE1, indigo #334597.
   Hero is a real hospital photograph under a heavy blue wash, so it reads
   as a blue panel and as a hospital at the same time.
   ===================================================================== */
:root { --brand: oklch(53.7% .257 263); --brand-soft: oklch(75.8% .125 258);
        --cyan: oklch(81.4% .134 198); --indigo: oklch(42.4% .136 270);
        --wash: oklch(97.2% .014 245); }

.bg-hero-gradient, .mm-hero {
  background-image:
    linear-gradient(135deg, rgba(0,87,255,.88) 0%, rgba(51,69,151,.90) 52%, rgba(35,220,225,.62) 100%),
    url('/assets/hero-bg.jpg');
  background-size: cover, cover;
  background-position: center, center 42%;
  background-blend-mode: multiply, normal;
  color: #fff;
}
.bg-hero-gradient h1, .mm-hero .mm-h1 { color: #fff; }
.mm-herofacts p { color: rgba(255,255,255,.95); }
.mm-herofacts span { color: var(--cyan); }
.mm-hero .mm-lead { color: rgba(255,255,255,.90); }
.mm-hero .mm-eyebrow { background: rgba(255,255,255,.16); color: #fff;
  border: 1px solid rgba(255,255,255,.30); box-shadow: none; backdrop-filter: blur(6px); }
/* white chips on the hero keep dark type */
.bg-hero-gradient .bg-card, .bg-hero-gradient .bg-card * { color: var(--foreground); }

/* cyan is the accent that makes it feel less clinical */
header .mm-logo-sub { color: var(--brand); }
header .mm-navlink:hover, header .mm-navlink.is-active { color: var(--brand); border-bottom-color: var(--cyan); }
header .mm-badge { background: var(--cyan); color: var(--indigo); }
.mm-search button { background: var(--brand); }
.mm-search button:hover { background: var(--cyan); color: var(--indigo); }
.mm-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in oklab, var(--brand) 18%, transparent); }
.mm-pill { background: color-mix(in oklab, var(--cyan) 30%, #fff); color: var(--indigo); }
.mm-icon { background: color-mix(in oklab, var(--cyan) 26%, #fff); color: var(--brand); }
.mm-ok   { background: color-mix(in oklab, var(--cyan) 22%, #fff); color: var(--indigo); }
footer .font-display-wide { color: var(--cyan); }

/* search toggle: the header is a single row until you ask for search */
header .mm-iconbtn.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }
.mm-searchwrap { animation: mm-drop .18s cubic-bezier(.2,.8,.3,1); }
@keyframes mm-drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .mm-searchwrap { animation: none; } }
/* tighter header rhythm — this is the space that was being wasted */
header { padding-top: 12px; padding-bottom: 12px; }
@media (min-width: 1024px) { header { padding-top: 14px; padding-bottom: 14px; } }

/* hero labels sat at 3.09:1 against the bright part of the photo — lighten them */
.mm-herofacts span { color: color-mix(in oklab, var(--cyan) 42%, white); }
/* 4.23 was still short at 10px — white clears it (5.24); cyan stays on the badge and wordmark */
.mm-herofacts span { color: #fff; opacity: .95; }

/* =====================================================================
   Product card rebuilt on the meruumind.com layering:
   image panel → name → variant → price → full-width action.
   Structure only (centred, sized, spaced) — colours stay this brand's.
   ===================================================================== */
.group.shadow-card { padding: 14px; text-align: center; }
@media (min-width: 640px) { .group.shadow-card { padding: 16px; } }

/* the photo gets its own soft panel; multiply quietly folds the white
   backdrops of the un-isolated photos into that panel */
.group.shadow-card > a[href^="/product"] {
  background: var(--muted); border-radius: 16px; padding: 12px; margin-bottom: 14px;
}
.group.shadow-card > a[href^="/product"] img { mix-blend-mode: multiply; }

/* name */
.group.shadow-card > p:nth-of-type(1) {
  margin-top: 0; font-size: 15px; line-height: 1.32; min-height: 2.64em;
}
@media (min-width: 640px) { .group.shadow-card > p:nth-of-type(1) { font-size: 16px; } }

/* variant / category line */
.group.shadow-card > p:nth-of-type(2) { margin-top: 5px; font-size: 12.5px; }
@media (min-width: 640px) { .group.shadow-card > p:nth-of-type(2) { font-size: 13px; } }

/* price gets the prominence, then a full-width action under it */
.group.shadow-card > div:last-of-type {
  display: flex; flex-direction: column; align-items: stretch; gap: 12px; margin-top: 12px;
}
.group.shadow-card > div:last-of-type > span {
  font-size: 20px; font-weight: 800; color: var(--brand); letter-spacing: -.01em;
}
@media (min-width: 640px) { .group.shadow-card > div:last-of-type > span { font-size: 22px; } }
.group.shadow-card > div:last-of-type > button {
  width: 100%; min-height: 44px; padding-left: 16px; padding-right: 16px;
  font-size: 13px; letter-spacing: .01em;
}
@media (min-width: 640px) { .group.shadow-card > div:last-of-type > button { font-size: 14px; } }

/* wishlist stays, just quieter */
.group.shadow-card > button[aria-label="Wishlist"] {
  background: rgba(255,255,255,.9); border-color: color-mix(in oklab, var(--border) 70%, transparent);
  backdrop-filter: blur(4px);
}

/* =====================================================================
   Hero: the nurse was dissolving mid-torso in open blue space, which is
   what made her look like she floats. She gets bigger, sits lower and
   fades far more gradually; the section ends in a soft fade to the page.
   ===================================================================== */
.bg-hero-gradient { position: relative; }

/* bigger figure, pulled up into the headline and down toward the facts */
.bg-hero-gradient > div:nth-of-type(1) {
  width: 92%; max-width: 560px; margin-top: -19vw; margin-bottom: -7vw;
}
@media (min-width: 1024px) {
  .bg-hero-gradient > div:nth-of-type(1) { width: 46%; margin-top: 0; margin-bottom: 0; }
}
/* a long, soft dissolve instead of a hard cut at 75% */
.bg-hero-gradient img[alt*="эмч"] {
  -webkit-mask-image: linear-gradient(to bottom, #000 56%, rgba(0,0,0,.55) 82%, transparent 99%);
  mask-image: linear-gradient(to bottom, #000 56%, rgba(0,0,0,.55) 82%, transparent 99%);
}

/* the blue no longer stops on a hard line — it dissolves into the page */
.bg-hero-gradient::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px;
  background: linear-gradient(to bottom, transparent, var(--background));
  pointer-events: none; z-index: 15;
}
/* keep the facts and buttons above that fade */
.bg-hero-gradient > div:nth-of-type(2) { position: relative; z-index: 20; padding-bottom: 72px; }

/* ---- important type gets more presence ---- */
.bg-hero-gradient h1 { font-size: 15vw; }
@media (min-width: 1024px) { .bg-hero-gradient h1 { font-size: 134px; } }
.mm-herofacts p { font-size: 16px; }
.font-display-cond { font-size: clamp(30px, 8.2vw, 46px); }
@media (min-width: 640px) { .font-display-cond { font-size: clamp(34px, 4.4vw, 52px); } }

/* ---- product photo fills much more of its panel ---- */
.group.shadow-card > a[href^="/product"] { padding: 6px; }
.group.shadow-card > a[href^="/product"] img { height: 100%; width: 100%; }

/* =====================================================================
   Hero fixes: ground the figure, soften the frame, bigger primary CTA.
   The PNG is opaque to its very bottom edge, so the "floating" came
   entirely from the dissolve mask — she just needs to meet the edge.
   ===================================================================== */

/* rounded shoulders on the hero panel */
.bg-hero-gradient {
  border-top-left-radius: 28px; border-top-right-radius: 28px; overflow: hidden;
}
@media (min-width: 1024px) { .bg-hero-gradient { border-top-left-radius: 36px; border-top-right-radius: 36px; } }

/* desktop: she stands on the bottom edge of the panel, no dissolve */
@media (min-width: 1024px) {
  .bg-hero-gradient { display: flex; flex-direction: column; justify-content: flex-end; }
  .bg-hero-gradient > div:nth-of-type(1) {
    margin: 0 auto; padding-top: 0; width: 42%; max-width: 620px;
  }
  .bg-hero-gradient img[alt*="эмч"] {
    -webkit-mask-image: none; mask-image: none; display: block;
  }
  /* the page fade is shorter now so it softens her feet without erasing them */
  .bg-hero-gradient::after { height: 84px; }
}

/* mobile: keep only a short fade so the crop never reads as a hard slice */
@media (max-width: 1023px) {
  .bg-hero-gradient > div:nth-of-type(1) { margin-bottom: -3vw; }
  .bg-hero-gradient img[alt*="эмч"] {
    -webkit-mask-image: linear-gradient(to bottom, #000 88%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 88%, transparent 100%);
  }
}

/* primary hero action, nudged up a step */
.bg-hero-gradient .bg-card.rounded-full,
.bg-hero-gradient a > span:first-child {
  font-size: 14px; padding: 12px 20px;
}
.bg-hero-gradient a > span:last-child { height: 40px; width: 40px; }
.bg-hero-gradient a > span:last-child svg { width: 18px; height: 18px; }

/* Regression from the previous batch: forcing position:relative on the facts
   block beat the markup's own lg:absolute, so on desktop it fell back into
   flow and pushed 195px of empty panel below the figure. Scope it by width. */
@media (max-width: 1023px) {
  .bg-hero-gradient > div:nth-of-type(2) { position: relative; z-index: 20; padding-bottom: 72px; }
}
@media (min-width: 1024px) {
  .bg-hero-gradient > div:nth-of-type(2) { position: absolute; z-index: 20; padding-bottom: 0; }
}

/* ============================================================
   BATCH 11 — spacing system ("зай ав, илүү professional бай")
   Root cause of the jammed nav: `gap-7` is NOT in the prebuilt
   Tailwind build, so the nav's computed gap was `normal` → 0px.
   Everything else here is one shared gutter/rhythm scale so that
   the header, every section and the hero align on the same line.
   ============================================================ */

:root { --mm-gutter: 16px; --mm-rhythm: 48px; }
@media (min-width: 640px)  { :root { --mm-gutter: 32px; --mm-rhythm: 64px;  } }
@media (min-width: 1024px) { :root { --mm-gutter: 48px; --mm-rhythm: 88px;  } }
@media (min-width: 1440px) { :root { --mm-gutter: 64px; --mm-rhythm: 104px; } }

/* the missing utility — this alone un-jams the desktop nav */
.gap-7 { gap: 1.75rem; }

/* one gutter for every page-level container, so nothing touches the
   viewport edge and all sections share a single left alignment */
@media (min-width: 640px) {
  .sm\:px-8, .sm\:px-10 { padding-left: var(--mm-gutter); padding-right: var(--mm-gutter); }
}
@media (min-width: 1024px) {
  .lg\:px-10 { padding-left: var(--mm-gutter); padding-right: var(--mm-gutter); }
}
.mm-main { padding-left: var(--mm-gutter); padding-right: var(--mm-gutter); }
@media (min-width: 640px) { .mm-main { padding: 0 var(--mm-gutter) 8px; } }

/* vertical rhythm: sections breathe instead of stacking */
@media (min-width: 1024px) {
  .lg\:pt-16 { padding-top: var(--mm-rhythm); }
  .lg\:pt-20 { padding-top: calc(var(--mm-rhythm) + 16px); }
}
.mm-section { margin-top: var(--mm-rhythm); }

/* header: real air between logo · nav · actions, same height as before */
@media (min-width: 1024px) {
  header.bg-card { gap: 28px; }
  header nav { gap: 26px; }
}
@media (min-width: 1280px) {
  header.bg-card { gap: 40px; }
  header nav { gap: 34px; }
}
.mm-navlink { padding: 8px 2px; }

/* hero becomes an inset panel, so the rounded shoulders actually read
   as corners instead of being clipped flat against the window edge */
@media (min-width: 640px) {
  .bg-hero-gradient { margin-left: 16px; margin-right: 16px; border-radius: 24px; }
}
@media (min-width: 1024px) {
  .bg-hero-gradient {
    margin-left: var(--mm-gutter); margin-right: var(--mm-gutter);
    border-radius: 32px;
  }
}

/* card rails and grids: a 20px gutter reads as deliberate, 12px reads as cramped */
@media (min-width: 1024px) {
  .no-scrollbar { gap: 20px; }
  section.grid.gap-3 { gap: 20px; }
}
@media (min-width: 1024px) { .group.shadow-card { padding: 16px; } }

/* two sections carry only sm:pt-16, so they fell out of the desktop rhythm */
@media (min-width: 1024px) { .sm\:pt-16 { padding-top: var(--mm-rhythm); } }

/* The display headline is sized in fixed px (lg:text-[134px] / sm:text-[150px]),
   so insetting the hero panel clipped it against the new edge — and it was
   already overflowing at 1024 and 768 before that. Scale it to the panel's
   own width so the words always sit inside with margin to spare. */
@media (min-width: 640px) and (max-width: 1023px) {
  .bg-hero-gradient h1 { font-size: min(150px, calc((100vw - 32px) * 0.166)); }
}
@media (min-width: 1024px) {
  .bg-hero-gradient h1 { font-size: min(134px, calc(min(100vw - 2 * var(--mm-gutter), 1312px) * 0.089)); }
}

/* The product/checkout header sat in a centred max-w-6xl box while the home
   header is edge-aligned, so the logo jumped 64px → 168px between pages.
   One bar, one position, everywhere. (Page content keeps its own measure.) */
header.border-b > .mx-auto.max-w-6xl {
  max-width: none;
  padding-left: var(--mm-gutter);
  padding-right: var(--mm-gutter);
}

/* Horizontal rails use scroll-snap, and a snap-start item aligns to the
   scrollport edge — so the browser auto-scrolled each rail by exactly its
   own padding and the first card sat flush against the window edge.
   scroll-padding puts the snap line back on the page gutter. */
.no-scrollbar { scroll-padding-left: 16px; }
@media (min-width: 640px) {
  .no-scrollbar.sm\:px-8 { scroll-padding-left: var(--mm-gutter); }
}

/* a small gap under the header so the inset hero reads as its own panel */
@media (min-width: 640px)  { .bg-hero-gradient { margin-top: 10px; } }
@media (min-width: 1024px) { .bg-hero-gradient { margin-top: 14px; } }

/* ---- one content measure for the whole site ----
   Home sections were edge-aligned on the gutter (content at 64px), the
   generated pages sat in a 1180px centred wrap (130px) and product/checkout
   in a max-w-6xl box (168px) — three different left edges while navigating.
   This gives every page-level container the same rule: the gutter, widening
   to a centred 1312px measure once the window is wider than that. */
@media (min-width: 1024px) {
  .lg\:px-10,
  .sm\:px-10,
  .mx-auto.max-w-6xl,
  .mm-main {
    padding-left:  max(var(--mm-gutter), calc((100% - 1312px) / 2));
    padding-right: max(var(--mm-gutter), calc((100% - 1312px) / 2));
  }
  .mm-wrap { max-width: none; }
  .mx-auto.max-w-6xl { max-width: none; }
  .bg-hero-gradient {
    margin-left:  max(var(--mm-gutter), calc((100% - 1312px) / 2));
    margin-right: max(var(--mm-gutter), calc((100% - 1312px) / 2));
  }
}

/* ============================================================
   BATCH 12 — A. calmer colour
   The electric #0B57FF was carrying every large filled area
   (footer, CTA panels, every button) and read as shouting.
   Large areas move to a deep navy; the blue stays for small
   accents only, and the neon cyan wordmark becomes a watermark.
   ============================================================ */
:root {
  --primary: oklch(33% .10 266);      /* #1D3168 — 12.4:1 on white */
  --ring:    oklch(33% .10 266);
  --brand:      oklch(46% .15 260);   /* #1F53AA — accents, links */
  --brand-soft: oklch(60% .13 258);   /* #4C80CD */
  --accent:  oklch(80% .085 205);     /* #77CED8 — softer cyan */
  --gradient-mint: linear-gradient(120deg, oklch(80% .085 205), oklch(70% .095 250));
  --gradient-sky:  linear-gradient(120deg, oklch(46% .15 260), oklch(80% .085 205));
}

/* the giant footer wordmark: a watermark, not a neon sign */
footer .font-display-wide {
  color: rgba(255, 255, 255, .17);
}

/* ============================================================
   BATCH 12 — B. product card relayered to the reference
   Left-aligned stack: image panel → name → category → price
   (+ struck old price) → full-width navy pill action.
   ============================================================ */
.group.shadow-card {
  text-align: left;
  padding: 16px;
  border-radius: 22px;
}
@media (min-width: 640px) { .group.shadow-card { padding: 18px; border-radius: 24px; } }

.group.shadow-card > a[href^="/product"] {
  background: #fff;
  border-radius: 16px;
  padding: 10px;
  margin-bottom: 16px;
}
.group.shadow-card > a[href^="/product"] img { height: 100%; width: 100%; }

/* name */
.group.shadow-card > p:nth-of-type(1) {
  margin-top: 0; font-size: 17px; font-weight: 700; line-height: 1.26;
  min-height: 2.52em; color: var(--foreground); letter-spacing: -.01em;
}
@media (min-width: 640px) { .group.shadow-card > p:nth-of-type(1) { font-size: 18px; } }

/* category */
.group.shadow-card > p:nth-of-type(2) {
  margin-top: 6px; font-size: 13.5px; font-weight: 400; color: var(--muted-foreground);
}
@media (min-width: 640px) { .group.shadow-card > p:nth-of-type(2) { font-size: 14.5px; } }

/* price row + action, both variants */
.group.shadow-card > div:last-of-type {
  display: flex; flex-direction: column; align-items: stretch; gap: 12px; margin-top: 14px;
}
.group.shadow-card > div:last-of-type > span,
.group.shadow-card > p:nth-of-type(3) {
  font-size: 20px; font-weight: 800; color: var(--primary);
  letter-spacing: -.015em; text-align: left; margin-top: 14px;
}
.group.shadow-card > div:last-of-type > span { margin-top: 0; }
@media (min-width: 640px) {
  .group.shadow-card > div:last-of-type > span,
  .group.shadow-card > p:nth-of-type(3) { font-size: 21px; }
}
.group.shadow-card s {
  font-size: 14px; font-weight: 500; color: var(--muted-foreground);
  text-decoration-thickness: 1.5px; margin-left: 8px;
}

/* full-width navy pill action */
.group.shadow-card > div:last-of-type > button,
.group.shadow-card > button:not([aria-label="Wishlist"]) {
  width: 100%; min-height: 46px; margin-top: 12px;
  padding-left: 18px; padding-right: 18px;
  border-radius: 9999px;
  background: var(--primary); color: #fff;
  font-size: 14.5px; font-weight: 600; letter-spacing: .005em;
  box-shadow: none;
}
.group.shadow-card > div:last-of-type > button { margin-top: 0; }
@media (min-width: 640px) {
  .group.shadow-card > div:last-of-type > button,
  .group.shadow-card > button:not([aria-label="Wishlist"]) { font-size: 15px; min-height: 48px; }
}
.group.shadow-card > div:last-of-type > button:hover,
.group.shadow-card > button:not([aria-label="Wishlist"]):hover {
  background: color-mix(in oklab, var(--primary) 86%, #fff);
}

/* ============================================================
   BATCH 12 — C. hero photo runs edge to edge again, but the
   type and the buttons keep the page's own inset so they stay
   on the same left edge as every section below.
   ============================================================ */
.bg-hero-gradient {
  border-radius: 0;
  margin-top: 0;
}
@media (min-width: 640px) {
  .bg-hero-gradient { margin-left: 0; margin-right: 0; margin-top: 0; border-radius: 0; }
}
@media (min-width: 1024px) {
  .bg-hero-gradient { margin-left: 0; margin-right: 0; border-radius: 0; }
  /* facts + CTA line up with the page gutter, not the old 40px panel inset */
  .bg-hero-gradient > div:nth-of-type(2) {
    left:  max(var(--mm-gutter), calc((100% - 1312px) / 2));
    right: max(var(--mm-gutter), calc((100% - 1312px) / 2));
  }
}
/* below lg the facts block is in flow, so it needs real side padding */
@media (max-width: 1023px) {
  .bg-hero-gradient > div:nth-of-type(2) {
    padding-left: var(--mm-gutter); padding-right: var(--mm-gutter);
  }
}

/* ============================================================
   BATCH 12 — D. gradient page backgrounds
   The four references rebuilt as CSS so they stay crisp at any
   size and cost nothing to download. Painted on a fixed layer
   behind everything, so they read as one calm wash per page
   instead of stretching over a 5000px-tall document.
   ============================================================ */
html { background: #fff; }
body { background: transparent; }
.overflow-hidden.bg-background,
.min-h-screen { background: transparent; }

body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  /* default: soft vertical wash */
  background:
    linear-gradient(174deg, #B2D5F5 0%, #D5E9FB 26%, #EFF7FE 54%, #FBFDFF 100%);
}

/* G4 — blue shoulders, clean middle (home: the busiest page) */
html[data-page="home"] body::before {
  background:
    radial-gradient(92% 72% at 97% 0%,  rgba(108,168,232,.52) 0%, rgba(108,168,232,0) 72%),
    radial-gradient(94% 74% at 2% 100%, rgba(108,168,232,.46) 0%, rgba(108,168,232,0) 72%),
    linear-gradient(180deg, #F1F7FE 0%, #FAFCFF 100%);
}

/* G2 — glow weighted to the bottom right */
html[data-page="b2b"] body::before,
html[data-page="contact"] body::before {
  background:
    radial-gradient(135% 100% at 94% 86%, rgba(88,158,238,.40) 0%, rgba(88,158,238,0) 70%),
    linear-gradient(180deg, #DFEDFC 0%, #EEF6FE 55%, #F8FBFF 100%);
}

/* G3 — centred glow */
html[data-page="specialty"] body::before,
html[data-page="services"] body::before {
  background:
    radial-gradient(86% 62% at 50% 44%, rgba(104,176,243,.52) 0%, rgba(104,176,243,0) 76%),
    linear-gradient(180deg, #EAF3FD 0%, #F8FBFF 100%);
}

/* G1 — vertical wash (about, blog) */
html[data-page="about"] body::before,
html[data-page="blog"] body::before {
  background:
    linear-gradient(174deg, #B2D5F5 0%, #D5E9FB 26%, #EFF7FE 54%, #FBFDFF 100%);
}

/* product & checkout stay quietest — the goods carry the page */
html[data-page="product"] body::before,
html[data-page="checkout"] body::before {
  background:
    linear-gradient(180deg, #EDF5FE 0%, #F8FBFF 38%, #FFFFFF 100%);
}

/* the headline is lg:absolute lg:left-4 — with the panel inset gone that put
   it 16px from the window edge. Put it back on the page's own left edge. */
@media (min-width: 1024px) {
  .bg-hero-gradient h1 {
    left:  max(var(--mm-gutter), calc((100% - 1312px) / 2));
    right: max(var(--mm-gutter), calc((100% - 1312px) / 2));
  }
}

/* background-level body copy needs a touch more weight once the page is
   no longer flat white — still clearly lighter than the headings */
:root { --muted-foreground: oklch(46% .09 268); }

/* ============================================================
   BATCH 13 — A. the hero turns light
   Was: white type on a saturated blue photo, with the figure
   sitting dead centre across the headline.
   Now: a muted cyan hospital field, dark navy type on the left,
   the doctor standing on the right so the words stay readable.
   Her studio backdrop is white, so multiply dissolves it into
   the field — no cut-out needed, the coat stays intact.
   ============================================================ */
.bg-hero-gradient {
  background-image:
    linear-gradient(135deg, rgba(228,244,249,.42) 0%, rgba(206,233,243,.22) 55%, rgba(233,246,251,.46) 100%),
    url('/assets/hero-bg-pale.jpg');
  background-blend-mode: normal, normal;
  background-size: cover;
  background-position: center;
  color: var(--primary);
}
.bg-hero-gradient h1 { color: var(--primary); }

/* the figure blends instead of being masked */
.bg-hero-gradient img[alt*="эмч"] {
  mix-blend-mode: multiply;
  -webkit-mask-image: none; mask-image: none;
  display: block; width: 100%; height: auto; aspect-ratio: auto;
}

/* CTA becomes a filled navy pill — a white one disappears on a light field */
.bg-hero-gradient a > span:first-child {
  background: var(--primary); color: #fff;
}
.bg-hero-gradient a > span:last-child {
  background: var(--primary); color: #fff;
}
.bg-hero-gradient a > span:last-child svg { stroke: #fff; }

@media (min-width: 1024px) {
  .bg-hero-gradient { display: block; min-height: 580px; }

  /* doctor: right column, standing on the bottom edge */
  .bg-hero-gradient > div:nth-of-type(1) {
    position: absolute; bottom: 0; margin: 0; padding: 0;
    right: max(var(--mm-gutter), calc((100% - 1312px) / 2));
    width: 36%; max-width: 440px;
  }

  /* headline: left column, two lines, never under the figure */
  .bg-hero-gradient h1 {
    right: auto; top: 76px; width: 54%; max-width: 720px;
    text-align: left; white-space: normal;
    font-size: min(104px, calc(min(100vw - 2 * var(--mm-gutter), 1312px) * 0.086));
  }

  /* facts + CTA stack under the headline on the same left edge */
  .bg-hero-gradient > div:nth-of-type(2) {
    right: auto; bottom: 68px; width: 54%; max-width: 720px;
    flex-direction: column; align-items: flex-start; gap: 22px;
    text-align: left; padding: 0;
  }
}

/* below lg: light field, figure centred, type dark */
@media (max-width: 1023px) {
  .bg-hero-gradient > div:nth-of-type(1) { margin-bottom: 0; }
  .bg-hero-gradient::after { height: 56px; }
}

/* The coat and her studio backdrop sit within ~8 levels of each other, so no
   cut-out survives and multiply erased the coat. Her backdrop is pure white,
   so the field itself fades to white on the right and she merges into it. */
.bg-hero-gradient {
  background-image:
    linear-gradient(97deg, rgba(255,255,255,0) 26%, rgba(255,255,255,.55) 44%, #fff 62%),
    linear-gradient(135deg, rgba(222,241,248,.60) 0%, rgba(201,231,242,.40) 50%, rgba(233,246,251,.30) 100%),
    url('/assets/hero-bg-pale.jpg');
  background-blend-mode: normal, normal, normal;
}
.bg-hero-gradient img[alt*="эмч"] { mix-blend-mode: normal; }

/* the hero facts were hard-coded white for the old dark panel */
.bg-hero-gradient .mm-herofacts p { color: var(--primary); }
.bg-hero-gradient .mm-herofacts span { color: var(--brand); opacity: 1; }

@media (max-width: 1023px) {
  /* on phones she is centred, so the white has to come from below instead */
  .bg-hero-gradient {
    background-image:
      linear-gradient(180deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.60) 58%, #fff 82%),
      linear-gradient(135deg, rgba(222,241,248,.60) 0%, rgba(201,231,242,.40) 60%, rgba(233,246,251,.30) 100%),
      url('/assets/hero-bg-pale.jpg');
  }
}

/* ============================================================
   BATCH 13 — B. card typography + bigger photo
   Name a step heavier, category genuinely lighter (Roboto Flex
   carries weights below Manrope's 400), the two pulled together
   into one block, and the space that frees given to the photo.
   ============================================================ */
.group.shadow-card > p:nth-of-type(1) {
  font-weight: 800;
  line-height: 1.22;
  min-height: 2.44em;
}
.group.shadow-card > p:nth-of-type(2) {
  margin-top: 1px;
  font-family: "Roboto Flex", "Manrope", system-ui, sans-serif;
  font-weight: 300;
  font-stretch: 100%;
  letter-spacing: .005em;
}

/* the photo takes the reclaimed height */
.group.shadow-card > a[href^="/product"] {
  aspect-ratio: 1 / 1.14;
  padding: 4px;
  margin-bottom: 12px;
}
.group.shadow-card > a[href^="/product"] img {
  height: 100%; width: 100%; object-fit: contain;
}

/* ============================================================
   BATCH 13 — C. product & checkout readability
   The whole info column sits on the page wash with no surface of
   its own, and some labels were 9px. Those pages get an almost
   white field, and the smallest type a readable size.
   ============================================================ */
html[data-page="product"] body::before,
html[data-page="checkout"] body::before {
  background:
    linear-gradient(180deg, #EEF5FD 0%, #FBFDFF 26%, #FFFFFF 60%);
}
html[data-page="product"] .text-\[9px\],
html[data-page="checkout"] .text-\[9px\] { font-size: 11px; line-height: 1.45; }
html[data-page="product"] .text-\[10px\],
html[data-page="checkout"] .text-\[10px\] { font-size: 11.5px; }
html[data-page="product"] .text-\[11px\],
html[data-page="checkout"] .text-\[11px\] { font-size: 12.5px; }

/* the description and spec copy carry the page — give them body weight */
html[data-page="product"] p.text-sm,
html[data-page="product"] .leading-relaxed { color: var(--foreground); }

/* ============================================================
   BATCH 13 — D. motion
   Entrance reveals and interaction feedback. Opacity + a 14px
   translate only, so the layout is identical with motion off,
   and the whole thing is skipped for prefers-reduced-motion.
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  [data-mm-reveal] {
    opacity: 0;
    transform: translateY(14px);
    will-change: opacity, transform;
  }
  [data-mm-reveal="in"] {
    opacity: 1;
    transform: none;
    transition: opacity .6s cubic-bezier(.22,.61,.36,1),
                transform .6s cubic-bezier(.22,.61,.36,1);
    will-change: auto;
  }

  /* hero comes in on load, left column then the figure */
  .bg-hero-gradient h1,
  .bg-hero-gradient > div:nth-of-type(2),
  .bg-hero-gradient > div:nth-of-type(1) {
    animation: mm-rise .8s cubic-bezier(.22,.61,.36,1) both;
  }
  .bg-hero-gradient h1 { animation-delay: .05s; }
  .bg-hero-gradient > div:nth-of-type(2) { animation-delay: .18s; }
  .bg-hero-gradient > div:nth-of-type(1) { animation-delay: .10s; }
  @keyframes mm-rise {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: none; }
  }

  /* header settles in */
  header.bg-card, header.border-b {
    animation: mm-drop .55s cubic-bezier(.22,.61,.36,1) both;
  }
  @keyframes mm-drop {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: none; }
  }

  /* interaction feedback */
  .group.shadow-card {
    transition: transform .28s cubic-bezier(.22,.61,.36,1),
                box-shadow .28s cubic-bezier(.22,.61,.36,1);
  }
  .group.shadow-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 2px 4px rgba(29,49,104,.06), 0 22px 46px -24px rgba(29,49,104,.42);
  }
  .group.shadow-card > div:last-of-type > button,
  .group.shadow-card > button:not([aria-label="Wishlist"]),
  .mm-btn, .bg-hero-gradient a > span {
    transition: transform .16s ease, background-color .2s ease, box-shadow .2s ease;
  }
  .group.shadow-card > div:last-of-type > button:active,
  .group.shadow-card > button:not([aria-label="Wishlist"]):active,
  .mm-btn:active { transform: scale(.97); }
  .mm-navlink { transition: color .2s ease, border-color .2s ease; }
  .mm-iconbtn { transition: transform .18s ease, background-color .2s ease, border-color .2s ease; }
  .mm-iconbtn:hover { transform: translateY(-2px); }
  .mm-card-link { transition: transform .28s cubic-bezier(.22,.61,.36,1), box-shadow .28s ease; }
}

/* the hero animation must never hide the facts block at lg, where it is
   absolutely positioned — keyframes `both` would otherwise strand it */
@media (prefers-reduced-motion: no-preference) and (min-width: 1024px) {
  .bg-hero-gradient > div:nth-of-type(1),
  .bg-hero-gradient > div:nth-of-type(2) { animation-fill-mode: backwards; }
}

/* ============================================================
   BATCH 14 — A. hero back to the original scale
   Headline full-bleed and centred again, the doctor large and
   centred so her head lands in the gap between the two words.
   Her backdrop is pure white, so the field keeps a white band
   down the middle and the muted cyan sits out at the shoulders.
   ============================================================ */
.bg-hero-gradient {
  background-image:
    linear-gradient(90deg,
      rgba(255,255,255,0) 0%, rgba(255,255,255,.25) 16%,
      rgba(255,255,255,.96) 30%, #fff 50%, rgba(255,255,255,.96) 70%,
      rgba(255,255,255,.25) 84%, rgba(255,255,255,0) 100%),
    linear-gradient(135deg, rgba(214,238,247,.72) 0%, rgba(196,229,241,.52) 50%, rgba(226,243,250,.42) 100%),
    url('/assets/hero-bg-pale.jpg');
  background-blend-mode: normal, normal, normal;
}

@media (min-width: 1024px) {
  .bg-hero-gradient { min-height: 620px; }

  /* type spans the full window again */
  .bg-hero-gradient h1 {
    left: 0; right: 0; top: 52px;
    width: auto; max-width: none;
    text-align: center; white-space: nowrap;
    font-size: min(152px, calc(100vw / 10.4));
  }

  /* she is centred, big, standing on the bottom edge */
  .bg-hero-gradient > div:nth-of-type(1) {
    left: 50%; right: auto; transform: translateX(-50%);
    bottom: 0; width: 33%; max-width: 460px;
  }

  /* facts left, CTA right, along the bottom */
  .bg-hero-gradient > div:nth-of-type(2) {
    left:  max(var(--mm-gutter), calc((100% - 1312px) / 2));
    right: max(var(--mm-gutter), calc((100% - 1312px) / 2));
    bottom: 54px; width: auto; max-width: none;
    flex-direction: row; align-items: flex-end; justify-content: space-between;
    gap: 24px;
  }
}

/* phones: she is centred too, so the white comes up from the bottom */
@media (max-width: 1023px) {
  .bg-hero-gradient {
    background-image:
      linear-gradient(180deg, rgba(255,255,255,0) 18%, rgba(255,255,255,.72) 46%, #fff 70%),
      linear-gradient(135deg, rgba(214,238,247,.72) 0%, rgba(196,229,241,.52) 55%, rgba(226,243,250,.42) 100%),
      url('/assets/hero-bg-pale.jpg');
  }
}

/* She is a photo on a white ground, not a cut-out: her bounding box would
   blank out the letters behind it. So she is cropped to her own silhouette
   and sized to stand just under the headline, with only her hair crossing
   it — the layered look without losing a single character. */
@media (min-width: 1024px) {
  .bg-hero-gradient { min-height: 720px; }
  .bg-hero-gradient > div:nth-of-type(1) {
    width: 34%; max-width: 450px;
  }
  .bg-hero-gradient > div:nth-of-type(2) { bottom: 44px; }
}

/* ============================================================
   BATCH 14 — B. nav in a capsule
   ============================================================ */
@media (min-width: 1024px) {
  header.bg-card > nav {
    background: #fff;
    border: 1px solid color-mix(in oklab, var(--border) 85%, transparent);
    border-radius: 9999px;
    padding: 5px 8px;
    gap: 2px;
    box-shadow: 0 1px 2px rgba(29,49,104,.04), 0 10px 26px -20px rgba(29,49,104,.35);
  }
  header.bg-card > nav .mm-navlink {
    padding: 10px 16px;
    border-radius: 9999px;
    border-bottom: 0 !important;
    white-space: nowrap;
  }
  header.bg-card > nav .mm-navlink:hover {
    background: color-mix(in oklab, var(--primary) 7%, #fff);
  }
  header.bg-card > nav .mm-navlink.is-active {
    background: var(--primary);
    color: #fff;
    border-bottom: 0 !important;
    box-shadow: 0 1px 2px rgba(29,49,104,.18), 0 10px 20px -12px rgba(29,49,104,.55);
  }
  /* the little leading glyph on the active pill */
  header.bg-card > nav .mm-navlink.is-active::before {
    content: "";
    display: inline-block;
    width: 15px; height: 15px;
    margin-right: 7px;
    vertical-align: -2px;
    background-color: #fff;
    -webkit-mask: var(--mm-home-icon) center / contain no-repeat;
    mask: var(--mm-home-icon) center / contain no-repeat;
  }
}
:root {
  --mm-home-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5 12 3l9 7.5'/%3E%3Cpath d='M5 9.5V21h14V9.5'/%3E%3C/svg%3E");
}

/* ============================================================
   BATCH 14 — C. iOS-leaning polish
   Translucent sticky chrome, one radius scale, layered shadows
   and spring easing on anything you press.
   ============================================================ */
html { scroll-behavior: smooth; }

header.bg-card, header.border-b {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.74);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(29,49,104,.07);
}
@supports not (backdrop-filter: blur(1px)) {
  header.bg-card, header.border-b { background: #fff; }
}

/* one shadow language: tight contact shadow + wide soft ambient */
.shadow-card, .mm-card, .mm-form, .mm-tablewrap {
  box-shadow: 0 1px 2px rgba(29,49,104,.05), 0 18px 40px -26px rgba(29,49,104,.38);
}

/* consistent radii */
.mm-card, .mm-form, .mm-tablewrap { border-radius: 22px; }
.mm-icon { border-radius: 14px; }

@media (prefers-reduced-motion: no-preference) {
  .mm-iconbtn, .mm-btn,
  .group.shadow-card > div:last-of-type > button,
  .group.shadow-card > button:not([aria-label="Wishlist"]),
  header.bg-card > nav .mm-navlink {
    transition: transform .22s cubic-bezier(.22,1,.36,1),
                background-color .2s ease, color .2s ease, box-shadow .22s ease;
  }
  .mm-iconbtn:active, .mm-btn:active { transform: scale(.94); }
}

/* iOS-style focus ring, only for keyboard users */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--mint-deep);
  outline-offset: 2px;
}

/* momentum scrolling on the card rails */
.no-scrollbar { -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }

/* Phones: she is 78% wide and pulled up under the headline by -mt-[15vw],
   so her white ground covered the second line. She drops below the type,
   and the field goes white from just under the headline down so the ground
   has nothing to show against. */
@media (max-width: 1023px) {
  .bg-hero-gradient {
    background-image:
      linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.35) 13%, #fff 21%, #fff 100%),
      linear-gradient(135deg, rgba(206,234,246,.95) 0%, rgba(188,225,240,.80) 60%, rgba(226,243,250,.55) 100%),
      url('/assets/hero-bg-pale.jpg');
  }
  .bg-hero-gradient > div:nth-of-type(1) {
    margin-top: 8px !important;
    margin-bottom: 0;
    width: 68%;
    max-width: 320px;
  }
  .bg-hero-gradient h1 { padding-left: 16px; padding-right: 16px; }
  .bg-hero-gradient > div:nth-of-type(2) { padding-bottom: 40px; }
  .bg-hero-gradient::after { height: 0; }
}

/* ============================================================
   BATCH 15 — the banner mint becomes the third brand colour
   Navy carries weight, blue carries links, and this teal is the
   one that shows up small: marks, chips, hovers, selections.
   Three steps because the banner tone is only 1.9:1 on white —
   decorative at full strength, deeper where it has to be read.
   ============================================================ */
:root {
  --mint:      oklch(78% .095 203);   /* #64C9D2 — fills, chips */
  --mint-deep: oklch(62% .115 206);   /* #0099A8 — icons, marks */
  --mint-ink:  oklch(50% .10 208);    /* #007281 — 5.6:1, safe for text */
}

::selection { background: color-mix(in oklab, var(--mint) 45%, #fff); color: var(--primary); }

/* a short mark above every section heading */
h2.font-display-cond::before,
.mm-h2::before {
  content: "";
  display: block;
  width: 34px; height: 4px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--mint-deep), var(--mint));
}
h2.font-display-cond.\!text-center::before,
.mm-sectionhead h2.font-display-cond::before { margin-left: 0; }
/* centred headings get a centred mark */
h2.font-display-cond[class*="text-center"]::before { margin-left: auto; margin-right: auto; }

/* category tiles: the plus goes teal */
.group.shadow-card ~ * svg.lucide-plus,
section :is(div, button, span):has(> svg.lucide-plus) {
  color: var(--mint-ink);
}
section :is(div, button, span):has(> svg.lucide-plus) {
  background: color-mix(in oklab, var(--mint) 20%, #fff);
  transition: background-color .2s ease, transform .2s cubic-bezier(.22,1,.36,1);
}
section a:hover :is(div, button, span):has(> svg.lucide-plus),
section :is(div, button, span):has(> svg.lucide-plus):hover {
  background: color-mix(in oklab, var(--mint) 38%, #fff);
  transform: scale(1.06);
}

/* wishlist heart warms up on hover */
.group.shadow-card > button[aria-label="Wishlist"]:hover {
  border-color: var(--mint);
  background: color-mix(in oklab, var(--mint) 16%, #fff);
}
.group.shadow-card > button[aria-label="Wishlist"]:hover svg { stroke: var(--mint-ink); }

/* "see all" links underline in teal */
a:has(> svg.lucide-arrow-right):hover,
a.underline:hover { text-decoration-color: var(--mint-deep); }

/* product page trust row + quantity stepper */
html[data-page="product"] svg.lucide-truck,
html[data-page="product"] svg.lucide-shield-check,
html[data-page="product"] svg.lucide-rotate-ccw { color: var(--mint-ink); }
html[data-page="product"] button:has(> svg.lucide-plus):hover,
html[data-page="product"] button:has(> svg.lucide-minus):hover {
  background: color-mix(in oklab, var(--mint) 26%, #fff);
  color: var(--mint-ink);
}

/* breadcrumb separators, form focus, footer socials */
.mm-crumb span, nav[aria-label="breadcrumb"] span { color: var(--mint-deep); }
input:focus-visible, select:focus-visible, textarea:focus-visible {
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--mint) 34%, transparent);
}
footer .rounded-full:hover {
  border-color: var(--mint);
  color: var(--mint);
}

/* the rails get a teal thumb instead of a grey one */
.no-scrollbar { scrollbar-color: color-mix(in oklab, var(--mint) 70%, #fff) transparent; }

/* card image panel picks up the faintest teal as you hover the card */
.group.shadow-card > a[href^="/product"] {
  transition: background-color .3s ease;
}
.group.shadow-card:hover > a[href^="/product"] {
  background: color-mix(in oklab, var(--mint) 7%, #fff);
}

/* ============================================================
   UNSLOP PASS — polish, not a redesign
   Direction: careful, reassuring, exact. A bright clinic corridor:
   white coats, navy scrubs, window light. The doctor and the
   product photos carry the colour; the chrome stays quiet.
   Signature: the short mint tick that opens every section.
   ============================================================ */

/* 1 · spacing — back on the 4px grid where it had drifted */
@media (min-width: 1024px) {
  header.bg-card > nav { padding: 4px; gap: 4px; }
}

/* 2 · colour — the tick is one solid mint, not a gradient */
h2.font-display-cond::before,
.mm-h2::before {
  width: 32px; height: 4px; margin-bottom: 12px;
  background: var(--mint-deep);
}
/* navy-on-blue banner labels were 2:1; white reads on the blue end */
.bg-sky-gradient > p.uppercase { color: #fff; }
/* the teal plus belongs to the round category buttons only — the FAQ
   rows were picking up a highlighter-pen band across the question */
section span.flex:has(> svg.lucide-plus) {
  background: none !important;
  transform: none !important;
}
section span.flex > svg.lucide-plus { color: var(--muted-foreground); }

/* 3 · icons — a calendar on "Бүх бүтээгдэхүүн" or "Холбоо барих"
   says nothing, so it goes; the label carries the button */
.rounded-full > svg.lucide-calendar-days { display: none; }
/* the house glyph only means something on the home link */
@media (min-width: 1024px) {
  header.bg-card > nav .mm-navlink.is-active:not([href="/"])::before { display: none; }
}

/* 5 · type — sentence case, no tracking, nothing under 11px */
.mm-navlink {
  text-transform: none; letter-spacing: 0;
  font-size: 14px; font-weight: 500;
}
header.bg-card > nav .mm-navlink.is-active { font-weight: 600; }

.mm-herofacts span {
  text-transform: none; letter-spacing: 0;
  font-size: 12px; font-weight: 500; margin-bottom: 0;
}

/* promo banners: labels were 8.5–10px extrabold caps */
p.uppercase.max-w-\[62\%\],
p.uppercase.text-\[11px\] {
  text-transform: none; letter-spacing: 0;
  font-size: 14px; font-weight: 600; line-height: 1.3;
}
@media (min-width: 640px) {
  p.uppercase.max-w-\[62\%\] { font-size: 16px; }
  p.uppercase.text-\[11px\] { font-size: 18px; }
}
span.uppercase.text-\[8px\] {
  text-transform: none; font-size: 11px; font-weight: 600; padding: 4px 12px;
}
span.text-\[7px\].bottom-3 { font-size: 11px; font-weight: 600; padding: 4px 12px; }
@media (min-width: 640px) { span.text-\[7px\].bottom-3 { font-size: 12px; padding: 8px 16px; } }
span.bg-mint.text-\[8px\] { font-size: 11px; }
@media (min-width: 640px) { span.bg-mint.text-\[8px\] { font-size: 12px; } }

/* reviews + small pills */
p.text-\[9px\] { font-size: 12px; }
span.text-\[10px\].rounded-full { font-size: 12px; }
span.text-\[10px\]:has(> span.rounded-full) { font-size: 13px; }
span.text-\[9px\].rounded-full { font-size: 12px; padding: 6px 12px; }

/* phones: the compact grid button and review copy were 9–10px */
button.text-\[9px\].bg-primary { font-size: 12px; }
p.text-\[10px\].leading-relaxed { font-size: 13px; }
@media (min-width: 640px) { p.text-\[10px\].leading-relaxed { font-size: 14px; } }

/* tables and eyebrows: sentence case at reading size */
.mm-table thead th { text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 600; }
.mm-eyebrow {
  background: none; box-shadow: none; padding: 0; border: 0; border-radius: 0;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  text-transform: none; letter-spacing: 0;
  font-size: 14px; font-weight: 500; color: inherit; opacity: .86;
}

/* prices line up digit for digit */
.group.shadow-card p, .group.shadow-card span, .mm-num, .mm-table td,
html[data-page="product"] main, html[data-page="checkout"] main { font-variant-numeric: tabular-nums; }

/* 7 · details — inputs ring flush, not floating */
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline-offset: 0; box-shadow: none;
}

/* 8 · visuals — the empty middle banner gets the product it sells */
.relative.h-36.bg-card {
  background-image: url('/assets/promo-hearing.webp');
  background-repeat: no-repeat;
  background-position: right 44px bottom 8px;
  background-size: auto 78%;
}
@media (min-width: 640px) {
  .relative.h-36.bg-card { background-position: right 72px bottom 12px; background-size: auto 80%; }
}

/* 9 · motion — one curve, small distances, one entrance */
@media (prefers-reduced-motion: no-preference) {
  [data-mm-reveal] { transform: translateY(10px); }
  [data-mm-reveal="in"] {
    transform: none;
    transition: opacity .45s cubic-bezier(.22,1,.36,1), transform .45s cubic-bezier(.22,1,.36,1);
  }
  @keyframes mm-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
  .bg-hero-gradient h1,
  .bg-hero-gradient > div:nth-of-type(1),
  .bg-hero-gradient > div:nth-of-type(2) { animation-duration: .5s; animation-timing-function: cubic-bezier(.22,1,.36,1); }
  /* the hero is the entrance; the header just is */
  header.bg-card, header.border-b { animation: none; }

  .group.shadow-card:hover { transform: translateY(-2px); }
  .group.shadow-card img.group-hover\:scale-105,
  .group:hover img.group-hover\:scale-105 { transform: none; }
  .mm-iconbtn:hover, .mm-cat-card:hover, .mm-card-link:hover { transform: none; }
  .mm-iconbtn:active, .mm-btn:active { transform: scale(.97); }
  section a:hover :is(div, button, span):has(> svg.lucide-plus),
  section :is(div, button, span):has(> svg.lucide-plus):hover { transform: none; }
}

/* ============================================================
   CATALOGUE — /products and /products/<slug> (build_products.py)
   Same card language as the home rails: white card, photo panel,
   navy name and price, one navy pill. Stock is the one new fact,
   so it gets a small mint chip; "by order" stays neutral.
   ============================================================ */
.mm-breadcrumb { font-size: 12px; padding-top: 20px; }
.mm-breadcrumb a { color: var(--mint-ink); }

.mm-cathead { margin-top: 32px; }
.mm-cathead .mm-p { max-width: 60ch; font-size: 15px; }

.mm-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.mm-chip {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px;
  border-radius: 20px; border: 1px solid rgba(29,49,104,.10); background: #fff;
  font: inherit; font-size: 14px; font-weight: 500; color: var(--primary); cursor: pointer;
  transition: background-color .16s cubic-bezier(.22,1,.36,1), color .16s cubic-bezier(.22,1,.36,1);
}
.mm-chip span { font-size: 12px; color: var(--muted-foreground); font-variant-numeric: tabular-nums; }
.mm-chip:hover { background: color-mix(in oklab, var(--primary) 6%, #fff); }
.mm-chip[aria-pressed="true"] { background: var(--primary); color: #fff; border-color: var(--primary); }
.mm-chip[aria-pressed="true"] span { color: rgba(255,255,255,.72); }

.mm-pgrid { display: grid; gap: 16px; margin-top: 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .mm-pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1100px) { .mm-pgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mm-pgrid > [hidden] { display: none; }

.mm-pcard {
  position: relative; display: flex; flex-direction: column; background: #fff; border-radius: 22px;
  padding: 12px; box-shadow: 0 1px 2px rgba(29,49,104,.05), 0 18px 40px -26px rgba(29,49,104,.38);
  transition: transform .2s cubic-bezier(.22,1,.36,1), box-shadow .2s cubic-bezier(.22,1,.36,1);
}
@media (min-width: 640px) { .mm-pcard { padding: 16px; } }
.mm-pcard:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(29,49,104,.06), 0 22px 46px -24px rgba(29,49,104,.42); }
.mm-pcard-img { display: grid; place-items: center; aspect-ratio: 1 / 1; border-radius: 14px; background: #fff;
  transition: background-color .3s ease; }
.mm-pcard:hover .mm-pcard-img { background: color-mix(in oklab, var(--mint) 7%, #fff); }
.mm-pcard-img { position: relative; overflow: hidden; }
.mm-pcard-img img { position: absolute; inset: 6%; width: 88%; height: 88%; object-fit: contain; }
.mm-pcard-body { display: flex; flex-direction: column; flex: 1; margin-top: 8px; }
.mm-pcard-body .mm-stock { align-self: flex-start; }
.mm-pcard-name { margin: 8px 0 0; font-size: 15px; font-weight: 700; line-height: 1.25; color: var(--primary); }
@media (min-width: 640px) { .mm-pcard-name { font-size: 17px; } }
.mm-pcard-name a { color: inherit; text-decoration: none; }
.mm-pcard-meta { margin: 4px 0 0; font-size: 12px; color: var(--muted-foreground);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 640px) { .mm-pcard-meta { font-size: 13px; } }
.mm-pcard-price { margin: auto 0 0; padding-top: 12px; font-size: 18px; font-weight: 700; color: var(--primary);
  font-variant-numeric: tabular-nums; }
@media (min-width: 640px) { .mm-pcard-price { font-size: 20px; } }
.mm-pcard-cta {
  display: grid; place-items: center; height: 44px; margin-top: 12px; border-radius: 22px;
  background: var(--primary); color: #fff; font-size: 14px; font-weight: 600; text-decoration: none;
  transition: background-color .16s cubic-bezier(.22,1,.36,1), transform .12s cubic-bezier(.22,1,.36,1);
}
.mm-pcard-cta:hover { background: color-mix(in oklab, var(--primary) 88%, #000); }
.mm-pcard-cta:active { transform: scale(.98); }

.mm-stock { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 12px;
  font-size: 12px; font-weight: 600; background: rgba(29,49,104,.06); color: var(--muted-foreground); }
.mm-stock::before { content: ""; width: 6px; height: 6px; border-radius: 3px; background: currentColor; opacity: .7; }
.mm-stock.is-in { background: color-mix(in oklab, var(--mint) 22%, #fff); color: var(--mint-ink); }

/* product page */
.mm-pd { display: grid; gap: 32px; margin-top: 24px; }
@media (min-width: 960px) { .mm-pd { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: start; } }
.mm-pd-main { display: grid; place-items: center; aspect-ratio: 1 / .93; background: #fff; border-radius: 22px;
  box-shadow: 0 1px 2px rgba(29,49,104,.05), 0 18px 40px -26px rgba(29,49,104,.38); }
.mm-pd-main { position: relative; overflow: hidden; }
.mm-pd-main img { position: absolute; inset: 7%; width: 86%; height: 86%; object-fit: contain; }
.mm-pd-thumbs { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.mm-pd-thumbs button { width: 72px; height: 72px; padding: 4px; border-radius: 14px; background: #fff; cursor: pointer;
  border: 1px solid rgba(29,49,104,.10); transition: border-color .16s ease; }
.mm-pd-thumbs button[aria-current="true"] { border: 2px solid var(--primary); }
.mm-pd-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.mm-pd-cat { margin: 0; font-size: 13px; font-weight: 600; color: var(--mint-ink); }
.mm-pd-title { margin: 8px 0 0; font-size: 30px; line-height: 1.12; font-weight: 700; color: var(--primary); }
@media (min-width: 640px) { .mm-pd-title { font-size: 40px; } }
.mm-pd-meta { margin: 12px 0 0; font-size: 14px; color: var(--muted-foreground); }
.mm-pd-meta b { color: var(--primary); font-weight: 600; }
.mm-pd-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
.mm-pd-price { margin: 0; font-size: 32px; font-weight: 700; color: var(--primary); font-variant-numeric: tabular-nums; }
.mm-pd-sizes { margin-top: 24px; }
.mm-pd-sizes p { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--primary); }
.mm-pd-sizes div { display: flex; flex-wrap: wrap; gap: 8px; }
.mm-pd-sizes button { min-width: 48px; height: 40px; padding: 0 12px; border-radius: 10px; background: #fff; cursor: pointer;
  border: 1px solid rgba(29,49,104,.14); font: inherit; font-size: 14px; font-weight: 600; color: var(--primary); }
.mm-pd-sizes button[aria-pressed="true"] { background: var(--primary); color: #fff; border-color: var(--primary); }
.mm-pd-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.mm-pd-actions .mm-btn { height: 48px; padding: 0 24px; font-size: 14px; font-weight: 600; }
.mm-pd-perks { list-style: none; margin: 28px 0 0; padding: 20px 0 0; border-top: 1px solid rgba(29,49,104,.08);
  display: grid; gap: 8px; }
.mm-pd-perks li { position: relative; padding-left: 24px; font-size: 14px; color: var(--primary); }
.mm-pd-perks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 14px; height: 14px; background: var(--mint-ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%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='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; }
.mm-pd-perks a { color: inherit; text-decoration-color: var(--mint-deep); }

.mm-pd-detail { display: grid; gap: 40px; }
@media (min-width: 960px) { .mm-pd-detail { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; } }
.mm-pd-detail .mm-p, .mm-pd-detail .mm-list li { font-size: 15px; color: var(--foreground); }
.mm-spec { width: 100%; margin-top: 16px; border-collapse: collapse; background: #fff; border-radius: 22px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(29,49,104,.05), 0 18px 40px -26px rgba(29,49,104,.38); font-size: 14px; }
.mm-spec th, .mm-spec td { padding: 14px 20px; text-align: left; border-bottom: 1px solid rgba(29,49,104,.07); vertical-align: top; }
.mm-spec tr:last-child th, .mm-spec tr:last-child td { border-bottom: 0; }
.mm-spec th { width: 42%; font-weight: 500; color: var(--muted-foreground); }
.mm-spec td { font-weight: 600; color: var(--primary); font-variant-numeric: tabular-nums; }

.mm-seeall { font-size: 14px; font-weight: 600; color: var(--primary); text-decoration: underline;
  text-decoration-color: var(--mint-deep); text-underline-offset: 4px; }


/* ============================================================
   BATCH 16 — 32 fixes from the phone review
   ============================================================ */

/* ---- 1 · 2 · 4  hero: one corridor behind a cut-out doctor,
   rounded top corners, and a bottom that dissolves into the page ---- */
.bg-hero-gradient {
  background: none !important;
  isolation: isolate;
  overflow: hidden;
  border-radius: 28px 28px 0 0 !important;
}
.bg-hero-gradient::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(240,248,252,.55) 0%, rgba(240,248,252,.15) 40%, rgba(240,248,252,0) 70%),
    linear-gradient(135deg, rgba(214,238,247,.55) 0%, rgba(196,229,241,.35) 55%, rgba(226,243,250,.30) 100%),
    url('/assets/hero-bg-pale.jpg') center / cover no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 62%, rgba(0,0,0,.6) 80%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 62%, rgba(0,0,0,.6) 80%, transparent 100%);
}
.bg-hero-gradient::after { display: none !important; }
@media (max-width: 1023px) {
  .bg-hero-gradient { border-radius: 22px 22px 0 0 !important; margin-top: 4px; }
}
/* the cut-out needs no white field and no blend; its cropped sides fade */
.bg-hero-gradient img[alt*="эмч"] {
  mix-blend-mode: normal !important;
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 98%),
                      linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(to bottom, #000 70%, transparent 98%),
                      linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%);
          mask-composite: intersect;
}

/* ---- 3  headline: inside the gutter, lighter, two tones ---- */
.bg-hero-gradient h1 { font-weight: 800; letter-spacing: -.012em; color: var(--primary); }
.bg-hero-gradient h1 > span:last-child { color: var(--brand); }
@media (min-width: 1024px) {
  .bg-hero-gradient h1 {
    left: max(var(--mm-gutter), calc((100% - 1312px) / 2)) !important;
    right: max(var(--mm-gutter), calc((100% - 1312px) / 2)) !important;
    font-size: min(124px, calc((min(100vw, 1440px) - 2 * var(--mm-gutter)) / 11.8)) !important;
    top: 56px;
  }
}
@media (max-width: 1023px) {
  .bg-hero-gradient h1 { font-size: min(12vw, 88px) !important; padding: 0 var(--mm-gutter); }
}

/* ---- 25  hero button: one pill, "Дэлгүүр үзэх" with its arrow inside ---- */
.bg-hero-gradient a > span + span { display: none !important; }
.bg-hero-gradient a > span:first-child { gap: 10px; padding: 0 22px; height: 48px; font-size: 15px; }
.bg-hero-gradient a > span:first-child::after {
  content: ""; width: 18px; height: 18px; background: currentColor;
  -webkit-mask: var(--mm-arrow) center / contain no-repeat; mask: var(--mm-arrow) center / contain no-repeat;
}
:root {
  --mm-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E");
  --mm-bag: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%3E%3Cpath d='M3.103 6.034h17.794'/%3E%3Cpath d='M3.4 5.467a2 2 0 0 0-.4 1.192V19a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6.66a2 2 0 0 0-.4-1.193l-2-2.667A2 2 0 0 0 17 2H7a2 2 0 0 0-1.6.8z'/%3E%3C/svg%3E");
}

/* ---- 26 · 16  header: no wishlist heart; a quieter cart count ---- */
a[aria-label="Хүслийн жагсаалт"] { display: none !important; }
header .mm-badge, .mm-badge {
  background: #d3eef1 !important; color: #0b5d68 !important;
  min-width: 18px; height: 18px; font-size: 10.5px; font-weight: 700;
  box-shadow: 0 0 0 2px #fff;
}
.mm-badge[data-empty] { display: none; }

/* ---- 21  card buttons: "Сагслах" with a bag ---- */
.group.shadow-card button:not([aria-label="Wishlist"]),
.mm-pcard-cta {
  display: inline-flex !important; align-items: center; justify-content: center; gap: 8px;
}
.group.shadow-card button:not([aria-label="Wishlist"])::before {
  content: ""; width: 16px; height: 16px; flex: none; background: currentColor;
  -webkit-mask: var(--mm-bag) center / contain no-repeat; mask: var(--mm-bag) center / contain no-repeat;
}
.group.shadow-card button:not([aria-label="Wishlist"]) > svg { display: none; }
.mm-pcard-cta { border: 0; cursor: pointer; font: inherit; font-size: 14px; font-weight: 600; width: 100%; }
.mm-pcard-cta svg, .mm-pd-addcart svg { width: 16px; height: 16px; }

/* ---- 18 · 23  cards: quieter meta, bigger photos; phones get the
   same vertical cards as desktop, two per row ---- */
.group.shadow-card > p:nth-of-type(2) { font-size: 12.5px !important; margin-top: 2px; }
.group.shadow-card > a[href^="/product"] { padding: 0 !important; }
.group.shadow-card > a[href^="/product"] img { width: 94% !important; height: 94% !important; }
.mm-pcard-img img { inset: 3%; width: 94%; height: 94%; }
.mm-pcard-meta { font-size: 12px; }
.mm-pcard-body .mm-stock { height: 22px; font-size: 11px; padding: 0 8px; }
@media (max-width: 639px) {
  .mt-5.grid.grid-cols-2.gap-3.sm\:hidden { display: none !important; }
  .mt-8.hidden.grid-cols-4.gap-4.sm\:grid {
    display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px;
  }
  .group.shadow-card { padding: 10px !important; border-radius: 20px; }
  .group.shadow-card > p:nth-of-type(1) {
    font-size: 14.5px !important; line-height: 1.25 !important; min-height: 2.5em; margin-top: 10px !important;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .group.shadow-card > p:nth-of-type(2) { font-size: 12px !important; }
  .group.shadow-card > div:last-of-type { gap: 10px !important; margin-top: 10px !important; }
  .group.shadow-card > div:last-of-type > span, .group.shadow-card > p:nth-of-type(3) { font-size: 17px !important; }
  .group.shadow-card > div:last-of-type > button,
  .group.shadow-card > button:not([aria-label="Wishlist"]) {
    min-height: 40px !important; font-size: 13.5px !important; padding: 0 10px !important;
  }
  .group.shadow-card > button[aria-label="Wishlist"] { top: 14px; right: 14px; }
}

/* ---- 28  rails: room for the card shadow, so no hard line under them ---- */
.no-scrollbar { padding-bottom: 32px !important; margin-bottom: -20px !important; }

/* ---- 17  category tiles: the four live categories, with a product ---- */
.mm-cat-card {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-height: 112px; padding: 16px; overflow: hidden;
}
.mm-cat-card .mm-cat-label { font-size: 14px; font-weight: 700; line-height: 1.25; color: var(--primary); }
.mm-cat-count { font-size: 12px; color: var(--muted-foreground); }
.mm-cat-img { height: 84px; width: 40%; object-fit: contain; flex: none; transition: transform .3s cubic-bezier(.22,1,.36,1); }
.mm-cat-card:hover .mm-cat-img { transform: scale(1.04); }
@media (min-width: 640px) {
  .mm-cat-card { min-height: 132px; padding: 20px; }
  .mm-cat-card .mm-cat-label { font-size: 15.5px; }
  .mm-cat-img { height: 100px; }
}

/* ---- 20  "Бүх сэтгэгдэл": one line, normal size, arrow kept ---- */
span.text-\[10px\]:has(> span.rounded-full) { flex: none; align-self: flex-end; gap: 6px !important; }
span.text-\[10px\]:has(> span.rounded-full) > span:first-child {
  white-space: nowrap; font-size: 13px; padding: 8px 14px !important; line-height: 1.2;
}
span.text-\[10px\]:has(> span.rounded-full) > span:last-child { display: grid !important; width: 32px; height: 32px; flex: none; }

/* ---- 19 · 30  the two promo banners: room for every layer ---- */
.relative.h-28.overflow-hidden.rounded-2xl { height: 176px !important; padding: 20px !important; }
@media (min-width: 640px) { .relative.h-28.overflow-hidden.rounded-2xl { height: 200px !important; padding: 24px !important; } }
.relative.h-28.overflow-hidden.rounded-2xl > p { max-width: 52%; font-size: 17px !important; line-height: 1.25 !important; }
@media (min-width: 640px) { .relative.h-28.overflow-hidden.rounded-2xl > p { font-size: 20px !important; } }
.relative.h-28.overflow-hidden.rounded-2xl > img {
  right: 20px !important; bottom: 14px !important; top: auto !important;
  height: 66% !important; max-width: 40%; object-fit: contain;
  filter: drop-shadow(0 14px 18px rgba(10,30,70,.22));
}
@media (min-width: 640px) { .relative.h-28.overflow-hidden.rounded-2xl > img { right: 40px !important; height: 62% !important; } }
.relative.h-28.overflow-hidden.rounded-2xl > span.absolute.right-4 { top: 20px !important; right: 20px !important; }
.relative.h-28.overflow-hidden.rounded-2xl > span.absolute.bottom-4 { left: 20px !important; bottom: 20px !important; }
@media (min-width: 640px) {
  .relative.h-28.overflow-hidden.rounded-2xl > span.absolute.right-4 { top: 24px !important; right: 24px !important; }
  .relative.h-28.overflow-hidden.rounded-2xl > span.absolute.bottom-4 { left: 24px !important; bottom: 24px !important; }
}
.relative.h-28.overflow-hidden.rounded-2xl span.rounded-full.bg-card { font-size: 13px !important; padding: 8px 14px !important; }
/* the tag sits on the image's side, so the image moves under it */
.relative.h-28.overflow-hidden.rounded-2xl > img { z-index: 1; }

/* ---- 31  "Эмнэлгийн иж бүрэн хангамж" on phones: one per row ---- */
@media (max-width: 639px) {
  .mt-5.grid.grid-cols-3.gap-3 { grid-template-columns: 1fr !important; gap: 12px !important; }
  .relative.h-36.overflow-hidden.rounded-2xl { height: 164px !important; padding: 20px !important; }
  .relative.h-36.overflow-hidden.rounded-2xl > p { max-width: 55% !important; font-size: 17px !important; line-height: 1.25 !important; }
  .relative.h-36.overflow-hidden.rounded-2xl > img { height: 96% !important; right: 12px !important; bottom: 0 !important; }
  .relative.h-36.overflow-hidden.rounded-2xl > span.bg-mint { top: 16px !important; right: auto !important; left: calc(55% + 8px); width: 40px !important; height: 40px !important; }
  .relative.h-36.overflow-hidden.rounded-2xl > span.bottom-3 { left: 20px !important; bottom: 20px !important; }
  .relative.h-36.bg-card { background-size: auto 78% !important; background-position: right 16px bottom 14px !important; }
}

/* ---- 5  hero eyebrow on inner pages: plain text, no frame ---- */
.mm-hero .mm-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: none !important; border: 0 !important; box-shadow: none !important;
  padding: 0 !important; border-radius: 0 !important; backdrop-filter: none !important;
  color: rgba(255,255,255,.88) !important; opacity: 1; font-size: 14px; font-weight: 500;
}
.mm-hero .mm-eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 3px; background: var(--mint); }

/* ---- 6  about: text starts at the top, the photo is a tinted panel ---- */
.mm-split-top { align-items: start; }
.mm-about-photo {
  height: 460px; border-radius: 22px; overflow: hidden;
  display: flex; align-items: flex-end; justify-content: center;
  background: linear-gradient(180deg, #eaf5fb 0%, #d4eaf5 100%);
}
.mm-about-photo img { width: auto !important; height: 96% !important; border-radius: 0 !important; object-fit: contain; }
@media (max-width: 859px) { .mm-about-photo { height: 380px; } }

/* ---- 7 · 11 · 12  navy CTA panel ---- */
.mm-cta .mm-h2::before { display: none !important; }
.mm-cta p { max-width: 56ch; margin-left: auto; margin-right: auto; font-size: 15px !important; }
.mm-cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.mm-cta .mm-btn { height: 48px; padding: 0 24px; font-size: 14.5px; font-weight: 600; box-shadow: none; }
.mm-btn-light { background: #fff !important; color: var(--primary) !important; border: 0; }
.mm-btn-light:hover { background: #eef4fb !important; }
.mm-btn-outline { background: transparent !important; color: #fff !important; border: 1px solid rgba(255,255,255,.45) !important; }
.mm-btn-outline:hover { background: rgba(255,255,255,.08) !important; }

/* ---- 10  advice cards: product on a white plate, tidy meta ---- */
.mm-post { padding: 12px !important; display: flex; flex-direction: column; }
.mm-post-photo {
  position: relative; aspect-ratio: 4 / 3; border-radius: 16px; background: #fff; overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(29,49,104,.06);
}
.mm-post-photo img { position: absolute; inset: 8%; width: 84%; height: 84%; object-fit: contain; }
.mm-post-body { padding: 16px 8px 8px; }
.mm-post-meta { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 12.5px; color: var(--muted-foreground); }
.mm-post-meta .mm-pill { font-size: 12px; padding: 3px 10px; }
.mm-post .mm-h3 { font-size: 17px; line-height: 1.3; }
.mm-post .mm-p { font-size: 14px; }
.mm-demo { margin-top: 24px !important; border: 0 !important; padding: 0 !important; text-align: center; font-size: 12px !important; }

/* ---- 8 · 9  footer: map up top, wordmark big and faint at the bottom ---- */
.mm-footer {
  position: relative; overflow: hidden; margin: 48px 8px 8px; border-radius: 28px;
  background: var(--primary); color: #fff;
  display: grid; gap: 32px; padding: 32px 20px 0;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .mm-footer {
    grid-template-columns: 1fr 380px; column-gap: 56px; row-gap: 40px;
    padding: 48px max(40px, calc((100% - 1312px) / 2)) 0;
    margin: 64px 12px 12px; border-radius: 32px;
  }
  .mm-footer-intro { grid-column: 1; grid-row: 1; }
  .mm-footer-map { grid-column: 2; grid-row: 1 / span 2; }
  .mm-footer-cols { grid-column: 1; grid-row: 2; }
  .mm-footer-bottom, .mm-footer-mark { grid-column: 1 / -1; }
}
.mm-footer-intro p { margin: 0; font-size: 14px; color: rgba(255,255,255,.72); }
.mm-footer-intro .mm-footer-lead { font-size: 18px; line-height: 1.4; color: #fff; max-width: 32ch; margin-bottom: 8px; }
.mm-footer-map {
  display: block; position: relative; border-radius: 20px; overflow: hidden; align-self: start;
  background: rgba(255,255,255,.08); box-shadow: 0 0 0 1px rgba(255,255,255,.12);
  text-decoration: none; color: inherit;
}
.mm-footer-map iframe { display: block; width: 100%; height: 190px; border: 0; pointer-events: none; filter: saturate(.85); }
@media (min-width: 900px) { .mm-footer-map iframe { height: 230px; } }
.mm-footer-map span {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 12px 16px; font-size: 14px; font-weight: 600;
}
.mm-footer-map span::after {
  content: ""; width: 16px; height: 16px; background: currentColor;
  -webkit-mask: var(--mm-arrow) center / contain no-repeat; mask: var(--mm-arrow) center / contain no-repeat;
}
.mm-footer-map:hover span { color: var(--mint); }
.mm-footer-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (min-width: 640px) { .mm-footer-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mm-footer-cols p { margin: 8px 0 0; font-size: 14px; color: rgba(255,255,255,.72); }
.mm-footer-cols .mm-footer-h { margin: 0 0 4px; font-size: 14px; font-weight: 700; color: #fff; }
.mm-footer-cols a { color: inherit; text-decoration: none; }
.mm-footer-cols a:hover { color: #fff; }
.mm-footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14);
}
.mm-footer-bottom p { margin: 0; font-size: 12px; color: rgba(255,255,255,.6); }
.mm-footer-social { display: flex; gap: 8px; }
.mm-footer-social span {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 16px;
  border: 1px solid rgba(255,255,255,.35); font-size: 11px; font-weight: 700;
}
.mm-footer-mark {
  margin: -8px 0 0; text-align: center; line-height: .8; pointer-events: none; user-select: none;
  font-family: "Roboto Flex", sans-serif; font-weight: 200; font-stretch: 125%;
  font-variation-settings: "wdth" 151, "opsz" 144;
  font-variation-settings: "wdth" 125, "opsz" 144;
  font-size: clamp(56px, 15.5vw, 236px); letter-spacing: .01em; white-space: nowrap;
  color: rgba(255,255,255,.075);
  margin-bottom: -.16em;
}

/* ---- 29  catalogue chips: one swipeable row ---- */
.mm-chips {
  flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none;
  margin-left: calc(-1 * var(--mm-gutter)); margin-right: calc(-1 * var(--mm-gutter));
  padding: 4px var(--mm-gutter) 8px; scroll-padding-left: var(--mm-gutter);
}
.mm-chips::-webkit-scrollbar { display: none; }
.mm-chip { flex: none; white-space: nowrap; }
.mm-cathead { margin-top: 24px; }

/* ---- 15  product page actions ---- */
.mm-pd-actions .mm-btn { border: 0; cursor: pointer; font: inherit; font-size: 15px; font-weight: 600; height: 52px; padding: 0 28px; }
.mm-pd-buynow { flex: 1 1 200px; justify-content: center; }
.mm-pd-addcart { flex: 1 1 200px; justify-content: center; gap: 8px; border: 1px solid rgba(29,49,104,.18) !important; background: #fff !important; color: var(--primary) !important; }
.mm-pd-phone { margin: 14px 0 0; font-size: 14px; color: var(--muted-foreground); }
.mm-pd-phone a { color: var(--primary); font-weight: 600; text-decoration: none; }

/* toast after adding to the cart */
.mm-toast {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 200;
  display: flex; align-items: center; gap: 14px; max-width: calc(100vw - 32px);
  padding: 12px 12px 12px 18px; border-radius: 26px; background: var(--primary); color: #fff;
  font-size: 14px; box-shadow: 0 18px 40px -16px rgba(10,20,60,.55);
  transform: translate(-50%, 24px); opacity: 0; pointer-events: none;
  transition: transform .3s cubic-bezier(.22,1,.36,1), opacity .2s ease;
}
.mm-toast[data-on] { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.mm-toast-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mm-toast a { flex: none; padding: 8px 14px; border-radius: 18px; background: #fff; color: var(--primary); font-weight: 600; text-decoration: none; }

/* ---- 13 · 14 · 22 · 24 · 27  checkout ---- */
.mm-co-back {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 20px;
  font-size: 14px; font-weight: 600; color: var(--primary); text-decoration: none;
}
.mm-co-back::before {
  content: ""; width: 16px; height: 16px; background: currentColor; transform: scaleX(-1);
  -webkit-mask: var(--mm-arrow) center / contain no-repeat; mask: var(--mm-arrow) center / contain no-repeat;
}
.mm-co-back:hover { color: var(--brand); }
.mm-co-title { margin: 16px 0 0; font-size: 30px; line-height: 1.1; font-weight: 800; color: var(--primary); }
@media (min-width: 640px) { .mm-co-title { font-size: 40px; } }
.mm-co-steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 20px 0 0; counter-reset: s; }
.mm-co-steps li {
  counter-increment: s; display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 6px; border-radius: 20px; font-size: 13px; font-weight: 600;
  background: #fff; color: var(--muted-foreground); box-shadow: inset 0 0 0 1px rgba(29,49,104,.08);
}
.mm-co-steps li::before {
  content: counter(s); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 12px;
  background: rgba(29,49,104,.08); font-size: 12px;
}
.mm-co-steps li.is-done { color: var(--mint-ink); }
.mm-co-steps li.is-done::before { background: color-mix(in oklab, var(--mint) 35%, #fff); }
.mm-co-steps li.is-on { background: var(--primary); color: #fff; box-shadow: none; }
.mm-co-steps li.is-on::before { background: rgba(255,255,255,.18); }

.mm-co-grid { display: grid; gap: 20px; margin-top: 24px; }
@media (min-width: 1000px) { .mm-co-grid { grid-template-columns: minmax(0, 1fr) 400px; gap: 32px; align-items: start; } }
.mm-co-form { display: grid; gap: 16px; }
.mm-co-card {
  background: #fff; border-radius: 22px; padding: 20px;
  box-shadow: 0 1px 2px rgba(29,49,104,.05), 0 18px 40px -26px rgba(29,49,104,.38);
}
@media (min-width: 640px) { .mm-co-card { padding: 28px; } }
.mm-co-card h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; font-size: 18px; font-weight: 700; color: var(--primary); }
.mm-co-card h2 span {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 16px; flex: none;
  background: linear-gradient(135deg, var(--mint-deep), var(--brand)); color: #fff; font-size: 14px;
}
.mm-co-fields { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.mm-co-field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--primary); }
.mm-co-field.is-wide { grid-column: 1 / -1; }
.mm-co-card > .mm-co-field { margin-top: 16px; }
.mm-co-field input, .mm-co-field select, .mm-co-field textarea {
  width: 100%; font: inherit; font-size: 15px; font-weight: 400; color: var(--foreground);
  padding: 12px 14px; border-radius: 12px; border: 1px solid transparent;
  background: #f2f7fb; transition: border-color .15s ease, background-color .15s ease;
}
.mm-co-field input:focus, .mm-co-field select:focus, .mm-co-field textarea:focus {
  outline: none; background: #fff; border-color: var(--mint-deep);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--mint) 25%, transparent);
}
.mm-co-field.is-bad input, .mm-co-field.is-bad select { border-color: #dc2626; background: #fff5f5; }
@media (max-width: 520px) { .mm-co-fields { grid-template-columns: 1fr; } }

.mm-co-options { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.mm-co-options-3 { grid-template-columns: 1fr; }
@media (min-width: 700px) { .mm-co-options-3 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 420px) { .mm-co-options { grid-template-columns: 1fr; } }
.mm-co-option {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 14px; cursor: pointer;
  border-radius: 16px; background: #f5f9fc; box-shadow: inset 0 0 0 1px rgba(29,49,104,.08);
  transition: background-color .15s ease, box-shadow .15s ease;
}
.mm-co-option input { position: absolute; opacity: 0; pointer-events: none; }
.mm-co-option-icon {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; flex: none;
  background: #fff; color: var(--brand); box-shadow: 0 2px 6px -2px rgba(29,49,104,.2);
}
.mm-co-option-icon svg { width: 22px; height: 22px; }
.mm-co-option-text { display: grid; gap: 2px; min-width: 0; }
.mm-co-option-text b { font-size: 15px; color: var(--primary); }
.mm-co-option-text small { font-size: 12.5px; color: var(--muted-foreground); }
.mm-co-radio { margin-left: auto; width: 20px; height: 20px; border-radius: 10px; flex: none; box-shadow: inset 0 0 0 2px rgba(29,49,104,.25); }
.mm-co-option:has(input:checked) {
  background: color-mix(in oklab, var(--mint) 14%, #fff);
  box-shadow: inset 0 0 0 2px var(--mint-deep);
}
.mm-co-option:has(input:checked) .mm-co-option-icon { background: var(--mint-deep); color: #fff; }
.mm-co-option:has(input:checked) .mm-co-radio { box-shadow: inset 0 0 0 6px var(--mint-deep); }
.mm-co-option:has(input:focus-visible) { outline: 2px solid var(--mint-deep); outline-offset: 2px; }

.mm-co-address, .mm-co-pickup { margin-top: 18px; }
.mm-co-place { display: flex; gap: 8px; margin: 0 0 14px; }
.mm-co-place span {
  padding: 6px 12px; border-radius: 14px; font-size: 13px; font-weight: 600;
  background: color-mix(in oklab, var(--brand) 8%, #fff); color: var(--primary);
}
.mm-co-pickup { padding: 18px; border-radius: 16px; background: linear-gradient(135deg, #eaf6fb, #f4f9fd); }
.mm-co-pickup p { margin: 0 0 6px; font-size: 14px; line-height: 1.55; color: var(--foreground); }
.mm-co-pickup .mm-co-pickup-title { font-weight: 700; color: var(--primary); }
.mm-co-pickup a { font-size: 14px; font-weight: 600; color: var(--mint-ink); }

.mm-co-submit {
  height: 56px; border: 0; border-radius: 28px; cursor: pointer; font: inherit; font-size: 16px; font-weight: 700;
  background: var(--primary); color: #fff; box-shadow: 0 16px 30px -18px rgba(29,49,104,.7);
}
.mm-co-submit:hover { background: color-mix(in oklab, var(--primary) 88%, #000); }
.mm-co-note { margin: -4px 0 0; text-align: center; font-size: 12px; color: var(--muted-foreground); }

.mm-co-summary {
  background: #fff; border-radius: 22px; padding: 20px;
  box-shadow: 0 1px 2px rgba(29,49,104,.05), 0 18px 40px -26px rgba(29,49,104,.38);
}
@media (min-width: 1000px) { .mm-co-summary { position: sticky; top: 96px; padding: 24px; } }
.mm-co-summary h2 { margin: 0 0 12px; font-size: 18px; font-weight: 700; color: var(--primary); }
.mm-co-summary ul { list-style: none; margin: 0; padding: 0; }
.mm-co-summary li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(29,49,104,.07); }
.mm-co-thumb { width: 64px; height: 64px; flex: none; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px rgba(29,49,104,.08); display: grid; place-items: center; }
.mm-co-thumb img { width: 86%; height: 86%; object-fit: contain; }
.mm-co-item { flex: 1; min-width: 0; display: grid; gap: 2px; }
.mm-co-item a { font-size: 14px; font-weight: 600; color: var(--primary); text-decoration: none; }
.mm-co-item small { font-size: 12px; color: var(--muted-foreground); }
.mm-co-qty { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; }
.mm-co-qty button { width: 28px; height: 28px; border-radius: 14px; border: 0; cursor: pointer; background: #f0f5fa; color: var(--primary); font-size: 16px; line-height: 1; }
.mm-co-qty button:hover { background: color-mix(in oklab, var(--mint) 25%, #fff); }
.mm-co-qty b { min-width: 24px; text-align: center; font-size: 14px; }
.mm-co-price { font-size: 14px; font-weight: 700; color: var(--primary); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mm-co-summary dl { margin: 12px 0 0; display: grid; gap: 8px; }
.mm-co-summary dl div { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted-foreground); }
.mm-co-summary dd { margin: 0; font-variant-numeric: tabular-nums; color: var(--foreground); }
.mm-co-summary [data-co-ship] { color: var(--mint-ink); font-weight: 600; }
.mm-co-summary dl .is-total { padding-top: 12px; margin-top: 4px; border-top: 1px solid rgba(29,49,104,.08); }
.mm-co-summary dl .is-total dt { font-size: 16px; font-weight: 700; color: var(--primary); }
.mm-co-summary dl .is-total dd { font-size: 22px; font-weight: 800; color: var(--primary); }
.mm-co-help { margin: 16px 0 0; padding: 12px 14px; border-radius: 14px; background: #f2f7fb; font-size: 13.5px; color: var(--muted-foreground); }
.mm-co-help a { color: var(--primary); font-weight: 700; text-decoration: none; }

.mm-co-empty, .mm-co-done {
  margin: 32px auto 0; max-width: 520px; text-align: center; padding: 40px 24px; border-radius: 24px; background: #fff;
  box-shadow: 0 18px 40px -26px rgba(29,49,104,.38);
}
.mm-co-empty p { margin: 0 0 20px; font-size: 17px; color: var(--primary); font-weight: 600; }
.mm-co-done h2 { margin: 16px 0 8px; font-size: 24px; color: var(--primary); }
.mm-co-done p { margin: 0 0 22px; font-size: 15px; color: var(--muted-foreground); }
.mm-co-done-mark {
  display: inline-block; width: 56px; height: 56px; border-radius: 28px; background: var(--mint-deep);
  -webkit-mask: none;
  position: relative;
}
.mm-co-done-mark::after {
  content: ""; position: absolute; inset: 14px; background: #fff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%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='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* the items and total stay in view on phones */
.mm-co-bar { display: none; }
@media (max-width: 999px) {
  html[data-page="checkout"] body { padding-bottom: 84px; }
  .mm-co-bar:not([hidden]) {
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 90;
    display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; border-radius: 22px;
    background: rgba(29,49,104,.96); color: #fff; text-decoration: none;
    box-shadow: 0 18px 40px -16px rgba(10,20,60,.6);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  }
  .mm-co-bar-thumbs { display: flex; flex: none; }
  .mm-co-bar-thumbs img { width: 40px; height: 40px; border-radius: 12px; background: #fff; object-fit: contain; padding: 3px; box-shadow: 0 0 0 2px rgba(29,49,104,.96); }
  .mm-co-bar-thumbs img + img { margin-left: -12px; }
  .mm-co-bar-text { flex: 1; min-width: 0; display: grid; }
  .mm-co-bar-text b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mm-co-bar-text small { font-size: 12px; opacity: .7; }
  .mm-co-bar-total { flex: none; font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
}

/* ---- 32  phones: content fades out under the status bar ---- */
@media (max-width: 1023px) {
  body { padding-top: env(safe-area-inset-top); }
  html::after {
    content: ""; position: fixed; left: 0; right: 0; top: 0; z-index: 150; pointer-events: none;
    height: calc(env(safe-area-inset-top) + 22px);
    background: linear-gradient(to bottom,
      rgba(246,250,253,1) 0, rgba(246,250,253,1) env(safe-area-inset-top), rgba(246,250,253,0) 100%);
  }
}
/* phones: the long reviews heading leaves no room, so the link drops under it */
@media (max-width: 639px) {
  div.flex.items-end.justify-between:has(> span.text-\[10px\]) { flex-wrap: wrap; row-gap: 12px; }
  div.flex.items-end.justify-between:has(> span.text-\[10px\]) > h2 { flex: 1 1 100%; }
}

/* ============================================================
   BATCH 17 — seams, phone menu, banners, footer to the bottom
   ============================================================ */

/* ---- 1 · 2 · 6  header: no hard edge above or below it.
   It reaches up under the status bar and dissolves into the page
   below, instead of a tinted bar with a border. ---- */
header.bg-card, header.border-b {
  background: linear-gradient(to bottom,
    rgba(247,250,253,.96) 0%, rgba(247,250,253,.9) 62%, rgba(247,250,253,0) 100%) !important;
  border-bottom: 0 !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  box-shadow: none !important;
}
@media (max-width: 1023px) {
  body { padding-top: 0 !important; }
  header.bg-card, header.border-b { padding-top: calc(16px + env(safe-area-inset-top)) !important; padding-bottom: 20px !important; }
  /* the status bar keeps a soft frosted strip; content slides under it
     and fades out, with no solid band reaching into the page */
  html::after {
    height: env(safe-area-inset-top) !important;
    background: rgba(247,250,253,.55) !important;
    -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
    -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
  }
}

/* ---- 3  phone menu: rows, a grouped sub-list, a readable button ---- */
[data-mm-mobile], header .absolute.inset-x-4.top-full {
  top: calc(100% - 8px) !important;
  padding: 8px 8px 12px !important; border-radius: 22px !important;
  background: #fff !important;
  box-shadow: 0 1px 2px rgba(29,49,104,.05), 0 24px 48px -20px rgba(29,49,104,.35) !important;
}
[data-mm-mobile] > a.block.py-2, header .absolute.inset-x-4.top-full > a.block.py-2 {
  display: flex !important; align-items: center; justify-content: space-between;
  min-height: 52px; padding: 0 14px !important; border-radius: 14px;
  font-size: 16px !important; font-weight: 600 !important; color: var(--primary) !important;
  text-decoration: none;
}
[data-mm-mobile] > a.block.py-2::after, header .absolute.inset-x-4.top-full > a.block.py-2::after {
  content: ""; width: 16px; height: 16px; background: rgba(29,49,104,.35);
  -webkit-mask: var(--mm-arrow) center / contain no-repeat; mask: var(--mm-arrow) center / contain no-repeat;
}
[data-mm-mobile] > a.block.py-2 + a.block.py-2,
header .absolute.inset-x-4.top-full > a.block.py-2 + a.block.py-2 { box-shadow: 0 -1px 0 rgba(29,49,104,.07); }
[data-mm-mobile] > a.block.py-2:active, header .absolute.inset-x-4.top-full > a.block.py-2:active { background: #f2f7fb; }
/* the category sub-list hangs under "Ангилал" as one indented group */
[data-mm-mobile] > a.block.py-1 {
  display: block !important; margin-left: 14px; padding: 9px 14px !important;
  border-left: 2px solid color-mix(in oklab, var(--mint) 45%, #fff);
  font-size: 14px !important; opacity: 1 !important; color: var(--muted-foreground) !important; text-decoration: none;
}
[data-mm-mobile] > a.block.py-1:last-of-type { margin-bottom: 6px; }
[data-mm-mobile] > a.block.py-2:has(+ a.block.py-1)::after { transform: rotate(90deg); }
[data-mm-mobile] > a.rounded-full, header .absolute.inset-x-4.top-full > a.rounded-full {
  display: flex !important; align-items: center; justify-content: center;
  height: 52px; margin: 10px 4px 0 !important; border-radius: 26px !important;
  background: var(--primary) !important; color: #fff !important;
  font-size: 15px !important; font-weight: 600 !important; text-decoration: none;
}

/* ---- 4 · 5  "Иж бүрэн хангамж": real products, no percent chips ---- */
.relative.h-36.overflow-hidden.rounded-2xl > span.bg-mint { display: none !important; }
.relative.h-36.overflow-hidden.rounded-2xl > img {
  height: 78% !important; max-width: 46%; bottom: 14px !important; right: 18px !important; object-fit: contain;
  filter: drop-shadow(0 12px 16px rgba(10,30,70,.22));
}
.relative.h-36.bg-card { background-image: url('/assets/cut/hearing.webp') !important; background-size: auto 74% !important; }
/* the folding wheelchair photo sits on its own white plate, so its open
   frame reads as a product and not as holes in the banner */
.relative.h-36.overflow-hidden.rounded-2xl > img[src*="mm-wc-al2"] {
  background: #fff; border-radius: 18px; padding: 8px; height: 76% !important;
  aspect-ratio: 1 / 1; filter: none; box-shadow: 0 14px 28px -14px rgba(0,0,0,.45);
}
@media (min-width: 640px) {
  .relative.h-36.overflow-hidden.rounded-2xl > img { height: 82% !important; right: 22px !important; }
}

/* ---- 7  delivery / wholesale banners: solid tags, no stray "+" ---- */
.relative.h-28.overflow-hidden.rounded-2xl > span.absolute.right-4 {
  border: 0 !important; background: rgba(255,255,255,.92) !important; color: var(--primary) !important;
  text-transform: none !important; font-size: 12px !important; font-weight: 600 !important;
  padding: 5px 12px !important; box-shadow: 0 4px 12px -6px rgba(10,30,70,.35);
}
.relative.h-28.overflow-hidden.rounded-2xl span.grid.h-6.w-6 { display: none !important; }
.relative.h-28.overflow-hidden.rounded-2xl > img[src*="nebulizer"] { height: 60% !important; }

/* ---- 8 · 9  footer: bold wordmark, and it runs to the very bottom ---- */
.mm-footer {
  margin-bottom: 0 !important;
  border-bottom-left-radius: 0 !important; border-bottom-right-radius: 0 !important;
}
.mm-footer-mark {
  font-family: var(--font-display) !important; font-weight: 900 !important; font-stretch: 100% !important;
  font-variation-settings: normal !important;
  font-size: clamp(56px, 16.5vw, 250px) !important; letter-spacing: -.02em !important;
  line-height: .78 !important; color: rgba(255,255,255,.075) !important;
  margin: 0 !important; margin-bottom: -.09em !important; white-space: nowrap;
}
.mm-footer-social a {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 18px;
  border: 1px solid rgba(255,255,255,.35); font-size: 12px; font-weight: 700; color: #fff; text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease;
}
.mm-footer-social a:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.6); }
/* the same stray "+" sat beside the help box's button */
section span.grid.h-8.w-8.rounded-full.bg-sky-soft { display: none !important; }

/* ---- hero doctor: П.Жамсран. His cut-out is tight to the silhouette
   (raised hand at the left edge), so only the bottom fades out. ---- */
.bg-hero-gradient img[alt*="эмч"] {
  -webkit-mask-image: linear-gradient(to bottom, #000 74%, transparent 99%) !important;
  -webkit-mask-composite: source-over !important;
          mask-image: linear-gradient(to bottom, #000 74%, transparent 99%) !important;
          mask-composite: add !important;
}
.mm-about-photo img { height: 100% !important; }
@media (min-width: 1024px) {
  /* taller figure than the old photo: sized so his head clears the headline */
  .bg-hero-gradient > div:nth-of-type(1) { width: 26% !important; max-width: 360px !important; }
}

/* ============================================================
   BATCH 18 — payments from medmind.mn, account page
   ============================================================ */
.mm-co-pays { grid-template-columns: 1fr 1fr; }
@media (max-width: 520px) { .mm-co-pays { grid-template-columns: 1fr; } }
.mm-co-paymark {
  display: grid; place-items: center; width: 52px; height: 44px; border-radius: 12px; flex: none;
  font-size: 11.5px; font-weight: 800; letter-spacing: -.01em; color: #fff;
}
.mm-pay-qpay { background: #00a7e1; }
.mm-pay-storepay { background: #e6007e; }
.mm-pay-pocket { background: #ff5a1f; }
.mm-pay-transfer { background: #1d3168; font-size: 10px; }
.mm-co-option:has(input:checked) .mm-co-paymark { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--mint-deep); }
.mm-co-transfer { margin-top: 14px; padding: 16px; border-radius: 16px; background: #f5f9fc; box-shadow: inset 0 0 0 1px rgba(29,49,104,.08); }
.mm-co-warn { margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; background: #fff7e6; color: #8a5300; font-size: 13.5px; line-height: 1.5; }
.mm-co-transfer dl, .mm-co-bank { margin: 0; display: grid; gap: 6px; }
.mm-co-transfer dl div, .mm-co-bank div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.mm-co-transfer dt, .mm-co-bank dt { color: var(--muted-foreground); }
.mm-co-transfer dd, .mm-co-bank dd { margin: 0; font-weight: 700; color: var(--primary); text-align: right; font-variant-numeric: tabular-nums; }
.mm-co-bank { margin: 16px auto 0; max-width: 360px; padding: 16px; border-radius: 16px; background: #f5f9fc; text-align: left; }
.mm-co-hint { margin: 10px 0 0; font-size: 12.5px; line-height: 1.5; color: #8a5300; }
.mm-co-field textarea { resize: vertical; }
[data-co-ub][hidden] { display: none !important; }

/* /account */
.mm-acct { max-width: 520px; margin-left: auto; margin-right: auto; }
.mm-acct-auth, .mm-acct-me { background: #fff; border-radius: 24px; padding: 28px 24px;
  box-shadow: 0 1px 2px rgba(29,49,104,.05), 0 18px 40px -26px rgba(29,49,104,.38); }
.mm-acct .mm-h2::before { display: none; }
.mm-acct-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 20px 0; padding: 4px; border-radius: 16px; background: #f0f5fa; }
.mm-acct-tabs button { height: 42px; border: 0; border-radius: 12px; background: none; cursor: pointer; font: inherit; font-weight: 700; color: var(--muted-foreground); }
.mm-acct-tabs button[aria-pressed="true"] { background: #fff; color: var(--primary); box-shadow: 0 2px 8px -4px rgba(29,49,104,.3); }
.mm-acct-form { display: grid; gap: 14px; }
.mm-acct-form[hidden] { display: none; }
.mm-acct-err { margin: 14px 0 0; color: #c62828; font-weight: 600; }
.mm-acct-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.mm-acct-sub { margin: 28px 0 12px; font-size: 18px; color: var(--primary); }
.mm-acct-order { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 0; border-top: 1px solid rgba(29,49,104,.08); }
.mm-acct-order small { display: block; color: var(--muted-foreground); font-size: 12px; }
.mm-acct-order p { margin: 0; font-size: 13.5px; color: var(--foreground); }
.mm-acct-order strong { text-align: right; color: var(--primary); font-variant-numeric: tabular-nums; }
.mm-acct-status { align-self: start; padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 700; background: #e7f0ff; color: var(--brand); }
.mm-acct-status.is-done, .mm-acct-status.is-paid { background: #e5f5ec; color: #138a4b; }
.mm-acct-status.is-cancelled { background: #fdecec; color: #c62828; }
.mm-pay-transfer svg { width: 24px; height: 24px; }

/* ============================================================
   BATCH 19 — checkout after the reference: one white card, form on
   the left, the total on a tinted panel on the right
   ============================================================ */
html[data-page="checkout"] body::before { background: #dfe5ee !important; }
html[data-page="checkout"] .mm-main { padding: 0 !important; }
html[data-page="checkout"] .mm-wrap { max-width: none !important; }
.co-page { padding: 40px max(16px, calc((100% - 1200px) / 2)) 56px; }
.co-card {
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 0;
  background: #fff; border-radius: 28px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(29,49,104,.05), 0 30px 70px -40px rgba(29,49,104,.45);
}
.co-left { padding: 52px 60px 48px; }
.co-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.co-back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--muted-foreground); text-decoration: none; }
.co-back::before { content: ""; width: 14px; height: 14px; background: currentColor; transform: scaleX(-1);
  -webkit-mask: var(--mm-arrow) center / contain no-repeat; mask: var(--mm-arrow) center / contain no-repeat; }
.co-back:hover { color: var(--primary); }
.co-label { margin: 30px 0 12px; font-size: 15px; font-weight: 500; color: var(--muted-foreground); }

/* the grouped details box: rows split by hairlines */
.co-box { border: 1px solid rgba(29,49,104,.16); border-radius: 14px; padding: 0 20px; }
.co-row { display: flex; align-items: center; min-height: 64px; border-bottom: 1px solid rgba(29,49,104,.1); position: relative; }
.co-box > .co-row:last-child, .co-box > .co-row:last-of-type:not([hidden]) { border-bottom: 0; }
.co-row[hidden] { display: none !important; }
.co-split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; border-bottom: 0; }
.co-split > * { min-height: 64px; display: flex; align-items: center; border-bottom: 1px solid rgba(29,49,104,.1); }
.co-box input, .co-box select {
  width: 100%; height: 100%; min-height: 62px; border: 0; background: transparent; outline: none;
  font: inherit; font-size: 17px; font-weight: 500; color: var(--primary); padding: 0;
}
.co-box input::placeholder { color: rgba(29,49,104,.42); font-weight: 400; }
.co-box select { appearance: none; -webkit-appearance: none; padding-right: 28px; cursor: pointer; }
.co-sel { position: relative; }
.co-sel svg, .co-row.co-sel > svg { position: absolute; right: 0; top: 50%; width: 18px; height: 18px; margin-top: -9px; pointer-events: none; color: var(--muted-foreground); }
.co-tel span { flex: none; font-size: 17px; font-weight: 500; color: var(--primary); margin-right: 12px; padding-right: 12px; border-right: 1px solid rgba(29,49,104,.15); }
.co-flag { flex: none; width: 24px; height: 16px; margin-right: 12px; border-radius: 3px;
  background: linear-gradient(90deg, #c4272f 0 33.3%, #015197 33.3% 66.6%, #c4272f 66.6%);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.co-box .is-bad { background: linear-gradient(transparent calc(100% - 2px), #dc2626 0); }
.co-box .is-bad::placeholder { color: #dc2626; }
.co-hint { margin: 10px 0 0; font-size: 12.5px; color: var(--muted-foreground); }
.co-hint[hidden] { display: none; }
.co-pickup { margin-top: 4px; padding: 18px 20px; border-radius: 14px; background: #f3f7fb; }
.co-pickup b { color: var(--primary); }
.co-pickup p { margin: 6px 0 0; font-size: 14px; line-height: 1.55; color: var(--foreground); }
.co-pickup a { display: inline-block; margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--brand); }

/* big option tiles: delivery method and payment */
.co-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.co-opt { position: relative; cursor: pointer; }
.co-opt input { position: absolute; opacity: 0; pointer-events: none; }
.co-opt-in {
  display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 72px; padding: 0 14px;
  border: 1px solid rgba(29,49,104,.16); border-radius: 12px; background: #fff;
  font-size: 16.5px; color: rgba(29,49,104,.72); transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.co-opt-in svg { width: 26px; height: 26px; flex: none; }
.co-opt-in b { font-weight: 600; }
.co-opt:hover .co-opt-in { border-color: rgba(29,49,104,.32); }
.co-opt input:checked + .co-opt-in { border: 2px solid var(--brand); background: #f1f5ff; color: var(--brand); }
.co-opt input:focus-visible + .co-opt-in { outline: 2px solid var(--mint-deep); outline-offset: 2px; }
.co-paynote { margin: 12px 0 0; font-size: 13.5px; color: var(--muted-foreground); }
.co-paynote[hidden], [data-co-bankpick][hidden] { display: none; }

.co-select {
  display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 58px;
  padding: 0; border: 0; border-bottom: 1px solid rgba(29,49,104,.16); background: none; cursor: pointer;
  font: inherit; font-size: 17px; font-weight: 500; color: var(--primary); text-align: left;
}
.co-select svg { width: 20px; height: 20px; color: var(--muted-foreground); }
.co-select [data-co-bankname] { display: inline-flex; align-items: center; gap: 12px; }
.co-select .co-bank-tile { width: 32px; height: 32px; font-size: 11px; border-radius: 9px; }
.co-transfer { margin-top: 16px; padding: 18px 20px; border-radius: 14px; background: #f3f7fb; }
.co-transfer[hidden] { display: none; }
.co-warn { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: #fff7e6; color: #8a5300; font-size: 13.5px; line-height: 1.5; }
.co-transfer dl { margin: 0; display: grid; gap: 6px; }
.co-transfer dl div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.co-transfer dt { color: var(--muted-foreground); }
.co-transfer dd { margin: 0; font-weight: 700; color: var(--primary); text-align: right; }
.co-note {
  width: 100%; margin-top: 24px; padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(29,49,104,.16);
  font: inherit; font-size: 15px; color: var(--primary); resize: vertical; outline: none;
}
.co-note:focus { border-color: var(--brand); }
.co-submit {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 64px; margin-top: 28px;
  border: 0; border-radius: 14px; background: var(--brand); color: #fff; cursor: pointer; text-decoration: none;
  font: inherit; font-size: 17px; font-weight: 600; box-shadow: 0 16px 30px -18px rgba(31,83,170,.75);
  transition: background-color .15s ease, transform .12s ease;
}
.co-submit svg { width: 18px; height: 18px; }
.co-submit:hover { background: color-mix(in oklab, var(--brand) 88%, #000); }
.co-submit:active { transform: scale(.99); }
.co-submit:disabled { opacity: .6; cursor: default; }
.co-demo { margin: 12px 0 0; text-align: center; font-size: 12px; color: var(--muted-foreground); }

/* right panel: the total first, then the summary */
.co-right { margin: 18px; padding: 56px 52px 40px; border-radius: 22px; background: #eff3fa; }
.co-total-label { margin: 0; text-align: center; font-size: 17px; color: var(--muted-foreground); }
.co-total { margin: 10px 0 0; text-align: center; font-size: 56px; line-height: 1.05; font-weight: 800; color: var(--brand);
  letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.co-total span { color: color-mix(in oklab, var(--brand) 45%, #fff); margin-left: 2px; }
.co-secure { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 14px 0 0;
  padding-bottom: 32px; border-bottom: 1px solid rgba(29,49,104,.12); font-size: 14px; color: var(--muted-foreground); }
.co-secure svg { width: 14px; height: 14px; color: #16a34a; }
.co-right .co-label { margin-top: 32px; }
.co-items { list-style: none; margin: 0; padding: 0; }
.co-items li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(29,49,104,.1); }
.co-items .mm-co-thumb { width: 52px; height: 52px; border-radius: 12px; }
.co-item { flex: 1; min-width: 0; display: grid; gap: 3px; }
.co-item a { font-size: 15.5px; font-weight: 600; color: var(--primary); text-decoration: none; }
.co-item small { font-size: 13px; color: var(--muted-foreground); }
.co-items .mm-co-qty button { background: #fff; }
.co-price { font-size: 15.5px; font-weight: 600; color: var(--primary); font-variant-numeric: tabular-nums; white-space: nowrap; }
.co-sum { margin: 18px 0 0; display: grid; gap: 12px; }
.co-sum div { display: flex; justify-content: space-between; font-size: 15.5px; color: var(--muted-foreground); }
.co-sum dd { margin: 0; color: var(--primary); font-weight: 600; font-variant-numeric: tabular-nums; }
.co-sum .is-total { padding-top: 18px; margin-top: 6px; border-top: 1px solid rgba(29,49,104,.12); }
.co-sum .is-total dt { font-size: 19px; font-weight: 700; color: var(--primary); }
.co-sum .is-total dd { font-size: 19px; font-weight: 800; color: var(--brand); }
.co-help { margin: 28px 0 0; text-align: center; font-size: 13.5px; color: var(--muted-foreground); }
.co-help a { color: var(--primary); font-weight: 700; text-decoration: none; }

/* bank app sheet */
.co-sheet-wrap { position: fixed; inset: 0; z-index: 120; background: rgba(12,18,36,0); transition: background-color .2s ease; }
.co-sheet-wrap[data-on] { background: rgba(12,18,36,.28); }
.co-sheet {
  position: absolute; right: max(24px, calc((100% - 1200px) / 2 + 40px)); bottom: 32px; width: min(420px, calc(100% - 32px));
  max-height: min(560px, calc(100% - 64px)); overflow-y: auto; padding: 22px 24px 10px; border-radius: 24px;
  background: #111318; color: #fff; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6);
  transform: translateY(16px); opacity: 0; transition: transform .22s cubic-bezier(.22,1,.36,1), opacity .18s ease;
}
.co-sheet-wrap[data-on] .co-sheet { transform: none; opacity: 1; }
.co-sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.co-sheet-head b { font-size: 18px; font-weight: 600; }
.co-sheet-head button { width: 32px; height: 32px; border: 0; background: none; color: #fff; cursor: pointer; }
.co-sheet-head svg { width: 20px; height: 20px; }
.co-sheet ul { list-style: none; margin: 0; padding: 0; }
.co-sheet li + li { border-top: 1px solid rgba(255,255,255,.12); }
.co-sheet li button {
  display: flex; align-items: center; gap: 16px; width: 100%; padding: 14px 0; border: 0; background: none;
  color: #fff; font: inherit; font-size: 16px; font-weight: 500; text-align: left; cursor: pointer;
}
.co-sheet li button:hover { color: #cfe3ff; }
.co-bank-tile {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 11px;
  color: #fff; font-size: 13px; font-weight: 800; letter-spacing: -.02em;
}

/* empty / finished states */
.co-empty, .co-done {
  max-width: 560px; margin: 0 auto; padding: 48px 32px; text-align: center; background: #fff; border-radius: 28px;
  box-shadow: 0 30px 70px -40px rgba(29,49,104,.45);
}
.co-empty[hidden], .co-done[hidden], .co-card[hidden] { display: none; }
.co-empty p { margin: 28px 0 0; font-size: 18px; font-weight: 600; color: var(--primary); }
.co-done h1 { margin: 18px 0 10px; font-size: 28px; color: var(--primary); }
.co-done p { margin: 0 0 12px; font-size: 15px; line-height: 1.55; color: var(--muted-foreground); }
.co-done-mark { display: inline-block; position: relative; width: 64px; height: 64px; border-radius: 32px; background: #16a34a; }
.co-done-mark::after { content: ""; position: absolute; inset: 17px; background: #fff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%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='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; }
.co-done-card { margin: 18px 0; padding: 18px 20px; border-radius: 16px; background: #eff3fa; text-align: left; }
.co-done-total { display: flex; justify-content: space-between; margin: 0 0 8px !important; font-size: 15px !important; }
.co-done-total b { color: var(--primary); font-variant-numeric: tabular-nums; }
.co-done .mm-co-bank { margin: 12px 0 0; padding: 12px 0 0; border-top: 1px solid rgba(29,49,104,.1); background: none; max-width: none; }
.co-done .co-submit, .co-empty .co-submit { max-width: 320px; margin: 24px auto 0; }

@media (max-width: 960px) {
  .co-page { padding: 12px 12px 100px; }
  .co-card { grid-template-columns: 1fr; border-radius: 24px; }
  .co-left { padding: 28px 20px 32px; }
  .co-right { margin: 0 10px 10px; padding: 32px 20px 28px; }
  .co-total { font-size: 44px; }
  .co-split { grid-template-columns: 1fr; gap: 0; }
  .co-opt-in { min-height: 64px; font-size: 15px; gap: 10px; }
  .co-opt-in svg { width: 22px; height: 22px; }
  .co-sheet { left: 12px; right: 12px; bottom: 12px; width: auto; }
}
@media (max-width: 380px) { .co-opts-4 { grid-template-columns: 1fr; } }
.co-box .co-split > input { border-bottom: 1px solid rgba(29,49,104,.1); }
@media (max-width: 960px) { .co-box .co-split > :last-child { border-bottom: 1px solid rgba(29,49,104,.1); } }

/* ---- "Онцлох ангилал": the four categories are the section now ---- */
section:has(.mm-cat-card) > .no-scrollbar { display: none !important; }
section:has(.mm-cat-card) > .grid { margin-top: 24px !important; gap: 12px !important; }
@media (min-width: 640px) { section:has(.mm-cat-card) > .grid { margin-top: 40px !important; gap: 20px !important; } }
.mm-cat-card {
  flex-direction: column-reverse; align-items: flex-start; justify-content: flex-end; gap: 14px;
  min-height: 0 !important; padding: 14px 14px 18px !important; border-radius: 22px;
}
.mm-cat-img {
  width: 100% !important; height: 140px !important; padding: 12px; border-radius: 16px;
  background: linear-gradient(180deg, #f3f8fc, #e6f0f8); object-fit: contain;
}
.mm-cat-card .mm-cat-label { font-size: 15px !important; }
.mm-cat-card > span { padding: 0 4px; }
.mm-cat-count::after { content: " →"; color: var(--brand); }
@media (min-width: 640px) {
  .mm-cat-card { padding: 18px 18px 22px !important; }
  .mm-cat-img { height: 220px !important; padding: 20px; }
  .mm-cat-card .mm-cat-label { font-size: 18px !important; }
  .mm-cat-count { font-size: 13.5px; }
}

/* ============================================================
   BATCH 20 — meruumind-style checkout, footer, search; hero split
   ============================================================ */
/* 4 · sections gone */
section:has(img[alt="Эмийн сав"]), section:has(> div > .relative.h-36) { display: none !important; }

/* 3 · header search */
header .mm-iconbtn[aria-label="Хайх"], .mm-searchwrap { display: none !important; }
.sb { flex: 1; max-width: 640px; display: flex; align-items: center; height: 52px; margin: 0 24px;
  border: 1px solid rgba(29,49,104,.16); border-radius: 26px; background: #fff; position: relative; }
.sb-cat { position: relative; height: 100%; border-right: 1px solid rgba(29,49,104,.14); }
.sb-cat > button { height: 100%; display: flex; align-items: center; gap: 8px; padding: 0 16px 0 20px; border: 0;
  background: none; cursor: pointer; font: inherit; font-size: 14.5px; font-weight: 600; color: var(--primary); white-space: nowrap; }
.sb-cat svg, .sb > button svg { width: 18px; height: 18px; }
.sb-cat ul { position: absolute; top: calc(100% + 8px); left: 0; z-index: 60; min-width: 260px; margin: 0; padding: 8px;
  list-style: none; background: #fff; border-radius: 16px; box-shadow: 0 20px 44px -16px rgba(29,49,104,.35); }
.sb-cat li { padding: 11px 14px; border-radius: 10px; font-size: 15px; color: var(--primary); cursor: pointer; }
.sb-cat li:hover { background: #f2f6fb; }
.sb-cat li[aria-selected="true"] { background: #eaf1fb; font-weight: 600; }
.sb-cat li[aria-selected="true"]::after { content: " ✓"; color: var(--brand); float: right; }
.sb input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: none; padding: 0 14px; font: inherit; font-size: 15px; color: var(--primary); }
.sb > button { width: 52px; height: 100%; border: 0; background: none; cursor: pointer; color: var(--primary); }
@media (min-width: 1024px) {
  header:has(.sb) { flex-wrap: wrap !important; row-gap: 14px; }
  header:has(.sb) > nav { order: 5; flex-basis: 100%; justify-content: center; margin: 0 auto; }
}
@media (max-width: 1023px) {
  header:has(.sb) { flex-wrap: wrap !important; }
  .sb { order: 9; flex-basis: 100%; max-width: none; margin: 12px 0 0; height: 46px; }
  .sb-cat > button span { max-width: 92px; overflow: hidden; text-overflow: ellipsis; }
}

/* 5 · hero: question left, doctor right */
@media (min-width: 1024px) {
  .bg-hero-gradient h1 {
    left: max(var(--mm-gutter), calc((100% - 1312px) / 2)) !important; right: 48% !important; top: 120px !important;
    text-align: left !important; white-space: normal !important; font-size: clamp(64px, 6.6vw, 104px) !important; line-height: .95 !important;
  }
  .bg-hero-gradient h1 > span { display: block !important; }
  .bg-hero-gradient > div:nth-of-type(1) {
    left: auto !important; right: max(var(--mm-gutter), calc((100% - 1312px) / 2)) !important;
    transform: none !important; width: 38% !important; max-width: 520px !important;
  }
  .bg-hero-gradient > div:nth-of-type(2) {
    right: 52% !important; flex-direction: column !important; align-items: flex-start !important; gap: 24px !important;
  }
  .bg-hero-gradient .mm-herofacts { text-align: left; }
}

/* 6 · inner page heroes: light ground, dark type */
.mm-hero { background: linear-gradient(90deg, rgba(246,250,253,.97) 0%, rgba(240,247,252,.9) 45%, rgba(225,239,248,.55) 100%),
  url('/assets/hero-bg-pale.jpg') center / cover !important; }
.mm-hero .mm-h1 { color: var(--primary) !important; }
.mm-hero .mm-lead { color: #3c4a6b !important; }
.mm-hero .mm-eyebrow { color: var(--primary) !important; }

/* 2 · footer */
.ft { margin: 56px 0 0; padding: 56px max(20px, calc((100% - 1312px) / 2)) 28px; color: #fff; border-radius: 28px 28px 0 0;
  background: linear-gradient(160deg, #23397a 0%, #1d3168 55%, #172a5a 100%); }
.ft-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 56px; }
.ft .mm-logo-main { color: #fff; } .ft .mm-logo-sub { color: rgba(255,255,255,.6); }
.ft-brand > p { margin: 18px 0 0; font-size: 15px; line-height: 1.65; color: rgba(255,255,255,.82); max-width: 44ch; }
.ft-ic { padding-left: 30px; position: relative; }
.ft-ic::before { position: absolute; left: 0; top: 1px; color: #7fd6df; }
.ft-pin::before { content: "⌖"; } .ft-tel::before { content: "☎"; } .ft-mail::before { content: "✉"; }
.ft a { color: inherit; text-decoration: none; }
.ft-soc { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.ft-soc a { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 7px; border-radius: 22px;
  background: rgba(255,255,255,.1); font-size: 14px; font-weight: 600; }
.ft-soc i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 15px; background: #fff; color: var(--primary); font-style: normal; font-weight: 800; }
.ft-h { margin: 26px 0 12px; font-size: 16px; font-weight: 700; color: #fff; }
.ft-pay { display: flex; flex-wrap: wrap; gap: 10px; }
.ft-pay img { height: 40px; border-radius: 8px; background: #fff; }
.ft-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.ft-cols .ft-h { margin-top: 4px; }
.ft-cols a { display: block; margin-top: 14px; font-size: 15px; color: rgba(255,255,255,.78); }
.ft-cols a:hover { color: #fff; }
.ft-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 44px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.14); font-size: 14px; color: rgba(255,255,255,.7); }
.ft-bottom p { margin: 0; } .ft-hours b { color: #fff; margin-right: 8px; }
@media (max-width: 900px) {
  .ft { padding: 40px 20px 24px; border-radius: 24px 24px 0 0; }
  .ft-top { grid-template-columns: 1fr; gap: 36px; }
  .ft-cols { grid-template-columns: 1fr 1fr; }
}

/* 1 · checkout */
.ck { padding: 8px 0 40px; }
.ck-title { text-align: center; padding-top: 24px; }
.ck-title h1 { margin: 0; font-size: clamp(36px, 5vw, 60px); color: var(--primary); }
.ck-title p { margin: 10px 0 0; color: var(--muted-foreground); }
.ck-title a { color: inherit; text-decoration: none; }
.ck-steps { display: flex; justify-content: center; gap: 0; list-style: none; margin: 36px auto; padding: 0; max-width: 640px; }
.ck-steps li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 15px; color: var(--muted-foreground); position: relative; }
.ck-steps li + li::before { content: ""; position: absolute; top: 22px; right: 50%; width: 100%; height: 2px; background: rgba(29,49,104,.12); z-index: -1; }
.ck-steps li.is-done::before, .ck-steps li.is-on::before { background: var(--primary); }
.ck-steps span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 22px; background: #fff;
  box-shadow: inset 0 0 0 2px rgba(29,49,104,.14); font-weight: 700; }
.ck-steps .is-done span { background: var(--primary); box-shadow: none; }
.ck-steps .is-done span::after { content: "✓"; color: #fff; }
.ck-steps .is-on { color: var(--primary); font-weight: 600; }
.ck-steps .is-on span { box-shadow: 0 0 0 4px #dfe8f6, inset 0 0 0 2px var(--primary); background: var(--primary); color: #fff; }
.ck-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.ck-grid[hidden] { display: none; }
.ck-left, .ck-right { display: grid; gap: 22px; }
.ck-right { position: sticky; top: 96px; }
.ck-card { background: #fff; border-radius: 24px; padding: 32px; box-shadow: 0 1px 2px rgba(29,49,104,.05), 0 18px 40px -28px rgba(29,49,104,.35); }
.ck-card[hidden], [data-ck-delivery][hidden] { display: none; }
[data-ck-delivery] { display: grid; gap: 22px; }
.ck-quick { text-align: center; }
.ck-quick > p { margin: 0 0 16px; color: var(--muted-foreground); }
.ck-quick > div { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ck-quick-btn { height: 64px; border: 1px solid rgba(29,49,104,.12); border-radius: 14px; background: #fff; cursor: pointer; padding: 8px; }
.ck-quick-btn img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ck-quick-btn.is-on { box-shadow: 0 0 0 2px var(--primary); }
.ck-quick em { display: flex; align-items: center; gap: 14px; margin-top: 18px; font-style: normal; font-size: 14px; color: var(--muted-foreground); }
.ck-quick em::before, .ck-quick em::after { content: ""; flex: 1; height: 1px; background: rgba(29,49,104,.12); }
.ck-head { display: flex; gap: 16px; margin-bottom: 22px; }
.ck-head > span { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 18px; background: #eaf1fb; color: var(--primary); font-weight: 700; }
.ck-head h2 { margin: 0; font-size: 24px; color: var(--primary); }
.ck-head p { margin: 4px 0 0; color: var(--muted-foreground); }
.ck-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ck-field { display: grid; gap: 8px; font-size: 15px; font-weight: 600; color: var(--primary); }
.ck-field.is-wide { grid-column: 1 / -1; }
.ck-field[hidden] { display: none; }
.ck-field > span { display: flex; justify-content: space-between; }
.ck-field i { font-style: normal; font-weight: 400; font-size: 13px; color: var(--muted-foreground); }
.ck-field input, .ck-field select, .ck-field textarea { width: 100%; min-height: 54px; padding: 14px 18px; border-radius: 12px;
  border: 1px solid rgba(29,49,104,.16); background: #fff; font: inherit; font-weight: 400; font-size: 16px; color: var(--primary); outline: none; }
.ck-field textarea { resize: vertical; }
.ck-field :focus { border-color: var(--brand); box-shadow: 0 0 0 4px #e6eefb; }
.ck .is-bad { border-color: #dc2626 !important; background: #fff6f6; }
.ck-method { display: flex; align-items: center; gap: 16px; padding: 18px 20px; margin-top: 12px; border-radius: 16px; cursor: pointer;
  border: 1px solid rgba(29,49,104,.14); }
.ck-method:first-of-type { margin-top: 0; }
.ck-method input { position: absolute; opacity: 0; }
.ck-method:has(input:checked) { border: 2px solid var(--primary); background: #f5f8fe; }
.ck-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #fff; color: var(--primary); flex: none; box-shadow: 0 2px 6px -2px rgba(29,49,104,.2); }
.ck-ico svg { width: 22px; height: 22px; }
.ck-method > span:nth-of-type(2) { flex: 1; display: grid; gap: 4px; }
.ck-method b { font-size: 17px; color: var(--primary); }
.ck-method small { color: var(--muted-foreground); font-size: 14px; }
.ck-method em { font-style: normal; font-weight: 700; color: var(--primary); white-space: nowrap; }
.ck-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.ck-slot { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-radius: 14px; cursor: pointer;
  border: 1px solid rgba(29,49,104,.14); font-size: 16px; color: var(--primary); }
.ck-slot input { width: 22px; height: 22px; accent-color: var(--primary); }
.ck-slot:has(input:checked) { border: 2px solid var(--primary); background: #f5f8fe; }
.ck-slot-any { font-weight: 600; }
.ck-tip { margin: 16px 0 0; color: var(--brand); font-size: 14.5px; }
.ck-sumhead { display: flex; justify-content: space-between; align-items: baseline; }
.ck-sumhead h2, .ck-h { margin: 0 0 18px; font-size: 24px; color: var(--primary); }
.ck-sumhead a { color: var(--brand); font-weight: 600; text-decoration: none; }
.ck-note { padding: 18px 20px; border-radius: 16px; background: #fff6dc; }
.ck-note[hidden] { display: none; }
.ck-note b { color: #3a2f00; } .ck-note p { margin: 8px 0 0; color: #5b4a12; font-size: 14.5px; line-height: 1.55; }
.ck-items { list-style: none; margin: 18px 0 0; padding: 0; }
.ck-items li { display: flex; align-items: center; gap: 14px; padding: 12px 0; }
.ck-thumb { position: relative; flex: none; width: 64px; height: 64px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px rgba(29,49,104,.1); display: grid; place-items: center; }
.ck-thumb img { width: 84%; height: 84%; object-fit: contain; }
.ck-thumb b { position: absolute; top: -8px; right: -8px; min-width: 24px; height: 24px; border-radius: 12px; background: var(--primary); color: #fff; font-size: 12px; display: grid; place-items: center; }
.ck-items li > div { flex: 1; min-width: 0; display: grid; gap: 4px; }
.ck-items li > div > a { font-weight: 600; color: var(--primary); text-decoration: none; }
.ck-items small { color: var(--muted-foreground); }
.ck-items em { font-style: normal; font-weight: 600; color: var(--primary); }
.ck-sum { margin: 12px 0 0; padding-top: 16px; border-top: 1px solid rgba(29,49,104,.1); display: grid; gap: 14px; }
.ck-sum div { display: flex; justify-content: space-between; color: var(--muted-foreground); font-size: 16px; }
.ck-sum dd { margin: 0; color: var(--primary); font-weight: 600; }
.ck-sum .is-total { padding-top: 16px; border-top: 1px solid rgba(29,49,104,.1); }
.ck-sum .is-total dt { color: var(--primary); font-weight: 700; font-size: 18px; }
.ck-sum .is-total dd { font-size: 30px; font-weight: 800; }
.ck-pays { display: grid; gap: 12px; }
.ck-pay { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; cursor: pointer; border: 1px solid rgba(29,49,104,.14); }
.ck-pay input { width: 22px; height: 22px; accent-color: var(--primary); flex: none; }
.ck-pay-logo { width: 116px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(29,49,104,.08); overflow: hidden; }
.ck-pay-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ck-pay-text { display: grid; gap: 3px; }
.ck-pay b { color: var(--primary); } .ck-pay small { color: var(--muted-foreground); font-size: 13.5px; }
.ck-pay:has(input:checked) { border: 2px solid var(--primary); background: #f5f8fe; }
.ck-pay.is-off { opacity: .55; cursor: not-allowed; } .ck-pay.is-off small { color: #b26b00; }
.ck-transfer { margin-top: 12px; padding: 16px 18px; border-radius: 14px; background: #f3f7fb; }
.ck-transfer[hidden] { display: none; }
.ck-transfer dl { margin: 0; display: grid; gap: 6px; } .ck-transfer div { display: flex; justify-content: space-between; font-size: 14px; }
.ck-transfer dt { color: var(--muted-foreground); } .ck-transfer dd { margin: 0; font-weight: 700; color: var(--primary); }
.ck-submit { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 60px; margin-top: 20px;
  border: 0; border-radius: 30px; background: var(--primary); color: #fff; font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; text-decoration: none; }
.ck-submit:disabled { opacity: .6; }
.ck-fine { margin: 14px 0 0; font-size: 13.5px; color: var(--muted-foreground); line-height: 1.5; }
.ck-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.ck-info > div { padding: 28px; border-radius: 22px; background: #fff; text-align: center; box-shadow: inset 0 0 0 1px rgba(29,49,104,.08); }
.ck-info b { font-size: 18px; color: var(--primary); } .ck-info p { margin: 10px 0 0; color: var(--muted-foreground); line-height: 1.55; }
.ck-info a { color: var(--brand); font-weight: 700; }
.ck-empty, .ck-done { max-width: 560px; margin: 0 auto; padding: 40px 28px; text-align: center; background: #fff; border-radius: 24px; }
.ck-empty[hidden], .ck-done[hidden] { display: none; }
.ck-empty p { font-size: 18px; color: var(--primary); font-weight: 600; }
.ck-done h2 { color: var(--primary); }
.ck-done-mark { display: inline-block; width: 60px; height: 60px; border-radius: 30px; background: #16a34a; }
@media (max-width: 960px) {
  .ck-grid { grid-template-columns: 1fr; } .ck-right { position: static; }
  .ck-card { padding: 22px 18px; } .ck-fields { grid-template-columns: 1fr; }
  .ck-quick > div { grid-template-columns: 1fr 1fr; } .ck-slots { grid-template-columns: 1fr 1fr; }
  .ck-info { grid-template-columns: 1fr; } .ck-method { flex-wrap: wrap; }
}
.ck { padding-left: max(16px, calc((100% - 1240px) / 2)) !important; padding-right: max(16px, calc((100% - 1240px) / 2)) !important; }
.ck-quick-btn:has(img[src*="qpay"]), .ck-pay-logo:has(img[src*="qpay"]), .ft-pay img[src*="qpay"] { background: #0b1638; }
.ck-quick-btn img[src*="qpay"], .ck-pay-logo img[src*="qpay"] { padding: 6px 10px; }
/* header: logo · search · icons on one row, nav as its own centred row */
@media (min-width: 1024px) {
  header:has(.sb)::after { content: ""; order: 4; flex-basis: 100%; height: 0; }
  header:has(.sb) > nav { flex: 0 0 auto !important; flex-basis: auto !important; margin: 0 auto !important; }
  header:has(.sb) { padding-bottom: 14px !important; }
  .bg-hero-gradient { margin-top: 8px !important; }
}
/* hero question: bigger */
@media (min-width: 1024px) { .bg-hero-gradient h1 { font-size: clamp(80px, 8.4vw, 132px) !important; right: 44% !important; } }
@media (max-width: 1023px) { .bg-hero-gradient h1 { font-size: min(14vw, 104px) !important; } }
@media (min-width: 1024px) {
  .bg-hero-gradient h1 { font-size: min(124px, 8.4vw) !important; right: 36% !important; top: 104px !important; }
  .bg-hero-gradient h1 > span { white-space: nowrap; }
}
@media (min-width: 1024px) { .bg-hero-gradient h1 { font-size: min(104px, 7vw) !important; } }
@media (max-width: 1023px) { .bg-hero-gradient h1 { font-size: min(11.5vw, 88px) !important; } }
/* header: nav row is plain links under a hairline, not a second floating capsule */
@media (min-width: 1024px) {
  header:has(.sb) { padding-bottom: 0 !important; row-gap: 10px !important; }
  header:has(.sb) > nav { background: none !important; border: 0 !important; box-shadow: none !important;
    padding: 6px 0 !important; flex-basis: 100% !important; justify-content: center; border-top: 1px solid rgba(29,49,104,.08) !important; border-radius: 0 !important; }
  header:has(.sb) > nav .mm-navlink { padding: 8px 14px !important; }
  /* the doctor fits inside the hero: head no longer cut by its top edge */
  .bg-hero-gradient > div:nth-of-type(1) { width: 32% !important; max-width: 430px !important; }
}
.mm-cat-img { background: #fff !important; box-shadow: inset 0 0 0 1px rgba(29,49,104,.06); }
/* nav: only three links, in the header row right after the search */
header nav > a.mm-navlink[href="/"], header nav > .mm-nav-item:has(> a[href="/products"]) { display: none !important; }
@media (min-width: 1024px) {
  header:has(.sb) { flex-wrap: nowrap !important; padding-bottom: 16px !important; }
  header:has(.sb)::after { display: none !important; }
  header:has(.sb) > nav { order: 0 !important; flex: 0 0 auto !important; flex-basis: auto !important; margin: 0 !important;
    padding: 0 !important; border-top: 0 !important; gap: 2px !important; }
  header:has(.sb) > nav .mm-navlink { padding: 8px 12px !important; background: none !important; color: var(--primary) !important;
    box-shadow: none !important; font-weight: 500 !important; }
  header:has(.sb) > nav .mm-navlink::before { display: none !important; }
  header:has(.sb) > nav .mm-navlink.is-active { font-weight: 700 !important; }
  header:has(.sb) > nav .mm-navlink:hover { color: var(--brand) !important; }
  .sb { max-width: 560px; margin: 0 16px 0 28px; }
}
@media (min-width: 1024px) and (max-width: 1279px) { header:has(.sb) > nav .mm-navlink { padding: 8px 8px !important; font-size: 13px !important; } .sb { margin: 0 8px 0 16px; } }
header .mm-logo { flex: none !important; }
@media (min-width:1024px) and (max-width:1279px) { header .mm-logo { width: 170px !important; height: 28px !important; } }
/* page background glow: barely there */
body::before { opacity: .28 !important; }
html, body { background-color: #f7fafd !important; }
.ft-right { display: grid; gap: 32px; align-content: start; }
.ft-map { display: block; border-radius: 20px; overflow: hidden; background: rgba(255,255,255,.08); box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
.ft-map iframe { display: block; width: 100%; height: 260px; border: 0; pointer-events: none; }
.ft-map span { display: block; padding: 12px 18px; font-size: 14px; font-weight: 600; }
.ft-map:hover span { color: #7fd6df; }
/* one pill: categories | search | page links */
.sb-links { display: none; }
@media (min-width: 1024px) {
  header:has(.sb) > nav { display: none !important; }
  .sb { flex: 1; max-width: none !important; margin: 0 24px !important; height: 56px; border-radius: 28px; }
  .sb input { min-width: 140px; }
  .sb > button[type="submit"] { border-right: 1px solid rgba(29,49,104,.14); width: 56px; }
  .sb-links { display: flex; align-items: center; height: 100%; padding: 0 10px; flex: none; }
  .sb-links a { padding: 8px 12px; border-radius: 18px; font-size: 14.5px; font-weight: 500; color: var(--primary); text-decoration: none; white-space: nowrap; }
  .sb-links a:hover { background: #f1f5fb; }
  .sb-links a.is-on { background: var(--primary); color: #fff; }
}
@media (min-width: 1024px) and (max-width: 1279px) { .sb-links a { padding: 8px 8px; font-size: 13px; } .sb { margin: 0 12px !important; } }
/* page links: a dropdown at the pill's right end, sliding down like the categories */
.sb-links { display: none !important; }
.sb-more { display: none; border-right: 0; border-left: 1px solid rgba(29,49,104,.14); }
.sb-more ul { left: auto; right: 0; min-width: 220px; }
.sb-more li { padding: 0; }
.sb-more li a { display: block; padding: 11px 14px; color: inherit; text-decoration: none; }
.sb-cat ul:not([hidden]) { animation: sb-drop .18s cubic-bezier(.22,1,.36,1); }
@keyframes sb-drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (min-width: 1024px) {
  .sb-more { display: block; }
  .sb { max-width: 760px !important; }
  .sb > button[type="submit"] { border-right: 0 !important; }
}
@media (min-width:1024px){ .bg-hero-gradient .mm-herofacts { max-width: 46ch !important; } .bg-hero-gradient .mm-herofacts p { font-size: 22px !important; line-height: 1.45 !important; margin-bottom: 16px !important; } .bg-hero-gradient .mm-herofacts span { font-size: 15px !important; font-weight: 600 !important; margin-bottom: 4px !important; } }
@media (max-width:1023px){ .bg-hero-gradient .mm-herofacts p { font-size: 18px !important; } .bg-hero-gradient .mm-herofacts span { font-size: 14px !important; } }
/* "Цааш үзэх": one big pill with its arrow inside */
.mt-6.hidden.justify-center.sm\:flex a > span + span { display: none !important; }
.mt-6.hidden.justify-center.sm\:flex a > span:first-child {
  height: 60px; padding: 0 36px !important; gap: 12px; border-radius: 30px !important;
  background: var(--primary) !important; color: #fff !important; font-size: 17px !important; font-weight: 600 !important;
}
.mt-6.hidden.justify-center.sm\:flex a > span:first-child svg { display: none; }
.mt-6.hidden.justify-center.sm\:flex a > span:first-child::after {
  content: ""; width: 18px; height: 18px; background: currentColor;
  -webkit-mask: var(--mm-arrow) center / contain no-repeat; mask: var(--mm-arrow) center / contain no-repeat;
}
.mt-6.hidden.justify-center.sm\:flex { margin-top: 40px !important; }

/* ============ BATCH 21 ============ */
/* 1 · product cards: centred, full names, rows aligned */
.group.shadow-card { text-align: center; }
.group.shadow-card > p:nth-of-type(1) { -webkit-line-clamp: unset !important; display: block !important; overflow: visible !important;
  min-height: 2.5em; text-align: center !important; }
.group.shadow-card > p:nth-of-type(2), .group.shadow-card > div:last-of-type > span, .group.shadow-card > p:nth-of-type(3) {
  text-align: center !important; align-self: center !important; justify-content: center; }
.group.shadow-card > div:last-of-type { margin-top: auto !important; align-items: center !important; }
.group.shadow-card > div:last-of-type > button { align-self: stretch; }
.mm-pcard-body { text-align: center; align-items: center; }
.mm-pcard-body .mm-stock { align-self: center; }
.mm-pcard-meta { white-space: normal; }
/* 2 · featured categories, meruumind tiles */
.mm-cat-card { background: none !important; box-shadow: none !important; padding: 0 !important; align-items: center !important; gap: 0 !important; text-align: center; }
.mm-cat-card > span { align-items: center; padding: 0 !important; }
.mm-cat-img { order: -1; aspect-ratio: 221 / 237; height: auto !important; width: 100% !important; padding: 18px !important; border-radius: 28px;
  background: radial-gradient(70% 70% at 50% 42%, #fbfbfa 0%, #f1f1ef 70%, #e9e9e6 100%) !important; box-shadow: none !important;
  transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s; }
.mm-cat-card:hover .mm-cat-img { transform: translateY(-6px); box-shadow: 0 22px 40px -24px rgba(29,49,104,.4) !important; }
.mm-cat-card .mm-cat-label { margin-top: 18px; font-size: 19px !important; font-weight: 600 !important; letter-spacing: -.02em; }
.mm-cat-count { margin-top: 4px; font-size: 13px; } .mm-cat-count::after { content: "" !important; }
@media (max-width: 639px) { .mm-cat-card .mm-cat-label { font-size: 16px !important; margin-top: 12px; } }
/* 3 · payment logos: centred, Pocket filled */
.ck-quick-btn, .ck-pay-logo { display: grid; place-items: center; overflow: hidden; padding: 6px !important; }
.ck-quick-btn img, .ck-pay-logo img { max-width: 88%; max-height: 82%; margin: auto; object-fit: contain; }
.ck-quick-btn:has(img[src*="pocket"]), .ck-pay-logo:has(img[src*="pocket"]), .ft-pay img[src*="pocket"] { background: #e8344e !important; }
.ck-quick-btn:has(img[src*="qpay"]) img, .ck-pay-logo:has(img[src*="qpay"]) img { padding: 0 !important; max-width: 70%; }
.ck-quick-btn:has(img[src*="tdb"]) img { max-height: 92%; }
/* 5 · footer icons */
.ft-soc i { color: var(--primary); } .ft-soc i svg { width: 16px; height: 16px; }
.ft-ic::before { content: "" !important; width: 18px; height: 18px; background: #7fd6df; top: 2px !important; }
.ft-pin::before { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M12 22s7-6 7-12a7 7 0 0 0-14 0c0 6 7 12 7 12z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E") center/contain no-repeat; }
.ft-tel::before { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1 1 .4 1.9.7 2.8a2 2 0 0 1-.5 2.1L8 9.9a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.8.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E") center/contain no-repeat; }
.ft-mail::before { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-10 6L2 7'/%3E%3C/svg%3E") center/contain no-repeat; }
/* 6 · "Цааш үзэх" on phones too */
@media (max-width: 639px) { .mt-6.hidden.justify-center.sm\:flex { display: flex !important; } .mt-6.hidden.justify-center.sm\:flex a, .mt-6.hidden.justify-center.sm\:flex a > span:first-child { width: 100%; justify-content: center; } }
/* 8 · no account */
a[href="/account"] { display: none !important; }
/* 9 · phone search: one clean pill */
@media (max-width: 1023px) { .sb { margin: 12px 0 0 !important; height: 50px; } .sb > .sb-cat:first-child { display: none; } .sb input { padding-left: 20px; } }
/* 10 · "Манай бүтээгдэхүүн" heading + chips */
h2:has(+ .pp-chips) { text-align: center !important; font-family: var(--font-sans, inherit) !important; text-transform: none !important;
  font-size: clamp(30px, 4vw, 44px) !important; font-weight: 700 !important; letter-spacing: -.02em; }
h2:has(+ .pp-chips)::before { display: none !important; }
.pp-chips { justify-content: center; margin: 22px 0 8px !important; }
@media (max-width: 639px) { .pp-chips { justify-content: flex-start; } }
/* 11 · checkout bar: no ghost strip */
.mm-co-bar { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; box-shadow: 0 10px 24px -14px rgba(10,20,60,.5) !important;
  bottom: calc(10px + env(safe-area-inset-bottom)) !important; }
html::after { display: none !important; }
/* 12 · maps link in pickup */
.ck-maps { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 6px 12px; border-radius: 16px; background: #eaf1fb;
  font-size: 13.5px; font-weight: 600; color: var(--brand); text-decoration: none; width: max-content; }
.ck-maps::before { content: "📍"; font-size: 12px; }
.ck-method em { align-self: flex-start; }
.mm-cat-card { flex-direction: column !important; justify-content: flex-start !important; border: 0 !important; overflow: visible !important; }
.mm-cat-card > img.mm-cat-img { order: 0 !important; }
.mm-cat-card > span { order: 1 !important; }

/* ============ BATCH 22 ============ */
/* 1 · doctor lower: head clear of the header */
@media (min-width: 1024px) { .bg-hero-gradient > div:nth-of-type(1) { width: 30% !important; max-width: 400px !important; bottom: -24px !important; } }
/* 2 · category tiles: white with a soft lift */
.mm-cat-img { background: #fff !important; box-shadow: 0 1px 2px rgba(29,49,104,.06), 0 16px 34px -22px rgba(29,49,104,.35) !important; }
/* 3 · "Бүх ангилал" bigger */
section:has(.mm-cat-card) a.underline { font-size: 17px !important; font-weight: 600 !important; padding: 12px 22px; border-radius: 26px;
  background: #fff; text-decoration: none !important; box-shadow: 0 0 0 1px rgba(29,49,104,.12); gap: 10px !important; }
section:has(.mm-cat-card) a.underline svg { width: 20px !important; height: 20px !important; }
/* 4 · walking boot on its own white plate (its white toe cap was being eaten) */
.relative.h-28.overflow-hidden.rounded-2xl > img[src*="legbrace"] { background: #fff; border-radius: 18px; padding: 10px; aspect-ratio: 1 / 1;
  height: 70% !important; filter: none !important; box-shadow: 0 14px 28px -14px rgba(0,0,0,.4); object-fit: contain; }
/* 5 · checkout step connectors visible */
.ck-steps { position: relative; z-index: 0; }
.ck-steps li + li::before { z-index: 0 !important; top: 21px !important; height: 3px !important; background: rgba(29,49,104,.16) !important; }
.ck-steps li.is-done::before, .ck-steps li.is-on::before { background: var(--primary) !important; }
.ck-steps span { position: relative; z-index: 1; }
.ck-qr { display: block; width: 240px; height: 240px; margin: 12px auto; border-radius: 16px; box-shadow: 0 0 0 1px rgba(29,49,104,.1); }
.ck-banks { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; margin: 16px 0; }
.ck-banks a { display: grid; justify-items: center; gap: 6px; padding: 10px 6px; border-radius: 14px; background: #f3f7fb; color: var(--primary); font-size: 11.5px; text-decoration: none; text-align: center; }
.ck-banks img { width: 44px; height: 44px; border-radius: 11px; }
.ck-wait { font-weight: 600; color: var(--brand); } .ck-wait.is-paid { color: #138a4b; }
/* featured categories: one swipeable row at narrow widths */
@media (max-width: 1023px) {
  section > .grid:has(> .mm-cat-card) { display: flex !important; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    gap: 14px !important; margin-left: calc(-1 * var(--mm-gutter)); margin-right: calc(-1 * var(--mm-gutter));
    padding: 4px var(--mm-gutter) 24px; scroll-padding-left: var(--mm-gutter); }
  section > .grid:has(> .mm-cat-card)::-webkit-scrollbar { display: none; }
  section > .grid:has(> .mm-cat-card) > .mm-cat-card { flex: 0 0 44%; scroll-snap-align: start; }
}
@media (min-width: 640px) and (max-width: 1023px) { section > .grid:has(> .mm-cat-card) > .mm-cat-card { flex-basis: 30%; } }

/* ============ hero slider ============ */
.bg-hero-gradient > h1, .bg-hero-gradient > div:not(.hs-slide):not(.hs-dots) { transition: opacity .6s ease, transform .6s cubic-bezier(.22,1,.36,1); }
.bg-hero-gradient:not([data-hs="0"])[data-hs] > h1,
.bg-hero-gradient:not([data-hs="0"])[data-hs] > div:not(.hs-slide):not(.hs-dots) { opacity: 0 !important; transform: translateX(-40px); pointer-events: none; }
.hs-slide { position: absolute; inset: 0; z-index: 25; display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: 0 max(var(--mm-gutter), calc((100% - 1312px) / 2)); opacity: 0; transform: translateX(40px); pointer-events: none;
  transition: opacity .6s ease, transform .6s cubic-bezier(.22,1,.36,1); }
.hs-slide.is-on { opacity: 1; transform: none; pointer-events: auto; }
.hs-text { max-width: 640px; }
.hs-kicker { margin: 0 0 14px; font-size: 17px; font-weight: 600; color: var(--mint-ink); }
.hs-h { margin: 0; font-family: var(--font-display); font-weight: 800; line-height: .95; letter-spacing: -.012em; font-size: clamp(44px, 6.2vw, 96px); color: var(--primary); }
.hs-h span { display: block; } .hs-h span + span { color: var(--brand); }
.hs-p { margin: 22px 0 0; max-width: 46ch; font-size: 18px; line-height: 1.55; color: #3c4a6b; }
.hs-cta { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; height: 54px; padding: 0 28px; border-radius: 27px;
  background: var(--primary); color: #fff; font-size: 16px; font-weight: 600; text-decoration: none; }
.hs-cta::after { content: ""; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--mm-arrow) center/contain no-repeat; mask: var(--mm-arrow) center/contain no-repeat; }
.hs-img { width: min(36%, 460px); max-height: 78%; object-fit: contain; filter: drop-shadow(0 30px 40px rgba(29,49,104,.25)); }
.hs-dots { position: absolute; z-index: 30; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; gap: 8px; }
.hs-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 5px; background: rgba(29,49,104,.25); cursor: pointer; transition: width .3s, background-color .3s; }
.hs-dots button.is-on { width: 28px; background: var(--primary); }
.hs-arrow { position: absolute; z-index: 30; top: 50%; width: 48px; height: 48px; margin-top: -24px; border: 0; border-radius: 24px; cursor: pointer;
  background: rgba(255,255,255,.85); box-shadow: 0 6px 18px -8px rgba(29,49,104,.4); }
.hs-arrow::after { content: ""; display: block; width: 20px; height: 20px; margin: auto; background: var(--primary); -webkit-mask: var(--mm-arrow) center/contain no-repeat; mask: var(--mm-arrow) center/contain no-repeat; }
.hs-prev { left: 14px; } .hs-prev::after { transform: scaleX(-1); } .hs-next { right: 14px; }
@media (max-width: 1023px) {
  .hs-slide { flex-direction: column; justify-content: center; text-align: center; padding: 40px 20px 60px; }
  .hs-text { display: flex; flex-direction: column; align-items: center; }
  .hs-p { font-size: 15.5px; } .hs-img { width: 60%; max-height: 38%; } .hs-arrow { display: none; }
}
/* phone header after meruumind: ☰ · logo … cart, then a full-width search pill */
@media (max-width: 1023px) {
  header:has(.sb) { display: flex !important; flex-wrap: wrap !important; align-items: center; column-gap: 14px !important; row-gap: 0 !important; }
  header:has(.sb) > div.flex.items-center { display: contents !important; }
  header:has(.sb) button[aria-label="Цэс"], header:has(.sb) [data-mm-burger] { order: 0; }
  header:has(.sb) .mm-logo { order: 1; margin-right: auto; }
  header:has(.sb) a[aria-label="Сагс"] { order: 2; border: 0 !important; background: none !important; box-shadow: none !important; }
  header:has(.sb) a[aria-label="Сагс"] svg { width: 26px !important; height: 26px !important; }
  header:has(.sb) .mm-badge { background: var(--primary) !important; color: #fff !important; }
  .sb { order: 9; flex-basis: 100%; height: 54px !important; margin: 14px 0 0 !important; border-radius: 27px !important;
    box-shadow: 0 2px 10px -6px rgba(29,49,104,.25); }
  .sb input { padding-left: 50px !important; font-size: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa3b5' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") 20px center / 20px no-repeat; }
  .sb > button[type="submit"] svg { width: 24px !important; height: 24px !important; stroke-width: 2.4; color: #111; }
  .sb > button[type="submit"] { width: 58px; }
}
/* slide card after meruumind: inset rounded card, pill tag, dot capsule with pause */
.bg-hero-gradient { border-radius: 36px !important; margin-left: max(12px, calc((100% - 1440px) / 2)) !important; margin-right: max(12px, calc((100% - 1440px) / 2)) !important; }
.hs-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 20px;
  background: rgba(255,255,255,.8); box-shadow: inset 0 0 0 1px rgba(29,49,104,.1); color: var(--primary) !important; font-size: 15px !important; }
.hs-kicker::before { content: ""; width: 8px; height: 8px; border-radius: 4px; background: var(--mint-deep); }
.hs-kicker-1 { position: absolute; z-index: 21; left: max(var(--mm-gutter), calc((100% - 1312px) / 2)); top: 56px; margin: 0; transition: opacity .6s; }
.bg-hero-gradient:not([data-hs="0"])[data-hs] > .hs-kicker-1 { opacity: 0; }
.hs-dots { align-items: center; gap: 10px !important; padding: 10px 14px; border-radius: 22px; background: rgba(15,24,48,.45);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); bottom: 26px !important; }
.hs-dots button:not(.hs-pause) { width: 8px !important; height: 8px !important; background: rgba(255,255,255,.55) !important; }
.hs-dots button.is-on { width: 16px !important; height: 16px !important; background: transparent !important; box-shadow: inset 0 0 0 3px #fff; border-radius: 8px !important; }
.hs-pause { position: relative; width: 18px; height: 18px; padding: 0; border: 0; background: none; cursor: pointer; margin-left: 6px; }
.hs-pause::before, .hs-pause::after { content: ""; position: absolute; top: 3px; width: 4px; height: 12px; border-radius: 1px; background: #fff; }
.hs-pause::before { left: 4px; } .hs-pause::after { right: 4px; }
.hs-pause.is-paused::after { display: none; }
.hs-pause.is-paused::before { left: 5px; top: 2px; width: 0; height: 0; border-radius: 0; background: none; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent #fff; }
@media (max-width: 1023px) {
  .bg-hero-gradient { border-radius: 30px !important; margin: 12px 12px 0 !important; }
  .hs-kicker-1 { position: static; align-self: center; margin: 28px auto -8px; }
  .bg-hero-gradient { display: flex !important; flex-direction: column; }
}
/* header (logo + search + cart) stays pinned on scroll, like meruumind.
   overflow:hidden on the page wrapper breaks sticky; clip keeps the crop without that */
.overflow-hidden.bg-background, body > div.overflow-hidden { overflow: clip !important; }
header.bg-card, header:has(.sb) {
  position: sticky !important; top: 0 !important; z-index: 80 !important;
  background: rgba(255,255,255,.96) !important;
  -webkit-backdrop-filter: saturate(160%) blur(14px) !important; backdrop-filter: saturate(160%) blur(14px) !important;
  box-shadow: 0 1px 0 rgba(29,49,104,.06), 0 10px 24px -20px rgba(29,49,104,.35) !important;
}
/* phones: shorter hero card */
@media (max-width: 1023px) {
  .bg-hero-gradient { height: min(640px, 82svh) !important; min-height: 0 !important; overflow: hidden !important; }
  .bg-hero-gradient > div:nth-of-type(1) { width: 58% !important; max-width: 260px !important; margin-top: 4px !important; }
  .bg-hero-gradient > div:nth-of-type(2) { padding-bottom: 64px !important; }
  .bg-hero-gradient .mm-herofacts p { font-size: 15px !important; margin-bottom: 8px !important; }
  .hs-slide { padding: 28px 20px 70px !important; gap: 14px; }
  .hs-h { font-size: clamp(32px, 9.5vw, 46px) !important; }
  .hs-p { font-size: 14.5px !important; margin-top: 14px !important; }
  .hs-cta { margin-top: 18px !important; height: 48px !important; }
  .hs-img { width: 46% !important; max-height: 30% !important; }
}
@media (max-width: 1023px) {
  .bg-hero-gradient .mm-herofacts { display: none !important; }
  .bg-hero-gradient > div:nth-of-type(2) { position: absolute !important; left: 0; right: 0; bottom: 74px; padding: 0 !important; z-index: 22; }
  .bg-hero-gradient > div:nth-of-type(2) a > span:first-child { box-shadow: 0 10px 24px -10px rgba(29,49,104,.6); }
}
/* phones: dots sit right under the button, card ends just after them */
@media (max-width: 1023px) {
  .bg-hero-gradient { height: 500px !important; }
  .hs-img { display: none !important; }
  .hs-slide { justify-content: flex-start !important; padding: 64px 20px 0 !important; }
  .hs-dots { bottom: 18px !important; }
  .bg-hero-gradient > div:nth-of-type(2) { bottom: 66px !important; }
  .bg-hero-gradient > div:nth-of-type(1) { width: 50% !important; max-width: 220px !important; }
}
@media (max-width: 1023px) { .bg-hero-gradient { height: 462px !important; } .hs-slide { padding-top: 48px !important; } }
/* slider dots: a plain row under the card */
.hs-dots { position: static !important; transform: none !important; display: flex !important; justify-content: center; gap: 8px !important;
  margin: 14px auto 0; padding: 0 !important; background: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.hs-dots button:not(.hs-pause) { width: 8px !important; height: 8px !important; border-radius: 4px !important; box-shadow: none !important;
  background: rgba(29,49,104,.22) !important; transition: width .3s, background-color .3s; }
.hs-dots button.is-on { width: 24px !important; height: 8px !important; background: var(--primary) !important; }
.hs-pause { display: none !important; }
@media (max-width: 1023px) {
  .bg-hero-gradient { overflow: hidden !important; }
  .bg-hero-gradient > div:nth-of-type(2) { bottom: 20px !important; }
}
@media (max-width: 1023px) { .hs-slide .hs-cta { position: absolute; left: 50%; transform: translateX(-50%); bottom: 20px; margin: 0 !important; white-space: nowrap; } }
/* phones: slides 2–3 show their product between heading and button */
@media (max-width: 1023px) {
  .hs-p { display: none !important; }
  .hs-img { display: block !important; position: absolute; left: 50%; transform: translateX(-50%); bottom: 82px;
    width: auto !important; height: 168px; max-height: none !important; max-width: 70%; object-fit: contain;
    filter: drop-shadow(0 16px 20px rgba(29,49,104,.22)); }
  .hs-slide { padding-top: 40px !important; }
}
@media (max-width: 1023px) {
  html.mm-scrolled header:has(.sb) .mm-logo { display: none !important; }
  html.mm-scrolled header:has(.sb) .sb { order: 1 !important; flex: 1 1 auto !important; flex-basis: auto !important; margin: 0 !important; height: 46px !important; }
  html.mm-scrolled header:has(.sb) { padding-top: 10px !important; padding-bottom: 10px !important; }
  header:has(.sb) .sb, header:has(.sb) .mm-logo { transition: height .2s ease; }
}
@media (max-width: 1023px) { html.mm-scrolled header:has(.sb) { flex-wrap: nowrap !important; } html.mm-scrolled header:has(.sb) .sb { min-width: 0 !important; width: auto !important; } html.mm-scrolled header:has(.sb) a[aria-label="Сагс"] { order: 2 !important; flex: none; } }
@media (max-width: 1023px) { html.mm-scrolled header:has(.sb) .sb { flex: 1 1 0% !important; width: 100% !important; max-width: none !important; } html.mm-scrolled header:has(.sb) .sb input { width: 100%; } }
/* plain white page background everywhere */
html, body { background: #fff !important; }
body::before { display: none !important; }
.bg-background { background: #fff !important; }
/* desktop header after the grocero reference: logo · search · icons, text nav row beneath */
.tn { display: none; }
@media (min-width: 1024px) {
  header:has(.sb) { flex-wrap: wrap !important; justify-content: space-between; row-gap: 6px !important; padding-top: 20px !important; padding-bottom: 6px !important;
    background: #fff !important; box-shadow: 0 1px 0 rgba(29,49,104,.08) !important; }
  header:has(.sb) .sb { flex: 0 1 560px !important; margin: 0 auto !important; height: 50px !important; }
  header:has(.sb) .sb-more { display: none !important; }
  header:has(.sb) > div.flex.items-center { min-width: 210px; justify-content: flex-end; }
  header:has(.sb) .mm-iconbtn { border: 0 !important; background: none !important; box-shadow: none !important; }
  .tn { display: flex; flex-basis: 100%; justify-content: center; gap: 34px; padding: 10px 0 12px; }
  .tn a { font-size: 15px; color: #4a5470; text-decoration: none; padding-bottom: 2px; border-bottom: 1.5px solid transparent; }
  .tn a:hover { color: var(--primary); }
  .tn a.is-on { color: var(--primary); font-weight: 600; border-bottom-color: var(--primary); }
}
@media (min-width: 1024px) and (max-width: 1279px) { .tn { gap: 20px; } .tn a { font-size: 14px; } }
@media (min-width: 1024px) { header:has(.sb) > nav.tn { display: flex !important; order: 10; background: none !important; border: 0 !important; box-shadow: none !important; padding: 10px 0 12px !important; margin: 0 !important; flex-basis: 100% !important; border-radius: 0 !important; } }
@media (min-width: 1024px) { header:has(.sb) > nav.tn { gap: 34px !important; } header:has(.sb) > nav.tn a { padding: 0 0 3px !important; } }
@media (min-width: 1024px) and (max-width: 1279px) { header:has(.sb) > nav.tn { gap: 20px !important; } }
/* desktop: a smaller hero slider card */
@media (min-width: 1024px) {
  .bg-hero-gradient { min-height: 0 !important; height: 560px !important; overflow: hidden !important;
    margin-left: max(24px, calc((100% - 1312px) / 2)) !important; margin-right: max(24px, calc((100% - 1312px) / 2)) !important; border-radius: 28px !important; }
  .bg-hero-gradient h1 { top: 84px !important; font-size: min(84px, 6vw) !important; }
  .hs-kicker-1 { top: 32px !important; }
  .bg-hero-gradient > div:nth-of-type(1) { width: 26% !important; max-width: 330px !important; }
  .bg-hero-gradient > div:nth-of-type(2) { bottom: 36px !important; }
  .bg-hero-gradient .mm-herofacts p { font-size: 17px !important; }
  .hs-slide { padding: 0 64px !important; }
  .hs-h { font-size: clamp(40px, 4.6vw, 68px) !important; }
  .hs-p { font-size: 16px !important; margin-top: 16px !important; }
  .hs-cta { margin-top: 22px !important; height: 50px !important; }
  .hs-img { width: min(30%, 360px) !important; max-height: 72% !important; }
}
/* slide with the doctor holding the walking boot: standing on the card's bottom edge */
.hs-person .hs-img { align-self: flex-end; max-height: 96% !important; width: auto !important; height: 96%; filter: none; margin-right: 4%; }
@media (max-width: 1023px) {
  .hs-person .hs-img { height: 200px !important; bottom: 74px !important; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
}
/* desktop: when scrolled, only logo · search · icons stay pinned (the link row folds away) */
@media (min-width: 1024px) {
  html.mm-scrolled header:has(.sb) > nav.tn { display: none !important; }
  html.mm-scrolled header:has(.sb) { padding-top: 14px !important; padding-bottom: 14px !important;
    background: rgba(255,255,255,.88) !important; -webkit-backdrop-filter: saturate(160%) blur(16px) !important; backdrop-filter: saturate(160%) blur(16px) !important; }
}
/* white page: cards need a visible edge */
.group.shadow-card, .mm-pcard, .ck-card, .mm-card, .mm-form, .mm-pd-main, .mm-pd-thumbs > *, .bg-hero-gradient {
  border: 1px solid rgba(29,49,104,.13) !important;
  box-shadow: 0 1px 2px rgba(29,49,104,.08), 0 6px 14px -4px rgba(29,49,104,.14), 0 22px 44px -18px rgba(29,49,104,.38) !important; }

/* "Онцлох ангилал" heading centred, one line, like "Манай бүтээгдэхүүн" */
section.pt-10 > div.items-end.justify-between:first-child { position: relative; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
section.pt-10 > div.items-end.justify-between:first-child > :first-child { text-align: center; margin-inline: auto; }
section.pt-10 > div.items-end.justify-between:first-child > :first-child br { content: ""; }
section.pt-10 > div.items-end.justify-between:first-child > :first-child br::after { content: " "; }
section.pt-10 > div.items-end.justify-between:first-child > :first-child::before { margin-inline: auto; }
@media (min-width: 768px) {
  section.pt-10 > div.items-end.justify-between:first-child > a { position: absolute; right: 0; bottom: 0; }
}

/* category tiles: visible edge on the white page */
.mm-cat-img { border: 1px solid rgba(29,49,104,.13) !important;
  box-shadow: 0 1px 2px rgba(29,49,104,.08), 0 6px 14px -4px rgba(29,49,104,.14), 0 22px 44px -18px rgba(29,49,104,.38) !important; }
section > .grid:has(> .mm-cat-card) { padding: 6px 6px 34px !important; margin-left: -6px !important; margin-right: -6px !important; }
/* "Онцлох ангилал" on one line on every screen */
section.pt-10 > div.items-end.justify-between:first-child > :first-child { white-space: nowrap; }
@media (max-width: 639px) { section.pt-10 > div.items-end.justify-between:first-child > :first-child { font-size: clamp(24px, 8vw, 34px) !important; } }

/* "Эмнэлгийн хэрэгслүүд" heading in the same type as "Онцлох ангилал" */
h2.font-display-cond.sm\:text-center { font-family: "Roboto Flex", Manrope, sans-serif !important; font-weight: 800 !important;
  text-transform: uppercase !important; letter-spacing: -0.02em !important; line-height: .95 !important; text-align: center; }

/* payment ways that are not connected yet */
[data-ck-pay][hidden], .ck-quick-btn[hidden] { display: none !important; }

/* back brace: wearer's height / weight / sex */
.mm-pd-body { margin-top: 18px; padding: 16px; border: 1px solid rgba(29,49,104,.15); border-radius: 16px; }
.mm-pd-body > p { font-weight: 700; margin-bottom: 10px; color: var(--primary); }
.mm-pd-body > p em { font-style: normal; font-weight: 500; font-size: 12px; color: #c0392b; margin-left: 6px; }
.mm-pd-bodyrow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mm-pd-bodyrow label { display: grid; gap: 4px; font-size: 13px; color: var(--muted-foreground); }
.mm-pd-bodyrow input { height: 44px; border: 1px solid rgba(29,49,104,.2); border-radius: 12px; padding: 0 12px; font-size: 16px; color: var(--foreground); background: #fff; }
.mm-pd-sex { display: flex; gap: 8px; margin-top: 10px; }
.mm-pd-sex button { flex: 1; height: 44px; border-radius: 12px; border: 1px solid rgba(29,49,104,.2); background: #fff; font-weight: 600; }
.mm-pd-sex button[aria-pressed="true"] { background: var(--primary); color: #fff; border-color: var(--primary); }
.mm-pd-body small { display: block; margin-top: 8px; color: #c0392b; font-weight: 600; }
.mm-pd-body.is-bad { border-color: #c0392b; }
.ck-items small + small { display: block; }

.ck-items small.ck-pre { display: inline-block; margin-top: 2px; color: #b26a00; font-weight: 600; }


/* ===== Design refinement (review 2026-11-14): calmer, less "AI template" =====
   one radius scale (12px cards, 16px hero), thin borders instead of heavy
   shadows, consistent product cards, larger readable type. */
:root { --mm-navy: #193768; --mm-blue: #2865AD; --mm-light: #EAF3FA; --mm-section: #F6F8FA; --mm-text: #303945; --mm-line: #E3E8EF; }

/* hero: the outgoing slide leaves first, the next one comes in after it, so
   two headlines never show on top of each other */
.hs-slide { transition: opacity .2s ease, transform .2s ease !important; }
.hs-slide.is-on { transition: opacity .45s ease .2s, transform .45s cubic-bezier(.22,1,.36,1) .2s !important; }
.bg-hero-gradient > h1, .bg-hero-gradient > div:not(.hs-slide):not(.hs-dots), .bg-hero-gradient > .hs-kicker-1 {
  transition: opacity .45s ease .2s, transform .45s cubic-bezier(.22,1,.36,1) .2s !important; }
.bg-hero-gradient:not([data-hs="0"])[data-hs] > h1,
.bg-hero-gradient:not([data-hs="0"])[data-hs] > div:not(.hs-slide):not(.hs-dots),
.bg-hero-gradient:not([data-hs="0"])[data-hs] > .hs-kicker-1 { transition: opacity .2s ease, transform .2s ease !important; }
.bg-hero-gradient { border-radius: 16px !important; }

/* header: search a little narrower, more air for logo and cart */
@media (min-width: 1024px) { header .sb { max-width: 640px !important; } }

/* cards: white, thin border, faint shadow, 12px corners */
.group.shadow-card, .mm-pcard, .ck-card, .mm-card, .mm-form, .mm-pd-main, .mm-pd-thumbs > *, .mm-cat-img {
  border: 1px solid var(--mm-line) !important; border-radius: 12px !important;
  box-shadow: 0 1px 2px rgba(16,24,40,.05) !important; }
.group.shadow-card:hover, .mm-pcard:hover { box-shadow: 0 6px 18px -8px rgba(25,55,104,.25) !important; }
.mm-cat-card:hover .mm-cat-img { box-shadow: 0 6px 18px -8px rgba(25,55,104,.25) !important; }
.bg-hero-gradient { border: 0 !important; box-shadow: none !important; }

/* product cards: same image box, same order, equal height */
.mm-pcard { display: flex; flex-direction: column; background: #fff; overflow: hidden; }
.mm-pcard-img { aspect-ratio: 1 / 1; display: grid; place-items: center; background: #fff; padding: 14px; }
.mm-pcard-img img { width: 100%; height: 100%; object-fit: contain; }
.mm-pcard-body { display: flex; flex-direction: column; flex: 1; gap: 4px; }
.mm-pcard-name { font-size: 17px !important; font-weight: 700 !important; color: var(--mm-text) !important; line-height: 1.3; }
.mm-pcard-meta { font-size: 13px !important; color: #6b7686 !important; }
.mm-pcard-price { font-size: 22px !important; font-weight: 800 !important; color: var(--mm-navy) !important; margin-top: auto; padding-top: 6px; }
.mm-pcard-cta { min-height: 46px; border-radius: 10px !important; }
.group.shadow-card a.aspect-square { background: #fff; }
.group.shadow-card > p.font-bold, .group.shadow-card .line-clamp-2 { font-size: 16px !important; color: var(--mm-text) !important; }
.group.shadow-card .text-sm.font-bold { font-size: 20px !important; color: var(--mm-navy) !important; }

/* catalogue tools */
.mm-ptools { display: flex; justify-content: flex-end; align-items: center; gap: 14px; margin: 14px 0 4px; }
.mm-instock { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--mm-text); cursor: pointer; }
.mm-instock input { width: 18px; height: 18px; accent-color: var(--mm-navy); }
.mm-sort { width: auto !important; min-width: 180px; }

/* forms: 48px controls */
.mm-input, .mm-select, .ck-card input:not([type=radio]):not([type=checkbox]), .ck-card select { min-height: 48px; border-radius: 10px !important; }
.mm-btn, .ck-submit { min-height: 48px; border-radius: 10px !important; }

/* readable text for older customers */
.mm-p { font-size: 16px !important; line-height: 1.65 !important; }
@media (max-width: 767px) { .mm-p, .ck-card p, .mm-pd-info p { font-size: 16px !important; } }


/* ===== Design refinement, part 2 ===== */
/* type scale (desktop): hero 60, page title 42, section 32, product 18, body 16 */
@media (min-width: 1024px) {
  .bg-hero-gradient h1, .hs-h { font-size: 60px !important; line-height: 1.04 !important; letter-spacing: -0.01em !important; }
  .bg-hero-gradient h1 span, .hs-h span { font-size: inherit !important; }
  section > div > h2.font-display-cond, section h2.font-display-cond, .mm-why-h { font-size: 32px !important; line-height: 1.1 !important; }
  .mm-hero h1, .mm-pd-title { font-size: 42px !important; line-height: 1.12 !important; }
}
@media (max-width: 1023px) {
  .bg-hero-gradient h1, .hs-h { font-size: 38px !important; line-height: 1.05 !important; }
  section h2.font-display-cond, .mm-why-h { font-size: 26px !important; }
  .mm-hero h1, .mm-pd-title { font-size: 30px !important; }
}
/* all hero slides share one kicker / headline / button look */
.hs-kicker, .hs-kicker-1 { font-size: 14px !important; font-weight: 600 !important; }


/* section rhythm: ~88px between home sections on desktop, 56px on phones */
@media (min-width: 1024px) {
  .overflow-hidden.bg-background > section:not(.bg-hero-gradient):not(.mm-b2b-only) { padding-top: 88px !important; }
}
@media (max-width: 1023px) {
  .overflow-hidden.bg-background > section:not(.bg-hero-gradient):not(.mm-b2b-only) { padding-top: 56px !important; }
}

/* no decorative gradients: solid brand colours */
.mm-b2b-only { grid-template-columns: 1fr !important; }
.mm-b2b-only > :first-child { display: none !important; }
.mm-b2b-only > * { background: var(--mm-navy) !important; background-image: none !important; }

/* "Яагаад МЕД МАЙНД?" — editorial, no icons, no boxes */
.mm-why { padding-left: var(--mm-gutter, 16px); padding-right: var(--mm-gutter, 16px); max-width: 1312px; margin: 0 auto; }
@media (min-width: 640px) { .mm-why { padding-left: 32px; padding-right: 32px; } }
@media (min-width: 1024px) { .mm-why { padding-left: 40px; padding-right: 40px; } }
.mm-why-h { font-family: "Roboto Flex", Manrope, sans-serif; font-weight: 800; text-transform: uppercase; color: var(--mm-navy); text-align: center; }
.mm-why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 32px; }
.mm-why-grid > div { border-top: 2px solid var(--mm-navy); padding-top: 16px; }
.mm-why-grid h3 { font-size: 18px; font-weight: 700; color: var(--mm-text); }
.mm-why-grid p { margin-top: 8px; font-size: 16px; line-height: 1.6; color: #5b6575; }
@media (max-width: 900px) { .mm-why-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }
@media (max-width: 520px) { .mm-why-grid { grid-template-columns: 1fr; } }

/* even header navigation */
nav.tn { gap: 36px !important; }
nav.tn a { padding-left: 0 !important; padding-right: 0 !important; margin: 0 !important; }

/* product categories = shopping cards; business specialties = editorial list */
html[data-page="specialty"] .mm-card { background: none !important; border: 0 !important; border-top: 2px solid var(--mm-navy) !important;
  border-radius: 0 !important; box-shadow: none !important; padding: 18px 0 0 !important; }

/* photo zoom */
.mm-pd-main img { cursor: zoom-in; }
.mm-zoom { position: fixed; inset: 0; z-index: 200; background: rgba(15,23,42,.82); display: grid; place-items: center; cursor: zoom-out; padding: 24px; }
.mm-zoom img { max-width: min(1100px, 100%); max-height: 90vh; object-fit: contain; background: #fff; border-radius: 12px; }
.mm-zoom button { position: absolute; top: 16px; right: 20px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; font-size: 26px; line-height: 1; }

/* phones: product photos larger in the cards (desktop unchanged) */
@media (max-width: 767px) {
  .group.shadow-card { padding: 8px !important; }
  .group.shadow-card a.aspect-square, .mm-pcard-img { overflow: hidden; }
  .group.shadow-card a.aspect-square img, .mm-pcard-img img { width: 100% !important; height: 100% !important; object-fit: contain; transform: scale(1.15); }
  .mm-pcard-img { padding: 6px !important; }
}
@media (max-width: 767px) {
  /* these photos already fill the frame (brand logo at the edge) — keep them whole */
  .group.shadow-card a.aspect-square img[src*="msilsy8d"], .group.shadow-card a.aspect-square img[src*="msilnbto"],
  .mm-pcard-img img[src*="msilsy8d"], .mm-pcard-img img[src*="msilnbto"] { transform: none; }
}

/* ===== Mobile QA pass (2026-11-14): genuine remaining issues only ===== */
@media (max-width: 999px) {
  /* room for the floating order bar also above the iPhone home indicator */
  html[data-page="checkout"] body { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  /* while the keyboard is up the bar would sit on the field being typed in */
  html.mm-typing .mm-co-bar { display: none !important; }
}
@media (max-width: 767px) {
  /* 44px touch areas without changing how the controls look */
  .group.shadow-card > button.absolute, .mm-co-qty button { position: relative; }
  .group.shadow-card > button.absolute::after { content: ""; position: absolute; inset: -8px; }
  .mm-co-qty button::after { content: ""; position: absolute; inset: -8px -4px; }
  /* long maker names: one line in product cards */
  .mm-pcard-meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
/* small phones: hero slide headlines (ГЭРЭЭТ НИЙЛҮҮЛЭЛТ) stay inside the screen */
@media (max-width: 767px) { .hs-h { font-size: clamp(24px, 7.2vw, 34px) !important; } .hs-h span { white-space: normal !important; } }

/* phones: bigger product photo, smaller product name (2026-11-14) */
@media (max-width: 767px) {
  .group.shadow-card { padding: 6px !important; }
  .group.shadow-card a.aspect-square img, .mm-pcard-img img { transform: scale(1.24); }
  .mm-pcard-img { padding: 2px !important; }
  .group.shadow-card p.line-clamp-2, .group.shadow-card > p.font-bold, .mm-pcard-name, .mm-pcard-name a {
    font-size: 14px !important; line-height: 1.3 !important; font-weight: 700 !important; }
}
/* the price rule (.text-sm.font-bold) also caught the product name — name gets its own size */
.group.shadow-card p.line-clamp-2.text-sm.font-bold { font-size: 16px !important; line-height: 1.3 !important; }
@media (max-width: 767px) { .group.shadow-card p.line-clamp-2.text-sm.font-bold { font-size: 14px !important; } }
/* wishlist heart stays in its top-right corner (touch area comes from ::after) */
.group.shadow-card > button.absolute { position: absolute !important; }

/* payment confirmed message: soft rise, ring draws, tick draws, text follows */
.ck-paid { text-align: center; padding: 8px 4px; animation: ckPaidIn .7s cubic-bezier(.22,1,.36,1) both; }
.ck-paid-ico { position: relative; width: 76px; height: 76px; margin: 0 auto 14px; }
.ck-paid-ico::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: rgba(22,163,74,.18);
  animation: ckPaidRing 1.6s cubic-bezier(.22,1,.36,1) .55s both; }
.ck-paid-ico svg { position: relative; width: 100%; height: 100%; }
.ck-paid-c { fill: #16a34a; stroke: #16a34a; stroke-width: 2; stroke-dasharray: 151; stroke-dashoffset: 151; fill-opacity: 0;
  animation: ckPaidCircle .6s cubic-bezier(.65,0,.45,1) .15s forwards, ckPaidFill .35s ease .6s forwards; }
.ck-paid-k { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 36; stroke-dashoffset: 36;
  animation: ckPaidCircle .4s cubic-bezier(.65,0,.45,1) .75s forwards; }
.ck-paid h3, .ck-paid p { opacity: 0; animation: ckPaidText .6s cubic-bezier(.22,1,.36,1) both; }
.ck-paid h3 { animation-delay: .9s; }
.ck-paid p:nth-of-type(1) { animation-delay: 1s; }
.ck-paid p:nth-of-type(2) { animation-delay: 1.08s; }
.ck-paid p:nth-of-type(3) { animation-delay: 1.16s; }
.ck-paid p:nth-of-type(4) { animation-delay: 1.24s; }
.ck-paid h3 { font-size: 22px; font-weight: 800; color: var(--primary); }
.ck-paid p { margin-top: 8px; font-size: 16px; line-height: 1.5; }
.ck-paid .ck-paid-main { font-size: 19px; font-weight: 700; color: #16a34a; }
.ck-paid-help { color: #5b6575; }
.ck-paid a { font-weight: 700; color: var(--primary); }
@keyframes ckPaidIn { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes ckPaidCircle { to { stroke-dashoffset: 0; } }
@keyframes ckPaidFill { to { fill-opacity: 1; } }
@keyframes ckPaidRing { 0% { transform: scale(.8); opacity: 0; } 30% { opacity: 1; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes ckPaidText { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .ck-paid, .ck-paid *, .ck-paid-ico::before { animation: none !important; opacity: 1 !important; stroke-dashoffset: 0 !important; fill-opacity: 1 !important; }
}
.ck-done:has(.ck-paid) > .ck-done-mark, .ck-done:has(.ck-paid) > h2 { display: none !important; }

/* per-size remaining count on product pages */
.mm-pd-sizes button { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; min-width: 64px; }
.mm-pd-sizes button small { font-size: 11px; font-weight: 600; opacity: .75; margin-top: 3px; }
.mm-pd-sizes button[disabled] { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.mm-pd-sizes p em { font-style: normal; font-weight: 600; color: var(--muted-foreground); margin-left: 4px; }

/* remaining per size on product cards */
.mm-pcard-sizes { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin: 6px 0 2px; }
.mm-pcard-sizes span { font-size: 12px; padding: 2px 7px; border-radius: 999px; background: #eef4fb; color: #1d3168; }
.mm-pcard-sizes span b { font-weight: 700; }
.mm-pcard-sizes span.is-out { background: #f3f4f6; color: #9aa3b2; text-decoration: line-through; }
