:root {
  --bg-dark: #0a0506;
  --bg-card: #14080b;
  --bg-card-hover: #1e0b10;

  --red-primary: #9e0b1c;
  --red-bright: #c8102e;
  --red-glow: rgba(180, 15, 35, 0.35);

  --gold-light: #f6e2a5;
  --gold-main: #d4af37;
  --gold-gradient: linear-gradient(135deg, #f7e4a8 0%, #d4af37 50%, #9e7412 100%);

  --text-main: #f5f0ea;
  --text-muted: #b8a9a2;
  --border-gold: rgba(212, 175, 55, 0.25);
  --border-gold-strong: rgba(212, 175, 55, 0.65);

  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --transition: all 0.25s ease;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: clip;
}

body {
  font-family: var(--font-main);
  background: radial-gradient(circle at top center, #29060d 0%, var(--bg-dark) 50%);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  max-width: 100%;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* Kunci agar elemen grid & form tidak pernah melebar keluar layar HP */
.car-grid > *,
.credit-grid > *,
.form-row > *,
.modal-grid > *,
.modal-specs > * {
  min-width: 0;
}

input, select, button {
  max-width: 100%;
  min-width: 0;
}

.container {
  width: 100%;
  max-width: 1520px;
  padding: 0 24px;
  margin: 0 auto;
}

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 4, 6, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-gold);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-icon { font-size: 1.4rem; color: var(--gold-main); flex-shrink: 0; }

.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.35));
  transition: transform 0.25s ease, filter 0.25s ease;
}

.brand:hover .brand-logo {
  transform: scale(1.06);
  filter: drop-shadow(0 0 14px rgba(212, 175, 55, 0.65));
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.brand-name {
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: 1.8px;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

.brand-sub {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--text-muted);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-links a:hover { color: var(--gold-light); }

.btn-nav {
  padding: 9px 18px;
  border-radius: 50px;
  border: 1px solid var(--gold-main);
  color: var(--gold-light) !important;
  background: rgba(158, 11, 28, 0.35);
}

.btn-nav:hover {
  background: var(--gold-gradient);
  color: #160507 !important;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  align-items: center;
  background: rgba(158, 11, 28, 0.25);
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--gold-main);
  border-radius: 2px;
}

/* ===== HERO ===== */
.hero {
  padding: 80px 0 72px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(24, 4, 8, 0.82) 0%, rgba(10, 5, 6, 0.98) 100%),
    url('https://commons.wikimedia.org/wiki/Special:FilePath/Ferrari_SF90_Stradale.jpg?width=1400') center/cover no-repeat;
  border-bottom: 1px solid var(--border-gold);
}

.hero-content { max-width: 800px; margin: 0 auto; }

.hero-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: var(--gold-light);
  padding: 6px 16px;
  border: 1px solid var(--border-gold-strong);
  border-radius: 50px;
  background: rgba(158, 11, 28, 0.4);
  margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(1.75rem, 4.3vw, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 14px;
  color: #fff;
}

.hero-title span {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  color: var(--text-muted);
  font-size: 0.96rem;
  max-width: 640px;
  margin: 0 auto 28px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* ===== BUTTONS ===== */
.btn-gold, .btn-outline {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 50px;
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-gold {
  background: var(--gold-gradient);
  color: #160507;
  font-weight: 700;
  border: none;
  box-shadow: 0 8px 22px rgba(212, 175, 55, 0.22);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(212, 175, 55, 0.38);
}

.btn-outline {
  border: 1px solid var(--gold-main);
  color: var(--gold-light);
  font-weight: 600;
  background: rgba(158, 11, 28, 0.28);
}

.btn-outline:hover {
  background: var(--red-primary);
  border-color: var(--gold-light);
  color: #fff;
}

.full-width { width: 100%; }

/* ===== CATALOG HEADER & FILTER ===== */
.catalog-section, .credit-section { padding: 64px 0 52px; }
.section-header { text-align: center; margin-bottom: 26px; }
.section-subtitle { display: block; font-size: 0.74rem; font-weight: 700; letter-spacing: 3px; color: var(--gold-main); margin-bottom: 6px; }
.section-title { font-size: clamp(1.5rem, 3vw, 2.3rem); font-weight: 800; color: #fff; }
.gold-divider { width: 70px; height: 3px; margin: 12px auto 0; background: var(--gold-gradient); border-radius: 2px; }

.condition-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.cond-btn {
  padding: 10px 22px;
  border-radius: 10px;
  border: 1px solid var(--border-gold);
  background: rgba(20, 6, 10, 0.9);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.cond-btn:hover { border-color: var(--gold-main); color: var(--gold-light); }
.cond-btn.active { background: var(--gold-gradient); color: #160507; border-color: var(--gold-light); }

/* Banner Mobil Bekas */
.used-banner {
  display: none;
  margin-bottom: 20px;
  padding: 18px 22px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(158, 11, 28, 0.42), rgba(20, 7, 10, 0.95));
  border: 1px solid var(--gold-main);
}
.used-banner.show { display: block; }
.used-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1.4px;
  padding: 4px 10px;
  border-radius: 50px;
  background: var(--gold-gradient);
  color: #160507;
  margin-bottom: 8px;
}
.used-banner h3 { font-size: 1.05rem; color: #fff; margin-bottom: 4px; }
.used-banner p { font-size: 0.86rem; color: var(--gold-light); }

/* Toolbar Search & Sort */
.catalog-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: rgba(22, 7, 11, 0.9);
  border: 1px solid var(--border-gold);
}

.search-box { position: relative; flex: 1; min-width: 0; }
.search-box input {
  width: 100%;
  padding: 11px 38px 11px 14px;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  background: #0d0507;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.92rem;
  outline: none;
}
.search-box input:focus { border-color: var(--gold-main); }
.clear-search {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--text-muted); font-size: 1.35rem;
  cursor: pointer; display: none; padding: 4px;
}
.clear-search.visible { display: block; }

.sort-box { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.sort-box label { font-size: 0.85rem; font-weight: 600; color: var(--gold-light); white-space: nowrap; }
.sort-box select {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: #0d0507;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
}

/* Filter Kategori */
.filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.filter-btn {
  padding: 8px 16px;
  border-radius: 50px;
  border: 1px solid var(--border-gold);
  background: rgba(24, 7, 11, 0.85);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}
.filter-btn:hover { border-color: var(--gold-main); color: var(--gold-light); }
.filter-btn.active {
  background: linear-gradient(135deg, var(--red-bright), var(--red-primary));
  border-color: var(--gold-main);
  color: var(--gold-light);
  box-shadow: 0 0 14px var(--red-glow);
}

.result-summary { text-align: center; font-size: 0.86rem; color: var(--text-muted); margin-bottom: 28px; }
.result-summary strong { color: var(--gold-light); }

/* ===== GRID KATALOG (MAKSIMAL 5 KESAMPING) ===== */
.category-block { margin-bottom: 48px; }
.category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 10px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border-gold);
}
.category-title { font-size: 1.25rem; font-weight: 700; color: var(--gold-light); display: flex; align-items: center; gap: 10px; }
.category-title::before { content: ''; width: 5px; height: 20px; background: var(--red-bright); border-radius: 3px; flex-shrink: 0; }
.category-count {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold-light);
  padding: 4px 12px;
  border-radius: 50px;
  background: rgba(158, 11, 28, 0.35);
  border: 1px solid var(--border-gold);
}

.car-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.car-card {
  background: linear-gradient(180deg, var(--bg-card) 0%, #0d0507 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.car-card:hover {
  transform: translateY(-5px);
  background: var(--bg-card-hover);
  border-color: var(--gold-main);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.6);
}

.car-thumb { position: relative; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; background: #1a070b; }
.car-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
.car-card:hover .car-thumb img { transform: scale(1.06); }

.car-badge {
  position: absolute; top: 9px; left: 9px;
  font-size: 0.64rem; font-weight: 700; text-transform: uppercase;
  padding: 4px 9px; border-radius: 50px;
  border: 1px solid var(--gold-main);
}
.car-badge.baru { background: rgba(158, 11, 28, 0.92); color: var(--gold-light); }
.car-badge.bekas { background: rgba(20, 12, 6, 0.9); color: #f6d57a; }

.car-year {
  position: absolute; top: 9px; right: 9px;
  font-size: 0.7rem; font-weight: 600;
  padding: 3px 8px; border-radius: 6px;
  background: rgba(10, 5, 6, 0.82); color: var(--text-main);
}

.car-body { padding: 14px; display: flex; flex-direction: column; flex-grow: 1; }
.car-name { font-size: 0.94rem; font-weight: 700; color: #fff; margin-bottom: 4px; line-height: 1.35; }
.car-price {
  font-size: 0.96rem;
  font-weight: 800;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
  word-break: break-word;
}
.car-specs { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 14px; }
.spec-pill {
  font-size: 0.7rem; color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.16);
  padding: 3px 7px; border-radius: 6px;
}
.car-btn {
  margin-top: auto; width: 100%; padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gold-main);
  background: linear-gradient(135deg, rgba(158, 11, 28, 0.62), rgba(92, 5, 16, 0.85));
  color: var(--gold-light);
  font-family: inherit; font-size: 0.84rem; font-weight: 600;
  cursor: pointer; transition: var(--transition);
}
.car-btn:hover { background: var(--gold-gradient); color: #160507; }

.empty-state {
  text-align: center; padding: 48px 20px; border-radius: var(--radius-md);
  background: rgba(20, 7, 10, 0.8); border: 1px dashed var(--border-gold-strong);
}
.empty-state h3 { color: var(--gold-light); margin-bottom: 6px; }
.empty-state p { color: var(--text-muted); margin-bottom: 18px; font-size: 0.9rem; }

/* ===== SIMULASI KREDIT ===== */
.credit-section {
  background: linear-gradient(180deg, rgba(30, 5, 11, 0.55) 0%, rgba(10, 5, 6, 0.96) 100%);
  border-top: 1px solid var(--border-gold);
  border-bottom: 1px solid var(--border-gold);
}

.credit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 24px;
  align-items: start;
}

.credit-card, .credit-result-card {
  width: 100%;
  padding: 24px;
  border-radius: var(--radius-md);
  background: rgba(18, 6, 9, 0.92);
  border: 1px solid var(--border-gold);
}
.credit-result-card {
  border-color: var(--gold-main);
  background: linear-gradient(160deg, #21070d 0%, #100508 100%);
}

.form-group { margin-bottom: 18px; width: 100%; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-group label { display: block; font-size: 0.84rem; font-weight: 600; color: var(--gold-light); margin-bottom: 7px; }
.form-group input[type="number"],
.form-group select {
  width: 100%;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: #0b0406;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.92rem;
  outline: none;
  text-overflow: ellipsis;
}
.form-group input:focus, .form-group select:focus { border-color: var(--gold-main); }

.range-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.range-header strong { color: var(--gold-light); font-size: 1rem; }
input[type="range"] { width: 100%; accent-color: var(--gold-main); cursor: pointer; }
.range-marks { display: flex; justify-content: space-between; font-size: 0.74rem; color: var(--text-muted); margin-top: 4px; }

.result-badge {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 1.5px;
  color: var(--gold-main); margin-bottom: 6px;
}
.monthly-amount {
  font-size: clamp(1.55rem, 4.5vw, 2.3rem);
  font-weight: 800;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
  word-break: break-word;
}
.result-note { font-size: 0.84rem; color: var(--text-muted); margin-bottom: 18px; }
.result-breakdown { border-top: 1px solid var(--border-gold); padding-top: 14px; margin-bottom: 16px; }
.rb-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding: 8px 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.rb-row strong { color: var(--text-main); text-align: right; margin-left: auto; }
.rb-row.highlight {
  margin-top: 6px; padding: 12px; border-radius: 10px;
  background: rgba(158, 11, 28, 0.35); border: 1px solid var(--border-gold);
  color: var(--gold-light); font-weight: 600;
}
.rb-row.highlight strong { color: var(--gold-light); font-size: 0.98rem; }
.disclaimer { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 16px; }

/* ===== FOOTER ===== */
.footer { padding-top: 46px; background: #070304; }
.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}
.footer-brand { max-width: 380px; }
.footer-logo-wrap { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.footer-logo { width: 38px; height: 38px; object-fit: contain; flex-shrink: 0; }
.footer-brand p, .footer-info p { color: var(--text-muted); font-size: 0.88rem; margin-top: 6px; }
.footer-info h4 { color: var(--gold-light); margin-bottom: 8px; }
.footer-bottom { text-align: center; padding: 18px; font-size: 0.8rem; color: var(--text-muted); }

/* ===== MODAL DETAIL ===== */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(5, 2, 3, 0.88); backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center;
  padding: 16px; overflow-y: auto;
}
.modal-backdrop.open { display: flex; }
.modal-box {
  position: relative; width: 100%; max-width: 900px; max-height: 92dvh;
  overflow-y: auto; overflow-x: hidden;
  background: linear-gradient(160deg, #1b060b 0%, #0d0507 100%);
  border: 1px solid var(--gold-main); border-radius: var(--radius-md);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
}
.modal-close {
  position: absolute; top: 10px; right: 10px; z-index: 20;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--gold-main); background: rgba(12, 4, 6, 0.92);
  color: var(--gold-light); font-size: 1.4rem; line-height: 1;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.modal-close:hover { background: var(--gold-gradient); color: #160507; }
.modal-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: stretch; }
.modal-image-wrap {
  position: relative;
  background: radial-gradient(circle at center, #24080f 0%, #0b0305 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 16px; min-height: 260px;
}
.modal-image-wrap img {
  width: 100%; height: auto; max-height: 400px;
  object-fit: contain; border-radius: 10px;
}
.modal-badge {
  position: absolute; top: 14px; left: 14px; z-index: 5;
  padding: 5px 12px; border-radius: 50px;
  font-size: 0.72rem; font-weight: 700; background: var(--red-primary);
  color: var(--gold-light); border: 1px solid var(--gold-main);
}
.modal-details { padding: 24px; display: flex; flex-direction: column; justify-content: center; }
.modal-category { font-size: 0.74rem; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--gold-main); }
.modal-title { font-size: clamp(1.15rem, 2.4vw, 1.45rem); font-weight: 800; color: #fff; margin: 6px 0; line-height: 1.3; }
.modal-price { font-size: clamp(1.1rem, 2.2vw, 1.3rem); font-weight: 800; color: var(--gold-light); margin-bottom: 10px; }
.modal-desc { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 16px; }
.modal-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-bottom: 18px; }
.modal-spec-item {
  padding: 9px 10px; border-radius: 8px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(212, 175, 55, 0.2);
  word-break: break-word;
}
.modal-spec-item small { display: block; font-size: 0.7rem; color: var(--text-muted); }
.modal-spec-item strong { font-size: 0.85rem; color: var(--gold-light); }
.modal-actions { display: flex; flex-direction: column; gap: 10px; }

/* =========================================
   RESPONSIVE BREAKPOINTS (TERURUT BERSIH)
   ========================================= */

/* Laptop: 4 kolom */
@media (max-width: 1279px) {
  .car-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Tablet: 3 kolom */
@media (max-width: 1023px) {
  .car-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .credit-grid { grid-template-columns: 1fr; }
  .modal-grid { grid-template-columns: 1fr; }
  .modal-image-wrap { min-height: unset; padding: 14px; }
  .modal-image-wrap img { max-height: 260px; }
}

/* Mobile (HP & Phablet) */
@media (max-width: 767px) {
  .container { padding: 0 16px; }
  .nav-content { height: 66px; }
  .brand-logo { width: 34px; height: 34px; }
  .brand-name { font-size: 1rem; letter-spacing: 1.2px; }
  .brand-sub { font-size: 0.52rem; letter-spacing: 1.3px; }

  .menu-toggle { display: flex; }

  .nav-links {
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 6px;
    background: rgba(14, 4, 6, 0.98);
    border-bottom: 1px solid var(--gold-main);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.75);
    max-height: 0;
    overflow: hidden;
    padding: 0 16px;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }

  .nav-links.active {
    max-height: 380px;
    padding: 14px 16px 20px;
  }

  .nav-links a {
    width: 100%;
    text-align: center;
    padding: 11px 14px;
    border-radius: 10px;
  }

  .nav-links a:hover {
    background: rgba(212, 175, 55, 0.1);
  }

  .btn-nav {
    margin-top: 6px;
  }

  .hero { padding: 52px 0 48px; }
  .hero-badge { font-size: 0.65rem; letter-spacing: 1.2px; padding: 5px 12px; }
  .hero-desc { font-size: 0.9rem; margin-bottom: 22px; }

  .catalog-section, .credit-section { padding: 48px 0 42px; }

  /* 3 Tab Kondisi sejajar rapi di HP */
  .condition-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .cond-btn {
    padding: 10px 6px;
    font-size: 0.78rem;
    text-align: center;
  }

  /* Toolbar Search & Sort tumpuk vertikal + anti auto-zoom iOS (16px) */
  .catalog-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px;
  }
  .search-box input,
  .sort-box select,
  .form-group input[type="number"],
  .form-group select {
    font-size: 16px;
  }
  .sort-box { justify-content: space-between; width: 100%; }
  .sort-box select { flex: 1; }

  /* Filter kategori bisa di-swipe menyamping agar tidak penuh layar */
  .filter-bar {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
    scrollbar-width: none;
  }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-btn { flex: 0 0 auto; }

  /* Grid 2 kolom di HP lebar */
  .car-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .car-body { padding: 11px; }
  .car-name { font-size: 0.86rem; }
  .car-price { font-size: 0.88rem; }
  .spec-pill { font-size: 0.66rem; }

  /* Simulasi Kredit */
  .credit-card, .credit-result-card { padding: 18px 16px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }

  /* Modal di HP */
  .modal-details { padding: 18px 16px; }
  .modal-image-wrap img { max-height: 220px; }

  /* Footer tumpuk rapi */
  .footer-content { flex-direction: column; gap: 22px; }
}

/* Mobile Kecil (<= 519px): 1 kolom penuh agar foto & harga lega */
@media (max-width: 519px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn-gold,
  .hero-actions .btn-outline { width: 100%; }

  .car-grid { grid-template-columns: 1fr; gap: 14px; }
  .car-body { padding: 14px; }
  .car-name { font-size: 0.96rem; }
  .car-price { font-size: 1rem; }

  .category-title { font-size: 1.12rem; }

  .modal-backdrop { padding: 10px; align-items: flex-start; }
  .modal-box { max-height: 94dvh; margin: auto 0; }
  .modal-image-wrap { padding: 10px; }
  .modal-image-wrap img { max-height: 195px; }
  .modal-details { padding: 14px; }
  .modal-specs { gap: 7px; }
  .modal-spec-item strong { font-size: 0.8rem; }
}