/* =========================================================================
   Halaman pelanggan — mobile first, lebar maks 480px
   ========================================================================= */
body.customer { background: #ECEAE6; }
.c-shell { max-width: 480px; margin: 0 auto; min-height: 100vh; background: var(--bg); position: relative; padding-bottom: 110px; }

/* Header */
.c-header { background: var(--green); color: #fff; padding: 1.1rem 1rem 1.3rem; border-radius: 0 0 22px 22px; }
.c-brand { display: flex; align-items: center; gap: .75rem; }
.c-logo { width: 48px; height: 48px; border-radius: 14px; background: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.3rem; overflow: hidden; flex-shrink: 0; }
.c-logo img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.c-title { font-weight: 800; font-size: 1.1rem; line-height: 1.2; }
.c-sub { font-size: .8rem; color: rgba(255, 255, 255, .7); }
.c-table-badge { margin-left: auto; background: var(--accent); color: #fff; font-weight: 800; padding: .45rem .8rem; border-radius: 12px; font-size: .9rem; white-space: nowrap; }
.c-search { margin-top: 1rem; position: relative; }
.c-search input { border: 0; border-radius: 14px; padding-left: 2.6rem; min-height: 48px; }
.c-search i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--muted); }

/* Chip kategori */
.c-chips { position: sticky; top: 0; z-index: 20; background: var(--bg); display: flex; gap: .5rem; overflow-x: auto; padding: .8rem 1rem; scrollbar-width: none; }
.c-chips::-webkit-scrollbar { display: none; }

/* Banner terlaris */
.c-section-title { font-weight: 800; font-size: 1.05rem; padding: .75rem 1rem .5rem; display: flex; align-items: center; gap: .4rem; }
.c-best { display: flex; gap: .75rem; overflow-x: auto; padding: 0 1rem .5rem; scrollbar-width: none; scroll-snap-type: x mandatory; }
.c-best::-webkit-scrollbar { display: none; }
.c-best-card { flex: 0 0 72%; scroll-snap-align: start; background: var(--green); color: #fff; border-radius: 18px; padding: 1rem; display: flex; gap: .8rem; align-items: center; cursor: pointer; border: 0; text-align: left; }
.c-best-card .img { width: 76px; height: 76px; border-radius: 14px; object-fit: cover; flex-shrink: 0; background: rgba(255, 255, 255, .12); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; font-weight: 800; color: #F4C9B0; }
.c-best-card .tag { font-size: .7rem; font-weight: 800; color: #F4C9B0; text-transform: uppercase; letter-spacing: .05em; }
.c-best-card .name { font-weight: 700; line-height: 1.25; margin: .15rem 0 .3rem; }
.c-best-card .price { font-weight: 800; }

/* Daftar menu */
.c-list { padding: 0 1rem; }
.c-cat-title { font-weight: 800; font-size: 1.05rem; margin: 1.1rem 0 .6rem; scroll-margin-top: 70px; }
.c-item { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: .8rem; display: flex; gap: .8rem; margin-bottom: .65rem; cursor: pointer; }
.c-item .img { width: 92px; height: 92px; border-radius: 12px; object-fit: cover; flex-shrink: 0; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; font-weight: 800; }
.c-item .body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.c-item .name { font-weight: 700; line-height: 1.25; }
.c-item .desc { font-size: .8rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: .2rem; }
.c-item .foot { margin-top: auto; padding-top: .45rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.c-item .price { font-weight: 800; }
.c-item.soldout { opacity: .55; filter: grayscale(1); cursor: default; }
.c-item .soldout-badge { background: #E5E1DD; color: var(--muted); font-weight: 700; font-size: .78rem; padding: .35rem .7rem; border-radius: 999px; }
.btn-add { min-height: 38px; border-radius: 12px; padding: .3rem .95rem; font-size: .88rem; }

.stepper { display: inline-flex; align-items: center; background: var(--accent-soft); border-radius: 12px; overflow: hidden; }
.stepper button { width: 38px; height: 38px; border: 0; background: transparent; color: var(--accent); font-size: 1.1rem; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.stepper button:active { background: #ffe0cc; }
.stepper span { min-width: 26px; text-align: center; font-weight: 800; }
.stepper.lg button { width: 46px; height: 46px; }
.stepper.lg span { min-width: 34px; font-size: 1.1rem; }

/* Bar keranjang melayang */
.c-cartbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 14px; width: calc(100% - 28px); max-width: 452px; z-index: 30; background: var(--accent); color: #fff; border: 0; border-radius: 16px; padding: .85rem 1.1rem; display: flex; align-items: center; gap: .75rem; font-weight: 700; box-shadow: 0 10px 30px rgba(194, 65, 12, .35); min-height: 58px; }
.c-cartbar .count { background: rgba(255, 255, 255, .2); border-radius: 10px; padding: .25rem .6rem; }
.c-cartbar .total { margin-left: auto; font-weight: 800; }
.c-cartbar span { white-space: nowrap; }
@media (max-width: 360px) { .c-cartbar .label { display: none; } }
.st-actions .btn { white-space: nowrap; font-size: .92rem; padding-left: .6rem; padding-right: .6rem; }
.c-orderbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 14px; width: calc(100% - 28px); max-width: 452px; z-index: 29; }

/* Bottom sheet */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 1050; opacity: 0; pointer-events: none; transition: opacity .2s; }
.sheet-backdrop.show { opacity: 1; pointer-events: auto; }
.sheet { position: fixed; left: 50%; bottom: 0; transform: translate(-50%, 100%); width: 100%; max-width: 480px; max-height: 92vh; background: #fff; border-radius: 22px 22px 0 0; z-index: 1060; display: flex; flex-direction: column; transition: transform .25s ease; }
.sheet.show { transform: translate(-50%, 0); }
.sheet-handle { width: 44px; height: 5px; border-radius: 9px; background: #DDD6CF; margin: .6rem auto; flex-shrink: 0; }
.sheet-close { position: absolute; right: .8rem; top: .8rem; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); box-shadow: 0 2px 8px rgba(0, 0, 0, .12); z-index: 2; display: flex; align-items: center; justify-content: center; }
.sheet-body { overflow-y: auto; padding: 0 1.1rem 1rem; flex: 1; }
.sheet-foot { padding: .85rem 1.1rem calc(.85rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; }
.sheet-img { width: calc(100% + 2.2rem); margin: 0 -1.1rem .9rem; aspect-ratio: 16 / 10; object-fit: cover; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; font-size: 3rem; color: var(--accent); font-weight: 800; }

.opt-group { margin-top: 1rem; }
.opt-group-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .4rem; }
.opt-group-head .t { font-weight: 800; }
.opt-group-head .req { font-size: .72rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.opt-group-head .req.ok { background: var(--success-soft); color: var(--success); }
.opt-row { display: flex; align-items: center; gap: .7rem; padding: .7rem .2rem; border-bottom: 1px solid var(--line); cursor: pointer; min-height: 48px; margin: 0; }
.opt-row:last-child { border-bottom: 0; }
.opt-row input { width: 1.25rem; height: 1.25rem; margin: 0; flex-shrink: 0; }
.opt-row .n { flex: 1; }
.opt-row .p { color: var(--muted); font-size: .88rem; }
.opt-group.invalid .opt-group-head .req { background: var(--danger-soft); color: var(--danger); }

/* Keranjang */
.cart-line { display: flex; gap: .75rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.cart-line .info { flex: 1; min-width: 0; }
.cart-line .opts { font-size: .8rem; color: var(--accent); }
.cart-line .note { font-size: .8rem; color: var(--muted); }
.pay-option { display: flex; align-items: center; gap: .75rem; border: 1.5px solid var(--line); border-radius: 14px; padding: .8rem .9rem; cursor: pointer; margin-bottom: .5rem; }
.pay-option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.pay-option i { font-size: 1.3rem; color: var(--accent); }
.sum-row { display: flex; justify-content: space-between; font-size: .92rem; margin-bottom: .3rem; }
.sum-row.total { font-weight: 800; font-size: 1.1rem; margin-top: .5rem; }

/* Status pesanan */
.st-banner { background: var(--green); color: #fff; border-radius: 0 0 22px 22px; padding: 1.4rem 1.1rem 1.6rem; text-align: center; }
.st-banner .icon { width: 64px; height: 64px; border-radius: 50%; background: rgba(255, 255, 255, .12); display: flex; align-items: center; justify-content: center; font-size: 1.9rem; margin: 0 auto .7rem; }
.st-banner h1 { font-size: 1.3rem; font-weight: 800; margin: 0 0 .25rem; }
.st-banner.cancel { background: var(--danger); }
.st-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.1rem; margin: 1rem; }
.timeline { display: flex; justify-content: space-between; position: relative; margin: .4rem 0 .2rem; }
.timeline::before { content: ""; position: absolute; top: 17px; left: 12%; right: 12%; height: 3px; background: var(--line); }
.timeline .bar { position: absolute; top: 17px; left: 12%; height: 3px; background: var(--accent); transition: width .4s; }
.timeline .step { position: relative; z-index: 1; flex: 1; text-align: center; font-size: .75rem; font-weight: 600; color: var(--muted); }
.timeline .dot { width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 3px solid var(--line); margin: 0 auto .4rem; display: flex; align-items: center; justify-content: center; color: #CFC6BE; }
.timeline .step.done .dot { background: var(--accent); border-color: var(--accent); color: #fff; }
.timeline .step.current .dot { box-shadow: 0 0 0 5px rgba(194, 65, 12, .18); }
.timeline .step.done { color: var(--text); }

.c-full { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 2rem 1.5rem; }
