/* =========================================================
   Cardápio digital — cliente (mobile-first)
   A cor da marca vem do cadastro do Estabelecimento (--brand)
   ========================================================= */
:root {
  --brand-600: color-mix(in srgb, var(--brand) 85%, black);
  --brand-50: color-mix(in srgb, var(--brand) 8%, white);
  --brand-100: color-mix(in srgb, var(--brand) 16%, white);
  --bg: #f3f3f7;
  --card: #ffffff;
  --text: #1c1b22;
  --muted: #6e6c7c;
  --line: #e7e6ee;
  --green: #12a150;
  --green-bg: #e7f7ee;
  --red: #e5484d;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(20, 16, 40, .06);
  --shadow: 0 8px 24px -8px rgba(20, 16, 40, .16);
  --shadow-lg: 0 24px 60px -12px rgba(20, 16, 40, .35);
  --nav-h: 68px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; font-size: 15px; line-height: 1.45;
}
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; }
.is-hidden { display: none !important; }
.muted { color: var(--muted); margin: 4px 0 0; font-size: 14px; }

.app {
  max-width: 980px; margin: 0 auto; min-height: 100dvh; background: var(--bg);
  padding-bottom: calc(var(--nav-h) + 90px + env(safe-area-inset-bottom));
  position: relative;
}
@media (min-width: 1000px) {
  body { background: radial-gradient(1200px 600px at 50% -10%, var(--brand-100), transparent), #e9e8f0; }
  .app { box-shadow: 0 0 0 1px var(--line), var(--shadow-lg); }
}
.wrap { padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

.view { display: none; animation: fadeUp .35s var(--ease); }
.view.is-active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Hero / loja ---------- */
.hero {
  position: relative; height: 190px; overflow: hidden;
  background: linear-gradient(135deg, var(--brand), var(--brand-600));
}
@media (min-width: 720px) { .hero { height: 260px; } }
.hero__img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); animation: heroZoom 14s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1.1); } }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.35)); }

.store { display: flex; gap: 16px; align-items: flex-end; padding: 0 16px; margin-top: -48px; position: relative; }
@media (min-width: 720px) { .store { padding: 0 28px; } }
.store__logo {
  width: 96px; height: 96px; flex: none; border-radius: 18px; overflow: hidden;
  background: var(--card); border: 4px solid var(--card); box-shadow: var(--shadow);
  display: grid; place-items: center; animation: pop .5s var(--ease) both .1s;
}
.store__logo img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.store__logo span { font-size: 40px; font-weight: 800; color: var(--brand); }
@keyframes pop { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: none; } }
.store__info { padding-bottom: 4px; min-width: 0; }
.store__name { font-size: 24px; font-weight: 800; line-height: 1.15; }
@media (min-width: 720px) { .store__name { font-size: 30px; } }
.store__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 6px; font-size: 13px; color: var(--muted); }
.meta-item { display: inline-flex; align-items: center; gap: 4px; }
.dot { color: #b9b7c6; font-size: 10px; }
.status { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; animation: pulse 2s infinite; }
.status--open { color: var(--green); }
.status--closed { color: var(--red); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 45%, transparent); } 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.link-btn { font-weight: 700; color: var(--text); padding: 0; }
.link-btn:hover { color: var(--brand); }

/* ---------- Linhas/cartões de topo ---------- */
.row-card {
  width: 100%; margin-top: 18px; display: flex; align-items: center; gap: 12px; text-align: left;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px; font-size: 13.5px; box-shadow: var(--shadow-sm); transition: border-color .2s, transform .2s;
}
.row-card:hover { border-color: var(--brand-100); transform: translateY(-1px); }
.row-card__icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); flex: none; }
.row-card__text { flex: 1; }
.row-card__chev { color: var(--muted); }

.notice {
  margin-top: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px; box-shadow: var(--shadow-sm); font-size: 13.5px;
}
.notice__head { display: flex; align-items: center; gap: 10px; }
.notice__icon { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--brand); color: #fff; }
.notice p { margin: 10px 0 0; color: #4a4858; }

/* ---------- Toolbar ---------- */
.toolbar { display: flex; gap: 10px; justify-content: space-between; margin: 22px 0 6px; flex-wrap: wrap; }
.select, .search {
  position: relative; display: flex; align-items: center; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius-sm); height: 44px; box-shadow: var(--shadow-sm);
}
.select select {
  appearance: none; border: 0; background: transparent; font: inherit; font-size: 13.5px; font-weight: 600;
  height: 100%; padding: 0 38px 0 14px; color: var(--text); cursor: pointer; outline: none;
}
.select svg { position: absolute; right: 12px; pointer-events: none; color: var(--muted); }
.search { flex: 1; max-width: 340px; min-width: 180px; padding-left: 12px; gap: 8px; color: var(--muted); transition: border-color .2s, box-shadow .2s; }
.search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-100); }
.search input { border: 0; outline: none; font: inherit; font-size: 14px; flex: 1; height: 100%; background: transparent; color: var(--text); min-width: 0; }

.chips {
  position: sticky; top: 0; z-index: 20; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  margin: 0 -16px; padding: 10px 16px; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.chips::-webkit-scrollbar { display: none; }
@media (min-width: 720px) { .chips { margin: 0 -28px; padding: 10px 28px; } }
.chip {
  flex: none; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; text-decoration: none;
  color: var(--text); background: var(--card); border: 1px solid var(--line); transition: all .2s var(--ease);
}
.chip:hover { border-color: var(--brand); }
.chip.is-active { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 6px 14px -6px var(--brand); }

/* ---------- Seções ---------- */
.section { margin-top: 18px; scroll-margin-top: 64px; }
.section__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.section__head h2 { font-size: 20px; font-weight: 800; }
.carousel-nav { display: none; gap: 6px; }
@media (hover: hover) and (min-width: 720px) { .carousel-nav { display: flex; } }
.round-btn {
  width: 34px; height: 34px; border-radius: 50%; background: var(--card); border: 1px solid var(--line);
  font-size: 20px; line-height: 1; box-shadow: var(--shadow-sm); transition: all .2s;
}
.round-btn:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

.carousel {
  display: grid; grid-auto-flow: column; grid-auto-columns: 172px; gap: 12px; overflow-x: auto;
  scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; padding: 4px 16px 14px;
}
.carousel::-webkit-scrollbar { display: none; }
@media (min-width: 720px) { .carousel { grid-auto-columns: 210px; margin: 0 -28px; padding: 4px 28px 14px; } }

/* Card de destaque */
.hcard {
  scroll-snap-align: start; background: var(--card); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); cursor: pointer; display: flex; flex-direction: column;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.hcard:hover, .hcard:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow); outline: none; }
.hcard__media { position: relative; aspect-ratio: 1; overflow: hidden; margin: 8px 8px 0; border-radius: 12px; }
.hcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.hcard:hover .hcard__media img { transform: scale(1.06); }
.hcard__body { padding: 10px 12px 14px; display: flex; flex-direction: column; flex: 1; }
.hcard h3 { font-size: 14.5px; font-weight: 700; }
.hcard p, .lcard p {
  margin: 6px 0 10px; font-size: 12.5px; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.price { margin-top: auto; display: flex; align-items: baseline; gap: 8px; }
.price__now { font-weight: 700; font-size: 15px; }
.price__now--promo { color: var(--green); }
.price s { font-size: 12.5px; color: #a9a7b6; }

.ph {
  width: 100%; height: 100%; display: grid; place-items: center; font-size: 40px;
  background: linear-gradient(135deg, var(--brand-50), var(--brand-100));
}

/* Fita "Novidade" */
.ribbon {
  position: absolute; top: 14px; right: -34px; transform: rotate(45deg); width: 130px; text-align: center;
  background: linear-gradient(90deg, #12a150, #1fc46a); color: #fff; font-size: 11px; font-weight: 800;
  padding: 4px 0; letter-spacing: .02em; box-shadow: 0 4px 10px rgba(18, 161, 80, .35);
}
.ribbon--promo { background: linear-gradient(90deg, #f97316, #fb923c); box-shadow: 0 4px 10px rgba(249, 115, 22, .35); }
.ribbon--sm { top: 8px; right: -30px; width: 100px; font-size: 9.5px; padding: 2px 0; }

/* Card de lista */
.list-grid { display: grid; gap: 12px; }
@media (min-width: 720px) { .list-grid { grid-template-columns: 1fr 1fr; } }
.lcard {
  display: flex; gap: 12px; padding: 14px; background: var(--card); border-radius: var(--radius);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.lcard:hover, .lcard:focus-visible { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--brand-100); outline: none; }
.lcard__body { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.lcard h3 { font-size: 15px; font-weight: 700; }
.lcard__media { position: relative; width: 104px; height: 104px; flex: none; border-radius: 12px; overflow: hidden; }
.lcard__media img { width: 100%; height: 100%; object-fit: cover; }
.lcard__add {
  position: absolute; right: 6px; bottom: 6px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: var(--card); color: var(--brand); font-weight: 800; font-size: 20px;
  box-shadow: var(--shadow); transition: transform .2s var(--ease), background .2s, color .2s;
}
.lcard:hover .lcard__add { transform: scale(1.1); background: var(--brand); color: #fff; }

.empty { text-align: center; padding: 48px 16px; color: var(--muted); }
.empty__emoji { font-size: 44px; margin-bottom: 8px; }

/* ---------- Topbar (outras abas) ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  padding: 18px 16px 14px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px);
}
@media (min-width: 720px) { .topbar { padding: 22px 28px 16px; } }
.topbar h1 { font-size: 22px; font-weight: 800; }
.pill { font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--brand-50); color: var(--brand); }

/* ---------- Barra do carrinho ---------- */
.cart-bar {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + 12px + env(safe-area-inset-bottom)); z-index: 40;
  transform: translate(-50%, 140%); width: min(calc(100% - 32px), 520px);
  display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand-600)); color: #fff; font-weight: 600;
  box-shadow: 0 14px 30px -10px var(--brand); transition: transform .4s var(--ease);
}
.cart-bar.is-visible { transform: translate(-50%, 0); }
.cart-bar.bump { animation: bump .45s var(--ease); }
@keyframes bump { 30% { transform: translate(-50%, 0) scale(1.04); } }
.cart-bar span:nth-child(2) { flex: 1; text-align: left; }
.cart-bar__count { min-width: 26px; height: 26px; padding: 0 6px; border-radius: 8px; background: rgba(255,255,255,.22); display: grid; place-items: center; font-size: 13px; font-weight: 800; }

/* ---------- Navegação inferior ---------- */
.bottom-nav {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; z-index: 45; width: 100%; max-width: 980px;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line);
}
.nav-item { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 600; color: #9b99a8; transition: color .2s; }
.nav-item svg { transition: transform .25s var(--ease); }
.nav-item.is-active { color: var(--brand); }
.nav-item.is-active svg { transform: translateY(-2px); }
.nav-item.is-active::after { content: ""; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 4px 4px; background: var(--brand); }
.nav-badge {
  position: absolute; top: 8px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--red); color: #fff; font-size: 10.5px; font-weight: 800; display: grid; place-items: center;
}

/* ---------- Sheets ---------- */
.backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(18, 14, 34, .5); opacity: 0; pointer-events: none; transition: opacity .3s; backdrop-filter: blur(2px); }
.backdrop.is-open { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; z-index: 70; left: 50%; bottom: 0; width: 100%; max-width: 560px; max-height: 92dvh;
  transform: translate(-50%, 105%); background: var(--card); border-radius: 22px 22px 0 0;
  display: flex; flex-direction: column; box-shadow: var(--shadow-lg); transition: transform .4s var(--ease); overflow: hidden;
}
.sheet.is-open { transform: translate(-50%, 0); }
@media (min-width: 720px) {
  .sheet { bottom: 50%; border-radius: 22px; transform: translate(-50%, 60%) scale(.96); opacity: 0; pointer-events: none; transition: transform .35s var(--ease), opacity .25s; }
  .sheet.is-open { transform: translate(-50%, 50%) scale(1); opacity: 1; pointer-events: auto; }
}
.sheet__close {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.92); box-shadow: var(--shadow); font-size: 14px; font-weight: 700;
}
.sheet__body { padding: 22px 20px 12px; overflow-y: auto; }
.sheet__body h2 { font-size: 21px; font-weight: 800; padding-right: 40px; }
.sheet__footer { display: flex; gap: 12px; align-items: center; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--card); }
.sheet__footer--col { flex-direction: column; align-items: stretch; gap: 10px; }

.pd-media { aspect-ratio: 16/10; background: var(--brand-50); overflow: hidden; flex: none; }
.pd-media img { width: 100%; height: 100%; object-fit: cover; }
.pd-media .ph { font-size: 64px; }
.pd-cat { display: inline-block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--brand); margin-bottom: 6px; }
.pd-desc { color: var(--muted); margin: 8px 0 12px; }
.pd-price { display: flex; gap: 10px; align-items: baseline; font-size: 20px; font-weight: 800; }
.pd-price s { font-size: 14px; color: #a9a7b6; font-weight: 500; }
.pd-price .promo { color: var(--green); }

.field { display: block; margin-top: 18px; }
.field span { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.field textarea, .cart-item textarea {
  width: 100%; resize: none; font: inherit; font-size: 14px; padding: 10px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: #fafafc; outline: none; transition: border-color .2s, box-shadow .2s;
}
.field textarea:focus, .cart-item textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-100); background: #fff; }

.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; height: 48px; overflow: hidden; flex: none; }
.stepper button { width: 44px; height: 100%; font-size: 20px; font-weight: 700; color: var(--brand); transition: background .2s; }
.stepper button:hover { background: var(--brand-50); }
.stepper span { min-width: 28px; text-align: center; font-weight: 800; }
.stepper--sm { height: 34px; border-radius: 9px; }
.stepper--sm button { width: 32px; font-size: 16px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 20px;
  border-radius: 12px; font-weight: 700; font-size: 15px; transition: transform .15s, box-shadow .2s, opacity .2s, background .2s;
}
.btn:active { transform: scale(.98); }
.btn--primary { background: linear-gradient(135deg, var(--brand), var(--brand-600)); color: #fff; box-shadow: 0 10px 22px -10px var(--brand); }
.btn--primary:hover { box-shadow: 0 14px 28px -10px var(--brand); }
.btn--ghost { background: transparent; color: var(--brand); }
.btn--ghost:hover { background: var(--brand-50); }
.btn--grow { flex: 1; justify-content: space-between; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Carrinho */
.cart-items { margin-top: 14px; display: flex; flex-direction: column; gap: 12px; }
.cart-item { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; animation: fadeUp .3s var(--ease); }
.cart-item__img { width: 56px; height: 56px; border-radius: 10px; overflow: hidden; background: var(--brand-50); }
.cart-item__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__img .ph { font-size: 24px; }
.cart-item__top { display: flex; justify-content: space-between; gap: 8px; }
.cart-item__top strong { font-size: 14.5px; }
.cart-item__row { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.cart-item__price { font-weight: 700; }
.cart-item textarea { margin-top: 8px; font-size: 13px; padding: 8px 10px; }
.remove-btn { color: var(--red); font-size: 12.5px; font-weight: 600; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; }
.cart-total strong { font-size: 22px; font-weight: 800; }
.form-error { margin: 0; padding: 10px 12px; border-radius: 10px; background: #fdecec; color: #b42318; font-size: 13.5px; font-weight: 600; }

/* Info */
.info-list { list-style: none; margin: 18px 0 8px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.info-list li { display: flex; gap: 12px; }
.info-list li > span { width: 38px; height: 38px; border-radius: 10px; background: var(--brand-50); display: grid; place-items: center; flex: none; }
.info-list p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.info-list a { color: var(--brand); font-weight: 600; }

/* ---------- Sucesso ---------- */
.success { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; background: rgba(18, 14, 34, .55); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .3s; }
.success.is-open { opacity: 1; pointer-events: auto; }
.success__card { width: min(100%, 420px); background: var(--card); border-radius: 24px; padding: 28px 22px 18px; text-align: center; box-shadow: var(--shadow-lg); transform: scale(.9); transition: transform .45s var(--ease); }
.success.is-open .success__card { transform: scale(1); }
.success h2 { font-size: 22px; font-weight: 800; margin-top: 14px; }
.success__check { width: 84px; height: 84px; margin: 0 auto; border-radius: 50%; background: var(--green-bg); display: grid; place-items: center; }
.success__check svg { width: 60px; height: 60px; stroke: var(--green); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.success__check circle { stroke-dasharray: 151; stroke-dashoffset: 151; }
.success__check path { stroke-dasharray: 36; stroke-dashoffset: 36; }
.success.is-open circle { animation: draw .6s ease-out forwards .15s; }
.success.is-open path { animation: draw .35s ease-out forwards .65s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.success__summary { text-align: left; margin: 18px 0 14px; padding: 12px 14px; background: #fafafc; border: 1px dashed var(--line); border-radius: 14px; font-size: 13.5px; }
.success__summary div { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
.success__summary small { display: block; color: var(--muted); }
.success__summary .tot { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 8px; font-weight: 800; }

/* ---------- Meus pedidos ---------- */
.order { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow-sm); animation: fadeUp .3s var(--ease); }
.order__head { display: flex; justify-content: space-between; align-items: center; }
.order__head strong { font-size: 16px; }
.order__time { font-size: 12.5px; color: var(--muted); }
.badge { font-size: 11.5px; font-weight: 800; padding: 5px 10px; border-radius: 999px; }
.badge--pendente { background: #fff4e5; color: #c2410c; }
.badge--em_preparo { background: #e8f0ff; color: #1d4ed8; }
.badge--entregue { background: var(--green-bg); color: var(--green); }
.badge--cancelado { background: #fdecec; color: #b42318; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 14px 0 12px; }
.steps span { height: 5px; border-radius: 3px; background: var(--line); position: relative; overflow: hidden; }
.steps span.on { background: var(--brand); }
.steps span.now::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent); animation: shimmer 1.4s infinite; }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.order ul { list-style: none; margin: 0; padding: 0; font-size: 13.5px; }
.order li { display: flex; justify-content: space-between; padding: 3px 0; }
.order li small { display: block; color: var(--muted); }
.order__total { display: flex; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; font-weight: 800; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; top: 16px; z-index: 100; transform: translate(-50%, -150%);
  background: #1c1b22; color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow-lg); transition: transform .35s var(--ease); max-width: calc(100% - 32px);
}
.toast.is-open { transform: translate(-50%, 0); }

/* ---------- Páginas simples ---------- */
.center-page { min-height: 100dvh; display: grid; place-items: center; padding: 24px; background: radial-gradient(900px 500px at 50% -10%, var(--brand-100), transparent), var(--bg); }
.center-card { width: min(100%, 420px); background: var(--card); border-radius: 24px; padding: 32px 26px; text-align: center; box-shadow: var(--shadow-lg); animation: fadeUp .5s var(--ease); }
.center-card .big { font-size: 56px; }
.center-card h1 { font-size: 24px; font-weight: 800; margin: 10px 0 6px; }
.center-card p { color: var(--muted); }
.center-card .links { display: flex; gap: 8px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.center-card .links a { text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
