/* v2/katalog.css — halaman Sparepart (katalog), semua layar.
   Kartu kategori: abu lembut, ikon garis tipis abu; aktif = garis merah tipis. */

/* Kategori tanpa kartu: ikon abu lembut + label, menyatu dengan latar halaman. Aktif = ikon & label merah + garis bawah. */
.kategori-grid .kat-item { background: transparent; border: 0; border-radius: 0; box-shadow: none; color: #3f3f46; gap: 8px; transition: color .15s; }
.kategori-grid .kat-item:hover { background: transparent; border: 0; box-shadow: none; }
.kategori-grid .kat-item:hover .kat-ico { color: #52525b; }
.kategori-grid .kat-item span { color: #52525b; font-weight: 600; }
.kategori-grid .kat-item.active { background: transparent; border: 0; box-shadow: none; color: var(--wine); }
.kategori-grid .kat-item.active span { color: var(--wine); position: relative; }
.kategori-grid .kat-item.active span:not(.kat-ico)::after { content: ""; position: absolute; left: 20%; right: 20%; bottom: -5px; height: 2px; border-radius: 2px; background: var(--wine); }
a.kat-item.is-empty:not(.active) { opacity: .55; }

.kategori-grid .kat-item .kat-ico { display: grid; place-items: center; width: 30px; height: 30px; background: none; color: #8a8a93; flex: 0 0 auto; }
.kategori-grid .kat-item.active .kat-ico { color: var(--wine); }
.kat-ico svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.kat-ico img { width: 28px; height: 28px; object-fit: contain; }
.kat-ico-mask { display: block; width: 28px; height: 28px; background: currentColor;
  -webkit-mask: var(--ikon) center / contain no-repeat; mask: var(--ikon) center / contain no-repeat; }

/* Kotak Pilih Motor: kartu lebih jelas di atas latar */
.filter-motor-box { background: #fff; border: 1px solid #e4e4e7; box-shadow: 0 2px 10px rgb(0 0 0 / 5%); }
.filter-group select { border-color: #dcdcdf; }
