@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

* {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ═══════════════════════════════════════════
   PRICELIST — komponen halaman price list
   Ditulis ulang mengikuti design system customer-pov
   (token warna, radius, shadow, dark mode).
   ═══════════════════════════════════════════ */

/* ── Toggle transmisi M/T–A/T ── */
.trans-toggle {
  display: flex;
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  padding: 2px;
  gap: 2px;
}

.trans-toggle .trans-btn {
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.trans-toggle .trans-btn.active {
  background: var(--bg-card);
  color: var(--text-dark);
  box-shadow: var(--shadow-xs);
}

/* ── Lightbox gambar ── */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.85);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content-wrapper {
  position: relative;
  width: 90%;
  max-width: 800px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox-content-wrapper img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-2xl);
  object-fit: cover;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: #fff;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.lightbox-close:hover { color: var(--primary-red-light); }

/* ── Header kategori ── */
.kat-section { margin-bottom: 22px; }

.kat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
  background: var(--primary-red-subtle);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.kat-header-icon {
  width: 30px;
  height: 30px;
  background: var(--v5-cta);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #fff;
  flex-shrink: 0;
}

.kat-header-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  color: var(--primary-red);
  letter-spacing: -0.2px;
  flex: 1;
}

.kat-header-count {
  font-size: 11px;
  font-weight: 700;
  background: var(--primary-red-subtle);
  color: var(--primary-red);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

/* ── Pill filter di modal ── */
.filter-pill {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-color);
  color: var(--text-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: var(--bg-card);
  transition: all var(--transition-fast);
}

.filter-pill.active {
  background: var(--primary-red);
  color: #fff;
  border-color: var(--primary-red);
}

/* ── Kartu model (accordion) ── */
.model-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.model-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.model-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  cursor: pointer;
  user-select: none;
  transition: background var(--transition-fast);
  position: relative;
}

.model-header:active,
.model-card.expanded .model-header { background: var(--bg-surface); }

.model-thumb {
  width: 72px;
  height: 54px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  object-fit: contain;
  flex-shrink: 0;
  padding: 4px;
}

.model-info { flex: 1; min-width: 0; }

.model-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.3px;
  margin-bottom: 3px;
}

.model-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.model-price-start {
  font-size: 12px;
  font-weight: 800;
  color: var(--primary-red);
}

.model-varian-count {
  font-size: 10px;
  font-weight: 700;
  background: var(--bg-surface);
  color: var(--text-muted);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.model-chevron {
  font-size: 13px;
  color: var(--text-muted);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.model-card.expanded .model-chevron { transform: rotate(180deg); }

/* ── Daftar varian ── */
.varian-list {
  display: none;
  border-top: 1px solid var(--border-color);
  padding: 12px 14px;
  background: var(--bg-surface);
  max-height: 400px;
  overflow-y: auto;
}

.model-card.expanded .varian-list { display: block; }

.varian-item {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: var(--bg-card);
  margin-bottom: 10px;
  gap: 12px;
  transition: all var(--transition-base);
  position: relative;
  box-shadow: var(--shadow-xs);
  border-left: 4px solid var(--border-color);
}

.varian-item:last-child { margin-bottom: 0; }

.varian-item.clickable-varian { cursor: pointer; }

.varian-item.clickable-varian:hover {
  border-left-color: var(--primary-blue);
  transform: translateX(2px);
  box-shadow: var(--shadow-sm);
}

.varian-item.clickable-varian.selected-varian {
  background: var(--accent-green-bg);
  border-left-color: var(--accent-green);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.12);
  transform: translateX(2px);
}

.varian-radio-col {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.varian-radio-indicator {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  transition: all var(--transition-fast);
}

.varian-radio-indicator::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: transparent;
  transition: all var(--transition-fast);
}

.selected-varian .varian-radio-indicator {
  border-color: var(--accent-green);
  background: var(--accent-green-bg);
}

.selected-varian .varian-radio-indicator::after {
  background: var(--accent-green);
}

.varian-left { flex: 1; min-width: 0; }

.varian-paket-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 4px;
  letter-spacing: -0.2px;
}

.varian-badges {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.varian-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.badge-mt { background: var(--accent-blue-bg); color: var(--accent-blue); }
.badge-at { background: var(--accent-green-bg); color: var(--green-success); }
.badge-tipe { background: var(--accent-orange-bg); color: var(--accent-orange); text-transform: capitalize; }

.varian-price-wrap { text-align: right; flex-shrink: 0; }

.varian-price-label {
  font-size: 9px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  display: block;
  margin-bottom: 2px;
}

.varian-price-val {
  font-size: 13px;
  font-weight: 800;
  color: var(--primary-red);
}

.selected-varian .varian-price-val { color: var(--green-success); }

/* ── Empty state & badge hasil ── */
.empty-state {
  text-align: center;
  padding: 36px 20px;
  color: var(--text-muted);
}

.empty-state i {
  font-size: 40px;
  opacity: 0.3;
  margin-bottom: 12px;
  display: block;
}

.empty-state p {
  font-size: 13px;
  font-weight: 600;
  margin: 0;
}

.result-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

/* ── Modal keterangan paket ── */
.info-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.info-item {
  display: flex;
  gap: 12px;
  background: var(--bg-surface);
  padding: 14px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  align-items: flex-start;
}

.info-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
}

.icon-reguler { background: linear-gradient(135deg, #3b82f6, #1a3a6e); }
.icon-prime { background: linear-gradient(135deg, #a855f7, #7c3aed); }
.icon-ntco { background: linear-gradient(135deg, #64748b, #475569); }

.info-content { flex: 1; }

.info-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 3px;
}

.info-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
  font-weight: 500;
}

.btn-close-modal {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-lg);
  border: none;
  background: var(--v5-cta);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  box-shadow: var(--shadow-red);
  transition: transform var(--transition-fast);
}

.btn-close-modal:active { transform: scale(0.98); }

/* ── Tombol deal di kartu model ── */
.deal-btn-wrapper {
  padding: 12px 14px;
  border-top: 1px dashed var(--border-color);
  background: var(--bg-surface);
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.btn-deal-pricelist {
  flex: 1;
  padding: 12px;
  background: var(--bg-surface);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  cursor: not-allowed;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  outline: none;
}

.btn-deal-pricelist.ready {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  border-color: transparent;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.btn-share-pricelist {
  padding: 12px 18px;
  background: var(--bg-surface);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  cursor: not-allowed;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  outline: none;
  flex-shrink: 0;
}

.btn-share-pricelist.ready {
  background: #0f172a;
  color: #38bdf8;
  border-color: #1e293b;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

.btn-share-pricelist.ready:hover {
  background: #1e293b;
  color: #7dd3fc;
  transform: translateY(-1px);
}

[data-theme="dark"] .btn-share-pricelist.ready {
  background: #1e293b;
  color: #38bdf8;
  border-color: #334155;
}

/* ── Desktop ── */
@media (min-width: 1024px) {
  .kat-section .model-card { margin-bottom: 16px; }
}
