/* BA.DA.CE — gaya bersama (katalog, rincian order, admin) */
:root {
  --krem: #F6EEE3; --krem2: #F3E4D4; --krem3: #FFF4E8; --garis: #EADBCB; --garis2: #D9C3AE; --garis3: #C9A68A;
  --teks: #3B2418; --teks2: #5E4232; --teks3: #7A5A48;
  --utama: #A9532F; --utama-gelap: #8A3F1F; --tua: #3B2418; --hijau: #1F7A43; --merah: #A12A1A; --natal: #7E2A1F;
  --kuning-bg: #FFF4CF; --kuning: #6B4A00; --oranye-bg: #FFE1D3; --oranye: #8A2E0F;
  --hijau-bg: #D7E8D2; --hijau-t: #1F5A20; --biru-bg: #D6E3F3; --biru: #1B4A80; --abu-bg: #ECE6DF; --abu: #5E4232;
  --r: 16px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--krem); color: var(--teks); font: 16px/1.45 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
img { max-width: 100%; display: block; }
a { color: var(--utama-gelap); }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
.wrap { max-width: 560px; margin: 0 auto; }
.pad { padding: 16px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack-s { display: flex; flex-direction: column; gap: 6px; }
.row { display: flex; align-items: center; gap: 10px; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.wrap-row { display: flex; flex-wrap: wrap; gap: 6px; }
.grow { flex: 1 1 auto; min-width: 0; }
.muted { color: var(--teks2); }
.kecil { font-size: 14px; }
.mini { font-size: 13px; }
.tebal { font-weight: 800; }
.kanan { text-align: right; }
.tengah { text-align: center; }
.hidden { display: none !important; }
.card { background: #fff; border-radius: 18px; padding: 16px; }
.card-garis { border: 1.5px solid var(--garis); border-radius: 14px; padding: 12px; }
.sep { height: 1px; background: var(--garis); margin: 4px 0; }
.judul { font-size: 18px; font-weight: 800; }
.harga { font-weight: 800; }

/* Tombol */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 18px; border-radius: 14px; border: none; background: var(--utama); color: #fff; font-size: 17px; font-weight: 800; text-decoration: none; text-align: center; }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .55; }
.btn-besar { min-height: 64px; font-size: 19px; border-radius: 18px; }
.btn-hijau { background: var(--hijau); }
.btn-tua { background: var(--tua); }
.btn-garis { background: #fff; color: var(--teks); border: 1.5px solid var(--garis3); }
.btn-garis-utama { background: #fff; color: var(--utama-gelap); border: 1.5px solid var(--utama); }
.btn-putus { background: #FFFDF9; color: var(--utama-gelap); border: 2px dashed var(--garis3); }
.btn-teks { background: transparent; color: var(--utama-gelap); min-height: 44px; padding: 0 8px; }
.btn-bahaya { background: transparent; color: var(--merah); min-height: 48px; }
.btn-penuh { width: 100%; }
.btn-kecil { min-height: 40px; padding: 0 14px; font-size: 15px; border-radius: 12px; }
.ikon-btn { width: 44px; height: 44px; border-radius: 12px; border: none; background: var(--krem); color: var(--teks); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; text-decoration: none; }
.chip { min-height: 38px; padding: 0 13px; border-radius: 99px; border: 1.5px solid var(--garis2); background: #fff; font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.chip.on { background: var(--utama); border-color: var(--utama); color: #fff; }
.chip-tua.on { background: var(--tua); border-color: var(--tua); }
.lencana { font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 99px; display: inline-block; white-space: nowrap; }
.l-ready { background: var(--hijau-bg); color: var(--hijau-t); }
.l-po { background: var(--kuning-bg); color: var(--kuning); }
.l-min { background: var(--krem2); color: var(--teks2); font-weight: 700; }
.l-natal { background: var(--natal); color: #fff; }
.l-habis { background: var(--oranye-bg); color: var(--oranye); }
.st { font-size: 13px; font-weight: 700; padding: 5px 10px; border-radius: 99px; white-space: nowrap; }
.st-menunggu { background: var(--kuning-bg); color: var(--kuning); }
.st-setuju { background: var(--oranye-bg); color: var(--oranye); }
.st-dibayar { background: var(--hijau-bg); color: var(--hijau-t); }
.st-dikirim { background: var(--biru-bg); color: var(--biru); }
.st-selesai { background: var(--abu-bg); color: var(--abu); }
.st-batal { background: #F2DCD8; color: var(--merah); }

/* Form */
label.f { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 600; }
.f-ket { font-size: 13px; font-weight: 500; color: var(--teks2); }
.inp { width: 100%; min-height: 50px; border: 1.5px solid var(--garis2); border-radius: 12px; padding: 10px 14px; font-size: 17px; background: #FFFDF9; color: var(--teks); }
textarea.inp { min-height: 80px; resize: vertical; line-height: 1.45; }
.inp:focus { outline: 3px solid rgba(169, 83, 47, .25); border-color: var(--utama); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.stepper { display: inline-flex; align-items: center; background: var(--krem2); border-radius: 12px; }
.stepper button { width: 46px; height: 46px; border: none; background: transparent; font-size: 24px; font-weight: 700; }
.stepper input { width: 54px; height: 46px; border: none; background: transparent; text-align: center; font-size: 19px; font-weight: 800; }
.saklar { width: 60px; height: 34px; border-radius: 99px; border: none; background: #DCCBBB; padding: 3px; display: inline-flex; flex-shrink: 0; }
.saklar span { width: 28px; height: 28px; border-radius: 99px; background: #fff; transition: transform .15s; }
.saklar[aria-pressed="true"] { background: var(--hijau); }
.saklar[aria-pressed="true"] span { transform: translateX(26px); }

/* Lembar bawah (bottom sheet) & modal */
.latar { position: fixed; inset: 0; background: rgba(40, 25, 15, .55); z-index: 50; display: flex; align-items: flex-end; justify-content: center; animation: muncul .15s; }
.lembar { background: #fff; width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; border-radius: 24px 24px 0 0; padding-bottom: env(safe-area-inset-bottom); animation: naik .2s; }
.lembar-tutup { position: sticky; top: 0; display: flex; justify-content: flex-end; padding: 10px 12px 0; z-index: 2; height: 0; }
.lembar-tutup button { width: 44px; height: 44px; border-radius: 99px; border: none; background: rgba(255,255,255,.95); box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.modal { background: #fff; border-radius: 20px; padding: 22px 18px 16px; margin: auto 16px; max-width: 420px; width: 100%; }
.latar.tengah-l { align-items: center; }
@keyframes muncul { from { opacity: 0; } }
@keyframes naik { from { transform: translateY(40px); opacity: .6; } }

.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); background: var(--tua); color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 700; z-index: 99; max-width: 90vw; box-shadow: 0 6px 20px rgba(0,0,0,.2); animation: muncul .2s; }
.toast.galat { background: var(--merah); }
.memuat { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 60px 16px; color: var(--teks2); }
.putar { width: 36px; height: 36px; border: 4px solid var(--garis); border-top-color: var(--utama); border-radius: 50%; animation: putar .8s linear infinite; }
@keyframes putar { to { transform: rotate(360deg); } }
.foto-kosong { background: var(--krem2); display: flex; align-items: center; justify-content: center; color: var(--teks3); font-weight: 800; }
.thumb { object-fit: cover; border-radius: 12px; background: var(--krem2); flex-shrink: 0; }

@media print {
  .no-print, nav, .bawah-tetap { display: none !important; }
  body { background: #fff; }
  .card { padding: 6px 0; }
}
