:root {
  --bkl-primary: #4f46e5;
  --bkl-primary-soft: #eef2ff;
  --bkl-primary-dark: #3730a3;
  --bkl-dark: #020617;
  --bkl-muted: #6b7280;
  --bkl-bg: #f3f4f6;
}

html{ -webkit-text-size-adjust:100%; text-size-adjust:100%; }
body{
  background: var(--bkl-bg);
  color: var(--bkl-dark);
  font-size: .9rem;
}

.page-header{
  padding-top: 1.25rem;
  padding-bottom: .25rem;
}
.page-title{
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--bkl-dark);
  letter-spacing: .02em;
}
.page-subtitle{ font-size: .82rem; color: var(--bkl-muted); }

.chip{
  font-size: .75rem;
  padding: .25rem .75rem;
  border-radius: 999px;
  background: #e5e7eb;
  color: #374151;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

.pl-card{
  border: none;
  border-radius: 1rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

/* Kartu unit dibuat lebih compact */
.pl-card .card-body{ padding: .85rem .9rem; }
.pl-unit-title{ font-size: .95rem; line-height: 1.15; }
.pl-unit-spec{ font-size: .78rem; }

.pl-imgwrap{
  aspect-ratio: 1 / 1;
  width: 100%;
  position: relative;
  overflow: hidden;
  background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pl-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pl-img-placeholder{
  color: var(--bkl-muted);
  font-size: .9rem;
}

.pl-unit-title{
  font-weight: 900;
  letter-spacing: .01em;
}
.pl-unit-spec{ white-space: pre-line; }

.pl-thumb{
  width: 46px;
  height: 46px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  display: inline-flex;
  background: #fff;
}
.pl-thumb img{ width: 100%; height: 100%; object-fit: cover; }

/* Grid thumbnail (4 sejajar, tidak turun baris) */
.pl-thumbgrid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  align-items: center;
}
.pl-thumbgrid .pl-thumb{
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  display: inline-flex;
}

/* Ukuran thumb adaptif untuk HP/iPad (tetap 4 kolom) */
@media (max-width: 420px){
  .pl-thumbgrid{ gap: 6px; }
  .pl-thumbgrid .pl-thumb{ border-radius: 10px; }
}

/* Thumb sebagai button */
.pl-thumbbtn{
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

/* Klik foto (tanpa buka tab baru): tombol transparan menutup area gambar */
.pl-openbtn{
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
  z-index: 6;
  cursor: pointer;
}

/* Lightbox */
.pl-lightbox-img{
  max-height: 78vh;
  object-fit: contain;
  background: #000;
}

.pl-toolbar{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

/* Admin manage slots */
.pl-slot{
  border: none;
  border-radius: 1rem;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.06);
  background: #fff;
}
.pl-slot-label{ font-weight: 800; font-size: .95rem; }
.pl-slot-box{
  aspect-ratio: 1/1;
  border-radius: 14px;
  overflow: hidden;
  border: 1px dashed #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
}
.pl-slot-img{ width: 100%; height: 100%; object-fit: cover; }
.pl-slot-empty{ color: var(--bkl-muted); font-size: .85rem; }

/* Mobile tuning: follow Kongsi “rapi & jelas” */
@media (max-width: 576px){
  .container{ padding-left: 12px !important; padding-right: 12px !important; }
  .page-title{ font-size: 1.02rem; }
  .pl-card .card-body{ padding: .75rem .8rem; }
  .pl-unit-title{ font-size: .9rem; }
  .pl-thumb{ width: 42px; height: 42px; border-radius: 10px; }
}


/* WhatsApp icon button (public) */
.wa-icon{padding:4px 7px;font-size:14px;border-radius:8px;line-height:1;}


/* WhatsApp button (center, compact) */
.wa-btn{padding:6px 10px;font-size:14px;border-radius:10px;line-height:1.2;}


/* Pricelist badges + carousel */
.pl-badge{
  position:absolute;
  top:12px;
  left:12px;
  z-index: 5;
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 700;
  letter-spacing: .2px;
}
.pl-badge2{
  position:absolute;
  top:12px;
  left:82px;
  z-index: 5;
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 700;
  letter-spacing: .2px;
}
.pl-carousel,
.pl-carousel .carousel-inner,
.pl-carousel .carousel-item{
  width: 100%;
  height: 100%;
}
.pl-carousel .carousel-item img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
