/* ════════════════════════════════════════════════════════════════════════
   Portal do Cliente — design system próprio (sem dependências externas).
   Mobile-first; paleta quente de alimentos: verde-floresta + âmbar.
   ════════════════════════════════════════════════════════════════════════ */

:root {
  --brand:      #166534;   /* verde floresta */
  --brand-dk:   #14532d;
  --brand-lt:   #22863f;
  --brand-soft: #dcfce7;
  --brand-ghost:#f0fdf4;
  --amber:      #d97706;
  --amber-soft: #fef3c7;
  --ink:        #1c1917;
  --ink-2:      #44403c;
  --ink-3:      #78716c;
  --line:       #e7e5e4;
  --line-soft:  #f0efed;
  --bg:         #faf9f7;
  --card:       #ffffff;
  --danger:     #b91c1c;
  --danger-soft:#fee2e2;
  --ok:         #15803d;
  --ok-soft:    #dcfce7;
  --info-soft:  #e0f2fe;
  --info:       #075985;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --shadow-1: 0 1px 2px rgba(28,25,23,.05), 0 1px 6px rgba(28,25,23,.04);
  --shadow-2: 0 6px 20px rgba(28,25,23,.10), 0 2px 5px rgba(28,25,23,.05);
  --shadow-3: 0 16px 48px rgba(28,25,23,.18);
  --ring: 0 0 0 3px rgba(22,101,52,.14);
  --nav-h: 62px;
  --tab-h: 60px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: light; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  background:
    radial-gradient(900px 420px at 100% -10%, rgba(22,101,52,.05), transparent 60%),
    var(--bg);
  color: var(--ink);
  font-size: 15px; line-height: 1.45;
  -webkit-tap-highlight-color: transparent;
  min-height: 100dvh;
}
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
input, select, textarea, button { font-size: 16px; } /* evita zoom iOS */
a { color: var(--brand); text-decoration: none; }
svg { display: block; }
img { max-width: 100%; }
[hidden] { display: none !important; }

:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: none; }

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

/* ── Telas / transições ─────────────────────────────────────────────── */
.view { display: none; }
.view.active { display: block; animation: viewIn .24s ease both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ════════════════ AUTENTICAÇÃO ════════════════ */
.auth-shell {
  min-height: 100dvh; display: flex; align-items: stretch;
}
.auth-brand {
  display: none; flex: 1.1; position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 600px at -10% -20%, #1f7a43 0%, transparent 55%),
    radial-gradient(900px 700px at 110% 120%, #0d3d20 0%, transparent 60%),
    linear-gradient(150deg, var(--brand-dk) 0%, var(--brand) 100%);
  color: #fff; padding: 56px;
  flex-direction: column; justify-content: space-between;
}
.auth-brand .grain {
  position: absolute; inset: 0; opacity: .28; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1.4px);
  background-size: 22px 22px;
}
.auth-brand h1 { font-size: clamp(30px, 3vw, 38px); line-height: 1.12; font-weight: 800; max-width: 440px; letter-spacing: -.6px; }
.auth-brand p  { margin-top: 14px; font-size: 16px; opacity: .85; max-width: 400px; }
.auth-brand .bullets { display: grid; gap: 14px; }
.auth-brand .bullet { display: flex; gap: 12px; align-items: center; font-size: 15px; opacity: .95; }
.auth-brand .bullet .dot {
  width: 36px; height: 36px; border-radius: 11px; flex: none;
  background: rgba(255,255,255,.14); display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.auth-form-side {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 28px 20px calc(28px + env(safe-area-inset-bottom));
}
.auth-card { width: 100%; max-width: 400px; }
.auth-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.auth-logo .mark {
  width: 46px; height: 46px; border-radius: 14px; color: #fff;
  background: linear-gradient(140deg, var(--brand-lt) 0%, var(--brand-dk) 100%);
  display: grid; place-items: center; box-shadow: var(--shadow-2);
}
.auth-logo b { font-size: 19px; letter-spacing: -.3px; }
.auth-logo span { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 1px; }
.auth-card h2 { font-size: 25px; letter-spacing: -.5px; margin-bottom: 6px; }
.auth-card .sub { color: var(--ink-3); margin-bottom: 24px; font-size: 14.5px; }
.auth-links { margin-top: 22px; display: grid; gap: 10px; text-align: center; font-size: 14.5px; }

@media (min-width: 940px) { .auth-brand { display: flex; } }

/* ── Formulários ────────────────────────────────────────────────────── */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.field .input-wrap { position: relative; }
.field input, .field textarea, .field select {
  width: 100%; border: 1.5px solid var(--line); border-radius: 12px;
  padding: 12px 14px; background: var(--card); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--brand); box-shadow: var(--ring);
}
.field .hint { font-size: 12.5px; color: var(--ink-3); margin-top: 5px; }
.field.invalid input { border-color: var(--danger); }
.eye-btn {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  padding: 8px; color: var(--ink-3); border-radius: 8px;
}
.eye-btn:hover { color: var(--ink); }

/* honeypot: fora da tela para humanos, presente para bots */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ── Botões ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 12px; font-weight: 700; padding: 12px 20px;
  transition: transform .12s ease, box-shadow .15s ease, background .15s, opacity .15s, filter .15s;
  user-select: none; min-height: 46px;
}
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn-primary {
  background: linear-gradient(160deg, var(--brand-lt) 0%, var(--brand) 55%, var(--brand-dk) 130%);
  color: #fff; box-shadow: 0 3px 12px rgba(22,101,52,.30), inset 0 1px 0 rgba(255,255,255,.14);
}
.btn-primary:hover { filter: brightness(1.06); }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--ink-2); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink-3); background: var(--card); }
.btn-soft { background: var(--brand-ghost); color: var(--brand-dk); border: 1.5px solid var(--brand-soft); }
.btn-soft:hover { background: var(--brand-soft); }
.btn-danger-soft { background: var(--danger-soft); color: var(--danger); }
.btn-sm { padding: 8px 14px; min-height: 38px; font-size: 14px; border-radius: 10px; }
.btn .spinner { display: none; }
.btn.loading .spinner { display: block; }
.btn.loading .btn-label { opacity: .6; }

.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff;
  animation: spin .7s linear infinite;
}
.spinner.dark { border-color: rgba(28,25,23,.2); border-top-color: var(--ink-2); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Alertas inline ─────────────────────────────────────────────────── */
.alert { border-radius: var(--r-sm); padding: 12px 14px; font-size: 14px; margin-bottom: 16px; display: flex; gap: 10px; align-items: flex-start; }
.alert svg { flex: none; margin-top: 1px; }
.alert-error { background: var(--danger-soft); color: var(--danger); }
.alert-ok    { background: var(--ok-soft); color: var(--ok); }
.alert-info  { background: var(--info-soft); color: var(--info); }

/* ════════════════ CASCA LOGADA ════════════════ */
.topbar {
  position: sticky; top: 0; z-index: 40; height: var(--nav-h);
  background: rgba(255,255,255,.88); backdrop-filter: blur(14px) saturate(1.5);
  border-bottom: 1px solid var(--line-soft);
  display: flex; align-items: center; gap: 10px;
  padding: 0 16px; padding-top: env(safe-area-inset-top);
}
.topbar .mark {
  width: 36px; height: 36px; border-radius: 11px; color: #fff; flex: none;
  background: linear-gradient(140deg, var(--brand-lt) 0%, var(--brand-dk) 100%);
  display: grid; place-items: center;
}
.topbar .who { min-width: 0; }
.topbar .who b { display: block; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.2px; }
.topbar .who span { font-size: 11.5px; color: var(--ink-3); }
.topbar nav { display: none; margin-left: 26px; gap: 4px; }
.topbar nav .navlink {
  padding: 9px 14px; border-radius: 11px; font-weight: 600; font-size: 14.5px;
  color: var(--ink-2); display: flex; gap: 8px; align-items: center;
  transition: background .15s, color .15s;
}
.topbar nav .navlink:hover { background: var(--line-soft); }
.topbar nav .navlink.on { background: var(--brand-ghost); color: var(--brand-dk); box-shadow: inset 0 0 0 1px var(--brand-soft); }
.topbar .spacer { flex: 1; }
.icon-btn {
  position: relative; width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center; color: var(--ink-2);
  transition: background .15s;
}
.icon-btn:hover { background: var(--line-soft); }
.cart-badge {
  position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px;
  background: var(--amber); color: #fff; font-size: 11px; font-weight: 800;
  border-radius: 9px; display: grid; place-items: center; padding: 0 5px;
  border: 2px solid #fff;
  transition: transform .18s cubic-bezier(.34,1.56,.64,1);
}
.cart-badge.pop { transform: scale(1.35); }

@media (min-width: 780px) { .topbar nav { display: flex; } }

/* barra inferior mobile */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  height: calc(var(--tab-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255,255,255,.93); backdrop-filter: blur(14px) saturate(1.5);
  border-top: 1px solid var(--line-soft);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.tabbar .tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; font-size: 11px; font-weight: 600; color: var(--ink-3); position: relative;
  transition: color .15s;
}
.tabbar .tab.on { color: var(--brand-dk); }
.tabbar .tab.on::before {
  content: ""; position: absolute; top: 0; width: 34px; height: 3px;
  border-radius: 0 0 3px 3px; background: var(--brand);
}
.tabbar .tab .cart-badge { top: 4px; right: calc(50% - 22px); }
@media (min-width: 780px) { .tabbar { display: none; } }

.page {
  max-width: 1140px; margin: 0 auto;
  padding: 20px 16px calc(var(--tab-h) + 40px + env(safe-area-inset-bottom));
}
@media (min-width: 780px) { .page { padding-bottom: 60px; } }

.page-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.page-head h2 { font-size: clamp(22px, 2.4vw, 26px); letter-spacing: -.5px; }
.page-head .sub { color: var(--ink-3); font-size: 13.5px; margin-top: 3px; }

/* ── Banners ────────────────────────────────────────────────────────── */
.banners { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-bottom: 20px; border-radius: var(--r-lg); scrollbar-width: none; }
.banners::-webkit-scrollbar { display: none; }
.banners img {
  scroll-snap-align: start; flex: none; width: 100%; max-height: 280px;
  object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow-1);
}
/* banner vinculado a categoria: o cartaz inteiro é um botão de filtro */
.banners .banner-link { flex: none; width: 100%; scroll-snap-align: start; padding: 0; display: block; }
.banners .banner-link img { width: 100%; }
@media (hover: hover) { .banners .banner-link:hover img { filter: brightness(1.04); } }

/* ── Busca + filtros ────────────────────────────────────────────────── */
.toolbar {
  display: flex; gap: 10px; margin-bottom: 6px; flex-wrap: wrap;
  position: sticky; top: var(--nav-h); z-index: 30;
  padding: 10px 0; margin-top: -10px;
  background: linear-gradient(var(--bg) 82%, transparent);
}
.search {
  flex: 1; min-width: 200px; display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 1.5px solid var(--line); border-radius: 13px;
  padding: 0 8px 0 14px; transition: border-color .15s, box-shadow .15s;
  box-shadow: var(--shadow-1);
}
.search:focus-within { border-color: var(--brand); box-shadow: var(--ring); }
.search svg { color: var(--ink-3); flex: none; }
.search input { border: none; outline: none; background: none; width: 100%; padding: 12px 0; min-width: 0; }
.search .clear-btn {
  flex: none; width: 32px; height: 32px; border-radius: 9px; color: var(--ink-3);
  display: grid; place-items: center;
}
.search .clear-btn:hover { background: var(--line-soft); color: var(--ink); }
.sort-wrap {
  flex: none; display: flex; align-items: center; gap: 8px;
  background: var(--card); border: 1.5px solid var(--line); border-radius: 13px;
  padding: 0 10px; box-shadow: var(--shadow-1);
}
.sort-wrap svg { color: var(--ink-3); flex: none; }
.sort-wrap select {
  border: none; outline: none; background: none; padding: 12px 0;
  font-size: 14px; font-weight: 600; color: var(--ink-2); max-width: 150px;
}
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 9px 15px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  background: var(--card); border: 1.5px solid var(--line); color: var(--ink-2);
  transition: all .15s; box-shadow: var(--shadow-1);
}
.chip:hover { border-color: var(--ink-3); }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 2px 10px rgba(22,101,52,.25); }
.chips-row { margin-bottom: 12px; }
.result-count { font-size: 12.5px; color: var(--ink-3); margin: 2px 2px 12px; }

/* ── Grid de produtos ───────────────────────────────────────────────── */
.prod-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(164px, 1fr)); }
@media (min-width: 640px) { .prod-grid { grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 18px; } }

.prod-card {
  background: var(--card); border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--line-soft); box-shadow: var(--shadow-1);
  display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
}
@media (hover: hover) {
  .prod-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--line); }
  .prod-card:hover .prod-media img { transform: scale(1.04); }
}
.prod-card.out { opacity: .78; }
.prod-media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--line-soft); cursor: pointer; }
/* contain (não cover): foto de embalagem aparece inteira, sem corte;
   fundo branco preenche as sobras — mesmo tom do fundo típico das fotos */
.prod-media img { width: 100%; height: 100%; object-fit: contain; background: #fff; transition: transform .35s ease; }
.prod-media .mono {
  width: 100%; height: 100%; display: grid; place-items: center;
  font-size: 34px; font-weight: 800; color: #fff; letter-spacing: 1px;
}
.prod-media .pill {
  position: absolute; top: 8px; left: 8px;
  font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px;
  display: flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(4px);
  box-shadow: 0 1px 4px rgba(28,25,23,.14);
}
.pill .dot-ok { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.pill.off { color: var(--ink-3); }
.pill .dot-off { width: 7px; height: 7px; border-radius: 50%; background: #a8a29e; }
.pill-faixa {
  position: absolute; top: 8px; right: 8px;
  background: linear-gradient(150deg, #f59e0b, var(--amber)); color: #fff;
  font-size: 10.5px; font-weight: 800;
  padding: 4px 8px; border-radius: 999px; letter-spacing: .2px;
  box-shadow: 0 2px 8px rgba(217,119,6,.4);
  display: flex; align-items: center; gap: 4px;
}
.pill-destaque {
  position: absolute; bottom: 8px; left: 8px;
  background: rgba(28,25,23,.78); color: #fde68a; backdrop-filter: blur(4px);
  font-size: 10.5px; font-weight: 800; letter-spacing: .3px;
  padding: 4px 9px; border-radius: 999px;
  box-shadow: 0 1px 4px rgba(28,25,23,.25);
}
.prod-body { padding: 12px 13px 13px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.prod-name {
  font-size: 14px; font-weight: 650; line-height: 1.3; letter-spacing: -.1px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.6em; cursor: pointer;
}
.prod-name:hover { color: var(--brand-dk); }
.prod-price { margin-top: auto; display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; }
.prod-price b { font-size: 17.5px; letter-spacing: -.4px; }
.prod-price span { font-size: 12px; color: var(--ink-3); }
.prod-price .desde { font-size: 11px; color: var(--amber); font-weight: 700; width: 100%; }
.prod-actions { display: flex; gap: 8px; align-items: stretch; flex-wrap: wrap; }
.prod-actions .btn { flex: 1; min-height: 40px; padding: 8px 10px; font-size: 13.5px; min-width: 116px; }
.prod-unavailable { font-size: 12.5px; color: var(--ink-3); font-weight: 600; padding: 9px 0 2px; }
/* cartão estreito (2 colunas no celular): stepper em cima, botão embaixo —
   sem isso o campo de quantidade era espremido até sumir */
@media (max-width: 639px) {
  .prod-actions { flex-direction: column; }
  .prod-actions .stepper { width: 100%; }
  .prod-actions .stepper input { flex: 1; width: auto; min-width: 0; }
}

/* stepper */
.stepper {
  display: flex; align-items: center; border: 1.5px solid var(--line);
  border-radius: 11px; overflow: hidden; background: var(--card); height: 40px;
  flex: none;
}
.stepper button { width: 36px; height: 100%; flex: none; display: grid; place-items: center; color: var(--ink-2); transition: background .12s; }
.stepper button:active { background: var(--line-soft); }
.stepper input {
  width: 52px; text-align: center; border: none; outline: none; background: none;
  font-weight: 700; font-size: 15px; -moz-appearance: textfield;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.stepper.lg { height: 46px; }
.stepper.lg button { width: 44px; }
.stepper.lg input { width: 64px; }

/* ── Skeletons ──────────────────────────────────────────────────────── */
.sk { position: relative; overflow: hidden; background: #ece9e6; border-radius: 8px; }
.sk::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent);
  animation: shimmer 1.3s infinite;
}
@keyframes shimmer { from { transform: translateX(-100%);} to { transform: translateX(100%);} }
.sk-card { border-radius: var(--r-md); overflow: hidden; background: var(--card); border: 1px solid var(--line-soft); }
.sk-card .sk-media { aspect-ratio: 4/3; border-radius: 0; }
.sk-card .sk-body { padding: 12px; display: grid; gap: 8px; }

/* ── Carrinho (drawer) ─────────────────────────────────────────────── */
.drawer-scrim {
  position: fixed; inset: 0; z-index: 60; background: rgba(28,25,23,.42);
  opacity: 0; pointer-events: none; transition: opacity .22s ease;
  backdrop-filter: blur(2px);
}
.drawer-scrim.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 61; width: min(430px, 100vw);
  background: var(--bg); box-shadow: var(--shadow-3);
  transform: translateX(105%); transition: transform .26s cubic-bezier(.32,.72,.33,1);
  display: flex; flex-direction: column;
}
.drawer.open { transform: none; }
.drawer-head {
  padding: 18px 18px 14px; display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid var(--line-soft); background: var(--card);
}
.drawer-head h3 { font-size: 18px; letter-spacing: -.3px; flex: 1; }
.drawer-head .count { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.drawer-body { flex: 1; overflow-y: auto; padding: 14px 16px; }
.drawer-foot {
  border-top: 1px solid var(--line-soft); background: var(--card);
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
}

.cart-item {
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r-md);
  padding: 12px; margin-bottom: 10px; box-shadow: var(--shadow-1);
  animation: viewIn .2s ease both;
}
.cart-item .ci-top { display: flex; gap: 10px; align-items: flex-start; }
.ci-thumb { width: 52px; height: 52px; border-radius: 11px; flex: none; overflow: hidden; background: var(--line-soft); }
.ci-thumb img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.ci-thumb .mono { width: 100%; height: 100%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 18px; }
.ci-info { flex: 1; min-width: 0; }
.ci-name { font-weight: 650; font-size: 14px; line-height: 1.3; }
.ci-price { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.ci-price .cheaper { color: var(--amber); font-weight: 700; }
.ci-remove { color: var(--ink-3); padding: 6px; border-radius: 8px; flex: none; }
.ci-remove:hover { color: var(--danger); background: var(--danger-soft); }
.ci-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; gap: 8px; }
.ci-subtotal { font-weight: 800; font-size: 15px; letter-spacing: -.2px; }

.faixa-hint {
  margin-top: 10px; background: var(--amber-soft); border-radius: 10px;
  padding: 9px 11px; font-size: 12.5px; color: #92400e; display: flex; gap: 8px; align-items: center;
}
.faixa-hint svg { flex: none; }
.faixa-hint .bar { height: 4px; border-radius: 2px; background: rgba(146,64,14,.15); margin-top: 6px; overflow: hidden; }
.faixa-hint .bar i { display: block; height: 100%; background: var(--amber); border-radius: 2px; transition: width .4s ease; }
.faixa-on {
  margin-top: 10px; background: var(--ok-soft); border-radius: 10px;
  padding: 8px 11px; font-size: 12.5px; color: var(--ok); font-weight: 600;
  display: flex; gap: 8px; align-items: center;
}
.ajuste-note {
  margin-top: 10px; background: var(--info-soft); border-radius: 10px;
  padding: 8px 11px; font-size: 12.5px; color: var(--info);
  display: flex; gap: 8px; align-items: center;
}

.totals { display: grid; gap: 6px; margin-bottom: 12px; font-size: 14px; }
.totals .row { display: flex; justify-content: space-between; color: var(--ink-2); }
.totals .row.total { font-size: 18px; font-weight: 800; color: var(--ink); letter-spacing: -.3px; padding-top: 8px; border-top: 1px dashed var(--line); }

.empty {
  text-align: center; padding: 46px 20px; color: var(--ink-3);
}
.empty .art {
  width: 84px; height: 84px; margin: 0 auto 16px; border-radius: 26px;
  background: var(--card); border: 1px solid var(--line-soft); box-shadow: var(--shadow-1);
  display: grid; place-items: center; color: var(--ink-3);
}
.empty b { color: var(--ink-2); display: block; font-size: 16px; margin-bottom: 4px; }
.empty p { font-size: 13.5px; }

/* ── Checkout ───────────────────────────────────────────────────────── */
.co-grid { display: grid; gap: 16px; }
@media (min-width: 880px) { .co-grid { grid-template-columns: 1.4fr 1fr; align-items: start; } }
@media (min-width: 880px) { #co-resumo-card { position: sticky; top: calc(var(--nav-h) + 16px); } }
.card {
  background: var(--card); border: 1px solid var(--line-soft);
  border-radius: var(--r-md); box-shadow: var(--shadow-1); padding: 18px;
}
.card h3 { font-size: 16px; margin-bottom: 12px; letter-spacing: -.2px; }
.addr-opt {
  display: flex; gap: 10px; padding: 12px; border: 1.5px solid var(--line);
  border-radius: 12px; margin-bottom: 8px; cursor: pointer; transition: all .15s;
}
.addr-opt.on { border-color: var(--brand); background: var(--brand-ghost); box-shadow: var(--ring); }
.addr-opt input { accent-color: var(--brand); }
.addr-opt .a-info b { font-size: 14px; }
.addr-opt .a-info p { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }

/* item do checkout com quantidade editável */
.co-item { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px dashed var(--line-soft); }
.co-item:last-child { border-bottom: none; }
.co-item .i-info { flex: 1; min-width: 0; }
.co-item .i-name { font-weight: 600; font-size: 14px; }
.co-item .i-sub { color: var(--ink-3); font-size: 12.5px; margin-top: 1px; }
.co-item .i-right { text-align: right; display: grid; gap: 6px; justify-items: end; }
.co-item .i-total { font-weight: 700; white-space: nowrap; font-size: 14.5px; }
.co-item .stepper { height: 34px; border-radius: 9px; }
.co-item .stepper button { width: 30px; }
.co-item .stepper input { width: 46px; font-size: 14px; }
.co-item .ci-remove { padding: 5px; }

/* ── Confirmação de pedido ──────────────────────────────────────────── */
.success-wrap { max-width: 460px; margin: 8vh auto 0; text-align: center; padding: 0 18px; }
.success-check {
  width: 96px; height: 96px; margin: 0 auto 22px; border-radius: 50%;
  background: var(--ok-soft); display: grid; place-items: center;
  animation: popIn .5s cubic-bezier(.34,1.56,.64,1) both;
}
.success-check svg circle { stroke: var(--ok); stroke-dasharray: 166; stroke-dashoffset: 166; animation: dash .6s .15s ease forwards; fill: none; stroke-width: 3; }
.success-check svg path { stroke: var(--ok); stroke-dasharray: 48; stroke-dashoffset: 48; animation: dash .35s .55s ease forwards; fill: none; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
@keyframes dash { to { stroke-dashoffset: 0; } }
@keyframes popIn { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.success-wrap h2 { font-size: 24px; letter-spacing: -.4px; margin-bottom: 8px; }
.success-wrap .num {
  display: inline-block; margin: 10px 0 4px; padding: 8px 18px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); font-weight: 800; font-size: 17px;
  letter-spacing: .3px; box-shadow: var(--shadow-1);
}
.success-wrap p { color: var(--ink-3); font-size: 14.5px; }
.success-actions { display: grid; gap: 10px; margin-top: 26px; }

/* ── Pedidos ────────────────────────────────────────────────────────── */
.order-card {
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r-md);
  padding: 15px 16px; margin-bottom: 10px; box-shadow: var(--shadow-1);
  display: flex; align-items: center; gap: 14px; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s;
}
@media (hover: hover) { .order-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--line); } }
.order-card .o-main { flex: 1; min-width: 0; }
.order-card .o-num { font-weight: 800; font-size: 15px; letter-spacing: -.2px; }
.order-card .o-meta { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.order-card .o-right { text-align: right; }
.order-card .o-total { font-weight: 800; font-size: 15px; }

.status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; margin-top: 4px;
}
.st-aberto      { background: var(--info-soft); color: var(--info); }
.st-producao    { background: var(--amber-soft); color: #92400e; }
.st-faturado,
.st-entregue    { background: var(--ok-soft); color: var(--ok); }
.st-cancelado   { background: var(--line-soft); color: var(--ink-3); }
.st-canc-solic  { background: var(--danger-soft); color: var(--danger); }

.origem-tag { font-size: 10.5px; font-weight: 700; color: var(--ink-3); background: var(--line-soft); border-radius: 6px; padding: 2px 7px; margin-left: 6px; vertical-align: 1px; }

/* progresso de produção */
.progress-block { margin: 4px 0 2px; }
.progress-track { height: 8px; border-radius: 4px; background: var(--line-soft); overflow: hidden; }
.progress-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--brand) 0%, #22c55e 100%); transition: width .6s ease; }
.progress-label { font-size: 12px; color: var(--ink-3); margin-top: 5px; display: flex; justify-content: space-between; }

/* detalhe do pedido */
.detail-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.back-btn { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line-soft); color: var(--ink-2); box-shadow: var(--shadow-1); flex: none; transition: border-color .15s; }
.back-btn:hover { border-color: var(--ink-3); }
.item-row { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line-soft); font-size: 14px; }
.item-row:last-child { border-bottom: none; }
.item-row .i-name { font-weight: 600; }
.item-row .i-sub { color: var(--ink-3); font-size: 12.5px; margin-top: 1px; }
.item-row .i-total { font-weight: 700; white-space: nowrap; }

/* ── Conta ──────────────────────────────────────────────────────────── */
.kv { display: grid; gap: 2px; padding: 10px 0; border-bottom: 1px dashed var(--line-soft); }
.kv:last-child { border-bottom: none; }
.kv b { font-size: 12px; color: var(--ink-3); font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }
.kv span { font-size: 14.5px; }

/* ── Toasts ─────────────────────────────────────────────────────────── */
#toasts {
  position: fixed; z-index: 90; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--tab-h) + 14px + env(safe-area-inset-bottom));
  display: grid; gap: 8px; width: min(420px, calc(100vw - 28px));
  pointer-events: none;
}
@media (min-width: 780px) { #toasts { bottom: 24px; } }
.toast {
  background: var(--ink); color: #fff; border-radius: 13px; padding: 12px 16px;
  font-size: 14px; box-shadow: var(--shadow-3); display: flex; gap: 10px; align-items: center;
  animation: toastIn .28s cubic-bezier(.34,1.4,.64,1) both;
}
.toast.leaving { animation: toastOut .22s ease both; }
.toast svg { flex: none; }
.toast.ok svg { color: #4ade80; } .toast.err svg { color: #f87171; } .toast.info svg { color: #facc15; }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px) scale(.97); } }

/* ── Modal ──────────────────────────────────────────────────────────── */
.modal-scrim {
  position: fixed; inset: 0; z-index: 70; background: rgba(28,25,23,.45);
  display: grid; place-items: end center; opacity: 0; pointer-events: none; transition: opacity .2s;
  backdrop-filter: blur(2px);
}
@media (min-width: 640px) { .modal-scrim { place-items: center; } }
.modal-scrim.open { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--card); width: 100%; max-width: 440px;
  border-radius: 22px 22px 0 0; padding: 22px 20px calc(22px + env(safe-area-inset-bottom));
  transform: translateY(30px); transition: transform .24s cubic-bezier(.32,.72,.33,1);
  box-shadow: var(--shadow-3);
}
@media (min-width: 640px) { .modal { border-radius: 20px; padding-bottom: 22px; } }
.modal-scrim.open .modal { transform: none; }
.modal h3 { font-size: 18px; letter-spacing: -.3px; margin-bottom: 6px; }
.modal p { color: var(--ink-3); font-size: 14px; margin-bottom: 16px; }
.modal .actions { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; margin-top: 18px; }

/* ── Quick view de produto (folha) ──────────────────────────────────── */
.qv-scrim {
  position: fixed; inset: 0; z-index: 65; background: rgba(28,25,23,.45);
  display: grid; place-items: end center; opacity: 0; pointer-events: none; transition: opacity .2s;
  backdrop-filter: blur(2px);
}
@media (min-width: 640px) { .qv-scrim { place-items: center; } }
.qv-scrim.open { opacity: 1; pointer-events: auto; }
.qv {
  background: var(--card); width: 100%; max-width: 480px;
  max-height: min(92dvh, 720px); overflow-y: auto;
  border-radius: 22px 22px 0 0;
  transform: translateY(36px); transition: transform .24s cubic-bezier(.32,.72,.33,1);
  box-shadow: var(--shadow-3);
}
@media (min-width: 640px) { .qv { border-radius: 20px; } }
.qv-scrim.open .qv { transform: none; }
.qv-media { position: relative; aspect-ratio: 16/10; background: var(--line-soft); }
.qv-media img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.qv-media .mono { width: 100%; height: 100%; display: grid; place-items: center; font-size: 52px; font-weight: 800; color: #fff; }
.qv-close {
  position: absolute; top: 12px; right: 12px; width: 38px; height: 38px;
  border-radius: 12px; display: grid; place-items: center;
  background: rgba(255,255,255,.92); color: var(--ink-2); backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(28,25,23,.18);
}
.qv-body { padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); }
.qv-cat { font-size: 12px; font-weight: 700; color: var(--brand-dk); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.qv-body h3 { font-size: 20px; letter-spacing: -.4px; line-height: 1.25; }
.qv-code { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; }
.qv-desc { font-size: 14px; color: var(--ink-2); margin-top: 10px; line-height: 1.55; white-space: pre-line; }
.qv-price { margin: 12px 0 4px; display: flex; align-items: baseline; gap: 5px; }
.qv-price b { font-size: 26px; letter-spacing: -.6px; }
.qv-price span { font-size: 13.5px; color: var(--ink-3); }
.faixa-table { margin: 12px 0 4px; border: 1.5px solid var(--amber-soft); border-radius: 13px; overflow: hidden; }
.faixa-table .ft-head {
  background: var(--amber-soft); color: #92400e; font-size: 12.5px; font-weight: 800;
  padding: 9px 13px; display: flex; align-items: center; gap: 7px;
}
.faixa-table .ft-row {
  display: flex; justify-content: space-between; padding: 9px 13px; font-size: 13.5px;
  border-top: 1px dashed var(--line-soft);
}
.faixa-table .ft-row:first-of-type { border-top: none; }
.faixa-table .ft-row span { color: var(--ink-2); }
.faixa-table .ft-row b { letter-spacing: -.2px; }
.faixa-table .ft-row .econ { color: var(--amber); font-weight: 700; font-size: 12px; margin-left: 6px; }
.qv-actions { display: flex; gap: 10px; margin-top: 16px; }
.qv-actions .btn { flex: 1; }
.qv-unavailable {
  margin-top: 16px; background: var(--line-soft); border-radius: 12px;
  padding: 12px 14px; font-size: 13.5px; color: var(--ink-3); font-weight: 600; text-align: center;
}

/* fade global do boot */
#boot {
  position: fixed; inset: 0; background: var(--bg); z-index: 100;
  display: grid; place-items: center; transition: opacity .3s ease;
}
#boot.done { opacity: 0; pointer-events: none; }
#boot .mark {
  width: 64px; height: 64px; border-radius: 19px; color: #fff;
  background: linear-gradient(140deg, var(--brand-lt) 0%, var(--brand-dk) 100%);
  display: grid; place-items: center; box-shadow: var(--shadow-2);
  animation: bootPulse 1.2s ease infinite alternate;
}
@keyframes bootPulse { from { transform: scale(1); } to { transform: scale(1.07); } }

/* ── Acompanhamento da produção, item a item ──────────────────────────── */
.prod-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.prod-head .pct { font-size: 22px; font-weight: 800; color: var(--brand); line-height: 1; }
.prod-live {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 700; color: var(--ink-3);
  text-transform: uppercase; letter-spacing: .04em;
}
.prod-live i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--ok);
  animation: pulseDot 1.9s ease-in-out infinite;
}
@keyframes pulseDot { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.75); } }
@media (prefers-reduced-motion: reduce) { .prod-live i { animation: none; } }

.ip-row { padding: 12px 0; border-bottom: 1px dashed var(--line-soft); }
.ip-row:last-child { border-bottom: none; }
.ip-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.ip-name { font-weight: 600; font-size: 14px; }
.ip-sub { color: var(--ink-3); font-size: 12.5px; margin-top: 1px; }
.ip-pct { font-size: 13px; font-weight: 800; white-space: nowrap; color: var(--ink-2); }
.ip-track { height: 6px; border-radius: 3px; background: var(--line-soft); overflow: hidden; margin-top: 8px; }
.ip-fill { height: 100%; border-radius: 3px; background: var(--brand); transition: width .6s ease; }
.ip-row.st-concluido .ip-fill { background: var(--ok); }
.ip-row.st-em_producao .ip-fill { background: linear-gradient(90deg, var(--brand) 0%, var(--amber) 140%); }

.ip-badge {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 8px;
  font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px;
}
.ip-badge.st-sem_producao { background: var(--line-soft); color: var(--ink-3); }
.ip-badge.st-na_fila      { background: var(--info-soft);  color: var(--info); }
.ip-badge.st-em_producao  { background: var(--amber-soft); color: #92400e; }
.ip-badge.st-concluido    { background: var(--ok-soft);    color: var(--ok); }
.ip-editavel { font-size: 11.5px; color: var(--ink-3); margin-top: 6px; }

/* linha travada no carrinho/checkout: item que a fábrica já começou */
.cart-item.travado, .co-item.travado { opacity: .92; }
.cart-item.travado .ci-bottom, .co-item.travado .i-right { align-items: center; }
.qtd-travada {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--amber-soft); color: #92400e;
  font-weight: 700; font-size: 13px; padding: 7px 12px; border-radius: 999px;
}
.nota-travado {
  display: flex; gap: 7px; align-items: flex-start; margin-top: 8px;
  font-size: 12px; color: var(--ink-3); line-height: 1.35;
}
.nota-travado svg { flex: none; margin-top: 1px; color: var(--amber); }

/* ════════════════ REFINO 2026-09-26 ════════════════
   Marca da loja no topo, cartões ligados ao carrinho, resumo do carrinho
   sempre à vista, "Mais pedidos", pedidos com resumo e etapas. */

/* ── marca: logo + nome da loja; cliente embaixo ── */
.brand-link { display: flex; align-items: center; gap: 10px; min-width: 0; color: inherit; }
.brand-link .who b { font-size: 14.5px; }
.brand-link .who span { display: block; font-size: 11.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 52vw; }
.mark.com-logo, .auth-logo .mark.com-logo, #boot .mark.com-logo {
  background: #fff; box-shadow: inset 0 0 0 1px var(--line-soft); overflow: hidden; padding: 3px;
}
.mark.com-logo img { width: 100%; height: 100%; object-fit: contain; }
.topbar .mark.com-logo { width: 42px; height: 38px; border-radius: 10px; }
.auth-logo .mark.com-logo { width: 64px; height: 50px; }
.brand-mark {
  width: 46px; height: 46px; border-radius: 14px; background: rgba(255,255,255,.15);
  display: grid; place-items: center;
}
.brand-mark.com-logo { width: 88px; height: 64px; background: #fff; padding: 6px; border-radius: 16px; }
.brand-mark.com-logo img { width: 100%; height: 100%; object-fit: contain; }

/* ── botão do carrinho no topo: ícone + total (computador) ── */
.cart-btn {
  display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 9px;
  border-radius: 12px; color: var(--ink-2); transition: background .15s;
}
.cart-btn:hover { background: var(--line-soft); }
.cart-btn .cart-ic { position: relative; display: grid; place-items: center; width: 26px; }
.cart-btn .cart-badge { top: -8px; right: -10px; }
.cart-total { font-weight: 800; font-size: 14px; color: var(--brand-dk); letter-spacing: -.2px; }
@media (max-width: 779px) { .cart-total { display: none; } }

/* ── resumo flutuante do carrinho (celular, no catálogo) ── */
.cart-float {
  position: fixed; z-index: 41; left: 12px; right: 12px;
  bottom: calc(var(--tab-h) + 10px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  border-radius: 16px; color: #fff; text-align: left;
  background: linear-gradient(160deg, var(--brand-lt) 0%, var(--brand) 55%, var(--brand-dk) 130%);
  box-shadow: 0 10px 28px rgba(22,101,52,.35);
  animation: toastIn .28s cubic-bezier(.34,1.4,.64,1) both;
}
.cart-float .cf-ic { position: relative; width: 38px; height: 38px; border-radius: 11px; background: rgba(255,255,255,.16); display: grid; place-items: center; flex: none; }
.cart-float .cf-ic b { position: absolute; top: -6px; right: -6px; min-width: 19px; height: 19px; border-radius: 10px; background: var(--amber); font-size: 11px; display: grid; place-items: center; padding: 0 5px; border: 2px solid var(--brand); }
.cart-float .cf-txt { flex: 1; display: grid; line-height: 1.2; }
.cart-float .cf-txt span { font-size: 12px; opacity: .85; }
.cart-float .cf-txt b { font-size: 16px; letter-spacing: -.3px; }
.cart-float .cf-go { display: flex; align-items: center; gap: 4px; font-weight: 700; font-size: 13.5px; }
@media (min-width: 780px) { .cart-float { display: none !important; } }
body.com-cart-float .page { padding-bottom: calc(var(--tab-h) + 110px + env(safe-area-inset-bottom)); }
body.com-cart-float #toasts { bottom: calc(var(--tab-h) + 86px + env(safe-area-inset-bottom)); }

/* ── produto sem foto: fundo suave + ícone + iniciais ── */
.mono.soft {
  width: 100%; height: 100%; display: grid; place-items: center; align-content: center; gap: 6px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.9), transparent 60%),
    var(--brand-ghost);
  color: var(--brand); font-size: 22px; font-weight: 800; letter-spacing: .5px;
}
.mono.soft svg { opacity: .55; }
.mono.soft.sm { font-size: 13px; gap: 2px; }
.mono.soft.sm svg { width: 15px; height: 15px; }
.mono.soft.lg { font-size: 36px; }

/* ── ações do cartão ligadas ao carrinho ── */
.prod-grid { grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); }
@media (min-width: 640px) { .prod-grid { grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); } }
.prod-actions .add-btn { width: 100%; min-width: 0; }
.no-carrinho { display: grid; gap: 5px; width: 100%; }
.stepper.full { width: 100%; border-color: var(--brand); background: var(--brand-ghost); }
.stepper.full input { flex: 1; width: auto; min-width: 0; color: var(--brand-dk); }
.stepper.full button { color: var(--brand-dk); }
.stepper.full.trav { border-color: var(--amber); background: var(--amber-soft); }
.nc-tag { display: flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; color: var(--brand); justify-content: center; }
.prod-unavailable { text-align: center; background: var(--line-soft); border-radius: 10px; padding: 9px 6px; }

.chip-fav { display: inline-flex; align-items: center; gap: 6px; }
.chip-fav:not(.on) { color: var(--brand-dk); border-color: var(--brand-soft); background: var(--brand-ghost); }

/* ── lista de pedidos: resumo dos itens e produção ── */
.order-card { align-items: stretch; }
.order-card .o-line1 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.order-card .o-line1 .status-pill { margin-top: 0; }
.order-card .o-data { font-size: 12.5px; color: var(--ink-3); }
.order-card .o-itens { font-size: 13px; color: var(--ink-2); margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-card .o-itens b { color: var(--ink); }
.order-card .o-prog { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 12px; color: var(--ink-3); font-weight: 600; }
.order-card .o-prog .progress-track { flex: 1; max-width: 260px; }
.progress-track.sm { height: 6px; }
.order-card .o-right { display: flex; align-items: center; gap: 8px; }
.order-card .o-chev { transform: rotate(180deg); color: var(--ink-3); }

/* ── etapas do pedido ── */
.timeline {
  list-style: none; display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r-md);
  box-shadow: var(--shadow-1); padding: 14px 10px 12px; margin-bottom: 14px;
}
.timeline li { position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; }
.timeline li::before {
  content: ""; position: absolute; top: 11px; left: -50%; width: 100%; height: 3px;
  background: var(--line); z-index: 0;
}
.timeline li:first-child::before { display: none; }
.timeline li.feito::before, .timeline li.agora::before { background: var(--brand); }
.tl-dot {
  position: relative; z-index: 1; width: 24px; height: 24px; border-radius: 50%;
  background: var(--card); border: 3px solid var(--line); display: grid; place-items: center; color: #fff;
}
.timeline li.feito .tl-dot { background: var(--brand); border-color: var(--brand); }
.timeline li.agora .tl-dot { border-color: var(--brand); box-shadow: 0 0 0 5px var(--brand-soft); }
.tl-rot { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.timeline li.agora .tl-rot { color: var(--brand-dk); font-weight: 800; }
.timeline li.feito .tl-rot { color: var(--ink-2); }
.timeline.cancelado {
  display: flex; align-items: center; gap: 8px; justify-content: center;
  color: var(--ink-3); font-weight: 700; font-size: 14px;
}

/* ── detalhe do pedido: duas colunas no computador ── */
.pd-sub { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 2px; }
.pd-sub .status-pill { margin-top: 0; }
.pd-sub > span:last-child { font-size: 12.5px; color: var(--ink-3); }
.pd-grid { display: grid; gap: 0 16px; }
@media (min-width: 880px) {
  .pd-grid { grid-template-columns: 1.5fr 1fr; align-items: start; }
  .pd-lado { position: sticky; top: calc(var(--nav-h) + 16px); }
}
.pd-acoes { display: grid; gap: 10px; }
.btn-link-danger { background: none; color: var(--danger); font-weight: 600; min-height: 40px; }
.btn-link-danger:hover { background: var(--danger-soft); }
