:root{
  --navH: 56px;
  --brand:#217A56;
  --brand-600:#1c694a;
  --brand-700:#15533b;
  --soft-green:#EBFAF4;
  --varian-green:#C0DACA; /* hijau lembut untuk latar */
}

/* ===== Latar utama hijau lembut ===== */
body.bg-light,
#view-products,
#checkoutSection,
#detail-order
{
  background: var(--soft-green);
}
#detail-order {
  height: calc(100% - 200px);
  overflow-y: auto; /* kalau mau konten tengah bisa scroll sendiri */
}
/* (opsional) beri sedikit radius & ruang supaya terlihat rapi di dalam page */
#checkoutSection{
  border-radius: 16px;
  padding-bottom: 8px; /* ruang ekstra bawah */
}
/* Pertahankan navbar & indicator tetap putih bersih */
nav.navbar,
#catIndicator {
  background: #fff !important;
}

/* ===== Kartu menu: rounded + soft shadow, tanpa border ===== */
#view-products .card{
  border: none !important;
  border-radius: 18px;              /* lebih rounded */
  box-shadow: 0 10px 24px rgba(0,0,0,.06); /* blur soft */
  overflow: hidden;                 /* rapikan img top */
  transition: transform .15s ease, box-shadow .15s ease;
  background: #fff;                 /* kontras dg bg hijau lembut */
}

#view-products .card:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0,0,0,.08);
}

/* Gambar kartu ikut rounded di atas */
#view-products .card-img-top{
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
}

/* Tekstual kecil lebih halus */
#view-products .card .text-secondary{
  color: #6b7280 !important; /* abu-abu halus */
}

/* ===== Tombol circular (pakai class yang sudah ada: .btn-outline-primary) ===== */
/* Ubah tampilannya jadi tombol brand bulat-oval dengan teks putih */
#view-products .btn-outline-primary{
  --bs-btn-color:#fff;
  --bs-btn-border-color:var(--brand);
  --bs-btn-hover-border-color:var(--brand-600);
  --bs-btn-focus-shadow-rgb:33,122,86;
  --bs-btn-disabled-color:#fff;

  background: var(--brand);
  color:#fff;
  border: 1px solid var(--brand);
  border-radius: 999px;                /* circular/pill */
  padding: .45rem .75rem;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(33,122,86,.25);
}

#view-products .btn-outline-primary:hover{
  background: var(--brand-600);
  border-color: var(--brand-600);
  box-shadow: 0 6px 16px rgba(33,122,86,.32);
  color:#fff;
}

#view-products .btn-outline-primary:active{
  background: var(--brand-700) !important;
  border-color: var(--brand-700) !important;
  box-shadow: 0 3px 10px rgba(33,122,86,.28) inset, 0 2px 8px rgba(0,0,0,.06);
  color:#fff !important;
}

#view-products .btn-outline-primary:focus{
  outline: none;
  box-shadow: 0 0 0 .2rem rgba(33,122,86,.25);
}

/* Ukuran kecil rapi */
#view-products .btn-outline-primary.btn-sm{
  padding: .35rem .65rem;
  font-weight: 600;
}

/* ===== Input pencarian: halus & menyatu ===== */
#catIndicator .input-group .form-control{
  border-radius: 999px !important;
  border-color: #e5e7eb;
  background: #fbfbfb;
}
#catIndicator .input-group-text{
  border-radius: 999px 0 0 999px !important;
  background: #fbfbfb;
  border-color: #e5e7eb;
}

/* ===== Nomor & judul kategori: sedikit tegas ===== */
#view-products section > .d-flex .fw-semibold{
  color:#94a3b8;
}
#view-products section h2{
  letter-spacing:.2px;
}

/* ====== Kontrol Qty ====== */
.qty-group{
  display:inline-flex;
  align-items:center;
  gap:.375rem;            /* jarak antar tombol & angka */
}

/* tombol - dan + : bordered, bulat sempurna */
.btn-qty{
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 999px;                  /* bulat */
  border: 1.5px solid var(--brand);
  background: transparent;
  color: var(--brand);
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .05s ease;
}

.btn-qty:hover{
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.btn-qty:active{
  background: var(--brand-600);
  border-color: var(--brand-600);
  color: #fff;
  transform: scale(.98);                 /* sedikit “press” */
}

.btn-qty:focus{
  outline: none;
  box-shadow: 0 0 0 .2rem rgba(33,122,86,.2);
}

/* angka qty */
.qty-pill{
  min-width: 26px;
  height: 26px;
  padding: 0 .25rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #111827;
  font-weight: 600;
  line-height: 26px;
  text-align: center;
  display: inline-block;
}

/* opsi kecil untuk kartu ber-background hijau lembut */
.card .qty-pill{ background:#fff; border-color:#e6ebe8; }

.fab-cart{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1200;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: transparent;                /* transparan, tombolnya yang berwarna */
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.fab-cart.hidden{
  opacity: 0;
  transform: translateY(10px);
  visibility: hidden;
}

/* Tombolnya memenuhi lebar bar */
.fab-btn{
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .9rem 1rem;
  border-radius: 14px;
  background: var(--brand);
  color: #fff;
  border: 1px solid var(--brand);
  box-shadow: 0 10px 24px rgba(33,122,86,.28);
  font-weight: 600;
}
.fab-btn:hover{ background: var(--brand-600); border-color: var(--brand-600); color:#fff; }
/* ⬇️ badge putih teks hijau ala sebelumnya */
.fab-badge{
  background:#fff;
  color:var(--brand);
  border:1px solid rgba(0,0,0,.06);
  border-radius:999px;
  padding:.2rem .55rem;
  min-width:1.75rem;
  text-align:center;
  line-height:1;
  font-weight:700;
}
/* badge jumlah & subtotal */
.fab-count{
  background:#fff;
  color:var(--brand);
  border:1px solid rgba(0,0,0,.06);
  border-radius:999px;
  padding:.2rem .55rem;
  font-weight:700;
  line-height:1;
}
.fab-subtotal{ font-weight:700; }

/* beri ruang konten saat FAB muncul */
body.has-fab{
  padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); /* kira-kira tinggi bar */
}

#checkoutSection .card .form-text{ margin-top:.15rem; }
#checkoutSection .card .form-label{ font-weight:600; }
#checkoutSection .co-form{
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - var(--navH));
}

/* Bagian atas (items, summary, nama) fleksibel */
#checkoutSection .co-body{
  flex: 1 1 auto;
  display: block;
}

/* Tombol nempel bawah */
#checkoutSection .co-actions{
  position: sticky;
  bottom: 0;
  padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px));
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
}

#checkoutSection .co-actions .btn{
  border-radius: 12px;
}
.btn-brand {
  background: var(--brand);
  color: #fff;
  border: 1.5px solid var(--brand);
  border-radius: 12px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(33,122,86,.25);
}

.btn-brand:hover {
  background: var(--brand-600);
  border-color: var(--brand-600);
  color: #fff;
}

.btn-brand:active {
  background: var(--brand-700) !important;
  border-color: var(--brand-700) !important;
  box-shadow: inset 0 3px 8px rgba(0,0,0,.12);
  color: #fff !important;
}

.btn-invert-brand{
  background:#fff;
  color:var(--brand);
  border:1.5px solid var(--brand);
  border-radius:12px;
  font-weight:600;
  box-shadow:0 2px 8px rgba(0,0,0,.05);
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .05s ease;
}
.btn-invert-brand:hover{
  background:#f7fffb;              /* putih kehijauan tipis */
  color:var(--brand-700);
  border-color:var(--brand-600);
}
.btn-invert-brand:active{
  background:#eef8f3;
  color:var(--brand-700);
  border-color:var(--brand-700);
  transform: translateY(1px);
}
.btn-invert-brand:focus{
  box-shadow:0 0 0 .2rem rgba(33,122,86,.2);
}

/* tombol icon kecil bulat (hapus) */
.btn-icon-del{
  width: 32px; height: 32px; padding: 0;
  border-radius: 999px;
  border: 1px solid #ef4444;
  background: #fff;
  color: #ef4444;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.06);
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .05s ease;
}
.btn-icon-del:hover{
  background: #ef4444; color: #fff; border-color: #ef4444;
}
.btn-icon-del:active{ transform: translateY(1px); }

.stepper {
  display: flex;
  justify-content: space-between;
  margin: 32px 0;
  padding: 0;
  list-style: none;
}
.stepper li {
  flex: 1;
  text-align: center;
  position: relative;
}
.stepper li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 50%;
  width: 100%;
  height: 4px;
  background: #C0DACA;
  z-index: -1;
}
.step-circle {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #C0DACA;
  color: #217A56;
  font-weight: bold;
}
.done .step-circle {
  background: #217A56;
  color: #fff;
}
.done span {
  color: #217A56 !important;
  font-weight: 600;
}

.status-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1030; /* di atas main */
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}
#progressImage {
  display: block;
  margin: 0 auto;
}
