/* Espeto do Chefe — estilos compartilhados + app do cliente */
:root {
  --bg: #12100E;
  --bg-deep: #0d0b0a;
  --surface: #1c1713;
  --surface-2: #241c17;
  --card: #1e1814;
  --line: #2a221c;
  --line-2: #3a2e25;
  --text: #F3ECE4;
  --text-2: #d8cbbd;
  --muted: #b5a698;
  --muted-2: #a39486;
  --ember: #E8833A;
  --ink: #1a120c;
  --price: #F2B47E;
  --ok: #7BC67E;
  --ok-text: #9fd9a2;
  --warn: #E8C13A;
  --danger: #E06A55;
  --sea: #1B3A4B;
  --sea-text: #bfe0f0;
  --wood: #4A2F1E;
  --radius: 14px;
  --display: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.45;
}
a { color: var(--price); }
a:hover { color: #f7c99f; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hidden { display: none !important; }

.display { font-family: var(--display); font-weight: 400; letter-spacing: .03em; line-height: 1; }
.wood {
  background:
    repeating-linear-gradient(91deg, rgba(0,0,0,.10) 0 2px, transparent 2px 11px),
    repeating-linear-gradient(89deg, rgba(255,255,255,.035) 0 1px, transparent 1px 27px),
    var(--wood);
}

/* ---------- botões e campos ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 18px; border-radius: var(--radius);
  border: 1px solid var(--line-2); background: var(--surface); color: var(--text);
  font-weight: 700; text-decoration: none;
}
.btn-primary { background: var(--ember); border-color: var(--ember); color: var(--ink); font-weight: 800; }
.btn-primary:hover { color: var(--ink); filter: brightness(1.05); }
.btn-ok { background: var(--ok); border-color: var(--ok); color: #12100E; font-weight: 800; }
.btn-ghost { background: transparent; }
.btn-block { width: 100%; min-height: 56px; font-size: 16px; }
.btn-icon { width: 44px; min-height: 44px; padding: 0; border-radius: 50%; border: none; background: transparent; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.input {
  width: 100%; min-height: 48px; padding: 0 14px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line-2); color: var(--text);
}
textarea.input { padding: 12px 14px; resize: vertical; min-height: 72px; }
select.select {
  appearance: none; -webkit-appearance: none; min-height: 52px; padding-right: 44px; font-size: 16px; font-weight: 600;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23F2B47E' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
select.select option { background: #1c1713; color: var(--text); }
select.select.faltando { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger); }
.input::placeholder { color: #8f7e70; }
.hint { font-size: 12.5px; color: var(--muted-2); }

.pill {
  display: inline-flex; align-items: center; gap: 6px; border-radius: 999px;
  padding: 6px 12px; font-size: 12px; font-weight: 700; background: var(--bg);
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); flex-shrink: 0; }
.dot.off { background: #6b5a4d; }

.toast {
  position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%);
  max-width: min(92vw, 420px); padding: 12px 16px; border-radius: 12px;
  background: #2a211b; border: 1px solid var(--line-2); color: var(--text);
  font-weight: 600; font-size: 14px; z-index: 1000; box-shadow: 0 8px 30px rgba(0,0,0,.5);
}
.toast.erro { border-color: var(--danger); }

.ph-foto {
  background: var(--surface-2); border: 1px dashed #4a3b30; color: #8f7e70;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* ---------- app do cliente ---------- */
.cli { max-width: 560px; margin: 0 auto; min-height: 100vh; position: relative; padding-bottom: 110px; }

.topo { padding: 28px 20px 22px; border-bottom: 3px solid #0b0908; }
.marca { display: flex; align-items: center; gap: 10px; }
.marca-icone { width: 44px; height: 44px; border-radius: 50%; background: var(--bg); color: var(--ember); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.marca-nome { font-family: var(--display); font-size: 34px; line-height: 1; letter-spacing: .02em; }
.marca-sub { font-size: 13px; color: #e6d6c4; }
.topo-status { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }

.aviso-fechado { margin: 14px 16px 0; padding: 12px 14px; border-radius: 12px; background: #2a1a14; border: 1px solid #5a3424; font-size: 14px; }

.cats { position: sticky; top: 0; z-index: 5; display: flex; gap: 8px; padding: 14px 20px; overflow-x: auto; background: var(--bg); scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.chip {
  min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2);
  background: #1c1713; color: var(--text-2); font-weight: 600; font-size: 14px; white-space: nowrap; flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 7px;
}
.chip.on { background: var(--ember); border-color: var(--ember); color: var(--ink); }

.secao { padding: 0 20px; scroll-margin-top: 70px; }
.secao h2 { margin: 14px 0 2px; font-family: var(--display); font-weight: 400; font-size: 26px; letter-spacing: .03em; }

.item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; }
.item-foto { width: 84px; height: 84px; border-radius: 12px; object-fit: cover; }
.item-info { flex: 1; min-width: 0; }
.item-nome { font-weight: 700; font-size: 16px; }
.item-desc { font-size: 13px; color: var(--muted); margin: 3px 0 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.preco { font-weight: 800; color: var(--price); }
.add { width: 44px; height: 44px; border-radius: 12px; border: none; background: var(--ember); color: var(--ink); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.item.esgotado { opacity: .5; }
.item.esgotado .preco { text-decoration: line-through; }
.tag-esgotado { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; border: 1px solid #6b5a4d; color: var(--text-2); border-radius: 8px; padding: 6px 8px; flex-shrink: 0; }

.barra-fixa { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--bg); border-top: 1px solid var(--line); padding: 14px 16px calc(16px + env(safe-area-inset-bottom)); }
.barra-fixa > .dentro { max-width: 528px; margin: 0 auto; }
.btn-carrinho { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 18px; border-radius: var(--radius); background: var(--ember); color: var(--ink); text-decoration: none; font-weight: 800; border: none; width: 100%; }
.btn-carrinho:hover { color: var(--ink); }
.badge { background: var(--bg); color: var(--text); border-radius: 999px; font-size: 11px; min-width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }

/* telas cheias (item, carrinho, checkout, local) */
.tela { position: fixed; inset: 0; z-index: 30; background: var(--bg); overflow-y: auto; }
.tela > .dentro { max-width: 560px; margin: 0 auto; min-height: 100%; padding-bottom: 130px; position: relative; }
.cab { display: flex; align-items: center; gap: 8px; padding: 18px 16px 10px; }
.cab h1 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 32px; letter-spacing: .03em; }
.corpo { padding: 0 20px; }
.grp { font-family: var(--display); font-size: 21px; letter-spacing: .04em; margin: 22px 0 8px; font-weight: 400; }
.grp-head { display: flex; justify-content: space-between; align-items: center; }
.tag { font-size: 11px; font-weight: 700; color: var(--muted); background: var(--surface); border-radius: 6px; padding: 3px 7px; }

.foto-grande { width: 100%; aspect-ratio: 4 / 3; max-height: 300px; object-fit: cover; }
.ph-grande { width: 100%; height: 240px; flex-direction: column; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border-width: 0 0 1px; }
.voltar-flutuante { position: absolute; top: 16px; left: 16px; width: 44px; height: 44px; border-radius: 50%; background: var(--bg); color: var(--text); display: flex; align-items: center; justify-content: center; border: none; z-index: 2; }

.opt { display: flex; align-items: center; gap: 12px; min-height: 48px; border-bottom: 1px solid var(--line); font-size: 15px; cursor: pointer; }
.opt input { width: 20px; height: 20px; accent-color: var(--ember); margin: 0; flex-shrink: 0; }
.opt .extra { margin-left: auto; color: var(--price); font-weight: 700; }

.stepper { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: 14px; min-height: 56px; }
.stepper button { width: 46px; min-height: 54px; background: none; border: none; display: flex; align-items: center; justify-content: center; }
.stepper span { font-weight: 800; font-size: 17px; min-width: 22px; text-align: center; }
.stepper.sm { min-height: 40px; border-radius: 10px; }
.stepper.sm button { width: 40px; min-height: 38px; }
.stepper.sm span { font-size: 15px; }

.linha-carrinho { display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.linha-carrinho .mini { width: 60px; height: 60px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.resumo { margin-top: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.resumo .l { display: flex; justify-content: space-between; padding: 4px 0; color: var(--text-2); }
.resumo .t { display: flex; justify-content: space-between; font-weight: 800; font-size: 18px; color: var(--text); padding-top: 8px; margin-top: 6px; border-top: 1px solid var(--line); }

.segmento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 5px; }
.segmento button { min-height: 46px; border: none; border-radius: 10px; background: transparent; color: var(--text-2); font-weight: 700; font-size: 14px; }
.segmento button.on { background: var(--ember); color: var(--ink); font-weight: 800; }
.info-box { display: flex; gap: 10px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; font-size: 13px; color: var(--text-2); }

.pay { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; }
.pay.on { border-color: var(--ember); }
.pay input { width: 20px; height: 20px; accent-color: var(--ember); margin: 0; }
.pay .ico { width: 40px; height: 40px; border-radius: 10px; background: #2a211b; display: flex; align-items: center; justify-content: center; color: var(--price); flex-shrink: 0; }

/* mapa da praia */
.mapa { height: 300px; background: #3B3124; position: relative; z-index: 0; }
.mapa-dica { position: absolute; left: 12px; top: 12px; z-index: 500; background: rgba(18,16,14,.88); border-radius: 999px; padding: 6px 11px; font-size: 12px; font-weight: 600; pointer-events: none; }
.btn-gps { position: absolute; right: 12px; bottom: 12px; z-index: 500; width: 46px; height: 46px; border-radius: 50%; border: none; background: var(--bg); color: var(--text); display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 10px rgba(0,0,0,.5); }
.precisao { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 20px; font-size: 13px; border-bottom: 1px solid var(--line); }
.precisao .q { display: flex; align-items: center; gap: 7px; font-weight: 700; }
.q.boa { color: var(--ok-text); } .q.boa .dot { background: var(--ok); }
.q.media { color: #f0d77a; } .q.media .dot { background: var(--warn); }
.q.ruim { color: #f0a090; } .q.ruim .dot { background: var(--danger); }
.cores { display: flex; flex-wrap: wrap; gap: 7px; }
.sw { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); }
.leaflet-container { background: #2b2620; font-family: var(--body); }

/* acompanhamento do pedido */
.qr { width: 240px; height: 240px; background: #fff; border-radius: 16px; padding: 12px; margin: 18px auto 0; display: flex; align-items: center; justify-content: center; }
.qr img { width: 100%; height: 100%; object-fit: contain; }
.copia { display: flex; gap: 8px; align-items: center; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; padding: 6px 6px 6px 14px; margin-top: 16px; }
.copia code { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12.5px; color: var(--muted); }
.passos { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.passo { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--text-2); }
.passo .n { width: 24px; height: 24px; border-radius: 50%; background: #2a211b; color: var(--price); font-weight: 800; font-size: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.aguardando { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 700; }
.pulso { width: 10px; height: 10px; border-radius: 50%; background: var(--ember); animation: pulso 1.4s ease-in-out infinite; }
@keyframes pulso { 0%, 100% { box-shadow: 0 0 0 0 rgba(232,131,58,.5); } 50% { box-shadow: 0 0 0 7px rgba(232,131,58,0); } }
@media (prefers-reduced-motion: reduce) { .pulso { animation: none; } }

.cartao-senha { margin-top: 18px; border-radius: 20px; padding: 26px 20px 22px; text-align: center; border: 3px solid #0b0908; }
.cartao-senha .rot { font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #e6d6c4; }
.cartao-senha .num { font-family: var(--display); font-size: 128px; line-height: .95; color: #fff; margin-top: 6px; }
.timeline { margin-top: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 16px; display: flex; flex-direction: column; gap: 16px; }
.etapa { display: flex; gap: 14px; align-items: flex-start; }
.etapa .bola { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; border: 2px solid #4a3b30; }
.etapa.feita .bola { background: var(--ok); border-color: var(--ok); color: #12100E; }
.etapa.atual .bola { background: var(--ember); border-color: var(--ember); color: var(--ink); }
.etapa.futura { opacity: .55; }
.etapa .t { font-weight: 700; }
.etapa .s { font-size: 12.5px; color: var(--muted-2); }
