/* ============================================================
   Marketplace home and browse (17 Nov 2026 rebuild).
   Quiet white chrome, one sky blue accent, and the colour kept for
   the real goods: category photos, listing photos, the gallery ring.
   Loaded by marketplace.html after styles.css and site-ios.css.
   ============================================================ */

.mkp {
  --mk-ink: #101828;
  --mk-ink2: #344054;
  --mk-mute: #5d6b82;
  --mk-line: rgba(16, 24, 40, .09);
  --mk-line2: rgba(16, 24, 40, .14);
  --mk-card: #fff;
  --mk-page: #f5f7fb;
  --mk-soft: #eaf3ff;
  --mk-accent: #0164ce;
  --mk-accent-ink: #0059c4;
  --mk-accent-hi: #0375d7;
  --mk-ok: #12805c;
  --mk-ease: cubic-bezier(.22, 1, .36, 1);
  --mk-r: 16px;
}
html[data-lb-theme="dark"] .mkp {
  --mk-ink: #f2f5fa;
  --mk-ink2: #cdd5e1;
  --mk-mute: #9aa6b8;
  --mk-line: rgba(255, 255, 255, .09);
  --mk-line2: rgba(255, 255, 255, .16);
  --mk-card: #131b2c;
  --mk-page: #0c111d;
  --mk-soft: rgba(3, 117, 215, .16);
  --mk-accent: #3b9bff;
  --mk-accent-ink: #6cb4ff;
}
.mkp { background: var(--mk-page); color: var(--mk-ink); }
.mkp .num, .mkp [data-num] { font-variant-numeric: tabular-nums; }

/* ---------- Hero ---------- */
.mk-hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #f2f8ff 0%, #ffffff 100%); border-bottom: 1px solid var(--mk-line); color: var(--mk-ink); }
html[data-lb-theme="dark"] .mk-hero { background: linear-gradient(180deg, #0e1a2e 0%, #0c111d 100%); }
.mk-hero__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.mk-hero__bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s ease; }
.mk-hero__bg video.is-on { opacity: .12; }
.mk-hero__in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 40px; align-items: center; padding-top: 104px; padding-bottom: 56px; }
.mk-hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 14px; font-weight: 600; color: var(--mk-accent-ink); }
.mk-hero__eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mk-ok); box-shadow: 0 0 0 4px rgba(18, 128, 92, .14); }
.mk-hero h1 { margin: 0 0 14px; font-family: "Space Grotesk", system-ui, sans-serif; font-weight: 600; letter-spacing: -.025em; line-height: 1.06; font-size: clamp(32px, 3.6vw, 48px); color: var(--mk-ink); text-wrap: balance; max-width: 20ch; }
.mk-hero__lead { margin: 0; color: var(--mk-ink2); font-size: 16.5px; line-height: 1.6; max-width: 52ch; text-wrap: pretty; }

/* The search: the one primary action on the first screen. */
.mk-find { display: flex; align-items: stretch; gap: 0; margin: 28px 0 0; max-width: 640px; background: var(--mk-card); border: 1px solid var(--mk-line2); border-radius: 16px; padding: 6px; box-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 12px 32px -18px rgba(1, 89, 196, .35); }
.mk-find:focus-within { border-color: var(--mk-accent); box-shadow: 0 0 0 4px rgba(1, 100, 206, .14), 0 12px 32px -18px rgba(1, 89, 196, .35); }
.mk-find__region { flex: none; max-width: 150px; border: 0; background: transparent; padding: 0 30px 0 12px; font: 600 14.5px/1 inherit; font-family: inherit; color: var(--mk-ink); cursor: pointer; border-right: 1px solid var(--mk-line); border-radius: 10px 0 0 10px; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d6b82' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 14px; }
.mk-find__field { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; }
.mk-find__field svg { position: absolute; left: 14px; width: 18px; height: 18px; color: var(--mk-mute); pointer-events: none; }
.mk-find__field input { width: 100%; min-height: 48px; border: 0; background: transparent; padding: 0 12px 0 42px; font-size: 16px; color: var(--mk-ink); }
.mk-find__field input:focus { outline: none; }
.mk-find__field input::placeholder { color: var(--mk-mute); }
.mk-find__go { flex: none; min-height: 48px; padding: 0 22px; border: 0; border-radius: 11px; background: var(--mk-accent); color: #fff; font-weight: 600; font-size: 15px; cursor: pointer; transition: background .15s ease, transform .12s var(--mk-ease); }
.mk-find__go:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .mk-find__go:hover { background: var(--mk-accent-ink); } }

.mk-popular { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 0; font-size: 13.5px; color: var(--mk-mute); }
.mk-popular button { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--mk-line2); background: var(--mk-card); color: var(--mk-ink2); font-size: 13.5px; font-weight: 500; cursor: pointer; transition: border-color .15s ease, color .15s ease, transform .12s var(--mk-ease); }
.mk-popular button:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .mk-popular button:hover { border-color: var(--mk-accent); color: var(--mk-accent-ink); } }

.mk-hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 26px; }
.mk-hero__cta { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--mk-line2); background: var(--mk-card); color: var(--mk-ink); font-weight: 600; font-size: 14.5px; text-decoration: none; transition: border-color .15s ease, transform .12s var(--mk-ease); }
.mk-hero__cta svg { width: 18px; height: 18px; color: var(--mk-accent); }
.mk-hero__cta:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .mk-hero__cta:hover { border-color: var(--mk-accent); } }
.mk-hero__link { display: inline-flex; align-items: center; min-height: 44px; color: var(--mk-accent-ink); font-size: 14.5px; font-weight: 600; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .mk-hero__link:hover { text-decoration: underline; text-underline-offset: 3px; } }

/* Gallery ring of real photos (admin-managed, else the category photos). */
.mk-float, .mk-gallery { position: relative; height: 380px; }
.mk-gallery__stage { position: absolute; inset: 0; perspective: 1300px; display: grid; place-items: center; }
.mk-gallery__ring { position: relative; width: 210px; height: 270px; transform-style: preserve-3d; will-change: transform; cursor: grab; touch-action: pan-y; }
.mk-gallery__ring:active { cursor: grabbing; }
.mk-gallery__card { position: absolute; inset: 0; margin: 0; width: 210px; height: 270px; border-radius: 20px; overflow: hidden; background: #dfeaf9; border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 28px 50px -28px rgba(16, 40, 90, .55); backface-visibility: hidden; }
.mk-gallery__card img, .mk-gallery__card video { width: 100%; height: 100%; object-fit: cover; display: block; }
.mk-gallery__card figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px; font-size: 14px; font-weight: 600; color: #fff; background: linear-gradient(to top, rgba(8, 20, 45, .78), transparent); }
.mk-gallery__card--icon { background: var(--mk-soft); display: grid; place-items: center; }
.mk-gallery__card--icon img { width: 54%; height: 54%; object-fit: contain; }
.mk-gallery__glyph { width: 40%; height: 40%; color: var(--mk-accent); }
.mk-gallery__glyph svg { width: 100%; height: 100%; }
.mk-gallery__card--icon figcaption { color: var(--mk-ink); background: none; }

/* Trust strip under the hero: three facts that are true for every order. */
.mk-trust { border-bottom: 1px solid var(--mk-line); background: var(--mk-card); }
.mk-trust ul { list-style: none; margin: 0 auto; padding: 18px 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.mk-trust li { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mk-trust__ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--mk-soft); color: var(--mk-accent); }
.mk-trust__ic svg { width: 20px; height: 20px; }
.mk-trust strong { display: block; font-size: 14.5px; font-weight: 600; color: var(--mk-ink); }
.mk-trust span { display: block; font-size: 13px; color: var(--mk-mute); line-height: 1.4; }

/* ---------- Sections ---------- */
#mkShop { padding-top: 40px; padding-bottom: 56px; }
/* Browse has no hero above it, so it clears the fixed site header itself. */
.mkp.is-browsing #mkShop { padding-top: 92px; }
@media (max-width: 640px) { .mkp.is-browsing #mkShop { padding-top: 66px; } }
.mk-sec { margin: 0 0 48px; }
.mk-sechead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 0 0 16px; }
.mk-sechead h2 { margin: 0; font-family: "Space Grotesk", system-ui, sans-serif; font-weight: 600; font-size: 24px; letter-spacing: -.015em; color: var(--mk-ink); text-wrap: balance; }
.mk-sechead p { margin: 4px 0 0; font-size: 14px; color: var(--mk-mute); }
.mk-more { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 4px; background: none; border: 0; color: var(--mk-accent-ink); font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none; }
.mk-more svg { width: 16px; height: 16px; transition: transform .2s var(--mk-ease); }
@media (hover: hover) and (pointer: fine) { .mk-more:hover svg { transform: translateX(3px); } }

/* Category photo cards: the bright moment of the page. */
.mk-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.mk-tile { position: relative; display: block; aspect-ratio: 4 / 4.4; border: 0; padding: 0; border-radius: var(--mk-r); overflow: hidden; background: var(--mk-soft); cursor: pointer; text-align: left; color: #fff; isolation: isolate; transition: transform .14s var(--mk-ease); }
.mk-tile:active { transform: scale(.97); }
.mk-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s var(--mk-ease); }
.mk-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(6, 18, 42, .78) 0%, rgba(6, 18, 42, .1) 48%, transparent 70%); }
@media (hover: hover) and (pointer: fine) { .mk-tile:hover img { transform: scale(1.05); } }
.mk-tile__text { position: absolute; left: 14px; right: 14px; bottom: 12px; display: flex; flex-direction: column; gap: 2px; }
.mk-tile__name { font-size: 16px; font-weight: 600; line-height: 1.2; }
.mk-tile__count { font-size: 12.5px; font-weight: 500; opacity: .86; font-variant-numeric: tabular-nums; min-height: 1.2em; }
.mk-tile--plain { color: var(--mk-ink); background: var(--mk-card); border: 1px solid var(--mk-line); }
.mk-tile--plain::after { display: none; }
.mk-tile--plain .mk-tile__glyph { position: absolute; top: 16px; left: 14px; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--mk-soft); color: var(--mk-accent); }
.mk-tile--plain .mk-tile__glyph svg { width: 26px; height: 26px; }
.mk-tile--plain .mk-tile__glyph img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; position: static; z-index: auto; }
.mk-tile--plain .mk-tile__count { color: var(--mk-mute); opacity: 1; }

/* Listing cards */
.mk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.mk-card { position: relative; display: flex; flex-direction: column; text-decoration: none; color: inherit; border-radius: var(--mk-r); background: var(--mk-card); border: 1px solid var(--mk-line); overflow: hidden; transition: box-shadow .2s ease, border-color .2s ease; }
@media (hover: hover) and (pointer: fine) { .mk-card:hover { box-shadow: 0 18px 36px -24px rgba(16, 40, 90, .45); border-color: var(--mk-line2); } .mk-card:hover .mk-card__pic img { transform: scale(1.04); } }
.mk-card:active { transform: scale(.99); }
.mk-card__pic { position: relative; display: block; aspect-ratio: 1 / 1; background: #eef3fa; overflow: hidden; }
html[data-lb-theme="dark"] .mk-card__pic { background: #1a2338; }
.mk-card__pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s var(--mk-ease); }
.mk-card__pic--none { display: grid; place-items: center; color: var(--mk-mute); }
.mk-card__pic--none svg { width: 40px; height: 40px; opacity: .6; }
.mk-card__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; }
.mk-card__price { font-family: "Space Grotesk", system-ui, sans-serif; font-size: 17px; font-weight: 600; color: var(--mk-ink); font-variant-numeric: tabular-nums; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.mk-card__was { text-decoration: line-through; color: var(--mk-mute); font-weight: 500; font-size: 13px; }
.mk-card__title { font-size: 14.5px; font-weight: 500; line-height: 1.35; color: var(--mk-ink2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.mk-card__meta { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--mk-mute); min-width: 0; }
.mk-card__meta svg { width: 13px; height: 13px; flex: none; }
.mk-card__meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-card__rate { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--mk-ink2); font-weight: 500; font-variant-numeric: tabular-nums; }
.mk-stars { position: relative; display: inline-block; font-size: 12px; line-height: 1; letter-spacing: 1px; font-family: Arial, sans-serif; }
.mk-stars::before { content: "\2605\2605\2605\2605\2605"; color: rgba(16, 24, 40, .16); }
.mk-stars::after { content: "\2605\2605\2605\2605\2605"; color: #e8a317; position: absolute; left: 0; top: 0; width: calc(var(--v, 0) * 20%); overflow: hidden; white-space: nowrap; }
/* Corner actions on a photo: save (heart) and add to basket. */
.mk-acts { position: absolute; top: 10px; right: 10px; z-index: 2; display: flex; flex-direction: column; gap: 8px; }
.mk-act { width: 40px; height: 40px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .94); color: var(--mk-accent); display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 8px rgba(16, 24, 40, .16); transition: transform .12s var(--mk-ease), color .15s ease; -webkit-tap-highlight-color: transparent; }
.mk-act svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mk-act:active { transform: scale(.92); }
.mk-act[aria-pressed="true"] { color: #d92d4b; }
.mk-act[aria-pressed="true"] svg { fill: currentColor; }
.mk-act.is-pop { animation: mkPop .32s var(--mk-ease); }
@keyframes mkPop { 0% { transform: scale(1); } 45% { transform: scale(1.18); } 100% { transform: scale(1); } }
.mk-badges { position: absolute; left: 10px; top: 10px; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.mk-badge { font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 8px; color: #fff; background: #c2410c; font-variant-numeric: tabular-nums; }
.mk-badge--pre { background: #0e7490; }
.mk-badge--out { background: rgba(16, 24, 40, .72); }

/* Skeletons hold the space the cards will take. */
.mk-sk { border: 1px solid var(--mk-line); border-radius: var(--mk-r); overflow: hidden; background: var(--mk-card); }
.mk-sk__pic { aspect-ratio: 1 / 1; }
.mk-sk__line { height: 12px; margin: 13px 14px; border-radius: 6px; }
.mk-sk__line.s { width: 55%; }
.mk-sk__pic, .mk-sk__line { background: linear-gradient(100deg, rgba(16, 24, 40, .05) 30%, rgba(16, 24, 40, .02) 50%, rgba(16, 24, 40, .05) 70%); background-size: 200% 100%; animation: mkShimmer 1.3s linear infinite; }
@keyframes mkShimmer { to { background-position: -200% 0; } }

/* Empty state for a marketplace that has no listings yet. */
.mk-empty { grid-column: 1 / -1; text-align: center; color: var(--mk-mute); padding: 40px 16px; font-size: 14.5px; }
.mk-empty svg { width: 44px; height: 44px; color: var(--mk-mute); opacity: .55; margin: 0 auto 10px; display: block; }
.mk-firsts { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 0; border: 1px solid var(--mk-line); border-radius: 20px; overflow: hidden; background: var(--mk-card); }
.mk-firsts__text { padding: 32px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.mk-firsts__text h3 { margin: 0; font-family: "Space Grotesk", system-ui, sans-serif; font-size: 22px; font-weight: 600; letter-spacing: -.01em; color: var(--mk-ink); text-wrap: balance; }
.mk-firsts__text p { margin: 0; color: var(--mk-ink2); font-size: 15px; line-height: 1.6; max-width: 46ch; text-wrap: pretty; }
.mk-firsts__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.mk-firsts__pics { position: relative; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 6px; padding: 6px; background: var(--mk-soft); height: 320px; }
.mk-firsts__pics img { width: 100%; height: 100%; min-height: 0; object-fit: cover; border-radius: 14px; display: block; }
.mk-firsts__pics img:first-child { grid-row: span 2; }

.mk-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 12px; border: 1px solid transparent; font-weight: 600; font-size: 14.5px; text-decoration: none; cursor: pointer; transition: background .15s ease, border-color .15s ease, transform .12s var(--mk-ease); }
.mk-btn:active { transform: scale(.97); }
.mk-btn--solid { background: var(--mk-accent); color: #fff; }
@media (hover: hover) and (pointer: fine) { .mk-btn--solid:hover { background: var(--mk-accent-ink); } .mk-btn--line:hover { border-color: var(--mk-accent); } }
.mk-btn--line { background: var(--mk-card); color: var(--mk-ink); border-color: var(--mk-line2); }
.mk-btn--white { background: #fff; color: #0059c4; }

/* Sideways rows for Saved and Recently viewed. */
.mk-rowscroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(190px, 220px); gap: 16px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; scrollbar-width: thin; overscroll-behavior-x: contain; }
.mk-rowscroll > * { scroll-snap-align: start; }

/* How buying works: the four steps every order walks. */
.mk-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: mkstep; }
.mk-step { position: relative; padding: 20px 18px 18px; border-radius: var(--mk-r); background: var(--mk-card); border: 1px solid var(--mk-line); }
.mk-step__n { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--mk-soft); color: var(--mk-accent-ink); font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; margin-bottom: 14px; }
.mk-step:last-child .mk-step__n { background: rgba(18, 128, 92, .12); color: var(--mk-ok); }
.mk-step h3 { margin: 0 0 6px; font-size: 15.5px; font-weight: 600; color: var(--mk-ink); }
.mk-step p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--mk-mute); text-wrap: pretty; }
.mk-step:not(:last-child)::after { content: ""; position: absolute; top: 35px; right: -14px; width: 14px; height: 2px; background: var(--mk-line2); }

/* Reviews (real verified buyers only). */
.mk-reviews { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 320px); gap: 16px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.mk-rev { scroll-snap-align: start; border: 1px solid var(--mk-line); border-radius: var(--mk-r); background: var(--mk-card); padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.mk-rev__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mk-rev__who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mk-rev__av { width: 36px; height: 36px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 14px; background: var(--mk-accent); }
.mk-rev__name { font-size: 14px; font-weight: 600; color: var(--mk-ink); }
.mk-rev__vf { font-size: 12px; font-weight: 600; color: var(--mk-ok); }
.mk-rev__body { margin: 0; font-size: 14px; color: var(--mk-ink2); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.mk-rev__prod { font-size: 12.5px; color: var(--mk-mute); }
.mk-rev__prod a { color: var(--mk-ink2); font-weight: 600; text-decoration: none; }

/* Sell band at the foot of the home view. */
.mk-sellband { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 32px; border-radius: 22px; color: #fff; background: linear-gradient(135deg, #0059c4, #0375d7); }
.mk-sellband h2 { margin: 0 0 8px; font-family: "Space Grotesk", system-ui, sans-serif; font-weight: 600; font-size: 26px; letter-spacing: -.015em; text-wrap: balance; }
.mk-sellband p { margin: 0; color: rgba(255, 255, 255, .9); font-size: 15px; line-height: 1.6; max-width: 56ch; }
.mk-sellband ul { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; font-weight: 500; }
.mk-sellband li { display: inline-flex; align-items: center; gap: 8px; }
.mk-sellband li svg { width: 17px; height: 17px; color: #bfe0ff; }

/* ---------- Browse ---------- */
.mk-crumb { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; font-size: 13.5px; color: var(--mk-mute); margin: 0 0 14px; }
.mk-crumb a { color: var(--mk-accent-ink); text-decoration: none; font-weight: 600; }
.mk-crumb .sep { color: var(--mk-line2); }
.mk-toolbar { position: sticky; top: 64px; z-index: 20; display: flex; gap: 10px; align-items: center; padding: 10px 0; margin: 0 0 4px; background: color-mix(in srgb, var(--mk-page) 92%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.mk-search { position: relative; flex: 1 1 auto; min-width: 0; }
.mk-search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--mk-mute); pointer-events: none; }
.mk-search input { width: 100%; min-height: 46px; padding: 0 14px 0 40px; border-radius: 12px; border: 1px solid var(--mk-line2); background: var(--mk-card); color: var(--mk-ink); font-size: 16px; }
.mk-search input:focus { outline: none; border-color: var(--mk-accent); box-shadow: 0 0 0 4px rgba(1, 100, 206, .14); }
.mk-select { min-height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--mk-line2); background: var(--mk-card); font-size: 14.5px; font-weight: 500; color: var(--mk-ink); cursor: pointer; }
.mk-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 14px; border: 1px solid var(--mk-line2); border-radius: 12px; background: var(--mk-card); color: var(--mk-ink); font-size: 14.5px; font-weight: 600; cursor: pointer; }
.mk-toggle svg { width: 18px; height: 18px; }
.mk-toggle .n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--mk-accent); color: #fff; font-size: 12px; display: inline-grid; place-items: center; font-variant-numeric: tabular-nums; }
.mk-view { display: inline-flex; border: 1px solid var(--mk-line2); border-radius: 12px; background: var(--mk-card); padding: 3px; flex: none; }
.mk-view button { width: 40px; height: 38px; border: 0; border-radius: 9px; background: none; color: var(--mk-mute); display: grid; place-items: center; cursor: pointer; }
.mk-view button svg { width: 18px; height: 18px; }
.mk-view button[aria-pressed="true"] { background: var(--mk-soft); color: var(--mk-accent-ink); }

.mk-quick { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 2px; margin: 0 0 12px; scrollbar-width: none; overscroll-behavior-x: contain; }
.mk-quick::-webkit-scrollbar { display: none; }
.mk-chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--mk-line2); background: var(--mk-card); font-size: 13.5px; font-weight: 500; color: var(--mk-ink2); cursor: pointer; user-select: none; -webkit-user-select: none; transition: border-color .15s ease, background .15s ease, color .15s ease, transform .12s var(--mk-ease); }
.mk-chip:active { transform: scale(.97); }
.mk-chip[aria-pressed="true"], .mk-chip.is-on { border-color: var(--mk-accent); background: var(--mk-soft); color: var(--mk-accent-ink); font-weight: 600; }
.mk-chip svg { width: 14px; height: 14px; }
.mk-active { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 14px; }
.mk-active:empty { display: none; }
.mk-active .mk-chip { background: var(--mk-soft); border-color: transparent; color: var(--mk-accent-ink); font-weight: 600; }
.mk-active .mk-clearall { min-height: 38px; }

.mk-browse { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 28px; align-items: start; }
.mk-rail { position: sticky; top: 140px; display: flex; flex-direction: column; gap: 4px; max-height: calc(100vh - 160px); max-height: calc(100dvh - 160px); overflow: auto; overscroll-behavior: contain; padding-right: 4px; }
.mk-rail__head { display: none; }
.mk-facet { padding: 14px 0; border-bottom: 1px solid var(--mk-line); }
.mk-facet:last-of-type { border-bottom: 0; }
.mk-facet > h3 { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--mk-ink); }
.mk-facet__list { display: flex; flex-direction: column; gap: 2px; max-height: 244px; overflow: auto; }
.mk-facet__opt { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 38px; padding: 0 10px; border-radius: 9px; font-size: 14px; color: var(--mk-ink2); cursor: pointer; border: 0; background: none; text-align: left; width: 100%; }
@media (hover: hover) and (pointer: fine) { .mk-facet__opt:hover { background: var(--mk-soft); } }
.mk-facet__opt.is-on { background: var(--mk-soft); color: var(--mk-accent-ink); font-weight: 600; }
.mk-facet__opt .n, .mk-check .n { font-size: 12.5px; color: var(--mk-mute); font-variant-numeric: tabular-nums; }
.mk-check { display: flex; align-items: center; gap: 10px; min-height: 38px; font-size: 14px; color: var(--mk-ink2); cursor: pointer; }
.mk-check input { width: 18px; height: 18px; accent-color: var(--mk-accent); }
.mk-check .n { margin-left: auto; }
.mk-price { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.mk-price input { width: 100%; min-width: 0; min-height: 42px; padding: 0 10px; border: 1px solid var(--mk-line2); border-radius: 10px; font-size: 16px; background: var(--mk-card); color: var(--mk-ink); font-variant-numeric: tabular-nums; }
.mk-price span { color: var(--mk-mute); }
.mk-railbtns { display: flex; gap: 8px; }
.mk-railbtns .mk-btn { flex: 1; min-height: 40px; padding: 0 10px; font-size: 13.5px; }
.mk-clearall { align-self: flex-start; background: none; border: 0; color: var(--mk-accent-ink); font-weight: 600; font-size: 14px; cursor: pointer; padding: 0 4px; min-height: 36px; }
.mk-resulthead { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.mk-resulthead h2 { margin: 0; font-family: "Space Grotesk", system-ui, sans-serif; font-weight: 600; font-size: 22px; letter-spacing: -.01em; }
.mk-count { margin: 2px 0 0; font-size: 13.5px; color: var(--mk-mute); font-variant-numeric: tabular-nums; min-height: 1.2em; }

/* Results: grid of cards, or the wide list rows (tonaton style). */
.mk-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.mk-list.is-rows { grid-template-columns: 1fr 1fr; gap: 14px; }
.mk-row { position: relative; display: grid; grid-template-columns: 200px minmax(0, 1fr); border: 1px solid var(--mk-line); border-radius: var(--mk-r); overflow: hidden; background: var(--mk-card); text-decoration: none; color: inherit; transition: box-shadow .2s ease, border-color .2s ease; }
@media (hover: hover) and (pointer: fine) { .mk-row:hover { box-shadow: 0 18px 36px -26px rgba(16, 40, 90, .45); border-color: var(--mk-line2); } }
.mk-row__pic { position: relative; aspect-ratio: 4 / 3.4; background: #eef3fa; overflow: hidden; }
html[data-lb-theme="dark"] .mk-row__pic { background: #1a2338; }
.mk-row__pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mk-row__pic--none { display: grid; place-items: center; color: var(--mk-mute); }
.mk-row__pic--none svg { width: 36px; height: 36px; opacity: .55; }
.mk-row__count { position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: #fff; background: rgba(11, 18, 32, .66); padding: 3px 8px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.mk-row__count svg { width: 12px; height: 12px; }
.mk-row .mk-acts { flex-direction: row; top: 8px; right: 8px; }
.mk-row .mk-act { width: 36px; height: 36px; }
.mk-row__body { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mk-row__price { font-family: "Space Grotesk", system-ui, sans-serif; font-size: 20px; font-weight: 600; color: var(--mk-ink); display: flex; align-items: baseline; gap: 8px; font-variant-numeric: tabular-nums; }
.mk-row__was { text-decoration: line-through; color: var(--mk-mute); font-size: 13px; font-weight: 500; }
.mk-row__title { font-size: 15px; font-weight: 500; color: var(--mk-ink2); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mk-row__meta { font-size: 13px; color: var(--mk-mute); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mk-row__meta > span { display: inline-flex; align-items: center; gap: 5px; }
.mk-row__meta svg { width: 13px; height: 13px; }
.mk-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.mk-tag { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 8px; background: var(--mk-soft); color: var(--mk-accent-ink); }
.mk-tag--pre { background: rgba(14, 116, 144, .12); color: #0e7490; }
.mk-tag--used { background: rgba(138, 109, 59, .12); color: #8a6d3b; }
.mk-pager { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 28px 0 4px; font-variant-numeric: tabular-nums; }
.mk-pager button { min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--mk-line2); background: var(--mk-card); border-radius: 12px; font-weight: 600; font-size: 14px; color: var(--mk-ink); cursor: pointer; }
.mk-pager button.is-on { background: var(--mk-accent); color: #fff; border-color: transparent; }
.mk-pager button[disabled] { opacity: .4; cursor: default; }

.mk-railtoggle { display: none; }
.mk-sheetback { display: none; }

/* ---------- Wide screens ---------- */
@media (min-width: 1100px) {
  #mkShop > .container { max-width: 1320px; }
}

/* ---------- Tablet and phone ---------- */
@media (max-width: 1099px) {
  .mk-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mk-list.is-rows { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .mk-hero__in { grid-template-columns: 1fr; padding-top: 92px; padding-bottom: 36px; gap: 0; }
  .mk-float, .mk-gallery { display: none; }
  .mk-trust ul { grid-template-columns: 1fr; gap: 12px; padding: 16px 0; }
  .mk-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mk-step:nth-child(2)::after { display: none; }
  .mk-browse { grid-template-columns: 1fr; }
  .mk-railtoggle { display: inline-flex; }
  /* Filters open as a sheet from the bottom on phone and tablet. */
  .mk-rail { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 1200; max-height: 82vh; max-height: 82dvh; padding: 0 20px calc(20px + env(safe-area-inset-bottom, 0px)); background: var(--mk-card); border-radius: 20px 20px 0 0; box-shadow: 0 -20px 40px -20px rgba(16, 24, 40, .35);
    transform: translateY(104%); visibility: hidden; transition: transform .24s var(--mk-ease), visibility 0s linear .24s; }
  .mk-rail.sheet.open { transform: none; visibility: visible; transition: transform .3s var(--mk-ease), visibility 0s; }
  .mk-rail__head { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 1; padding: 14px 0 10px; background: var(--mk-card); border-bottom: 1px solid var(--mk-line); }
  .mk-rail__head strong { font-size: 17px; font-weight: 600; }
  .mk-rail__head .mk-btn { min-height: 40px; }
  .mk-sheetback { display: block; position: fixed; inset: 0; z-index: 1199; background: rgba(8, 15, 30, .42); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
  .mk-sheetback.is-on { opacity: 1; pointer-events: auto; }
  .mk-sellband { grid-template-columns: 1fr; padding: 24px; }
  .mk-firsts { grid-template-columns: 1fr; }
  .mk-firsts__pics { height: 220px; order: -1; }
  .mk-firsts__text { padding: 22px; }
}
@media (max-width: 640px) {
  .mk-hero__in { padding-top: 84px; padding-bottom: 28px; }
  .mk-hero h1 { font-size: 32px; }
  .mk-hero__lead { font-size: 15.5px; }
  .mk-find { flex-wrap: wrap; padding: 6px; gap: 6px; }
  .mk-find__region { order: 2; flex: 1 1 auto; max-width: none; min-height: 46px; border-right: 0; border: 1px solid var(--mk-line); border-radius: 10px; }
  .mk-find__field { order: 1; flex: 1 1 100%; }
  .mk-find__go { order: 3; flex: 1 1 auto; }
  .mk-tiles { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 42%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; overscroll-behavior-x: contain; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scroll-padding-left: 16px; }
  .mk-tiles::-webkit-scrollbar { display: none; }
  .mk-tile { scroll-snap-align: start; }
  .mk-grid, .mk-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .mk-list.is-rows { grid-template-columns: 1fr; }
  .mk-row { grid-template-columns: 124px minmax(0, 1fr); }
  .mk-row__pic { aspect-ratio: auto; min-height: 124px; }
  .mk-row__price { font-size: 17px; }
  .mk-card__body { padding: 10px 11px 12px; }
  .mk-card__price { font-size: 16px; }
  .mk-steps { grid-template-columns: 1fr; }
  .mk-step::after { display: none; }
  .mk-sechead h2 { font-size: 21px; }
  .mk-rowscroll { grid-auto-columns: 44%; }
  .mk-toolbar { top: 56px; }
  .mk-view { display: none; }
  .mk-sellband h2 { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .mk-sk__pic, .mk-sk__line { animation: none; }
  .mk-tile img, .mk-card__pic img, .mk-rail, .mk-act { transition: none; animation: none; }
}
