/* Shop redesign: compact cards, AI showcase banners, hover swap & 60-30-10 Normal Fresh Green. */
:root {
    --mk-chat: #16A34A;
    --mk-wall: #F8FAFC;
    --mk-mine: #DCFCE7;
    --mk-mine-edge: #86EFAC;
    --mk-t-card-price: 1.0625rem;
    --mk-ease-out: cubic-bezier(.23, 1, .32, 1);
    --mk-ease-sheet: cubic-bezier(.32, .72, 0, 1);
}
html[data-theme="dark"] {
    --mk-chat: #F59E0B;
    --mk-wall: #000000;
    --mk-mine: rgba(245, 158, 11, .16);
    --mk-mine-edge: rgba(245, 158, 11, .38);
}
.mk-main :focus-visible, .mk-sheet :focus-visible { outline-color: var(--mk-accent); }
.mk-btn { transition: transform 160ms var(--mk-ease-out), background-color 180ms ease-out, opacity 180ms; }
.mk-btn:active, .mk-chip:active, .mk-card-act:active, .mk-qa-btn:active, .mk-send:active, .mk-filterbtn:active { transform: scale(.97); transition-duration: 100ms; }
.mk-btn[disabled] { cursor: default; }
.mk-btn-sm { min-height: 48px; }
.mk-chip { min-height: 48px; border-radius: 24px; }
.mk-chip-x { min-height: 48px; }
.mk-heart-disc { display: grid; place-items: center; }

/* ---------- header, search + filter, segments ---------- */
.mk-hdr-lbl { max-width: 100%; overflow: hidden; text-overflow: ellipsis; text-align: center; line-height: 1.2; white-space: nowrap; font-size: .8125rem; font-weight: 600; }
.mk-dot-accent { background: var(--mk-accent); color: var(--mk-on-accent); border: 2px solid var(--mk-on-brand); line-height: 14px; }
.mk-filterbtn { position: relative; display: inline-flex; flex: none; align-items: center; justify-content: center; gap: 6px; min-height: 44px; margin-left: auto; padding: 6px 16px; border: 1.5px solid var(--mk-border); border-radius: 999px; background: var(--mk-card); color: var(--mk-ink); font-weight: 700; font-size: .9375rem; text-decoration: none; transition: transform 160ms var(--mk-ease-out), border-color .16s, background .16s; }
.mk-filterbtn:hover { border-color: var(--mk-accent); background: var(--mk-tint); color: var(--mk-accent-strong); }
.mk-filterbtn .mk-dot { top: -4px; right: -4px; }
.mk-seg2 a { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 4px; background: transparent; color: rgba(255, 255, 255, .82); font-weight: 600; text-align: center; text-decoration: none; line-height: 1.35; border-radius: 10px; }
.mk-seg2 a:first-of-type { border-radius: 10px; }
.mk-seg2 a:last-of-type { border-radius: 10px; }
.mk-seg2 a[aria-current] { color: #0F172A; font-weight: 700; z-index: 3; }
html[data-theme="dark"] .mk-seg2 a[aria-current] { color: #FFFFFF; }
.mk-seg2-thumb { position: absolute; z-index: 2; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 8px); border-radius: 10px; background: #FFFFFF; box-shadow: 0 2px 6px rgba(0, 0, 0, .18); transition: transform 260ms var(--mk-ease-out); }
html[data-theme="dark"] .mk-seg2-thumb { background: var(--mk-accent); }
.mk-seg2[data-on="1"] .mk-seg2-thumb { transform: translateX(calc(100% + 8px)); }
.mk-titlebar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.mk-titlebar h1 { margin: 0; font-size: var(--mk-t-section); }
.mk-titlebar .mk-tool { flex-direction: column; min-width: 52px; min-height: 48px; border-radius: 8px; gap: 0; }

/* ---------- sheets (open by their address without JavaScript, by class with it) ---------- */
.mk-sheet { display: block; position: fixed; inset: 0; z-index: 80; visibility: hidden; pointer-events: none; color: var(--mk-ink); transition: visibility 0s linear 360ms; }
.mk-sheet.is-open, html:not(.js) .mk-sheet:target { visibility: visible; pointer-events: auto; transition: visibility 0s linear 0s; }
.mk-sheet-scrim { position: absolute; inset: 0; background: rgba(2, 6, 23, .68); backdrop-filter: blur(4px); opacity: 0; transition: opacity 300ms cubic-bezier(.22, 1, .36, 1); }
.mk-sheet.is-open .mk-sheet-scrim, html:not(.js) .mk-sheet:target .mk-sheet-scrim { opacity: 1; }
.mk-sheet-panel { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; max-height: calc(100% - 48px); overflow: auto; padding: 0 16px calc(20px + env(safe-area-inset-bottom)); background: var(--mk-card); border-top: 1px solid var(--mk-border); border-radius: 20px 20px 0 0; transform: translateY(105%); transition: transform 360ms cubic-bezier(.22, 1, .36, 1), opacity 280ms ease; will-change: transform, opacity; }
.mk-sheet.is-open .mk-sheet-panel, html:not(.js) .mk-sheet:target .mk-sheet-panel { transform: none; }
.mk-sheet-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 8px; min-height: 56px; margin: 0 0 8px; border-bottom: 1px solid var(--mk-border); background: var(--mk-card); }
.mk-sheet-head h2, .mk-sheet-head strong { flex: 1; min-width: 0; margin: 0; font-size: var(--mk-t-section); }
.mk-sheet .mk-sheet-x { min-width: 48px; min-height: 48px; color: var(--mk-ink); }
.mk-clearall { display: inline-flex; align-items: center; min-height: 48px; padding: 0 8px; font-weight: 700; font-size: var(--mk-t-meta); }
.mk-sheet .mk-btn-block + .mk-btn-block, .mk-asklist .mk-btn + .mk-btn { margin-top: 8px; }
.mk-sheet-sub { margin: 16px 0 8px; font-size: var(--mk-t-meta); font-weight: 700; color: var(--mk-muted); }
.mk-sheet-list { list-style: none; margin: 0 0 14px; padding: 0; }
.mk-sheet-list a, .mk-sheet-list button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 50px; padding: 8px 6px; border: 0; border-bottom: 1px solid var(--mk-border); background: none; color: var(--mk-ink); font: inherit; font-weight: 700; text-align: left; text-decoration: none; cursor: pointer; }
.mk-sheet-list a .mk-icon, .mk-sheet-list button .mk-icon { color: var(--mk-accent); }
.mk-sheet-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mk-sheet-cats a { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 12px; border-radius: 12px; background: var(--mk-inset); border: 1px solid var(--mk-border); color: var(--mk-ink); text-decoration: none; font-weight: 700; font-size: var(--mk-t-meta); overflow-wrap: anywhere; }
.mk-sheet-cities, .mk-sheet-lang { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.mk-sheet-lang button { min-height: 48px; padding: 6px 16px; border-radius: 24px; border: 1px solid var(--mk-border-control); background: var(--mk-card); color: var(--mk-ink); font: inherit; font-weight: 700; cursor: pointer; }
.mk-sheet-lang .is-on { background: var(--mk-accent); border-color: var(--mk-accent); color: var(--mk-on-accent); }
body.mk-lock { overflow: hidden; }
/* the search panel drops from the top edge, full width, on every screen size */
.mk-sheet-top .mk-sheet-panel { left: 0; right: 0; top: 0; bottom: auto; width: auto; max-height: min(80vh, 560px); padding: env(safe-area-inset-top) max(16px, env(safe-area-inset-right)) 20px max(16px, env(safe-area-inset-left)); border: 0; border-bottom: 1px solid var(--mk-border); border-radius: 0 0 20px 20px; opacity: 1; transform: translateY(-105%); }
.mk-sheet-top.is-open .mk-sheet-panel, html:not(.js) .mk-sheet-top:target .mk-sheet-panel { opacity: 1; transform: none; }
.mk-sheet-top .mk-sheet-panel > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.mk-sheet-top .mk-sheet-head { border-bottom: 0; margin-bottom: 0; }
.mk-sheet-top .mk-search { flex-wrap: wrap; min-height: 52px; padding: 0 6px 0 14px; }
.mk-sheet-top .mk-search input { min-height: 48px; font-size: 1rem; }
.mk-sheet-top .mk-search-btn { width: 40px; height: 40px; }
.mk-sheet-top .mk-sg, .mk-sheet-top .mk-sg-none { position: static; flex: 1 0 100%; margin: 0; max-height: 50vh; overflow: auto; border: 0; border-top: 1px solid var(--mk-border); border-radius: 0; box-shadow: none; background: transparent; }
.mk-sheet-top .mk-sg li a { min-height: 44px; }

/* filter */
.mk-fg { min-width: 0; margin: 0 0 16px; padding: 0; border: 0; }
.mk-fg legend { margin-bottom: 8px; padding: 0; font-weight: 700; font-size: var(--mk-t-meta); }
.mk-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.mk-opt { position: relative; display: inline-flex; }
.mk-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mk-opt span { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; min-width: 56px; padding: 4px 16px; border: 1.5px solid var(--mk-border-control); border-radius: 24px; font-weight: 600; font-size: var(--mk-t-meta); cursor: pointer; }
.mk-opt input:checked + span { background: var(--mk-accent); border-color: var(--mk-accent); color: var(--mk-on-accent); }
.mk-opt input:focus-visible + span { outline: 3px solid var(--mk-accent); outline-offset: 2px; }
.mk-opt input:disabled + span { border-style: dashed; color: var(--mk-muted); cursor: default; }
.mk-flt-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.mk-flt-cols .mk-field { margin: 0; }
.mk-switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; font-weight: 700; }
.mk-switch input { width: 28px; height: 28px; flex: none; accent-color: var(--mk-accent); }
.mk-sheet-foot { position: sticky; bottom: calc(-20px - env(safe-area-inset-bottom)); margin: 0 -16px calc(-20px - env(safe-area-inset-bottom)); padding: 8px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--mk-border); background: var(--mk-card); }

/* ---------- home banner carousel: picture above the words on phones, split card on wide screens ---------- */
.mk-car { position: relative; margin: 0 0 14px; }
.mk-car-track { display: flex; gap: 12px; margin: 0; padding: 0; list-style: none; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; -webkit-overflow-scrolling: touch; border-radius: 18px; }
.mk-car-track::-webkit-scrollbar { display: none; }
.mk-car-slide { display: flex; flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.mk-bn { display: flex; flex-direction: column; flex: 1; min-width: 0; overflow: hidden; border-radius: 18px; background: #0F172A; color: #FFFFFF; border: 1px solid var(--mk-border); box-shadow: var(--mk-shadow); }
.mk-bn-media { order: -1; position: relative; aspect-ratio: 16 / 9; background: #1E293B; }
img.mk-bn-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.mk-bn-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; padding: 16px; color: #FFFFFF; overflow-wrap: anywhere; }
.mk-bn-badge { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .16); font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #FFFFFF; }
.mk-bn-title, .mk-bn-text { margin: 0; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.mk-bn-title { -webkit-line-clamp: 2; line-clamp: 2; font-size: 1.125rem; font-weight: 800; line-height: 1.3; letter-spacing: -.01em; color: #FFFFFF; }
.mk-bn-text { -webkit-line-clamp: 2; line-clamp: 2; font-size: .875rem; line-height: 1.5; color: rgba(255, 255, 255, .9); }
html:not([lang^="en"]) .mk-bn-title { line-height: 1.55; }
html:not([lang^="en"]) .mk-bn-text { line-height: 1.65; }
.mk-bn-cta { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 44px; margin-top: 6px; padding: 8px 20px; border-radius: 999px; background: var(--mk-accent); color: var(--mk-on-accent); font-weight: 800; font-size: .9375rem; line-height: 1.35; text-align: center; text-decoration: none; transition: background-color .16s, transform 160ms var(--mk-ease-out); }
.mk-bn-cta:hover { background: var(--mk-accent-strong); color: var(--mk-on-accent); }
.mk-bn-cta:active { transform: scale(.98); }
/* the dots and the pause button sit under the card, never over the picture */
.mk-car-ctl { display: flex; align-items: center; justify-content: center; gap: 2px; margin-top: 6px; }
.mk-car-dot, .mk-car-pause { display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0; border: 0; background: none; color: var(--mk-ink); cursor: pointer; }
.mk-car-dot span { width: 8px; height: 8px; border-radius: 999px; background: var(--mk-border-control); transition: transform 180ms var(--mk-ease-out), background-color 180ms; }
.mk-car-dot[aria-current] span { background: var(--mk-accent); transform: scale(1.5); }
.mk-car-i-play, .mk-car-pause[aria-pressed="true"] .mk-car-i-pause { display: none; }
.mk-car-pause[aria-pressed="true"] .mk-car-i-play { display: inline; }
@media (min-width: 700px) {
    .mk-bn { display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); min-height: clamp(260px, 24vw, 340px); }
    .mk-bn-copy { grid-column: 1; grid-row: 1; justify-content: center; gap: 10px; padding: 28px 32px; }
    .mk-bn-media { order: 0; grid-column: 2; grid-row: 1; aspect-ratio: auto; }
    .mk-bn-title { -webkit-line-clamp: 3; line-clamp: 3; font-size: clamp(1.5rem, 2.2vw, 1.85rem); }
    .mk-bn-text { -webkit-line-clamp: 3; line-clamp: 3; font-size: .9375rem; max-width: 46ch; }
    .mk-bn-cta { width: auto; padding: 8px 24px; }
}
@media (max-width: 380px) { .mk-bn-copy { padding: 14px 12px; } }
@media (prefers-reduced-motion: reduce) { .mk-car-track { scroll-behavior: auto; } .mk-car-dot span, .mk-bn-cta { transition: none; } }

/* ---------- hero at the top of Products and Store: name, line, search icon, quick category chips ---------- */
.mk-hero { position: relative; isolation: isolate; display: flex; flex-direction: column; gap: 14px; margin: 0 0 14px; padding: 18px 16px; overflow: hidden; border-radius: 18px; background: #0F172A; color: #FFFFFF; border: 1px solid var(--mk-border); box-shadow: var(--mk-shadow); }
.mk-hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.mk-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(15, 23, 42, .68); }
.mk-hero-in { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.mk-hero-text { min-width: 0; }
.mk-hero-title { margin: 0; font-size: clamp(1.5rem, 5vw, 2.25rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; color: #FFFFFF; overflow-wrap: anywhere; }
html:not([lang^="en"]) .mk-hero-title { line-height: 1.5; }
.mk-hero-sub { margin: 4px 0 0; max-width: 52ch; font-size: .9375rem; line-height: 1.5; color: rgba(255, 255, 255, .92); overflow-wrap: anywhere; }
.mk-hero-search { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--mk-accent); color: var(--mk-on-accent); box-shadow: 0 4px 14px rgba(0, 0, 0, .3); text-decoration: none; transition: transform 160ms var(--mk-ease-out), background-color .16s; }
.mk-hero-search:hover { background: var(--mk-accent-strong); color: var(--mk-on-accent); }
.mk-hero-search:active { transform: scale(.94); }
.mk-hero-search .mk-icon { width: 1.4rem; height: 1.4rem; }
.mk-hero :focus-visible { outline-color: #FFFFFF; }
.mk-hero-chips { display: flex; flex-wrap: nowrap; gap: 8px; margin: 0 -16px; padding: 0 16px 2px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none; }
.mk-hero-chips::-webkit-scrollbar { display: none; }
.mk-hero-chip { display: inline-flex; align-items: center; flex: none; gap: 6px; min-height: 44px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3); color: #FFFFFF; font-weight: 700; font-size: .875rem; line-height: 1.35; white-space: nowrap; text-decoration: none; scroll-snap-align: start; transition: background-color .16s, transform 160ms var(--mk-ease-out); }
.mk-hero-chip:hover { background: rgba(255, 255, 255, .28); color: #FFFFFF; }
.mk-hero-chip:active { transform: scale(.97); }
.mk-hero-chip .mk-icon { color: #FFFFFF; }
@media (min-width: 641px) {
    .mk-hero { gap: 18px; padding: 24px 28px; }
    .mk-hero-search { width: 52px; height: 52px; }
    .mk-hero-chips { flex-wrap: wrap; margin: 0; padding: 0; overflow: visible; }
}
@media (min-width: 900px) { .mk-hero { padding: 28px 36px; } }
@media (max-width: 380px) { .mk-hero { padding: 14px 12px; } .mk-hero-chips { margin: 0 -12px; padding: 0 12px 2px; } }
@media (prefers-reduced-motion: reduce) { .mk-hero-search, .mk-hero-chip { transition: none; } }

/* ---------- category chips, grid, cards ---------- */
.mk-chips { display: flex; gap: 8px; margin: 0 0 12px; padding: 3px; overflow-x: auto; scrollbar-width: none; }
.mk-chips .mk-chip { flex: none; }
/* the row above the results: categories, and the filter button at the right end */
.mk-listtools { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.mk-listtools .mk-chips { flex: 1 1 auto; min-width: 0; margin: 0; }
.mk-seg2:not([data-on="0"]):not([data-on="1"]) .mk-seg2-thumb { display: none; }
.mk-listing-head { margin-bottom: 8px; }
.mk-seg a { min-height: 44px; }
.mk-grid { gap: 10px; }
.mk-card-media { aspect-ratio: auto; height: 114px; }
.mk-card-media img { transition: transform .26s var(--mk-ease-out), opacity .18s ease; }
@media (hover: hover) { .mk-card:hover .mk-card-media img { transform: scale(1.03); } }
/* A card's photos swipe in a strip (scroll-snap) with small dots; the strip sits above the card-wide title link so it can be swiped */
.mk-card-strip { position: absolute; inset: 0; z-index: 2; display: flex; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.mk-card-strip::-webkit-scrollbar { display: none; }
.mk-card-slide { display: block; flex: 0 0 100%; min-width: 0; overflow: hidden; scroll-snap-align: start; scroll-snap-stop: always; }
.mk-card-slide img { width: 100%; height: 100%; object-fit: cover; }
.mk-card-dots { position: absolute; right: 8px; bottom: 8px; z-index: 3; display: flex; align-items: center; gap: 4px; padding: 4px 6px; border-radius: 999px; background: rgba(15, 23, 42, .55); pointer-events: none; }
.mk-card-dots i { width: 5px; height: 5px; border-radius: 50%; background: #FFFFFF; opacity: .55; transition: transform 180ms var(--mk-ease-out), opacity 180ms; }
.mk-card-dots i.is-on { opacity: 1; transform: scale(1.4); }
html:not(.js) .mk-card-dots, html:not(.js) .mk-card-slide:not(:first-child) { display: none; }
.mk-card { animation: mk-card-in .24s var(--mk-ease-out) both; content-visibility: auto; contain-intrinsic-size: 260px; }
@keyframes mk-card-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .mk-card { animation: none; } .mk-card-media img, .mk-card-dots i { transition: none; } .mk-card-strip { scroll-behavior: auto; } }
.mk-card-media .mk-card-ph > span { display: none; }
.mk-onphoto { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 3px; max-width: calc(100% - 12px); padding: 2px 8px; border-radius: 999px; background: var(--mk-card); border: 1px solid var(--mk-border); font-size: .75rem; font-weight: 700; line-height: 1.45; pointer-events: none; }
.mk-onphoto-top { left: 6px; top: 6px; max-width: calc(100% - 46px); padding: 2px 8px; border-radius: 999px; }
.mk-onphoto-bottom { left: 6px; bottom: 6px; }
.mk-stockpill.is-in { color: var(--mk-success); background: var(--mk-success-soft); border-color: transparent; }
.mk-stockpill.is-low { color: var(--mk-warning); background: var(--mk-warning-soft); border-color: transparent; }
.mk-stockpill.is-out { color: var(--mk-danger); background: var(--mk-danger-soft); border-color: transparent; }
.mk-heart { right: 0; top: 0; width: 44px; height: 44px; background: transparent; box-shadow: none; color: var(--mk-ink); }
.mk-heart-disc { width: 32px; height: 32px; border-radius: 50%; background: var(--mk-card); border: 1px solid var(--mk-border); box-shadow: 0 2px 6px rgba(0, 0, 0, .14); }
.mk-card-body { padding: 8px 10px 0; gap: 2px; }
.mk-card-title { font-size: .9375rem; font-weight: 700; line-height: 1.3; }
.mk-card-title a { font-weight: 700; -webkit-line-clamp: 1; line-clamp: 1; min-height: 20px; padding: 1px 0; }
.mk-price { font-weight: 800; font-size: 1.0625rem; color: var(--mk-ink); }
.mk-price-unit { font-size: .8125rem; }
.mk-card .mk-meta { font-size: .8125rem; }
.mk-card-place { margin-bottom: 0; }
.mk-card-acts { display: flex; flex-wrap: nowrap; align-items: stretch; gap: 6px; margin-top: auto; padding: 8px 10px 10px; }
.mk-card-side { display: flex; flex: 0 0 auto; margin: 0; }
.mk-card-act { display: inline-flex; flex: none; align-items: center; justify-content: center; min-height: 40px; min-width: 42px; padding: 0 10px; border: 1.5px solid var(--mk-accent); border-radius: 10px; background: var(--mk-card); color: var(--mk-accent); font: inherit; font-size: .875rem; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform 160ms var(--mk-ease-out), background .16s; }
.mk-card-act span { display: none; }
.mk-card-act:hover { background: var(--mk-tint); color: var(--mk-accent-strong); }
.mk-card-add, .mk-card-add:hover { border-color: var(--mk-accent); color: var(--mk-accent); }
.mk-card-buy { flex: 1 1 auto; min-height: 40px; padding: 4px 10px; border-radius: 10px; font-size: .875rem; }
.mk-sellstrip { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 14px 16px; border-radius: 14px; background: var(--mk-inset); border: 1px solid var(--mk-border); }
.mk-sellstrip > div { flex: 1 1 180px; }
.mk-sellstrip p { margin: 0; font-size: var(--mk-t-nav); color: var(--mk-muted); }

/* ---------- product and seller ---------- */
.mk-ptop { display: flex; align-items: center; gap: 4px; min-height: 56px; margin-bottom: 8px; border-bottom: 1px solid var(--mk-border); background: var(--mk-card); }
.mk-ptop-btn { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%; color: var(--mk-ink); }
.mk-ptop-title { display: flex; align-items: center; flex: 1; min-width: 0; min-height: 48px; font-weight: 700; font-size: var(--mk-t-section); color: var(--mk-ink); text-decoration: none; overflow-wrap: anywhere; }
.mk-gal { position: relative; }
.mk-gal-track { display: flex; margin: 0; padding: 0; list-style: none; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 12px; background: var(--mk-tint); }
.mk-gal-track::-webkit-scrollbar { display: none; }
.mk-gal-track li { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.mk-gal-dots { position: absolute; left: 50%; bottom: 10px; display: flex; gap: 8px; transform: translateX(-50%); padding: 5px 10px; border-radius: 12px; background: var(--mk-card); }
.mk-gal-dots i { width: 8px; height: 8px; border-radius: 4px; background: var(--mk-border-control); transition: transform 180ms ease-out; }
.mk-gal-dots i.is-on { background: var(--mk-brand); transform: scale(1.4); }
.mk-gal-count { position: absolute; right: 8px; bottom: 8px; padding: 1px 10px; border-radius: 12px; background: var(--mk-ink); color: #fff; font-size: var(--mk-t-nav); font-weight: 700; }
html:not(.js) .mk-gal-dots, html:not(.js) .mk-gal-count { display: none; }
.mk-pd-place { display: flex; align-items: flex-start; gap: 6px; }
.mk-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0; border: 1px solid var(--mk-border); border-radius: 12px; overflow: hidden; background: var(--mk-border); }
.mk-facts > div { min-width: 0; padding: 8px 12px; background: var(--mk-card); }
.mk-facts > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.mk-facts dt { font-size: var(--mk-t-nav); color: var(--mk-muted); }
.mk-facts dd { margin: 0; font-weight: 700; font-size: var(--mk-t-meta); overflow-wrap: anywhere; }
.mk-linkrow { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; min-height: 56px; padding: 6px 12px; border-radius: 12px; background: var(--mk-tint); color: var(--mk-ink); text-decoration: none; }
.mk-linkrow > span:last-child { flex: 1; min-width: 0; }
.mk-linkrow strong, .mk-linkrow strong + .mk-meta { display: block; }
.mk-fold { border-bottom: 1px solid var(--mk-border); }
.mk-fold:first-of-type { border-top: 8px solid var(--mk-tint); }
.mk-fold summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 56px; cursor: pointer; list-style: none; }
.mk-fold summary::-webkit-details-marker { display: none; }
.mk-fold summary h2 { margin: 0; font-size: var(--mk-t-body); }
.mk-fold summary .mk-chev { transform: rotate(90deg); transition: transform 320ms cubic-bezier(.22, 1, .36, 1); }
.mk-fold[open] summary .mk-chev { transform: rotate(-90deg); }
.mk-fold-body { padding-bottom: 12px; }
.mk-fold[open] .mk-fold-body { animation: mk-reveal 340ms cubic-bezier(.22, 1, .36, 1); }
@keyframes mk-reveal { from { opacity: 0; transform: translateY(-8px); } }
.mk-qa { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.mk-qa-btn { min-width: 0; overflow-wrap: anywhere; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 48px; padding: 2px; border: 0; border-radius: 8px; background: none; color: var(--mk-ink); font: inherit; font-size: var(--mk-t-nav); line-height: 1.25; text-align: center; text-decoration: none; cursor: pointer; transition: transform 160ms var(--mk-ease-out); }
.mk-qa-like .mk-icon, .mk-qa-report .mk-icon { color: var(--mk-danger); }
.mk-qa-like[aria-pressed="true"] svg { fill: currentColor; }
.mk-qa-share .mk-icon { color: var(--mk-brand); }
.mk-qa-chat .mk-icon { color: var(--mk-chat); }
.mk-bar2 { display: flex; gap: 8px; }
.mk-bar2 .mk-btn { flex: 1 1 0; min-width: 0; min-height: 52px; padding: 4px 8px; font-size: var(--mk-t-meta); overflow-wrap: anywhere; }
.mk-bar2 .mk-btn-primary { font-size: var(--mk-t-body); }
.mk-steps { padding: 0; margin: 0 0 12px; list-style: none; counter-reset: mk-step; }
.mk-steps li { display: flex; gap: 12px; padding: 8px 0; counter-increment: mk-step; }
.mk-steps li::before { content: counter(mk-step); display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--mk-brand); color: var(--mk-on-brand); font-weight: 700; }
.mk-seller { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding: 16px 12px; border-radius: 12px; background: var(--mk-tint); }
.mk-seller .mk-h1 { margin: 0; }
.mk-seller > div { min-width: 0; }
.mk-avatar-lg { display: grid; place-items: center; flex: none; width: 64px; height: 64px; border-radius: 50%; background: var(--mk-card); color: var(--mk-brand-strong); font-weight: 800; font-size: var(--mk-t-title); }
.mk-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 12px; }
.mk-stat-grid > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; min-width: 0; padding: 10px 12px; border: 1px solid var(--mk-border); border-radius: 12px; }
.mk-stat-grid dt { font-size: var(--mk-t-nav); color: var(--mk-muted); }
.mk-stat-grid dd { margin: 0; font-size: var(--mk-t-title); font-weight: 800; font-variant-numeric: tabular-nums; }
.mk-seller-note { margin-top: 8px; }

/* ---------- chat ---------- */
.mk-safeline { margin-bottom: 8px; border-radius: 12px; background: var(--mk-tint); font-size: var(--mk-t-nav); }
.mk-safeline summary { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 4px 12px; cursor: pointer; list-style: none; font-weight: 700; }
.mk-safeline summary::-webkit-details-marker { display: none; }
.mk-safeline summary span { flex: 1; }
.mk-safeline p { margin: 0; padding: 0 12px 12px; }
.mk-chat-list { min-width: 0; }
.mk-chat-item { display: flex; align-items: center; gap: 12px; min-height: 80px; margin: 0; padding: 10px 4px; border: 0; border-bottom: 1px solid var(--mk-border); border-radius: 0; background: none; }
.mk-chat-item.is-on { background: var(--mk-tint); }
.mk-chat-item .mk-initials { display: grid; }
.mk-chat-item .mk-chat-text { display: block; flex: 1; min-width: 0; }
.mk-chat-item .mk-chat-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mk-chat-line strong { min-width: 0; overflow-wrap: anywhere; }
.mk-chat-line .mk-meta { flex: none; font-size: var(--mk-t-nav); }
.mk-chat-about { font-size: var(--mk-t-nav); color: var(--mk-muted); overflow-wrap: anywhere; }
.mk-chat-item .mk-chat-last { display: block; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: var(--mk-t-meta); }
.mk-chat-item .mk-tick { display: inline; }
.mk-chat-item.is-unread .mk-chat-last { font-weight: 700; }
.mk-chat-item .mk-newpill { display: inline-block; flex: none; padding: 1px 8px; border-radius: 999px; background: var(--mk-brand); color: var(--mk-on-brand); font-size: var(--mk-t-nav); font-weight: 700; }
.mk-initials { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--mk-tint); color: var(--mk-brand-strong); font-weight: 800; }
.mk-chat-main { min-width: 0; border: 1px solid var(--mk-border); border-radius: 12px; overflow: hidden; }
.mk-chat-head { gap: 8px; margin: 0; padding: 4px; border: 0; background: var(--mk-brand); color: var(--mk-on-brand); }
.mk-chat-head .mk-initials { width: 40px; height: 40px; background: var(--mk-card); }
.mk-chat-back { color: var(--mk-on-brand); }
.mk-chat-who { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.mk-chat-who h1 { margin: 0; font-size: var(--mk-t-body); }
.mk-chat-who span { display: block; font-size: var(--mk-t-nav); }
.mk-threadmenu > summary { min-width: 48px; min-height: 48px; }
.mk-chat-head :focus-visible { outline-color: var(--mk-on-brand); }
.mk-chat-head .mk-pop-panel :focus-visible { outline-color: var(--mk-chat); }
.mk-pstrip { display: flex; align-items: center; gap: 8px; margin: 0; padding: 6px 8px; border-bottom: 1px solid var(--mk-border); }
.mk-pstrip > div { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.mk-pstrip > div > a { display: block; min-height: 24px; font-weight: 700; font-size: var(--mk-t-meta); color: var(--mk-ink); text-decoration: none; }
.mk-pstrip .mk-meta { display: block; font-size: var(--mk-t-nav); }
.mk-pstrip .mk-price { font-size: var(--mk-t-body); }
.mk-pstrip .mk-verified { font-size: var(--mk-t-nav); }
.mk-chat-log { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 8px 12px; background: var(--mk-wall); }
.mk-sysline, .mk-day { align-self: center; max-width: 320px; margin: 4px 0; padding: 4px 12px; border-radius: 12px; font-size: var(--mk-t-nav); text-align: center; }
.mk-sysline { background: var(--mk-warning-soft); color: var(--mk-warning); }
.mk-day { background: var(--mk-card); color: var(--mk-muted); font-weight: 700; }
.mk-chat-msg { margin: 0; padding: 6px 10px 4px; max-width: 82%; border: 1px solid var(--mk-border); animation: mk-send 220ms var(--mk-ease-out); }
.mk-chat-log .mk-chat-msg { animation: none; }
.mk-chat-log .mk-chat-msg:last-child { animation: mk-send 220ms var(--mk-ease-out); }
@keyframes mk-send { from { opacity: 0; transform: translateY(36px); } }
.mk-chat-me { align-self: flex-end; margin-left: 0; background: var(--mk-mine); border-color: var(--mk-mine-edge); border-radius: 12px 2px 12px 12px; }
.mk-chat-them { align-self: flex-start; background: var(--mk-card); border-radius: 2px 12px 12px 12px; }
.mk-chat-msg .mk-chat-meta { display: flex; justify-content: flex-end; align-items: center; gap: 4px; color: var(--mk-muted); }
.mk-composer { padding: 0 8px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid var(--mk-border); background: var(--mk-card); }
.mk-quick { display: flex; gap: 8px; padding: 8px 3px; overflow-x: auto; scrollbar-width: none; }
.mk-quick .mk-chip { flex: none; }
.mk-composer .mk-chat-form { align-items: center; padding-top: 8px; }
.mk-quick + .mk-chat-form { padding-top: 0; }
.mk-composer .mk-input { flex: 1; min-width: 0; border-radius: 24px; }
.mk-send { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--mk-brand); color: var(--mk-on-brand); cursor: pointer; transition: transform 200ms var(--mk-ease-out), opacity 200ms; }
.mk-composer .mk-input:placeholder-shown + .mk-send { opacity: .5; }

/* ---------- management preview ---------- */
.mk-lockhead { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: var(--mk-brand-strong); color: var(--mk-on-brand); }
.mk-lockhead img { flex: none; width: 96px; height: 112px; object-fit: cover; object-position: center 20%; border-radius: 12px; }
.mk-lockhead p { margin: 0; font-weight: 700; }
.mk-mgmt-head { margin: 16px 0 4px; }
.mk-mgmt-head h2 { margin: 0; font-size: var(--mk-t-section); }
.mk-modules { margin: 0; padding: 0; list-style: none; }
.mk-modules a { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 8px 4px; border-bottom: 1px solid var(--mk-border); color: var(--mk-ink); text-decoration: none; }
.mk-modules a > span:nth-child(2) { flex: 1; min-width: 0; }
.mk-modules strong, .mk-modules strong + span { display: block; }
.mk-modules strong + span { font-size: var(--mk-t-nav); color: var(--mk-muted); }
.mk-module-ico { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 8px; background: var(--mk-tint); color: var(--mk-brand); }
.mk-module-lock { color: var(--mk-border-control); }
.mk-dock { position: sticky; bottom: 0; padding: 8px 0; background: var(--mk-card); border-top: 1px solid var(--mk-border); }
.mk-dock .mk-btn { min-height: 52px; }
.mk-planlist { margin: 0 0 12px; padding: 0; list-style: none; }
.mk-planlist li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 10px 0; border-bottom: 1px solid var(--mk-border); }
.mk-planlist strong { flex: 1 1 100%; }

/* ---------- vendor ---------- */
.mk-vwho { margin-bottom: 12px; }
.mk-vwho .mk-h2 { margin: 0; overflow-wrap: anywhere; }
.mk-vwho a { display: inline-block; min-height: 24px; }
.mk-sellhero { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding: 12px; border-radius: 12px; background: var(--mk-tint); }
.mk-sellhero > .mk-icon { width: 4rem; height: 4rem; color: var(--mk-brand); }
.mk-sellhero > div { min-width: 0; }
.mk-sellhero .mk-meta { margin-bottom: 8px; }
.mk-donext { margin-bottom: 12px; padding: 12px; border: 2px solid var(--mk-warning); border-radius: 12px; background: var(--mk-warning-soft); overflow-wrap: anywhere; }
.mk-donext p { margin: 0 0 8px; }
.mk-updates { margin-bottom: 12px; }
.mk-updates ul { margin: 0; padding: 0; list-style: none; border: 1px solid var(--mk-border); border-radius: 12px; }
.mk-updates li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; }
.mk-updates li + li { border-top: 1px solid var(--mk-border); }
.mk-updates li span { flex: 1; min-width: 0; }
.mk-updates li strong { font-size: var(--mk-t-section); }
.mk-updates .mk-icon { color: var(--mk-brand); }
.mk-listrows { margin: 0 0 16px; padding: 0; list-style: none; }
.mk-listrow { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--mk-border); }
.mk-listrow-text { display: flex; flex-direction: column; gap: 2px; flex: 1 1 180px; min-width: 0; overflow-wrap: anywhere; }
.mk-listrow-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mk-listrow-acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-left: auto; }
.mk-listrow-acts .mk-btn { min-width: 88px; padding: 6px 12px; font-size: var(--mk-t-meta); }

/* ---------- phones and tablets ---------- */
@media (max-width: 1000px) {
    .mk-loc, .mk-lang, .mk-bell, .mk-acct, body.mk-has-buybar .mk-acct { display: none !important; }
    .mk-bar-tools .mk-search-open, .mk-bar-tools .mk-saved, .mk-bar-tools .mk-chat-hdr, .mk-bar-tools .mk-cart, .mk-bar-tools .mk-hdr-acct, body.mk-has-buybar .mk-saved { display: inline-flex; flex-direction: column; justify-content: center; gap: 0; min-width: 44px; max-width: 76px; min-height: 52px; padding: 0 2px; border-radius: 8px; }
    .mk-screen-market .mk-page { padding-top: 8px; }
    .mk-screen-focus .mk-header, .mk-screen-thread .mk-header { display: none; }
    /* a screen with its own title bar keeps only the breadcrumb strip of the header */
    .mk-screen-titled .mk-header { position: static; }
    .mk-screen-titled .mk-header > .mk-bar, .mk-screen-titled .mk-header > .mk-navrow { display: none; }
    .mk-screen-thread .mk-footer { display: none; }
    .mk-screen-focus .mk-page { padding-top: 0; }
    .mk-screen-focus .mk-ptop { position: sticky; top: 0; z-index: 50; }
    .mk-screen-titled .mk-page { padding-top: 0; }
    .mk-titlebar { margin: 0 -16px 12px; padding: 4px 4px 4px 16px; min-height: 56px; background: var(--mk-brand); color: var(--mk-on-brand); }
    .mk-titlebar :focus-visible { outline-color: var(--mk-on-brand); }
    .mk-gal-track img, .mk-pd-media .mk-gal-track img { height: 252px; aspect-ratio: auto; border-radius: 0; }
    .mk-pd-media .mk-thumbs { display: none; }
    body.mk-has-buybar { padding-bottom: calc(132px + env(safe-area-inset-bottom)); }
    body.mk-has-buybar .mk-cmpbar { bottom: calc(134px + env(safe-area-inset-bottom)); }
    body.mk-has-buybar .mk-toast { bottom: calc(142px + env(safe-area-inset-bottom)); }
    html { scroll-padding-bottom: calc(var(--mk-bottom) + 16px + env(safe-area-inset-bottom)); }
    .mk-stickybuy { display: block; padding: 4px 12px calc(8px + env(safe-area-inset-bottom)); box-shadow: none; }
    .mk-buysheet .mk-sheet-panel.mk-panel { margin: 0; border: 0; border-radius: 20px 20px 0 0; }
    .mk-buysheet { display: block; position: fixed; inset: 0; z-index: 80; visibility: hidden; pointer-events: none; }
    .mk-buysheet.is-open, html:not(.js) .mk-buysheet:target { visibility: visible; pointer-events: auto; }
    .mk-buysheet.is-open .mk-sheet-panel, html:not(.js) .mk-buysheet:target .mk-sheet-panel { transform: none; }
    .mk-buysheet.is-open .mk-sheet-scrim, html:not(.js) .mk-buysheet:target .mk-sheet-scrim { opacity: 1; }
    .mk-dock { bottom: calc(68px + env(safe-area-inset-bottom)); z-index: 5; } /* sits on the bottom bar */
    /* a conversation fills the screen: header, listing, messages, composer */
    body.mk-screen-thread { padding-bottom: 0; }
    .mk-screen-thread .mk-bottom { display: none; }
    .mk-screen-thread .mk-main { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
    .mk-screen-thread .mk-page { display: flex; flex: 1; flex-direction: column; width: 100%; min-width: 0; min-height: 0; padding: 0; }
    .mk-screen-thread .mk-chat-wrap { display: flex; flex: 1; flex-direction: column; align-items: stretch; min-width: 0; min-height: 0; }
    .mk-screen-thread .mk-chat-main { display: flex; flex: 1; flex-direction: column; min-height: 0; border: 0; border-radius: 0; }
    .mk-screen-thread .mk-chat-log { flex: 1; min-height: 0; max-height: none; }
    .mk-chat-wrap:not(.has-active) .mk-chat-main { display: none; }
}

/* ---------- desktop ---------- */
@media (min-width: 1001px) {
    .mk-hdr-lbl, .mk-hdr-acct { display: none; }
    .mk-titlebar-acct { display: none !important; }
    .mk-titlebar h1 { font-size: var(--mk-t-title); }
    .mk-sheet-panel { left: 50%; right: auto; bottom: auto; top: 50%; width: min(560px, calc(100% - 48px)); max-height: calc(100% - 64px); border-radius: 20px; opacity: 0; transform: translate(-50%, -46%); transition: transform 260ms var(--mk-ease-out), opacity 180ms; }
    .mk-sheet.is-open .mk-sheet-panel, html:not(.js) .mk-sheet:target .mk-sheet-panel { opacity: 1; transform: translate(-50%, -50%); }
    /* the top search sheet stays a full-width drop-down at every width (after the centred-dialog rule above) */
    .mk-sheet-top.is-open .mk-sheet-panel, html:not(.js) .mk-sheet-top:target .mk-sheet-panel { opacity: 1; transform: none; }
    .mk-card-media { height: auto; aspect-ratio: 4 / 3; }
    /* Desktop product detail: clean sticky buy card + seller card; hide mobile bottom bar and inline order sheet unless opened */
    .mk-pd-side { position: sticky; top: 72px; align-self: start; }
    .mk-stickybuy { display: none !important; }
    .mk-buysheet { display: none; }
    .mk-buysheet.is-open, html:not(.js) .mk-buysheet:target { display: block; position: fixed; inset: 0; z-index: 80; }
    .mk-buysheet.is-open .mk-sheet-head, .mk-buysheet.is-open .mk-sheet-scrim { display: flex; }
    .mk-buysheet.is-open .mk-sheet-panel { position: fixed; left: 50%; top: 50%; width: min(560px, calc(100% - 48px)); max-height: calc(100% - 64px); transform: translate(-50%, -50%); opacity: 1; }
    .mk-screen-thread .mk-chat-log { max-height: 54vh; }
    .mk-lockhead, .mk-modules, .mk-dock, .mk-screen-titled .mk-mgmt-head, .mk-vwho, .mk-sellhero, .mk-donext, .mk-updates, .mk-stat-grid { max-width: 760px; margin-left: auto; margin-right: auto; }
}

/* ---------- Redesigned Product Details cards & hierarchy ---------- */
.mk-pd-gallery-card { background: var(--mk-card); border: 1px solid var(--mk-border); border-radius: var(--mk-radius); padding: 10px; box-shadow: var(--mk-shadow); }
.mk-pd-buycard { background: var(--mk-card); border: 1px solid var(--mk-border); border-radius: var(--mk-radius); padding: 18px; box-shadow: var(--mk-shadow); gap: 12px; }
.mk-pd-badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.mk-pd-price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; padding: 6px 0; border-top: 1px solid var(--mk-border); border-bottom: 1px solid var(--mk-border); }
.mk-pd-meta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.mk-pd-cta-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mk-pd-cta-row .mk-addcart { margin: 0; }
.mk-pd-actions { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; padding-top: 8px; border-top: 1px solid var(--mk-border); }
.mk-pd-actions .mk-qa-share .mk-icon, .mk-qa-share .mk-icon { color: var(--mk-accent); }
.mk-gal-count { background: rgba(15, 23, 42, 0.78); color: #ffffff; }
.mk-seller-card { padding: 16px 18px; }
.mk-seller-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mk-seller-name { display: block; font-size: var(--mk-t-body); margin: 2px 0; }
.mk-trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.mk-trust-card { border: 1px solid var(--mk-border); border-radius: var(--mk-radius); background: var(--mk-card); padding: 12px 14px; }
@media (max-width: 1000px) {
    .mk-pd-buycard { padding: 14px; }
    .mk-seller-card { order: 4; }
    .mk-pd-cta-row > a, .mk-pd-cta-row > button, .mk-pd-actions { display: none; }
    .mk-pd-cta-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .mk-pd-cta-row { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
    .mk-titlebar { margin-left: -12px; margin-right: -12px; padding-left: 12px; }
}
@media (max-width: 339px) { .mk-card-acts { flex-direction: column; } .mk-card-buy, .mk-card-side { flex: 0 0 auto; } }
@media (prefers-reduced-motion: reduce) {
    .mk-btn:active, .mk-chip:active, .mk-card-act:active, .mk-qa-btn:active, .mk-send:active, .mk-filterbtn:active { transform: none; opacity: .8; }
}

/* Long Tamil, Malayalam and other labels: lines break between words; a button is at least as wide as its longest word
   and moves to its own row instead of being cut. */
.mk-bar2 { flex-wrap: wrap; }
.mk-bar2 .mk-btn { flex: 1 1 40%; min-width: -webkit-min-content; min-width: min-content; overflow-wrap: normal; }
.mk-card-acts { overflow-wrap: normal; }
.mk-card-buy { min-width: -webkit-min-content; min-width: min-content; }
html:not([lang^="en"]) .mk-bn-cta, html:not([lang^="en"]) .mk-card-buy { font-size: var(--mk-t-nav); }
/* "Verified listing" below the photo (other languages), so it covers no picture */
.mk-underphoto { display: flex; align-items: flex-start; padding: 6px 8px 0; font-size: var(--mk-t-nav); line-height: 1.5; }
.mk-vip { display: inline-block; margin-left: 4px; padding: 0 8px; border-radius: 999px; background: #FBF0D5; color: #775000; font-size: var(--mk-t-nav); font-weight: 700; line-height: 1.6; vertical-align: middle; }
/* the server's quote above the pay button */
.mk-quote { margin: 0 0 12px; }
.mk-quote dl { margin: 0 0 8px; }
.mk-quote dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 6px 0; border-top: 1px solid var(--mk-border); }
.mk-quote dt { min-width: 0; font-size: var(--mk-t-meta); }
.mk-quote dd { margin: 0; flex: none; font-weight: 700; font-variant-numeric: tabular-nums; }
.mk-quote .mk-quote-now dt, .mk-quote .mk-quote-now dd { font-size: var(--mk-t-body); font-weight: 800; color: var(--mk-accent); }
form[data-once][aria-busy="true"] button { opacity: .65; cursor: progress; }

.mk-city-form { margin: 12px 0; max-width: 460px; }
.mk-city-form label { display: block; margin-bottom: 4px; font-weight: 600; }
.mk-city-row { display: flex; gap: 8px; }
.mk-city-row .mk-input { flex: 1; min-width: 0; }

/* Centred menu and lists: the menu row, short product rows and the "Near you" box sit in the middle of the page. */
@media (min-width: 1001px) {
    .mk-nav { justify-content: center; margin-left: 0; margin-right: 0; }
}
@media (min-width: 641px) {
    .mk-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
    /* one to three results sit in the middle at card width instead of stretching */
    .mk-grid:not(:has(> :nth-child(4))) { grid-template-columns: repeat(auto-fit, minmax(200px, 260px)); justify-content: center; }
}
.mk-listings .mk-sellstrip { margin-top: 16px; }
.mk-near-box { text-align: center; }
.mk-near-box .mk-city-form { margin-left: auto; margin-right: auto; text-align: left; }
.mk-near-box .mk-city-list { justify-content: center; }
.mk-section-head:has(#near-h) { justify-content: center; }

.mk-order-pick { display: flex; align-items: center; gap: 6px; }
.mk-videos { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; padding: 0; list-style: none; }
.mk-evidence { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; }

/* Floating chat and call buttons on a product page. */
.mk-bubbles { position: fixed; right: 16px; bottom: 96px; z-index: 55; display: flex; flex-direction: column; gap: 10px; }
.mk-bubble { display: grid; place-items: center; width: 56px; height: 56px; border: 0; border-radius: 50%; background: var(--mk-accent); color: var(--mk-on-accent); box-shadow: 0 6px 18px rgba(37, 99, 235, .32); cursor: pointer; }
.mk-bubble:hover, .mk-bubble:focus-visible { background: var(--mk-accent-strong); color: var(--mk-on-accent); }
.mk-bubble-call { width: 44px; height: 44px; align-self: center; }
@media (min-width: 1001px) { .mk-bubbles { bottom: 24px; } }

.mk-chat-img { max-width: 220px; height: auto; border-radius: 10px; display: block; }
.mk-attach { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--mk-border-control); border-radius: 50%; cursor: pointer; flex: none; }
.mk-attach input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.mk-attach:focus-within { outline: 2px solid var(--mk-brand); }

.contact-cta { text-align: center; padding: 12px 0; }
.contact-cta p { margin: 0 0 8px; }

/* The whole picture is shown inside the box it already has: nothing is cut off and nothing grows. */
.mk-card-media img, .mk-pd-media img, .mk-gal-track img { object-fit: cover; background: var(--mk-inset); }
.mk-gal-nav[hidden] { display: none; }
.mk-gal-stage { position: relative; }
.mk-gal-nav { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--mk-card); color: var(--mk-ink); box-shadow: 0 2px 10px rgba(0, 0, 0, .3); cursor: pointer; transform: translateY(-50%); }
.mk-gal-prev { left: 8px; }
.mk-gal-next { right: 8px; }
/* Desktop-only: the product page hides its arrows and relies on the thumbnails; touch screens keep them */
@media (min-width: 1001px) and (hover: hover) {
    .mk-gal-nav { display: none !important; }
}
.mk-gal-video { display: flex; }
.mk-gal-video a { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 6px; aspect-ratio: 4 / 3; background: var(--mk-brand); color: #fff; text-decoration: none; }
.mk-gal-play { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: rgba(255, 255, 255, .18); font-size: 26px; }
.mk-thumb-video { display: grid; place-items: center; width: 72px; height: 54px; border-radius: 8px; background: var(--mk-brand); color: #fff; text-decoration: none; }
@media (max-width: 1000px) { .mk-gal-video a { height: 252px; aspect-ratio: auto; } }

/* Breadcrumb strip under the header, with the list / map switch at its right end */
.mk-crumbbar { background: var(--mk-card); color: var(--mk-ink); border-bottom: 1px solid var(--mk-border); }
.mk-crumbbar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; padding-top: 2px; padding-bottom: 2px; }
.mk-crumbbar .mk-crumbs { min-width: 0; padding: 0; }
.mk-crumbbar .mk-crumbs li { display: flex; align-items: center; gap: 0; line-height: 24px; }
.mk-crumbbar .mk-seg { flex: none; }
.mk-crumbbar .mk-seg a { min-height: 32px; }
.mk-header .mk-crumbbar :focus-visible { outline-color: var(--mk-accent); }
.mk-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 16px; font-size: var(--mk-t-meta); }
/* a vibrant button on the dark footer */
.mk-footer a.mk-btn-on-brand, .mk-footer a.mk-btn-on-brand:hover { color: var(--mk-on-accent); text-decoration: none; }
/* Android app band: first thing in the footer, full width; icon, words and one large button (stacked on phones) */
.mk-btn.mk-btn-lg { min-height: 56px; padding: 12px 28px; border-radius: 16px; font-size: 1.0625rem; }
.mk-app-band { background: var(--mk-brand); border-bottom: 1px solid rgba(255, 255, 255, .14); }
.mk-app-band-in { display: flex; align-items: center; justify-content: center; gap: 16px 24px; padding-top: 24px; padding-bottom: 24px; }
.mk-app-band-ico { display: grid; place-items: center; flex: none; width: 64px; height: 64px; border-radius: 50%; background: var(--mk-accent); color: var(--mk-on-accent); }
.mk-app-band-ico .mk-icon { width: 2rem; height: 2rem; }
.mk-app-band-text { flex: 0 1 460px; min-width: 0; overflow-wrap: anywhere; }
.mk-footer .mk-app-band-h { margin: 0; font-size: clamp(1.25rem, 2.6vw, 1.6rem); font-weight: 800; line-height: 1.3; color: #FFFFFF; }
.mk-footer .mk-app-band-sub { max-width: none; margin: 4px 0 0; color: var(--mk-on-brand-muted); }
.mk-footer a.mk-app-band-btn { display: inline-flex; flex: none; padding: 12px 28px; }
@media (max-width: 640px) {
    .mk-app-band-in { flex-direction: column; text-align: center; }
    .mk-app-band-text { flex: 0 1 auto; }
    .mk-footer a.mk-app-band-btn { width: 100%; }
}

/* Compact storefront heading right above category chips */
.mk-listing-heading { margin: 0 0 10px; font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 800; letter-spacing: -.015em; color: var(--mk-ink); line-height: 1.25; }
.mk-listtools { background: var(--mk-surface); }

/* Desktop header: brand and tools in one row, the menu row below. The links wrap onto a second line (long Tamil, Telugu or
   Malayalam labels) instead of being cut off, and the category menu is free to hang below the row. */
@media (min-width: 1001px) {
    .mk-header .mk-bar { flex-wrap: nowrap; column-gap: 16px; min-height: 64px; }
    .mk-header .mk-bar-tools { gap: 4px; margin-left: auto; }
    .mk-header .mk-navrow { display: block; border-top: 1px solid rgba(255, 255, 255, .10); }
    .mk-header .mk-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px 4px; min-height: 46px; padding: 4px 0; margin: 0; }
    .mk-header .mk-nav-link { font-size: .875rem; font-weight: 600; min-height: 36px; padding: 4px 12px; white-space: nowrap; }
}
@media (min-width: 1001px) and (max-width: 1250px) {
    .mk-header .mk-nav { gap: 2px; }
    .mk-header .mk-nav-link { font-size: .8125rem; padding: 4px 9px; }
}
@media (min-width: 641px) {
    .mk-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 198px)); justify-content: start; gap: 14px; }
    .mk-card-media { height: auto; aspect-ratio: 16 / 10; }
    .mk-grid:not(:has(> :nth-child(4))) { grid-template-columns: repeat(auto-fit, minmax(170px, 198px)); justify-content: start; }
}

/* "Sign in to continue" */
.mk-gate { display: grid; justify-items: center; gap: 10px; max-width: 420px; margin: 24px auto; text-align: center; }
.mk-gate > .mk-icon { color: var(--mk-accent); }
.mk-city-form { margin-inline: auto; text-align: center; }
.mk-listtools { position: sticky; top: var(--mk-head); z-index: 20; padding: 8px 0; background: var(--mk-surface); }
.mk-gate h1, .mk-gate p { margin: 0; }
.mk-gate .mk-btn { justify-self: stretch; }

/* "Do you need a platform like this?" and its button, side by side in the middle of the footer */
.mk-footer .contact-cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 16px; padding: 18px 0 0; text-align: center; }
.mk-footer .contact-cta p { max-width: none; margin: 0; color: var(--mk-on-brand); }
.mk-footer .contact-cta a.mk-btn { display: inline-flex; align-items: center; gap: 8px; padding: 6px 20px; }

/* The category row and filter button never leave the screen on listing pages (mk-feed.js sets the exact top) */
.mk-feed-foot { display: flex; flex-direction: column; align-items: center; gap: 8px; min-height: 48px; padding: 12px 0; font-size: var(--mk-t-meta); color: var(--mk-muted); }
.mk-feed-foot p { margin: 0; }
/* Hero Products | Store switcher rendered right below top banners (instead of inside navbar) */
.mk-hero-seg { display: flex; justify-content: center; margin: 4px 0 14px; }
.mk-hero-seg .mk-seg2 { position: relative; display: grid; grid-template-columns: 1fr 1fr; width: min(380px, 100%); margin: 0; padding: 4px; border-radius: 14px; background: var(--mk-inset); border: 1.5px solid var(--mk-border); box-shadow: var(--mk-shadow); }
.mk-hero-seg .mk-seg2 a { position: relative; z-index: 3; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 6px 14px; border-radius: 10px; color: var(--mk-muted); font-weight: 700; font-size: .9375rem; text-decoration: none; transition: color .18s; }
.mk-hero-seg .mk-seg2 a[aria-current] { color: var(--mk-on-accent); font-weight: 800; }
.mk-hero-seg .mk-seg2-thumb { position: absolute; z-index: 2; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 8px); border-radius: 10px; background: var(--mk-accent); box-shadow: 0 2px 8px rgba(15, 23, 42, .16); transition: transform 240ms var(--mk-ease-out); }
.mk-hero-seg .mk-seg2[data-on="1"] .mk-seg2-thumb { transform: translateX(calc(100% + 8px)); }

/* Prominent List | Map switcher right inside listing tools + Interactive Map stage */
.mk-view-seg { display: inline-flex; align-items: center; flex: none; padding: 3px; border-radius: 999px; background: var(--mk-inset); border: 1.5px solid var(--mk-border); }
.mk-view-seg a { display: inline-flex; align-items: center; gap: 5px; min-height: 36px; padding: 4px 12px; border-radius: 999px; font-size: .85rem; font-weight: 700; color: var(--mk-muted); text-decoration: none; transition: background .16s, color .16s; }
.mk-view-seg a.is-on { background: var(--mk-accent); color: var(--mk-on-accent); }
.mk-map-card { padding: 16px; border-radius: 16px; background: var(--mk-card); border: 1px solid var(--mk-border); box-shadow: var(--mk-shadow); margin-bottom: 16px; }
.mk-map-canvas { width: 100%; height: 380px; border-radius: 12px; overflow: hidden; background: var(--mk-inset); border: 1px solid var(--mk-border); position: relative; }
@media (max-width: 640px) { .mk-map-canvas { height: 290px; } }
.mk-map-popup strong { display: block; color: #0F172A; font-size: .95rem; margin-bottom: 4px; }
.mk-map-popup a { display: inline-block; margin-top: 4px; font-weight: 700; color: #16A34A; }

/* Tournaments UI */
.tn-hero { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 20px; border-radius: 18px; background: var(--mk-card); border: 1px solid var(--mk-border); box-shadow: var(--mk-shadow); margin-bottom: 16px; }
.tn-hero h1 { margin: 8px 0 4px; font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
.tn-hero-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.tn-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tn-filters .mk-input, .tn-filters .mk-select { flex: 1 1 180px; min-width: 0; }
.tn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 14px; margin-bottom: 24px; }
.tn-card { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 16px; background: var(--mk-card); border: 1px solid var(--mk-border); box-shadow: var(--mk-shadow); transition: transform .22s var(--mk-ease-out), box-shadow .22s, border-color .2s; }
.tn-card:hover { transform: translateY(-3px); box-shadow: var(--mk-shadow-lg); border-color: var(--mk-accent); }
.tn-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.tn-fee { font-size: .8125rem; font-weight: 700; color: var(--mk-muted); }
.tn-card-title { margin: 0; font-size: 1.08rem; line-height: 1.35; }
.tn-card-title a { color: var(--mk-ink); }
.tn-card-title a:hover { color: var(--mk-accent); }
.tn-prize-banner { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--mk-tint); border: 1px solid var(--mk-border); }
.tn-prize-label { display: inline-flex; align-items: center; gap: 6px; font-size: .8125rem; font-weight: 700; color: var(--mk-ink); }
.tn-prize-val { font-size: 1.2rem; font-weight: 800; color: var(--mk-accent-strong); }
.tn-meta { display: grid; gap: 8px; margin: 0; font-size: .875rem; }
.tn-meta-2col { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 16px 0; }
.tn-meta dt { display: flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; color: var(--mk-muted); text-transform: uppercase; letter-spacing: .03em; }
.tn-meta dd { margin: 2px 0 0; font-weight: 600; color: var(--mk-ink); }
.tn-spots-bar { height: 7px; border-radius: 999px; background: var(--mk-inset); overflow: hidden; border: 1px solid var(--mk-border); }
.tn-spots-bar span { display: block; height: 100%; border-radius: 999px; background: var(--mk-accent); transition: width .5s var(--mk-ease-out); }
.tn-spots-txt { display: flex; justify-content: space-between; font-size: .8rem; color: var(--mk-muted); margin-top: 5px; }
.tn-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--mk-border); }
.tn-detail-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 16px; align-items: start; }
.tn-detail-title { margin: 10px 0 8px; font-size: clamp(1.3rem, 2.4vw, 1.8rem); }
.tn-podium { padding: 14px; border-radius: 14px; background: var(--mk-tint); border: 1px solid var(--mk-border); margin: 14px 0; }
.tn-podium-total { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 1rem; font-weight: 700; }
.tn-podium-total strong { font-size: 1.5rem; color: var(--mk-accent-strong); }
.tn-podium-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin-top: 12px; }
.tn-podium-tiers div { padding: 10px; border-radius: 10px; background: var(--mk-card); border: 1px solid var(--mk-border); text-align: center; }
.tn-podium-tiers span { display: block; font-size: .78rem; color: var(--mk-muted); font-weight: 700; }
.tn-podium-tiers b { font-size: 1.05rem; color: var(--mk-ink); }
.tn-rules { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--mk-border); }
.tn-roster { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.tn-roster li { display: flex; justify-content: space-between; gap: 8px; padding: 8px 12px; border-radius: 10px; background: var(--mk-inset); border: 1px solid var(--mk-border); font-size: .875rem; }
.tn-mine-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 10px; }
.tn-mini-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 10px; }
.tn-mini-list li { display: flex; flex-direction: column; gap: 3px; padding: 10px; border-radius: 10px; background: var(--mk-inset); border: 1px solid var(--mk-border); }
.tn-admin-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.tn-admin-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.tn-admin-btns form { display: flex; gap: 6px; align-items: center; }
.tn-form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
@media (max-width: 900px) { .tn-detail-grid { grid-template-columns: 1fr; } }

/* Mobile compact spacing optimizations */
@media (max-width: 640px) {
    .mk-bn { border-radius: 14px; }
    .mk-car-track { border-radius: 14px; }
    .mk-chip { min-height: 36px; padding: 4px 12px; font-size: .8125rem; }
    .mk-filterbtn { min-height: 36px; padding: 4px 12px; font-size: .8125rem; }
    .mk-listtools { gap: 8px; flex-wrap: wrap; }
    .mk-hero-seg .mk-seg2 a { min-height: 36px; font-size: .85rem; }
    .mk-grid { gap: 10px; }
    .mk-card-title { font-size: .875rem; }
    .mk-card-price .mk-price { font-size: .95rem; }
}

.mk-pager[hidden] { display: none; }

@media (max-width: 1000px) {
    .mk-header .mk-bar { flex-wrap: nowrap; padding-top: 6px; padding-bottom: 6px; }
    .mk-header .mk-brand-tile img { width: 32px; height: 32px; object-fit: contain; }
}
/* phones: the tools keep their icons and drop the words (still read aloud), because a long Tamil, Telugu or Malayalam word
   would not fit five tools in one row; the theme switch lives in the account sheet too */
@media (max-width: 599px) {
    .mk-bar-tools .mk-hdr-lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .mk-bar-tools .mk-search-open, .mk-bar-tools .mk-saved, .mk-bar-tools .mk-chat-hdr, .mk-bar-tools .mk-cart, .mk-bar-tools .mk-hdr-acct { min-height: 48px; }
}
@media (max-width: 379px) { .mk-bar-tools .mk-theme-btn { display: none; } }
@media (max-width: 359px) { .mk-bar-tools .mk-search-open, .mk-bar-tools .mk-saved, .mk-bar-tools .mk-chat-hdr, .mk-bar-tools .mk-cart, .mk-bar-tools .mk-hdr-acct { min-width: 40px; } }
/* tablets: the key links stay one swipe away in a strip under the brand row (the category menu is the chips on the page) */
@media (min-width: 641px) and (max-width: 1000px) {
    :root { --mk-head: 112px; }
    .mk-header .mk-bar { column-gap: 14px; }
    .mk-header .mk-navrow { display: block; border-top: 1px solid rgba(255, 255, 255, .10); }
    .mk-header .mk-nav { display: flex; flex-wrap: nowrap; align-items: center; gap: 4px; padding: 4px 0; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .mk-header .mk-nav::-webkit-scrollbar { display: none; }
    .mk-header .mk-nav-item { flex: none; scroll-snap-align: start; }
    .mk-header .mk-nav-link { flex: none; scroll-snap-align: start; min-height: 40px; padding: 4px 12px; font-size: .875rem; font-weight: 600; white-space: nowrap; }
    .mk-header .mk-menu, .mk-header .mk-chev { display: none; }
}
