/*
 Theme Name:   Makazi Child
 Theme URI:    https://makazi.network
 Description:  Makazi Network – WooCommerce child theme. Exact UI mirror of the React app.
 Author:       Makazi Team
 Author URI:   https://makazi.network
 Template:     generatepress
 Version:      1.0.0
 Requires at least: 6.0
 Tested up to: 6.6
 Requires PHP: 8.0
 License:      GNU General Public License v2 or later
 License URI:  https://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  makazi-child
 Tags:         e-commerce, responsive, custom-logo, custom-menu, translation-ready
*/

/* ── CSS Custom Properties (design tokens mirroring the React app) ─────── */
:root {
  /* ── Primary — Blue (matches Tailwind blue-600 used in React) ─────────── */
  --primary:          #2563eb;   /* blue-600  — same as Tailwind blue-600 in React */
  --primary-hover:    #1d4ed8;   /* blue-700  — hover / active state */
  --primary-light:    #eff6ff;   /* blue-50   — light tint for hover backgrounds */
  --primary-fg:       #ffffff;

  /* ── Green — ONLY for WhatsApp button + Verified badge ───────────────── */
  --green:            #22c55e;   /* green-500 */
  --green-dark:       #16a34a;   /* green-600 */
  --green-fg:         #ffffff;

  /* ── Neutral tokens ──────────────────────────────────────────────────── */
  --background:       #ffffff;
  --foreground:       #0f172a;
  --card:             #ffffff;
  --border:           #e2e8f0;
  --muted:            #f8fafc;
  --muted-fg:         #64748b;
  --radius:           5px;
  --font-sans:        'Jost', ui-sans-serif, system-ui, -apple-system, sans-serif;
}

/* ── Reset / Base ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Jost everywhere — no exceptions */
html, body, input, textarea, select, button, a, p, h1, h2, h3, h4, h5, h6,
.entry-content, .site-header, .nav-primary, .generate-columns-container {
    font-family: 'Jost', ui-sans-serif, system-ui, -apple-system, sans-serif !important;
}
body   { font-family: var(--font-sans); background: var(--background); color: var(--foreground); font-size: 14px; line-height: 1.5; }
img    { max-width: 100%; display: block; }
a      { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }

/* ── Utility helpers ─────────────────────────────────────────────────────── */
.container      { max-width: 1200px; margin-inline: auto; padding-inline: 15px; }
.flex           { display: flex; }
.flex-col       { flex-direction: column; }
.items-center   { align-items: center; }
.justify-between{ justify-content: space-between; }
.gap-4          { gap: 1rem; }
.gap-15         { gap: 15px; }
.rounded        { border-radius: var(--radius); }
.border         { border: 1px solid var(--border); }
.bg-card        { background: var(--card); }
.bg-muted       { background: var(--muted); }
.text-primary   { color: var(--primary); }
.text-muted     { color: var(--muted-fg); }
.font-bold      { font-weight: 700; }
.font-black     { font-weight: 900; }
.uppercase      {  }
.truncate       { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.no-scrollbar   { scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

/* Responsive visibility helpers */
@media (min-width: 640px)  { .sm-hidden { display: none !important; } }
@media (min-width: 768px) {
  .md-flex   { display: flex !important; }
  .md-hidden { display: none !important; }
  .md-flex-row { flex-direction: row !important; align-items: flex-start !important; }
}

/* ── Header Mobile hamburger — EXACT mirror of SystemHeaderHor.tsx ────────── */
.mk-hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border: none;
  background: transparent;
  border-radius: 5px;
  color: #64748b;
  cursor: pointer;
  transition: background .15s, transform .1s;
}
.mk-hamburger svg { stroke: #64748b; }
.mk-hamburger:hover { background: var(--muted); color: var(--muted-fg); }
.mk-hamburger:active { transform: scale(.95); }
@media (min-width: 640px) { .mk-hamburger { display: none !important; } }

/* ── Offcanvas mobile nav drawer ─────────────────────────────────────────── */
.mk-offcanvas-backdrop {
  display: none;
  position: fixed; inset: 0; z-index: 99990;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(2px);
}
.mk-offcanvas-backdrop.open { display: block; }
.mk-offcanvas {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: 224px; z-index: 99995;
  background: var(--card);
  border-right: 1px solid var(--border);
  box-shadow: 0 0 40px rgba(0,0,0,0.18);
  display: flex; flex-direction: column;
  transform: translateX(-100%);
  transition: transform .3s cubic-bezier(.16,1,.3,1);
}
.mk-offcanvas.open { transform: translateX(0); }
.mk-offcanvas-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px; min-height: 45px; flex-shrink: 0;
  border-bottom: 1px solid var(--border);
}
.mk-offcanvas-nav {
  flex: 1; display: flex; flex-direction: column;
  gap: 2px; padding: 10px; overflow-y: auto;
}
.mk-offcanvas-link {
  display: flex; align-items: center;
  gap: 10px; padding: 10px;
  border-radius: var(--radius);
  font-size: 13px; font-weight: 600;
  color: var(--muted-fg); text-decoration: none;
  transition: background .15s, color .15s;
  border: none; background: transparent; cursor: pointer; width: 100%; text-align: left;
}
.mk-offcanvas-link:hover, .mk-offcanvas-link.active {
  background: var(--muted); color: var(--foreground);
}
.mk-offcanvas-link.active { color: var(--primary); }
.mk-offcanvas-footer {
  flex-shrink: 0; padding: 10px;
  border-top: 1px solid var(--border);
}

/* ── KPI Mini Box ────────────────────────────────────────────────────────── */
.kpi-box {
  display: flex; flex-direction: column; gap: 6px;
  padding: 12px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--card);
}
.kpi-box .kpi-label  { font-size: 11px; font-weight: 700;  letter-spacing: .06em; color: var(--muted-fg); }
.kpi-box .kpi-value  { font-size: 18px; font-weight: 900; color: var(--foreground); }
.kpi-box .kpi-sub    { font-size: 11px; color: var(--muted-fg); }

/* ── Product Card (mk-card) — mirrors Card.Item.tsx exactly ─────────────── */
.mk-card {
  display: flex; flex-direction: column; height: 100%;
  border-radius: 5px; border: 1px solid var(--border);
  background: var(--card); overflow: hidden;
  transition: border-color .2s;
}
.mk-card:hover { border-color: rgba(37,99,235,0.25); }/* primary/20 */

/* Archive grid */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}
@media (min-width: 640px)  { .archive-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .archive-grid { grid-template-columns: repeat(4, 1fr); } }

/* Gallery strip */
.mk-gallery-strip { display: flex; }

/* ── Gallery top-bar ─────────────────────────────────────────────────────── */
.gallery-bar { display: flex; align-items: center; justify-content: space-between; height: 48px; padding-inline: 16px; border-bottom: 1px solid var(--border); background: var(--card); }
.gallery-bar .nav-tabs { display: flex; align-items: center; gap: 24px; height: 100%; overflow-x: auto; }
.gallery-bar .nav-tab  { font-size: 13px; font-weight: 600; color: var(--muted-fg); background: none; border: none; height: 100%; padding-inline: 4px; border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; }
.gallery-bar .nav-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.gallery-bar .actions  { display: flex; align-items: center; gap: 16px; }
.gallery-bar .action-btn { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted-fg); background: none; border: none; }
.gallery-bar .action-btn:hover { color: var(--foreground); }
.gallery-bar .action-btn.favorited { color: var(--primary); }

/* panoramic 1+4 grid */
.gallery-panoramic { width: 100%; position: relative; overflow: hidden; aspect-ratio: 16/8; }
@media (min-width: 768px) { .gallery-panoramic { aspect-ratio: 3.5/1; } }
.gallery-panoramic .grid { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr; gap: 1px; }
@media (min-width: 768px) { .gallery-panoramic .grid { grid-template-columns: 1fr 1fr; } }
.gallery-panoramic .thumbs { display: none; }
@media (min-width: 768px) { .gallery-panoramic .thumbs { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 1px; height: 100%; } }
.gallery-panoramic img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }

/* gallery bottom bar */
.gallery-footer { height: 48px; padding-inline: 16px; display: flex; align-items: center; border-top: 1px solid var(--border); background: var(--card); cursor: pointer; }
.gallery-footer:hover .footer-text { color: var(--primary); }
.gallery-footer .footer-text { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; color: var(--foreground); }

/* ── Lightbox ────────────────────────────────────────────────────────────── */
.lightbox-overlay { position: fixed; inset: 0; z-index: 9000; background: rgba(0,0,0,.9); display: flex; align-items: center; justify-content: center; }
.lightbox-overlay img { max-width: 90vw; max-height: 90vh; object-fit: contain; }
.lightbox-close { position: absolute; top: 16px; right: 16px; background: rgba(255,255,255,.15); border: none; color: #fff; border-radius: 50%; width: 36px; height: 36px; font-size: 20px; display: flex; align-items: center; justify-content: center; }

/* ── Share modal ─────────────────────────────────────────────────────────── */
.share-overlay { position: fixed; inset: 0; z-index: 3000; background: rgba(0,0,0,.4); display: flex; align-items: center; justify-content: center; padding: 16px; }
.share-modal   { background: var(--card); width: 100%; max-width: 450px; border-radius: var(--radius); border: 1px solid rgba(0,0,0,.08); overflow: hidden; }
.share-header  { height: 40px; padding-inline: 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.share-grid    { padding: 15px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 7.5px; }
.share-btn     { height: 28px; color: #fff; border: none; border-radius: 2px; font-size: 9px; font-weight: 900;  letter-spacing: .06em; display: flex; align-items: center; justify-content: center; }

/* ── Compare panel ───────────────────────────────────────────────────────── */
.compare-overlay { position: fixed; inset: 0; z-index: 4500; display: flex; justify-content: flex-end; }
.compare-backdrop{ position: absolute; inset: 0; background: rgba(255,255,255,.8); backdrop-filter: blur(4px); }
.compare-panel   { position: relative; z-index: 1; width: 100%; height: 100%; background: var(--card); border-left: 1px solid var(--border); display: flex; flex-direction: column; overflow: hidden; }
@media (min-width: 1024px) { .compare-panel { width: 50vw; } }
.compare-header  { height: 40px; padding-inline: 15px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.compare-body    { flex: 1; overflow: auto; padding: 15px; }
.compare-table   { border-collapse: collapse; }
.compare-table th, .compare-table td { padding: 7.5px; border-right: 1px solid rgba(148,163,184,.25); border-bottom: 1px solid rgba(148,163,184,.25); font-size: 13px; font-weight: 400; vertical-align: middle; }
.compare-table th { background: var(--muted); color: var(--muted-fg); width: 110px; min-width: 110px; }
.compare-table td { width: 200px; min-width: 200px; }

/* ── Section grid ────────────────────────────────────────────────────────── */
.section-grid { display: grid; grid-template-columns: 1fr; gap: 15px; width: 100%; }
@media (min-width: 1024px) { .section-grid.col-12 { grid-template-columns: repeat(12, 1fr); } }
.col-span-8 { grid-column: span 8; }
.col-span-4 { grid-column: span 4; }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero { position: relative; min-height: calc(100vh - 180px); display: flex; align-items: center; padding-block: 48px; overflow: hidden; }
.hero .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero .hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.8) 0%, rgba(0,0,0,.3) 50%, rgba(255,255,255,.95) 100%); }
@media (min-width: 768px) { .hero .hero-overlay { background: linear-gradient(to right, rgba(0,0,0,.8) 0%, rgba(0,0,0,.3) 50%, rgba(255,255,255,.95) 100%); } }
.hero .hero-content { position: relative; z-index: 10; max-width: 1200px; margin-inline: auto; padding-inline: 15px; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 32px; }
@media (min-width: 768px) { .hero .hero-content { flex-direction: row; gap: 96px; } }

/* ── Archive grid ────────────────────────────────────────────────────────── */
.archive-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
@media (min-width: 768px) { .archive-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .archive-grid { grid-template-columns: repeat(4, 1fr); } }

/* ── Landing category row ────────────────────────────────────────────────── */
.cat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
@media (min-width: 768px) { .cat-row { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .cat-row { grid-template-columns: repeat(6, 1fr); } }

/* ── Building data table ─────────────────────────────────────────────────── */
.bdata-grid { display: grid; grid-template-columns: 1fr; }
@media (min-width: 768px) { .bdata-grid { grid-template-columns: 1fr 1fr; column-gap: 16px; } }
.bdata-row  { display: flex; justify-content: space-between; align-items: start; padding-block: 8px; border-bottom: 1px solid rgba(226,232,240,.4); font-size: 13px; }
.bdata-row:last-child { border-bottom: none; }
.bdata-label{ font-weight: 600; color: var(--muted-fg); }
.bdata-val  { font-weight: 700; text-align: right; flex: 1; margin-left: 16px; word-break: break-word; }

/* ── Purchase form card ──────────────────────────────────────────────────── */
.pform { border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.pform-meta { height: 48px; padding-inline: 16px; background: rgba(248,250,252,.5); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--muted-fg); }
.pform-body { padding: 16px; display: flex; flex-direction: column; gap: 7.5px; }
.service-btn { display: flex; align-items: center; gap: 8px; padding-inline: 8px; height: 36px; border-radius: var(--radius); border: 1px solid var(--border); cursor: pointer; font-size: 13px; background: var(--card); transition: all .15s; }
.service-btn.active { background: var(--primary-light); border-color: var(--primary); color: var(--primary); font-weight: 700; }
.service-radio { width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--muted-fg); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.service-radio.active { border-color: var(--primary); }
.service-radio-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
.pkg-line { display: flex; align-items: start; gap: 7.5px; padding-block: 6px; border-bottom: 1px solid rgba(226,232,240,.3); width: 100%; cursor: pointer; }
.pkg-line:last-child { border-bottom: none; }
.pkg-line-label { font-size: 12px; color: var(--muted-fg); line-height: 1.35; word-break: break-word; flex: 1; }
.pkg-line-label.selected { color: var(--foreground); font-weight: 700; }
.pkg-line-price { font-size: 12px; font-weight: 700; text-align: right; flex-shrink: 0; }
.total-bar { padding-top: 12px; border-top: 1px solid rgba(226,232,240,.3); display: flex; align-items: center; justify-content: space-between; }
.total-price { font-size: 22px; font-weight: 900; color: var(--primary); }
.btn-primary { display: flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding-inline: 16px; border-radius: var(--radius); background: var(--primary); color: var(--primary-fg); border: none; font-size: 13px; font-weight: 700; width: 100%; margin-top: 8px; }
.btn-primary:hover { opacity: .9; }
.btn-outline { background: transparent; border: 1px solid var(--primary); color: var(--primary); }

/* ── Plot Calculator ─────────────────────────────────────────────────────── */
.plot-calc-grid { display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; padding: 12px; border-radius: 3px; }
.plot-calc-grid:hover { background: rgba(248,250,252,.5); }
.plot-val { text-align: center; font-size: 13px; font-weight: 500; color: var(--muted-fg); }

/* ── Developer slider ────────────────────────────────────────────────────── */
.dev-slider { display: flex; gap: 15px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; scroll-behavior: smooth; }
.dev-slider::-webkit-scrollbar { display: none; }
.dev-slide { min-width: 200px; width: 200px; scroll-snap-align: start; flex-shrink: 0; }

/* ── Admin bar ───────────────────────────────────────────────────────────── */
.admin-edit-bar { width: 100%; background: #fffbeb; border-bottom: 1px solid #fde68a; padding-block: 8px; }
.admin-edit-inner { max-width: 1200px; margin-inline: auto; padding-inline: 15px; display: flex; align-items: center; justify-content: space-between; }
.admin-edit-link { font-size: 12px; font-weight: 700; color: #92400e; background: #fef3c7; padding: 4px 12px; border-radius: 4px; }
.admin-edit-link:hover { background: #fde68a; }

/* ── Skeleton pulse ──────────────────────────────────────────────────────── */
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }
.skeleton { background: var(--muted); border-radius: var(--radius); animation: pulse 1.5s ease-in-out infinite; }

/* ── Responsive GeneratePress overrides ──────────────────────────────────── */
.site-content { padding: 0; }
.site-header  { display: none; } /* We ship our own header inside templates */
.site-footer  { display: none; }
#page         { padding: 0; }
.entry-content{ margin: 0; }

/* ── Responsive: purchase grid (mirrors 12-col lg layout) ───────────────── */
.purchase-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  align-items: start;
}
@media (min-width: 1024px) {
  .purchase-grid { grid-template-columns: 1fr 400px; }
}

/* ── Responsive: KPI / Intro grid ───────────────────────────────────────── */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}
@media (min-width: 640px)  { .kpi-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .kpi-grid { grid-template-columns: repeat(6, 1fr); } }

/* ── Responsive: data-section 2-col ────────────────────────────────────── */
#data-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}
@media (min-width: 768px) {
  #data-section { grid-template-columns: 1fr 1fr; }
}

/* ── Responsive: share / compare toggle ─────────────────────────────────── */
@media (min-width: 768px) {
  .md-show { display: inline !important; }
  .gallery-bar .action-btn span { display: inline; }
}

/* ── WooCommerce button override to match our design ────────────────────── */
.woocommerce .single_add_to_cart_button,
.woocommerce button.button.alt,
.woocommerce a.button.alt {
  background: var(--primary) !important;
  color: #fff !important;
  border-radius: var(--radius) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  height: 36px !important;
  line-height: 36px !important;
  padding-inline: 16px !important;
  border: none !important;
  width: 100% !important;
  text-align: center !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.woocommerce .single_add_to_cart_button:hover,
.woocommerce button.button.alt:hover {
  background: color-mix(in srgb, var(--primary) 90%, black) !important;
}

/* ── WooCommerce quantity input ─────────────────────────────────────────── */
.woocommerce .quantity input.qty {
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  text-align: center;
  width: 70px;
}

/* ── WooCommerce reviews ────────────────────────────────────────────────── */
#reviews .comment-form-rating { margin-bottom: 12px; }
#reviews .comment-form input,
#reviews .comment-form textarea {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  padding: 8px 10px;
  width: 100%;
  background: var(--muted);
}
#reviews .comment-form input:focus,
#reviews .comment-form textarea:focus {
  outline: 2px solid var(--primary);
  outline-offset: -1px;
}
#reviews .comment-form .submit {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 8px 20px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
#reviews .review .star-rating { color: var(--primary); }
.woocommerce p.stars a { color: var(--primary); }

/* ── Pagination links ───────────────────────────────────────────────────── */
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  color: var(--foreground);
  text-decoration: none;
}
.page-numbers.current {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.page-numbers:hover:not(.current) {
  background: var(--muted);
}

/* ── Mobile navigation (hamburger) ─────────────────────────────────────── */
#nav-menu-mobile {
  display: none;
  position: absolute;
  top: 56px; left: 0; right: 0;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  flex-direction: column;
  padding: 12px 15px;
  gap: 8px;
  z-index: 200;
}
#nav-menu-mobile a {
  font-size: 14px;
  font-weight: 600;
  color: var(--foreground);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

/* ── LIGHTBOX (Forensic Examination View - mirrors Lightbox.tsx) ─────── */
.mk-lightbox-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
}
.mk-lightbox-backdrop.open {
  display: flex !important;
}
.mk-lightbox-dialog {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 90vw;
  max-width: 1100px;
  height: 85vh;
  background: var(--card, #ffffff);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000000;
}
.mk-lightbox-dialog.fullscreen {
  width: 100vw !important;
  max-width: 100vw !important;
  height: 100vh !important;
  border-radius: 0 !important;
  border: none !important;
}
.mk-lightbox-header {
  height: 48px;
  padding: 0 15px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  background: var(--card);
  z-index: 10;
}
.mk-lightbox-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--foreground);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mk-lightbox-hq {
  font-size: 10px;
  color: var(--primary);
  background: rgba(22, 163, 74, 0.1);
  padding: 2px 6px;
  border-radius: 2px;
  font-weight: 900;
  
  letter-spacing: -0.05em;
  display: none;
}
.mk-lightbox-viewport {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  cursor: grab;
}
.mk-lightbox-viewport.dragging {
  cursor: grabbing;
}
.mk-lightbox-canvas {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  transform-origin: center center;
  transition: transform 0.15s ease-out;
}
.mk-lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mk-lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff !important;
  background: rgba(0, 0, 0, 0.5) !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  cursor: pointer;
  z-index: 1000;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}
.mk-lightbox-nav-btn svg {
  width: 28px;
  height: 28px;
  display: block;
  stroke: #ffffff !important;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
}
.mk-lightbox-nav-btn:hover {
  background: rgba(0, 0, 0, 0.8) !important;
  color: #ffffff !important;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
}
.mk-lightbox-nav-btn.prev { left: 16px; }
.mk-lightbox-nav-btn.next { right: 16px; }
.mk-lightbox-footer {
  height: 44px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: var(--card);
  flex-shrink: 0;
  padding: 0 15px;
  overflow-x: auto;
  overflow-y: hidden;
  max-height: none;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.mk-lightbox-footer::-webkit-scrollbar { height: 4px; }
.mk-lightbox-footer::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.mk-lightbox-ctrls {
  display: flex;
  align-items: center;
  gap: 7.5px;
  flex-wrap: nowrap;
  width: max-content;
  margin: 0 auto;
}
.mk-lightbox-btn {
  padding: 8px;
  border: none;
  background: transparent;
  color: var(--muted-fg);
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}
.mk-lightbox-btn svg { width: 18px; height: 18px; }
.mk-lightbox-btn:hover {
  background: rgba(22, 163, 74, 0.08);
  color: var(--primary);
}
.mk-lightbox-btn.active {
  color: var(--primary);
  background: rgba(22, 163, 74, 0.12);
}

/* ── Footer: centered on mobile ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .mk-footer-inner { flex-direction: column; align-items: center !important; justify-content: center !important; text-align: center; gap: 10px !important; }
  .mk-footer-inner > div { justify-content: center !important; width: 100%; text-align: center; flex-wrap: wrap; }
}

/* ── Print styles ───────────────────────────────────────────────────────── */
@media print {
  .gallery-bar, .admin-edit-bar, #share-modal, #compare-panel,
  .mk-lightbox-backdrop, #lightbox, footer, header, .dev-slider,
  button, .md-actions, #nav-menu-mobile { display: none !important; }
  .container { max-width: 100% !important; padding: 0 !important; }
  body { font-size: 11pt; color: #000; background: #fff !important; }
  .profile-grid { display: block !important; }
  .md-flex-row { flex-direction: row !important; }
  .md-avatar { width: 140px !important; height: 140px !important; }
}

/* ── DESIGNS ARCHIVE & ADVANCED FILTER (100% Mirror of DesignsPage.tsx) ── */
.mk-designs-page {
  width: 100%;
  background: var(--background);
  min-height: 100vh;
}
.mk-archive-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (min-width: 768px) {
  .mk-archive-layout {
    flex-direction: row;
    align-items: flex-start;
  }
}
.mk-archive-main {
  flex: 1;
  min-width: 0;
}
.mk-archive-sidebar {
  display: none;
  width: 300px;
  flex-shrink: 0;
  position: sticky;
  top: 64px;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  scrollbar-width: none;
}
.mk-archive-sidebar::-webkit-scrollbar { display: none; }
@media (min-width: 768px) {
  .mk-archive-sidebar {
    display: block;
  }
}

/* Catalog Grid: 2 cols mobile, 4 cols lg (mirrors grid-cols-2 lg:grid-cols-4) */
.mk-catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
@media (min-width: 1024px) {
  .mk-catalog-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.mk-catalog-empty {
  padding: 120px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0.15;
  gap: 16px;
  border: 1px dashed var(--border);
  border-radius: 5px;
}

/* Mobile Search Bar & Filter Button */
.mk-mobile-search-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
@media (min-width: 768px) {
  .mk-mobile-search-bar {
    display: none;
  }
}
.mk-mobile-search-input {
  width: 100%;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding-left: 36px;
  padding-right: 12px;
  font-size: 13px;
  font-weight: 600;
  outline: none;
  background: var(--card);
  color: var(--foreground);
}
.mk-mobile-filter-trigger {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--card);
  color: var(--foreground);
  cursor: pointer;
  flex-shrink: 0;
}

/* Mobile Slide-in Drawer */
.mk-mobile-filter-modal {
  position: fixed;
  inset: 0;
  z-index: 99990;
  display: none;
}
.mk-mobile-filter-modal.open {
  display: flex;
}
.mk-mobile-filter-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
}
.mk-mobile-filter-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 320px;
  max-width: 85vw;
  background: var(--card);
  z-index: 99995;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
}
.mk-mobile-filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px;
  border-bottom: 1px solid var(--border);
}

/* Advanced Filter Form Elements (mirrors Filters.Advanced.tsx) */
.mk-advanced-filter {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 15px;
  font-family: var(--font-sans);
  text-align: left;
}
.mk-filter-actions-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--card);
  padding-bottom: 12px;
  display: flex;
  gap: 8px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}
.mk-filter-btn-apply {
  flex: 1;
  height: 32px;
  background: #3b82f6;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s;
}
.mk-filter-btn-apply:hover {
  background: #2563eb;
}
.mk-filter-btn-reset {
  flex: 1;
  height: 32px;
  background: transparent;
  border: 1px solid #3b82f6;
  color: #3b82f6;
  border-radius: 4px;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-decoration: none;
  transition: all 0.15s;
}
.mk-filter-btn-reset:hover {
  background: rgba(59, 130, 246, 0.08);
}
.mk-filter-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
}
.mk-filter-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted-fg);
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  margin-bottom: 10px;
}
.mk-filter-select {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  appearance: none;
  font-weight: 700;
  font-size: 13px;
  outline: none;
  cursor: pointer;
  color: var(--foreground);
}
.mk-select-chevron {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0.4;
  font-size: 10px;
}
.mk-filter-input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-weight: 700;
  font-size: 13px;
  outline: none;
  color: var(--foreground);
}
.mk-dev-dropdown-toggle {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 600;
}
.mk-dev-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  max-height: 200px;
  overflow-y: auto;
  z-index: 50;
}
.mk-dev-dropdown-menu.open {
  display: block;
}
.mk-checkbox-item {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  gap: 8px;
}
.mk-checkbox-item input {
  display: none;
}
.mk-checkbox-box {
  width: 16px;
  height: 16px;
  border: 2px solid #3b82f6;
  border-radius: 2px;
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s;
}
.mk-checkbox-item input:checked + .mk-checkbox-box {
  background: #1e40af;
  border-color: #1e40af;
}
.mk-checkbox-item input:checked + .mk-checkbox-box::after {
  content: '✓';
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}
.mk-checkbox-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--foreground);
  opacity: 0.85;
  line-height: 1.3;
}
.mk-range-slider {
  flex: 1;
  accent-color: #1e40af;
  cursor: pointer;
}

/* ── 1. PURCHASE FORM COMPONENT (Mirrors Purchase.Form.tsx) ─────────────── */
.mk-purchase-card {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 5px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.mk-purchase-meta-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted-fg);
  padding: 0 15px;
  height: 44px;
  background: var(--muted);
  border-bottom: 1px solid var(--border);
}
.mk-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}
.mk-svc-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  height: 38px;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: var(--card);
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
}
.mk-svc-toggle:hover {
  background: var(--muted);
}
.mk-svc-toggle.active {
  background: rgba(22, 163, 74, 0.08);
  border-color: var(--primary);
  color: var(--primary);
}
.mk-svc-radio {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--muted-fg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s;
}
.mk-svc-toggle.active .mk-svc-radio {
  border-color: var(--primary);
}
.mk-svc-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  display: none;
}
.mk-svc-toggle.active .mk-svc-dot {
  display: block;
}
.mk-flow-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
  cursor: pointer;
  font-size: 12px;
  gap: 8px;
}
.mk-flow-line:last-child {
  border-bottom: none;
}
.mk-line-cb {
  margin-top: 2px;
  accent-color: var(--primary);
}
.mk-line-name {
  flex: 1;
  color: var(--foreground);
  font-weight: 500;
  line-height: 1.3;
}
.mk-line-price {
  font-weight: 700;
  color: var(--foreground);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.mk-tier-btn {
  height: 30px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--card);
  font-size: 11px;
  font-weight: 700;
  color: var(--muted-fg);
  cursor: pointer;
  transition: all 0.15s;
}
.mk-tier-btn.active {
  background: rgba(22, 163, 74, 0.1);
  border-color: var(--primary);
  color: var(--primary);
}
.mk-client-input {
  width: 100%;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--muted);
  font-size: 12px;
  outline: none;
  margin-top: 2px;
}
.mk-step-nav-btn {
  flex: 1;
  height: 34px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.mk-step-nav-btn.primary {
  background: var(--primary);
  color: #fff;
  border: none;
}
.mk-step-nav-btn.outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--foreground);
}
.mk-curr-picker {
  background: transparent;
  border: none;
  font-size: 13px;
  font-weight: 900;
  color: var(--primary);
  cursor: pointer;
  outline: none;
}
.mk-checkout-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 10px 0;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 5px;
  text-decoration: none;
}

/* ── 2. BLUEPRINTS COMPONENT (Mirrors Blueprints.tsx + Canvas) ───────────── */
.mk-blueprints-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
}
.mk-blueprint-card {
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.mk-blueprint-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px;
  border-bottom: 1px solid var(--border);
  background: var(--card);
}
.mk-blueprint-badge {
  font-size: 10px;
  font-weight: 900;
  
  color: var(--primary);
  background: rgba(22, 163, 74, 0.1);
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.05em;
}
.mk-blueprint-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--foreground);
  margin: 0;
}
.mk-blueprint-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
}
.mk-bp-tool-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 3px;
  color: var(--muted-fg);
  cursor: pointer;
  transition: all 0.15s;
}
.mk-bp-tool-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
}
.mk-blueprint-viewport {
  width: 100%;
  min-height: 380px;
  max-height: 520px;
  overflow: hidden;
  background: #fbfcfd;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: zoom-in;
}
.mk-blueprint-canvas {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease-out;
  transform-origin: center center;
}
.mk-blueprint-img {
  max-width: 95%;
  max-height: 480px;
  object-fit: contain;
  user-select: none;
}

/* ── 3. REVIEWS COMPONENT (Mirrors Reviews.tsx + UniReviewForm) ─────────── */
.mk-reviews-card {
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--card);
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.mk-review-form-box {
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 12px;
}
.mk-star-picker {
  display: flex;
  gap: 3px;
  cursor: pointer;
}
.mk-star-picker span {
  font-size: 18px;
  color: #cbd5e1;
  transition: color 0.15s;
}
.mk-star-picker span.active, .mk-star-picker span:hover {
  color: #f59e0b;
}
.mk-review-input {
  width: 100%;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--card);
  font-size: 13px;
  outline: none;
}
.mk-review-textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--card);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  resize: vertical;
}
.mk-review-submit-btn {
  height: 32px;
  padding: 0 16px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.mk-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mk-review-item {
  display: flex;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}
.mk-review-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.mk-review-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.mk-review-verified {
  font-size: 9px;
  font-weight: 700;
  
  color: #16a34a;
  background: #dcfce7;
  padding: 1px 5px;
  border-radius: 2px;
}

/* ── Pagination Styling (Mirrors React navigation) ───────────────────────── */
.mk-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 32px;
}
.mk-pagination .page-numbers {
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--foreground);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.15s ease;
}
.mk-pagination .page-numbers:hover {
  border-color: #3b82f6;
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.05);
}
.mk-pagination .page-numbers.current {
  background: #3b82f6;
  border-color: #3b82f6;
  color: #fff;
}
.mk-pagination .page-numbers.dots {
  border: none;
  background: transparent;
  color: var(--muted-fg);
}
.mk-pagination .page-numbers.prev,
.mk-pagination .page-numbers.next {
  padding: 0 8px;
}

/* ── Skeleton Shimmer Loading (SEO & Perceived Performance) ─────────────── */
@keyframes mk-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.mk-skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 37%, #f1f5f9 63%);
  background-size: 400% 100%;
  animation: mk-shimmer 1.4s ease infinite;
  border-radius: 4px;
}
.mk-skeleton-card {
  border: 1px solid var(--border);
  border-radius: 5px;
  overflow: hidden;
  background: var(--card);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.mk-skeleton-img {
  width: 100%;
  aspect-ratio: 300 / 200;
}
.mk-skeleton-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mk-skeleton-line {
  height: 12px;
  width: 100%;
}
.mk-skeleton-line.short {
  width: 60%;
}




/* ==========================================================================
   Component styles (extracted from inline <style> blocks)
   ========================================================================== */
/* ---- archive.php ---- */
@media(min-width:640px){.mk-archive-grid{grid-template-columns:repeat(2,1fr)!important;}}
@media(min-width:1024px){.mk-archive-grid{grid-template-columns:repeat(3,1fr)!important;}}

/* ---- author.php ---- */
@media (min-width: 768px) {
  .md-flex-row { flex-direction: row !important; align-items: flex-start !important; }
  .md-avatar { width: 165px !important; height: 165px !important; margin: 0 !important; }
  .md-actions { margin-top: 0 !important; }
  .profile-grid { grid-template-columns: 280px 1fr !important; }
}

/* ---- components/commerce/ItemDetails/Blueprints.php ---- */
.mk-bp-stack { width:100%; display:flex; flex-direction:column; gap:15px; }

/* Card */
.mk-bp-card {
    width:100%; display:flex; flex-direction:column;
    border:1px solid var(--border); background:var(--card);
    border-radius:5px; overflow:hidden;
    -webkit-user-select:none; user-select:none;
}

/* Toolbar */
.mk-bp-toolbar {
    padding:0 12px; height:40px;
    border-bottom:1px solid var(--border); background:var(--background);
    display:flex; align-items:center; justify-content:space-between;
    flex-shrink:0; position:relative; z-index:20;
    -webkit-user-select:none; user-select:none;
}
.mk-bp-label-wrap { flex-shrink:0; min-width:0; }
.mk-bp-label {
    font-size:11px; font-weight:900; 
    color:var(--foreground); letter-spacing:.1em;
    white-space:nowrap; overflow:hidden; text-overflow:ellipsis; display:block;
    max-width:160px;
}
.mk-bp-toolbar { gap:8px; overflow:hidden; }
.mk-bp-tools {
    display:flex; align-items:center; gap:8px;
    min-width:0; overflow-x:auto; overflow-y:hidden;
    -ms-overflow-style:none; scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
}
.mk-bp-tools::-webkit-scrollbar { display:none; }
.mk-bp-div { flex-shrink:0; width:1px; height:16px; background:var(--border); }
.mk-bp-btn {
    flex-shrink:0;
    display:inline-flex; align-items:center; justify-content:center;
    padding:4px; border:none; background:none; border-radius:3px;
    color:var(--muted-fg); cursor:pointer;
    transition:color .15s, background .15s;
}
.mk-bp-btn:hover { color:var(--foreground); background:var(--muted); }
.mk-bp-btn.is-active { color:var(--primary); }
.mk-bp-btn.is-calib  { color:#f59e0b; }
.mk-bp-btn.is-blue   { color:#2563eb; }
.mk-bp-btn.is-flip   { color:var(--primary); background:rgba(37,99,235,.1); }
.mk-bp-btn.is-off    { opacity:.3; cursor:not-allowed; }
.mk-bp-btn.is-off:hover { color:var(--muted-fg); background:none; }

/* Viewport */
.mk-bp-viewport {
    position:relative; background:var(--background);
    border-top:1px solid var(--border); overflow:hidden;
    touch-action:none;
}
.mk-bp-transform { position:relative; transform-origin:top left; will-change:transform; }
.mk-bp-transform.is-locked { filter:blur(6px); opacity:.7; pointer-events:none; }
.mk-bp-flip { transform-origin:center center; pointer-events:none; touch-action:none; }
.mk-bp-img { width:100%; height:auto; display:block; max-width:none; transition:transform .15s; }
.mk-bp-svg { position:absolute; inset:0; overflow:visible; }

/* Measurement groups */
.mk-bp-m { cursor:pointer; }
.mk-bp-x { opacity:0; transition:opacity .15s; }
.mk-bp-m:hover .mk-bp-x { opacity:1; }

/* Calibration input */
.mk-bp-calib {
    position:absolute; z-index:30; display:flex; align-items:center;
    background:var(--background); padding:0 4px; transform:translate(-50%,-50%);
}
.mk-bp-calib-inp {
    width:48px; font-size:11px; font-weight:700; text-align:center;
    border:none; outline:none; background:transparent; color:#d97706;
    -moz-appearance:textfield;
}
.mk-bp-calib-inp::-webkit-outer-spin-button,
.mk-bp-calib-inp::-webkit-inner-spin-button { -webkit-appearance:none; margin:0; }
.mk-bp-calib-unit { font-size:11px; font-weight:700; color:#d97706; margin-right:4px; }
.mk-bp-calib-ok {
    display:inline-flex; align-items:center; justify-content:center;
    border:none; background:none; cursor:pointer; color:#d97706; padding:0;
}
.mk-bp-calib-ok:hover { color:#b45309; }

/* Text label input */
.mk-bp-textbox {
    position:absolute; z-index:30; display:flex; align-items:center;
    background:var(--background); padding:4px 8px; border-radius:3px;
    box-shadow:0 1px 2px rgba(0,0,0,.08); border:1px solid var(--border);
    transform:translate(-50%,-50%);
}
.mk-bp-text-inp {
    width:96px; font-size:11px; font-weight:700; text-align:center;
    border:none; outline:none; background:transparent; color:var(--primary);
}
.mk-bp-text-ok {
    display:inline-flex; align-items:center; justify-content:center;
    border:none; background:none; cursor:pointer; color:var(--primary);
    margin-left:4px; padding:0;
}
.mk-bp-text-ok:hover { opacity:.8; }

/* Lock overlay */
.mk-bp-lock {
    position:absolute; inset:0; z-index:40;
    display:flex; align-items:center; justify-content:center;
    background:rgba(255,255,255,.2); backdrop-filter:blur(1px);
    padding:16px;
}
.mk-bp-lock-card {
    display:flex; flex-direction:column; align-items:center; gap:12px;
    background:var(--card); border:1px solid var(--border);
    border-radius:5px; padding:24px 28px; text-align:center;
    box-shadow:0 4px 16px rgba(0,0,0,.08);
}
.mk-bp-lock-title { margin:0; font-size:13px; font-weight:600; color:var(--foreground); }
.mk-bp-lock-actions { display:flex; gap:10px; }
.mk-bp-lock-primary,
.mk-bp-lock-ghost {
    height:35px; padding:0 20px; border-radius:5px; font-size:13px; font-weight:700;
    text-decoration:none; display:inline-flex; align-items:center; transition:all .15s;
}
.mk-bp-lock-primary { background:var(--primary); color:var(--primary-fg); }
.mk-bp-lock-primary:hover { opacity:.9; }
.mk-bp-lock-ghost { border:1px solid var(--border); background:var(--card); color:var(--foreground); }
.mk-bp-lock-ghost:hover { background:var(--muted); }

/* Hide native number spinners inside blueprints */
.mk-bp-card input[type=number] { -moz-appearance:textfield; }
.mk-bp-card input[type=number]::-webkit-outer-spin-button,
.mk-bp-card input[type=number]::-webkit-inner-spin-button { -webkit-appearance:none; margin:0; }

/* Responsive: keep every tool reachable on small screens */
@media (max-width:640px) {
    .mk-bp-toolbar { padding:0 6px; gap:6px; height:40px; }
    .mk-bp-label-wrap { max-width:110px; }
    .mk-bp-label { font-size:10px; letter-spacing:.06em; }
    .mk-bp-tools { gap:2px; }
    .mk-bp-div { height:14px; }
    .mk-bp-btn { padding:5px; }
}

/* ---- components/commerce/ItemDetails/Gallery.php ---- */
@media(min-width:768px){.mk-action-label{display:inline!important;}}
@media(max-width:768px){.mk-gallery-tab--lg{display:none!important;}}
@media(max-width:768px){.mk-detail-label{display:none!important;}}
@media(max-width:768px){.mk-gallery-wrap [style*="grid-template-columns:1fr 1fr"]:last-of-type{display:none!important;}}
@media(max-width:768px){.mk-gallery-wrap>[style*="aspect-ratio"] [style*="grid-template-columns:1fr 1fr"]{grid-template-columns:1fr!important;}}

/* ---- components/commerce/ItemDetails/HouseData.php ---- */
@media(max-width:640px){
    #data-section>[style*="grid-template-columns:1fr 1fr"]{grid-template-columns:1fr!important;}
}

/* ---- components/commerce/ItemDetails/Intro.php ---- */
@media(min-width:768px){.mk-intro-grid{grid-template-columns:repeat(3,1fr)!important;}}

/* ---- components/commerce/ItemDetails/index.php ---- */
/* 12-column layout: 8+4 — only when the viewport can fit the 1200px design.
   Below that the module stacks full-width (no squeezed/truncated cards). */
@media(min-width:1200px){
    .mk-id-row--12{ grid-template-columns:repeat(12,1fr)!important; }
    .mk-id-row--12 .mk-id-col-8{ grid-column:span 8; }
    .mk-id-row--12 .mk-id-col-4{ grid-column:span 4; }
}
/* 2-column data row */
@media(min-width:768px){
    .mk-id-row--2{ grid-template-columns:1fr 1fr!important; }
}

/* ---- components/userboard/Commerce/Board.Customer.php ---- */
@media(min-width:768px){.mk-c-kpis{grid-template-columns:repeat(4,1fr)!important;}}

/* ---- components/userboard/Commerce/Board.Vendor.php ---- */
@media(min-width:1024px){.mk-kpi-overview{grid-template-columns:repeat(3,1fr)!important;}}

/* ---- components/userboard/Commerce/Detail.Invoice.php ---- */
@media(max-width:640px){.mk-detail-grid{grid-template-columns:1fr!important;}}

/* ---- components/userboard/Dashboard/index.php ---- */
@media(min-width:1024px){.mk-kpi-grid{grid-template-columns:repeat(4,1fr)!important;}.mk-entities-grid{grid-template-columns:repeat(4,1fr)!important;}}
@media(min-width:640px){.mk-entities-grid{grid-template-columns:repeat(2,1fr)!important;}}

/* ---- components/userboard/Settings/Addresses.php ---- */
@media(min-width:768px){.mk-addr-grid{grid-template-columns:1fr 1fr!important;}}

/* ---- components/userboard/layout.php ---- */
@media(min-width:768px){.mk-show-md{display:block!important;}}

/* ---- page-auth.php ---- */
@media(min-width:1024px){.mk-auth-left{display:flex!important;}}

/* ---- page-professionals.php ---- */
@media (min-width: 1024px) {
  .prof-layout { grid-template-columns: 1fr 280px !important; }
  .md-filter-sidebar { display: block !important; }
}

/* ---- single.php ---- */
.mk-post-body h2{font-size:20px;font-weight:700;color:var(--foreground);margin:28px 0 12px;letter-spacing:-.01em;}
.mk-post-body h3{font-size:16px;font-weight:700;color:var(--foreground);margin:24px 0 10px;}
.mk-post-body p{margin:0 0 16px;}
.mk-post-body a{color:var(--primary);text-decoration:underline;}
.mk-post-body img{max-width:100%;border-radius:5px;margin:16px 0;}
.mk-post-body ul,.mk-post-body ol{padding-left:24px;margin:0 0 16px;}
.mk-post-body li{margin-bottom:6px;}
.mk-post-body blockquote{border-left:3px solid var(--primary);padding:8px 16px;margin:16px 0;color:var(--muted-fg);font-style:italic;}
.mk-post-body code{background:var(--muted);padding:2px 6px;border-radius:3px;font-size:13px;}

/* ---- woocommerce/cart/cart.php ---- */
@media(min-width:1024px){.mk-cart-layout{grid-template-columns:1fr 340px!important;}}

/* ---- woocommerce/checkout/form-checkout.php ---- */
@media(min-width:1024px){.mk-checkout-layout{grid-template-columns:1fr 400px!important;}}

/* ==========================================================================
   Extracted component interaction styles (replace former inline handlers)
   ========================================================================== */
.mk-dev-author:hover { text-decoration: underline; }
.mk-icon-btn:hover { background: var(--muted); }
[data-dev-scroll] { transition: color .15s; }
[data-dev-scroll]:hover { color: var(--primary); }
.mk-action-btn:hover { color: var(--foreground); }
.mk-gallery-footer:hover { background: rgba(248, 250, 252, .5); }
.mk-review-submit:hover { background: var(--primary-hover); }
.mk-review-more:hover { border-color: var(--primary); }
.mk-pf-upload:hover { background: rgba(248, 250, 252, .3); }
.mk-pf-next:hover, .mk-pf-purchase:hover { background: var(--primary-hover); }


/* ==========================================================================
   Hover / focus utilities (converted from inline handlers)
   ========================================================================== */
[data-hov="1hd5rsz"]:hover { opacity: .85 !important; }
[data-hov="1rdhi4"]:hover { background: var(--muted) !important; }
[data-hov="1yf7m7b"]:hover { box-shadow: 0 4px 20px rgba(0,0,0,.07) !important; }
[data-hov="lt3obl"]:hover { transform: scale(1.04) !important; }
[data-foc="t4oazo"]:focus { border-color: var(--primary) !important; }
[data-hov="1dysiwu"]:hover { background: #16a34a !important; }
[data-hov="zvkwo9"]:hover { box-shadow: 0 4px 12px rgba(0,0,0,.08) !important; }
[data-hov="16ehstg"]:hover { border-color: var(--primary) !important; color: var(--primary) !important; }
[data-hov="15h14gv"]:hover { background: rgba(220,38,38,.06) !important; color: #dc2626 !important; }
[data-hov="12arqyy"]:hover { box-shadow: 0 2px 8px rgba(0,0,0,.06) !important; }
[data-hov="1o1uzl1"]:hover { color: var(--foreground) !important; }
[data-hov="1atlm6y"]:hover { background: var(--muted) !important; color: var(--foreground) !important; }
[data-hov="1n095uv"]:hover { opacity: .9 !important; }
[data-hov="12t3u6e"]:hover { opacity: .88 !important; }
[data-hov="aa8257"]:hover { background: rgba(37,99,235,.18) !important; }
[data-hov="4rw1m7"]:hover { box-shadow: 0 4px 16px rgba(0,0,0,.06) !important; }
[data-hov="u63juq"]:hover { transform: scale(1.03) !important; }
[data-hov="12loqn0"]:hover { color: var(--primary) !important; }
[data-hov="1ch9cdd"]:hover { background: rgba(220,38,38,.08) !important; color: #dc2626 !important; }
.mk-nav-link:hover { color: var(--foreground)!important; border-color: rgba(37,99,235,0.4)!important; }
.mk-vtab:hover { color: var(--foreground)!important; }
.mk-input:focus { border-color: var(--primary)!important; }

/* ==========================================================================
   Sticky footer — footer stays at the viewport bottom on short pages and is
   pushed down naturally when content grows.
   ========================================================================== */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > footer {
  margin-top: auto;
  flex-shrink: 0;
}

/* ==========================================================================
   Item Details — Content / HouseData / Related / Reviews / Gallery
   ========================================================================== */

/* ---- Content (Content.tsx) ---- */
.mk-content-grid { display:grid; grid-template-columns:1fr; gap:15px; }
@media (min-width:640px){ .mk-content-grid { grid-template-columns:1fr 1fr; } }

/* ---- House Data (HouseData.tsx) ---- */
.mk-hd-grid { display:grid; grid-template-columns:1fr; column-gap:15px; row-gap:0; }
@media (min-width:768px){ .mk-hd-grid { grid-template-columns:1fr 1fr; } }
.mk-hd-row { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; padding:8px 0; transition:background .1s; }
.mk-hd-icon { transition:opacity .15s; }
.mk-hd-row:hover .mk-hd-icon { opacity:1!important; }

/* ---- Related Items (RelatedItems.tsx) ---- */
/* Single post — gallery media + justified body (mirrors features/posts/PostDetail) */
.mk-post-media { width:100%; position:relative; background:var(--muted); overflow:hidden; aspect-ratio:16/8; }
.mk-post-media img { width:100%; height:100%; object-fit:cover; display:block; }
@media (min-width:768px){ .mk-post-media { aspect-ratio:3.5/1; } }
.mk-post-detail-grid { display:grid; grid-template-columns:1fr; gap:15px; }
@media (min-width:768px){ .mk-post-detail-grid { grid-template-columns:1fr 1fr; } }
.mk-post-body { font-size:14px; line-height:1.7; color:var(--muted-fg); text-align:justify; }
.mk-post-body p { margin:0 0 15px; }
.mk-post-body h1, .mk-post-body h2, .mk-post-body h3, .mk-post-body h4, .mk-post-body h5, .mk-post-body h6 {
  font-size:14px; font-weight:600; color:var(--foreground); margin:0 0 15px;
}
.mk-post-body img { max-width:100%; height:auto; border-radius:5px; }
.mk-post-body ul, .mk-post-body ol { margin:0 0 15px; padding-left:20px; }
.mk-post-body a { color:var(--primary); }
.mk-related-grid { display:grid; grid-template-columns:1fr; gap:15px; }
@media (min-width:640px){ .mk-related-grid { grid-template-columns:1fr 1fr; } }
@media (min-width:1024px){ .mk-related-grid { grid-template-columns:repeat(5,1fr); } }

/* Posts archive — mirrors features/posts/ArchivePage.tsx */
.mk-posts-wrap { width:100%; }
.mk-posts-container { max-width:1200px; margin:0 auto; width:100%; padding:15px 15px 60px; display:flex; flex-direction:column; gap:15px; font-family:var(--font-sans); text-align:left; }
.mk-posts-layout { display:flex; flex-direction:column; gap:15px; align-items:flex-start; width:100%; }
.mk-posts-main { width:100%; min-width:0; }
.mk-posts-grid { display:grid; grid-template-columns:1fr; gap:15px; }
@media (min-width:640px){ .mk-posts-grid { grid-template-columns:1fr 1fr; } }
@media (min-width:1024px){ .mk-posts-grid { grid-template-columns:1fr 1fr 1fr; gap:7.5px; } }
.mk-post-card { display:flex; flex-direction:column; border:1px solid var(--border); border-radius:5px; overflow:hidden; background:var(--card); text-decoration:none; color:inherit; transition:box-shadow .15s, transform .15s; }
.mk-post-card:hover { box-shadow:0 4px 14px rgba(0,0,0,.07); transform:translateY(-1px); }
.mk-post-card-media { width:100%; aspect-ratio:16/9; overflow:hidden; background:var(--muted); }
.mk-post-card-media img { width:100%; height:100%; object-fit:cover; display:block; }
.mk-post-card-media--empty { display:flex; align-items:center; justify-content:center; }
.mk-post-card-body { padding:12px; display:flex; flex-direction:column; gap:6px; }
.mk-post-cat { font-size:10px; font-weight:600; color:var(--primary); }
.mk-post-title { font-size:14px; font-weight:600; color:var(--foreground); margin:0; line-height:1.35; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.mk-post-excerpt { font-size:12px; color:var(--muted-fg); margin:0; line-height:1.55; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.mk-post-meta { display:flex; align-items:center; gap:6px; font-size:11px; color:var(--muted-fg); margin-top:2px; flex-wrap:wrap; }
.mk-post-dot { width:3px; height:3px; border-radius:50%; background:var(--border); }
.mk-posts-pagination { display:flex; justify-content:center; gap:6px; flex-wrap:wrap; margin-top:15px; }
.mk-posts-side { width:100%; display:flex; flex-direction:column; gap:12px; order:2; }
.mk-posts-side-card { background:var(--background); border:1px solid var(--border); border-radius:5px; padding:12px; display:flex; flex-direction:column; gap:4px; }
.mk-posts-side-card h3 { font-size:12px; font-weight:600; color:var(--muted-fg); margin:0 0 4px; }
.mk-posts-side-link { font-size:12px; color:var(--foreground); text-decoration:none; padding:4px 6px; border-radius:3px; display:flex; justify-content:space-between; gap:8px; }
.mk-posts-side-link:hover { background:var(--muted); }
.mk-posts-side-link.active { background:var(--primary); color:var(--primary-fg); }
.mk-posts-side-link span { color:var(--muted-fg); }
.mk-posts-side-link.active span { color:inherit; opacity:.75; }
.mk-posts-search { position:relative; display:flex; align-items:center; }
.mk-posts-search svg { position:absolute; left:10px; }
.mk-posts-search input { width:100%; height:38px; padding:0 12px 0 34px; border:1px solid var(--border); border-radius:4px; font-size:13px; background:var(--card); color:var(--foreground); outline:none; box-sizing:border-box; }
.mk-posts-mobile-search { display:flex; gap:7.5px; }
.mk-posts-mobile-search input { flex:1; height:38px; padding:0 12px; border:1px solid var(--border); border-radius:4px; font-size:13px; background:var(--card); color:var(--foreground); outline:none; }
.mk-posts-mobile-search button { width:38px; height:38px; border:1px solid var(--border); border-radius:4px; background:var(--card); color:var(--muted-fg); cursor:pointer; display:flex; align-items:center; justify-content:center; }
@media (min-width:768px){
  .mk-posts-layout { flex-direction:row; }
  .mk-posts-main { flex:1; }
  .mk-posts-side { width:300px; flex-shrink:0; order:0; position:sticky; top:60px; max-height:calc(100vh - 72px); overflow-y:auto; scrollbar-width:none; }
  .mk-posts-side::-webkit-scrollbar { display:none; }
  .mk-posts-mobile-search { display:none; }
}

/* Apps section grid — mirrors Apps.tsx (1 col mobile, 2 cols md, gap 15) */
.mk-apps-grid { display:grid; grid-template-columns:1fr; gap:15px; align-items:start; }
@media (min-width:768px){ .mk-apps-grid { grid-template-columns:1fr 1fr; } }

/* Horizontal slider — mirrors Developer.tsx (200px cards, 15px gap, auto-slide) */.mk-slider { position:relative; overflow:hidden; }
.mk-slider-track { display:flex; gap:15px; overflow-x:auto; scrollbar-width:none; scroll-snap-type:x mandatory; scroll-behavior:smooth; padding-bottom:2px; }
.mk-slider-track::-webkit-scrollbar { display:none; }
.mk-slider-item { width:200px; min-width:200px; flex-shrink:0; scroll-snap-align:start; }
/* Related strips (product page): exactly 5 cards filling the container width
   on desktop; mobile keeps the 200px swipe cards. */
@media (min-width:1024px){
  .mk-related .mk-slider-item { width: calc((100% - 60px) / 5); min-width:0; }
}
.mk-slider-nav { position:absolute; top:50%; transform:translateY(-50%); width:32px; height:32px; display:flex; align-items:center; justify-content:center; border:none; background:none; color:var(--foreground); opacity:0; cursor:pointer; z-index:20; filter:drop-shadow(0 0 4px rgba(0,0,0,.2)); transition:opacity .2s, color .2s; padding:0; }
.mk-slider:hover .mk-slider-nav { opacity:1; }
.mk-slider-nav:hover { color:var(--primary); }
.mk-slider-nav.prev { left:4px; }
.mk-slider-nav.next { right:4px; }
.mk-slider-nav.is-idle { display:none; }
@media (hover:none){ .mk-slider-nav { display:none; } }
.mk-related-explore:hover { opacity:.8; }

/* ---- Contact strip ---- */
.mk-contact-wa:hover { background:#16a34a!important; }

@media (max-width:767px){ .mk-gallery-mainnav { display:none !important; } }
.mk-gallery-mainnav:hover { color:var(--primary) !important; }

/* ---- Item-details top region: mobile stacks, desktop 2-col grid ---- */
.mk-id-stack { display:flex; flex-direction:column; gap:15px; }
@media (min-width:1024px){
  .mk-id-stack { display:grid; grid-template-columns:minmax(0,2fr) minmax(0,1fr); gap:15px; align-items:start; }
  .mk-id-stack > .mk-stack-intro { grid-column:1; grid-row:1; }
  .mk-id-stack > .mk-stack-plan  { grid-column:1; grid-row:2; }
  .mk-id-stack > .mk-stack-side  { grid-column:2; grid-row:1 / span 2; }
}

/* ---- Gallery height (React: aspect-[16/8] md:aspect-[3.5/1]) ---- */
.mk-gallery-media { aspect-ratio:16/8; }
@media (min-width:768px){ .mk-gallery-media { aspect-ratio:3.5/1; } }
@media (max-width:767px){
  .mk-gallery-grid { grid-template-columns:1fr!important; }
  .mk-gallery-thumbs { display:none!important; }
}

/* ---- Reviews (UniReviewForm.tsx + ReviewList.tsx) ---- */
.mk-rev-metrics { display:flex; flex-direction:row; align-items:center; width:100%; gap:15px; padding:15px 0; border-bottom:1px solid var(--border); margin-bottom:2px; justify-content:space-between; }
.mk-rev-metrics-left { width:35%; display:flex; flex-direction:column; align-items:flex-start; flex-shrink:0; }
.mk-rev-metrics-right { width:65%; display:flex; flex-direction:column; gap:3.75px; align-items:flex-end; }
.mk-rev-dist { display:flex; align-items:center; gap:7.5px; width:100%; }
.mk-rev-dist-label { width:48px; font-size:11px; font-weight:700; color:var(--muted-fg); white-space:nowrap; text-align:left; }
.mk-rev-dist-bar { flex:1; height:5px; background:var(--muted); border-radius:999px; overflow:hidden; }
.mk-rev-dist-bar > div { height:100%; background:var(--primary); transition:width .6s; }
.mk-rev-dist-count { width:32px; text-align:right; font-size:11px; font-weight:700; color:rgba(100,116,139,.5); font-variant-numeric:tabular-nums; }
.mk-rev-guest { display:grid; grid-template-columns:1fr; gap:8px; }
@media (min-width:640px){ .mk-rev-guest { grid-template-columns:1fr 1fr; } }
.mk-rev-field { display:flex; align-items:center; gap:8px; padding:8px 12px; border:1px solid var(--border); border-radius:5px; background:var(--background); }
.mk-rev-field input { width:100%; border:none; outline:none; background:transparent; font-size:13px; color:var(--foreground); font-family:var(--font-sans); }
.mk-rev-field-ico { color:var(--muted-fg); display:flex; flex-shrink:0; }
.mk-rev-textbox { border:1px solid var(--border); border-radius:5px; background:var(--background); box-shadow:0 1px 2px rgba(0,0,0,.04); overflow:hidden; transition:border-color .15s; }
.mk-rev-textbox:focus-within { border-color:rgba(37,99,235,.4); }
.mk-rev-textbox textarea { width:100%; min-height:100px; padding:15px; font-size:14px; line-height:1.6; border:none; outline:none; resize:none; background:transparent; color:var(--foreground); font-family:var(--font-sans); box-sizing:border-box; }
.mk-rev-star:hover { color:rgba(251,191,36,.6); }
.mk-rev-post:hover { background:var(--primary-hover); }
.mk-rev-item { display:flex; gap:15px; }
.mk-rev-avatar { width:25px; height:25px; border-radius:5px; background:var(--muted); border:1px solid var(--border); overflow:hidden; display:flex; align-items:center; justify-content:center; font-size:9px; font-weight:700;  flex-shrink:0; }
.mk-rev-avatar img { width:100%; height:100%; object-fit:cover; display:block; }
.mk-rev-avatar span { opacity:.4; }
.mk-rev-body { flex:1; min-width:0; display:flex; flex-direction:column; }
.mk-rev-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:4px; gap:8px; }
.mk-rev-name { font-size:13px; font-weight:700; color:var(--foreground); text-transform:capitalize; }
.mk-rev-time { font-size:11px; color:var(--muted-fg); font-weight:400; text-transform:lowercase; }
.mk-rev-stars { display:flex; gap:2px; flex-shrink:0; }
.mk-rev-msg { font-size:14px; color:rgba(15,23,42,.8); line-height:1.6; margin:0; }
.mk-rev-sep { border-top:1px solid var(--border); margin:15px 0; }

/* Item Details row base (display:grid was previously inline) */
.mk-id-row { display:grid; grid-template-columns:1fr; gap:15px; width:100%; align-items:start; min-width:0; }
.mk-id-row > * { min-width:0; }
.mk-id-col-8, .mk-id-col-4 { min-width:0; max-width:100%; }
.mk-id-row [style*="display:flex"], .mk-id-row [style*="flex-direction"] { min-width:0; }
.mk-slider, .mk-developer, .mk-bp-stack, .mk-gallery-wrap { min-width:0; overflow:hidden; max-width:100%; }
.mk-slider-track { max-width:100%; }

/* ==========================================================================
   Compare sheet (Compare.tsx) + Reviews pagination
   ========================================================================== */
.mk-compare-overlay { position:fixed; inset:0; z-index:100000; display:flex; justify-content:flex-end; }
.mk-compare-backdrop { position:absolute; inset:0; background:rgba(15,23,42,.4); backdrop-filter:blur(2px); }
.mk-compare-panel { position:relative; z-index:1; width:100%; max-width:100%; height:100%; background:var(--card); border-left:1px solid var(--border); display:flex; flex-direction:column; overflow:hidden; }
@media (min-width:1024px){ .mk-compare-panel { width:75vw; } }
.mk-compare-header { height:40px; flex-shrink:0; display:flex; align-items:center; justify-content:space-between; padding:0 15px; border-bottom:1px solid var(--border); background:rgba(248,250,252,.5); }
.mk-compare-nav { background:none; border:none; color:var(--muted-fg); cursor:pointer; padding:4px; display:inline-flex; border-radius:3px; }
.mk-compare-nav:hover { background:var(--muted); color:var(--foreground); }
.mk-compare-close { background:none; border:none; color:var(--muted-fg); cursor:pointer; padding:8px; display:inline-flex; border-radius:5px; }
.mk-compare-close:hover { background:var(--muted); color:var(--foreground); }
.mk-compare-body { flex:1; overflow:auto; padding:15px; }
.mk-compare-empty { height:100%; display:flex; align-items:center; justify-content:center; color:var(--muted-fg); font-size:14px; }
.mk-compare-table { border-collapse:collapse; table-layout:fixed; width:auto; }
.mk-compare-table td { border:1px solid rgba(148,163,184,.25); padding:7.5px; font-size:13px; vertical-align:middle; }
.mk-compare-table td:not(.mk-cc-label) { width:200px; min-width:200px; }
.mk-id-call:hover, .mk-id-wa:hover { text-decoration: underline; }

/* Services module */
.mk-service-card { transition: box-shadow .2s, transform .2s; }
.mk-service-card:hover { box-shadow: 0 8px 24px rgba(15,23,42,.08); }
.mk-service-card:hover img { transform: scale(1.05); }
@media (max-width:1024px){ .mk-services-grid { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width:640px){ .mk-services-grid { grid-template-columns: 1fr !important; } }
.mk-spage { display:inline-flex;align-items:center;justify-content:center;min-width:32px;height:32px;padding:0 8px;border:1px solid var(--border);border-radius:5px;font-size:12px;font-weight:700;color:var(--foreground);text-decoration:none; }
.mk-spage.active { background:var(--primary);border-color:var(--primary);color:#fff; }

/* Final sticky row: purchase button under each product column */
.mk-compare-table .mk-cc-actions-row td { position: sticky; bottom: 0; background: var(--card); z-index: 3; border-top: 1px solid var(--border); }
.mk-cc-buy { display: flex; align-items: center; justify-content: center; height: 32px; border-radius: 5px; background: var(--primary); color: #fff; font-size: 12px; font-weight: 600; text-decoration: none; }
.mk-cc-buy:hover { filter: brightness(.92); }
.mk-cc-label { background:var(--muted); color:var(--muted-fg); width:110px; min-width:110px; text-align:left; font-weight:400; }
.mk-cc-img { position:relative; width:100%; aspect-ratio:3/2; overflow:hidden; border-radius:5px; background:var(--muted); }
.mk-cc-img img { width:100%; height:100%; object-fit:cover; display:block; }
.mk-cc-remove { position:absolute; top:5px; right:5px; width:22px; height:22px; padding:0; box-sizing:border-box; aspect-ratio:1/1; flex-shrink:0; border-radius:9999px; background:rgba(15,23,42,.6); color:#fff; border:none; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; line-height:1; font-size:15px; font-family:var(--font-sans); }
.mk-cc-dash { color:#9ca3af; }
.mk-cc-price { font-weight:600; color:var(--primary); }
.mk-cc-buy { display:flex; align-items:center; justify-content:center; height:28px; width:100%; border:1px solid var(--primary); border-radius:3px; color:var(--primary); font-size:12px; font-weight:600; text-decoration:none; }
.mk-cc-buy:hover { background:var(--primary); color:#fff; }

/* Reviews pagination */
.mk-rev-pages { display:flex; justify-content:center; gap:6px; flex-wrap:wrap; }
.mk-rev-page { min-width:28px; height:28px; padding:0 8px; border:1px solid var(--border); border-radius:3px; background:var(--card); color:var(--foreground); font-size:12px; font-weight:600; cursor:pointer; transition:all .15s; display:inline-flex; align-items:center; justify-content:center; }
.mk-rev-page:hover { border-color:var(--primary); color:var(--primary); }
.mk-rev-page.active { background:var(--primary); border-color:var(--primary); color:#fff; }

/* ==========================================================================
   Header user menu (mirrors Profile.Modal) + hamburger safety
   ========================================================================== */
.mk-hamburger { flex-shrink: 0; }
.mk-user-menu {
  position: absolute; top: calc(100% + 4px); right: 0; width: 256px;
  background: var(--card); border: 1px solid var(--border); border-radius: 5px;
  box-shadow: 0 12px 32px rgba(0,0,0,.18); z-index: 3000; padding: 7.5px;
}
.mk-user-menu-head { display: flex; align-items: center; gap: 10px; padding: 7.5px 15px; }
.mk-um-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; box-shadow: 0 1px 2px rgba(0,0,0,.1); }
.mk-user-menu-name { font-size: 13px; line-height: 13px; font-weight: 700; color: var(--foreground); margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-user-menu-email { font-size: 11px; color: var(--muted-fg); margin: 4px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-user-menu-body { display: flex; flex-direction: column; gap: 7.5px; margin-top: 7.5px; padding: 0 7.5px 7.5px; }
.mk-user-menu-item { display: flex; align-items: center; gap: 8px; padding: 7.5px 10px; border-radius: 3px; font-size: 12px; line-height: 13px; color: var(--muted-fg); text-decoration: none; transition: background .15s, color .15s; }
.mk-user-menu-item:hover { background: var(--muted); color: var(--foreground); }
.mk-user-menu-danger { color: #dc2626; }
.mk-user-menu-danger:hover { background: rgba(220,38,38,.1); color: #dc2626; }

/* ==========================================================================
   Userboard shell · Searchable select · Spinner · Sign-in hover
   ========================================================================== */


.mk-spinner { display:inline-block; width:14px; height:14px; border:2px solid currentColor; border-top-color:transparent; border-radius:50%; animation:mk-spin .7s linear infinite; vertical-align:middle; }
@keyframes mk-spin { to { transform: rotate(360deg); } }

.mk-signin:hover { opacity:.9; }

.mk-ss { position:relative; width:100%; }
.mk-ss-native { position:absolute; opacity:0; pointer-events:none; height:0; width:0; }
.mk-ss-btn { display:flex; align-items:center; justify-content:space-between; gap:8px; width:100%; height:40px; padding:0 12px; border:1px solid var(--border); border-radius:5px; background:var(--background); color:var(--foreground); font-size:13px; font-family:var(--font-sans); cursor:pointer; text-align:left; box-sizing:border-box; }
.mk-ss-btn:hover { border-color:rgba(37,99,235,.4); }
.mk-ss-label { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.mk-ss-label.placeholder { color:var(--muted-fg); }
.mk-ss-arrow { opacity:.5; font-size:10px; }
.mk-ss-panel { position:absolute; top:calc(100% + 4px); left:0; right:0; z-index:60; background:var(--card); border:1px solid var(--border); border-radius:5px; box-shadow:0 12px 32px rgba(0,0,0,.15); padding:6px; display:none; }
.mk-ss.open .mk-ss-panel { display:block; }
.mk-ss-search { width:100%; height:32px; padding:0 10px; border:1px solid var(--border); border-radius:4px; font-size:13px; outline:none; background:var(--background); color:var(--foreground); box-sizing:border-box; margin-bottom:6px; }
.mk-ss-list { max-height:220px; overflow-y:auto; display:flex; flex-direction:column; }
.mk-ss-item { padding:7px 10px; border-radius:4px; font-size:13px; color:var(--foreground); background:none; border:none; text-align:left; cursor:pointer; }
.mk-ss-item:hover { background:var(--muted); }
.mk-ss-item.active { background:var(--primary); color:#fff; }
.mk-ss-empty { padding:8px 10px; font-size:12px; color:var(--muted-fg); }

/* ==========================================================================
   Professionals directory (Profile.Card.tsx + ArchivePage.tsx + AdvancedFilter.tsx)
   ========================================================================== */
.mk-pro-wrap { width:100%; max-width:1200px; margin:0 auto; padding:15px; display:flex; flex-direction:column; gap:15px; font-family:var(--font-sans); text-align:left; box-sizing:border-box; }
.mk-pro-row { display:flex; flex-direction:column; gap:15px; align-items:flex-start; width:100%; }
@media (min-width:768px){ .mk-pro-row { flex-direction:row; } }
.mk-pro-main { flex:1; width:100%; min-width:0; }
.mk-pro-side { display:none; width:300px; flex-shrink:0; position:sticky; top:60px; max-height:calc(100vh - 72px); overflow-y:auto; scrollbar-width:none; }
.mk-pro-side::-webkit-scrollbar { display:none; }
@media (min-width:768px){ .mk-pro-side { display:block; } }
.mk-pro-grid { display:grid; grid-template-columns:1fr; gap:15px; }
@media (min-width:768px){ .mk-pro-grid { grid-template-columns:1fr 1fr; } }
.mk-pro-mobile { display:flex; gap:7.5px; align-items:center; margin-bottom:15px; }
@media (min-width:768px){ .mk-pro-mobile { display:none; } }
.mk-pro-mobile-search { flex:1; position:relative; }
.mk-pro-mobile-search input { width:100%; height:38px; background:#fff; border:1px solid #e2e8f0; border-radius:3px; padding:0 12px 0 40px; font-size:13px; outline:none; box-sizing:border-box; }
.mk-pro-mobile-ico { position:absolute; left:12px; top:50%; transform:translateY(-50%); color:#94a3b8; display:flex; }
.mk-pro-mobile-filter { height:38px; width:38px; display:flex; align-items:center; justify-content:center; border:1px solid #e2e8f0; border-radius:3px; background:#fff; color:#475569; cursor:pointer; }
.mk-pro-empty { display:none; flex-direction:column; align-items:center; justify-content:center; gap:16px; opacity:.1; border:1px dashed var(--border); border-radius:5px; padding:120px 0; color:var(--foreground);  font-size:10px; font-weight:600; letter-spacing:8px; }
.mk-pro-more-wrap { display:none; justify-content:center; margin-top:15px; }
.mk-pro-more { height:28px; padding:0 24px; border:1px solid var(--border); background:var(--card); border-radius:3px; font-size:10px; font-weight:600;  letter-spacing:.1em; cursor:pointer; color:var(--foreground); }
.mk-pro-more:hover { background:var(--muted); }

/* Card */
.mk-pro-card { background:#fff; border:1px solid #f1f5f9; border-radius:5px; display:flex; box-shadow:0 1px 2px rgba(0,0,0,.04); transition:all .15s; position:relative; font-family:var(--font-sans); text-align:left; overflow:hidden; padding:15px; height:100%; min-height:180px; box-sizing:border-box; }
.mk-pro-card:hover { box-shadow:0 4px 12px rgba(0,0,0,.08); transform:translateY(-1px); }
.mk-pro-img-col { width:50px; flex-shrink:0; margin-top:-15px; margin-left:-15px; }
.mk-pro-img { width:50px; height:50px; background:#f8fafc; overflow:hidden; border-right:1px solid #f1f5f9; border-bottom:1px solid #f1f5f9; border-top-left-radius:5px; border-bottom-right-radius:5px; }
.mk-pro-img img { width:100%; height:100%; object-fit:cover; display:block; }
.mk-pro-gap { width:7.5px; flex-shrink:0; }
.mk-pro-body { flex:1; display:flex; flex-direction:column; gap:7.5px; min-width:0; }
.mk-pro-header { display:flex; align-items:flex-start; justify-content:space-between; min-height:38px; gap:7.5px; }
.mk-pro-name { font-size:14px; font-weight:600; color:#4b5563; line-height:1.25; display:flex; align-items:center; gap:7.5px; margin:0; }
.mk-pro-country { color:#dc2626; font-size:8px; font-weight:600;  position:relative; top:-6px; }
.mk-pro-rate { font-size:13px; color:#94a3b8; font-weight:400; margin:0; }
.mk-pro-heart { background:none; border:none; color:#3b82f6; cursor:pointer; padding:0; line-height:1; display:flex; transition:transform .15s; }
.mk-pro-heart:hover { transform:scale(1.1); }
.mk-pro-heart.favorited { color:#f43f5e; }
.mk-pro-meta { display:flex; align-items:center; gap:15px; color:#64748b; font-size:12px; font-weight:400; flex-wrap:wrap; }
.mk-pro-meta-item { display:flex; align-items:center; gap:7.5px; min-width:0; }
.mk-pro-bio { font-size:13px; color:#64748b; line-height:1.6; margin:0; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; text-align:justify; }
.mk-pro-skills { display:flex; flex-wrap:nowrap; gap:7.5px; overflow:hidden; }
.mk-pro-skill { font-size:10px; font-weight:600; background:#f1f5f9; color:#475569; border-radius:1px; padding:2px 8px; text-transform:capitalize; white-space:nowrap; }
.mk-pro-actions { display:flex; align-items:center; justify-content:space-between; margin-top:auto; padding-top:7.5px; }
.mk-pro-wa { color:#22c55e; display:flex; align-items:center; justify-content:center; text-decoration:none; transition:transform .15s; }
.mk-pro-wa:hover { transform:scale(1.1); }
.mk-pro-portfolio { min-width:96px; height:28px; font-size:13px; font-weight:600; padding:0 16px; background:#eef2f6; color:#3b82f6; border-radius:3px; display:inline-flex; align-items:center; justify-content:center; text-decoration:none; transition:all .2s; }
.mk-pro-portfolio:hover { background:#3b82f6; color:#fff; }

/* Mobile drawer */
.mk-prof-drawer { display:none; position:fixed; inset:0; z-index:200; }
.mk-prof-drawer.open { display:block; }
@media (min-width:768px){ .mk-prof-drawer { display:none!important; } }
.mk-prof-drawer-backdrop { position:absolute; inset:0; background:rgba(0,0,0,.5); }
.mk-prof-drawer-panel { position:absolute; top:0; right:0; bottom:0; width:300px; max-width:90vw; background:#fff; padding:16px; overflow-y:auto; box-shadow:-8px 0 32px rgba(0,0,0,.2); }
.mk-prof-drawer-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:15px; border-bottom:1px solid var(--border); padding-bottom:15px; font-weight:600; font-size:14px;  }
.mk-prof-drawer-head button { background:none; border:none; cursor:pointer; color:var(--muted-fg); display:flex; }

/* Filter */
.mk-pf { width:100%; display:flex; flex-direction:column; gap:15px; background:var(--background); }
.mk-pf-actions { position:sticky; top:0; background:var(--background); padding-bottom:15px; display:flex; gap:8px; z-index:20; }
.mk-pf-apply { flex:1; height:32px; background:#3b82f6; color:#fff; border:none; border-radius:4px; font-weight:600; font-size:13px; cursor:pointer; }
.mk-pf-apply:hover { background:#2563eb; }
.mk-pf-reset { flex:1; height:32px; border:1px solid #3b82f6; color:#3b82f6; background:none; border-radius:4px; font-weight:600; font-size:13px; cursor:pointer; }
.mk-pf-reset:hover { background:#eff6ff; }
.mk-pf-groups { display:flex; flex-direction:column; gap:16px; }
.mk-pf-sort select { width:100%; height:40px; padding:0 12px; border:1px solid var(--border); border-radius:4px; font-size:13px; background:var(--card); color:var(--foreground); }
.mk-pf-group { display:flex; flex-direction:column; margin-bottom:15px; }
.mk-pf-title { font-size:13px; font-weight:600; color:var(--muted-fg); padding-bottom:8px; border-bottom:1px solid rgba(226,232,240,.5); margin:0 0 12px;  letter-spacing:-.01em; }
.mk-pf-input { width:100%; height:40px; padding:0 12px; background:var(--card); border:1px solid var(--border); border-radius:4px; font-size:13px; color:var(--foreground); box-sizing:border-box; outline:none; }
.mk-pf-range { display:flex; flex-direction:column; gap:4px; padding-top:8px; }
.mk-pf-range input[type=range] { width:100%; }
.mk-pf-range-label { display:flex; justify-content:space-between; margin-top:12px; font-size:12px; font-weight:600; color:var(--muted-fg); }
.mk-pf-checks { display:flex; flex-direction:column; gap:10px; }
.mk-pf-check { display:flex; align-items:center; cursor:pointer; }
.mk-pf-box { height:16px; width:16px; border:2px solid #3b82f6; border-radius:2px; margin-right:8px; flex-shrink:0; background:var(--card); position:relative; box-sizing:border-box; }
.mk-pf-check.checked .mk-pf-box { background:#1e40af; border-color:#1e40af; }
.mk-pf-check.checked .mk-pf-box::after { content:''; position:absolute; left:4px; top:0; width:5px; height:9px; border:solid #fff; border-width:0 2px 2px 0; transform:rotate(45deg); }
.mk-pf-label { font-size:12px; font-weight:600; color:rgba(15,23,42,.8);  letter-spacing:.02em; display:flex; align-items:center; gap:4px; }
.mk-pf-stars { display:inline-flex; gap:1px; margin-left:4px; }
.mk-pf-stars i { width:10px; height:10px; background:#fbbf24; display:inline-block; clip-path:polygon(50% 0%,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%); }
.mk-pf-skill-search { position:relative; margin-bottom:12px; }
.mk-pf-skill-search svg { position:absolute; left:10px; top:50%; transform:translateY(-50%); color:rgba(100,116,139,.4); }
.mk-pf-skill-search input { width:100%; height:32px; padding:0 10px 0 32px; background:var(--muted); border:1px solid var(--border); border-radius:4px; font-size:11px; font-weight:500; outline:none; box-sizing:border-box; }
.mk-pf-more { background:none; border:none; color:#2563eb; font-size:11px; font-weight:600;  letter-spacing:.1em; margin-top:12px; text-align:left; cursor:pointer; }
.mk-pf-skill-extra { display:none; }

/* ==========================================================================
   Userboard vertical tabs (SystemVerticalTabs mirror) + Offering form
   ========================================================================== */
.mk-ub { width:100%; background:var(--background); flex:1 0 auto; display:flex; flex-direction:column; }
.mk-ub-inner { max-width:1200px; margin:0 auto; padding:15px; display:flex; flex-direction:column; gap:15px; width:100%; box-sizing:border-box; }
@media (min-width:768px){ .mk-ub-inner { flex-direction:row; align-items:flex-start; } }
.mk-ub-tabs { display:none; flex-direction:column; gap:7.5px; width:180px; flex-shrink:0; position:sticky; top:63px; align-self:flex-start; }
@media (min-width:768px){ .mk-ub-tabs { display:flex; } }
.mk-ubtab { display:flex; align-items:center; gap:8px; padding:8px 16px; border-radius:5px; font-size:13px; font-weight:600; border:1px solid var(--border); background:var(--card); color:var(--muted-fg); text-decoration:none; transition:all .15s; }
.mk-ubtab:hover { border-color:rgba(37,99,235,.5); color:var(--foreground); }
.mk-ubtab.active { background:var(--primary); color:var(--primary-fg); border-color:var(--primary); }
.mk-ub-mobile { display:block; width:100%; }
@media (min-width:768px){ .mk-ub-mobile { display:none; } }
.mk-ub-mobile select { width:100%; height:40px; border:1px solid var(--border); border-radius:5px; padding:0 12px; font-size:13px; font-weight:700;  letter-spacing:.05em; background:var(--card); color:var(--foreground); box-sizing:border-box; }
.mk-ub-content { flex:1; min-width:0; }

.mk-offering-form { display:flex; flex-direction:column; width:100%; max-width:900px; }
.mk-of-head { margin-bottom:15px; padding-bottom:15px; border-bottom:1px solid var(--border); }
.mk-of-head h2 { font-size:14px; font-weight:700; color:var(--foreground); margin:0; text-transform:capitalize; }
.mk-offering-form form { display:flex; flex-direction:column; gap:20px; }
.mk-form-section { background:var(--card); border:1px solid var(--border); border-radius:5px; padding:15px; display:flex; flex-direction:column; gap:15px; }
.mk-form-section h3 { font-size:13px; font-weight:800; color:var(--foreground); text-transform:capitalize; letter-spacing:.02em; margin:0; }
.mk-form-2 { display:grid; grid-template-columns:1fr 1fr; gap:15px; }
@media (max-width:640px){ .mk-form-2 { grid-template-columns:1fr; } }
.mk-fld { display:flex; flex-direction:column; gap:6px; }
.mk-lbl { font-size:12px; font-weight:600; color:var(--muted-fg); text-transform:capitalize; }
.mk-lbl-opt { opacity:.5; font-weight:400; font-size:11px; }
.mk-media-pick { position:relative; width:100%; height:140px; border:1px dashed var(--border); border-radius:5px; display:flex; align-items:center; justify-content:center; cursor:pointer; background:var(--muted); overflow:hidden; transition:border-color .15s; }
.mk-media-pick:hover { border-color:var(--primary); }
.mk-media-pick img { width:100%; height:100%; object-fit:cover; display:block; }
.mk-media-hint { display:flex; flex-direction:column; align-items:center; gap:6px; color:#94a3b8; font-size:12px; font-weight:600; text-align:center; }
.mk-media-gallery { display:flex; flex-wrap:wrap; gap:8px; min-height:140px; border:1px dashed var(--border); border-radius:5px; padding:8px; cursor:pointer; background:var(--muted); align-content:flex-start; transition:border-color .15s; }
.mk-media-gallery:hover { border-color:var(--primary); }
.mk-media-gallery img { width:60px; height:60px; object-fit:cover; border-radius:3px; border:1px solid var(--border); }
.mk-of-save { display:flex; justify-content:flex-end; }
.mk-of-save-btn { height:40px; padding:0 28px; border-radius:5px; background:var(--primary); color:var(--primary-fg); font-size:13px; font-weight:700; border:none; cursor:pointer; transition:background .15s; }
.mk-of-save-btn:hover { background:var(--primary-hover); }

/* ==========================================================================
   Checkout: symmetric fields + Terms modal
   ========================================================================== */
.mk-checkout-fields { display:grid; grid-template-columns:1fr 1fr; gap:15px; }
.mk-fld-wide { grid-column:span 2; }
@media (max-width:640px){ .mk-checkout-fields { grid-template-columns:1fr; } .mk-fld-wide { grid-column:auto; } }
.mk-checkout-fields .mk-input { width:100%; box-sizing:border-box; height:40px; padding:0 12px; border:1px solid var(--border); border-radius:5px; font-size:13px; font-family:var(--font-sans); color:var(--foreground); background:var(--background); outline:none; }
.mk-checkout-fields select.mk-input { appearance:none; cursor:pointer; }

.mk-terms { margin:12px 0; font-size:12px; color:var(--muted-fg); }
.mk-terms label { display:flex; align-items:flex-start; gap:8px; cursor:pointer; }
.mk-terms input { margin-top:2px; accent-color:var(--primary); }
.mk-terms a { color:var(--primary); font-weight:600; text-decoration:none; }
.mk-terms a:hover { text-decoration:underline; }

.mk-terms-modal { position:fixed; inset:0; z-index:4000; display:none; align-items:center; justify-content:center; }
.mk-terms-backdrop { position:absolute; inset:0; background:rgba(15,23,42,.5); backdrop-filter:blur(2px); }
.mk-terms-panel { position:relative; z-index:1; display:flex; flex-direction:column; background:var(--card); border:1px solid var(--border); border-radius:5px; overflow:hidden; box-shadow:0 20px 60px rgba(0,0,0,.3); }
@media (min-width:768px){ .mk-terms-panel { width:50vw; height:80vh; } }
@media (max-width:767px){ .mk-terms-panel { width:90vw; height:80vh; } }
.mk-terms-head { display:flex; align-items:center; justify-content:space-between; padding:0 15px; height:44px; border-bottom:1px solid var(--border); font-size:13px; font-weight:700; color:var(--foreground); text-transform:capitalize; flex-shrink:0; }
.mk-terms-head button { background:none; border:none; color:var(--muted-fg); cursor:pointer; display:flex; padding:6px; border-radius:4px; }
.mk-terms-head button:hover { background:var(--muted); color:var(--foreground); }
.mk-terms-body { padding:15px; overflow-y:auto; font-size:13px; line-height:1.7; color:var(--muted-fg); }

/* ==========================================================================
   Developer block — uses the standard archive card
   ========================================================================== */
.mk-developer { display:flex; flex-direction:column; gap:15px; background:var(--card); border:1px solid var(--border); border-radius:5px; padding:15px; }
.mk-dev-head { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.mk-dev-head-left { display:flex; align-items:center; gap:8px; font-size:13px; font-weight:700; line-height:1; flex-wrap:wrap; }
.mk-dev-author { color:#3b82f6; text-decoration:none; font-weight:700; max-width:160px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.mk-dev-author:hover { text-decoration:underline; }
.mk-dev-sep { color:rgba(100,116,139,.3); font-weight:400; }
.mk-dev-stat { display:flex; align-items:center; gap:4px; }
.mk-dev-count { color:#3b82f6; font-weight:400; }
.mk-dev-designs b { color:var(--foreground); }
.mk-dev-empty { padding:40px 0; text-align:center; font-size:12px; color:var(--muted-fg); opacity:.5; font-style:italic; }

/* ==========================================================================
   Dual-range slider (single track, two nodes) — archive filters
   ========================================================================== */
.mk-range { position:relative; height:24px; margin-top:8px; }
.mk-range-track { position:absolute; top:50%; transform:translateY(-50%); left:0; right:0; height:4px; background:var(--muted); border-radius:999px; }
.mk-range-fill { position:absolute; top:50%; transform:translateY(-50%); height:4px; background:var(--primary); border-radius:999px; }
.mk-range-input { position:absolute; top:0; left:0; width:100%; height:24px; margin:0; background:none; pointer-events:none; -webkit-appearance:none; appearance:none; }
.mk-range-input:focus { outline:none; }
.mk-range-input::-webkit-slider-thumb { -webkit-appearance:none; pointer-events:auto; width:16px; height:16px; margin-top:-6px; border-radius:50%; background:var(--primary); border:2px solid #fff; box-shadow:0 1px 3px rgba(0,0,0,.3); cursor:pointer; }
.mk-range-input::-moz-range-thumb { pointer-events:auto; width:14px; height:14px; border-radius:50%; background:var(--primary); border:2px solid #fff; cursor:pointer; }
.mk-range-input::-webkit-slider-runnable-track { background:transparent; height:4px; }
.mk-range-input::-moz-range-track { background:transparent; height:4px; }
.mk-range-label { display:flex; justify-content:space-between; align-items:center; margin-top:8px; font-size:12px; font-weight:700; color:var(--muted-fg); }
.mk-range-label b { color:#1e40af; }

/* ---- Mobile auto-slide gallery (lightweight medium_large images) ---- */
.mk-gallery-show { display:none; }
@media (max-width:767px){
  .mk-gallery-grid { display:none !important; }
  .mk-gallery-show { display:block; position:absolute; inset:0; overflow:hidden; }
  .mk-gallery-track { display:flex; height:100%; transition:transform .5s ease; }
  .mk-gallery-slide { flex:0 0 100%; min-width:100%; height:100%; position:relative; cursor:pointer; }
  .mk-gallery-slide img { width:100%; height:100%; object-fit:cover; display:block; }
  .mk-gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    border-radius: 9999px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  }
  .mk-gallery-arrow:hover {
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    transform: translateY(-50%) scale(1.08);
  }
  .mk-gallery-arrow.prev { left: 10px; }
  .mk-gallery-arrow.next { right: 10px; }
  .mk-gallery-arrow svg {
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.8));
  }
  .mk-gallery-count {
    position: absolute;
    bottom: 12px;
    left: 12px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 5px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  }
}