/* ===== Tampilan pembeli (gaya toko online) ===== */
:root {
  --hijau-tua: #14532d;
  --hijau: #1f9a55;
  --hijau-muda: #e6f4ec;
  --garis: #dde8e1;
  --teks: #1d2b23;
}
body.pembeli { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; color: var(--teks); background: #f5f8f6; }
.pembeli .isi { padding-bottom: 110px !important; }

/* Kepala */
.kepala { background: var(--hijau-tua); color: #fff; border-radius: 0 0 26px 26px; margin-bottom: 14px; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.brand { font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; }
.btn-kembali { color: #fff; text-decoration: none; font-size: 1.5rem; line-height: 1; }
.ikon-keranjang { position: relative; color: #fff; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.14); display: flex; align-items: center; justify-content: center; }
.badge-keranjang { position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: #ffb020; color: #3b2a00; font-size: .72rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center; }
.hero { padding-bottom: 26px; }
.hero h2 { font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; margin: 0 0 4px; }
.hero p { margin: 0; opacity: .85; }

/* Filter kategori */
.filter-wrap { position: sticky; top: 0; z-index: 1020; background: #f5f8f6; padding: 8px 0; margin-top: -6px;
  overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.filter-wrap::-webkit-scrollbar { display: none; }
.filter-btn { background: #fff; color: var(--teks); border: 1px solid var(--garis); font-weight: 600; padding: 6px 16px; }
.filter-btn.aktif { background: var(--hijau-tua); color: #fff; border-color: var(--hijau-tua); }

/* Kartu menu */
.kartu-menu .card { height: 100%; overflow: hidden; border: 1px solid var(--garis); border-radius: 16px; box-shadow: none; background: #fff; }
.gambar-menu { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; border-radius: 0; }
.gambar-kosong { background: var(--hijau-muda); color: #7fa592; display: flex; align-items: center; justify-content: center; font-size: .85rem; }
.kartu-menu .habis { opacity: .5; }
.label-habis { position: absolute; top: 8px; left: 8px; background: #495057; color: #fff; padding: 2px 10px; border-radius: 20px; font-size: .78rem; font-weight: 600; }
.kartu-menu .card-body { padding: 10px 12px 12px; display: flex; flex-direction: column; }
.harga-menu { font-weight: 800; color: var(--hijau-tua); font-size: 1.05rem; margin: 4px 0 2px; }
.stok-tipis { font-size: .75rem; color: #c2410c; font-weight: 600; margin-bottom: 6px; }
.aksi { margin-top: auto; padding-top: 8px; }
.aksi .btn-pilih { border-radius: 10px; font-weight: 700; padding: 7px 0; }
.stepper { display: flex; align-items: center; justify-content: space-between; border: 1.5px solid var(--hijau); border-radius: 10px; padding: 2px; }
.stepper button { width: 34px; height: 30px; border: 0; border-radius: 8px; background: var(--hijau-muda); color: var(--hijau-tua); font-weight: 800; font-size: 1.1rem; line-height: 1; }
.stepper .qty { font-weight: 800; }

/* Tombol keranjang melayang */
.bar-keranjang { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 16px; z-index: 1030; background: none; pointer-events: none; }
.bar-keranjang .btn { pointer-events: auto; background: var(--hijau-tua); border-color: var(--hijau-tua); color: #fff;
  border-radius: 16px !important; box-shadow: 0 8px 22px rgba(20,83,45,.35); font-weight: 600; }

/* Halaman keranjang & pembayaran */
.pembeli .card { border: 1px solid var(--garis); border-radius: 16px; box-shadow: none; }
.pembeli .btn-lg { border-radius: 14px; font-weight: 700; }
.ctrl-qty .btn { width: 36px; padding: 2px 0; border-radius: 10px; }
.pembeli .btn-primary { --bs-btn-bg: var(--hijau); --bs-btn-border-color: var(--hijau); --bs-btn-hover-bg: var(--hijau-tua); --bs-btn-hover-border-color: var(--hijau-tua); }