/* SUKA Shawarma — Design System */

/* ─── Variables ─────────────────────────────────────────────────────────────── */
:root {
  --bg:        #fafafa;
  --card:      #ffffff;
  --ink:       #111111;
  --ink2:      #333333;
  --muted:     #666666;
  --faint:     #999999;
  --line:      #eeeeee;
  --line2:     #e4e4e4;

  --brand:     #ff4d4f;
  --brand-dk:  #e83e40;
  --brand-bg:  #fff1f1;
  --accent:    #fff5e6;
  --accent-ink:#a85b00;

  --green:     #0a7d2c;
  --green-bg:  #f0fdf4;
  --orange:    #f97316;
  --blue:      #2563eb;

  --radius:    14px;
  --radius-sm: 10px;
  --radius-xs: 8px;
  --shadow:    0 1px 2px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.06);
  --shadow-lg: 0 8px 30px rgba(0,0,0,.18);
  --container: 480px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

/* ─── Reset & base ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0; padding: 0;
  background: #e8e8e8;
  color: var(--ink);
  font: 15px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: var(--font); cursor: pointer; }
input, textarea { font-family: var(--font); }
img { display: block; max-width: 100%; }

/* ─── Layout shell ──────────────────────────────────────────────────────────── */
.phone {
  max-width: var(--container);
  margin: 0 auto;
  background: var(--bg);
  min-height: 100vh;
  position: relative;
  padding-bottom: 120px;
}

/* ─── Topbar ─────────────────────────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: var(--card);
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.topbar-title { font-weight: 600; font-size: 15px; }
.topbar-ic {
  font-size: 22px; color: var(--ink2); cursor: pointer;
  user-select: none; width: 32px; text-align: center;
  border: 0; background: none; padding: 0; line-height: 1;
}
.topbar-logo {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 16px; color: var(--brand);
}
.topbar-logo img { width: 28px; height: 28px; border-radius: 6px; }

/* ─── Search bar ─────────────────────────────────────────────────────────────── */
.search-wrap { padding: 12px 16px; background: var(--card); }
.search-wrap input {
  width: 100%; padding: 10px 14px 10px 38px;
  border: 1.5px solid var(--line2); border-radius: var(--radius-sm);
  background: var(--bg); font-size: 14px; outline: none;
  color: var(--ink); transition: border-color .15s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23999' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 12px center;
}
.search-wrap input:focus { border-color: var(--brand); }
.search-wrap input::placeholder { color: var(--faint); }

/* ─── Filter chips ───────────────────────────────────────────────────────────── */
.chips {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 10px 16px; background: var(--card);
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; padding: 6px 14px;
  border: 1.5px solid var(--line2); border-radius: 999px;
  font-size: 13px; background: var(--card); cursor: pointer;
  white-space: nowrap; user-select: none;
  color: var(--ink2); transition: background .1s, border-color .1s;
}
.chip:active { background: var(--line); }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ─── Section title ──────────────────────────────────────────────────────────── */
.section-title {
  font-weight: 700; font-size: 15px;
  padding: 16px 16px 8px; color: var(--ink);
}
.section-subtitle { font-size: 13px; color: var(--muted); padding: 0 16px 12px; }

/* ─── Outlet cards (home page) ───────────────────────────────────────────────── */
.outlet-list { padding: 0 12px; display: flex; flex-direction: column; gap: 10px; }
.outlet-card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  display: flex; align-items: flex-start; gap: 14px; padding: 14px;
  cursor: pointer; transition: transform .08s ease, box-shadow .1s;
  text-decoration: none; color: inherit;
}
.outlet-card:active { transform: scale(.99); box-shadow: none; }
.outlet-card.closed { opacity: .6; }
.outlet-logo {
  width: 72px; height: 72px; border-radius: 14px; flex-shrink: 0;
  background: linear-gradient(135deg, #ffd166, #ff8c42);
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; box-shadow: 0 2px 8px rgba(255,140,66,.25);
  overflow: hidden;
}
.outlet-logo img { width: 100%; height: 100%; object-fit: cover; }
.outlet-info { flex: 1; min-width: 0; padding-top: 2px; }
.outlet-name { font-weight: 700; font-size: 15px; margin-bottom: 4px; line-height: 1.2; }
.outlet-addr { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin-bottom: 7px; line-height: 1.4; }
.outlet-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.outlet-arrow { color: var(--faint); font-size: 18px; flex-shrink: 0; }

/* ─── Badges ─────────────────────────────────────────────────────────────────── */
.badge {
  display: inline-block; font-size: 10px; font-weight: 700;
  letter-spacing: .4px; padding: 2px 7px; border-radius: 4px;
}
.badge-red    { background: var(--brand); color: #fff; }
.badge-best   { background: var(--brand); color: #fff; }
.badge-open   { color: var(--green); font-size: 12px; font-weight: 600; }
.badge-closed { color: var(--faint); font-size: 12px; font-weight: 500; }
.badge-owned  { background: var(--accent); color: var(--accent-ink); font-size: 11px; padding: 2px 8px; border-radius: 999px; font-weight: 600; }
.badge-partner{ background: #eff6ff; color: var(--blue); font-size: 11px; padding: 2px 8px; border-radius: 999px; font-weight: 600; }
.badge-dist   { font-size: 12px; color: var(--muted); font-weight: 500; }

/* ─── Outlet banner (menu page) ──────────────────────────────────────────────── */
.outlet-banner {
  background: var(--card); padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid var(--line);
}
.outlet-banner .logo-sm {
  width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, #ffd166, #ff8c42);
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.outlet-banner h2 { margin: 0 0 2px; font-size: 14px; font-weight: 700; }
.outlet-banner .sub { font-size: 12px; color: var(--muted); }
.outlet-banner .change {
  margin-left: auto; font-size: 12px; color: var(--brand); font-weight: 600;
  background: var(--brand-bg); padding: 5px 10px; border-radius: 999px;
  border: 0; flex-shrink: 0;
}

/* ─── Category tabs ──────────────────────────────────────────────────────────── */
.tabs {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 10px 16px; background: var(--card);
  border-bottom: 1px solid var(--line); scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 0 0 auto; padding: 6px 14px;
  border: 1.5px solid var(--line2); border-radius: 999px;
  font-size: 13px; background: var(--card); cursor: pointer;
  white-space: nowrap; user-select: none; color: var(--ink2);
  transition: background .1s, border-color .1s;
}
.tab:active { background: var(--line); }
.tab.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ─── Menu items ─────────────────────────────────────────────────────────────── */
.menu-section { margin-bottom: 4px; }
.item {
  display: flex; gap: 12px;
  background: var(--card); margin: 0 12px 10px; padding: 12px;
  border-radius: var(--radius); box-shadow: var(--shadow);
  cursor: pointer; transition: transform .08s ease;
}
.item:active { transform: scale(.99); }
.item-photo {
  width: 88px; height: 88px; border-radius: var(--radius-sm); flex-shrink: 0;
  background: linear-gradient(135deg, #fde2c4, #ffb088);
  display: flex; align-items: center; justify-content: center;
  font-size: 38px; overflow: hidden;
}
.item-photo img { width: 100%; height: 100%; object-fit: cover; }
.item-body { flex: 1; min-width: 0; }
.item-name { margin: 0 0 3px; font-size: 14px; font-weight: 700; }
.item-desc {
  margin: 0 0 6px; font-size: 12px; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.item-row { display: flex; justify-content: space-between; align-items: flex-end; }
.item-price { font-weight: 700; color: var(--brand); font-size: 14px; }
.item-price-old { color: var(--faint); text-decoration: line-through; font-weight: 500; font-size: 12px; margin-left: 5px; }
.btn-add {
  background: var(--brand); color: #fff; border: 0;
  border-radius: 999px; padding: 6px 14px;
  font-weight: 600; font-size: 13px; flex-shrink: 0;
}
.btn-add:active { background: var(--brand-dk); }
.item.unavailable { opacity: .45; }
.item.unavailable .btn-add { background: var(--line2); color: var(--muted); pointer-events: none; }

/* ─── Cart bar ───────────────────────────────────────────────────────────────── */
.cart-bar {
  position: fixed; bottom: 12px;
  left: 50%; transform: translateX(-50%);
  width: calc(var(--container) - 24px); max-width: calc(100% - 24px);
  background: var(--ink); color: #fff; border-radius: var(--radius);
  padding: 12px 16px; display: flex; align-items: center;
  justify-content: space-between; box-shadow: var(--shadow-lg);
  cursor: pointer; z-index: 30;
  transition: opacity .2s, transform .2s;
}
.cart-bar.hidden { opacity: 0; pointer-events: none; transform: translateX(-50%) translateY(24px); }
.cart-bar-left { display: flex; align-items: center; gap: 10px; }
.cart-count {
  background: #fff; color: var(--ink); width: 26px; height: 26px;
  border-radius: 6px; display: flex; align-items: center;
  justify-content: center; font-weight: 700; font-size: 13px;
}
.cart-label { font-size: 11px; opacity: .75; }
.cart-total { font-weight: 700; font-size: 15px; }
.cart-cta {
  background: var(--brand); padding: 8px 16px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 13px;
}

/* ─── Scrim (backdrop) ───────────────────────────────────────────────────────── */
.scrim {
  position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 40;
  display: none; animation: fadeIn .2s ease;
}
.scrim.show { display: block; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ─── Bottom sheets ──────────────────────────────────────────────────────────── */
.sheet {
  position: fixed; left: 50%; bottom: 0;
  transform: translateX(-50%) translateY(100%);
  width: 100%; max-width: var(--container);
  background: var(--card); border-radius: 20px 20px 0 0;
  z-index: 50; transition: transform .26s cubic-bezier(.4,0,.2,1);
  max-height: 92vh; overflow-y: auto;
  display: flex; flex-direction: column;
}
.sheet.show { transform: translateX(-50%) translateY(0); }
.sheet-handle {
  width: 36px; height: 4px; border-radius: 2px; background: var(--line2);
  margin: 10px auto 4px;
}
.sheet-header {
  padding: 4px 16px 14px; border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  position: sticky; top: 0; background: var(--card); z-index: 2;
}
.sheet-title { margin: 0; font-size: 16px; font-weight: 700; }
.sheet-close {
  font-size: 24px; color: var(--muted); cursor: pointer;
  border: 0; background: none; line-height: 1; padding: 0 4px;
}
.sheet-body { padding: 14px 16px; flex: 1; }
.sheet-footer {
  position: sticky; bottom: 0; background: var(--card);
  padding: 12px 16px; border-top: 1px solid var(--line);
}

/* ─── Item sheet internals ───────────────────────────────────────────────────── */
.item-hero {
  height: 160px; border-radius: 14px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 70px; margin-bottom: 14px;
  background: linear-gradient(135deg, #fde2c4, #ffb088);
}
.item-hero img { width: 100%; height: 100%; object-fit: cover; }

.variant-group { margin-bottom: 20px; }
.variant-label {
  font-weight: 700; font-size: 14px; margin-bottom: 10px;
  display: flex; justify-content: space-between; align-items: center;
}
.variant-req { font-size: 11px; color: #fff; background: var(--ink); padding: 2px 8px; border-radius: 999px; }
.variant-opt-label { font-size: 11px; color: var(--muted); font-weight: 500; }

.opt {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 0; border-bottom: 1px solid var(--line);
  font-size: 14px; cursor: pointer; user-select: none;
}
.opt:last-child { border-bottom: 0; }
.opt-left { display: flex; align-items: center; gap: 10px; }
.opt-price { color: var(--muted); font-size: 13px; }
.opt input { accent-color: var(--brand); width: 18px; height: 18px; flex-shrink: 0; }

.qty-row { display: flex; gap: 16px; align-items: center; font-weight: 700; font-size: 17px; }
.qty-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--line2);
  background: var(--card); font-size: 20px; display: flex; align-items: center;
  justify-content: center; line-height: 1;
}
.qty-btn.plus { background: var(--brand); color: #fff; border-color: var(--brand); }
.qty-btn:active { opacity: .8; }

/* ─── Add to cart button (big) ───────────────────────────────────────────────── */
.btn-add-big {
  width: 100%; background: var(--brand); color: #fff; border: 0;
  border-radius: var(--radius-sm); padding: 15px;
  font-weight: 700; font-size: 15px; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
}
.btn-add-big:active { background: var(--brand-dk); }
.btn-add-big.secondary { background: var(--ink); }
.btn-add-big.green { background: #25D366; }

/* ─── Forms ──────────────────────────────────────────────────────────────────── */
.field { margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 600; display: block; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; border: 1.5px solid var(--line2); border-radius: var(--radius-sm);
  padding: 11px 12px; font-size: 14px; font-family: var(--font);
  outline: none; color: var(--ink); transition: border-color .15s;
  background: var(--card);
}
.field input:focus, .field textarea:focus { border-color: var(--brand); }
.field input.error, .field textarea.error { border-color: var(--brand); background: var(--brand-bg); }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.field .err-msg { font-size: 12px; color: var(--brand); margin-top: 4px; display: none; }
.field.has-error .err-msg { display: block; }
.notes { resize: vertical; min-height: 64px; }

/* ─── Order summary ──────────────────────────────────────────────────────────── */
.summary-box {
  background: var(--bg); border-radius: var(--radius-sm);
  padding: 12px 14px; margin-bottom: 14px; font-size: 13px;
}
.summary-row { display: flex; justify-content: space-between; padding: 4px 0; gap: 8px; }
.summary-row .n { flex: 1; }
.summary-row.total {
  font-weight: 700; border-top: 1px dashed var(--line2);
  margin-top: 6px; padding-top: 10px; font-size: 15px;
}
.summary-row .del {
  color: var(--brand); font-size: 11px; cursor: pointer;
  text-decoration: underline; white-space: nowrap;
}

/* ─── QRIS payment box ───────────────────────────────────────────────────────── */
.qris-box {
  background: var(--accent); border: 1.5px dashed #ffb070;
  border-radius: var(--radius); padding: 16px; text-align: center; margin-bottom: 14px;
}
.qris-title { font-weight: 700; color: var(--accent-ink); font-size: 14px; margin-bottom: 10px; }
.qris-img {
  width: 180px; height: 180px; margin: 0 auto 10px;
  border-radius: var(--radius-sm); overflow: hidden;
}
.qris-img img { width: 100%; height: 100%; }
.qris-amount { font-size: 24px; font-weight: 800; color: var(--accent-ink); }
.qris-info { font-size: 12px; color: var(--accent-ink); margin-top: 4px; opacity: .8; }
.countdown { font-size: 13px; font-weight: 600; color: var(--brand); }

/* ─── Status page ─────────────────────────────────────────────────────────────── */
.status-hero { padding: 32px 16px 16px; text-align: center; }
.status-icon { font-size: 56px; margin-bottom: 10px; }
.status-title { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.status-sub { font-size: 14px; color: var(--muted); }
.status-chip {
  display: inline-block; padding: 4px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .3px; margin-top: 10px;
}
.status-pending   { background: #fff7ed; color: #c2410c; }
.status-paid      { background: #eff6ff; color: var(--blue); }
.status-preparing { background: #fefce8; color: #a16207; }
.status-ready     { background: var(--green-bg); color: var(--green); }
.status-done      { background: var(--line); color: var(--muted); }
.status-cancelled { background: var(--brand-bg); color: var(--brand); }
.status-expired   { background: var(--line); color: var(--muted); }

/* ─── Info card (general) ────────────────────────────────────────────────────── */
.info-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  margin: 0 12px 12px; padding: 14px;
}
.info-row { display: flex; gap: 10px; align-items: flex-start; padding: 5px 0; font-size: 14px; }
.info-row .label { color: var(--muted); font-size: 13px; min-width: 90px; }
.info-row .val { font-weight: 600; flex: 1; }

/* ─── Hint banner ─────────────────────────────────────────────────────────────── */
.hint-banner {
  background: #fff8e1; border-radius: var(--radius-sm); padding: 10px 12px;
  font-size: 12px; color: #7a5c00; margin-bottom: 12px;
}

/* ─── Loading skeleton ───────────────────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--line) 25%, #e8e8e8 50%, var(--line) 75%);
  background-size: 200% 100%; border-radius: var(--radius-sm);
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.skeleton-card {
  background: var(--card); margin: 0 12px 10px; padding: 12px;
  border-radius: var(--radius); box-shadow: var(--shadow);
  display: flex; gap: 12px;
}
.skeleton-photo { width: 88px; height: 88px; border-radius: var(--radius-sm); }
.skeleton-lines { flex: 1; display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.skeleton-line { height: 12px; }
.skeleton-line.short { width: 60%; }
.skeleton-line.shorter { width: 40%; }

/* ─── Empty state ─────────────────────────────────────────────────────────────── */
.empty { text-align: center; color: var(--faint); padding: 60px 20px 40px; }
.empty-icon { font-size: 48px; margin-bottom: 12px; }
.empty-title { font-size: 16px; font-weight: 700; color: var(--ink2); margin-bottom: 6px; }
.empty-desc { font-size: 13px; }

/* ─── Error state ─────────────────────────────────────────────────────────────── */
.error-box {
  margin: 24px 16px; padding: 16px; background: var(--brand-bg);
  border-radius: var(--radius); text-align: center;
}
.error-box p { margin: 0 0 12px; font-size: 14px; color: var(--brand); }
.btn-retry {
  background: var(--brand); color: #fff; border: 0; border-radius: var(--radius-sm);
  padding: 10px 20px; font-weight: 600; font-size: 14px;
}

/* ─── Toast ──────────────────────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: 10px 20px;
  border-radius: 999px; font-size: 13px; z-index: 100;
  opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s;
  white-space: nowrap; max-width: calc(var(--container) - 32px);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(-4px); }

/* ─── Pulse indicator ────────────────────────────────────────────────────────── */
.pulse {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand); animation: pulse 1s infinite;
  vertical-align: middle; margin-right: 4px;
}
@keyframes pulse { 0%,100% { opacity: .3; } 50% { opacity: 1; } }

/* ─── Home page hero ──────────────────────────────────────────────────────────── */
.home-hero {
  background: linear-gradient(135deg, var(--brand) 0%, #ff8c42 100%);
  padding: 24px 16px 20px; color: #fff;
}
.home-hero h1 { margin: 0 0 4px; font-size: 20px; font-weight: 800; }
.home-hero p { margin: 0; font-size: 13px; opacity: .85; }
.gps-status {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; margin-top: 10px; opacity: .9;
}

/* ─── Stepper (checkout steps) ───────────────────────────────────────────────── */
.stepper { display: flex; gap: 6px; margin-bottom: 16px; }
.step { flex: 1; height: 4px; background: var(--line); border-radius: 2px; }
.step.on { background: var(--brand); }

/* ─── Divider ─────────────────────────────────────────────────────────────────── */
.divider { height: 8px; background: var(--bg); margin: 0; border-top: 1px solid var(--line); }

/* ─── Loading overlay (dipakai checkout saat submit payment) ─────────────────── */
.loading-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.6);
  display: flex; align-items: center; justify-content: center;
  z-index: 200;
}
.loading-card {
  background: var(--card); border-radius: var(--radius);
  padding: 28px 32px; text-align: center; max-width: 260px;
}
.spinner {
  width: 40px; height: 40px; border: 3px solid var(--line2);
  border-top-color: var(--brand); border-radius: 50%;
  animation: spin .8s linear infinite; margin: 0 auto 14px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-card p { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink2); }

/* ─── Order number display (halaman status, state ready) ─────────────────────── */
.order-number-big {
  font-size: 28px; font-weight: 800; letter-spacing: 1px;
  color: var(--ink); text-align: center; padding: 12px 0;
}
.qr-canvas-wrap {
  display: flex; justify-content: center; margin: 8px 0 12px;
}
.qr-canvas-wrap canvas, .qr-canvas-wrap img { border-radius: var(--radius-sm); }

/* ─── Button secondary (outline) ─────────────────────────────────────────────── */
.btn-outline {
  width: 100%; background: transparent; color: var(--ink);
  border: 1.5px solid var(--line2); border-radius: var(--radius-sm);
  padding: 13px; font-weight: 600; font-size: 14px; cursor: pointer;
  text-align: center; margin-bottom: 8px;
}
.btn-outline:active { background: var(--line); }

/* ─── Outlet selector dropdown (home page) ──────────────────────────────────── */
.outlet-sel-wrap {
  position: relative; background: var(--card);
  border-bottom: 1px solid var(--line);
}
.outlet-sel {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; cursor: pointer; user-select: none;
  gap: 10px;
}
.outlet-sel-left { display: flex; align-items: center; gap: 10px; }
.outlet-sel-icon { font-size: 18px; }
.outlet-sel-label { font-size: 11px; color: var(--muted); line-height: 1; margin-bottom: 2px; }
.outlet-sel-name { font-weight: 700; font-size: 14px; color: var(--ink); }
.outlet-sel-arrow { font-size: 12px; color: var(--muted); flex-shrink: 0; transition: transform .15s; }
.outlet-dropdown {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 30;
  background: var(--card); border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(0,0,0,.1);
  max-height: 320px; overflow-y: auto;
}
.outlet-dropdown-inner { padding: 6px 0; }
.outlet-drop-item {
  padding: 11px 16px; cursor: pointer;
  transition: background .1s;
}
.outlet-drop-item:hover { background: var(--bg); }
.outlet-drop-item.active { background: var(--brand-bg); }
.outlet-drop-name { font-weight: 600; font-size: 14px; margin-bottom: 2px; }
.outlet-drop-meta { font-size: 12px; color: var(--muted); }

/* ─── Outlet header – menu page (TikTok-style) ──────────────────────────────── */
.outlet-hdr {
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.outlet-hdr-top {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px 12px;
}
.outlet-hdr-logo {
  width: 76px; height: 76px; border-radius: 14px; flex-shrink: 0;
  background: linear-gradient(135deg, #ffd166, #ff8c42);
  display: flex; align-items: center; justify-content: center;
  font-size: 38px; overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.outlet-hdr-logo img { width: 100%; height: 100%; object-fit: cover; }
.outlet-hdr-info { flex: 1; min-width: 0; padding-top: 2px; }
.outlet-hdr-name {
  font-weight: 800; font-size: 16px; color: var(--ink);
  margin-bottom: 5px; line-height: 1.2;
}
.outlet-hdr-status { font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.outlet-hdr-change {
  font-size: 12px; font-weight: 600; color: var(--brand);
  background: var(--brand-bg); border: 0; border-radius: 999px;
  padding: 5px 10px; flex-shrink: 0; cursor: pointer;
}
.outlet-hdr-addr {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 16px 10px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--muted);
}

/* ─── TikTok-style deal cards ────────────────────────────────────────────────── */
.deal-section { }
.deal-section-title {
  font-weight: 700; font-size: 11px; color: var(--muted);
  padding: 14px 16px 4px; text-transform: uppercase; letter-spacing: .5px;
}
.deal-card {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px; background: var(--card);
  border-bottom: 1px solid var(--line);
  cursor: pointer; transition: background .1s;
}
.deal-card:active { background: #f8f8f8; }
.deal-card.unavailable { opacity: .5; cursor: not-allowed; }
.deal-img-wrap { position: relative; flex-shrink: 0; }
.deal-img {
  width: 108px; height: 80px; border-radius: 12px;
  background: linear-gradient(135deg, #fde2c4, #ffb088);
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; overflow: hidden;
}
.deal-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.deal-img-badge {
  position: absolute; top: 5px; left: 5px;
  background: var(--brand); color: #fff;
  font-size: 9px; font-weight: 800;
  padding: 2px 6px; border-radius: 3px; letter-spacing: .3px;
}
.deal-img-badge.sold-out { background: rgba(0,0,0,.55); }
.deal-body {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 3px;
}
.deal-name { font-weight: 700; font-size: 14px; color: var(--ink); line-height: 1.3; }
.deal-desc {
  font-size: 12px; color: var(--muted); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.deal-price-row {
  display: flex; align-items: flex-end;
  justify-content: space-between; margin-top: 6px; gap: 8px;
}
.deal-price { font-size: 18px; font-weight: 800; color: var(--brand); line-height: 1; }
.deal-price-meta { display: flex; align-items: center; gap: 5px; margin-top: 3px; }
.deal-compare { font-size: 11px; color: var(--faint); text-decoration: line-through; }
.deal-discount {
  font-size: 10px; font-weight: 700; color: var(--brand);
  background: var(--brand-bg); padding: 1px 5px; border-radius: 3px;
}
.deal-add-btn {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--brand); color: #fff; border: none;
  font-size: 22px; font-weight: 300;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0; line-height: 1;
}
.deal-add-btn:active { background: var(--brand-dk); transform: scale(.92); }

/* ─── Responsive: pastikan tampilan tetap bagus di desktop ───────────────────── */
@media (min-width: 500px) {
  body { padding: 12px 0; }
  .phone { border-radius: 20px; overflow: hidden; box-shadow: 0 0 0 1px var(--line), var(--shadow-lg); }
  .cart-bar { bottom: 24px; }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   ADMIN PANEL — styles
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ─── Form elements ──────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 12px; }
.form-label {
  display: block; font-size: 12px; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: .5px; margin-bottom: 5px;
}
.form-input {
  width: 100%; padding: 11px 13px;
  border: 1.5px solid var(--line2); border-radius: var(--radius-xs);
  background: var(--card); font-size: 14px; color: var(--ink);
  outline: none; transition: border-color .15s; font-family: var(--font);
  box-sizing: border-box;
}
.form-input:focus { border-color: var(--brand); }
.form-input::placeholder { color: var(--faint); }
textarea.form-input { resize: vertical; min-height: 72px; }
select.form-input { cursor: pointer; }

/* ─── Admin bottom navigation ────────────────────────────────────────────────── */
.admin-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: var(--container);
  background: var(--card); border-top: 1px solid var(--line);
  display: flex; z-index: 30; padding-bottom: env(safe-area-inset-bottom, 0);
}
.admin-nav a {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 8px 4px 6px;
  font-size: 10px; color: var(--faint); gap: 3px;
  text-decoration: none; transition: color .1s;
}
.admin-nav a span:first-child { font-size: 20px; line-height: 1; }
.admin-nav a.active { color: var(--brand); }
.admin-nav a:active { color: var(--brand-dk); }

/* ─── Topbar action button (kanan) ───────────────────────────────────────────── */
.topbar-action {
  font-size: 13px; font-weight: 600; color: var(--brand);
  background: var(--brand-bg); border: 0; border-radius: 999px;
  padding: 6px 13px; cursor: pointer;
}
.topbar-action:active { background: #ffd6d6; }

/* ─── Stat cards (dashboard) ─────────────────────────────────────────────────── */
.stat-card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 14px 12px; text-align: center;
}

/* ─── Admin order / item row ─────────────────────────────────────────────────── */
.admin-order-row {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 12px; margin-bottom: 10px;
}

/* ─── Action buttons inside order row ───────────────────────────────────────── */
.action-btn {
  border: 0; border-radius: var(--radius-xs);
  padding: 7px 14px; font-size: 12px; font-weight: 600; cursor: pointer;
  flex-shrink: 0;
}
.action-primary   { background: var(--brand); color: #fff; }
.action-primary:active  { background: var(--brand-dk); }
.action-secondary { background: var(--line); color: var(--ink2); }
.action-secondary:active { background: var(--line2); }
.action-danger    { background: #fff0f0; color: var(--brand); }
.action-danger:active { background: #ffd6d6; }

/* ─── iOS-style toggle switch ────────────────────────────────────────────────── */
.toggle-wrap { position: relative; display: inline-flex; cursor: pointer; }
.toggle-wrap input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle-slider {
  width: 42px; height: 24px; background: var(--line2); border-radius: 12px;
  transition: background .2s; position: relative; display: block;
}
.toggle-slider::after {
  content: ''; position: absolute;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; top: 3px; left: 3px;
  transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.toggle-wrap input:checked + .toggle-slider { background: var(--green); }
.toggle-wrap input:checked + .toggle-slider::after { transform: translateX(18px); }

/* ─── Admin modal (bottom sheet) ─────────────────────────────────────────────── */
.admin-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  z-index: 200; display: none; align-items: flex-end; justify-content: center;
}
.admin-modal-card {
  background: var(--card); border-radius: 20px 20px 0 0;
  width: 100%; max-width: var(--container);
  max-height: 92vh; overflow-y: auto;
  display: flex; flex-direction: column;
}
.admin-modal-header {
  padding: 16px 16px 12px; border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  position: sticky; top: 0; background: var(--card); z-index: 2;
}
.admin-modal-body { padding: 14px 16px; flex: 1; }
.admin-modal-footer {
  padding: 12px 16px 20px; border-top: 1px solid var(--line);
  position: sticky; bottom: 0; background: var(--card);
}
