/* =============================================================================
   IMMERO THEME — TAMPILAN MARKETPLACE ORANYE + NAVY (mengikuti desain acuan)
   =============================================================================
   Dimuat SETELAH tailwind-built.css dan chael-ui.css pada halaman publik
   (beranda, pencarian, toko, produk, cek ongkir) lewat partials/marketplace-
   head-assets.php dan index.php.

   SKALA KOMPAK (permintaan pemilik: "jangan terlalu besar, terutama bagian
   promo dan lainnya"). Semua ukuran di sini sudah dikecilkan ±20-25% dari
   versi pertama: header 62px, bilah navy 38px, hero 214px, ubin kategori ±80px,
   kartu Promo Harian ±84px, judul bagian 16px, kartu produk lebih rapat dan
   grid sampai 7 kolom. Bila ingin lebih besar/kecil, ubah ANGKA di sini saja.

   KENAPA CSS BIASA, BUKAN KELAS TAILWIND BARU
   tailwind-built.css adalah berkas STATIS; kelas Tailwind yang belum pernah
   dipakai tidak ada di dalamnya dan gagal tanpa pesan. Semua komponen baru di
   sini memakai awalan `mk-` dan ditulis sebagai CSS sendiri, jadi tidak perlu
   kompilasi ulang apa pun.

   WARNA (diambil dari piksel gambar acuan)
     oranye #F26522   navy #133E68   kuning #F4CC47 (angka diskon)
   Oranye acuan cerah: teks PUTIH KECIL di atasnya hanya 3,15:1 (di bawah 4,5:1
   WCAG AA); untuk teks oranye di atas putih dipakai --mk-orange-text (5,2:1).
   Bila kelak ingin tombol kecil lulus AA, cukup ubah --mk-orange-btn ke
   #D2450A — satu baris, tanpa menyentuh komponen lain.
   ========================================================================== */

:root {
    --mk-orange:      #F26522;
    --mk-orange-btn:  #F26522;   /* latar tombol/pil ber-teks putih kecil */
    --mk-orange-deep: #DD5410;   /* hover */
    --mk-orange-text: #C2410C;   /* teks oranye di atas putih (5,2:1) */
    --mk-orange-tint: #FFF1E8;
    --mk-navy:        #133E68;
    --mk-navy-deep:   #0D2F52;
    --mk-yellow:      #F4CC47;
    --mk-ink:         #1B2B3D;
    --mk-muted:       #5E6E80;
    --mk-line:        #E5EAF0;
    --mk-tile:        #F0F2F5;
    --mk-peach:       #FDEBDD;
    --mk-sky:         #E4EEFC;
    --mk-font: 'Poppins', 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --mk-radius: 12px;
    --mk-shadow: 0 6px 20px -8px rgba(19, 62, 104, .26);
    --mk-wrap: 1280px;   /* sama dengan .container Tailwind di halaman dalam (cari/produk/toko) */
    --mk-gutter: 32px;   /* Tailwind md:px-8; ponsel: 16px (px-4) — lihat blok responsif di bawah */
    --mk-hdr-h: 62px;
}

/* ---- 0. DASAR ------------------------------------------------------------- */
body.mk {
    font-family: var(--mk-font);
    color: var(--mk-ink);
    background: #FFFFFF;
    letter-spacing: 0;
}
body.mk h1, body.mk h2, body.mk h3, body.mk h4 { letter-spacing: -0.01em; font-weight: 700; }
/* Kekhususan (0,1,2) aturan di atas mengalahkan kelas tunggal; judul yang bobotnya BEDA
   dari 700 harus menaikkan kekhususannya sendiri. */
body.mk .mk-title { font-weight: 800; }
body.mk .mk-card-t { font-weight: 500; }

.mk-wrap { max-width: var(--mk-wrap); margin-left: auto; margin-right: auto; padding-left: var(--mk-gutter); padding-right: var(--mk-gutter); }
@media (max-width: 767.98px) { :root { --mk-gutter: 16px; } }

/* Gulir horizontal tanpa batang gulir (beranda memakainya di banyak baris). */
.mk-noscroll { scrollbar-width: none; -ms-overflow-style: none; }
.mk-noscroll::-webkit-scrollbar { display: none; }

/* Elemen interaktif tidak ikut aturan "naik 1px saat disorot" dari chael-ui.css. */
.mk-hdr button:hover, .mk-nav button:hover, .mk-bn button:hover,
.mk-car button:hover, .mk-card button:hover, .mk-cat:hover { transform: none; }

#collection, #promo-section, #contact { scroll-margin-top: 90px; }

/* ---- 1. PENGUMUMAN (bilah teks berjalan dari Pengaturan Beranda) ---------- */
.mk-announce { background: var(--mk-navy-deep); color: #FFFFFF; font-size: 11.5px; font-weight: 500; }
.mk-announce-in {
    display: flex; align-items: center; justify-content: center;
    height: 28px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
@media (max-width: 767.98px) { .mk-announce { display: none; } }

/* ---- 2. HEADER ------------------------------------------------------------ */
.mk-hdr {
    position: sticky; top: 0; z-index: 40;
    background: #FFFFFF;
    border-bottom: 1px solid var(--mk-line);
}
.mk-hdr-in {
    max-width: var(--mk-wrap); margin: 0 auto; padding: 0 var(--mk-gutter);
    min-height: var(--mk-hdr-h);
    display: flex; align-items: center; gap: 22px;
}

.mk-menu-btn {
    display: none; width: 38px; height: 38px; align-items: center; justify-content: center;
    background: transparent; border: 0; color: #FFFFFF; border-radius: 10px; cursor: pointer;
}

/* Merek: lambang + nama (gambar unggahan admin, atau teks) + tagline. */
.mk-brand { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; color: var(--mk-navy); text-decoration: none; min-width: 0; }
.mk-brand-mark { display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.mk-mark-img { display: block; height: 36px; width: auto; max-width: 52px; object-fit: contain; }
.mk-mono {
    width: 36px; height: 36px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--mk-navy) 0 50%, var(--mk-orange) 50% 100%);
    color: #FFFFFF; font-weight: 800; font-size: 13px; letter-spacing: -0.02em; line-height: 1;
}
.mk-brand-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mk-wordmark--img { display: block; height: 26px; width: auto; max-width: 170px; object-fit: contain; }
.mk-wordmark--teks { font-weight: 800; font-size: 22px; line-height: 1; letter-spacing: -0.035em; color: var(--mk-navy); }
.mk-tagline { font-size: 9.5px; font-weight: 500; line-height: 1.1; color: var(--mk-navy); opacity: .85; white-space: nowrap; }

/* Pencarian: kotak putih bertepi oranye, tombol oranye di kanan (seperti acuan). */
.mk-search { flex: 1 1 auto; min-width: 0; max-width: 560px; position: relative; }
.mk-search-box {
    display: flex; height: 38px; background: #FFFFFF;
    border: 1.5px solid var(--mk-orange); border-radius: 8px; overflow: hidden;
    transition: box-shadow .16s ease;
}
.mk-search-box:focus-within { box-shadow: 0 0 0 3px rgba(242, 101, 34, .2); }
.mk-search-box input[type="text"] {
    flex: 1 1 auto; min-width: 0; height: 100%; border: 0 !important; outline: 0; background: transparent;
    padding: 0 14px; font-family: var(--mk-font); font-size: 12.5px; font-weight: 400; color: var(--mk-ink);
    border-radius: 0; box-shadow: none !important;
}
.mk-search-box input::placeholder { color: #8795A5; }
.mk-search-box button {
    flex: 0 0 auto; width: 46px; border: 0; border-radius: 0; cursor: pointer;
    background: var(--mk-orange); color: #FFFFFF;
    display: flex; align-items: center; justify-content: center;
}
.mk-search-box button:hover { background: var(--mk-orange-deep); }
#saran-cari { border-radius: 10px; }

/* Aksi kanan: akun, wishlist, notifikasi, keranjang. */
.mk-actions { display: flex; align-items: center; gap: 2px; margin-left: auto; flex: 0 0 auto; }
.mk-act {
    position: relative; display: inline-flex; align-items: center; gap: 6px;
    min-width: 38px; height: 38px; padding: 0 8px; justify-content: center;
    background: transparent; border: 0; border-radius: 10px; color: var(--mk-navy);
    font-family: var(--mk-font); font-size: 12px; font-weight: 500; cursor: pointer; text-decoration: none;
    transition: background-color .16s ease, color .16s ease;
}
.mk-act:hover { background: var(--mk-tile); color: var(--mk-orange-text); }
.mk-act svg { flex: 0 0 auto; width: 21px; height: 21px; }
.mk-act-label { white-space: nowrap; max-width: 100px; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1099.98px) { .mk-act-label { display: none; } }

/* border-box: min-width/height sudah TERMASUK cincin putih 2px. (content-box membuat lencana
   satu digit melebar jadi ±32px dan menutupi ikonnya.) */
.mk-badge {
    position: absolute; top: 0; right: 0; min-width: 18px; height: 18px; padding: 0 3px; box-sizing: border-box;
    border-radius: 999px; background: var(--mk-orange); color: #FFFFFF;
    font-size: 9.5px; font-weight: 700; line-height: 1; text-align: center;
    display: flex; align-items: center; justify-content: center; border: 2px solid #FFFFFF;
}
.mk-badge.hidden { display: none !important; }

/* Panel notifikasi (lonceng) — markup & id dipertahankan untuk katalog.js. */
.mk-pop { border-radius: 12px !important; }

/* ---- 3. BILAH NAVIGASI NAVY (desktop) ------------------------------------- */
.mk-nav { background: var(--mk-navy); color: #FFFFFF; position: relative; z-index: 35; }
.mk-nav-in {
    max-width: var(--mk-wrap); margin: 0 auto; padding: 0 var(--mk-gutter);
    display: flex; align-items: stretch; height: 38px; gap: 1px;
}
.mk-nav a, .mk-nav-btn {
    display: flex; align-items: center; gap: 5px; padding: 0 12px;
    color: #FFFFFF; font-family: var(--mk-font); font-size: 12.5px; font-weight: 500; white-space: nowrap;
    background: transparent; border: 0; border-radius: 0; cursor: pointer; text-decoration: none;
    transition: background-color .16s ease;
}
.mk-nav a:hover, .mk-nav-btn:hover { background: rgba(255, 255, 255, .1); }
.mk-nav .mk-nav-home { background: var(--mk-orange); font-weight: 600; padding: 0 16px; gap: 7px; }
.mk-nav .mk-nav-home svg { width: 16px; height: 16px; }
.mk-nav .mk-nav-home:hover { background: var(--mk-orange-deep); }
.mk-nav-live { color: #FFD3C0 !important; font-weight: 600 !important; }
.mk-nav-end { margin-left: auto; display: flex; align-items: stretch; }
/* Prioritas tautan supaya bilah tidak meluap di layar sempit: p2 mulai 1024px, p3 mulai 1200px. */
.mk-nav .mk-p2, .mk-nav .mk-p3 { display: none; }
@media (min-width: 1024px) { .mk-nav .mk-p2 { display: flex; } }
@media (min-width: 1200px) { .mk-nav .mk-p3 { display: flex; } }
@media (max-width: 767.98px) { .mk-nav { display: none; } }

/* Menu turun "Kategori": terbuka saat disorot/difokus (desktop) atau diklik (tablet). */
.mk-nav-item { position: relative; display: flex; }
.mk-dd {
    position: absolute; top: 100%; left: 0; z-index: 60; width: 600px; max-width: calc(100vw - 48px);
    background: #FFFFFF; color: var(--mk-ink); border: 1px solid var(--mk-line); border-top: 0;
    border-radius: 0 0 var(--mk-radius) var(--mk-radius); box-shadow: var(--mk-shadow);
    padding: 14px 16px; display: none;
    grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 20px;
}
.mk-nav-item:hover > .mk-dd, .mk-nav-item:focus-within > .mk-dd, .mk-nav-item.is-open > .mk-dd { display: grid; }
.mk-dd-h { display: block; padding: 4px 0; font-size: 12.5px; font-weight: 700; color: var(--mk-navy) !important; background: transparent !important; }
.mk-dd-h:hover { color: var(--mk-orange-text) !important; }
.mk-dd-s { display: block; padding: 2px 0; font-size: 12px; font-weight: 400; color: var(--mk-muted) !important; background: transparent !important; }
.mk-dd-s:hover { color: var(--mk-orange-text) !important; }
.mk-dd-all { grid-column: 1 / -1; margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--mk-line); font-size: 12.5px; font-weight: 600; color: var(--mk-orange-text) !important; background: transparent !important; }

/* Bahasa di ujung kanan bilah navy. Id & kelas Tailwind panel dipertahankan
   karena storefront.js membuka/menutupnya lewat kelas hidden/opacity-0/scale-95. */
.mk-lang { position: relative; display: flex; }
.mk-lang > button { gap: 5px; }
.mk-lang .dropdown-menu { text-align: left; }

/* ---- 4. HERO -------------------------------------------------------------- */
.mk-hero { max-width: var(--mk-wrap); margin: 14px auto 0; padding: 0 var(--mk-gutter); display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); align-items: stretch; }
@media (min-width: 1024px) { .mk-hero--cats { grid-template-columns: 200px minmax(0, 1fr); } }
@media (min-width: 1280px) {
    .mk-hero--side { grid-template-columns: minmax(0, 1fr) 214px; }
    .mk-hero--cats.mk-hero--side { grid-template-columns: 200px minmax(0, 1fr) 214px; }
}
@media (max-width: 767.98px) { .mk-hero { padding: 0; margin-top: 10px; } }

/* Panel kategori kiri (desktop). */
.mk-catpanel {
    display: none; background: #FFFFFF; border: 1px solid var(--mk-line); border-radius: var(--mk-radius);
    box-shadow: 0 3px 14px -8px rgba(19, 62, 104, .18); padding: 6px; height: 214px; overflow: hidden; flex-direction: column;
}
@media (min-width: 1024px) { .mk-catpanel { display: flex; } }
.mk-catrow {
    display: flex; align-items: center; gap: 8px; flex: 1 1 0; min-height: 0; padding: 0 8px;
    border-radius: 8px; color: var(--mk-navy); font-size: 12px; font-weight: 500; text-decoration: none;
    transition: background-color .14s ease, color .14s ease;
}
.mk-catrow:hover { background: var(--mk-tile); color: var(--mk-orange-text); }
.mk-catrow svg { flex: 0 0 auto; }
.mk-catrow .ic { color: var(--mk-orange); width: 16px; height: 16px; }
.mk-catrow .nm { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-catrow .ch { color: #A3AFBC; width: 12px; height: 12px; }
.mk-catrow--all { color: var(--mk-orange-text); font-weight: 600; }

/* Carousel. */
.mk-car { position: relative; min-width: 0; }
.mk-car-track {
    position: relative; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
    scroll-behavior: smooth; border-radius: 14px; scrollbar-width: none; -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
}
.mk-car-track::-webkit-scrollbar { display: none; }
.mk-slide {
    position: relative; flex: 0 0 100%; scroll-snap-align: center; height: 214px;
    display: grid; grid-template-columns: 1.08fr 1fr; border-radius: 14px; overflow: hidden; color: #FFFFFF; text-decoration: none;
}
@media (max-width: 767.98px) {
    .mk-car-track { padding: 0 var(--mk-gutter); scroll-padding: 0 var(--mk-gutter); gap: 8px; border-radius: 0; }
    .mk-slide { flex-basis: 88%; height: 150px; border-radius: 12px; }
    .mk-car-track:has(> .mk-slide:only-child) .mk-slide { flex-basis: 100%; }
}
/* Padding kiri lebar di desktop: menyisakan ruang untuk panah carousel (30px + 10px) supaya tidak menimpa teks. */
.mk-slide-l {
    position: relative; background: var(--mk-orange); padding: 20px 18px 20px 50px;
    display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 9px; z-index: 1;
}
.mk-slide-r {
    position: relative; background: var(--mk-navy); padding: 16px 14px;
    display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 4px;
}
.mk-label { font-size: 12px; font-weight: 500; line-height: 1.2; color: #FFFFFF; text-transform: none; letter-spacing: 0; }
.mk-title {
    font-family: var(--mk-font); font-weight: 800; font-size: clamp(18px, 1.7vw, 24px); line-height: 1.15;
    letter-spacing: -0.02em; color: #FFFFFF; text-wrap: balance; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.mk-sub { font-size: 11.5px; font-weight: 500; line-height: 1.45; color: #FFFFFF; max-width: 30ch; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mk-code {
    display: inline-block; padding: 5px 12px; border: 2px dashed rgba(255, 255, 255, .85); border-radius: 10px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 800; font-size: 18px; letter-spacing: .06em; color: #FFFFFF;
    max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Tombol pil. */
.mk-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 5px;
    height: 34px; padding: 0 20px; border: 0; border-radius: 999px; cursor: pointer; text-decoration: none; white-space: nowrap;
    font-family: var(--mk-font); font-size: 12px; font-weight: 700; letter-spacing: .01em; color: #FFFFFF;
    transition: background-color .16s ease, box-shadow .16s ease, transform .12s ease;
}
.mk-btn--navy { background: var(--mk-navy); }
.mk-btn--navy:hover { background: var(--mk-navy-deep); box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .5); }
.mk-btn--or { background: var(--mk-orange-btn); }
.mk-btn--or:hover { background: var(--mk-orange-deep); box-shadow: 0 6px 14px -6px rgba(242, 101, 34, .7); }
.mk-btn--sm { height: 26px; padding: 0 12px; font-size: 11px; }
.mk-pill { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px; background: var(--mk-orange-btn); color: #FFFFFF; font-size: 11px; font-weight: 700; line-height: 1.2; letter-spacing: .01em; }
.mk-pill small { font-size: inherit; opacity: .9; font-weight: 600; }
.mk-big {
    font-weight: 800; font-size: clamp(40px, 4.2vw, 58px); line-height: 1; letter-spacing: -0.04em;
    color: var(--mk-yellow); font-variant-numeric: tabular-nums; margin: 1px 0 0;
}
.mk-big--sm { font-size: clamp(30px, 3.2vw, 42px); }
.mk-big small { font-size: .42em; letter-spacing: 0; margin-right: 3px; font-weight: 700; }
.mk-line { font-size: 13px; font-weight: 700; line-height: 1.25; color: #FFFFFF; margin: 0; }
.mk-line--soft { font-size: 11px; font-weight: 500; color: rgba(255, 255, 255, .82); }
.mk-line b { font-variant-numeric: tabular-nums; color: var(--mk-yellow); }

/* Hiasan (tas belanja, pengeras suara, daun) — murni dekoratif. Skala .78 mengecilkan ukuran
   sebaris yang tertulis di markup tanpa mengubah markup-nya. */
.mk-deco { position: absolute; pointer-events: none; z-index: 0; scale: .78; }
.mk-deco svg { width: 100%; height: 100%; display: block; }
/* Hiasan besar & teks sekunder disembunyikan di ponsel supaya slide 150px tidak sesak; semua hiasan di
   panel kiri ikut disembunyikan karena menimpa judul (hanya daun kecil di panel navy yang tetap). */
@media (max-width: 767.98px) { .mk-hide-m, .mk-deco--lg, .mk-slide-l .mk-deco { display: none !important; } }

/* Slide gambar unggahan admin. */
.mk-slide--img { display: block; background: var(--mk-navy); }
.mk-slide--img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Panah & titik carousel. */
.mk-car-btn {
    position: absolute; top: 50%; z-index: 5; width: 30px; height: 30px; margin-top: -15px; padding: 0;
    display: flex; align-items: center; justify-content: center;
    border: 0; border-radius: 50%; background: rgba(13, 47, 82, .38); color: #FFFFFF; cursor: pointer;
    backdrop-filter: blur(2px); transition: background-color .16s ease;
}
.mk-car-btn svg { width: 15px; height: 15px; }
.mk-car-btn:hover { background: rgba(13, 47, 82, .7); }
.mk-car-btn--prev { left: 10px; }
.mk-car-btn--next { right: 10px; }
@media (max-width: 767.98px) { .mk-car-btn { display: none; } }
.mk-dots { position: absolute; left: 0; right: 0; bottom: 9px; z-index: 5; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.mk-dot {
    pointer-events: auto; width: 6px; height: 6px; padding: 0; border: 0; border-radius: 999px;
    background: rgba(255, 255, 255, .5); cursor: pointer; transition: width .2s ease, background-color .2s ease;
}
.mk-dot.is-on { width: 16px; background: #FFFFFF; }
.mk-dot:hover { transform: none; }
@media (max-width: 767.98px) { .mk-dots { bottom: 6px; } .mk-dot { width: 5px; height: 5px; } .mk-dot.is-on { width: 13px; } }

/* Dua kartu promo di kanan hero (desktop lebar). */
.mk-side { display: none; flex-direction: column; gap: 10px; height: 214px; }
@media (min-width: 1280px) { .mk-side { display: flex; } }
.mk-sidecard {
    position: relative; flex: 1 1 0; min-height: 0; display: flex; align-items: center; justify-content: space-between; gap: 4px;
    padding: 10px 8px 10px 14px; border-radius: 12px; overflow: hidden; text-decoration: none; color: var(--mk-navy);
    transition: box-shadow .18s ease;
}
.mk-sidecard:hover { box-shadow: var(--mk-shadow); }
.mk-sidecard--peach { background: var(--mk-peach); }
.mk-sidecard--sky { background: var(--mk-sky); }
.mk-sidecard-tx { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-width: 0; flex: 1 1 auto; }
.mk-sidecard-t { font-size: 13px; font-weight: 700; line-height: 1.25; color: var(--mk-navy); margin: 0; }
.mk-sidecard-n { font-size: 10.5px; font-weight: 500; line-height: 1.3; color: #4A5A6E; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mk-sidecard-img { flex: 0 0 66px; height: 100%; display: flex; align-items: center; justify-content: center; }
.mk-sidecard-img img { max-width: 100%; max-height: 80px; object-fit: contain; mix-blend-mode: multiply; }
.mk-sidecard-ph { width: 48px; height: 48px; border-radius: 12px; background: rgba(19, 62, 104, .08); color: var(--mk-navy); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; }

/* ---- 5. KATEGORI (ubin / bulat) ------------------------------------------- */
.mk-cats { max-width: var(--mk-wrap); margin: 14px auto 0; padding: 0 var(--mk-gutter); }
.mk-cats-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; }
/* mk-cat--m: hanya ponsel/tablet (baris bergulir). mk-cat--d: hanya desktop ("Semua Kategori"). */
/* Dua kelas (0,2,0): .mk-cat { display:flex } didefinisikan SETELAH ini dan akan menang bila kekhususannya sama. */
.mk-cats-grid .mk-cat--d { display: none; }
@media (min-width: 1024px) { .mk-cats-grid .mk-cat--m { display: none; } .mk-cats-grid .mk-cat--d { display: flex; } }
.mk-cat {
    display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 5px;
    padding: 10px 6px 8px; background: var(--mk-tile); border-radius: var(--mk-radius);
    text-align: center; text-decoration: none; color: var(--mk-navy);
    transition: background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.mk-cat:hover { background: #FFFFFF; box-shadow: var(--mk-shadow); transform: translateY(-1px); }
.mk-cat-ico { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; color: var(--mk-navy); }
.mk-cat-ico svg { width: 32px; height: 32px; fill: rgba(242, 101, 34, .3); stroke-width: 1.5; }
.mk-cat-ico img { width: 30px; height: 30px; object-fit: contain; }
.mk-cat-name { font-size: 11.5px; font-weight: 500; line-height: 1.25; color: var(--mk-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 1023.98px) {
    .mk-cats { padding: 0 var(--mk-gutter); margin-top: 12px; }
    .mk-cats-grid { display: flex; overflow-x: auto; gap: 8px; padding-bottom: 2px; scrollbar-width: none; -ms-overflow-style: none; }
    .mk-cats-grid::-webkit-scrollbar { display: none; }
    .mk-cat { flex: 0 0 auto; width: 64px; padding: 0; background: transparent; gap: 5px; }
    .mk-cat:hover { background: transparent; box-shadow: none; transform: none; }
    .mk-cat-ico { width: 48px; height: 48px; border-radius: 50%; background: var(--mk-tile); }
    .mk-cat-ico svg { width: 24px; height: 24px; }
    .mk-cat-ico img { width: 26px; height: 26px; }
    .mk-cat-name { font-size: 10.5px; }
}

/* ---- 6. BAGIAN & JUDUL ----------------------------------------------------- */
.mk-sec { max-width: var(--mk-wrap); margin: 20px auto 0; padding: 0 var(--mk-gutter); }
@media (max-width: 767.98px) { .mk-sec { margin-top: 16px; } }
.mk-sec-hd { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.mk-sec-title { font-size: 16px; font-weight: 700; line-height: 1.2; color: var(--mk-navy); margin: 0; }
.mk-sec-sub { font-size: 11.5px; font-weight: 400; color: var(--mk-muted); margin: 2px 0 0; }
.mk-sec-link { font-size: 12.5px; font-weight: 600; color: var(--mk-orange-text); white-space: nowrap; text-decoration: none; }
.mk-sec-link:hover { text-decoration: underline; }
@media (max-width: 767.98px) { .mk-sec-title { font-size: 15px; } }

/* ---- 7. PROMO HARIAN ------------------------------------------------------- */
.mk-deals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.mk-deal {
    position: relative; display: grid; grid-template-columns: 1.6fr 1fr; min-height: 84px;
    background: var(--mk-navy); color: #FFFFFF; border-radius: var(--mk-radius); overflow: hidden; text-decoration: none;
    transition: box-shadow .18s ease, transform .18s ease;
}
.mk-deal:hover { box-shadow: var(--mk-shadow); transform: translateY(-1px); }
.mk-deal-l { position: relative; z-index: 2; padding: 10px 4px 10px 14px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 4px; min-width: 0; }
.mk-deal-t { font-size: 14px; font-weight: 700; line-height: 1.15; color: #FFFFFF; margin: 0; white-space: nowrap; }
.mk-deal-n { font-size: 10.5px; line-height: 1.3; color: rgba(255, 255, 255, .78); margin: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-deal-off { font-size: 11px; font-weight: 700; color: var(--mk-yellow); line-height: 1.1; }
.mk-deal-r {
    position: relative; margin-left: -26%; background: var(--mk-orange);
    clip-path: polygon(26% 0, 100% 0, 100% 100%, 0 100%);
    display: flex; align-items: center; justify-content: center; padding-left: 22%;
}
.mk-deal-r img { max-width: 74%; max-height: 58px; object-fit: contain; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .28)); }
.mk-deal-r .mk-deal-ph { width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .22); color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; }
@media (max-width: 1023.98px) {
    .mk-deals { display: flex; overflow-x: auto; gap: 8px; scroll-snap-type: x mandatory; padding-bottom: 2px; scrollbar-width: none; -ms-overflow-style: none; }
    .mk-deals::-webkit-scrollbar { display: none; }
    .mk-deal { flex: 0 0 min(250px, 76%); scroll-snap-align: start; }
}

/* ---- 8. LAYANAN (makanan / digital / koin / driver) ------------------------ */
.mk-svc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 767.98px) { .mk-svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }
.mk-svc {
    display: flex; align-items: center; gap: 9px; padding: 8px 10px; min-width: 0;
    background: #FFFFFF; border: 1px solid var(--mk-line); border-radius: var(--mk-radius); text-decoration: none;
    transition: box-shadow .18s ease, border-color .18s ease;
}
.mk-svc:hover { border-color: #D4DDE7; box-shadow: var(--mk-shadow); }
.mk-svc-ic { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: var(--mk-orange-tint); color: var(--mk-orange-text); }
.mk-svc-ic svg { width: 17px; height: 17px; }
.mk-svc-t { display: block; font-size: 12px; font-weight: 600; line-height: 1.25; color: var(--mk-navy); }
.mk-svc-d { display: block; font-size: 10px; line-height: 1.3; color: var(--mk-muted); margin-top: 1px; }

/* ---- 9. VOUCHER (chip kode) ------------------------------------------------- */
.mk-vchips { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.mk-vchip {
    display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; cursor: pointer;
    background: var(--mk-orange-tint); color: var(--mk-orange-text); border: 1.5px dashed var(--mk-orange);
    font-family: var(--mk-font); font-size: 11.5px; font-weight: 700; transition: background-color .16s ease, color .16s ease;
}
.mk-vchip:hover { background: var(--mk-orange); color: #FFFFFF; }
.mk-vdetail { margin-top: 6px; padding: 9px 12px; max-width: 300px; background: #FFFFFF; border: 1px solid var(--mk-line); border-radius: 10px; font-size: 11.5px; color: var(--mk-muted); }

/* ---- 10. KATALOG: PENCARIAN, PIL SARING, GRID ------------------------------- */
.mk-catalog { background: #FFFFFF; padding: 20px 0 4px; }
.mk-cat-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 10px; margin-bottom: 10px; }
/* Susunan: judul (kiri) + kotak cari (kanan) sebaris; pil kategori & sub-kategori di baris sendiri selebar penuh.
   Pembungkus kanan di markup dibuat "display: contents" supaya anak-anaknya ikut diatur di sini. */
.mk-cat-head > div:last-child { display: contents; }
.mk-cat-head .mk-livesearch { order: 2; margin-left: auto; }
.mk-cat-head .mk-filters { order: 3; flex: 0 0 100%; }
.mk-cat-head #sub-category-bar { order: 4; flex: 0 0 100%; justify-content: flex-start; margin-top: 0; }
.mk-livesearch {
    width: 100%; max-width: 280px; height: 34px; padding: 0 14px; background: #FFFFFF; color: var(--mk-ink);
    border: 1.5px solid var(--mk-line); border-radius: 999px; font-family: var(--mk-font); font-size: 12px;
}
.mk-livesearch:focus { border-color: var(--mk-orange); outline: none; }
.mk-filters { display: flex; flex-wrap: wrap; gap: 6px; }
/* Pil memakai kelas bg-brand yang dipasang/dilepas storefront.js; nilainya ditimpa
   di sini (navy, 10,9:1 dengan teks putih), bukan di JS. */
body.mk .cat-parent-btn, body.mk .cat-sub-btn {
    font-family: var(--mk-font); font-size: 11.5px; font-weight: 600; padding: 5px 12px; border-radius: 999px;
    background: #FFFFFF; border: 1.5px solid var(--mk-line); color: var(--mk-ink);
}
body.mk .cat-parent-btn:hover, body.mk .cat-sub-btn:hover { border-color: var(--mk-orange); color: var(--mk-orange-text); }
body.mk .cat-parent-btn.bg-brand, body.mk .cat-sub-btn.bg-brand {
    background-color: var(--mk-navy) !important; border-color: var(--mk-navy) !important; color: #FFFFFF !important;
}
body.mk .cat-parent-btn.bg-brand:hover, body.mk .cat-sub-btn.bg-brand:hover { color: #FFFFFF !important; }

.mk-grid { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mk-grid--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
@media (min-width: 640px) { .mk-grid, .mk-grid--compact { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; } }
@media (min-width: 900px) { .mk-grid, .mk-grid--compact { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .mk-grid, .mk-grid--compact { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .mk-grid, .mk-grid--compact { grid-template-columns: repeat(7, minmax(0, 1fr)); } }

/* ---- 11. KARTU PRODUK ------------------------------------------------------- */
.mk-card.product-card {
    display: flex; flex-direction: column; position: relative; width: 100%; background: #FFFFFF; cursor: pointer;
    border: 1px solid var(--mk-line); border-radius: var(--mk-radius) !important; overflow: hidden;
    transition: box-shadow .18s ease, border-color .18s ease;
}
.mk-card.product-card:hover { border-color: #D4DDE7 !important; box-shadow: var(--mk-shadow); transform: none !important; }
.mk-card-media {
    position: relative; aspect-ratio: 1 / 1; margin: 6px 6px 0; padding: 8px; border-radius: 8px;
    background: var(--mk-tile); display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.mk-card-media img, .mk-card-media video { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .3s ease; }
.mk-card:hover .mk-card-media img { transform: scale(1.04); }
.mk-card-ph { width: 46%; display: flex; flex-direction: column; align-items: center; gap: 5px; opacity: .8; }
.mk-card-ph span { font-size: 7.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--mk-muted); text-align: center; }
.mk-card-off {
    position: absolute; top: 6px; left: 6px; z-index: 3; padding: 2px 6px; border-radius: 999px;
    background: var(--mk-orange-btn); color: #FFFFFF; font-size: 9.5px; font-weight: 700; line-height: 1.3;
}
.mk-card-ads { position: absolute; left: 6px; bottom: 6px; z-index: 3; padding: 2px 7px; border-radius: 999px; background: rgba(13, 47, 82, .78); color: #FFFFFF; font-size: 8.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.mk-card .btn-wishlist {
    position: absolute; top: 5px; right: 5px; z-index: 4; width: 26px; height: 26px; padding: 0;
    display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .95);
    border: 0; border-radius: 50% !important; box-shadow: 0 2px 6px rgba(19, 62, 104, .15) !important;
}
.mk-card .btn-wishlist svg { width: 14px; height: 14px; }
.mk-card .btn-wishlist .hidden { display: none; }
.mk-card-add {
    position: absolute; right: 6px; bottom: 6px; z-index: 4; width: 28px; height: 28px; padding: 0;
    display: flex; align-items: center; justify-content: center; border: 0; border-radius: 50%;
    background: var(--mk-orange-btn); color: #FFFFFF; cursor: pointer; box-shadow: 0 5px 12px -4px rgba(242, 101, 34, .65);
    transition: background-color .16s ease;
}
.mk-card-add svg { width: 14px; height: 14px; }
.mk-card-add:hover { background: var(--mk-orange-deep); }
.mk-card-bd { display: flex; flex-direction: column; flex: 1 1 auto; padding: 7px 9px 9px; gap: 3px; min-width: 0; }
.mk-card-t { font-size: 11.5px; font-weight: 500; line-height: 1.35; color: var(--mk-ink); margin: 0; min-height: 2.7em;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mk-card-t a { color: inherit; text-decoration: none; }
.mk-card-t a:hover { color: var(--mk-orange-text); }
/* Satu baris tetap: bagian "terjual" dipotong (…) bila sempit, supaya harga tiap kartu tetap sejajar. */
.mk-rate { display: flex; flex-wrap: nowrap; align-items: center; gap: 3px; min-height: 14px; font-size: 10px; color: var(--mk-muted); white-space: nowrap; overflow: hidden; }
.mk-rate > span { flex: 0 0 auto; }
.mk-rate > span:last-child:not(.mk-stars) { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* Bintang pecahan tanpa gambar: lapisan dasar abu (::before) + lapisan oranye (::after) yang dipotong selebar --r. */
.mk-stars { position: relative; display: inline-block; font-size: 10.5px; line-height: 1; letter-spacing: .3px; white-space: nowrap; }
.mk-stars::before { content: '★★★★★'; color: #D6DCE4; }
.mk-stars::after { content: '★★★★★'; position: absolute; left: 0; top: 0; width: var(--r, 0%); overflow: hidden; color: #F5A524; }
.mk-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 1px 6px; }
.mk-price-now { font-size: 13.5px; font-weight: 700; line-height: 1.2; color: var(--mk-navy); font-variant-numeric: tabular-nums; }
.mk-price-was { font-size: 10px; color: #657486; text-decoration: line-through; font-variant-numeric: tabular-nums; }
.mk-store-row { display: flex; align-items: center; gap: 4px; min-width: 0; font-size: 10px; color: var(--mk-muted); }
.mk-store-row .im-store-name { color: var(--mk-ink); font-weight: 500; }
.mk-ship { display: inline-flex; align-self: flex-start; padding: 1px 6px; border-radius: 5px; background: #E8F5EE; color: #1E7A4C; font-size: 9.5px; font-weight: 600; }
.mk-card-btn {
    margin-top: auto; width: 100%; height: 30px; border: 0; border-radius: 999px; cursor: pointer;
    background: var(--mk-orange-tint); color: var(--mk-orange-text); font-family: var(--mk-font); font-size: 11px; font-weight: 700;
    transition: background-color .16s ease, color .16s ease;
}
.mk-card-btn:hover { background: var(--mk-orange-btn); color: #FFFFFF; }
.mk-card-btn-wrap { margin-top: 4px; display: flex; }
/* Tombol bulat "+" menggantikan tombol pil di grid padat ponsel (3 kolom). */
.mk-card-add { display: none; }
.mk-grid--compact .mk-card-add { display: flex; }
.mk-grid--compact .mk-card-btn-wrap, .mk-grid--compact .mk-store-row, .mk-grid--compact .mk-ship { display: none; }
@media (min-width: 640px) {
    .mk-grid--compact .mk-card-add { display: none; }
    .mk-grid--compact .mk-card-btn-wrap { display: flex; }
    .mk-grid--compact .mk-store-row { display: flex; }
    .mk-grid--compact .mk-ship { display: inline-flex; }
}
@media (max-width: 639.98px) {
    .mk-card-bd { padding: 6px 7px 8px; }
    .mk-card-media { margin: 5px 5px 0; padding: 5px; }
    .mk-card-t { font-size: 11px; }
    .mk-price-now { font-size: 12.5px; }
    .mk-grid--compact .mk-card-off { top: 5px; left: 5px; font-size: 9px; padding: 2px 5px; }
    .mk-stars { font-size: 10px; letter-spacing: .2px; }
    .mk-rate { gap: 2px; font-size: 9.5px; }
}

/* ---- 12. BANNER JASA / BAGIAN LAIN: harmonisasi warna lama ------------------ */
body.mk .im-or-link:hover { color: var(--mk-orange-text); }
body.mk .im-btn-or { background: var(--mk-orange-btn); border-color: var(--mk-orange-btn); }
body.mk .im-btn-or:hover { background: var(--mk-orange-deep); border-color: var(--mk-orange-deep); }
body.mk .bg-fog { background-color: #F6F8FA; }
body.mk .border-line { border-color: var(--mk-line); }
body.mk .im-tab.border-brand { border-color: var(--mk-orange) !important; }

/* ---- 13. KAKI HALAMAN NAVY -------------------------------------------------- */
.mk-footer { background: var(--mk-navy); color: rgba(255, 255, 255, .82); margin-top: 30px; padding: 30px 0 0; }
.mk-footer-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(4, minmax(0, 1fr)); gap: 24px; padding-bottom: 22px; }
@media (max-width: 1023.98px) { .mk-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mk-footer-brand { grid-column: 1 / -1; } }
.mk-footer h4 { margin: 0 0 9px; color: #FFFFFF; font-size: 12.5px; font-weight: 700; letter-spacing: 0; text-transform: none; }
.mk-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 12px; }
.mk-footer a { color: rgba(255, 255, 255, .82); text-decoration: none; transition: color .16s ease; }
.mk-footer a:hover { color: var(--mk-yellow); }
.mk-footer-brand p { font-size: 11.5px; line-height: 1.6; max-width: 32ch; margin: 10px 0 12px; }
.mk-footer .mk-brand { color: #FFFFFF; }
.mk-footer .mk-mono { background: var(--mk-orange); }
.mk-footer-bar p { margin: 0; }
/* Ukuran kecil untuk nama brand di menu samping. */
.mk-wm-sm.mk-wordmark--img { height: 24px; }
.mk-wm-sm.mk-wordmark--teks { font-size: 19px; }
.mk-footer .mk-wordmark--teks { color: #FFFFFF; }
.mk-footer .mk-wordmark--putih { filter: brightness(0) invert(1); }
.mk-footer .mk-wordmark--chip { background: #FFFFFF; padding: 4px 10px; border-radius: 8px; height: 34px; box-sizing: border-box; }
.mk-footer .mk-mark-img { background: #FFFFFF; border-radius: 10px; padding: 3px; height: 38px; max-width: 48px; }
.mk-footer-cta { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 16px; border-radius: 999px; background: var(--mk-orange-btn); color: #FFFFFF !important; font-size: 12px; font-weight: 700; }
.mk-footer-cta:hover { background: var(--mk-orange-deep); color: #FFFFFF !important; }
.mk-footer-bar { border-top: 1px solid rgba(255, 255, 255, .14); padding: 12px 0; font-size: 11px; color: rgba(255, 255, 255, .7); }
.mk-footer-bar .mk-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; }

/* ---- 14. NAVIGASI BAWAH PONSEL (tombol keranjang melayang) ------------------ */
.mk-bn-spacer { height: 62px; }
@media (min-width: 768px) { .mk-bn-spacer, .mk-bn { display: none; } }
.mk-bn {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #FFFFFF; border-top: 1px solid var(--mk-line);
    box-shadow: 0 -6px 18px rgba(19, 62, 104, .08); padding-bottom: env(safe-area-inset-bottom, 0px);
}
.mk-bn-grid { display: grid; grid-template-columns: 1fr 1fr 70px 1fr 1fr; max-width: 520px; margin: 0 auto; height: 52px; align-items: stretch; }
.mk-bn-it {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    padding: 0; background: transparent; border: 0; border-radius: 0; cursor: pointer; text-decoration: none;
    font-family: var(--mk-font); font-size: 10px; font-weight: 500; color: var(--mk-muted);
}
.mk-bn-it svg { width: 21px; height: 21px; }
.mk-bn-it.is-on { color: var(--mk-orange-text); font-weight: 600; }
.mk-bn-it .mk-badge { top: 4px; right: calc(50% - 20px); }
.mk-bn-fab-cell { position: relative; display: flex; justify-content: center; }
.mk-bn-fab {
    position: absolute; top: -20px; width: 50px; height: 50px; padding: 0; border: 3px solid #FFFFFF; border-radius: 50%;
    background: var(--mk-orange); color: #FFFFFF; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 16px -6px rgba(242, 101, 34, .7);
}
.mk-bn-fab svg { width: 23px; height: 23px; }
.mk-bn-fab:hover { background: var(--mk-orange-deep); }
.mk-bn-fab .mk-badge { top: -3px; right: -5px; background: var(--mk-navy); }

/* ---- 15. PONSEL: HEADER ORANYE ------------------------------------------------ */
@media (max-width: 767.98px) {
    .mk-hdr { background: var(--mk-orange); border-bottom: 0; }
    .mk-hdr-in {
        display: grid; grid-template-columns: 1fr auto 1fr; grid-template-areas: "menu brand actions" "search search search";
        align-items: center; gap: 6px 6px; min-height: 0; padding: 8px var(--mk-gutter) 10px;
    }
    .mk-menu-btn { display: flex; grid-area: menu; justify-self: start; margin-left: -8px; }
    .mk-brand { grid-area: brand; justify-self: center; gap: 7px; color: #FFFFFF; }
    .mk-actions { grid-area: actions; justify-self: end; margin-left: 0; gap: 0; }
    .mk-search { grid-area: search; max-width: none; }
    .mk-act { color: #FFFFFF; min-width: 36px; padding: 0 6px; }
    .mk-act:hover { background: rgba(255, 255, 255, .16); color: #FFFFFF; }
    .mk-act--hide-m { display: none; }
    .mk-badge { background: var(--mk-navy); border-color: var(--mk-orange); }
    .mk-search-box { height: 38px; border: 0; border-radius: 10px; box-shadow: 0 4px 12px -6px rgba(0, 0, 0, .35); }
    .mk-search-box:focus-within { box-shadow: 0 0 0 3px rgba(255, 255, 255, .45); }
    .mk-search-box button { background: transparent; color: #8795A5; order: -1; width: 38px; }
    .mk-search-box button:hover { background: transparent; color: var(--mk-orange-text); }
    .mk-tagline { display: none; }
    /* Lambang di atas oranye: ubin putih bersudut membulat. */
    .mk-brand-mark { width: 30px; height: 30px; background: #FFFFFF; border-radius: 9px; }
    .mk-mark-img { height: 24px; max-width: 28px; }
    .mk-mono { width: 30px; height: 30px; border-radius: 9px; background: #FFFFFF; color: var(--mk-navy); font-size: 11px; }
    .mk-wordmark--img { height: 20px; max-width: 130px; }
    .mk-wordmark--teks { font-size: 18px; color: #FFFFFF; }
    .mk-hdr .mk-wordmark--putih { filter: brightness(0) invert(1); }
    .mk-hdr .mk-wordmark--chip { background: #FFFFFF; padding: 3px 8px; border-radius: 8px; height: 26px; box-sizing: border-box; }
}

/* ---- 16. PONSEL: TIPOGRAFI & JARAK HERO ---------------------------------------
   Harus DI SINI (setelah definisi dasar .mk-slide-l/.mk-title/dst.): pada
   kekhususan sama, urutan sumber yang menentukan. Slide ponsel setinggi 150px
   dan selebar ±88% layar, jadi tiap panel hanya ±160px. */
@media (max-width: 767.98px) {
    .mk-slide-l { padding: 12px 8px 12px 14px; gap: 5px; }
    .mk-slide-r { padding: 10px 6px; gap: 2px; }
    .mk-label { font-size: 10px; }
    .mk-title { font-size: 15.5px; line-height: 1.15; }
    .mk-sub { font-size: 10px; }
    .mk-btn { height: 28px; padding: 0 12px; font-size: 10px; }
    .mk-pill { padding: 3px 9px; font-size: 9.5px; }
    .mk-big { font-size: 36px; }
    .mk-big--sm { font-size: 26px; }
    .mk-line { font-size: 10.5px; }
    .mk-line--soft { font-size: 9px; }
    .mk-code { font-size: 12px; padding: 3px 8px; border-width: 1.5px; }
    .mk-sec-hd { margin-bottom: 7px; }
    /* Pil kategori katalog: satu baris yang bisa digeser (bukan 3 baris yang mendorong produk ke bawah). */
    .mk-cat-head > div:last-child { min-width: 0; }
    .mk-filters { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 2px; scrollbar-width: none; -ms-overflow-style: none; }
    .mk-filters::-webkit-scrollbar { display: none; }
    .mk-filters > button { flex: 0 0 auto; white-space: nowrap; }
    .mk-livesearch { max-width: none; }
}

/* Gerak dikurangi bila diminta sistem. */
@media (prefers-reduced-motion: reduce) {
    .mk-car-track { scroll-behavior: auto; }
    .mk-cat:hover, .mk-deal:hover { transform: none; }
}

/* Cetak: bilah navigasi & carousel tidak perlu. */
@media print { .mk-hdr, .mk-nav, .mk-bn, .mk-bn-spacer, .mk-announce, .mk-car-btn, .mk-dots { display: none !important; } }

/* ---- VISI & MISI (beranda, #origins) -----------------------------------------
   Menggantikan tiga tab "Origins & Philosophy" (2026-10-30). Isinya pendek, jadi semuanya terlihat sekaligus:
   kartu Visi beraksen oranye + butir Misi bernomor (satu kolom di ponsel, dua kolom di tablet/desktop).
   Warna: teks isi --mk-muted di atas putih 5,4:1; nomor putih di atas navy; teks Visi --mk-ink di atas --mk-orange-tint. */
body.mk .im-vm { background: #FFFFFF; border: 1px solid var(--mk-line); border-radius: 16px; padding: 18px 16px; display: grid; gap: 18px; }
body.mk .im-vm-tag { display: inline-block; margin: 0 0 8px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mk-orange-text); }
body.mk .im-vm-visi { background: var(--mk-orange-tint); border-left: 4px solid var(--mk-orange); border-radius: 12px; padding: 14px 16px; }
body.mk .im-vm-visi .im-vm-tag { margin-bottom: 6px; }
body.mk .im-vm-visi p { margin: 0; font-size: 14.5px; line-height: 1.65; font-weight: 600; color: var(--mk-ink); }
body.mk .im-vm-misi { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 10px; }
body.mk .im-vm-item { display: flex; align-items: flex-start; gap: 12px; padding: 13px 14px; background: #FFFFFF; border: 1px solid var(--mk-line); border-radius: 12px; }
body.mk .im-vm-no { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--mk-navy); color: #FFFFFF; font-size: 12px; font-weight: 700; line-height: 1; display: flex; align-items: center; justify-content: center; }
body.mk .im-vm-item > div { min-width: 0; }
body.mk .im-vm-item h3 { margin: 0 0 4px; font-size: 13.5px; line-height: 1.4; font-weight: 700; color: var(--mk-ink); }
body.mk .im-vm-item p { margin: 0; font-size: 12.5px; line-height: 1.6; color: var(--mk-muted); }
@media (min-width: 768px) {
    body.mk .im-vm { padding: 26px 28px; gap: 22px; }
    body.mk .im-vm-visi { padding: 16px 20px; }
    body.mk .im-vm-visi p { font-size: 16px; }
    body.mk .im-vm-misi { grid-template-columns: 1fr 1fr; gap: 12px; }
}
