/* ==========================================================================
   Miss Merylin design system (Phase 2): tokens + components.
   Extends the live tokens in style.css (§1); nothing here restyles existing markup. Components use the
   .mm-c-* namespace and are adopted page by page in Phase 4. Contrast values: docs/DESIGN-MM.md.
   ========================================================================== */

:root {
	/* Colour */
	--mm-ink: #1a1a1a;
	--mm-ink-2: #6b6b6b;          /* secondary text, 5.1:1 on paper (replaces #888 for text) */
	--mm-rose: #c8556a;           /* fills, marks, large type only */
	--mm-rose-text: #b0445a;      /* rose small text, ≥ 4.75:1 on every surface */
	--mm-rose-ink: #9e3a50;       /* pressed rose; white text 6.6:1 */
	--mm-paper: #fafaf8;
	--mm-line: #ebebeb;
	--mm-success: #2f6b4f;
	--mm-warn: #8a5a00;
	--mm-error: #b3261e;
	--mm-scrim: rgb(26 26 26 / .4);

	/* Type */
	--mm-ff-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
	--mm-ff-text: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--mm-t-display: clamp(32px, 8vw, 48px);
	--mm-t-h1: 28px;
	--mm-t-h2: 22px;
	--mm-t-h3: 17px;
	--mm-t-body: 15px;
	--mm-t-ui: 14px;
	--mm-t-small: 13px;
	--mm-t-over: 11px;

	/* Space (4/8 scale; existing --mm-s-1..6 = 4..32) */
	--mm-s-7: 48px;
	--mm-s-8: 64px;
	--mm-gutter: 16px;

	/* Elevation */
	--mm-e1: 0 1px 2px rgb(0 0 0 / .04);
	--mm-e2: 0 6px 24px rgb(0 0 0 / .08);
	--mm-e3: 0 -8px 32px rgb(0 0 0 / .12);

	/* Motion */
	--mm-ease: cubic-bezier(.2, .8, .2, 1);
	--mm-d-state: 200ms;
	--mm-d-sheet: 280ms;
	--mm-d-page: 400ms;

	/* Safe areas */
	--mm-safe-b: env(safe-area-inset-bottom, 0px);
	--mm-safe-t: env(safe-area-inset-top, 0px);
	--mm-focus: 0 0 0 2px var(--mm-paper), 0 0 0 4px var(--mm-rose);
}
@media (min-width: 768px) { :root { --mm-gutter: 24px; } }
@media (prefers-reduced-motion: reduce) {
	:root { --mm-d-state: 1ms; --mm-d-sheet: 120ms; --mm-d-page: 120ms; }
}

/* ---------- Box model: components never depend on a theme-wide reset ---------- */
[class*="mm-c-"], [class*="mm-c-"]::before, [class*="mm-c-"]::after { box-sizing: border-box; }

/* ---------- Browser surfaces inside DS components ---------- */
.mm-ds-scope ::selection { background: var(--mm-blush, #f5ede8); color: var(--mm-ink); }
.mm-ds-scope { caret-color: var(--mm-rose); accent-color: var(--mm-rose); }
.mm-c-focus:focus-visible,
.mm-ds-scope :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: none; box-shadow: var(--mm-focus); }

/* ---------- Type helpers ---------- */
.mm-c-display { font: 300 var(--mm-t-display)/1.05 var(--mm-ff-display); letter-spacing: -.01em; color: var(--mm-ink); margin: 0; text-wrap: balance; }
.mm-c-h1 { font: 500 var(--mm-t-h1)/1.1 var(--mm-ff-display); color: var(--mm-ink); margin: 0; text-wrap: balance; }
.mm-c-h2 { font: 500 var(--mm-t-h2)/1.2 var(--mm-ff-display); color: var(--mm-ink); margin: 0; text-wrap: balance; }
.mm-c-h3 { font: 600 var(--mm-t-h3)/1.3 var(--mm-ff-text); color: var(--mm-ink); margin: 0; }
.mm-c-body { font: 400 var(--mm-t-body)/1.5 var(--mm-ff-text); color: var(--mm-ink); max-width: 68ch; }
.mm-c-meta { font: 400 var(--mm-t-small)/1.4 var(--mm-ff-text); color: var(--mm-ink-2); }
.mm-c-crumb { font: 600 var(--mm-t-over)/1.2 var(--mm-ff-text); letter-spacing: .18em; text-transform: uppercase; color: var(--mm-rose-text); text-decoration: none; }
.mm-c-crumb:hover { text-decoration: underline; text-underline-offset: 3px; }
.mm-c-price { font: 600 var(--mm-t-body)/1 var(--mm-ff-text); font-variant-numeric: tabular-nums; color: var(--mm-ink); }
.mm-c-price s { font-weight: 400; color: var(--mm-ink-2); margin-left: 6px; }
.mm-c-price .mm-c-off { font-weight: 600; color: var(--mm-rose-text); margin-left: 6px; }

/* ---------- Icons ---------- */
.mm-c-ico { width: 24px; height: 24px; flex: none; }
.mm-c-ico--s { width: 18px; height: 18px; }

/* ---------- Buttons ---------- */
.mm-c-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 0 24px; border: 1px solid transparent; border-radius: 0;
	font: 600 var(--mm-t-ui)/1 var(--mm-ff-text); letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
	cursor: pointer; transition: background-color var(--mm-d-state) var(--mm-ease), color var(--mm-d-state) var(--mm-ease), transform var(--mm-d-state) var(--mm-ease);
	-webkit-tap-highlight-color: transparent;
}
.mm-c-btn:active { transform: scale(.98); }
.mm-c-btn--primary { background: var(--mm-ink); color: #fff; }
.mm-c-btn--primary:hover { background: #000; }
.mm-c-btn--secondary { background: #fff; color: var(--mm-ink); border-color: var(--mm-ink); border-radius: 999px; }
.mm-c-btn--secondary:hover { background: var(--mm-blush, #f5ede8); }
.mm-c-btn--rose { background: var(--mm-rose-ink); color: #fff; border-radius: 999px; }
.mm-c-btn--rose:hover { background: #8a3046; }
.mm-c-btn--block { width: 100%; }
.mm-c-btn[disabled], .mm-c-btn[aria-disabled="true"] { background: var(--mm-line); color: var(--mm-ink-2); border-color: transparent; cursor: not-allowed; transform: none; }
.mm-c-btn[aria-busy="true"] { color: transparent; position: relative; pointer-events: none; }
.mm-c-btn[aria-busy="true"]::after {
	content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
	border: 2px solid rgb(255 255 255 / .35); border-top-color: #fff; animation: mm-spin .7s linear infinite;
}
.mm-c-btn--secondary[aria-busy="true"]::after { border-color: rgb(26 26 26 / .2); border-top-color: var(--mm-ink); }
.mm-c-link { color: var(--mm-ink); font: 500 var(--mm-t-ui)/1.3 var(--mm-ff-text); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; background: none; border: 0; padding: 0; cursor: pointer; }
.mm-c-link:hover { color: var(--mm-rose-text); }
.mm-c-iconbtn {
	display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
	border: 1px solid var(--mm-ink); background: #fff; color: var(--mm-ink); cursor: pointer;
	transition: background-color var(--mm-d-state) var(--mm-ease), transform var(--mm-d-state) var(--mm-ease);
}
.mm-c-iconbtn:hover { background: var(--mm-blush, #f5ede8); }
.mm-c-iconbtn:active { transform: scale(.94); }
@keyframes mm-spin { to { transform: rotate(360deg); } }

/* ---------- Inputs ---------- */
.mm-c-field { display: grid; gap: 6px; min-width: 0; }
.mm-c-field label { font: 500 var(--mm-t-small)/1.3 var(--mm-ff-text); color: var(--mm-ink); }
.mm-c-field .mm-c-hint { font: 400 12px/1.4 var(--mm-ff-text); color: var(--mm-ink-2); }
.mm-c-input {
	height: 48px; width: 100%; padding: 0 14px; border: 1px solid #cfcfcf; border-radius: 4px; background: #fff;
	font: 400 16px/1.2 var(--mm-ff-text); color: var(--mm-ink);
	transition: border-color var(--mm-d-state) var(--mm-ease), box-shadow var(--mm-d-state) var(--mm-ease);
}
.mm-c-input::placeholder { color: var(--mm-ink-2); }
.mm-c-input:hover { border-color: var(--mm-ink-2); }
.mm-c-input:focus { outline: none; border-color: var(--mm-ink); box-shadow: 0 0 0 3px rgb(200 85 106 / .22); }
.mm-c-input[aria-invalid="true"] { border-color: var(--mm-error); }
.mm-c-input:disabled { background: var(--mm-offwhite, #f7f4f0); color: var(--mm-ink-2); }
.mm-c-error { display: flex; gap: 6px; align-items: flex-start; font: 500 var(--mm-t-small)/1.4 var(--mm-ff-text); color: var(--mm-error); }
.mm-c-prefix { display: flex; }
.mm-c-prefix span { display: grid; place-items: center; padding: 0 12px; border: 1px solid #cfcfcf; border-right: 0; border-radius: 4px 0 0 4px; background: var(--mm-offwhite, #f7f4f0); font: 500 16px/1 var(--mm-ff-text); color: var(--mm-ink-2); }
.mm-c-prefix .mm-c-input { border-radius: 0 4px 4px 0; min-width: 0; flex: 1; }
.mm-c-otp { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; max-width: 336px; }
.mm-c-otp .mm-c-input { min-width: 0; text-align: center; padding: 0; font: 600 20px/1 var(--mm-ff-text); font-variant-numeric: tabular-nums; }

/* ---------- Chips, size chips, swatches ---------- */
.mm-c-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.mm-c-chips::-webkit-scrollbar { display: none; }
.mm-c-chip {
	display: inline-flex; align-items: center; gap: 6px; flex: none; height: 36px; padding: 0 14px;
	border: 1px solid #d6d6d6; border-radius: 8px; background: #fff; color: var(--mm-ink);
	font: 500 var(--mm-t-ui)/1 var(--mm-ff-text); cursor: pointer; white-space: nowrap;
	transition: background-color var(--mm-d-state) var(--mm-ease), border-color var(--mm-d-state) var(--mm-ease);
}
.mm-c-chip:hover { border-color: var(--mm-ink); }
.mm-c-chip[aria-pressed="true"], .mm-c-chip.is-active { background: var(--mm-blush, #f5ede8); border-color: var(--mm-ink); }
.mm-c-chip__n { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--mm-ink); color: #fff; font-size: 11px; font-weight: 600; }
.mm-c-sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.mm-c-size {
	min-width: 52px; height: 44px; padding: 0 12px; border: 1px solid #d6d6d6; border-radius: 4px; background: #fff;
	font: 500 var(--mm-t-ui)/1 var(--mm-ff-text); color: var(--mm-ink); cursor: pointer;
	transition: border-color var(--mm-d-state) var(--mm-ease), background-color var(--mm-d-state) var(--mm-ease);
}
.mm-c-size:hover { border-color: var(--mm-ink); }
.mm-c-size[aria-checked="true"] { background: var(--mm-ink); border-color: var(--mm-ink); color: #fff; }
.mm-c-size[aria-disabled="true"] { color: var(--mm-ink-2); background: linear-gradient(to top right, transparent calc(50% - .5px), #cfcfcf calc(50% - .5px), #cfcfcf calc(50% + .5px), transparent calc(50% + .5px)); cursor: not-allowed; }
.mm-c-swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.mm-c-swatch { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgb(0 0 0 / .12); background: var(--sw, #ddd); cursor: pointer; position: relative; }
.mm-c-swatch[aria-checked="true"] { box-shadow: 0 0 0 2px var(--mm-paper), 0 0 0 3.5px var(--mm-ink); }

/* ---------- Badges + status ---------- */
.mm-c-badge {
	display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: 999px;
	font: 600 var(--mm-t-over)/1 var(--mm-ff-text); letter-spacing: .12em; text-transform: uppercase;
	background: rgb(255 255 255 / .92); color: var(--mm-ink);
}
.mm-c-badge .mm-c-ico { width: 13px; height: 13px; }
.mm-c-badge--new { background: var(--mm-ink); color: #fff; }
.mm-c-badge--sale { background: var(--mm-rose-ink); color: #fff; }
.mm-c-status { display: inline-flex; align-items: center; gap: 6px; font: 600 12px/1 var(--mm-ff-text); color: var(--mm-ink); }
.mm-c-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.mm-c-status--ok { color: var(--mm-success); }
.mm-c-status--warn { color: var(--mm-warn); }
.mm-c-status--bad { color: var(--mm-error); }
.mm-c-status--active { color: var(--mm-rose-text); }

/* ---------- Product card ---------- */
.mm-c-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
@media (min-width: 768px) { .mm-c-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 16px; } }
@media (min-width: 1200px) { .mm-c-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mm-c-card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.mm-c-card__media { position: relative; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: var(--bg, var(--mm-offwhite, #f7f4f0)); }
.mm-c-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--mm-d-page) var(--mm-ease); }
@media (hover: hover) { .mm-c-card:hover .mm-c-card__media img { transform: scale(1.03); } }
.mm-c-card__badge { position: absolute; top: 8px; left: 8px; }
.mm-c-card__heart {
	position: absolute; top: 6px; right: 6px; width: 40px; height: 40px; display: grid; place-items: center;
	border: 0; border-radius: 50%; background: rgb(255 255 255 / .92); color: var(--mm-ink); cursor: pointer;
	transition: transform var(--mm-d-state) var(--mm-ease), color var(--mm-d-state) var(--mm-ease);
}
.mm-c-card__heart .mm-c-ico { width: 20px; height: 20px; }
.mm-c-card__heart[aria-pressed="true"] { color: var(--mm-rose); }
.mm-c-card__heart[aria-pressed="true"] path { fill: currentColor; }
.mm-c-card__heart:active { transform: scale(.88); }
.mm-c-card__body { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 8px; padding-top: 10px; align-items: end; }
.mm-c-card__name { grid-column: 1 / -1; font: 400 var(--mm-t-small)/1.35 var(--mm-ff-text); color: var(--mm-ink); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.mm-c-card__name::after { content: ""; position: absolute; inset: 0; z-index: 0; } /* whole card is the link target */
.mm-c-card__heart, .mm-c-card__add { z-index: 1; }
.mm-c-card__price { font-size: var(--mm-t-ui); }
.mm-c-card__price s, .mm-c-card__price .mm-c-off { font-size: 12px; margin-left: 4px; }
.mm-c-card__add { width: 40px; height: 40px; }
@media (max-width: 380px) { .mm-c-card__price s { display: none; } }

/* ---------- Rail ---------- */
.mm-c-rail { display: grid; gap: 16px; }
.mm-c-rail__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 0 var(--mm-gutter); }
.mm-c-rail__all { font: 600 12px/1 var(--mm-ff-text); letter-spacing: .12em; text-transform: uppercase; color: var(--mm-ink); text-decoration: underline; text-underline-offset: 4px; }
.mm-c-rail__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * var(--mm-gutter) - 2 * 12px) / 2.3); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--mm-gutter); padding: 0 var(--mm-gutter); scrollbar-width: none; }
.mm-c-rail__track::-webkit-scrollbar { display: none; }
.mm-c-rail__track > * { scroll-snap-align: start; }
@media (min-width: 768px) { .mm-c-rail__track { grid-auto-columns: calc((100% - 2 * var(--mm-gutter) - 3 * 16px) / 4); gap: 16px; } }

/* ---------- Bottom sheet (native <dialog>: focus trap, Esc, inert page) ---------- */
.mm-c-sheet {
	position: fixed; inset: auto 0 0 0; margin: 0; width: 100%; max-width: none; max-height: min(86vh, 720px);
	padding: 0; border: 0; border-radius: 20px 20px 0 0; background: #fff; color: var(--mm-ink); box-shadow: var(--mm-e3);
	display: flex; flex-direction: column; overflow: hidden;
	transform: translateY(100%); transition: transform var(--mm-d-sheet) var(--mm-ease), overlay var(--mm-d-sheet) allow-discrete, display var(--mm-d-sheet) allow-discrete;
}
.mm-c-sheet:not([open]) { display: none; }
.mm-c-sheet[open] { transform: none; }
@starting-style { .mm-c-sheet[open] { transform: translateY(100%); } }
.mm-c-sheet::backdrop { background: var(--mm-scrim); opacity: 0; transition: opacity var(--mm-d-sheet) var(--mm-ease), overlay var(--mm-d-sheet) allow-discrete, display var(--mm-d-sheet) allow-discrete; }
.mm-c-sheet[open]::backdrop { opacity: 1; }
@starting-style { .mm-c-sheet[open]::backdrop { opacity: 0; } }
@media (min-width: 768px) {
	.mm-c-sheet { inset: 0 0 0 auto; width: 420px; max-height: none; height: 100%; border-radius: 16px 0 0 16px; transform: translateX(100%); }
	@starting-style { .mm-c-sheet[open] { transform: translateX(100%); } }
}
.mm-c-sheet__handle { width: 40px; height: 4px; border-radius: 2px; background: #d6d6d6; margin: 8px auto 0; flex: none; }
@media (min-width: 768px) { .mm-c-sheet__handle { display: none; } }
.mm-c-sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px var(--mm-gutter) 12px; border-bottom: 1px solid var(--mm-line); }
.mm-c-sheet__close { width: 44px; height: 44px; margin-right: -10px; display: grid; place-items: center; border: 0; background: none; color: var(--mm-ink); cursor: pointer; border-radius: 50%; }
.mm-c-sheet__body { padding: 16px var(--mm-gutter); overflow-y: auto; overscroll-behavior: contain; flex: 1; display: grid; gap: 24px; align-content: start; }
.mm-c-sheet__foot { display: flex; gap: 12px; padding: 12px var(--mm-gutter) calc(12px + var(--mm-safe-b)); border-top: 1px solid var(--mm-line); background: #fff; }
.mm-c-sheet__foot .mm-c-btn--primary { flex: 1; }

/* ---------- Sticky add bar ---------- */
.mm-c-addbar {
	position: sticky; bottom: 0; z-index: 20; display: flex; align-items: center; gap: 16px;
	padding: 10px var(--mm-gutter) calc(10px + var(--mm-safe-b)); background: rgb(255 255 255 / .97); box-shadow: var(--mm-e2);
}
.mm-c-addbar__price { display: grid; gap: 2px; }
.mm-c-addbar__price .mm-c-meta { font-size: 12px; }
.mm-c-addbar .mm-c-btn { flex: 1; }

/* ---------- Accordion ---------- */
.mm-c-acc { border-top: 1px solid var(--mm-line); }
.mm-c-acc details { border-bottom: 1px solid var(--mm-line); }
.mm-c-acc summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; cursor: pointer; list-style: none; font: 600 var(--mm-t-ui)/1.3 var(--mm-ff-text); }
.mm-c-acc summary::-webkit-details-marker { display: none; }
.mm-c-acc summary .mm-c-ico { transition: transform var(--mm-d-state) var(--mm-ease); }
.mm-c-acc details[open] summary .mm-c-ico { transform: rotate(180deg); }
.mm-c-acc .mm-c-acc__body { padding: 0 0 16px; font: 400 var(--mm-t-ui)/1.6 var(--mm-ff-text); color: var(--mm-ink); }
.mm-c-dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; }
.mm-c-dl dt { color: var(--mm-ink-2); }
.mm-c-dl dd { margin: 0; }

/* ---------- Delivery / trust lines ---------- */
.mm-c-lines { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.mm-c-lines li { display: flex; gap: 10px; align-items: flex-start; font: 400 var(--mm-t-ui)/1.45 var(--mm-ff-text); }
.mm-c-lines li .mm-c-ico { width: 20px; height: 20px; color: var(--mm-ink); margin-top: 0; }
.mm-c-lines b { font-weight: 600; }

/* ---------- Timeline ---------- */
.mm-c-timeline { list-style: none; margin: 0; padding: 0; display: grid; }
.mm-c-timeline li { position: relative; display: grid; grid-template-columns: 24px 1fr; gap: 12px; padding-bottom: 20px; }
.mm-c-timeline li::before { content: ""; position: absolute; left: 11px; top: 18px; bottom: -2px; width: 2px; background: var(--mm-line); }
.mm-c-timeline li:last-child::before { display: none; }
.mm-c-timeline li.is-done::before { background: var(--mm-ink); }
.mm-c-timeline__dot { width: 14px; height: 14px; margin: 3px 5px; border-radius: 50%; border: 2px solid #cfcfcf; background: #fff; position: relative; z-index: 1; }
.mm-c-timeline li.is-done .mm-c-timeline__dot { background: var(--mm-ink); border-color: var(--mm-ink); }
.mm-c-timeline li.is-current .mm-c-timeline__dot { background: var(--mm-rose); border-color: var(--mm-rose); box-shadow: 0 0 0 4px rgb(200 85 106 / .18); }
.mm-c-timeline__t { font: 600 var(--mm-t-ui)/1.3 var(--mm-ff-text); }
.mm-c-timeline li:not(.is-done):not(.is-current) .mm-c-timeline__t { color: var(--mm-ink-2); font-weight: 500; }
.mm-c-timeline__sub { font: 400 12px/1.4 var(--mm-ff-text); color: var(--mm-ink-2); margin-top: 2px; }
.mm-c-timeline__events { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; font: 400 12px/1.4 var(--mm-ff-text); color: var(--mm-ink-2); }

/* ---------- Progress ---------- */
.mm-c-progress { height: 4px; border-radius: 2px; background: var(--mm-line); overflow: hidden; }
.mm-c-progress span { display: block; height: 100%; width: var(--p, 0%); background: var(--mm-ink); border-radius: 2px; transition: width var(--mm-d-page) var(--mm-ease); }

/* ---------- Order card (account) ---------- */
.mm-c-order { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--mm-line); border-radius: 12px; background: #fff; box-shadow: var(--mm-e1); }
.mm-c-order__top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.mm-c-order__no { font: 600 var(--mm-t-ui)/1 var(--mm-ff-text); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.mm-c-order__thumbs { display: flex; gap: 6px; }
.mm-c-order__thumbs img, .mm-c-order__thumbs span { width: 48px; height: 60px; border-radius: 6px; object-fit: cover; background: var(--mm-offwhite, #f7f4f0); }
.mm-c-order__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.mm-c-order__actions .mm-c-btn { min-height: 40px; padding: 0 16px; font-size: 12px; }

/* ---------- Toast ---------- */
.mm-c-toast {
	position: fixed; left: 50%; bottom: calc(var(--mm-shell-bottom, 0px) + 16px + var(--mm-safe-b)); z-index: 100;
	display: flex; align-items: center; gap: 16px; max-width: calc(100% - 32px); padding: 12px 16px; border-radius: 12px;
	background: var(--mm-ink); color: #fff; box-shadow: var(--mm-e2); font: 500 var(--mm-t-ui)/1.3 var(--mm-ff-text);
	transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
	transition: transform var(--mm-d-sheet) var(--mm-ease), opacity var(--mm-d-sheet) var(--mm-ease);
}
.mm-c-toast.is-on { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.mm-c-toast a, .mm-c-toast button { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }

/* ---------- Skeleton ---------- */
.mm-c-skel { background: var(--mm-offwhite, #f7f4f0); border-radius: 6px; position: relative; overflow: hidden; }
.mm-c-skel::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgb(255 255 255 / .55), transparent); animation: mm-shimmer 1.4s var(--mm-ease) infinite; }
@media (prefers-reduced-motion: reduce) { .mm-c-skel::after { display: none; } }
@keyframes mm-shimmer { to { transform: translateX(100%); } }

/* ---------- Empty state ---------- */
.mm-c-empty { display: grid; justify-items: center; gap: 16px; padding: var(--mm-s-7) var(--mm-gutter); text-align: center; }
.mm-c-empty p { margin: 0; font: 300 24px/1.2 var(--mm-ff-display); font-style: italic; color: var(--mm-ink); text-wrap: balance; }

/* ---------- Notice ---------- */
.mm-c-note { display: flex; gap: 10px; padding: 12px 14px; border-radius: 8px; background: var(--mm-blush, #f5ede8); font: 400 var(--mm-t-small)/1.45 var(--mm-ff-text); color: var(--mm-ink); }
.mm-c-note--error { background: #fbeceb; color: var(--mm-error); }
.mm-c-note .mm-c-ico { width: 20px; height: 20px; flex: none; }

/* ---------- Gallery page only ---------- */
.mm-ds { background: var(--mm-paper); color: var(--mm-ink); font-family: var(--mm-ff-text); padding: 24px 0 var(--mm-s-8); }
.mm-ds__wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--mm-gutter); display: grid; gap: var(--mm-s-7); }
.mm-ds__sec { display: grid; gap: 16px; }
.mm-ds__sec > h2 { font: 500 var(--mm-t-h2)/1.2 var(--mm-ff-display); margin: 0; padding-bottom: 8px; border-bottom: 1px solid var(--mm-line); }
.mm-ds__row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.mm-ds__tokens { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.mm-ds__tok { display: grid; gap: 6px; font: 400 12px/1.35 var(--mm-ff-text); color: var(--mm-ink-2); }
.mm-ds__tok i { display: block; height: 56px; border-radius: 8px; border: 1px solid rgb(0 0 0 / .06); background: var(--c); }
.mm-ds__tok b { color: var(--mm-ink); font-weight: 600; }
.mm-ds__phone { max-width: 390px; border: 1px solid var(--mm-line); border-radius: 16px; overflow: hidden; background: #fff; }
.mm-ds__cols { display: grid; gap: 24px; }
@media (min-width: 900px) { .mm-ds__cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
