/* ============================================================
   N4 OUTDOOR — Stylesheet
   Tema: hijau hutan + aksen amber, hangat & petualang
   ============================================================ */
:root {
  --g-950: #0c1f16;
  --g-900: #12291d;
  --g-800: #1b4332;
  --g-700: #2d6a4f;
  --g-500: #40916c;
  --g-200: #b7e4c7;
  --g-100: #d8f3dc;
  --amber: #f4a261;
  --amber-dark: #e76f51;
  --sun: #ffd166;
  --bg: #f6f5f0;
  --card: #ffffff;
  --ink: #1b2a22;
  --muted: #5f6f66;
  --line: #e4e2d9;
  --danger: #c0392b;
  --ok: #2d6a4f;
  --radius: 16px;
  --shadow: 0 8px 30px rgba(12, 31, 22, 0.08);
  --shadow-lg: 0 16px 50px rgba(12, 31, 22, 0.16);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; } /* atribut hidden selalu menang atas display CSS */
button, .btn, .qbtn, summary { touch-action: manipulation; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--g-700); text-decoration: none; }
a:hover { text-decoration: underline; }
hr { border: 0; border-top: 1px dashed var(--line); margin: 14px 0; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 780px; }
.container.wide { max-width: 1200px; }
.center { text-align: center; }
.ta-r { text-align: right; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.warn { color: #8a6d3b; background: #fff7e0; border: 1px solid #f1dfa0; padding: 10px 14px; border-radius: 10px; margin-top: 10px; font-size: 0.9rem; }

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 0; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 0.95rem; line-height: 1.2;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s;
  text-decoration: none !important; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--g-800); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--g-700); }
.btn-ghost { background: transparent; color: var(--g-800); border: 2px solid var(--g-800); }
.btn-ghost:hover { background: var(--g-100); }
.hero .btn-ghost, .page-hero .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.hero .btn-ghost:hover, .page-hero .btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn-wa { background: #25d366; color: #06331b; }
.btn-wa:hover { background: #1fbf5a; }
.btn-light { background: var(--sun); color: var(--g-950); }
.btn-danger { background: #fdecea; color: var(--danger); }
.btn-lg { padding: 16px 30px; font-size: 1.05rem; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-block { width: 100%; white-space: normal; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 245, 240, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none !important; }
.brand-name { font-weight: 800; font-size: 1.25rem; color: var(--g-900); letter-spacing: 0.5px; white-space: nowrap; }
.brand-accent { color: var(--g-700); }
.nav-menu { display: flex; align-items: center; gap: 22px; }
.nav-link { font-weight: 600; color: var(--ink); font-size: 0.95rem; white-space: nowrap; }
.nav-link.active, .nav-link:hover { color: var(--g-700); text-decoration: none; }
.nav-toggle, .nav-burger { display: none; }

/* Layar menengah: nav inline dipadatkan agar tidak terdesak sebelum burger aktif */
@media (max-width: 980px) {
  .nav-wrap { gap: 12px; }
  .nav-menu { gap: 14px; }
  .nav-link { font-size: 0.9rem; }
}

/* Nav jadi menu burger lebih awal (sebelumnya 640px) — di lebar 641–760px
   nav inline sempit dan membuat label seperti "Cara Sewa" patah baris */
@media (max-width: 760px) {
  .nav-burger { display: block; font-size: 1.5rem; cursor: pointer; color: var(--g-900); }
  .nav-menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: flex-start;
    padding: 18px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); gap: 14px;
  }
  .nav-toggle:checked ~ .nav-menu { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #eef7f0;
  background: radial-gradient(1200px 500px at 80% -10%, #2d6a4f 0%, transparent 60%),
              linear-gradient(160deg, var(--g-950) 0%, var(--g-800) 60%, #235c43 100%);
  padding: 90px 0 130px;
}
.hero-inner { position: relative; z-index: 2; }
.hero-badge {
  display: inline-block; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--g-100); padding: 7px 16px; border-radius: 999px; font-size: 0.85rem; font-weight: 600; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); font-weight: 800; line-height: 1.12; letter-spacing: -0.5px; }
.hero-accent { color: var(--sun); }
.hero-sub { margin: 18px 0 28px; font-size: 1.1rem; color: #cfe8d6; max-width: 680px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 44px;
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius); padding: 18px; backdrop-filter: blur(6px);
}
.hero-stats div { text-align: center; }
.hero-stats strong { display: block; font-size: 1.3rem; color: var(--sun); }
.hero-stats span { font-size: 0.8rem; color: #b7d4c0; }
.hero-hills { position: absolute; bottom: -2px; left: 0; width: 100%; height: 90px; color: var(--bg); z-index: 1; }

/* ---------- Section umum ---------- */
.section { padding: 72px 0; }
.section-alt { background: #efeee6; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: 0.75rem; font-weight: 800; color: var(--amber-dark); margin-bottom: 6px; }
.section-title { font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 800; letter-spacing: -0.4px; }
.section-sub { color: var(--muted); margin-top: 20px; }

/* ---------- Grid & kartu item ---------- */
.grid-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin-top: 30px; }
.item-card, .feature-card, .step-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow); transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.item-card:hover, .feature-card:hover, .step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.item-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.item-icon {
  font-size: 1.6rem; width: 52px; height: 52px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--g-100), #e9f5ee); border-radius: 14px;
}
.item-img { width: 52px; height: 52px; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); }
.badge { font-size: 0.75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.badge-hot { background: #fdebd7; color: #b3551d; }
.item-name { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.item-desc { font-size: 0.88rem; color: var(--muted); min-height: 44px; }
.item-stock { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 600; color: var(--g-700); margin-top: 8px; }
.item-stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #2e9e5b; flex: 0 0 auto; }
.item-stock.low { color: #b3551d; }
.item-stock.low::before { background: #e8a13c; }
.item-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); gap: 8px; }
.item-price { display: flex; flex-direction: column; line-height: 1.15; }
.item-price strong { font-size: 1.2rem; color: var(--g-800); }
.item-price span { font-size: 0.75rem; color: var(--muted); margin-top: 2px; }
.qty { display: inline-flex; align-items: center; gap: 1px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.item-card .qty { flex-shrink: 0; margin-left: auto; }
.item-card .qty:not(.active) { background: transparent; border-color: transparent; padding: 0; }
.qbtn {
  width: 24px; height: 24px; border-radius: 50%; border: 0; background: var(--g-800); color: #fff;
  font-size: 0.8rem; font-weight: 800; cursor: pointer; line-height: 1;
  transition: background-color 0.15s ease, transform 0.12s ease;
}
.qbtn:hover { background: var(--g-700); }
.qbtn:active { transform: scale(0.92); }
.qbtn:disabled { opacity: 0.35; cursor: default; pointer-events: none; }
.qbtn.add {
  width: auto; height: 30px; padding: 0 14px; border-radius: 999px;
  font-size: 0.82rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  white-space: nowrap; flex: 0 0 auto;
}
.qval { min-width: 20px; text-align: center; font-weight: 800; font-size: 0.9rem; }

/* ---------- Filter katalog ---------- */
.filter-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.filter-chip { border: 2px solid var(--line); background: #fff; cursor: pointer; font-size: 0.85rem; padding: 7px 16px; }
@media (max-width: 640px) {
  .filter-row {
    flex-wrap: nowrap; overflow-x: auto; padding: 2px 2px 8px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .filter-row::-webkit-scrollbar { display: none; }
  .filter-chip { flex: 0 0 auto; }
}
.filter-chip.active { background: var(--g-800); color: #fff; border-color: var(--g-800); }
.stock-note { margin-top: 26px; color: var(--muted); font-size: 0.9rem; text-align: center; }

/* ---------- Langkah / fitur ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-top: 30px; }
.step-card { position: relative; text-align: left; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 10px;
  background: var(--g-800); color: #fff;
  font-size: 0.85rem; font-weight: 800; letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.step-icon { font-size: 1.8rem; display: block; margin-bottom: 10px; }
.step-card h3 { margin-bottom: 6px; font-size: 1.05rem; }
.step-card p { font-size: 0.88rem; color: var(--muted); }
.feature-card .feature-icon { font-size: 1.8rem; display: block; margin-bottom: 10px; }
.feature-card h3 { margin-bottom: 8px; font-size: 1.05rem; text-wrap: balance; }
.feature-card p { font-size: 0.88rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.narrow .faq-list { margin-top: 24px; }
.faq-item {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 20px; margin-bottom: 12px;
}
.faq-item summary { font-weight: 700; cursor: pointer; list-style: none; position: relative; padding-right: 28px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 0; top: 0; font-size: 1.2rem; color: var(--g-700); }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin-top: 10px; color: var(--muted); font-size: 0.92rem; }

/* ---------- Kontak & CTA ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
.contact-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.contact-card h2 { margin-bottom: 14px; }
.contact-addr { font-weight: 600; margin-bottom: 8px; }
.contact-card .hero-cta { margin-top: 18px; }
.cta-band {
  background: linear-gradient(150deg, var(--g-900), var(--g-700));
  color: #fff; border-radius: var(--radius); padding: 34px; display: flex; flex-direction: column;
  justify-content: center; gap: 10px; box-shadow: var(--shadow-lg);
}
.cta-band h2 { font-size: 1.7rem; line-height: 1.2; }
.cta-band p { color: #cfe8d6; }

/* ---------- Page hero ---------- */
.page-hero { background: linear-gradient(160deg, var(--g-950), var(--g-800)); color: #eef7f0; padding: 54px 0; }
.page-hero h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; }
.page-hero p { color: #cfe8d6; margin-top: 8px; max-width: 640px; }

/* ---------- Keranjang ---------- */
.cart-rows { display: flex; flex-direction: column; gap: 12px; }
.cart-row {
  display: grid; grid-template-columns: 56px 1fr auto auto; gap: 14px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow);
}
.cart-row .item-icon { width: 48px; height: 48px; font-size: 1.4rem; }
.cart-row h3 { font-size: 0.98rem; }
.cart-row small { color: var(--muted); }
.cart-row .row-right { display: flex; align-items: center; gap: 14px; }
.row-remove { background: none; border: 0; color: var(--danger); cursor: pointer; font-size: 1.1rem; padding: 6px 8px; }
.cart-summary { margin-top: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.row-total {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--g-100); border-radius: 12px; padding: 14px 16px; font-size: 1.05rem;
}
.row-total strong { font-size: 1.35rem; color: var(--g-800); }
.empty-state { text-align: center; padding: 60px 20px; }
.empty-icon { font-size: 3rem; display: block; margin-bottom: 12px; }
.empty-state h2 { margin-bottom: 8px; }
.empty-state .btn { margin-top: 18px; }

/* ---------- Form checkout ---------- */
.checkout-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; align-items: start; }
.checkout-grid > * { min-width: 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card > :last-child { margin-bottom: 0; }
.form-card h2, .sum-card h2, .review-card h2, .pay-card h2, .ok-card h2 { font-size: 1.2rem; margin-bottom: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: 0.88rem; margin-bottom: 6px; }
.field input, .field textarea {
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px;
  font-family: inherit; font-size: 16px; /* 16px = anti auto-zoom iOS */
  background: #fcfcfa; transition: border 0.15s; color: var(--ink);
}
.field input:not([type="radio"]):not([type="checkbox"]), .field textarea { width: 100%; }
.radio-card input { width: auto; height: auto; margin: 0; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--g-700); background: #fff; }
.field small { display: block; color: var(--muted); margin-top: 6px; font-size: 0.8rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.radio-group { display: grid; gap: 10px; }
.field-label { display: block; font-size: 0.84rem; font-weight: 700; color: var(--g-900); margin-bottom: 6px; }
.turnstile-field { margin-bottom: 16px; }
.turnstile-field small { display: block; color: var(--muted); margin-top: 6px; font-size: 0.8rem; }
.radio-card input { position: absolute; opacity: 0; }
.radio-body {
  display: flex; flex-direction: column; border: 2px solid var(--line); border-radius: 12px;
  padding: 12px 16px; cursor: pointer; transition: border 0.15s;
}
.radio-body em { font-style: normal; font-size: 0.8rem; color: var(--muted); }
.radio-card input:checked + .radio-body { border-color: var(--g-700); background: var(--g-100); }
.form-err { background: #fdecea; color: var(--danger); border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; font-size: 0.9rem; }
.sum-card { position: sticky; top: 90px; }
.sum-lines { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.sum-line { display: flex; justify-content: space-between; gap: 10px; font-size: 0.94rem; }
.sum-line em { color: var(--muted); font-style: normal; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 0.94rem; align-items: baseline; }
.sum-row em { color: var(--muted); font-style: normal; font-size: 0.8rem; }
.sum-row.sum-note { color: var(--amber-dark); }
.sum-card .row-total { margin-top: 10px; }
.voucher-box { display: flex; gap: 8px; margin: 10px 0 2px; }
.voucher-box input {
  flex: 1; min-width: 0; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 16px; background: #fcfcfa; color: var(--ink);
  text-transform: uppercase; transition: border 0.15s;
}
.voucher-box input:focus { outline: none; border-color: var(--g-700); background: #fff; }
.voucher-box .btn { padding: 10px 16px; border-radius: 10px; font-size: 0.85rem; flex: 0 0 auto; }
.voucher-msg { font-size: 0.8rem; margin: 6px 0 0; }
.voucher-msg.ok { color: var(--g-700); }
.voucher-msg.err { color: var(--danger); }
.voucher-row strong { color: var(--g-700); }
.sum-note em, .sum-note strong { color: var(--amber-dark); }

/* ---------- Stepper status ---------- */
.stepper {
  display: flex; gap: 6px; list-style: none; margin-bottom: 22px; flex-wrap: wrap;
}
.stepper li {
  flex: 1; min-width: 130px; display: flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px;
  font-size: 0.85rem; font-weight: 600; color: var(--muted);
}
.stepper li span {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg); border: 1px solid var(--line); font-size: 0.8rem; flex-shrink: 0;
}
.stepper li.done { color: var(--g-800); border-color: var(--g-200); }
.stepper li.done span { background: var(--g-800); color: #fff; border-color: var(--g-800); }
.stepper li.now { border-color: var(--amber); box-shadow: 0 0 0 3px #f4a26133; color: var(--ink); }

/* ---------- Pembayaran ---------- */
.review-card { margin-bottom: 18px; }
.review-card hr { margin: 12px 0; }
.pay-card { text-align: center; }
.pay-steps { text-align: left; margin: 0 auto 18px; max-width: 460px; padding-left: 20px; color: var(--muted); font-size: 0.92rem; }
.pay-steps strong { color: var(--ink); }
.qris-box {
  max-width: 340px; margin: 0 auto 16px; background: #fff; border: 2px solid var(--g-200);
  border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow);
}
.qris-box img { width: 100%; border-radius: 8px; }
.deadline { background: #fff7e0; color: #8a6d3b; border-radius: 10px; padding: 10px 14px; font-size: 0.9rem; margin-bottom: 16px; }
.ok-card { border: 2px solid var(--g-200); background: #f4faf5; }
.cancel-card { border: 2px solid #f3c1bb; background: #fdf4f3; }
/* Jarak antar blok — reset global membuat margin default paragraf/tombol nol */
.form-card .muted.center { margin-top: 12px; }
.review-card .row-total + .btn { margin-top: 12px; }
.pay-card .muted.center { margin-top: 10px; }
.pay-card, .ok-card, .cancel-card { margin-bottom: 18px; }
.ok-card .hero-cta { margin-top: 16px; }
.status-badge { display: inline-block; font-size: 0.75rem; font-weight: 800; padding: 4px 12px; border-radius: 999px; }
.st-menunggu_pembayaran { background: #fff7e0; color: #8a6d3b; }
.st-menunggu_verifikasi { background: #e3f0fb; color: #1d5d9b; }
.st-lunas { background: var(--g-100); color: var(--g-800); }
.st-batal { background: #fdecea; color: var(--danger); }

/* ---------- Invoice ---------- */
.invoice-actions { display: flex; justify-content: space-between; margin-bottom: 16px; }
.invoice {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px; box-shadow: var(--shadow);
}
.inv-head { display: flex; justify-content: space-between; gap: 16px; border-bottom: 3px solid var(--g-800); padding-bottom: 18px; margin-bottom: 18px; flex-wrap: wrap; }
.inv-brand { font-weight: 800; font-size: 1.4rem; color: var(--g-900); }
.inv-addr { font-size: 0.8rem; color: var(--muted); }
.inv-title { font-weight: 800; letter-spacing: 1px; font-size: 0.9rem; color: var(--amber-dark); }
.inv-no { font-weight: 800; font-size: 1.05rem; margin: 4px 0 8px; }
.inv-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 16px; }
.inv-meta small { display: block; color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; }
.inv-meta strong { font-size: 0.92rem; }
.inv-note { background: var(--bg); border-radius: 10px; padding: 10px 14px; font-size: 0.88rem; margin-bottom: 10px; }
.inv-table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 0.92rem; }
.inv-table th { text-align: left; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); border-bottom: 2px solid var(--g-800); padding: 8px 6px; }
.inv-table td { padding: 10px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.inv-table td small { color: var(--muted); font-size: 0.78rem; }
.inv-table tfoot td { font-weight: 600; }
.inv-table .inv-total td { background: var(--g-100); color: var(--g-900); font-weight: 800; font-size: 1.05rem; }
.inv-foot { margin-top: 16px; color: var(--muted); font-size: 0.85rem; }
.inv-foot p { margin-bottom: 6px; }

/* ---------- Admin (lihat bagian Dashboard Admin di bawah) ---------- */

/* ---------- Cart bar & WA float ---------- */
.cart-bar {
  position: fixed; bottom: calc(18px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%);
  background: var(--g-900); color: #fff; border-radius: 999px; padding: 10px 10px 10px 22px;
  display: flex; align-items: center; gap: 16px; box-shadow: var(--shadow-lg); z-index: 60; max-width: 92vw;
}
.cart-bar span { font-size: 0.9rem; font-weight: 600; }
.wa-float {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 55;
  width: 54px; height: 54px; border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; font-size: 1.5rem; box-shadow: var(--shadow-lg);
  text-decoration: none !important; transition: transform 0.15s;
}
.wa-float:hover { transform: scale(1.08); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: calc(90px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%);
  background: var(--g-900); color: #fff; padding: 12px 22px; border-radius: 999px;
  font-size: 0.9rem; font-weight: 600; box-shadow: var(--shadow-lg); z-index: 70;
  animation: toastIn 0.25s ease;
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ---------- Footer ---------- */
.site-footer { background: var(--g-950); color: #a9c4b2; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1.2fr 0.8fr 1fr; gap: 28px; padding: 54px 20px 34px; }
.footer-brand { font-size: 1.3rem; color: #fff; }
.footer-tag { font-size: 0.88rem; margin-top: 10px; }
.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 12px; }
.site-footer p { font-size: 0.85rem; margin-bottom: 8px; }
.site-footer a { color: var(--g-200); display: inline-block; padding: 3px 0; }
/* Di layar sempit tombol WA melayang bisa menutupi baris copyright. */
@media (max-width: 1219px) {
  body:not(.no-float-wa) .site-footer { padding-bottom: 64px; }
  /* Bar keranjang di HP bisa dua baris — beri ruang lebih. */
  body.has-cart-bar .site-footer { padding-bottom: 96px; }
}
.footer-bottom {
  display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 18px 20px; font-size: 0.8rem; color: #7fa08c;
}

/* ---------- 404 ---------- */
.center-404 { padding: 90px 0; }
.center-404 h1 { margin-bottom: 10px; }
.center-404 .btn { margin-top: 18px; }

/* ---------- Responsif ---------- */
@media (max-width: 900px) {
  .checkout-grid, .contact-grid { grid-template-columns: 1fr; }
  .sum-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hero { padding: 60px 0 110px; }
  .hero-stats {
    grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr;
    padding: 14px; gap: 10px;
  }
  .hero-stats div { display: flex; flex-direction: column; justify-content: center; }
  .hero-stats span { line-height: 1.4; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cart-row { grid-template-columns: 44px 1fr; }
  .cart-row .row-right { grid-column: 1 / -1; justify-content: space-between; }
  .section { padding: 52px 0; }
  /* Cart-bar & tombol WA berdampingan tanpa tabrakan */
  .cart-bar { left: 12px; right: 80px; transform: none; padding: 8px 8px 8px 16px; justify-content: space-between; }
  .cart-bar span { font-size: 0.82rem; }
  .qbtn { width: 28px; height: 28px; }
  .qbtn.add { height: 32px; }
  /* Invoice tetap rapi di layar kecil */
  .invoice { padding: 20px 14px; }
  .inv-table { font-size: 0.85rem; }
  .inv-table td { padding: 8px 4px; }
  .inv-head { padding-bottom: 12px; }
}
@media (max-width: 480px) {
  /* Label statistik panjang: satu kolom penuh lebih terbaca. */
  .hero-stats { grid-template-columns: 1fr; }
  .hero-stats strong { font-size: 1.15rem; }
  .hero-stats span { font-size: 0.78rem; }
}

/* ---------- Print (invoice) ---------- */
@media print {
  .site-header, .site-footer, .wa-float, .invoice-actions, .no-print, script { display: none !important; }
  body { background: #fff; }
  .invoice { border: 0; box-shadow: none; padding: 0; }
  .section { padding: 0; }
}

/* ================= CMS Admin ================= */
body.admin-page { background: #f3f5f3; }
.admin-shell { display: flex; flex-direction: column; min-height: 100vh; }
.admin-menu-toggle { display: none; }

/* Sidebar */
.admin-sidebar {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: 264px; max-width: 85vw;
  background: #0f3d2e; color: #fff; z-index: 100;
  transform: translateX(-100%); transition: transform 0.28s ease;
  display: flex; flex-direction: column; overflow-y: auto;
  box-shadow: 4px 0 18px rgba(0, 0, 0, 0.14);
}
.admin-brand {
  padding: 22px 20px; font-size: 1.2rem; font-weight: 800; line-height: 1.2;
  display: flex; align-items: center; gap: 6px; letter-spacing: 0.3px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.admin-brand .brand-accent { color: #b7e4c7; }
.admin-nav { display: flex; flex-direction: column; padding: 14px 0; flex: 1; }
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 20px; font-size: 0.92rem; font-weight: 600;
  color: rgba(255, 255, 255, 0.76); text-decoration: none;
  transition: background 0.18s, color 0.18s;
}
.nav-item:hover { background: rgba(255, 255, 255, 0.07); color: #fff; text-decoration: none; }
.nav-item.active { background: #1b4332; color: #b7e4c7; box-shadow: inset 3px 0 0 #b7e4c7; }
.nav-icon { width: 24px; text-align: center; font-size: 1.05rem; flex: 0 0 24px; }
.admin-divider { height: 1px; background: rgba(255, 255, 255, 0.1); margin: 10px 0; }
.nav-exit { color: rgba(255, 255, 255, 0.62); }
.admin-logout { margin: 0; padding: 0; }
.admin-logout button.nav-item {
  width: 100%; box-sizing: border-box; border: 0; background: transparent;
  font: inherit; color: rgba(255, 255, 255, 0.62); text-align: left; cursor: pointer;
}
.admin-logout button.nav-item:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.admin-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.4); z-index: 90; backdrop-filter: blur(2px);
}
.admin-menu-toggle:checked ~ .admin-sidebar { transform: translateX(0); }
.admin-menu-toggle:checked ~ .admin-overlay { display: block; }

/* Main */
.admin-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.admin-topbar {
  position: sticky; top: 0; z-index: 80; background: #fff;
  border-bottom: 1px solid var(--line); padding: 12px 18px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.menu-btn {
  display: block; background: none; border: 0; color: var(--g-900);
  font-size: 1.45rem; cursor: pointer; padding: 4px 6px; line-height: 1;
  border-radius: 8px;
}
.menu-btn:hover { background: var(--g-100); }
.admin-title {
  font-size: 1.15rem; font-weight: 800; color: var(--g-900); margin: 0;
  letter-spacing: 0.2px; min-width: 0; overflow-wrap: anywhere;
}
.admin-user { margin-left: auto; }
.user-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--g-100); color: var(--g-700);
  padding: 6px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 700;
  white-space: nowrap;
}
.admin-body { flex: 1; padding: 22px 20px 42px; }
.admin-wrap { max-width: 1400px; margin: 0 auto; width: 100%; }

/* Statistik */
.stat-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px; margin-bottom: 24px;
}
.stat-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 18px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 6px; min-width: 0;
}
.stat-card.pending { box-shadow: inset 0 3px 0 #d97706, var(--shadow); }
.stat-card.ok { box-shadow: inset 0 3px 0 #16a34a, var(--shadow); }
.stat-value {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem); font-weight: 800;
  color: var(--g-900); letter-spacing: -0.5px; line-height: 1.15;
  overflow-wrap: anywhere;
}
.stat-card.pending .stat-value { color: #b45309; }
.stat-card.ok .stat-value { color: #15803d; }
.stat-label {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.6px; color: var(--muted); line-height: 1.35;
}

/* Tab */
.admin-tabs {
  display: flex; gap: 2px; flex-wrap: nowrap; overflow-x: auto;
  margin-bottom: 20px; border-bottom: 1px solid var(--line);
  padding-bottom: 0; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tab {
  flex: 0 0 auto; background: transparent; border: 0;
  border-bottom: 2px solid transparent; padding: 11px 16px;
  font-family: inherit; font-size: 0.9rem; font-weight: 700;
  color: var(--muted); cursor: pointer;
  transition: color 0.18s, border-color 0.18s, background 0.18s;
}
.admin-tab:hover { color: var(--g-700); background: #f5f8f5; }
.admin-tab.active { color: #0f3d2e; border-bottom-color: #0f3d2e; background: #f0f6f1; }

/* Panel */
.admin-panel .panel-head { margin-bottom: 16px; }
.admin-panel .panel-head h2 { font-size: 1.08rem; margin: 0 0 4px; color: var(--g-900); }
.admin-panel .panel-head p {
  margin: 0; color: var(--muted); font-size: 0.86rem;
  line-height: 1.55; max-width: 80ch;
}
.admin-panel .card { margin-bottom: 18px; }

/* Tabel pesanan */
@media (max-width: 1399px) { .admin-table .cell-inv { display: none; } }
.table-wrap {
  display: none; overflow-x: auto; margin-bottom: 14px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
}
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; min-width: 900px; }
.admin-table th {
  text-align: left; background: #0f3d2e; color: #fff;
  padding: 10px 10px; font-size: 0.68rem; text-transform: uppercase;
  letter-spacing: 0.7px; font-weight: 800; white-space: nowrap;
}
.admin-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table tbody tr:nth-child(even) { background: #fbfaf7; }
.admin-table tbody tr:hover { background: #f3f1ea; }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-table small { font-size: 0.76rem; color: var(--muted); }
.admin-table .btn { margin: 2px; padding: 5px 8px; font-size: 0.76rem; }
.admin-table .cell-id a {
  white-space: nowrap; font-weight: 800; font-size: 0.78rem;
  letter-spacing: 0.2px; color: var(--g-900);
}
.admin-table .cell-inv {
  white-space: nowrap; font-size: 0.78rem; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.admin-table .cell-time { white-space: nowrap; }
.admin-table .cell-time small { display: block; margin-top: 2px; }
.admin-table .cell-period { white-space: nowrap; }
.admin-table .cell-act { white-space: nowrap; }
.admin-table .cell-act .btn { margin: 2px 2px 2px 0; }
.admin-table .status-badge {
  white-space: nowrap; font-size: 0.68rem; font-weight: 800;
  padding: 3px 8px; border-radius: 999px; letter-spacing: 0.2px;
}
.admin-table td strong { font-variant-numeric: tabular-nums; white-space: nowrap; }
.admin-table .st-lunas { background: #dcfce7; color: #166534; }
.admin-table .st-menunggu_pembayaran { background: #fef3c7; color: #92400e; }
.admin-table .st-menunggu_verifikasi { background: #dbeafe; color: #1e40af; }
.admin-table .st-batal { background: #fee2e2; color: #991b1b; }

/* Kartu pesanan (HP/tablet) */
.order-cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr)); }
.order-empty { padding: 26px 16px; }
.order-card {
  border: 1px solid var(--line); border-radius: 14px;
  padding: 16px; background: #fff; box-shadow: var(--shadow); min-width: 0;
}
.order-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.order-id {
  font-weight: 800; font-size: 0.82rem; letter-spacing: 0.2px;
  color: var(--g-900); text-decoration: none; overflow-wrap: anywhere;
}
.order-id:hover { text-decoration: underline; }
.order-card .status-badge { white-space: nowrap; flex: 0 0 auto; }
.order-body { margin-bottom: 12px; }
.order-line { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid #f2f0ea; }
.order-line:last-child { border-bottom: 0; }
.label {
  font-size: 0.7rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--muted); white-space: nowrap;
}
.value { font-size: 0.9rem; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.value small { color: var(--muted); font-weight: 600; font-size: 0.8rem; }
.order-foot { display: flex; gap: 8px; flex-wrap: wrap; }
.order-foot .btn { flex: 1 1 auto; min-width: 92px; padding: 8px 10px; font-size: 0.82rem; }

/* Editor baris */
.er-empty {
  margin: 0; text-align: center; color: var(--muted); font-size: 0.92rem;
  padding: 34px 20px; border: 1px dashed var(--line); border-radius: 12px; background: #fbfbf8;
}
.edit-rows { display: grid; gap: 10px; }
.edit-row {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; min-width: 0;
}
.edit-row input, .edit-row textarea, .edit-row select {
  padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px;
  font: inherit; font-size: 0.88rem; min-width: 0; background: #fff; color: var(--ink);
}
.edit-row input:focus, .edit-row textarea:focus, .edit-row select:focus { outline: none; border-color: var(--g-700); }
.edit-row .er-del { margin-left: auto; }
.cat-row { align-items: flex-start; }
.cat-row .er-icon { width: 56px; text-align: center; }
.cat-row .er-pop { margin-top: 10px; }
.cat-row .er-del { margin-top: 5px; }
.cat-row .er-main { flex: 1 1 170px; display: flex; flex-direction: column; gap: 2px; min-width: 150px; }
.cat-row .er-id { color: var(--muted); font-size: 0.72rem; }
.cat-row .er-cat { flex: 0 1 130px; }
.cat-row .er-price { flex: 0 0 110px; }
.cat-row .er-stock { flex: 0 0 70px; }
.cat-row .er-img { flex: 1 1 240px; }
.cat-row .er-desc { flex: 1 1 220px; }
.er-pop { display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; font-weight: 600; white-space: nowrap; }
.er-pop input { width: 16px; height: 16px; accent-color: var(--g-700); }
.vou-row .er-code { flex: 0 1 160px; text-transform: uppercase; font-weight: 700; letter-spacing: 1px; }
.vou-row .er-type { flex: 0 0 130px; }
.vou-row .er-value { flex: 0 0 120px; }
.vou-row .er-exp { flex: 0 0 150px; color: var(--ink); }
.faq-row { align-items: flex-start; }
.faq-row .er-main { flex: 1 1 240px; }
.faq-row .er-q { width: 100%; font-weight: 600; }
.faq-row .er-a { flex: 1 1 280px; width: 100%; resize: vertical; }
.faq-row .er-del { margin-left: auto; align-self: center; }
.panel-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; align-items: center; }

/* Pengaturan — HANYA di dalam admin, jangan bocor ke form checkout */
.set-card { margin-bottom: 18px; }
.set-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; align-items: start; }
.set-grid .span2 { grid-column: 1 / -1; }
.admin-body .field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; min-width: 0; }
.admin-body .field label { display: block; font-size: 0.84rem; font-weight: 700; color: var(--g-900); margin: 0; }
.admin-body .field input, .admin-body .field textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 10px; background: #fff; font-family: inherit;
  font-size: 0.92rem; color: var(--ink); box-sizing: border-box;
}
.admin-body .field input:focus, .admin-body .field textarea:focus {
  outline: none; border-color: var(--g-700); background: #fff;
}
.admin-body .field input[type="checkbox"] { width: auto; }
.check-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.88rem; font-weight: 600; color: var(--ink); cursor: pointer;
}
.check-label input { width: 17px; height: 17px; accent-color: #0f3d2e; }
.day-row { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 4px; }

/* Teks panjang di ringkasan checkout/pesanan tidak boleh meluber.
   Label pendek tidak boleh terhimpit; kalau nilai panjang tidak muat,
   nilai turun ke baris berikutnya (rata kanan), bukan memecah label. */
.sum-row { flex-wrap: wrap; }
.sum-line > span { min-width: 0; overflow-wrap: anywhere; flex: 1 1 auto; }
.sum-line > strong { text-align: right; flex: 0 0 auto; white-space: nowrap; }
.sum-row > span { min-width: 0; overflow-wrap: anywhere; flex: 0 1 auto; }
.sum-row > strong {
  text-align: right; flex: 1 1 auto; min-width: 0;
  white-space: normal; overflow-wrap: anywhere;
}
.deadline.expired { background: #fdecea; color: #991b1b; border: 1px solid #f3c1bb; }

/* ================= Halaman Promo ================= */
.grid-promo { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.promo-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px;
}
.promo-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.promo-badge {
  font-size: 0.76rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
  color: var(--g-800); background: var(--g-100); padding: 5px 10px; border-radius: 999px;
}
.promo-exp {
  font-size: 0.78rem; font-weight: 700; color: var(--muted);
  border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
.promo-value { font-size: 1.5rem; font-weight: 800; color: var(--g-900); letter-spacing: 0.2px; }
.promo-code-box { display: flex; flex-direction: column; gap: 8px; }
.promo-code {
  display: grid; place-items: center; text-align: center;
  border: 2px dashed var(--g-500); border-radius: 10px; background: var(--g-100);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.15rem; font-weight: 800;
  letter-spacing: 2px; color: var(--g-800); padding: 10px 12px; text-transform: uppercase;
  white-space: nowrap;
}
.promo-code.promo-code-sm { font-size: 0.8rem; letter-spacing: 1px; }
.promo-code.promo-code-md { font-size: 0.95rem; letter-spacing: 1.5px; }
.promo-card .copy-code { width: 100%; }
.promo-card .hero-cta .btn { width: 100%; justify-content: center; }
.promo-how { color: var(--muted); font-size: 0.86rem; margin: 0; }
.promo-card .hero-cta { margin-top: auto; }
.promo-terms { color: var(--muted); font-size: 0.86rem; margin-top: 18px; }
.empty-promo { text-align: center; padding: 56px 24px; }
.empty-promo h2 { margin-bottom: 12px; }
.empty-promo p { margin: 0 auto 26px; max-width: 46ch; line-height: 1.65; color: var(--muted); }
.empty-promo .hero-cta { justify-content: center; display: flex; flex-wrap: wrap; gap: 10px; }

/* ================= Responzif admin ================= */
@media (max-width: 1279px) {
  .table-wrap { display: none !important; }
  .order-cards { display: grid !important; }
}
@media (min-width: 1280px) {
  .admin-shell { flex-direction: row; }
  .admin-sidebar {
    position: sticky; top: 0; height: 100vh; transform: none;
    flex: 0 0 264px; box-shadow: none; border-right: 1px solid rgba(255, 255, 255, 0.08);
  }
  .admin-overlay { display: none !important; }
  .menu-btn { display: none; }
  .admin-main { min-height: 100vh; }
  .admin-body { padding: 26px 30px 48px; }
  .admin-wrap { max-width: none; }
  .table-wrap { display: block; }
  .order-cards { display: none !important; }
}
@media (max-width: 720px) {
  .admin-body { padding: 16px 12px 34px; }
  .admin-topbar { padding: 10px 12px; }
  .admin-title { font-size: 1.05rem; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { padding: 13px 14px; }
  .stat-value { font-size: 1.25rem; }
  .stat-label { font-size: 0.68rem; }
  .admin-tabs { margin-bottom: 16px; }
  .admin-tab { padding: 9px 12px; font-size: 0.84rem; }
  .set-grid { grid-template-columns: 1fr; }
  .cat-row .er-img, .cat-row .er-desc { flex-basis: 100%; }
  .vou-row .er-code, .vou-row .er-type, .vou-row .er-value, .vou-row .er-exp { flex: 1 1 100%; }
  .order-foot .btn { flex: 1 1 0; min-width: 0; padding: 8px 6px; font-size: 0.78rem; }
  .order-line { gap: 8px; }
  .value { text-align: right; }
}
