/* assets/css/katalog.css — pelengkap produk.css & detail.css untuk versi Laravel.
   Dimuat paling akhir. Berisi: header katalog, tampilan grid/list, keranjang, toast, tampilan HP. */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
img { max-width: 100%; }
body.cart-open { overflow: hidden; }
body.has-cart { padding-bottom: 76px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 30; padding: 12px 0; }
.header-inner { display: flex; align-items: center; gap: 24px; }
.header-brand { display: flex; align-items: center; flex: 0 0 auto; }
.header-brand img { height: 36px; width: auto; display: block; }
.header-search { position: relative; flex: 1 1 320px; max-width: 460px; margin: 0; }
.header-search input { width: 100%; padding: 10px 44px 10px 14px; border: 1px solid #d1d5db; border-radius: 8px; font: inherit; font-size: 13px; outline: none; background: #fff; color: var(--ink); }
.header-search input:focus { border-color: var(--wine); }
.header-search button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; display: grid; place-items: center; background: none; border: 0; color: var(--muted); cursor: pointer; }
.header-search button svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; }
.header-right { margin-left: auto; }
.header-icon { background: none; border: 0; padding: 4px; cursor: pointer; display: inline-flex; }
.cart-badge { top: -4px; right: -6px; min-width: 16px; width: auto; padding: 0 4px; }

.promo-bar { background: var(--wine); color: #fff; font-size: 11px; font-weight: 600; text-align: center; padding: 8px 16px; }

/* ---------- Judul bagian ---------- */
.section-heading .num { flex: 0 0 auto; }
.hero-produk { gap: 24px; }
/* Banner di kanan judul: latar transparan (ilustrasi bawaan atau gambar dari admin) */
.hero-art { flex: 0 1 auto; width: auto; max-width: 54%; height: 190px; }
.hero-img { flex: 0 0 auto; width: auto; max-width: 54%; height: 190px; object-fit: contain; border-radius: 0; }

/* ---------- Pilih motor ---------- */
.filter-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) auto; }
.filter-group select:disabled { background: #f9fafb; color: #9ca3af; cursor: not-allowed; }

/* ---------- Kategori ----------
   Lebar satu kartu = lebar baris dibagi jumlah kategori, sehingga tanpa filter motor
   semua kartu pas satu baris. Saat motor dipilih lebar kartu TETAP SAMA; kategori
   bergeser ke kanan (sejajar kolom produk) dan bisa digeser ke samping. */
.kategori-row { container-type: inline-size; --kat-gap: 10px; }
.kategori-inner.has-motor { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; align-items: stretch; }
.kat-scroller { position: relative; min-width: 0; }
.kategori-grid { display: flex; gap: var(--kat-gap); }
a.kat-item { text-decoration: none; color: var(--ink); }
.kategori-grid .kat-item { flex: 0 0 94px; flex-basis: calc((100cqw - (var(--kat-n) - 1) * var(--kat-gap)) / var(--kat-n)); min-width: 0; height: 90px; padding: 0 4px; gap: 8px; }
.kategori-grid .kat-item span { font-size: 12px; line-height: 1.25; max-width: 100%; }
a.kat-item.is-empty:not(.active) { opacity: .45; }

.has-motor .kategori-grid { overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; }
.has-motor .kategori-grid::-webkit-scrollbar { display: none; }
.kat-nav { position: absolute; top: 50%; z-index: 2; width: 30px; height: 30px; margin-top: -15px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); font-size: 18px; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgb(0 0 0 / 12%); }
.kat-nav:hover { border-color: var(--wine); color: var(--wine); }
.kat-nav.prev { left: -12px; }
.kat-nav.next { right: -12px; }

/* Blok kiri saat motor dipilih: foto motor + informasi kecocokan */
.kat-motor { position: relative; display: flex; align-items: center; gap: 12px; height: 90px; min-width: 0; padding: 10px 30px 10px 10px; border: 1px solid var(--wine); border-radius: 12px; background: #fef2f2; }
.kat-motor img { flex: 0 0 auto; width: 68px; height: 68px; object-fit: cover; border-radius: 8px; background: #fff; }
/* Foto motor berlatar transparan: tampil utuh tanpa kotak putih di belakangnya */
.kat-motor img.is-cutout { width: 72px; height: 62px; object-fit: contain; border-radius: 0; background: transparent; }
.compat-picked img.is-cutout { width: 84px; height: 64px; object-fit: contain; border-radius: 0; background: transparent; }
.sk-img-box img.is-cutout { object-fit: contain; border-radius: 0; }
.kat-motor-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kat-motor-info small { font-size: 11px; font-weight: 700; color: var(--wine); }
.kat-motor-info b { font-size: 13px; line-height: 1.25; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kat-motor-info span { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kat-motor-x { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; color: var(--wine); font-size: 18px; line-height: 1; text-decoration: none; }
.kat-motor-x:hover { background: var(--wine); color: #fff; }

/* ---------- Sidebar filter ---------- */
/* Judul "Filter Produk" dan "Hasil Produk" satu garis; kartu filter dan kartu
   produk mulai dan berakhir sejajar (pagination ada di bawah keduanya). */
.produk-layout { align-items: stretch; }
.col-head { min-height: 40px; margin: 0 0 16px; }
.produk-head.col-head { margin-bottom: 16px; }
.filter-col { display: flex; flex-direction: column; min-width: 0; }
.filter-col .sidebar { flex: 1 1 auto; gap: 0; min-height: 0; }
.produk-main { display: flex; flex-direction: column; min-width: 0; }
.filter-toggle { display: none; margin-left: auto; width: 32px; height: 32px; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); cursor: pointer; }
.filter-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .2s; }
.filter-col.is-collapsed .filter-toggle svg { transform: rotate(-90deg); }
/* Daftar merek mengisi sisa tinggi kartu filter */
#filter-form { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
.filter-merek { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
.produk-pagination { margin: 0 0 40px; padding-left: 292px; }
.produk-pagination .pagination { margin-top: 0; }
.checkbox-list label span { flex: 1; }
.checkbox-list label small { color: #9ca3af; font-size: 11px; }
#merek-list { flex: 1 1 0; min-height: 190px; overflow-y: auto; padding-right: 4px; }
.filter-none { font-size: 12px; color: var(--muted); margin: 0; }
/* Penggeser harga: garis tipis, kedua tombol bulat tepat di tengah garis dan tidak keluar dari ujungnya */
.range-slider { height: 4px; margin: 20px 0 18px; border-radius: 999px; background: #e5e7eb; }
.range-slider .progress { border-radius: 999px; }
.range-slider input[type="range"] { top: 50%; left: 0; width: 100%; height: 18px; margin: -9px 0 0; padding: 0; appearance: none; -webkit-appearance: none; }
.range-slider input[type="range"]::-webkit-slider-runnable-track { height: 18px; background: none; border: 0; }
.range-slider input[type="range"]::-moz-range-track { height: 18px; background: none; border: 0; }
.range-slider input[type="range"]::-webkit-slider-thumb { box-sizing: border-box; width: 18px; height: 18px; margin-top: 0; border: 2px solid var(--wine-dark); box-shadow: 0 1px 3px rgb(0 0 0 / 18%); }
.range-slider input[type="range"]::-moz-range-thumb { box-sizing: border-box; width: 18px; height: 18px; border: 2px solid var(--wine-dark); box-shadow: 0 1px 3px rgb(0 0 0 / 18%); }
.range-slider input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgb(127 29 29 / 18%); }
.range-slider input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px rgb(127 29 29 / 18%); }
.price-labels { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; color: var(--ink); }
.bantuan-box { margin-top: 20px; }
.bantuan-btn { display: block; background: #fff; border: 1px solid var(--wine); color: var(--wine); padding: 10px; border-radius: 8px; font-weight: 600; font-size: 13px; text-decoration: none; }
.bantuan-btn:hover { background: #fff5f5; }

/* ---------- Kepala hasil ---------- */
.produk-head { flex-wrap: wrap; gap: 12px; }
.sort-box { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.count-produk { font-size: 13px; color: var(--muted); }
.sort-label { font-size: 13px; display: flex; align-items: center; gap: 8px; }
.sort-box select { background: #fff; font-family: inherit; color: var(--ink); }
.view-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.view-toggle a { width: 34px; height: 32px; display: grid; place-items: center; color: var(--muted); }
.view-toggle a.on { background: var(--wine-dark); color: #fff; }
.view-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }

/* ---------- Kartu produk ---------- */
.produk-card { position: relative; padding: 14px; gap: 14px; border-radius: 14px; height: auto; min-width: 0; }
.produk-thumb { position: relative; display: block; flex: 0 0 auto; background: transparent; border-radius: 10px; overflow: hidden; }
.produk-card .produk-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 0; background: none; }
.produk-disc { position: absolute; top: 8px; left: 8px; background: #b91c1c; color: #fff; font-size: 10px; font-weight: 800; padding: 3px 6px; border-radius: 4px; }
.produk-info { min-width: 0; }
.produk-brand { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 4px; }
.produk-title { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.produk-title a { color: inherit; text-decoration: none; }
.produk-title a:hover { color: var(--wine); }
/* Baris pertama kartu: SKU di kiri, status stok di kanan */
.produk-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; min-height: 15px; margin-bottom: 6px; }
.produk-sku { min-width: 0; font-size: 11px; color: var(--muted); letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.produk-card .produk-meta .stock-status { flex: 0 0 auto; margin: 0; padding: 0; font-size: 11px; white-space: nowrap; }
.produk-subtitle { margin: 4px 0 8px; }
.produk-price { font-size: 17px; margin-top: 6px; color: var(--ink); }
.produk-price s { display: inline-block; white-space: nowrap; font-size: 12px; font-weight: 500; color: #9ca3af; margin-left: 6px; }
.stock-status.is-out { color: #b45309; }
.produk-card .stock-status { margin-top: 4px; font-size: 11px; }
.btn-cart[disabled], .btn-red[disabled] { opacity: .45; cursor: not-allowed; }
.btn-detail:hover { text-decoration: underline; }

/* Kotak (grid): semua kartu sama tinggi, isi tiap kartu sejajar dengan kartu di sebelahnya */
.produk-list.grid-view { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); grid-auto-rows: 1fr; align-items: stretch; }
.grid-view .produk-card { flex-direction: column; }
.grid-view .produk-thumb { aspect-ratio: 1; width: 100%; }
.grid-view .produk-info { flex: 1; }
.grid-view .produk-brand { min-height: 13px; }
.grid-view .produk-title { min-height: 2.8em; line-height: 1.4; }
.grid-view .produk-price s { display: block; margin: 2px 0 0; }
.grid-view .produk-meta .stock-status { margin-top: 0; padding-top: 0; }
.grid-view .produk-actions { min-width: 0; flex-direction: column; align-items: stretch; gap: 8px; }
.grid-view .btn-detail { text-align: center; }

/* Daftar (list) */
.produk-list.list-view { grid-template-columns: 1fr; }
.list-view .produk-card { align-items: center; padding: 16px; gap: 20px; }
.list-view .produk-thumb { width: 132px; height: 132px; }
.list-view .produk-title { font-size: 16px; }
.list-view .produk-actions { min-width: 150px; gap: 10px; align-self: stretch; justify-content: center; }

/* ---------- Kosong ---------- */
.empty-state { text-align: center; padding: 48px 24px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.empty-state h3 { margin: 0 0 8px; color: var(--ink); }
.empty-state p { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.empty-state .btn-primary { display: inline-flex; align-items: center; text-decoration: none; }

/* ---------- Bar keranjang & laci keranjang ---------- */
.sticky-keranjang:not(.show) { visibility: hidden; }
.sticky-keranjang { transition: transform .3s cubic-bezier(.4, 0, .2, 1), visibility .3s; }
.sk-container { gap: 16px; }
.sk-total { align-items: flex-start; }
.sk-action { gap: 16px; }
.sk-link { background: none; border: 0; color: #fff; font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }
.btn-cart-sticky.is-disabled, .cart-order.is-disabled { opacity: .5; }

.cart-backdrop { position: fixed; inset: 0; background: rgb(0 0 0 / 45%); z-index: 60; }
.cart-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(100%, 400px); background: #fff; z-index: 61; display: flex; flex-direction: column; box-shadow: -8px 0 32px rgb(0 0 0 / 18%); }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.cart-head h2 { margin: 0; font-size: 17px; }
.cart-x { background: none; border: 0; font-size: 28px; line-height: 1; cursor: pointer; color: var(--muted); padding: 0 4px; }
.cart-items { flex: 1; overflow-y: auto; padding: 4px 20px; }
.cart-empty { padding: 24px 20px; color: var(--muted); font-size: 14px; text-align: center; margin: 0; }
.cart-row { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-info b { display: block; font-size: 13px; line-height: 1.4; }
.cart-info small { color: var(--muted); font-size: 12px; }
.cart-qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; align-self: start; }
.cart-qty button { width: 30px; height: 30px; background: none; border: 0; font-size: 16px; cursor: pointer; color: var(--ink); }
.cart-qty span { min-width: 26px; text-align: center; font-size: 13px; font-weight: 600; }
.cart-del { grid-column: 1 / -1; justify-self: start; background: none; border: 0; padding: 0; color: #b91c1c; font-size: 12px; cursor: pointer; }
.cart-foot { padding: 16px 20px 20px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.cart-sum { display: flex; justify-content: space-between; font-size: 15px; }
.cart-order { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.cart-clear { background: none; border: 0; color: var(--muted); font-size: 12px; cursor: pointer; text-decoration: underline; }
.cart-note { margin: 0; font-size: 11px; color: var(--muted); line-height: 1.5; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 20px); background: #111827; color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 13px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 70; white-space: nowrap; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Footer ---------- */
.katalog-footer { background: var(--wine-dark); color: #fff; padding: 24px 0; }
.katalog-footer .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.katalog-footer img { height: 34px; background: #fff; border-radius: 6px; padding: 4px 8px; }
.katalog-footer p { margin: 0; font-size: 12px; opacity: .85; }
.features-bar { margin-bottom: 0; }

/* ---------- Halaman detail ---------- */
.detail-page .breadcrumb { padding: 24px 0 0; }
.crumb-current { color: var(--ink); font-weight: 500; margin: 0 !important; }
.gallery-disc { position: absolute; top: 12px; left: 12px; background: #b91c1c; color: #fff; font-size: 10px; font-weight: 800; padding: 4px 8px; border-radius: 4px; }
button.thumb-item { font: inherit; }
/* Latar gambar produk transparan (mengikuti warna kartu/halaman) */
.gallery-main, .thumb-item { background: transparent; }
.match-ask { background: #f9fafb; border-color: var(--line); }
.match-ask .match-text h4 { color: var(--ink); }
.match-text a { text-decoration: underline; }
.action-box .stock-status { display: flex; align-items: center; gap: 6px; }
a.btn-block { display: flex; align-items: center; justify-content: center; text-decoration: none; text-align: center; }
.action-features strong { color: var(--ink); }
a.service-item { text-decoration: none; color: inherit; }
.btn-wa { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.spec-table td { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.spec-table td:last-child { font-weight: 600; }
.spec-table tr:last-child td { border-bottom: 0; }
.tab-content { overflow-wrap: anywhere; }

/* ---------- Tambahan sesuai rancangan: penegasan kecocokan motor ---------- */
.why-motor { background: none; border: 0; padding: 0; font: inherit; font-size: 12px; font-weight: 500; color: var(--muted); cursor: pointer; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; }
.why-motor:hover { color: var(--wine); }
.why-motor-text { margin: -8px 0 16px; max-width: 720px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.motor-verified { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; }
.mv-left { display: flex; align-items: center; gap: 8px 20px; flex-wrap: wrap; }
.mv-ok { display: inline-flex; align-items: center; gap: 6px; color: #059669; font-weight: 600; }
.mv-change { color: var(--wine); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.mv-right { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 500; }
.mv-shield { flex: 0 0 auto; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: #ecfdf5; color: #059669; }

/* "Lihat Semua Kategori": membuka semua kategori (tidak perlu digeser) */
.kat-all { margin-left: auto; background: none; border: 0; padding: 0; font: inherit; font-size: 13px; font-weight: 600; color: var(--wine); cursor: pointer; }
.kat-all:hover { text-decoration: underline; }
.has-motor.show-all .kategori-grid { flex-wrap: wrap; overflow: visible; }
.has-motor.show-all .kat-nav { display: none; }
.has-motor.show-all .kat-motor { align-self: start; }

/* Tanda "Sesuai: motor" di kartu kotak: satu baris teks hijau tanpa kotak, sejajar
   dengan baris SKU dan stok; dipotong dengan "…" bila kartunya sempit */
.produk-match-badge span { min-width: 0; }
.produk-match-badge svg { flex: 0 0 auto; }
.grid-view .produk-match-badge { display: flex; align-items: center; gap: 5px; width: auto; max-width: 100%; margin: auto 0 0; padding: 6px 0 0; border: 0; border-radius: 0; background: none; font-size: 11px; font-weight: 600; line-height: 1.4; }
.grid-view .produk-match-badge span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grid-view .produk-match-badge svg { width: 12px; height: 12px; }
.list-view .produk-match-badge { max-width: 100%; margin: 8px 0 0; }
.list-view .produk-meta { justify-content: flex-start; gap: 16px; }

.features-heading { margin-bottom: 24px; flex-wrap: wrap; gap: 8px 12px; }

/* Rating toko dari Google (bukan rating per produk) */
.store-rating, .section-heading a.store-rating { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--muted); text-decoration: none; }
.section-heading .store-rating { margin-left: auto; }
.store-rating .sr-star { color: #f59e0b; font-size: 16px; line-height: 1; }
.store-rating b { color: var(--ink); font-weight: 700; }
a.store-rating:hover .sr-text { text-decoration: underline; }
.product-store-rating { margin: -8px 0 16px; }
.product-store-rating:empty { display: none; }

/* Bar keranjang: motor yang dipilih di kiri, ringkasan keranjang di kanan */
.sk-container.has-motor .sk-info { margin-right: auto; min-width: 0; }
.sk-container.has-motor .sk-total { align-items: flex-end; }
.sk-img-box img { object-fit: cover; border-radius: 6px; }
.sk-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sk-change { font-size: 12px; color: #fecaca; text-decoration: underline; text-underline-offset: 2px; }
.sk-change:hover { color: #fff; }

/* ---------- Halaman detail: tambahan sesuai rancangan ---------- */
.match-spec { font-weight: 500; color: #059669; }
.match-warn { background: #fffbeb; border-color: #fde68a; }
.match-warn .match-text h4 { color: #92400e; }
.match-warn .match-text p { color: #b45309; font-weight: 500; }
.match-warn .match-text a { color: #b45309; }
.features-title { margin: 0 0 12px; font-size: 14px; font-weight: 700; color: var(--ink); }
.features-list { margin-bottom: 0; }
.action-features li { align-items: flex-start; line-height: 1.45; }
.action-features svg { flex: 0 0 auto; margin-top: 1px; }
.action-features li:last-child { margin-bottom: 0; }
.compat-grid { gap: 24px 32px; }
.compat-item-text { min-width: 0; flex: 1; }
.compat-picked { display: flex; align-items: center; gap: 12px; margin: 4px 0 8px; }
.compat-picked img { flex: 0 0 auto; width: 64px; height: 64px; object-fit: cover; border-radius: 8px; background: #fff; }
.compat-picked div { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.compat-picked b { font-size: 13px; color: var(--ink); }
.compat-picked span { font-size: 12px; color: var(--muted); }
.btn-ubah { flex: 0 0 auto; display: inline-block; padding: 7px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font-size: 12px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.btn-ubah:hover { border-color: var(--wine); color: var(--wine); }
.compat-item-text p + .btn-ubah { margin-top: 10px; }
.compat-item-text p.compat-ok { color: #059669; font-weight: 600; }
.compat-item-text p.compat-warn { color: #b45309; font-weight: 600; }
.compat-motor-list { margin-top: 4px; }
.compat-motor-list svg { flex: 0 0 auto; width: 14px; height: 14px; color: #059669; }
.bundle-section { margin-bottom: 0; }
/* Produk serupa: satu baris berisi 5 kartu (gambar di atas). Di layar sempit barisnya digeser ke samping. */
.middle-grid > .main-content, .middle-grid > .services-wrapper { min-width: 0; }
/* Baris kedua: Produk Serupa (kiri) dan ulasan toko (kanan) satu baris grid, jadi atas dan bawahnya selalu sejajar */
.middle-grid > .bundle-section { grid-column: 1; margin: 0; padding: 0; border: 0; min-width: 0; display: flex; flex-direction: column; }
.middle-grid > .bundle-section:last-child { grid-column: 1 / -1; }
.middle-grid > .bundle-section h3 { flex: 0 0 auto; margin: 0 0 12px; font-size: 15px; }
.middle-grid > .bundle-section .related-row { flex: 1 1 auto; min-height: 0; }
.middle-grid > .sr-cell { grid-column: 2; position: relative; min-width: 0; }
/* Kolom kanan baris pertama: bila kolom kiri lebih tinggi, teks "Butuh Bantuan" berada di tengah sisa ruangnya */
.middle-grid > .services-wrapper { display: flex; flex-direction: column; }
.middle-grid > .services-wrapper .help-box { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; }
/* Kotak "Butuh Bantuan" berbentuk kartu seperti kartu lain: selebar kolom kanan dan mengisi sisa tingginya */
.help-box { padding: 20px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; }
.related-row .bundle-item > a { position: relative; flex: 1 1 76px; min-height: 76px; }
.related-row .bundle-item > a img { position: absolute; inset: 0; width: 100%; height: 100%; }
.related-row .bundle-item .bundle-info { flex: 0 0 auto; }
.related-row { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: thin; }
.related-row .bundle-item { position: relative; flex: 1 0 132px; width: auto; min-width: 0; display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 10px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; }
.related-row .bundle-item:hover { border-color: var(--wine); }
.related-row .bundle-item > a { display: block; }
.related-row .bundle-item img { display: block; width: 100%; height: 110px; object-fit: contain; border: 0; padding: 0; background: transparent; }
.related-row .bundle-info { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.related-row .bundle-info h4 { margin: 0 0 2px; min-height: 2.7em; font-size: 12px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.related-row .bundle-info p { margin-top: auto; padding-right: 32px; font-size: 13px; line-height: 28px; white-space: nowrap; }
.related-row .bundle-add { position: absolute; right: 10px; bottom: 10px; width: 28px; height: 28px; font-size: 18px; }
.detail-features { margin-top: 8px; }

/* Ikon akun di header (tautan dari Admin → Identitas → Link ikon akun) */
a.header-icon { color: inherit; text-decoration: none; }
.header-icons { display: flex; align-items: center; gap: 14px; }

/* Deskripsi: paragraf, judul bagian dan butir dengan jarak rapat */
.desc-text p { margin: 0 0 8px; }
.desc-text .desc-h { margin: 14px 0 6px; color: var(--ink); }
.desc-text > :first-child { margin-top: 0; }
.desc-text > :last-child { margin-bottom: 0; }
.tab-content .desc-list { list-style: disc; margin: 0 0 8px; padding-left: 20px; }
.tab-content .desc-list li { margin: 0 0 6px; padding-left: 2px; }
.desc-list li::marker { color: var(--ink); }

/* Tab: isi tab di dalam kartu putih; deskripsi di kiri, ringkasan spesifikasi di kanan */
/* Menu tab dan isinya satu kartu; garis tepi dan sudutnya sama dengan kartu lain (kotak beli, layanan, ulasan) */
.tabs-card { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.tabs-card .tabs-header { flex: 0 0 auto; margin: 0; padding: 0 24px; }
.tabs-card .tab-btn { padding: 16px 0 14px; }
.tabs-card .tab-content.active { flex: 1 1 auto; padding: 22px 24px; }
/* Kartu tab mengisi sisa tinggi kolom kiri, jadi jaraknya ke baris Produk Serupa selalu sama */
.middle-grid > .main-content { display: flex; flex-direction: column; }
.desc-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.spec-box { padding: 4px 20px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; }
.spec-box .spec-table td { padding: 11px 0; font-size: 13px; }
.spec-box .spec-table td:first-child { width: 38%; padding-right: 12px; color: var(--muted); font-weight: 400; }
#tab-spec .spec-table td:first-child { width: 220px; color: var(--muted); font-weight: 400; }
.tab-note { margin: 0 0 14px; font-size: 12.5px; color: var(--muted); }
.tab-note:last-child { margin-bottom: 0; }
.tabs-header { gap: 28px; }
.tab-content .tips-list { margin: 0; }
.tab-content .tips-list li { margin-bottom: 8px; }
.tab-content .tips-list li:last-child { margin-bottom: 0; }
/* Q&A: tiap pertanyaan bisa dibuka-tutup */
.qna-item { border-bottom: 1px solid var(--line); }
.qna-item summary { position: relative; padding: 12px 28px 12px 0; font-weight: 600; color: var(--ink); cursor: pointer; list-style: none; }
.qna-item summary::-webkit-details-marker { display: none; }
.qna-item summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 18px; font-weight: 400; color: var(--muted); }
.qna-item[open] summary::after { content: "\2212"; }
.qna-item:first-child summary { padding-top: 0; }
.qna-item:first-child summary::after { top: calc(50% - 6px); }
.qna-item p { margin: 0 0 14px; }
.qna-ask { margin: 16px 0 0; font-size: 13px; color: var(--muted); }
.qna-ask a { color: var(--wine); font-weight: 600; text-decoration: none; }
.qna-ask a:hover { text-decoration: underline; }
.tab-reviews .review-item { padding-bottom: 14px; margin-bottom: 14px; }
.tab-reviews .stars { color: #f59e0b; letter-spacing: 1px; }
.tab-reviews .star-off { color: #e5e7eb; }
.tab-reviews .review-text { margin-bottom: 4px; }

/* Produk serupa: tombol tambah cepat ke keranjang */
.bundle-info h4 a { color: inherit; text-decoration: none; }
.bundle-info h4 a:hover { color: var(--wine); }
.bundle-add { flex: 0 0 auto; width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--wine-dark); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.bundle-add:hover { background: var(--wine); }
.bundle-add[disabled] { opacity: .4; cursor: not-allowed; }

/* Ulasan toko dari Google (kolom kanan) */
.store-reviews { margin-top: 20px; padding: 20px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; }
.store-reviews .review-header { margin-bottom: 12px; }
.store-reviews .review-header h4 { margin: 0; font-size: 13px; color: var(--ink); }
.store-reviews .review-header a { font-size: 12px; font-weight: 600; color: var(--wine); text-decoration: none; }
.sr-score { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 6px; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.sr-score:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
button.sr-score { width: 100%; border: 0; border-bottom: 1px solid var(--line); background: none; font: inherit; text-align: left; cursor: pointer; }
button.sr-score:hover b { color: var(--wine); }
.sr-more { border: 0; padding: 0; background: none; font: inherit; font-size: 12px; font-weight: 600; color: var(--wine); cursor: pointer; }
.sr-more:hover { text-decoration: underline; }
/* Rincian bintang 5..1: tiap baris bisa diklik untuk menyaring ulasan */
.sr-bars { display: flex; flex-direction: column; gap: 2px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.sr-bars .bar-row { width: 100%; margin: 0; padding: 5px 6px; gap: 8px; border: 0; border-radius: 6px; background: none; font: inherit; font-size: 11.5px; font-weight: 600; color: var(--muted); cursor: pointer; }
.sr-bars .bar-row:hover { background: #f9fafb; color: var(--ink); }
.sr-bars .bar-row[aria-pressed="true"] { background: #fef3c7; color: var(--ink); }
.sr-bars .bar-row span:first-child { width: 8px; text-align: right; }
.sr-bars .bar-row span:last-child { width: 22px; text-align: right; }
.sr-bars .sr-star { color: #f59e0b; font-size: 12px; }
.sr-bars .bar-track, .sr-bars .bar-fill { display: block; }
/* Garis pemisah hanya di antara ulasan yang sedang tampil */
.store-reviews .sr-list .review-item { margin: 0; padding: 0; border: 0; }
.store-reviews .sr-list .review-item:not([hidden]) ~ .review-item:not([hidden]) { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.sr-cell .store-reviews { height: 100%; margin: 0; padding: 16px 18px; box-sizing: border-box; }
.sr-cell .review-header { margin-bottom: 8px; }
.sr-cell button.sr-score { margin: 0 0 4px; padding: 0 0 6px; border-bottom: 0; }
.sr-cell .sr-score b { font-size: 26px; }
.sr-cell .sr-bars { gap: 0; margin: 0; padding: 0; border: 0; }
.sr-cell .sr-bars .bar-row { padding: 3px 6px; }
/* Dibuka: kotak memanjang ke bawah sebagai lapisan, tata letak halaman tidak bergeser */
.sr-cell .store-reviews.is-open { position: absolute; top: 0; left: 0; right: 0; height: auto; z-index: 20; border-color: var(--wine); box-shadow: 0 16px 40px rgb(0 0 0 / 16%); }
.store-reviews .sr-list { max-height: 300px; margin-top: 12px; padding: 12px 6px 0 0; border-top: 1px solid var(--line); overflow-y: auto; scrollbar-width: thin; }
.store-reviews .review-meta-item { margin-top: 6px; }
.sr-tag { margin-left: 6px; padding: 1px 6px; border-radius: 4px; background: #eff6ff; color: #1d4ed8; font-size: 10px; font-weight: 700; vertical-align: 1px; }
.sr-empty { margin: 0; font-size: 12px; color: var(--muted); }
.sr-google { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.sr-google a { color: inherit; }
.sr-google b { color: var(--ink); }
.sr-score b { font-size: 30px; font-weight: 800; line-height: 1; color: var(--ink); }
.sr-score span { font-size: 12px; color: var(--muted); }
.sr-score .stars, .store-reviews .stars { color: #f59e0b; font-size: 14px; letter-spacing: 1px; }
.store-reviews .star-off { color: #e5e7eb; }
.sr-score small { font-size: 11.5px; color: var(--muted); }
.store-reviews .review-item { padding-bottom: 14px; margin-bottom: 14px; }
.store-reviews .review-user { margin-bottom: 4px; font-size: 12.5px; }
.store-reviews .review-text { margin: 0; font-size: 12px; }

/* Footer halaman produk */
.katalog-footer { padding: 44px 0 0; }
.katalog-footer .kf-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)); gap: 32px; align-items: start; justify-content: stretch; }
.kf-brand img { height: 38px; }
.kf-brand p { margin: 14px 0 0; font-size: 13px; line-height: 1.5; opacity: .85; max-width: 260px; }
.kf-socials { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 14px; }
.kf-socials a { color: #fff; font-size: 12.5px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.kf-col { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.kf-col h5 { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; }
.kf-col a, .kf-col span { font-size: 13px; line-height: 1.45; color: #fff; opacity: .8; text-decoration: none; overflow-wrap: anywhere; }
.kf-col a:hover { opacity: 1; text-decoration: underline; }
.katalog-footer .kf-bottom { display: block; margin-top: 36px; padding-top: 18px; padding-bottom: 20px; border-top: 1px solid rgb(255 255 255 / 15%); }
/* Footer: kotak hitam selebar isi halaman, sudut membulat, tulisan putih */
.katalog-footer { background: transparent; padding: 8px 0 32px; }
.katalog-footer > .container { display: block; }
.kf-card { padding: 40px 28px 0; border-radius: 12px; background: #0b0b0e; color: #fff; }
.kf-card .kf-col a, .kf-card .kf-col span, .kf-card .kf-brand p, .kf-card .kf-bottom p { color: #fff; opacity: 1; }
.kf-card .kf-col a:hover { color: #fca5a5; }
.kf-card .kf-bottom { margin-top: 32px; padding: 16px 0 18px; border-top: 1px solid rgb(255 255 255 / 18%); }

/* ---------- Harga: merah di semua tempat ---------- */
:root { --price: #dc2626; }
.price-current, .produk-price, .produk-card .produk-price, .related-row .bundle-info p, .bundle-info p, .cart-sum strong { color: var(--price); }

/* ---------- Galeri detail: panah di foto utama + deretan 5 foto ---------- */
.gal-nav { position: absolute; top: 50%; z-index: 2; width: 32px; height: 32px; margin-top: -16px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgb(0 0 0 / 12%); }
.gal-nav:hover, .strip-nav:hover { border-color: var(--wine); color: var(--wine); }
.gal-nav.prev { left: 10px; }
.gal-nav.next { right: 10px; }
.gal-count { position: absolute; right: 10px; bottom: 10px; padding: 2px 8px; border-radius: 999px; background: rgb(17 24 39 / 70%); color: #fff; font-size: 11px; font-weight: 600; }
.gallery-strip { position: relative; margin-top: 12px; }
.gallery-strip .gallery-thumbs { display: flex; gap: 8px; margin: 0; overflow-x: auto; scroll-snap-type: x proximity; scroll-behavior: smooth; scrollbar-width: none; }
.gallery-strip .gallery-thumbs::-webkit-scrollbar { display: none; }
.gallery-strip .thumb-item { flex: 0 0 calc((100% - 32px) / 5); min-width: 0; padding: 4px; scroll-snap-align: start; }
/* Kotak video (slide 1). Bila belum ada video: kotak bergaris putus-putus, tidak bisa diklik */
.thumb-video { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted, #6b7280); }
.thumb-video .tv-play { width: 22px; height: 22px; border-radius: 50%; background: currentColor; position: relative; }
.thumb-video .tv-play::after { content: ""; position: absolute; left: 9px; top: 6px; border-style: solid; border-width: 5px 0 5px 7px; border-color: transparent transparent transparent #fff; }
.thumb-video .tv-label { font-size: 10px; font-weight: 600; line-height: 1; }
.thumb-video.is-empty { border-style: dashed; cursor: default; color: #9ca3af; }
button.thumb-video { color: var(--wine); }
.gal-video { position: absolute; inset: 0; background: #000; }
.gal-video[hidden] { display: none; }
.gal-video iframe, .gal-video video { width: 100%; height: 100%; border: 0; display: block; object-fit: contain; }
.gallery-main img[hidden] { display: none; }
.strip-nav { position: absolute; top: 50%; z-index: 2; width: 26px; height: 26px; margin-top: -13px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); font-size: 16px; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgb(0 0 0 / 12%); }
.strip-nav.prev { left: -10px; }
.strip-nav.next { right: -10px; }

/* ---------- Layar sedang & HP ---------- */
/* Layar lebih sempit: kategori dua baris; blok motor satu baris penuh di atasnya */
@media (max-width: 1199px) {
  .kategori-inner.has-motor { display: block; }
  .kat-motor { margin-bottom: var(--kat-gap); }
  .kategori-grid, .has-motor .kategori-grid { display: grid; grid-template-columns: repeat(var(--kat-half, 6), minmax(0, 1fr)); overflow: visible; }
  .kategori-grid .kat-item { flex: none; }
  .kat-nav { display: none; }
  .kat-all { display: none; }
}

@media (max-width: 1024px) {
  .header-nav { display: none; }
  .produk-layout { grid-template-columns: 1fr; gap: 24px; }
  .filter-toggle { display: grid; }
  .col-head a + .filter-toggle { margin-left: 8px; }
  .filter-col.is-collapsed .sidebar { display: none; }
  .filter-col.is-collapsed .col-head { margin-bottom: 0; }
  #merek-list { flex: none; min-height: 0; max-height: 260px; }
  .produk-pagination { padding-left: 0; }
  .filter-grid { grid-template-columns: 1fr 1fr; }
  .filter-grid .btn-primary { grid-column: 1 / -1; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .detail-layout, .middle-grid { grid-template-columns: 1fr; }
  .desc-grid { grid-template-columns: 1fr; gap: 16px; }
  .middle-grid > .bundle-section, .middle-grid > .bundle-section:last-child, .middle-grid > .sr-cell { grid-column: auto; }
  .sr-cell .store-reviews.is-open { position: static; box-shadow: none; }
  .katalog-footer .kf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kf-brand { grid-column: 1 / -1; }
  .gallery-wrapper { max-width: 420px; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .header-inner { gap: 12px; }
  .header-brand img { height: 30px; }
  .header-icons { border-left: 0; padding-left: 0; }
  .hero-produk { padding-bottom: 16px; }
  .hero-produk h1 { font-size: 24px; }
  .hero-img, .hero-art { display: none; }
  .filter-grid { grid-template-columns: 1fr; }
  .kategori-grid, .has-motor .kategori-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .kategori-grid .kat-item { height: 78px; }
  .features-grid { grid-template-columns: 1fr; }
  .produk-list.grid-view { grid-template-columns: 1fr 1fr; gap: 10px; }
  .produk-card { padding: 10px; }
  .list-view .produk-card { flex-wrap: wrap; gap: 12px; }
  .list-view .produk-thumb { width: 88px; height: 88px; }
  .list-view .produk-info { flex: 1 1 0; }
  .list-view .produk-actions { flex: 1 1 100%; flex-direction: row; align-items: center; min-width: 0; }
  .list-view .btn-cart { width: auto; flex: 1; }
  .sk-link { display: none; }
  .sk-info { display: none; }
  .grid-view .produk-match-badge .pm-pre { display: none; }
  /* Dua kartu per baris: SKU dan stok ditumpuk supaya SKU tidak terpotong */
  .grid-view .produk-meta { flex-direction: column; align-items: flex-start; gap: 1px; }
  .grid-view .produk-sku { max-width: 100%; }
  .btn-cart-sticky { padding: 12px 16px; }
  .product-title { font-size: 20px; }
  .product-meta { flex-wrap: wrap; gap: 6px 16px; }
  .compat-grid { grid-template-columns: 1fr; }
  .katalog-footer .kf-grid { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .kf-card { padding: 28px 18px 0; }
  .compat-picked { flex-wrap: wrap; }
}

/* ---------- Pilih layanan per produk (detail produk) & badge layanan di keranjang ---------- */
.svc-pick { border: 0; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; min-width: 0; }
.svc-pick legend { font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 8px; padding: 0; }
.svc-new { display: inline-block; margin-left: 4px; padding: 1px 6px; border-radius: 4px; background: var(--wine); color: #fff; font-size: 9px; font-weight: 800; vertical-align: 1px; }
.svc-opt { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line, #e5e7eb); border-radius: 10px; background: #fff; cursor: pointer; transition: border-color .15s, background .15s; }
.svc-opt input { position: absolute; opacity: 0; pointer-events: none; }
.svc-opt b { display: block; font-size: 12.5px; color: var(--ink); }
.svc-opt small { display: block; font-size: 11px; line-height: 1.35; color: var(--muted); margin-top: 2px; }
.svc-ico { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: #f3f4f6; }
.svc-ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svc-kirim .svc-ico { color: #15803d; } .svc-ambil .svc-ico { color: #1d4ed8; } .svc-pasang .svc-ico { color: var(--wine); }
.svc-opt:has(input:checked) { border-color: var(--wine); background: #fef2f2; box-shadow: 0 0 0 1px var(--wine) inset; }
.svc-opt:has(input:focus-visible) { outline: 2px solid var(--wine); outline-offset: 2px; }

.cart-svc { display: block; margin-top: 6px; max-width: 100%; padding: 3px 22px 3px 8px; border-radius: 999px; border: 1px solid; font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; appearance: auto; }
.cart-svc.svc-kirim { color: #15803d; border-color: #bbf7d0; background: #f0fdf4; }
.cart-svc.svc-ambil { color: #1d4ed8; border-color: #bfdbfe; background: #eff6ff; }
.cart-svc.svc-pasang { color: var(--wine); border-color: #fecaca; background: #fef2f2; }
.cart-wa { display: block; text-align: center; margin-top: 8px; font-size: 12px; color: var(--muted); text-decoration: underline; }
a.is-disabled[data-cart-checkout] { opacity: .5; pointer-events: auto; }

/* Kartu: Original, favorit, rating & terjual (konsep hal. 10) */
.produk-oem { position: absolute; bottom: 8px; left: 8px; background: #0b0b0e; color: #fff; font-size: 10px; font-weight: 800; padding: 3px 7px; border-radius: 4px; letter-spacing: .02em; }
.produk-wish { position: absolute; top: 18px; right: 18px; z-index: 2; display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid #e5e7eb; border-radius: 50%; background: rgb(255 255 255 / 92%); color: #6b7280; cursor: pointer; }
.produk-wish svg { fill: none; stroke: currentColor; stroke-width: 2; }
.produk-wish:hover { color: #b91c1c; }
.produk-wish.on { color: #b91c1c; border-color: #fecaca; }
.produk-wish.on svg { fill: currentColor; }
.produk-social { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; color: #6b7280; margin: 2px 0 4px; }
.produk-rating { color: #b45309; font-weight: 700; }
.produk-rating small { color: #6b7280; font-weight: 400; }
.wish-link { font-size: 13px; font-weight: 700; color: #b91c1c; text-decoration: none; padding: 6px 10px; border: 1px solid #fecaca; border-radius: 999px; white-space: nowrap; }
.wish-link.is-on { background: #fef2f2; }

/* Detail produk: badge, rating produk, layanan wajib, kecocokan per tahun/tipe, ulasan produk */
.badge-oem { background: #0b0b0e; color: #fff; padding: 4px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; }
.badge-best { background: #fef3c7; color: #b45309; padding: 4px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; }
.product-own-rating { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 6px 0; font-size: 13px; color: #4b5563; }
.product-own-rating .sep { color: #d1d5db; }
.svc-pick.is-required { border-color: #dc2626 !important; box-shadow: 0 0 0 3px rgb(220 38 38 / 15%); border-radius: 12px; }
.svc-pick .svc-new { background: #dc2626; }
.compat-motor-list li span small { display: block; color: #9ca3af; font-size: 11px; }
.compat-motor-list.is-long li:nth-child(n+7) { display: none; }
.compat-more { margin-top: 4px; border: 0; background: none; color: #b91c1c; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; padding: 0; }
.compat-install { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 12px 0 0; font-size: 12.5px; }
.compat-install dt { color: #6b7280; }
.compat-install dd { margin: 0; font-weight: 600; }
.prv-summary { display: flex; gap: 24px; align-items: center; margin-bottom: 14px; padding: 14px; border-radius: 10px; background: #f9fafb; }
.prv-summary > div { text-align: center; font-size: 13px; color: #6b7280; }
.prv-summary > div b { font-size: 28px; color: #111827; }
.prv-summary ul { list-style: none; margin: 0; padding: 0; flex: 1; display: grid; gap: 4px; font-size: 12px; }
.prv-summary li { display: grid; grid-template-columns: 28px 1fr 28px; align-items: center; gap: 8px; }
.prv-summary i { height: 6px; border-radius: 3px; background: #e5e7eb; overflow: hidden; }
.prv-summary em { display: block; height: 100%; background: #f59e0b; }

/* Footer: cabang, newsletter, pembayaran */
.katalog-footer .kf-grid { grid-template-columns: minmax(0, 1.4fr) repeat(5, minmax(0, 1fr)); gap: 28px; }
.kf-branch { display: flex; flex-direction: column; gap: 2px; margin-bottom: 6px; }
.kf-branch b { font-size: 13px; }
.kf-news { margin-top: 18px; display: grid; gap: 6px; max-width: 300px; }
.kf-news label { font-size: 12.5px; font-weight: 600; }
.kf-news div { display: flex; gap: 6px; }
.kf-news input { flex: 1; min-width: 0; padding: 9px 12px; border: 0; border-radius: 8px; font: inherit; font-size: 13px; }
.kf-news button { padding: 9px 14px; border: 0; border-radius: 8px; background: #b91c1c; color: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.kf-news small { color: #bbf7d0; font-size: 12px; }
.katalog-footer .kf-bottom { display: flex !important; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.kf-pay { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.kf-pay li { padding: 4px 10px; border: 1px solid rgb(255 255 255 / 25%); border-radius: 6px; font-size: 11.5px; font-weight: 700; }
@media (max-width: 1100px) { .katalog-footer .kf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .kf-brand { grid-column: 1 / -1; } }
@media (max-width: 640px) { .katalog-footer .kf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Navigasi bawah di HP (semua halaman) */
.lmb-bnav { display: none; }
@media (max-width: 640px) {
  .lmb-bnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; justify-content: space-around; align-items: center; height: 60px; padding-bottom: env(safe-area-inset-bottom);
    background: #fff; border-top: 1px solid #e5e7eb; box-shadow: 0 -2px 10px rgb(0 0 0 / 5%); }
  .lmb-bnav .nav-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; color: #6b7280; font-size: 10.5px; font-weight: 600; text-decoration: none; }
  .lmb-bnav .nav-item svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .lmb-bnav .nav-item.is-on { color: var(--wine, #7f1d1d); }
  body { padding-bottom: 60px; }
  body.has-cart { padding-bottom: 136px; }
  .sticky-keranjang { bottom: 60px !important; }
  .toast { bottom: 140px; }
}

/* Header: menu tarik Pelayanan & Sparepart */
.hd-drop { position: relative; }
.hd-drop > button { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink, #111827); cursor: pointer; }
.hd-drop > button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.hd-menu { position: absolute; top: calc(100% + 10px); left: -12px; z-index: 80; display: none; min-width: 220px; padding: 8px; border: 1px solid #e5e7eb; border-radius: 12px; background: #fff; box-shadow: 0 12px 30px rgb(0 0 0 / 12%); }
.hd-menu::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.hd-menu a { display: block; padding: 8px 10px; border-radius: 8px; font-size: 13px; }
.hd-menu a:hover { background: #fef2f2; }
.hd-drop:hover .hd-menu, .hd-drop:focus-within .hd-menu, .hd-drop.open .hd-menu { display: block; }
.kf-news { max-width: 100%; }
.kf-news input { width: 100%; }
.kf-news button { flex: none; }

/* Favorit di galeri detail */
.gallery-main { position: relative; }
.gallery-wish { top: 12px !important; right: 12px !important; width: 38px; height: 38px; z-index: 3; }

/* Riwayat Motor */
.motor-history { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.mh-label { font-size: 13px; font-weight: 700; color: #374151; }
.mh-list { display: flex; flex-wrap: wrap; gap: 8px; }
.mh-chip { display: inline-flex; align-items: center; border: 1px solid #e5e7eb; border-radius: 999px; background: #fff; font-size: 13px; overflow: hidden; }
.mh-chip a { padding: 6px 4px 6px 12px; color: #111827; text-decoration: none; font-weight: 600; }
.mh-chip a:hover { color: #b91c1c; }
.mh-chip button { border: 0; background: none; padding: 6px 10px 6px 6px; color: #9ca3af; cursor: pointer; font-size: 15px; line-height: 1; }
.mh-chip.on { border-color: #b91c1c; background: #fef2f2; }

/* Inovasi belanja */
.shop-inov { margin: 28px auto 8px; }
.si-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.si-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 18px; border: 1px solid #e5e7eb; border-radius: 14px; background: #fff; }
.si-card.is-soon { background: #f9fafb; }
.si-card h4 { margin: 0; font-size: 16px; }
.si-card p { margin: 0; font-size: 13.5px; color: #4b5563; line-height: 1.55; }
.si-badge { align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: #f3f4f6; color: #6b7280; font-size: 11px; font-weight: 700; }
.si-badge.is-on { background: #dcfce7; color: #15803d; }
.si-flow { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; counter-reset: f; font-size: 12px; }
.si-flow li { counter-increment: f; padding: 3px 9px; border-radius: 999px; background: #fff; border: 1px solid #e5e7eb; color: #374151; }
.si-flow li::before { content: counter(f) ". "; font-weight: 700; color: #b91c1c; }
.si-link { margin-top: auto; color: #b91c1c; font-weight: 700; font-size: 13.5px; text-decoration: none; }
@media (max-width: 900px) { .si-grid { grid-template-columns: 1fr; } }

/* Footer: logo putih & susunan kolom rapi */
.katalog-footer .kf-brand img.kf-logo { height: 44px; width: auto; background: none; padding: 0; border-radius: 0; }
.katalog-footer .kf-brand img.is-auto-white { filter: brightness(0) invert(1); }
.katalog-footer .kf-grid { grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)); gap: 24px 32px; }
.kf-col a, .kf-col span { overflow-wrap: normal; word-break: normal; }
.kf-branches { margin-top: 32px; padding-top: 24px; border-top: 1px solid rgb(255 255 255 / 15%); }
.kf-branches-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 14px; }
.kf-branches-head h5 { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; }
.kf-branches-head a { color: #fff; font-size: 13px; text-decoration: none; }
.kf-branches-head a:hover { color: #fca5a5; }
.kf-branch-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 28px; }
.kf-branch-grid .kf-branch { display: flex; flex-direction: column; gap: 4px; margin: 0; font-size: 13px; line-height: 1.5; color: #fff; }
.kf-branch-grid .kf-branch b { font-size: 13.5px; }
.kf-branch-grid .kf-branch span { color: #d1d5db; }
.kf-branch-grid .kf-branch a { color: #fff; text-decoration: none; font-weight: 600; }
.kf-branch-grid .kf-branch a:hover { color: #fca5a5; }
.katalog-footer .kf-bottom { margin-top: 24px; }
@media (max-width: 1100px) {
  .katalog-footer .kf-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .katalog-footer .kf-brand { grid-column: 1 / -1; }
  .kf-branch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .katalog-footer .kf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kf-branch-grid { grid-template-columns: 1fr; }
}
.katalog-footer .kf-brand img.kf-logo { height: 52px; }
.katalog-footer .kf-news { max-width: 420px; }

/* Detail produk: kartu tab & kecocokan naik ke bawah galeri, kotak beli tetap di kanan */
.detail-layout { grid-template-rows: auto 1fr; row-gap: 28px; }
.detail-layout > .gallery-wrapper { grid-column: 1; grid-row: 1; }
.detail-layout > .info-wrapper { grid-column: 2; grid-row: 1; }
.detail-layout > .action-wrapper { grid-column: 3; grid-row: 1 / span 2; }
.detail-layout > .detail-main { grid-column: 1 / 3; grid-row: 2; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.detail-main > * { margin-top: 0 !important; margin-bottom: 0 !important; }
.detail-main .help-box { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; text-align: left; padding: 16px 20px; border: 1px solid var(--line, #e5e7eb); border-radius: 12px; background: #fff; }
.detail-main .help-box h4 { margin: 0; font-size: 14px; }
.detail-main .help-box p { margin: 0; flex: 1 1 260px; font-size: 13px; }
.detail-main .help-box .btn-wa { flex: none; }
.detail-main .services-box { border: 1px solid var(--line, #e5e7eb); border-radius: 12px; padding: 16px 20px; background: #fff; }
@media (max-width: 1024px) {
  .detail-layout > .gallery-wrapper, .detail-layout > .info-wrapper, .detail-layout > .action-wrapper, .detail-layout > .detail-main { grid-column: auto; grid-row: auto; }
}

/* ================= Footer ringkas (desktop & HP berbeda) ================= */
.lf { padding: 8px 0 28px; }
.lf-card { padding: 28px 28px 16px; border-radius: 14px; background: #0b0b0e; color: #e5e7eb; font-size: 13px; }
.lf a { color: #e5e7eb; text-decoration: none; }
.lf a:hover { color: #fca5a5; }
.lf h5 { margin: 0 0 10px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #9ca3af; }
.lf-logo { display: block; height: 40px; width: auto; }
.lf-logo.is-auto-white { filter: brightness(0) invert(1); }
.lf-brand p, .lf-m-head p { margin: 10px 0 0; color: #9ca3af; line-height: 1.5; max-width: 240px; }
.lf-news { display: flex; gap: 6px; margin-top: 14px; max-width: 280px; }
.lf-news input { flex: 1; min-width: 0; height: 34px; padding: 0 10px; border: 1px solid #374151; border-radius: 8px; background: #111827; color: #fff; font: inherit; font-size: 12.5px; }
.lf-news input::placeholder { color: #6b7280; }
.lf-news button { flex: none; height: 34px; padding: 0 12px; border: 0; border-radius: 8px; background: #b91c1c; color: #fff; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.lf-ok { display: block; margin-top: 6px; color: #86efac; font-size: 12px; }

.lf-top { display: grid; grid-template-columns: 1.25fr .8fr .9fr .8fr 1.6fr; gap: 28px; align-items: start; }
.lf-col { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.lf-col a, .lf-col span { line-height: 1.4; }
.lf-branches { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.lf-branches h5 { grid-column: 1 / -1; margin-bottom: 0; }
.lf-branch { display: flex; flex-direction: column; gap: 1px; min-width: 0; line-height: 1.4; }
.lf-branch b { color: #fff; font-size: 12.5px; font-weight: 600; }
.lf-addr { color: #9ca3af; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lf-branch a { font-size: 12px; color: #fca5a5 !important; }

.lf-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-top: 22px; padding-top: 14px; border-top: 1px solid rgb(255 255 255 / 10%); color: #9ca3af; font-size: 12px; }
.lf-bottom p { margin: 0; }
.lf-bottom-r { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.lf-socials { display: flex; gap: 12px; }
.lf-pay { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.lf-pay li { padding: 3px 8px; border: 1px solid rgb(255 255 255 / 18%); border-radius: 5px; font-size: 11px; font-weight: 600; color: #d1d5db; }

.lf-mobile { display: none; }
@media (max-width: 1100px) and (min-width: 761px) {
  .lf-top { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
  .lf-top > .lf-branches { grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  .lf-brand { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
  .lf-brand p { margin: 0; }
  .lf-brand .lf-news { margin: 0 0 0 auto; }
}
@media (max-width: 760px) {
  .lf { padding: 4px 0 16px; }
  .lf-card { padding: 20px 18px 12px; border-radius: 12px; }
  .lf-top { display: none; }
  .lf-mobile { display: block; }
  .lf-m-head { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; }
  .lf-m-head .lf-logo { height: 34px; }
  .lf-m-head p { margin: 0; font-size: 12px; }
  .lf-acc { border-top: 1px solid rgb(255 255 255 / 10%); }
  .lf-acc summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 12px 0; font-weight: 600; color: #fff; cursor: pointer; }
  .lf-acc summary::-webkit-details-marker { display: none; }
  .lf-acc summary::after { content: "+"; font-size: 18px; color: #9ca3af; line-height: 1; }
  .lf-acc[open] summary::after { content: "−"; }
  .lf-acc-body { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; padding: 0 0 14px; }
  .lf-acc-body .lf-branch { grid-column: 1 / -1; }
  .lf-acc-body .lf-addr { white-space: normal; }
  .lf-mobile .lf-news { max-width: none; margin-top: 4px; padding-top: 14px; border-top: 1px solid rgb(255 255 255 / 10%); }
  .lf-bottom { flex-direction: column; align-items: flex-start; margin-top: 14px; }
}

/* Ikon G Google & setengah bintang (halaman produk/layanan) */
.sr-g, .svc-g { width: 16px; height: 16px; display: inline-block; vertical-align: -3px; }
.svc-rating-ic.is-google { background: #fff; }
.svc-g { width: 22px; height: 22px; }
.star-half { background: linear-gradient(90deg, #f59e0b 50%, #e5e7eb 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Persamaan part (substitusi) di halaman detail */
.subst-box { margin: 0 0 24px; padding: 16px 18px; border: 1px solid #e5e7eb; border-radius: 12px; background: #fafafa; }
.subst-box h4 { margin: 0 0 10px; font-size: 13px; font-weight: 700; }
.subst-item + .subst-item { margin-top: 12px; padding-top: 12px; border-top: 1px dashed #e5e7eb; }
.subst-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 12.5px; }
.subst-badge { padding: 2px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 700; }
.subst-badge.is-plug { background: #ecfdf5; color: #047857; }
.subst-badge.is-upgrade { background: #fff7ed; color: #b45309; }
.subst-models { margin: 6px 0 0; font-size: 12px; color: var(--ink, #1f1417); line-height: 1.5; }
.subst-note { margin: 4px 0 0; font-size: 11.5px; color: var(--muted, #6b7280); line-height: 1.5; }
.subst-foot { margin: 12px 0 0; font-size: 11px; color: var(--muted, #6b7280); }
.lf h5 a { color: inherit; text-decoration: none; }
.lf h5 a:hover { color: #fff; }
.lf-all { display: inline-block; margin-top: 6px; color: #fff; font-weight: 600; font-size: 12.5px; }

/* Kecocokan motor: ringkasan di tabel + daftar lengkap per merek selebar halaman */
.spec-compat td { vertical-align: top; }
.cmp-sum { display: block; margin-top: 2px; font-size: 12px; font-weight: 500; color: var(--muted); }
.cmp-more { display: inline-block; margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--wine, #6e040f); text-decoration: underline; }
.cmp-block { margin-top: 22px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; scroll-margin-top: 90px; }
.cmp-block h4 { display: flex; align-items: center; gap: 8px; margin: 0; padding: 12px 18px; border-bottom: 1px solid var(--line); background: #fafafa; font-size: 14px; }
.cmp-block h4 small { font-size: 12px; font-weight: 500; color: var(--muted); }
.cmp-row { display: grid; grid-template-columns: 130px minmax(0, 1fr); border-bottom: 1px solid var(--line); }
.cmp-row:last-child { border-bottom: 0; }
.cmp-brand { padding: 10px 18px; font-size: 12.5px; font-weight: 700; color: var(--wine, #6e040f); text-transform: uppercase; letter-spacing: .03em; }
.cmp-brand small { display: block; margin-top: 1px; font-size: 11px; font-weight: 500; color: var(--muted); text-transform: none; letter-spacing: 0; }
.cmp-brand small::after { content: " motor"; }
.cmp-models { columns: 4 150px; column-gap: 18px; margin: 0; padding: 10px 18px 10px 0; list-style: none; font-size: 12.5px; line-height: 1.35; color: var(--ink); }
.cmp-models li { break-inside: avoid; padding: 3px 0 3px 10px; position: relative; }
.cmp-models li::before { content: ""; position: absolute; left: 0; top: 9px; width: 4px; height: 4px; border-radius: 50%; background: #c4c4c8; }
@media (max-width: 640px) {
  .cmp-row { grid-template-columns: 1fr; }
  .cmp-brand { padding: 10px 14px 0; }
  .cmp-brand small { display: inline; margin-left: 4px; }
  .cmp-models { columns: 2 120px; column-gap: 12px; padding: 6px 14px 10px; font-size: 12px; }
  .cmp-block h4 { padding: 11px 14px; }
}
.tab-content .cmp-models { columns: 5 140px; padding-top: 9px; padding-bottom: 9px; }
.tab-content .cmp-models li { margin: 0; padding: 2px 0 2px 10px; line-height: 1.4; }
.tab-content .cmp-models li::before { top: 9px; }
.cmp-brand { padding-top: 9px; padding-bottom: 9px; }
@media (max-width: 640px) { .tab-content .cmp-models { columns: 2 120px; padding: 4px 14px 9px; } .cmp-brand { padding: 9px 14px 0; } }
/* Ringkasan "Kompatibel dengan": jumlah motor per merek */
.compat-total { margin: 2px 0 8px; font-size: 12.5px; color: var(--muted); }
.compat-total b { color: #059669; }
.compat-merk { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; padding: 0; list-style: none; }
.compat-merk li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 4px 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 12px; font-weight: 600; }
.compat-merk li b { min-width: 22px; padding: 1px 6px; border-radius: 999px; background: #ecfdf5; color: #047857; font-size: 11px; text-align: center; }
a.compat-more { display: inline-block; text-decoration: none; }
.cmp-models li small { margin-left: 5px; color: #9ca3af; font-size: 11px; white-space: nowrap; }
