:root {
  --bg: #ebe8e5;
  --panel: #f3f1ef;
  --panel-2: #e2dfdc;
  --ink: #2b2927;
  --muted: #8c8783;
  --line: #d9d5d1;
  --dark: #2b2927;
  --dark-2: #3a3734;
  --on-dark: #f3f1ef;
  --on-dark-muted: #a7a19b;
  --photo: #f4f4f4;
  --danger: #b3261e;
  --wa: #25d366;
  --radius: 14px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  font-size: 15px;
}
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }

/* Header */
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  height: 56px; padding: 0 20px; border-bottom: 1px solid var(--line);
}
.brand { font-weight: 700; font-size: 18px; text-decoration: none; letter-spacing: -.02em; }
.brand span { color: var(--muted); }
.topbar-note { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

.page { max-width: 440px; margin: 0 auto; padding: 20px 16px 40px; }

/* Label kecil gaya "— BUILD YOUR ORDER" */
.label {
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
  margin: 32px 0 10px; display: flex; align-items: center; gap: 8px;
}
.label::before { content: ''; width: 12px; height: 1px; background: var(--muted); }
.label.flat { margin: 0; }
.label.flat::before { display: none; }
.muted { color: var(--muted); margin: 0; font-size: 13px; }
.empty { color: var(--muted); text-align: center; padding: 24px 0; }

/* Showcase */
.showcase { background: var(--dark); color: var(--on-dark); border-radius: var(--radius); overflow: hidden; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; }
.slide-media { position: relative; background: var(--photo); aspect-ratio: 1 / 1; display: grid; place-items: center; overflow: hidden; }
.slide-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide-media .ph { font-weight: 700; font-size: 28px; color: #c9c5c1; letter-spacing: -.02em; }
.slide-body { padding: 18px 16px 4px; }
.slide-body h2 { margin: 0 0 6px; font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.desc { margin: 0 0 14px; color: var(--on-dark-muted); font-size: 13px; }
.pills { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pills li { border: 1px solid #5a5652; border-radius: 999px; padding: 4px 10px; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.variant { display: inline-block; background: var(--on-dark); color: var(--dark); border-radius: 6px; padding: 4px 10px; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; }
.nut { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--dark-2); border-bottom: 1px solid var(--dark-2); margin: 4px 0 14px; }
.nut div { padding: 10px 0 8px 10px; border-left: 1px solid var(--dark-2); }
.nut div:first-child { border-left: 0; padding-left: 0; }
.nut b { display: block; font-size: 17px; font-weight: 700; }
.nut b small { font-size: 11px; font-weight: 500; color: var(--on-dark-muted); margin-left: 1px; }
.nut span { font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted); }
.meta span { font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-muted); }
.meta p { margin: 4px 0 0; font-size: 13px; }
.tiers { margin-top: 18px; }
.tier { display: flex; justify-content: space-between; font-weight: 700; font-size: 14px; padding: 4px 0; }
.slide-nav { display: flex; justify-content: center; align-items: center; gap: 14px; padding: 16px 0 18px; }
.nav-btn { width: 26px; height: 26px; border-radius: 50%; border: 1px solid #5a5652; background: transparent; color: var(--on-dark); font-size: 15px; line-height: 1; display: grid; place-items: center; padding: 0 0 2px; }
.dots { display: flex; gap: 6px; }
.dots button { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 50%; background: #5a5652; }
.dots button.active { background: var(--on-dark); }

/* Builder */
.builder { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.group + .group { border-top: 1px solid var(--line); }
.group-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--panel-2); padding: 14px; transition: background .2s, color .2s; }
.group-head h3 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.group-head span { font-size: 12px; white-space: nowrap; }
.group-head small { font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.group.active .group-head { background: var(--dark); color: var(--on-dark); }
.group.active .group-head small { color: var(--on-dark-muted); }
.row { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--line); }
.group.active .row { background: #fff; }
.row-name { flex: 1; font-size: 14px; font-weight: 500; }
.row-name small { color: var(--muted); font-weight: 400; }
.dot { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--muted); flex: none; }
.row.on .dot, .dot.on { background: var(--ink); border-color: var(--ink); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); background: #fff; border-radius: 999px; height: 34px; }
.row.on .stepper { border-color: var(--ink); }
.stepper button { width: 34px; height: 32px; border: 0; background: transparent; font-size: 16px; }
.stepper button:disabled { color: #c4bfba; cursor: default; }
.stepper span { min-width: 22px; text-align: center; font-weight: 600; font-size: 14px; }
.group-foot { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-top: 1px solid var(--line); background: #fff; font-size: 12px; color: var(--muted); }
.group-foot b { color: var(--ink); }
.group-foot > b { font-size: 16px; }

/* Detail & subtotal */
.details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 12px 14px; }
.line { display: flex; align-items: center; gap: 10px; padding: 4px 0; font-size: 13px; }
.line .amt { margin-left: auto; font-weight: 600; white-space: nowrap; }
.subtotal { display: flex; justify-content: space-between; align-items: flex-end; border-top: 1px solid var(--line); margin-top: 20px; padding: 18px 0; }
.subtotal small { font-size: 11px; color: var(--muted); }
.subtotal b { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }

/* Tombol utama */
.cta {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  background: var(--dark); color: var(--on-dark); border: 0; border-radius: var(--radius);
  padding: 18px 16px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; transition: opacity .15s, background .15s;
}
.cta i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; background: var(--on-dark); color: var(--dark); display: grid; place-items: center; font-size: 12px; letter-spacing: 0; }
.cta:disabled { background: #b2aea9; cursor: not-allowed; }
.cta:not(:disabled):hover { background: #1a1917; }

/* Form pengiriman */
.checkout { margin-top: 8px; }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.field em { font-style: normal; text-transform: none; letter-spacing: 0; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; color: var(--ink);
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px; resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: #b2aca6; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: #fff; }
.invalid { border-color: var(--danger) !important; }
.err { display: block; color: var(--danger); font-size: 12px; margin-top: 4px; }
.err:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.options { display: grid; gap: 8px; margin-bottom: 14px; }
.option { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); cursor: pointer; }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option.active { border-color: var(--ink); background: #fff; }
.option .radio { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--muted); flex: none; margin-top: 2px; }
.option.active .radio { border-color: var(--ink); box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 8px var(--ink); }
.option b { font-weight: 600; font-size: 14px; }
.option em { font-style: normal; color: var(--muted); font-size: 12px; }
.option small { display: block; font-size: 12px; font-weight: 600; margin-top: 2px; }
.option input:focus-visible ~ .radio { outline: 2px solid var(--ink); outline-offset: 2px; }

.summary { background: var(--dark); color: var(--on-dark); border-radius: var(--radius); padding: 16px; margin: 22px 0 10px; }
.summary div { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; padding: 4px 0; color: var(--on-dark-muted); }
.summary div b { color: var(--on-dark); white-space: nowrap; }
.summary .total { border-top: 1px solid var(--dark-2); margin-top: 8px; padding-top: 12px; color: var(--on-dark); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; align-items: center; }
.summary .total b { font-size: 20px; letter-spacing: -.01em; text-transform: none; }
.form-error { background: #f6e3e1; color: var(--danger); padding: 10px 14px; border-radius: 10px; font-size: 13px; font-weight: 600; }
.fineprint { font-size: 11px; color: var(--muted); margin: 12px 0 0; }

/* Sukses */
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(43, 41, 39, .55); display: grid; place-items: center; padding: 16px; }
.overlay-card { background: var(--bg); border-radius: var(--radius); padding: 24px 20px; width: 100%; max-width: 400px; }
.overlay-card h2 { margin: 6px 0 8px; font-size: 26px; letter-spacing: -.01em; }
.overlay-card p { margin: 0 0 18px; color: var(--muted); font-size: 13px; }
.text-btn { display: block; width: 100%; margin-top: 10px; border: 0; background: transparent; color: var(--muted); padding: 10px; font-size: 13px; }

.site-footer { border-top: 1px solid var(--line); padding: 22px 16px; text-align: center; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
