/* =========================================================
   Wijajeg — Jasa Order Promo
   Palet: krem hangat & cokelat kopi
   ========================================================= */
:root {
  --bg: #fbf8f4;
  --panel: #f5efe7;
  --card: #fbf7f2;
  --card-2: #efe6db;
  --line: #e3d7c9;
  --ink: #3a2a1f;
  --accent: #7a5236;
  --accent-soft: #ead9c7;
  --muted: #8f8378;
  --white: #ffffff;
  --green: #25a35a;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(58, 42, 31, .04), 0 8px 24px -12px rgba(58, 42, 31, .18);
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
body.has-cart { padding-bottom: 96px; }
a { color: inherit; text-decoration: none; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }

/* ---------- Topbar ---------- */
/* Grid 3 kolom: [tombol kembali] [logo di tengah] [kosong] — tombol tidak pernah menimpa logo */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 60px; padding: 0 16px;
  background: rgba(255, 255, 255, .85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar > * { grid-row: 1; }
.topbar__logo { grid-column: 2; display: block; }
.topbar__logo img { height: 52px; width: auto; max-width: 140px; object-fit: contain; display: block; }
.wordmark {
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: .02em;
  color: var(--ink);
}

/* ---------- Layout ---------- */
.page { padding: 20px 16px 32px; }
.panel {
  max-width: 560px;
  margin: 0 auto;
  padding: 40px 20px 28px;
  background:
    radial-gradient(120% 60% at 50% 0%, #fffdf9 0%, transparent 70%),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

/* ---------- Hero ---------- */
.hero { text-align: center; margin-bottom: 28px; }
.pill {
  display: inline-block;
  padding: 7px 18px;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
}
.pill--sm { padding: 4px 12px; font-size: .6rem; }
.hero__title {
  margin: 22px 0 12px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 8vw, 3rem);
  line-height: 1.05;
}
.hero__title em { color: var(--accent); }
.hero__desc { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- Search ---------- */
.search {
  position: relative;
  margin-bottom: 18px;
}
.search svg {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: var(--muted);
}
.search input {
  width: 100%;
  padding: 14px 16px 14px 46px;
  font: inherit; font-size: .92rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.search input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

/* ---------- Brand list ---------- */
.brand-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.brand-card {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: linear-gradient(135deg, var(--card), var(--card-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.brand-card:hover, .brand-card:focus-visible {
  transform: translateY(-2px);
  border-color: #d4c2ae;
  box-shadow: var(--shadow);
  outline: none;
}
.brand-icon {
  flex: none;
  display: grid; place-items: center;
  width: 48px; height: 48px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.brand-icon--lg { width: 64px; height: 64px; border-radius: 18px; }
.brand-icon__emoji { font-size: 1.4rem; line-height: 1; }
.brand-icon--lg .brand-icon__emoji { font-size: 1.9rem; }
.brand-icon__initial { font-weight: 700; font-size: .85rem; letter-spacing: .04em; }
.brand-icon--lg .brand-icon__initial { font-size: 1.1rem; }

.brand-card__body { flex: 1; min-width: 0; display: grid; gap: 3px; }
.brand-card__name { font-weight: 700; font-size: 1rem; }
.brand-card__meta { display: flex; align-items: center; gap: 6px; font-size: .75rem; color: var(--muted); }
.dot { width: 6px; height: 6px; border-radius: 50%; }
.brand-card__arrow {
  flex: none;
  display: grid; place-items: center;
  width: 34px; height: 34px;
  color: var(--accent);
  background: var(--white);
  border-radius: 50%;
  transition: background .2s, color .2s;
}
.brand-card:hover .brand-card__arrow { background: var(--accent); color: var(--white); }


/* Brand ditutup dari admin */
.brand-card.is-closed .brand-icon, .brand-card.is-closed .brand-card__body { opacity: .55; filter: grayscale(.6); }
.brand-card.is-closed .brand-card__arrow { display: none; }
.brand-card__closed {
  flex: none; padding: 4px 10px; font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #9b2228; background: #fbe3e2; border-radius: 999px;
}
.pill--closed { color: #9b2228; background: #fbe3e2; }
.brand-closed-box { text-align: center; }
.brand-closed-box__icon { display: block; margin: 26px auto 6px; font-size: 2.2rem; }
.brand-closed-box__title { margin: 0; padding: 0 20px; font-family: var(--serif); font-weight: 400; font-size: 1.45rem; }
.brand-closed-box__msg { margin: 8px 0 20px; padding: 0 24px; font-size: .88rem; color: var(--muted); }

/* Popup pengumuman di beranda */
.announce { text-align: center; }
.announce__badge {
  display: grid; place-items: center;
  width: 64px; height: 64px; margin: 26px auto 12px;
  font-size: 1.8rem;
  background: var(--accent-soft); border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(234, 217, 199, .45);
}
.announce__kicker { font-size: .68rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.announce__title { margin: 6px 0 0; padding: 0 22px; font-family: var(--serif); font-weight: 400; font-size: 1.45rem; line-height: 1.25; }
.announce__list { display: grid; gap: 8px; margin: 18px 0 20px; padding: 0 20px; list-style: none; text-align: left; }
.announce__list li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 12px;
  font-size: .86rem; line-height: 1.45; color: #5b4c41;
  background: var(--card-2); border-radius: 14px;
}
.announce__list strong { color: var(--ink); }
.announce__icon { flex: none; font-size: 1.05rem; line-height: 1.3; }
.brand-closed .btn-soft { text-decoration: none; }
.empty { text-align: center; color: var(--muted); font-size: .9rem; padding: 20px 0; }

/* ---------- Steps ---------- */
.steps {
  margin: 32px 0 20px;
  padding: 20px;
  background: var(--white);
  border: 1px dashed #d8c8b6;
  border-radius: var(--radius);
}
.steps__title { margin: 0 0 14px; font-family: var(--serif); font-weight: 400; font-size: 1.3rem; text-align: center; }
.steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.steps li { display: flex; align-items: center; gap: 12px; font-size: .88rem; }
.steps li span {
  flex: none;
  display: grid; place-items: center;
  width: 26px; height: 26px;
  font-size: .75rem; font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 50%;
}

/* ---------- Quick links ---------- */
.quick-links {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  margin-top: 28px;
}
.quick-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px;
  padding: 18px 8px;
  font: inherit; color: var(--ink); text-align: center;
  background: #fdfbf8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.quick-card:hover, .quick-card:focus-visible {
  transform: translateY(-2px);
  border-color: #d4c2ae;
  box-shadow: var(--shadow);
  outline: none;
}
.quick-card__icon {
  display: grid; place-items: center;
  width: 44px; height: 44px; margin-bottom: 8px;
  font-size: 1.2rem; line-height: 1;
  background: var(--card-2);
  border-radius: 50%;
}
.quick-card__title { font-family: var(--serif); font-size: 1rem; line-height: 1.25; }
.quick-card__sub { font-size: .7rem; color: var(--muted); }

/* ---------- Modal cara pemesanan ---------- */
body.modal-open { overflow: hidden; }
.modal {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.modal__backdrop { position: absolute; inset: 0; background: rgba(40, 28, 20, .45); animation: fade .2s ease-out; }
.modal__box {
  position: relative;
  display: flex; flex-direction: column;
  width: 100%; max-width: 420px; max-height: calc(100vh - 32px);
  background: var(--panel);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 60px -12px rgba(40, 28, 20, .45);
  animation: pop .22s ease-out;
}
.modal__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px;
  background: var(--card-2);
  border-bottom: 1px solid var(--line);
}
.modal__head h2 { margin: 0; font-size: 1.1rem; font-weight: 700; }
.modal__x {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line); border-radius: 50%;
  cursor: pointer;
}
.modal__x:hover { color: var(--accent); }
.timeline { list-style: none; margin: 0; padding: 24px 20px 8px; overflow-y: auto; }
.timeline li { position: relative; display: flex; gap: 18px; padding-bottom: 26px; }
.timeline li:not(:last-child)::before {
  content: ''; position: absolute;
  left: 21px; top: 50px; bottom: 6px;
  width: 2px; background: var(--line);
}
.timeline__num {
  flex: none;
  display: grid; place-items: center;
  width: 44px; height: 44px;
  font-weight: 700; font-size: 1.05rem;
  color: var(--white);
  background: #6f4a32;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line), 0 4px 10px -4px rgba(58, 42, 31, .4);
}
.timeline h3 { display: flex; align-items: center; gap: 10px; margin: 8px 0 6px; font-size: 1rem; font-weight: 700; }
.timeline__tag {
  display: inline-grid; place-items: center;
  padding: 2px 8px;
  font-size: .8rem;
  background: var(--card-2);
  border-radius: 8px;
}
.timeline p { margin: 0; font-size: .86rem; line-height: 1.6; color: #6b5d52; }
.modal__foot { padding: 14px; background: var(--card-2); border-top: 1px solid var(--line); }
.modal__cta {
  width: 100%;
  padding: 15px;
  font: inherit; font-weight: 700; font-size: .95rem;
  color: var(--white);
  background: #6f4a32;
  border: 0; border-radius: 14px;
  cursor: pointer;
  transition: background .2s;
}
.modal__cta:hover { background: var(--ink); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }

/* ---------- Buttons ---------- */
.btn-wa {
  display: flex; justify-content: center; align-items: center; gap: 10px;
  padding: 15px;
  font-weight: 600; font-size: .92rem;
  color: var(--white);
  background: var(--ink);
  border-radius: 14px;
  transition: background .2s;
}
.btn-wa svg { fill: currentColor; stroke: none; width: 20px; height: 20px; }
.btn-wa:hover { background: var(--accent); }

/* ---------- Brand page ---------- */
.back {
  display: inline-flex; align-items: center; gap: 6px;
  margin: -16px 0 20px;
  font-size: .82rem; font-weight: 600;
  color: var(--muted);
}
.back:hover { color: var(--accent); }
.brand-hero { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.brand-hero__title { margin: 6px 0 0; font-family: var(--serif); font-weight: 400; font-size: 2rem; line-height: 1.1; }

.chips {
  display: flex; gap: 8px;
  overflow-x: auto;
  margin: 0 -20px 8px; padding: 0 20px 6px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  padding: 7px 14px;
  font-size: .78rem; font-weight: 600;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }

.menu-cat {
  margin: 22px 0 10px;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent);
  scroll-margin-top: 76px;
}
.menu-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.menu-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .2s, background .2s;
}
.menu-item.is-selected { border-color: var(--accent); background: var(--white); }
.menu-item__info { flex: 1; min-width: 0; }
.menu-item h3 { margin: 0; font-size: .95rem; font-weight: 700; }
.menu-item p { margin: 3px 0 0; font-size: .76rem; color: var(--muted); line-height: 1.4; }
.price { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 8px; font-size: .88rem; }
.price strong { color: var(--accent); }
.price s { color: var(--muted); font-size: .76rem; }
.badge {
  padding: 2px 7px;
  font-size: .66rem; font-weight: 700;
  color: #b23a2b;
  background: #fbe3dd;
  border-radius: 6px;
}

.qty {
  flex: none;
  display: flex; align-items: center; gap: 4px;
  padding: 4px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.qty__btn {
  width: 30px; height: 30px;
  font: inherit; font-size: 1.05rem; line-height: 1;
  color: var(--accent);
  background: var(--accent-soft);
  border: 0; border-radius: 50%;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.qty__btn:hover { background: var(--accent); color: var(--white); }
.qty__val { min-width: 20px; text-align: center; font-weight: 700; font-size: .88rem; }

.order-form { display: grid; gap: 14px; margin-top: 28px; }
.order-form label { display: grid; gap: 6px; font-size: .8rem; font-weight: 600; }
.order-form input, .order-form textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit; font-weight: 400; font-size: .9rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  resize: vertical;
}
.order-form input:focus, .order-form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

/* ---------- Pencarian gerai ---------- */
.store-field { position: relative; display: grid; gap: 6px; font-size: .8rem; font-weight: 600; }
.store-list {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 20;
  margin: 6px 0 0; padding: 6px; list-style: none;
  max-height: 280px; overflow-y: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.store-list__item { display: grid; gap: 2px; padding: 10px 12px; border-radius: 8px; cursor: pointer; }
.store-list__item strong { font-size: .88rem; color: var(--ink); }
.store-list__item span { font-size: .75rem; font-weight: 400; color: var(--muted); }
.store-list__item:hover, .store-list__item.is-active { background: var(--accent-soft); }
/* Popup pilih gerai */
.sheet--picker { height: min(680px, 90vh); }
.picker-head {
  flex: none; padding: 14px 20px 16px;
  background: linear-gradient(180deg, var(--panel) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}
.picker-brand {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px 5px 8px;
  font-size: .66rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); background: var(--white);
  border: 1px solid var(--line); border-radius: 99px;
}
.picker-brand svg { width: 14px; height: 14px; }
.picker-title { margin: 10px 0 4px; font-family: var(--serif); font-weight: 400; font-size: 1.6rem; line-height: 1.15; padding-right: 44px; }
.picker-sub { margin: 0 0 14px; font-size: .8rem; line-height: 1.45; color: var(--muted); }
.picker-head .search { margin: 0; }
.picker-search input {
  padding-right: 48px;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(58, 42, 31, .05);
}
.picker-search input::placeholder { color: #b0a498; }
.picker-search__clear {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center;
  width: 32px; height: 32px; padding: 0;
  color: var(--muted); background: var(--card-2);
  border: 0; border-radius: 50%; cursor: pointer;
  transition: background .2s, color .2s;
}
.picker-search .picker-search__clear svg { position: static; transform: none; width: 15px; height: 15px; color: inherit; }
.picker-search__clear:hover { color: var(--ink); background: var(--accent-soft); }
.picker-search__clear:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.picker-search__spin {
  position: absolute; right: 48px; top: 50%;
  width: 16px; height: 16px; margin-top: -8px;
  border: 2px solid var(--accent-soft); border-top-color: var(--accent); border-radius: 50%;
  opacity: 0; pointer-events: none;
  animation: spPulse .7s linear infinite;
}
.picker-search.is-loading .picker-search__spin { opacity: 1; }
@keyframes spPulse { to { transform: rotate(360deg); } }

.picker-results { display: grid; align-content: start; gap: 8px; padding-top: 14px; padding-bottom: 20px; }
.picker-label {
  display: flex; align-items: center; gap: 6px;
  margin: 0 0 2px; font-size: .66rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
}
.picker-label svg { width: 14px; height: 14px; }
.picker-count { margin: 0 0 2px; font-size: .78rem; color: var(--muted); }
.picker-count strong { color: var(--ink); }
.picker-note {
  margin: 6px 0 0; padding: 10px 12px;
  font-size: .74rem; line-height: 1.45; text-align: center; color: var(--muted);
  background: var(--panel); border-radius: 12px;
}

/* Kartu gerai di popup */
.outlet-card--pick {
  grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 12px 12px 12px 12px;
}
.outlet-card--pick .outlet-card__body { display: grid; gap: 4px; min-width: 0; }
.outlet-card--pick .outlet-card__top { justify-content: flex-start; align-items: center; flex-wrap: wrap; gap: 6px; }
.outlet-card--pick .outlet-card__top strong { font-size: .92rem; line-height: 1.3; }
.outlet-card__icon {
  display: grid; place-items: center;
  width: 40px; height: 40px; align-self: start;
  color: var(--accent); background: var(--accent-soft); border-radius: 12px;
  transition: background .2s, color .2s;
}
.outlet-card__icon svg { width: 20px; height: 20px; }
.outlet-card__go { color: #c4b6a7; transition: color .2s, transform .2s; }
.outlet-card--pick:hover .outlet-card__go,
.outlet-card--pick.is-active .outlet-card__go { color: var(--accent); transform: translateX(2px); }
.outlet-card--pick:hover .outlet-card__icon,
.outlet-card--pick.is-active .outlet-card__icon { color: var(--white); background: var(--accent); }
.outlet-card--pick.is-active { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.outlet-card--pick mark { padding: 0 1px; color: inherit; background: #f6deb8; border-radius: 3px; }
.outlet-card--pick .outlet-card__addr mark { color: var(--ink); }
.concept-badge--last { color: #1d7a45; background: #dcf2e4; }
.outlet-card--manual { border-style: dashed; border-color: var(--accent); }

/* Status buka/tutup gerai realtime (StoreStatus di assets/js/store-picker.js) */
.outlet-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 4px; }
.store-status {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 8px 2px 7px;
  font-size: .68rem; font-weight: 700; line-height: 1.5; white-space: nowrap;
  border-radius: 999px;
}
.store-status[hidden] { display: none; }
.store-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.store-status--open   { color: #1d7a45; background: #dcf2e4; }
.store-status--soon   { color: #9a5b06; background: #fdedc8; }
.store-status--closed { color: #a52a2a; background: #fbe3e2; }
.store-status--open::before { box-shadow: 0 0 0 0 rgba(29, 122, 69, .5); animation: store-pulse 2s infinite; }
@keyframes store-pulse { 70% { box-shadow: 0 0 0 5px rgba(29, 122, 69, 0); } 100% { box-shadow: 0 0 0 0 rgba(29, 122, 69, 0); } }
@media (prefers-reduced-motion: reduce) { .store-status--open::before { animation: none; } }
.outlet-card--pick.is-store-closed .outlet-card__top strong,
.outlet-card--pick.is-store-closed .outlet-card__addr { opacity: .6; }
/* Gerai tutup: tidak bisa dipilih */
.outlet-card--pick.is-store-closed { cursor: not-allowed; background: #faf7f3; }
.outlet-card--pick.is-store-closed .outlet-card__icon { filter: grayscale(1); opacity: .6; }
.outlet-card--pick.is-store-closed .outlet-card__go { visibility: hidden; }
.outlet-card--pick.is-store-closed:hover { border-color: var(--line); box-shadow: none; }
.outlet-card--pick.is-store-closed:hover .outlet-card__icon { color: var(--accent); background: var(--accent-soft); }
.outlet-card--pick.is-shake { animation: store-shake .35s; }
@keyframes store-shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) { .outlet-card--pick.is-shake { animation: none; } }
.picker-alert {
  display: flex; align-items: flex-start; gap: 8px;
  margin: 0 0 10px; padding: 10px 12px;
  font-size: .8rem; font-weight: 600; line-height: 1.45; color: #9b2228;
  background: #fbe3e2; border-radius: 12px;
}
.picker-alert svg { width: 17px; height: 17px; flex: none; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* Gerai yang dipilih ternyata tutup (halaman brand) */
.store-lock--closed { padding: 10px 12px; font-weight: 600; color: #9b2228; background: #fbe3e2; border-radius: 12px; }

/* Keadaan kosong / tidak ditemukan / error */
.picker-state { display: grid; justify-items: center; padding: 18px 8px 6px; text-align: center; }
.picker-state__icon {
  display: grid; place-items: center;
  width: 56px; height: 56px; margin-bottom: 12px;
  color: var(--accent); background: var(--panel);
  border: 1px solid var(--line); border-radius: 18px;
}
.picker-state__icon svg { width: 26px; height: 26px; }
.picker-state__title { margin: 0 0 4px; font-size: .95rem; font-weight: 700; }
.picker-state__text { max-width: 320px; margin: 0; font-size: .8rem; line-height: 1.5; color: var(--muted); }
.picker-state__text strong { color: var(--ink); }
.picker-state--warn .picker-state__icon { color: #b23a2b; background: #fbe3dd; border-color: #f1c9bf; }
.picker-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.picker-chip {
  padding: 7px 14px;
  font: inherit; font-size: .78rem; font-weight: 600; color: var(--ink);
  background: var(--white); border: 1px solid var(--line); border-radius: 99px;
  cursor: pointer; transition: border-color .2s, background .2s, color .2s;
}
.picker-chip:hover, .picker-chip:focus-visible { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); outline: none; }

/* Skeleton saat memuat */
.outlet-skel {
  display: grid; grid-template-columns: 40px 1fr; gap: 12px;
  padding: 12px; background: var(--white); border: 1px solid var(--line); border-radius: 14px;
}
.outlet-skel__icon, .outlet-skel__lines span, .outlet-skel__count {
  display: block; border-radius: 8px;
  background: linear-gradient(90deg, #f1e9df 0%, #f9f4ee 50%, #f1e9df 100%);
  background-size: 200% 100%; animation: spShimmer 1.2s ease-in-out infinite;
}
.outlet-skel__icon { height: 40px; border-radius: 12px; }
.outlet-skel__lines { display: grid; gap: 7px; align-content: center; }
.outlet-skel__lines span { height: 10px; }
.outlet-skel__lines span:nth-child(1) { width: 55%; height: 12px; }
.outlet-skel__lines span:nth-child(3) { width: 75%; }
.outlet-skel__count { width: 160px; height: 12px; }
@keyframes spShimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

@media (prefers-reduced-motion: reduce) {
  .outlet-skel__icon, .outlet-skel__lines span, .outlet-skel__count, .picker-search__spin { animation: none; }
}
.concept-badge {
  flex: none; padding: 2px 8px;
  font-size: .62rem; font-weight: 700;
  color: var(--accent); background: var(--accent-soft); border-radius: 6px;
}
.store-choose {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 16px;
  font: inherit; font-size: .9rem; font-weight: 700;
  color: var(--accent); background: var(--white);
  border: 1.5px dashed var(--accent); border-radius: 16px;
  cursor: pointer;
  transition: background .2s;
}
.store-choose:hover { background: var(--accent-soft); }
.store-step .outlet-picked { margin-bottom: 0; }
.store-list__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.store-list__item .store-list__concept {
  flex: none; padding: 2px 8px;
  font-size: .62rem; font-style: normal; font-weight: 700;
  color: var(--accent); background: var(--accent-soft); border-radius: 6px;
}
.store-list__item .store-list__hours { font-weight: 600; color: var(--accent); }
.store-list__msg { padding: 10px 12px; font-size: .8rem; font-weight: 400; color: var(--muted); }
.store-picked { margin: 0; font-size: .75rem; font-weight: 500; color: var(--green); }
.store-step { margin-top: 20px; }
.store-step .store-field input {
  width: 100%; padding: 12px 14px;
  font: inherit; font-weight: 400; font-size: .9rem; color: var(--ink);
  background: var(--white); border: 1px solid var(--line); border-radius: 12px; outline: none;
}
.store-step .store-field input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.store-lock { margin: 10px 0 0; font-size: .8rem; color: var(--muted); }
.store-lock[hidden] { display: none; }
#menu.is-locked .menu-list { opacity: .45; filter: grayscale(.4); }
#menu.is-locked .qty__btn { cursor: not-allowed; }

/* ---------- Cart bar ---------- */
.cartbar {
  position: fixed; left: 50%; bottom: 16px; z-index: 30;
  transform: translateX(-50%);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: calc(100% - 32px); max-width: 528px;
  padding: 10px 10px 10px 20px;
  color: var(--white);
  background: var(--ink);
  border-radius: 18px;
  box-shadow: 0 12px 32px -8px rgba(58, 42, 31, .5);
  animation: rise .25s ease-out;
}
.cartbar__info { display: grid; font-size: .75rem; opacity: .95; }
.cartbar__info strong { font-size: 1.05rem; }
.cartbar__btn {
  padding: 12px 18px;
  font: inherit; font-weight: 700; font-size: .85rem;
  color: var(--white);
  background: var(--green);
  border: 0; border-radius: 12px;
  cursor: pointer;
}
.cartbar__btn:hover { filter: brightness(1.08); }
@keyframes rise { from { opacity: 0; transform: translate(-50%, 12px); } }

/* =========================================================
   Katalog dari API (gerai -> menu -> keranjang)
   ========================================================= */
.step-label { display: block; margin: 0 0 8px; font-size: .8rem; font-weight: 700; }
.outlet-step .search { margin-bottom: 10px; }
.outlet-results {
  display: grid; gap: 8px;
  max-height: 440px; overflow-y: auto;
  margin-bottom: 12px; padding: 2px;
  overscroll-behavior: contain;
}
.outlet-msg { margin: 0; padding: 12px; font-size: .8rem; color: var(--muted); text-align: center; }
.outlet-card {
  display: grid; gap: 5px;
  width: 100%; padding: 12px 14px;
  font: inherit; text-align: left; color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line); border-radius: 14px;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}
.outlet-card:hover, .outlet-card:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); outline: none; }
.outlet-card.is-closed { background: #f6f1eb; }
.outlet-card.is-closed:hover { border-color: #d9b3ab; box-shadow: none; }
.outlet-card.is-closed strong, .outlet-card.is-closed .outlet-card__addr { opacity: .6; }
.outlet-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.outlet-card__top strong { font-size: .9rem; }
.outlet-card__addr {
  font-size: .75rem; line-height: 1.45; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.outlet-card__hours { display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; font-weight: 600; color: var(--accent); }
.outlet-card__hours svg { width: 13px; height: 13px; }
.status { flex: none; padding: 3px 8px; font-size: .62rem; font-weight: 800; letter-spacing: .08em; border-radius: 6px; }
.status--open { color: #1d7a45; background: #dcf2e4; }
.status--closed { color: #b23a2b; background: #fbe3dd; }

.outlet-picked {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 14px; padding: 14px;
  background: var(--white);
  border: 1px solid var(--accent); border-radius: 16px;
}
.outlet-picked__icon {
  flex: none; display: grid; place-items: center;
  width: 40px; height: 40px;
  color: var(--white); background: var(--accent); border-radius: 12px;
}
.outlet-picked__info { flex: 1; min-width: 0; display: grid; gap: 2px; }
.outlet-picked__label { font-size: .6rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.outlet-picked__info strong { font-size: .95rem; }
.outlet-picked__addr { font-size: .74rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.outlet-picked__change {
  flex: none; padding: 8px 14px;
  font: inherit; font-size: .76rem; font-weight: 700;
  color: var(--accent); background: var(--accent-soft);
  border: 0; border-radius: 10px; cursor: pointer;
}
.outlet-picked__change:hover { background: var(--accent); color: var(--white); }

/* ---------- Katalog: gerai dipilih & WiFi (ringkas, nyaman di HP) ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.picked {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 10px; padding: 10px 10px 10px 12px;
  background: var(--white); border: 1px solid var(--line); border-radius: 14px;
}
.picked[hidden] { display: none; }
.picked__icon { flex: none; display: grid; place-items: center; width: 28px; height: 28px; color: var(--accent); background: var(--accent-soft); border-radius: 50%; }
.picked__icon svg { width: 15px; height: 15px; }
.picked__info { flex: 1; min-width: 0; display: grid; gap: 1px; }
.picked__name { overflow: hidden; font-size: .9rem; line-height: 1.3; white-space: nowrap; text-overflow: ellipsis; }
.picked__meta { display: flex; align-items: center; gap: 5px; min-width: 0; font-size: .72rem; color: var(--muted); white-space: nowrap; }
.picked__hours { display: inline-flex; flex: none; align-items: center; gap: 3px; font-weight: 600; color: var(--accent); }
.picked__hours svg { width: 11px; height: 11px; }
.picked__dot { flex: none; }
.picked__addr { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.picked__change {
  flex: none; padding: 6px 12px;
  font: inherit; font-size: .74rem; font-weight: 700;
  color: var(--accent); background: transparent;
  border: 1px solid var(--line); border-radius: 99px; cursor: pointer;
}
.picked__change:hover, .picked__change:focus-visible { border-color: var(--accent); outline: none; }

.wifi {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px;
  margin: 0 0 16px; padding: 8px 10px 8px 12px;
  background: var(--accent-soft); border-radius: 14px;
}
.wifi__head { display: inline-flex; align-items: center; gap: 6px; margin-right: auto; font-size: .76rem; font-weight: 700; color: var(--accent); }
.wifi__head svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.wifi__head circle { fill: currentColor; stroke: none; }
.wifi__date { font-weight: 500; color: var(--muted); }
.wifi__chip {
  display: inline-flex; align-items: baseline; gap: 6px; max-width: 100%;
  padding: 5px 10px;
  font: inherit; text-align: left; color: var(--ink);
  background: var(--white); border: 1px solid transparent; border-radius: 99px; cursor: pointer;
  transition: border-color .15s;
}
.wifi__chip:hover, .wifi__chip:focus-visible { border-color: var(--accent); outline: none; }
.wifi__key { flex: none; font-size: .62rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.wifi__val { min-width: 0; overflow-wrap: anywhere; font-size: .8rem; font-weight: 700; }
.wifi__chip.is-copied { border-color: var(--green, #1d7a45); }
.wifi__chip.is-copied .wifi__key { color: var(--green, #1d7a45); }
@media (max-width: 420px) {
  /* HP: judul satu baris, dua chip berdampingan di bawahnya */
  .wifi__head { flex-basis: 100%; }
  .wifi__chip { flex: 1 1 auto; justify-content: center; }
}
.catalog-status { display: grid; justify-items: center; gap: 10px; padding: 36px 12px; text-align: center; color: var(--muted); font-size: .88rem; }
.catalog-status p { margin: 0; }
.catalog-status__icon { font-size: 1.8rem; }
.catalog-status__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--accent-soft); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-soft {
  padding: 10px 18px;
  font: inherit; font-size: .82rem; font-weight: 700;
  color: var(--accent); background: var(--accent-soft);
  border: 0; border-radius: 12px; cursor: pointer;
}

/* Tab kategori menempel di bawah topbar */
.chips.cat-tabs {
  position: sticky; top: 60px; z-index: 10;
  margin-bottom: 4px; padding-top: 10px; padding-bottom: 10px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
.chip.is-active { color: var(--white); background: var(--accent); border-color: var(--accent); }
.cat-section { scroll-margin-top: 124px; }
.menu-cat span { margin-left: 4px; color: var(--muted); font-weight: 600; letter-spacing: 0; }

.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.product-card, .bundle-card {
  position: relative;
  font: inherit; text-align: left; color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line); border-radius: 16px;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.product-card { display: flex; flex-direction: column; gap: 8px; padding: 10px 10px 12px; }
.product-card:hover, .bundle-card:hover,
.product-card:focus-visible, .bundle-card:focus-visible { transform: translateY(-2px); border-color: #d4c2ae; box-shadow: var(--shadow); outline: none; }
.thumb {
  position: relative; display: grid; place-items: center;
  aspect-ratio: 1;
  background: radial-gradient(circle at 50% 62%, #f3e8db 0%, #faf6f1 72%);
  border-radius: 12px; overflow: hidden;
}
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.thumb.is-broken img { display: none; }
.thumb.is-broken::after { content: '☕'; font-size: 1.8rem; opacity: .55; }
.tag {
  position: absolute; top: 16px; left: 16px;
  padding: 3px 7px;
  font-size: .64rem; font-weight: 800;
  color: var(--white); background: #c2453a; border-radius: 6px;
}
.tag--soldout { background: var(--muted); }
.tag--new { background: var(--green); letter-spacing: .06em; }
.product-card__name { flex: 1; font-size: .84rem; font-weight: 700; line-height: 1.3; }
.product-card__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; }
.product-card__price { display: grid; line-height: 1.3; }
.product-card__price s { font-size: .7rem; color: var(--muted); }
.product-card__price strong { font-size: .92rem; color: var(--accent); }
.add-btn {
  flex: none; display: grid; place-items: center;
  width: 30px; height: 30px;
  font-size: 1.15rem; font-weight: 600; line-height: 1;
  color: var(--white); background: var(--ink); border-radius: 50%;
  transition: background .2s;
}
.product-card:hover .add-btn, .bundle-card:hover .add-btn { background: var(--accent); }
.is-soldout { cursor: not-allowed; }
.is-soldout:hover { transform: none; box-shadow: none; }
.is-soldout .thumb, .is-soldout .product-card__name, .is-soldout .product-card__price { opacity: .45; filter: grayscale(1); }
.is-soldout .add-btn { background: var(--line); }

.bundle-list { display: grid; gap: 10px; }
.bundle-card { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; }
.bundle-card .thumb { flex: none; width: 96px; }
.bundle-card__body { flex: 1; min-width: 0; display: grid; gap: 4px; }
.bundle-card__tag {
  justify-self: start; padding: 2px 8px;
  font-size: .64rem; font-weight: 800;
  color: #1d7a45; background: #dcf2e4; border-radius: 6px;
}
.bundle-card__tag--off { color: var(--white); background: var(--muted); }
.bundle-card__desc {
  font-size: .72rem; line-height: 1.4; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---------- Bottom sheet (detail menu & keranjang) ---------- */
.modal--sheet { align-items: flex-end; padding: 0; }
.sheet {
  position: relative;
  display: flex; flex-direction: column;
  width: 100%; max-width: 560px; max-height: 92vh;
  background: var(--bg);
  border-radius: 24px 24px 0 0;
  overflow: hidden;
  box-shadow: 0 -12px 40px -12px rgba(40, 28, 20, .35);
  animation: slideUp .25s ease-out;
}
@keyframes slideUp { from { opacity: 0; transform: translateY(40px); } }
.sheet__handle { flex: none; width: 44px; height: 5px; margin: 10px auto 0; background: var(--line); border-radius: 99px; }
.sheet .modal__x { position: absolute; top: 12px; right: 12px; z-index: 2; }
.sheet__body { flex: 1; overflow-y: auto; padding: 8px 20px 20px; overscroll-behavior: contain; }
.thumb.sheet__img { width: 180px; margin: 6px auto 14px; background: radial-gradient(circle at 50% 62%, #f3e8db 0%, transparent 70%); }
.sheet__cat { margin: 0; font-size: .68rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.sheet__name { margin: 4px 0 6px; font-family: var(--serif); font-weight: 400; font-size: 1.6rem; line-height: 1.15; }
.sheet__price { display: flex; align-items: baseline; gap: 8px; margin: 0 0 6px; }
.sheet__price strong { font-size: 1.4rem; color: var(--accent); }
.sheet__price s { font-size: .85rem; color: var(--muted); }
.sheet__desc { margin: 0 0 6px; font-size: .82rem; line-height: 1.5; color: var(--muted); }
.sheet__info { margin: 10px 0 0; padding: 10px 12px; font-size: .78rem; line-height: 1.5; background: var(--accent-soft); border-radius: 10px; }

.opt-group { margin-top: 16px; }
.opt-group__label { margin: 0 0 8px; font-size: .85rem; font-weight: 700; }
.opt-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.opt-chip {
  padding: 9px 16px;
  font: inherit; font-size: .8rem; font-weight: 700;
  color: var(--ink); background: var(--white);
  border: 1px solid var(--line); border-radius: 999px;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.opt-chip:hover { border-color: var(--accent); }
.opt-chip.is-on { color: var(--white); background: var(--accent); border-color: var(--accent); }

.slot { margin-top: 14px; padding: 14px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
.slot__title { margin: 0 0 8px; font-size: .8rem; font-weight: 800; }
.slot__select {
  width: 100%; padding: 11px 12px;
  font: inherit; font-size: .88rem; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
}
.slot .opt-group { margin-top: 12px; }
.slot .opt-group__label { font-size: .75rem; }
.slot .opt-chip { padding: 7px 12px; font-size: .74rem; }

.field-label { display: block; margin: 18px 0 8px; font-size: .85rem; font-weight: 700; }
.field {
  width: 100%; padding: 12px 14px;
  font: inherit; font-size: .88rem; color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line); border-radius: 12px;
  outline: none; resize: vertical;
}
.field:focus, .slot__select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); outline: none; }
.field.is-invalid { border-color: #c2453a; box-shadow: 0 0 0 4px #fbe3dd; }
.qty-row { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; font-size: .85rem; font-weight: 700; }

.sheet__foot {
  flex: none;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--white);
  border-top: 1px solid var(--line);
}
.btn-primary {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  width: 100%; padding: 15px 18px;
  font: inherit; font-size: .92rem; font-weight: 700;
  color: var(--white); background: var(--ink);
  border: 0; border-radius: 14px;
  cursor: pointer;
  transition: background .2s, filter .2s;
}
.btn-primary:hover { background: var(--accent); }
.btn-primary--wa { justify-content: center; background: var(--green); }
.btn-primary--wa:hover { background: var(--green); filter: brightness(1.08); }
.btn-primary--wa svg { width: 20px; height: 20px; fill: currentColor; stroke: none; }

.cart-title { margin: 4px 0 2px; font-family: var(--serif); font-weight: 400; font-size: 1.5rem; }
/* Lokasi gerai & waktu pengambilan di keranjang */
.field-label--icon { display: flex; align-items: center; gap: 6px; }
.field-label--icon svg { width: 17px; height: 17px; flex: none; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cart-outlet {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; background: var(--white); border: 1.5px solid var(--line); border-radius: 14px;
}
.cart-outlet__info { flex: 1; min-width: 0; display: grid; gap: 2px; }
.cart-outlet__info strong { font-size: .9rem; overflow-wrap: anywhere; }
.cart-outlet__info span { font-size: .74rem; line-height: 1.35; color: var(--muted); }
.cart-outlet__info span[hidden] { display: none; }
.cart-outlet .outlet-picked__change { flex: none; }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg__btn {
  min-height: 46px; padding: 10px; font: inherit; font-size: .9rem; font-weight: 700;
  color: var(--muted); background: var(--white); border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.seg__btn:hover { border-color: var(--accent); }
.seg__btn.is-on { color: var(--white); background: var(--accent); border-color: var(--accent); box-shadow: var(--shadow); }
#pickupTimeWrap { margin-top: 10px; }
#pickupTimeWrap[hidden] { display: none; }
.pickup-time { font-size: 1rem; font-variant-numeric: tabular-nums; cursor: pointer; }
.pickup-hint { margin: 6px 0 0; font-size: .74rem; font-style: italic; color: #b8690f; }
.cart-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.cart-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
.cart-item .thumb { flex: none; width: 56px; }
.cart-item__info { flex: 1; min-width: 0; display: grid; gap: 2px; font-size: .74rem; line-height: 1.4; color: var(--muted); }
.cart-item__info strong { font-size: .88rem; color: var(--ink); }
.cart-item__note { font-style: italic; }
.cart-item__info b { margin-top: 4px; font-size: .88rem; color: var(--accent); }
.cart-item .qty { align-self: flex-end; }
.cart-item__side { flex: none; align-self: stretch; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 8px; }
.cart-item__edit {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; font: inherit; font-size: .72rem; font-weight: 700; color: var(--accent);
  background: var(--white); border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
}
.cart-item__edit:hover { border-color: var(--accent); }
.cart-item__edit svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cart-item .qty__btn { width: 26px; height: 26px; font-size: .95rem; }
.cart-empty { padding: 24px; text-align: center; font-size: .85rem; color: var(--muted); }
.link-btn { margin-top: 10px; padding: 0; font: inherit; font-size: .76rem; font-weight: 600; color: #b23a2b; background: none; border: 0; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.cart-sum { display: flex; align-items: baseline; justify-content: space-between; margin-top: 18px; font-weight: 700; }
.cart-sum strong { font-size: 1.25rem; color: var(--accent); }
.cart-hint { margin: 4px 0 0; font-size: .72rem; color: var(--muted); }
.cart-min { margin: 10px 0 0; padding: 10px 12px; font-size: .8rem; font-weight: 600; color: #9b2228; background: #fbe3e2; border-radius: 12px; }

/* ---------- Bar checkout ---------- */
.checkout-bar {
  position: fixed; left: 50%; bottom: 16px; z-index: 30;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px;
  width: calc(100% - 32px); max-width: 528px;
  padding: 10px 20px 10px 10px;
  font: inherit; text-align: left;
  color: var(--white); background: var(--ink);
  border: 0; border-radius: 18px;
  box-shadow: 0 12px 32px -8px rgba(58, 42, 31, .55);
  cursor: pointer;
  animation: rise .25s ease-out;
}
.checkout-bar:hover { background: #4a3527; }
.checkout-bar__count {
  flex: none; display: grid; place-items: center;
  width: 42px; height: 42px;
  font-weight: 800; color: var(--ink); background: var(--white); border-radius: 50%;
}
.checkout-bar__text { flex: 1; display: grid; gap: 2px; }
.checkout-bar__total { font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.checkout-bar__label { font-size: .95rem; font-weight: 800; }
.checkout-bar svg { width: 22px; height: 22px; }

.toast {
  position: fixed; left: 50%; bottom: 96px; z-index: 60;
  transform: translate(-50%, 10px);
  width: max-content; max-width: calc(100% - 32px);
  padding: 11px 16px;
  font-size: .82rem; font-weight: 600; text-align: center;
  color: var(--white); background: rgba(40, 28, 20, .94);
  border-radius: 12px;
  opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 480px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 600px) {
  .modal--sheet { align-items: center; padding: 16px; }
  .sheet { max-width: 460px; max-height: calc(100vh - 32px); border-radius: 24px; }
  .sheet__handle { display: none; }
}

/* ---------- Popup detail produk (opsi dari API) ---------- */
.sheet__head {
  flex: none;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 8px 20px 14px;
  border-bottom: 1px solid var(--line);
}
.sheet__head .modal__x { position: static; flex: none; }
.modal__x:focus { outline: none; }
.modal__x:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sheet__title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 1.35rem; line-height: 1.2; }
.sheet__subtitle { margin: 2px 0 0; font-size: .75rem; color: var(--muted); }
.sheet--product .sheet__body { padding-top: 16px; }

.product-row { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; }
.thumb.product-row__img { flex: none; width: 76px; border-radius: 14px; }
.product-row__info { flex: 1; min-width: 0; }
.product-row__name { margin: 0; font-size: 1.05rem; font-weight: 800; line-height: 1.25; }
.product-row__desc { margin: 3px 0 0; font-size: .76rem; line-height: 1.45; color: var(--muted); }
.product-row__price { display: flex; align-items: baseline; gap: 8px; margin: 6px 0 0; }
.product-row__price strong { font-size: 1.1rem; color: var(--accent); }
.product-row__price s { font-size: .78rem; color: var(--muted); }

.sheet--product .opt-group { margin-top: 0; padding: 14px 0; border-top: 1px solid #efe5d9; }
.opt-group__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.opt-group__head .opt-group__label { margin: 0; font-size: .85rem; font-weight: 700; }
.opt-group__rule {
  flex: none;
  font-size: .58rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
}
.sheet--product .opt-chips { gap: 7px; }
.sheet--product .opt-chip { padding: 8px 14px; font-size: .78rem; }
.opt-chip small { margin-left: 6px; font-size: .64rem; font-weight: 600; opacity: .7; }
.opt-chip.is-on small { opacity: .85; }
.opt-loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 28px 0; font-size: .82rem; color: var(--muted); border-top: 1px solid #efe5d9; }
.opt-loading .spinner { width: 20px; height: 20px; border-width: 2px; }
.opt-note { margin: 0 0 14px; padding: 9px 12px; font-size: .74rem; line-height: 1.45; background: var(--accent-soft); border-radius: 10px; }
.sheet--product .field { font-size: .85rem; }

.sheet__foot--split { display: flex; align-items: center; gap: 12px; }
.qty--lg { padding: 4px; }
.qty--lg .qty__btn { width: 34px; height: 34px; }
.qty--lg .qty__val { min-width: 24px; }
.btn-primary--add { flex: 1; justify-content: center; gap: 8px; }
.btn-primary__sep { opacity: .55; }
.btn-primary:disabled { opacity: .55; cursor: progress; }
.btn-primary:disabled:hover { background: var(--ink); }

/* ---------- Dialog konfirmasi ---------- */
.modal.confirm { z-index: 70; padding: 20px; }
.confirm__box {
  position: relative;
  width: 100%; max-width: 360px;
  padding: 28px 22px 20px;
  text-align: center;
  background:
    radial-gradient(120% 70% at 50% 0%, #fffdf9 0%, transparent 70%),
    var(--bg);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 24px 60px -12px rgba(40, 28, 20, .5);
  animation: pop .22s ease-out;
}
.confirm__icon {
  display: grid; place-items: center;
  width: 60px; height: 60px; margin: 0 auto 16px;
  font-size: 1.6rem;
  background: var(--accent-soft);
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(234, 217, 199, .45);
}
.confirm__title { margin: 0 0 8px; font-family: var(--serif); font-weight: 400; font-size: 1.5rem; line-height: 1.2; }
.confirm__msg { margin: 0 0 22px; font-size: .86rem; line-height: 1.6; color: #6b5d52; }
.confirm__msg strong { color: var(--ink); font-weight: 700; }
.confirm__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.confirm__btn {
  padding: 13px 10px;
  font: inherit; font-size: .88rem; font-weight: 700;
  border: 1px solid var(--line); border-radius: 14px;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.confirm__btn--ghost { color: var(--ink); background: var(--white); }
.confirm__btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.confirm__btn--ok { color: var(--white); background: var(--ink); border-color: var(--ink); }
.confirm__btn--ok:hover { background: var(--accent); border-color: var(--accent); }
.confirm__btn:focus { outline: none; }
.confirm__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.confirm--danger .confirm__icon { background: #fbe3dd; box-shadow: 0 0 0 8px rgba(251, 227, 221, .55); }
.confirm--danger .confirm__btn--ok { background: #b23a2b; border-color: #b23a2b; }
.confirm--danger .confirm__btn--ok:hover { background: #962f22; border-color: #962f22; }

/* =========================================================
   Halaman brand (menu statis) — penyelarasan dengan katalog
   ========================================================= */
.store-step { margin: 0 0 16px; }
.store-lock { margin: -6px 0 16px; text-align: center; }
.outlet-picked {
  border-color: #dccbb8;
  box-shadow: 0 1px 2px rgba(58, 42, 31, .04), 0 8px 20px -14px rgba(58, 42, 31, .35);
}
.outlet-picked__info strong { line-height: 1.3; }
.outlet-picked__info .outlet-card__hours { margin-top: 2px; }

.menu-cat { margin: 24px 0 12px; scroll-margin-top: 124px; }
.cat-tabs + #menu .menu-cat:first-child { margin-top: 18px; }
.menu-list { gap: 10px; }
.menu-item {
  gap: 14px;
  padding: 14px 14px 14px 16px;
  background: var(--white);
  border-color: #eadfd2;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(58, 42, 31, .03);
  transition: border-color .2s, box-shadow .2s;
}
.menu-item:hover { border-color: #d9c6b3; }
.menu-item.is-selected { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); background: var(--white); }
.menu-item h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-size: .95rem; line-height: 1.3; }
.menu-item h3 .badge { font-size: .62rem; }
.menu-item p { margin-top: 2px; }
.price { gap: 8px; margin-top: 10px; flex-wrap: nowrap; }
.price strong { font-size: .95rem; }
.price s { font-size: .74rem; }
.menu-item.is-selected .qty { gap: 2px; padding: 3px; }
.menu-item.is-selected .qty__btn { width: 28px; height: 28px; font-size: .95rem; }
.menu-item.is-selected .qty__val { min-width: 18px; }

/* Jumlah 0: tampil tombol + saja; stepper muncul setelah item dipilih */
.menu-item .qty { transition: background .2s, border-color .2s; }
.menu-item:not(.is-selected) .qty { padding: 0; background: none; border-color: transparent; }
.menu-item:not(.is-selected) .qty__btn[data-act="minus"],
.menu-item:not(.is-selected) .qty__val { display: none; }
.menu-item:not(.is-selected) .qty__btn[data-act="plus"] {
  width: 34px; height: 34px;
  font-size: 1.2rem;
  color: var(--white); background: var(--ink);
}
.menu-item:not(.is-selected) .qty__btn[data-act="plus"]:hover { background: var(--accent); }
#menu.is-locked .menu-item:not(.is-selected) .qty__btn[data-act="plus"] { background: var(--line); color: var(--muted); }

/* ---------- Footer ---------- */
.footer { padding: 8px 16px 32px; text-align: center; font-size: .75rem; color: var(--muted); }
.footer p { margin: 4px 0; }
.footer__note { font-size: .68rem; opacity: .8; }

@media (min-width: 600px) {
  .page { padding-top: 32px; }
  .panel { padding: 48px 36px 32px; }
  .chips { margin: 0 -36px 8px; padding: 0 36px 6px; }
}

/* ---------- Status website (diatur dari /admin/) ---------- */
.status-banner {
  --st: #8f8378; --st-bg: #f1ece6;
  position: sticky; top: 60px; z-index: 19;
  display: flex; align-items: flex-start; gap: 12px;
  max-width: 560px; margin: 12px auto 0; padding: 12px 16px;
  color: var(--ink); background: var(--st-bg);
  border: 1px solid color-mix(in srgb, var(--st) 35%, transparent);
  border-left: 4px solid var(--st);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
@media (max-width: 592px) { .status-banner { margin: 12px 16px 0; } }
.status-banner__icon { font-size: 1.25rem; line-height: 1.3; }
.status-banner__text { display: grid; gap: 2px; font-size: .84rem; line-height: 1.4; }
.status-banner__label { font-size: .92rem; color: var(--st); }
.status-banner__until { font-weight: 700; }

.status-banner--open   { --st: #1f8a4c; --st-bg: #e6f4ea; }
.status-banner--break  { --st: #a8660f; --st-bg: #fbf0dc; }
.status-banner--busy   { --st: #c25414; --st-bg: #fde9dc; }
.status-banner--pause  { --st: #4a6585; --st-bg: #e5ecf4; }
.status-banner--closed { --st: #b3262d; --st-bg: #fbe3e2; }

.status-pill {
  --st: #8f8378;
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 16px; padding: 6px 14px;
  font-size: .78rem; font-weight: 700; color: var(--st);
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
}
.status-pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--st); }
.status-pill--open   { --st: #1f8a4c; }
.status-pill--open .status-pill__dot { box-shadow: 0 0 0 0 rgba(31, 138, 76, .5); animation: st-pulse 2s infinite; }
.status-pill--break  { --st: #a8660f; }
.status-pill--busy   { --st: #c25414; }
.status-pill--pause  { --st: #4a6585; }
.status-pill--closed { --st: #b3262d; }
@keyframes st-pulse { 70% { box-shadow: 0 0 0 8px rgba(31, 138, 76, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 138, 76, 0); } }
@media (prefers-reduced-motion: reduce) { .status-pill__dot { animation: none !important; } }

body[data-can-order="0"]:not([data-status="istirahat"]) #waBtn,
body[data-can-order="0"]:not([data-status="istirahat"]) #orderBtn { opacity: .5; filter: grayscale(.6); cursor: not-allowed; }
.status-toast { z-index: 80; }

/* ---------- Menu per gerai (API) ---------- */
.menu-item__img {
  flex: none; width: 64px; height: 64px; object-fit: cover;
  border-radius: 12px; background: var(--card-2);
}
.badge--muted { color: var(--muted); background: var(--card-2); }
.menu-item.is-soldout { opacity: .6; }
.menu-item.is-soldout .menu-item__img { filter: grayscale(1); }
.menu-item.is-soldout:not(.is-selected) .qty__btn[data-act="plus"],
.qty__btn:disabled { background: var(--line); color: var(--muted); cursor: not-allowed; }

/* ---------- Detail Produk (menu per gerai) ---------- */
#menu[data-products-endpoint] .menu-item { cursor: pointer; }
.pd-hero__img { flex: none; width: 76px; height: 76px; object-fit: cover; border-radius: 14px; background: var(--card-2); }
.pd-price { flex-wrap: wrap; align-items: center; }
.pd-price s { order: 0; }
.pd-price strong { order: 1; }
.pd-price .badge { order: 2; font-size: .62rem; }
.pd-add__normal { font-size: .78rem; font-weight: 600; opacity: .6; }
.pd-add__normal:empty { display: none; }
.sheet--product .opt-note { margin-top: 4px; }

/* ---------- Tombol kembali ke beranda (topbar halaman brand) ---------- */
.topbar__back {
  grid-column: 1; justify-self: start;
  display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none; white-space: nowrap;
  height: 36px; padding: 0 14px 0 10px;
  font-size: .8rem; font-weight: 700; color: var(--ink);
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  transition: border-color .15s, color .15s;
}
.topbar__back svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.topbar__back:hover { border-color: var(--accent); color: var(--accent); }
.topbar__back:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 380px) {
  .topbar__back { padding: 0 10px; }
  .topbar__back span { display: none; }
}

/* ---------- Kartu grid menu per gerai (Fore) ---------- */
.menu-card .product-card__name { min-height: 2.6em; }
.card-qty { flex: none; display: inline-flex; align-items: center; gap: 4px; margin-left: auto; }
/* Harga + tombol jumlah tidak muat satu baris (kartu sempit) -> tombol turun ke baris bawah, rata kanan */
.menu-card .product-card__foot { flex-wrap: wrap; row-gap: 6px; }
.menu-card .product-card__price { min-width: 0; }
.card-qty .qty__val { min-width: 16px; font-size: .85rem; font-weight: 800; text-align: center; }
.card-qty .card-qty__minus {
  width: 26px; height: 26px; padding: 0;
  font: inherit; font-size: 1rem; font-weight: 700; line-height: 1;
  color: var(--ink); background: var(--white);
  border: 1px solid var(--line); border-radius: 50%; cursor: pointer;
}
.card-qty .card-qty__minus:hover { border-color: var(--accent); color: var(--accent); }
.menu-card:not(.is-selected) .card-qty__minus,
.menu-card:not(.is-selected) .card-qty .qty__val { display: none; }
.menu-card.is-selected { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.menu-card.is-soldout .add-btn { background: var(--line); color: var(--muted); }
.menu-card .tag--new { max-width: calc(100% - 32px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: .02em; }
#menuItems .menu-cat:first-child { margin-top: 18px; }

/* ---------- Halaman "Tutup" (status close dari /admin/) ---------- */
body.is-closed {
  --c-ink: #241a13;
  --c-orange: #d9822b;
  min-height: 100vh; min-height: 100dvh;
  font-family: var(--sans);
  background: #f6efe4;
}
.closed {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 22px; padding: 32px 18px;
}
.closed__card {
  width: 100%; max-width: 400px;
  padding: 26px 22px 24px;
  text-align: center;
  background: #fffdf9;
  border: 2px solid var(--c-ink);
  border-radius: 22px;
  box-shadow: 6px 6px 0 var(--c-ink);
  animation: closed-in .5s ease-out both;
}
.closed__badge {
  display: grid; place-items: center;
  width: 58px; height: 58px; margin: 0 auto 18px;
  color: var(--c-ink); background: #fde4a6;
  border: 2px solid var(--c-ink); border-radius: 14px;
  box-shadow: 4px 4px 0 var(--c-orange);
}
.closed__logo { display: block; height: 96px; width: auto; margin: 0 auto 18px; }
.closed__badge svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.closed__title {
  margin: 0 0 10px;
  font-family: var(--sans); font-weight: 800;
  font-size: clamp(1.45rem, 6.4vw, 1.75rem); line-height: 1.2; letter-spacing: -.01em;
  color: var(--c-ink);
}
.closed__msg { margin: 0 auto; max-width: 34ch; font-size: .86rem; line-height: 1.6; color: #6b5d52; }
.closed__reopen { margin: 6px 0 0; font-size: .82rem; color: #6b5d52; }
.closed__reopen strong { color: var(--c-ink); }

.closed__sched {
  margin: 20px 0 0; padding: 14px 16px 12px;
  background: #f6efe4;
  border: 1.5px solid #e0d3c2; border-radius: 16px;
}
.closed__sched-title {
  margin: 0; padding-bottom: 10px;
  font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: #6b5d52;
  border-bottom: 1px solid #e0d3c2;
}
.closed__list { margin: 0; padding: 4px 0; list-style: none; border-bottom: 1px solid #e0d3c2; }
.closed__item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 7px 0;
  font-size: .84rem; text-align: left; color: var(--c-ink);
}
.closed__item--buka .closed__days { font-weight: 700; }
.closed__item--libur .closed__days { color: #8f8378; }
.closed__hours { flex: none; font-weight: 800; color: var(--c-orange); font-variant-numeric: tabular-nums; }
.closed__tag {
  flex: none; padding: 3px 9px;
  font-size: .68rem; font-weight: 700; border-radius: 6px;
}
.closed__tag--tentatif { color: #b0730b; background: #fdeec2; border: 1px solid #f1c65a; letter-spacing: .06em; text-transform: uppercase; }
.closed__tag--libur { color: #7d7166; background: #e9e1d6; }
.closed__clock { margin: 10px 0 0; font-size: .74rem; color: #6b5d52; }
.closed__clock strong { color: var(--c-ink); font-weight: 800; font-variant-numeric: tabular-nums; }

.closed__btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; margin-top: 18px; padding: 15px 16px;
  font: inherit; font-size: .9rem; font-weight: 800; color: var(--c-ink);
  background: #fbf5ec;
  border: 2px solid var(--c-ink); border-radius: 14px;
  box-shadow: inset 0 0 0 3px #fbf5ec, inset 0 0 0 5px var(--c-ink);
  cursor: pointer;
  transition: transform .15s, background .15s;
}
.closed__btn:hover:not(:disabled) { background: #f5ead9; box-shadow: inset 0 0 0 3px #f5ead9, inset 0 0 0 5px var(--c-ink); }
.closed__btn:active:not(:disabled) { transform: translateY(1px); }
.closed__btn:focus-visible { outline: 2px solid var(--c-orange); outline-offset: 3px; }
.closed__btn:disabled { cursor: default; opacity: .75; }
.closed__btn svg { width: 18px; height: 18px; fill: none; stroke: var(--c-orange); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.closed__btn.is-loading svg { animation: busy-spin 1s linear infinite; }

.closed__live { display: flex; align-items: center; gap: 8px; margin: 0; font-size: .74rem; color: #6b5d52; }
.closed__live-dot { width: 8px; height: 8px; border-radius: 50%; background: #2f9e5a; box-shadow: 0 0 0 3px rgba(47, 158, 90, .18); }
@keyframes closed-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .closed__card { animation: none; } .closed__btn.is-loading svg { animation: none; } }

/* ---------- Halaman "Antrian Sedang Penuh" ---------- */
.busy { position: relative; overflow: hidden; max-width: 480px; }
.busy::before {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  opacity: .6; pointer-events: none;
}
.busy__logo {
  display: grid; place-items: center;
  width: 92px; height: 92px; margin: 0 auto 22px;
  background: linear-gradient(145deg, #f8e3c0, #efd09f);
  border: 1px solid #e6c592; border-radius: 26px;
  box-shadow: 0 0 0 8px #f3e9dc, 0 12px 24px -12px rgba(122, 82, 54, .45);
  overflow: hidden;
}
.busy__logo img { width: 64%; height: 64%; object-fit: contain; }
.busy__logo span { font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--accent); }
.busy__kicker {
  display: block;
  font-size: .7rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: #a37a52;
}
.busy__title {
  margin: 10px 0 14px;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.75rem, 7vw, 2.2rem); line-height: 1.15;
}
.busy__msg { margin: 0 auto; max-width: 40ch; font-size: .92rem; line-height: 1.7; color: #7a5a44; }
.busy__status {
  display: flex; align-items: center; gap: 16px;
  margin: 24px 0; padding: 16px 20px;
  text-align: left;
  background: linear-gradient(135deg, #fdf3e4, #fbebd9);
  border: 1px solid #f0dcc0; border-radius: 18px;
}
.busy__status > div { display: grid; gap: 2px; }
.busy__status-label { font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #a37a52; }
.busy__status strong { font-size: .98rem; color: var(--ink); }
.busy__spinner {
  flex: none; width: 36px; height: 36px; border-radius: 50%;
  border: 3px solid #ecdcc7; border-top-color: #a37a52;
  animation: busy-spin 1.1s linear infinite;
}
@keyframes busy-spin { to { transform: rotate(360deg); } }
.busy__btn {
  display: block; width: 100%; margin-top: 24px; padding: 16px;
  font: inherit; font-size: .95rem; font-weight: 700; color: var(--white);
  background: linear-gradient(135deg, #8a5d3d, #6b4529);
  border: 0; border-radius: 16px; cursor: pointer;
  box-shadow: 0 12px 24px -12px rgba(107, 69, 41, .6);
  transition: transform .15s, opacity .2s, box-shadow .2s;
}
.busy__btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 16px 28px -12px rgba(107, 69, 41, .7); }
.busy__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.busy__btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.busy__hint { margin: 12px 0 0; font-size: .8rem; color: #a37a52; }
.busy__hint strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.busy__footer {
  margin-top: 24px; padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #a37a52;
}
@media (prefers-reduced-motion: reduce) { .busy__spinner { animation-duration: 3s; } }

/* ---------- Halaman McD (mcd/index.php) ---------- */
/* Nama tepat di atas deskripsi; deskripsi mengisi sisa ruang agar harga tetap di bawah */
.menu-card:has(.mcd-card__desc) .product-card__name { flex: none; min-height: 0; }
.mcd-card__desc {
  flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-top: -4px; font-size: .72rem; line-height: 1.35; color: var(--muted);
}
#mcdApp .thumb.is-broken::after, #cartSheet .thumb.is-broken::after { content: '🍔'; }
.cart-sum--sub { margin-top: 14px; font-weight: 600; font-size: .82rem; color: var(--muted); }
.cart-sum--sub + .cart-sum { margin-top: 6px; }
.cart-sum--sub[hidden] + .cart-sum:not(.cart-sum--sub) { margin-top: 18px; }
.cart-sum--sub[hidden] + .cart-sum--sub { margin-top: 14px; }
.cart-sum--discount { color: #1f7a45; }

/* ---------- Kode voucher di keranjang (assets/js/voucher.js) ---------- */
.voucher { margin-top: 18px; }
.voucher__toggle {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 12px 14px;
  font: inherit; font-size: .84rem; color: var(--ink); text-align: left;
  background: var(--white); border: 1.5px dashed var(--line); border-radius: 12px;
  cursor: pointer; transition: border-color .15s, background .15s;
}
.voucher__toggle[hidden] { display: none; }
.voucher__toggle:hover { border-color: var(--accent); background: var(--accent-soft); }
.voucher__toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.voucher__toggle svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.voucher__toggle strong { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.voucher__form { display: flex; gap: 8px; }
.voucher__form[hidden] { display: none; }
.voucher__input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .04em; }
.voucher__input::placeholder { text-transform: none; letter-spacing: 0; }
.voucher__apply {
  flex: none; padding: 0 18px;
  font: inherit; font-size: .85rem; font-weight: 700; color: var(--white);
  background: var(--ink); border: 0; border-radius: 12px;
  cursor: pointer; transition: background .2s;
}
.voucher__apply:hover:not(:disabled) { background: var(--accent); }
.voucher__apply:disabled { opacity: .6; cursor: default; }
.voucher__apply:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.voucher__applied {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: #eaf6ee; border: 1.5px dashed #7cc196; border-radius: 14px;
}
.voucher__applied[hidden] { display: none; }
.voucher__tag {
  flex: none; padding: 4px 8px;
  font-size: .72rem; font-weight: 800; letter-spacing: .06em; color: var(--white);
  background: #1f8a4c; border-radius: 8px;
}
.voucher__info { display: grid; gap: 1px; flex: 1; min-width: 0; }
.voucher__info strong { font-size: .84rem; }
.voucher__info small { font-size: .72rem; color: var(--muted); }
.voucher__remove {
  flex: none; padding: 4px 2px;
  font: inherit; font-size: .76rem; font-weight: 700; color: #b23a2b;
  background: none; border: 0; cursor: pointer;
}
.voucher__remove:hover { text-decoration: underline; }
.voucher__msg { margin: 8px 0 0; font-size: .76rem; font-weight: 600; line-height: 1.45; }
.voucher__msg--ok    { color: #1f7a45; }
.voucher__msg--warn  { color: #9a6408; }
.voucher__msg--error { color: #b23a2b; }
.opt-chips.is-invalid .opt-chip { border-color: #c2453a; }
