/* AutoAkses — Toko Aksesoris & Spare Part Otomotif */
/* Warna: #1c1c1c primer, #ff9800 aksen, #121212 background */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #121212;
  --surface: #1c1c1c;
  --surface2: #242424;
  --border: #2e2e2e;
  --accent: #ff9800;
  --accent-dark: #e65100;
  --text: #f0f0f0;
  --text-muted: #9e9e9e;
  --font: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  min-height: 100vh;
}

/* DEMO BAR */
.demo-bar {
  background: #ff9800;
  color: #000;
  text-align: center;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.demo-bar a { color: #000; text-decoration: underline; }
.demo-bar a:hover { opacity: 0.75; }

/* NAV */
nav {
  background: var(--surface);
  border-bottom: 2px solid var(--accent);
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  position: sticky;
  top: 37px;
  z-index: 900;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.nav-logo svg { flex-shrink: 0; }
.nav-logo-text { font-size: 1.2rem; font-weight: 800; letter-spacing: 0.05em; }
.nav-logo-text span { color: var(--accent); }

/* Checkbox hack menu */
#menu-toggle { display: none; }
.menu-btn {
  display: none;
  background: none;
  border: 1.5px solid var(--accent);
  border-radius: 4px;
  padding: 7px 10px;
  cursor: pointer;
  color: var(--accent);
  flex-direction: column;
  gap: 4px;
}
.menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: 0.3s;
}
.nav-links { display: flex; gap: 4px; list-style: none; }
.nav-links a {
  display: block;
  padding: 8px 14px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); background: rgba(255,152,0,0.1); }

@media (max-width: 680px) {
  .menu-btn { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--surface);
    flex-direction: column;
    padding: 12px 0;
    border-bottom: 2px solid var(--accent);
  }
  #menu-toggle:checked ~ .nav-links { display: flex; }
}

/* HERO */
.hero {
  background: linear-gradient(135deg, #0a0a0a 0%, #1c1c1c 50%, #0f1a00 100%);
  padding: 80px 20px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 100%, rgba(255,152,0,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,152,0,0.15);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.hero h1 span { color: var(--accent); }
.hero p {
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 520px;
  margin: 0 auto 32px;
}
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--accent);
  color: #000;
  box-shadow: 0 4px 15px rgba(255,152,0,0.35);
}
.btn-primary:hover { box-shadow: 0 6px 22px rgba(255,152,0,0.5); opacity: 0.93; }
.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn-outline:hover { background: rgba(255,152,0,0.1); }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }
.btn-block { width: 100%; justify-content: center; }

/* SECTION */
section { padding: 60px 20px; }
.section-title {
  text-align: center;
  margin-bottom: 40px;
}
.section-title h2 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 8px;
}
.section-title h2 span { color: var(--accent); }
.section-title p { color: var(--text-muted); font-size: 0.97rem; }

/* KATEGORI CARDS */
.kategori-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}
.kategori-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 24px 12px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, transform 0.2s;
}
.kategori-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.kategori-card svg { margin-bottom: 10px; }
.kategori-card h3 { font-size: 0.92rem; font-weight: 700; margin-bottom: 4px; }
.kategori-card p { font-size: 0.78rem; color: var(--text-muted); }

/* PRODUCT GRID */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.product-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.product-card:hover { border-color: var(--accent); transform: translateY(-4px); }

/* CSS Thumb */
.product-thumb {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface2);
  position: relative;
  overflow: hidden;
}
.thumb-1 { background: linear-gradient(135deg, #1a1a1a 0%, #2d1a00 100%); }
.thumb-2 { background: linear-gradient(135deg, #0d1a0d 0%, #1a2e1a 100%); }
.thumb-3 { background: linear-gradient(135deg, #1a0d1a 0%, #2e1a2e 100%); }
.thumb-4 { background: linear-gradient(135deg, #0d1a2e 0%, #1a2e3c 100%); }
.thumb-5 { background: linear-gradient(135deg, #1a1a00 0%, #2e2e00 100%); }
.thumb-6 { background: linear-gradient(135deg, #1a0a0a 0%, #2e0a0a 100%); }

.product-info { padding: 14px; }
.product-info h3 { font-size: 0.92rem; font-weight: 700; margin-bottom: 4px; line-height: 1.3; }
.product-info .harga {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 10px;
}
.product-info .badge {
  display: inline-block;
  background: rgba(255,152,0,0.15);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}

/* FITUR */
.fitur-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}
.fitur-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 24px 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.fitur-card svg { flex-shrink: 0; margin-top: 2px; }
.fitur-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 5px; }
.fitur-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }

/* PROMO BANNER */
.promo-banner {
  background: linear-gradient(90deg, #e65100, #ff9800, #e65100);
  border-radius: 12px;
  padding: 36px 28px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}
.promo-banner h2 { font-size: 1.6rem; font-weight: 900; color: #000; margin-bottom: 8px; }
.promo-banner p { color: rgba(0,0,0,0.75); margin-bottom: 20px; font-size: 0.97rem; }
.btn-dark { background: #000; color: #fff; }
.btn-dark:hover { background: #111; }

/* FORM */
.form-wrap {
  max-width: 560px;
  margin: 0 auto;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 32px 28px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  padding: 12px 14px;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-group select option { background: var(--surface); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }

/* KONTACT */
.kontak-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}
@media (max-width: 620px) { .kontak-grid { grid-template-columns: 1fr; } }
.kontak-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 20px;
}
.kontak-item svg { flex-shrink: 0; }
.kontak-item h3 { font-size: 0.9rem; font-weight: 700; margin-bottom: 4px; color: var(--accent); }
.kontak-item p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }
.kontak-item a { color: var(--text); text-decoration: none; }
.kontak-item a:hover { color: var(--accent); }

/* PRODUK DETAIL */
.produk-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 960px;
  margin: 0 auto;
  align-items: start;
}
@media (max-width: 640px) { .produk-detail { grid-template-columns: 1fr; } }
.produk-img-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid var(--border);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a0d00, #2e1a00);
}
.produk-info h1 { font-size: 1.6rem; font-weight: 900; margin-bottom: 8px; line-height: 1.2; }
.produk-info .harga-besar {
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent);
  margin: 12px 0;
}
.produk-info .deskripsi { color: var(--text-muted); margin-bottom: 20px; line-height: 1.7; }
.variasi-group { margin-bottom: 20px; }
.variasi-group h4 { font-size: 0.85rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 10px; }
.variasi-opts { display: flex; gap: 8px; flex-wrap: wrap; }
.variasi-opts label {
  background: var(--surface2);
  border: 1.5px solid var(--border);
  padding: 7px 14px;
  border-radius: 5px;
  font-size: 0.87rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.variasi-opts input[type=radio] { display: none; }
.variasi-opts input[type=radio]:checked + label { border-color: var(--accent); color: var(--accent); }

/* SPECS TABLE */
.specs-table { width: 100%; border-collapse: collapse; margin-top: 16px; }
.specs-table tr { border-bottom: 1px solid var(--border); }
.specs-table td { padding: 10px 8px; font-size: 0.88rem; }
.specs-table td:first-child { color: var(--text-muted); font-weight: 600; width: 45%; }

/* BREADCRUMB */
.breadcrumb {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 16px 20px 0;
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--accent); }

/* ORDER STEPS */
.steps {
  display: flex;
  gap: 0;
  max-width: 560px;
  margin: 0 auto 32px;
  counter-reset: step;
}
.step {
  flex: 1;
  text-align: center;
  position: relative;
  padding-bottom: 12px;
}
.step::after {
  content: '';
  position: absolute;
  top: 15px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.step:last-child::after { display: none; }
.step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--surface2);
  border: 2px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 800;
  position: relative;
  z-index: 1;
  margin-bottom: 6px;
}
.step.active .step-num { background: var(--accent); border-color: var(--accent); color: #000; }
.step p { font-size: 0.75rem; color: var(--text-muted); }

/* ALERT */
.alert {
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 0.88rem;
  margin-bottom: 20px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.alert-success { background: rgba(76,175,80,0.1); border: 1px solid #4caf50; color: #81c784; }
.alert-info { background: rgba(255,152,0,0.1); border: 1px solid var(--accent); color: var(--accent); }

/* FOOTER */
footer {
  background: var(--surface);
  border-top: 2px solid var(--border);
  padding: 40px 20px 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto 32px;
}
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }
.footer-brand p { color: var(--text-muted); font-size: 0.88rem; margin-top: 8px; line-height: 1.6; }
.footer-col h4 { font-size: 0.88rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: var(--text-muted); text-decoration: none; font-size: 0.88rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* UTILITY */
.container { max-width: 1100px; margin: 0 auto; }
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.divider { height: 1px; background: var(--border); margin: 0 20px; }

/* RATING STARS */
.stars { color: var(--accent); font-size: 1rem; letter-spacing: 2px; }
.rating-count { color: var(--text-muted); font-size: 0.82rem; margin-left: 6px; }

/* TESTIMONI */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}
.testi-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 22px;
}
.testi-card .stars { margin-bottom: 10px; display: block; }
.testi-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; margin-bottom: 14px; }
.testi-author { font-size: 0.85rem; font-weight: 700; color: var(--text); }
.testi-city { font-size: 0.78rem; color: var(--text-muted); }
