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

:root {
  --ink: #0b1b2e;
  --ink-2: #14304d;
  --primary: #1d5fd1;
  --primary-hover: #164ba8;
  --primary-soft: #e8f0fc;
  --live: #19b37a;
  --bg: #f3f5f8;
  --card: #ffffff;
  --text: #0f1a27;
  --muted: #5c6b7c;
  --border: #dfe4eb;
  --warn-bg: #fff7e0;
  --warn-line: #f2dc9b;
  --warn-text: #7a5300;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 1px 2px rgba(11,27,46,0.06);
  --shadow-md: 0 8px 28px rgba(11,27,46,0.10);
  --header: var(--ink);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a, button, input, select, textarea { font-family: inherit; }
:focus-visible { outline: 3px solid rgba(29,95,209,0.45); outline-offset: 2px; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 18px; }

/* ===== HEADER ===== */
.header {
  background: var(--ink);
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
}
.nav-left { display: flex; align-items: center; gap: 12px; }
.btn-menu {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.08);
  color: #fff;
  font-size: 1.15rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.btn-menu:hover { background: rgba(255,255,255,0.14); }
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.2px;
}
.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}
.cart-btn {
  position: relative;
  color: #fff;
  text-decoration: none;
  font-size: 1.15rem;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.08);
  transition: background 0.15s;
}
.cart-btn:hover { background: rgba(255,255,255,0.14); }
.cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--live);
  color: #04251a;
  font-size: 0.68rem;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border: 2px solid var(--ink);
}

/* ===== SIDEBAR ===== */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11,27,46,0.6);
  z-index: 200;
}
.sidebar-overlay.show { display: block; }
.sidebar {
  position: fixed;
  top: 0;
  left: -300px;
  width: 280px;
  height: 100%;
  background: #fff;
  z-index: 210;
  transition: left 0.25s ease;
  box-shadow: 8px 0 32px rgba(0,0,0,0.18);
  overflow-y: auto;
}
.sidebar.open { left: 0; }
.sidebar-header {
  background: var(--ink);
  color: #fff;
  padding: 20px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 0.95rem;
}
.sidebar-header button {
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  line-height: 1;
}
.sidebar-nav a {
  display: block;
  padding: 15px 20px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  border-left: 3px solid transparent;
  transition: background 0.15s, color 0.15s;
}
.sidebar-nav a:hover { background: var(--primary-soft); color: var(--primary); }
.sidebar-nav a.active {
  background: var(--primary-soft);
  color: var(--primary);
  border-left-color: var(--primary);
  font-weight: 700;
}

/* ===== HERO ===== */
.hero {
  background: var(--ink);
  background-image:
    radial-gradient(circle at 92% 8%, rgba(29,95,209,0.35), transparent 42%),
    linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 100%);
  color: #fff;
  text-align: left;
  padding: 34px 24px 26px;
  margin: 16px;
  border-radius: var(--radius-lg);
  max-width: 1068px;
}
@media (min-width: 1100px) { .hero { margin: 16px auto; } }
.hero h1 {
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.3px;
  max-width: 22ch;
}
.hero-sub {
  margin-top: 10px;
  color: #b8c7d9;
  font-size: 0.92rem;
  max-width: 46ch;
}
.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(25,179,122,0.14);
  color: #7ee3b9;
  font-size: 0.8rem;
  font-weight: 600;
}
.hero-status::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 4px rgba(25,179,122,0.22);
}
.hero-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.12);
  counter-reset: step;
}
.hero-steps li {
  counter-increment: step;
  font-size: 0.8rem;
  color: #d5e0ec;
  line-height: 1.4;
}
.hero-steps li::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
}

/* ===== PRODUK ===== */
.section-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin: 26px 18px 14px;
  color: var(--text);
  letter-spacing: -0.1px;
}
.produk-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 0 16px;
  margin-bottom: 8px;
  max-width: 1100px;
}
@media (min-width: 700px) {
  .produk-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 0 18px; }
}
@media (min-width: 1000px) {
  .produk-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1100px) {
  .section-title { max-width: 1064px; margin-left: auto; margin-right: auto; padding: 0 2px; }
  .produk-grid { margin-left: auto; margin-right: auto; }
}
.produk-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px 16px 16px;
  text-align: left;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.produk-card:hover { border-color: #b9c6d8; box-shadow: var(--shadow-md); }
.produk-card h3 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--text);
}
.produk-card .deskripsi {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 16px;
  flex: 1;
  line-height: 1.5;
}
.produk-card .harga {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.4px;
  font-variant-numeric: tabular-nums;
}
.produk-card .harga.sold { color: #b42318; font-size: 0.95rem; }
.btn-tambah {
  width: 100%;
  padding: 11px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.btn-tambah:hover { background: var(--primary-hover); }
.btn-tambah:active { transform: scale(0.98); }
.btn-tambah:disabled { background: #aab4c0; cursor: not-allowed; }
.qty-row { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.qty-row .btn-qty {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.qty-row .btn-qty:hover { background: #f5f7fa; }
.qty-row .btn-qty.plus { background: var(--primary); color: #fff; border-color: var(--primary); }
.qty-row .btn-qty.plus:hover { background: var(--primary-hover); }
.qty-val { min-width: 26px; text-align: center; font-weight: 800; font-size: 1rem; }

/* ===== CHECKOUT ===== */
.checkout-section { padding: 22px 16px 48px; max-width: 560px; margin: 0 auto; }
.checkout-section .section-title { margin-left: 2px; margin-right: 2px; }
.cart-box {
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 8px;
  border: 1px solid var(--border);
}
.cart-empty {
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  padding: 18px 8px;
  line-height: 1.5;
}
.cart-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}
.cart-row:last-of-type { border-bottom: none; }
.total-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.95rem;
}
.total-line strong {
  color: var(--text);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.4px;
  font-variant-numeric: tabular-nums;
}

.pay-section { margin-top: 4px; }
.pay-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
}
.pay-card .pay-label { font-weight: 700; font-size: 0.9rem; margin-bottom: 10px; color: var(--text); }
.pay-card .pay-num {
  background: var(--primary-soft);
  padding: 11px 14px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 1px;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}
.pay-card .pay-an { font-size: 0.8rem; color: var(--muted); margin-top: 8px; }

.qr-wrap {
  text-align: center;
  padding: 22px;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 8px;
}
.qr-wrap img {
  max-width: 220px;
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 6px;
  background: #fff;
}
.qr-caption { font-size: 0.85rem; color: var(--muted); margin-top: 12px; }

/* Form */
.form-box {
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px 20px;
  border: 1px solid var(--border);
  margin-top: 22px;
}
.form-box h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 18px; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 7px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 0.95rem;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  color: var(--text);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #98a4b3; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(29,95,209,0.15);
}
.btn-kirim, .btn {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
  transition: background 0.15s, transform 0.1s;
}
.btn-kirim:hover, .btn:hover { background: var(--primary-hover); }
.btn-kirim:active, .btn:active { transform: scale(0.98); }
.btn-kirim:disabled { background: #aab4c0; cursor: not-allowed; transform: none; }

/* ===== TESTIMONI ===== */
.testimoni { padding: 34px 18px 30px; background: #fff; border-top: 1px solid var(--border); }
.testimoni h2 { font-size: 1.1rem; font-weight: 800; margin: 0 auto 16px; max-width: 1064px; }
.testi-slider { position: relative; min-height: 120px; max-width: 560px; margin: 0 auto 0 0; }
@media (min-width: 1100px) { .testi-slider { margin-left: calc((100% - 1064px) / 2); } }
.testi-slide {
  position: absolute;
  left: 0;
  right: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  background: var(--bg);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-size: 0.9rem;
  color: var(--text);
  border: 1px solid var(--border);
}
.testi-slide.active { position: relative; opacity: 1; pointer-events: auto; }
.testi-slide p { margin-bottom: 12px; line-height: 1.55; }
.testi-slide strong { display: block; color: var(--muted); font-size: 0.82rem; font-weight: 600; }

/* ===== FOOTER ===== */
.footer { background: var(--ink); text-align: center; padding: 30px 18px; color: #8fa1b5; font-size: 0.82rem; }
.footer .social { display: flex; justify-content: center; gap: 12px; margin-bottom: 16px; }
.footer .social a {
  min-width: 56px;
  height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.15s;
}
.footer .social a:hover { opacity: 0.85; }
.footer .social .wa { background: #1fa855; }
.footer .social .tg { background: #229ed9; }

/* ===== SUKSES ===== */
.sukses-wrap { max-width: 480px; margin: 0 auto; padding: 24px 16px 48px; }
.sukses-box {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 30px 22px 26px;
  border: 1px solid var(--border);
  text-align: center;
  box-shadow: var(--shadow-md);
}
.sukses-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #e3f7ee;
  color: #0c7a52;
  font-size: 1.6rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sukses-box h1 { font-size: 1.3rem; margin-bottom: 6px; font-weight: 800; }
.inv-id { color: var(--muted); margin-bottom: 22px; font-size: 0.9rem; }
.detail-box {
  text-align: left;
  background: var(--bg);
  padding: 16px;
  border-radius: var(--radius);
  margin-bottom: 18px;
  border: 1px solid var(--border);
  font-size: 0.9rem;
}
.detail-box p { margin-bottom: 4px; }
.pay-wait {
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 18px;
  text-align: left;
}
.pay-wait strong { display: block; color: var(--warn-text); margin-bottom: 4px; }
.pay-wait span { color: var(--warn-text); font-size: 0.88rem; line-height: 1.5; }
.btn-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  background: #1fa855;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  margin-top: 12px;
  transition: background 0.15s;
}
.btn-wa:hover { background: #178a45; }
.hint { font-size: 0.8rem; color: var(--muted); margin-top: 14px; line-height: 1.4; }
.btn-sm {
  background: var(--primary);
  color: #fff;
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 0.85rem;
  text-decoration: none;
  font-weight: 600;
  border: none;
  transition: background 0.15s;
}
.btn-sm:hover { background: var(--primary-hover); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
