@charset "UTF-8";
:root {
  --brand:#b74726;
  --brand-ink:#fff;
  --ink:#202b26;
  --muted:#65716b;
  --paper:#faf9f5;
  --surface:#fff;
  --line:#e3e7df;
  --green:#255640;
  --soft-green:#edf5ee;
  --red:#b52e32;
  --amber:#8a5507;
  --radius:16px;
  --shadow:0 16px 50px #172d2514;
  --space:24px;
  font-family:Inter,"Segoe UI",system-ui,-apple-system,sans-serif;
  color:var(--ink);
  background:var(--paper);
  font-synthesis:none
}
* {
  box-sizing:border-box
}
body {
  margin:0
}
button,input,select,textarea {
  font:inherit
}
button,a,input,select,textarea {
  -webkit-tap-highlight-color:transparent
}
button,a {
  touch-action:manipulation
}
a {
  color:inherit;
  text-decoration:none
}
button {
  cursor:pointer
}
button:disabled {
  cursor:not-allowed;
  opacity:.52
}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible {
  outline:3px solid #528fdb;
  outline-offset:3px
}
button {
  border:0
}
h1,h2,h3,p {
  margin-top:0
}
h1 {
  letter-spacing:-.045em;
  line-height:1.07
}
h2 {
  letter-spacing:-.025em;
  line-height:1.25
}
h3 {
  letter-spacing:-.015em
}
p {
  line-height:1.55
}
img {
  max-width:100%;
  object-fit:cover
}
small,.small {
  font-size:.8rem
}
.muted {
  color:var(--muted)
}
.eyebrow {
  font-size:.7rem;
  letter-spacing:.16em;
  font-weight:750;
  color:var(--green)
}
.wordmark {
  display:inline-flex;
  gap:10px;
  align-items:center;
  font-size:1.5rem;
  font-weight:800;
  letter-spacing:-.05em
}
.brand-dot {
  color:var(--brand)
}
.wrap {
  max-width:1200px;
  margin:auto;
  padding-inline:32px
}
.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 18px;
  min-height:44px;
  border-radius:10px;
  font-weight:650;
  font-size:.9rem;
  transition:background .15s,transform .15s;
  border:1px solid transparent
}
.button:active {
  transform:translateY(1px)
}
.primary {
  background:var(--brand);
  color:var(--brand-ink)
}
.primary:hover {
  filter:brightness(.94)
}
.secondary {
  background:var(--surface);
  border-color:var(--line);
  color:var(--ink)
}
.secondary:hover {
  background:var(--ui-hover, #f2f4ef)
}
.subtle {
  background:transparent;
  color:var(--muted)
}
.danger {
  color:var(--red);
  background:var(--ui-danger-bg, #fff0ef)
}
.large {
  padding:16px 22px;
  font-size:1rem;
  min-height:52px
}
.full {
  width:100%
}
.icon-button {
  min-width:44px;
  min-height:44px;
  border-radius:10px;
  background:transparent;
  color:var(--ink);
  font-size:1.2rem
}
.icon-button:hover {
  background:var(--ui-hover, #edf0e9)
}
.badge {
  display:inline-flex;
  gap:5px;
  align-items:center;
  padding:5px 9px;
  border-radius:6px;
  font-size:.72rem;
  font-weight:700;
  line-height:1.4;
  background:var(--ui-badge-bg, #f0f1ec);
  color:var(--ui-badge-ink, #5b675e)
}
.green {
  background:var(--soft-green);
  color:var(--green)
}
.amber {
  background:var(--ui-amber-bg, #fff1d8);
  color:var(--amber)
}
.red {
  background:var(--ui-danger-bg, #fff0ef);
  color:var(--red)
}
.stack {
  display:grid;
  gap:16px
}
.row {
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap
}
.between {
  justify-content:space-between
}
.grow {
  flex:1;
  min-width:0
}
/* Comunicação 360 UX-005: "Voltar" e a ação lado a lado; em tela estreita, a ação vai para a linha de baixo inteira. */
.confirm-actions > .button {
  flex:1 1 140px
}
.card {
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:24px
}
.field {
  display:grid;
  gap:7px;
  margin-bottom:16px;
  min-width:0
}
.field>span,.field>label {
  font-size:.85rem;
  font-weight:650
}
.field input:not([type=checkbox]):not([type=radio]),.field select,.field textarea,.search-input {
  width:100%;
  min-height:46px;
  border:1px solid var(--ui-field-line, #d5dbd2);
  border-radius:9px;
  padding:11px 12px;
  background:var(--ui-field-bg, #fff);
  color:var(--ink)
}
textarea {
  resize:vertical;
  min-height:86px
}
.field small {
  color:var(--muted)
}
.field-error {
  color:var(--red)!important;
  font-size:.82rem;
  line-height:1.45
}
.field-error:empty {
  display:none
}
.field:has([aria-invalid=true]) input {
  border-color:var(--red)
}
.form-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:0 16px;
  align-items:start
}
/* Cartão da assinatura: bandeira dentro do campo do número e CVV com mostrar/ocultar (o olho é o .auth-eye do acesso). */
.input-affix {
  position:relative;
  display:block
}
#card-form .input-affix.has-eye input {
  padding-right:52px
}
#card-form .input-affix.is-branded input {
  padding-right:116px
}
.card-brand {
  position:absolute;
  right:10px;
  top:50%;
  transform:translateY(-50%);
  pointer-events:none
}
.card-brand:empty,.card-address:empty {
  display:none
}
#card-form .is-secret {
  -webkit-text-security:disc
}
.card-address {
  margin:-6px 0 16px;
  color:var(--muted);
  font-size:.85rem;
  line-height:1.45
}
.check {
  display:flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  font-size:.9rem
}
.check input {
  width:19px;
  height:19px;
  accent-color:var(--brand)
}
fieldset {
  border:0;
  padding:0;
  margin:0 0 22px;
  min-width:0
}
legend {
  font-weight:750;
  margin-bottom:12px;
  font-size:1rem
}
.notice {
  padding:14px 16px;
  border-radius:10px;
  background:var(--ui-notice-bg, #f6eedb);
  color:var(--ui-notice-ink, #705321);
  line-height:1.5;
  font-size:.9rem;
  margin-bottom:16px
}
.notice.error {
  background:var(--ui-danger-bg, #fff0ef);
  color:var(--red)
}
.notice.success {
  background:var(--soft-green);
  color:var(--green)
}
/* Comunicação 360 UX-014: aviso neutro (informação), separado do âmbar de atenção (.notice, também .notice.warn).
   Painel: --soft-blue/--blue-text (claro e escuro); plataforma: --info-soft/--info; fora deles, tom do texto. */
.notice.info {
  background:var(--soft-blue, var(--info-soft, color-mix(in srgb, currentColor 7%, transparent)));
  color:var(--blue-text, var(--info, currentColor))
}
.notice:empty {
  display:none
}
/* Aviso que recebe o foco por programa (tabindex=-1) para o leitor de tela anunciar: não é controle, não ganha contorno. */
.notice[tabindex="-1"]:focus {
  outline:none
}
.empty {
  text-align:center;
  padding:38px 20px;
  color:var(--muted)
}
.empty-page {
  min-height:70vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:24px
}
.empty-symbol {
  font-size:4rem;
  color:var(--brand)
}
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0
}
[hidden] {
  display:none!important
}
.skeleton {
  background:linear-gradient(100deg,var(--ui-skeleton, #e9eae3) 30%,var(--ui-skeleton-shine, #f5f5f0) 50%,var(--ui-skeleton, #e9eae3) 70%);
  background-size:200% 100%;
  animation:shimmer 1.8s infinite;
  border-radius:12px
}
.skeleton-cover {
  height:220px;
  border-radius:0
}
.skeleton-title {
  height:40px;
  width:60%;
  margin:28px 0 14px
}
.skeleton-line {
  height:16px;
  width:80%;
  margin-bottom:40px
}
.skeleton-card {
  height:160px
}
@keyframes shimmer {
  to {
    background-position:-200% 0
  }
}
.toasts {
  position:fixed;
  bottom:24px;
  right:24px;
  max-width:min(430px,calc(100vw - 32px));
  z-index:2000;
  display:grid;
  gap:10px
}
.toast {
  background:var(--ui-toast-bg, #20392e);
  color:white;
  border-radius:12px;
  padding:14px 16px;
  box-shadow:var(--shadow);
  display:flex;
  align-items:center;
  gap:12px;
  font-size:.9rem;
  animation:enter .18s ease
}
.toast button {
  background:#ffffff20;
  color:white;
  font-weight:750;
  white-space:nowrap;
  border-radius:7px;
  min-height:44px;
  padding:0 12px
}
.toast.error {
  background:var(--ui-toast-error-bg, #892d2d)
}
/* Comunicação 360 UX-013: estado também pelo ícone (✓ concluído, ! erro), nunca só pela cor de fundo. */
.toast-icon {
  flex:none;
  width:18px;
  height:18px
}
.toast-count {
  margin-left:auto;
  font-weight:800;
  font-variant-numeric:tabular-nums
}
/* Avisos sem cobrir o controle em uso (R11, DM-240): o toque atravessa o contêiner e o aviso sem botão (ele continua
   legível); aviso com ação segue clicável. Com avisos na tela, a página ganha no fim o espaço que eles ocupam
   (--toasts-space, calculado em core.js) e o foco rola o campo para cima deles. !important: vence as regras específicas
   do quadro de pedidos, que religavam o toque em todos os avisos. */
#toasts {
  pointer-events:none
}
#toasts > .toast {
  pointer-events:none !important
}
#toasts > .toast:has(button) {
  pointer-events:auto !important
}
html {
  scroll-padding-bottom:var(--toasts-space,0px)
}
body:has(#toasts > .toast)::after {
  content:"";
  display:block;
  height:var(--toasts-space,0px)
}
@keyframes enter {
  from {
    opacity:0;
    transform:translateY(10px)
  }
  to {
    opacity:1;
    transform:none
  }
}
dialog {
  border:0;
  padding:0;
  border-radius:20px;
  max-width:min(640px,calc(100vw - 32px));
  width:100%;
  max-height:90dvh;
  box-shadow:var(--shadow);
  color:var(--ink);
  background:var(--surface);
  overscroll-behavior:contain
}
dialog::backdrop {
  background:#13291f99;
  backdrop-filter:blur(3px)
}
/* Com janela aberta, a rolagem fica nela: a página de trás não anda (a reserva da barra evita o salto do fundo). */
html:has(dialog:modal) {
  overflow:hidden;
  scrollbar-gutter:stable
}
.modal-head {
  position:sticky;
  top:0;
  background:var(--ui-card, white);
  padding:18px 24px;
  border-bottom:1px solid var(--line);
  z-index:2;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px
}
.modal-head h2 {
  font-size:1.25rem;
  margin:0
}
.modal-body {
  padding:24px;
  overflow:auto
}
.modal-footer {
  position:sticky;
  bottom:0;
  padding:16px 24px;
  background:var(--ui-card, white);
  border-top:1px solid var(--line)
}
.sheet {
  margin-right:0;
  height:100dvh;
  max-height:100dvh;
  width:520px;
  border-radius:18px 0 0 18px
}
.sheet .modal-body {
  padding-bottom:32px
}
.totals {
  display:grid;
  gap:12px;
  margin-top:16px
}
.totals>div {
  display:flex;
  justify-content:space-between;
  gap:16px;
  font-size:.9rem
}
.totals .total {
  padding-top:15px;
  border-top:1px solid var(--line);
  font-size:1.15rem;
  font-weight:800
}
.order-items {
  list-style:none;
  padding:0;
  margin:0
}
.order-items li {
  padding:16px 0;
  border-bottom:1px solid var(--line)
}
.order-items .item-title {
  display:flex;
  justify-content:space-between;
  gap:14px;
  font-weight:650
}
.order-items p {
  margin:6px 0 0;
  font-size:.85rem
}
.stepper {
  display:inline-flex;
  align-items:center;
  border:1px solid var(--line);
  border-radius:9px;
  overflow:hidden
}
.stepper button {
  width:44px;
  height:44px;
  background:var(--ui-fill, #f5f6f1);
  font-size:1.25rem
}
/* A11Y-001: o .stepper corta o que passa da borda (overflow:hidden); o anel de foco fica por dentro do botão. */
.stepper button:focus-visible {
  outline-offset:-3px
}
.stepper output {
  min-width:36px;
  text-align:center;
  font-weight:700
}
.map {
  height:280px;
  border-radius:12px;
  z-index:0;
  border:1px solid var(--line);
  margin-bottom:12px
}
.leaflet-container {
  font-family:inherit
}
.leaflet-control-attribution {
  font-size:10px
}
.landing {
  background:#f4f2e9
}
.landing-nav {
  padding-top:28px;
  display:flex;
  align-items:center;
  justify-content:space-between
}
.landing-main {
  display:grid;
  grid-template-columns:1.15fr 1fr;
  gap:80px;
  align-items:center;
  min-height:76vh;
  padding-top:60px;
  padding-bottom:70px
}
.landing-copy h1 {
  font-size:clamp(3rem,5.4vw,5rem);
  margin:22px 0
}
.lead {
  font-size:1.13rem;
  color:var(--muted);
  max-width:470px;
  margin-bottom:30px
}
.landing-copy>.muted {
  font-size:.82rem;
  margin-top:18px
}
.landing-preview {
  background:#dce7d9;
  border-radius:24px;
  padding:22px;
  transform:rotate(-2deg);
  box-shadow:0 25px 70px #24372815
}
.preview-top {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
  margin-bottom:24px
}
.preview-top .eyebrow {
  font-size:.6rem
}
.preview-receipt {
  background:#fffdf6;
  border-radius:12px;
  padding:30px
}
.preview-receipt>.muted {
  font-size:.62rem;
  letter-spacing:.15em
}
.preview-receipt h2 {
  font-size:2rem;
  margin-top:16px
}
.feature {
  display:flex;
  gap:18px;
  padding:16px 0;
  border-top:1px solid #e7e7dc
}
.feature>span {
  font-size:.72rem;
  color:#6e856f;
  margin-top:3px
}
.feature strong {
  font-size:.92rem
}
.feature p {
  font-size:.82rem;
  margin:6px 0 0;
  color:var(--muted)
}
.preview-bottom {
  display:flex;
  justify-content:space-between;
  font-size:.6rem;
  letter-spacing:.1em;
  padding-top:22px
}
.landing-footer {
  padding-bottom:28px;
  color:var(--muted);
  font-size:.8rem
}
.store-wrap {
  max-width:1000px;
  margin:auto;
  padding-inline:24px
}
.store-cover {
  height:220px;
  background:var(--brand);
  background:linear-gradient(120deg,color-mix(in srgb,var(--brand) 78%,#000),color-mix(in srgb,var(--brand) 65%,#fff));
  position:relative;
  overflow:hidden
}
.store-cover img {
  width:100%;
  height:100%
}
.store-header {
  padding-top:24px;
  padding-bottom:24px;
  position:relative
}
.store-logo {
  width:80px;
  height:80px;
  border-radius:20px;
  border:4px solid var(--paper);
  background:white;
  margin-top:-64px;
  position:relative
}
.store-header h1 {
  font-size:2rem;
  margin:16px 0 8px
}
.store-header p {
  max-width:680px;
  color:var(--muted);
  font-size:.9rem;
  margin-bottom:14px
}
.store-meta {
  display:flex;
  gap:16px;
  align-items:center;
  flex-wrap:wrap;
  font-size:.8rem;
  color:var(--muted)
}
.category-bar {
  position:sticky;
  top:0;
  background:var(--paper);
  z-index:20;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line)
}
.category-scroll {
  display:flex;
  gap:6px;
  overflow:auto;
  padding:10px 0;
  scrollbar-width:none
}
.category-scroll :is(a,button) {
  white-space:nowrap;
  min-height:44px;
  padding:12px 16px;
  border-radius:9px;
  font-size:.86rem;
  font-weight:650
}
.category-scroll :is(a,button).active {
  background:var(--brand);
  color:var(--brand-ink)
}
.store-search {
  padding-top:24px;
  padding-bottom:8px
}
.search-input {
  max-width:420px;
  background:#fff
}
.menu-section {
  scroll-margin-top:86px;
  padding-top:24px
}
.menu-section h2 {
  font-size:1.45rem;
  margin-bottom:8px
}
.menu-section>p {
  font-size:.85rem;
  color:var(--muted)
}
.product-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px
}
.product-card {
  display:flex;
  gap:16px;
  text-align:left;
  border:1px solid var(--line);
  border-radius:14px;
  padding:18px;
  background:var(--surface);
  color:var(--ink);
  width:100%;
  min-height:150px;
  transition:box-shadow .15s,border-color .15s;
  align-items:center
}
.product-card:hover {
  box-shadow:var(--shadow);
  border-color:#bacbb9
}
.product-card.is-unavailable {
  opacity:.6
}
.product-copy {
  flex:1;
  min-width:0
}
.product-card h3 {
  font-size:1rem;
  margin:0 0 8px
}
.product-card p {
  font-size:.8rem;
  color:var(--muted);
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  margin-bottom:12px
}
.product-card img {
  width:104px;
  height:104px;
  border-radius:12px;
  flex-shrink:0
}
.product-price {
  font-weight:750;
  font-size:.95rem
}
.tags {
  display:flex;
  gap:5px;
  flex-wrap:wrap;
  margin-bottom:8px
}
.store-menu {
  padding-bottom:120px
}
.store-footer {
  font-size:.76rem;
  text-align:center;
  padding:40px 0 20px;
  color:var(--muted)
}
.cart-bar {
  position:fixed;
  bottom:20px;
  left:50%;
  transform:translateX(-50%);
  width:min(620px,calc(100% - 32px));
  z-index:30;
  box-shadow:0 8px 35px #162d2633;
  display:flex;
  justify-content:space-between;
  padding:17px 22px;
  border-radius:13px;
  background:var(--brand);
  color:var(--brand-ink);
  min-height:56px;
  font-weight:700
}
.product-hero {
  width:100%;
  height:230px;
  border-radius:12px;
  margin-bottom:20px
}
.option-group {
  border-top:1px solid var(--line);
  padding-top:20px;
  margin-top:20px
}
.option-group legend {
  padding-top:20px;
  margin-bottom:5px
}
.option-group .option {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:9px 0;
  min-height:52px
}
.option .check {
  flex:1
}
.option-help {
  font-size:.8rem;
  color:var(--muted)
}
.checkout-dialog {
  max-width:780px
}
.checkout-layout {
  display:grid;
  grid-template-columns:minmax(0,1fr) 260px;
  gap:28px
}
.checkout-summary {
  align-self:start;
  background:var(--paper);
  border-radius:12px;
  padding:16px;
  position:sticky;
  top:0
}
.checkout-summary h3 {
  font-size:1rem
}
.checkout-items li {
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap
}
.checkout-items .item-title {
  width:100%
}
.checkout-items .stepper button {
  width:44px;
  height:44px
}
.checkout-submit {
  margin-top:20px
}
.tracking-wrap {
  max-width:680px;
  margin:auto;
  padding:28px 24px 80px
}
.tracking-brand {
  margin-bottom:32px
}
.tracking-brand img {
  width:44px;
  height:44px;
  border-radius:12px
}
.tracking-header {
  padding-bottom:24px
}
.tracking-header h1 {
  font-size:2.4rem;
  margin:12px 0
}
.status-hero {
  background:var(--green);
  color:white;
  padding:26px;
  border-radius:16px;
  margin-bottom:20px
}
.status-hero h2 {
  margin:8px 0 12px;
  font-size:1.55rem
}
.status-hero p {
  margin:0;
  opacity:.82
}
.timeline {
  list-style:none;
  padding:0;
  margin:0
}
.timeline li {
  display:flex;
  gap:16px;
  position:relative;
  padding:12px 0
}
.timeline li:before {
  content:"";
  display:block;
  background:var(--ui-dot, #80a28c);
  border:4px solid var(--ui-dot-ring, #e8f0e7);
  width:16px;
  height:16px;
  border-radius:50%;
  margin-top:2px;
  flex-shrink:0
}
.timeline li:not(:last-child):after {
  content:"";
  position:absolute;
  left:7px;
  top:30px;
  bottom:-12px;
  border-left:2px solid var(--line)
}
.timeline time {
  display:block;
  font-size:.8rem;
  color:var(--muted);
  margin-top:3px
}
.pix-card {
  text-align:center
}
.pix-qr {
  width:220px;
  height:220px;
  object-fit:contain;
  display:block;
  margin:16px auto
}
.pix-code {
  word-break:break-all;
  font-size:.75rem;
  max-height:85px;
  overflow:auto;
  background:var(--paper);
  padding:12px;
  border-radius:8px;
  user-select:all
}
.countdown {
  font-variant-numeric:tabular-nums;
  font-weight:700
}
.panel-page {
  --brand:#255640;
  --brand-ink:white;
  background:#f3f5f0
}
.panel-shell {
  display:grid;
  grid-template-columns:220px minmax(0,1fr);
  min-height:100dvh
}
.sidebar {
  background:#182e26;
  color:#dce5da;
  padding:28px 16px;
  display:flex;
  flex-direction:column;
  position:fixed;
  inset:0 auto 0 0;
  width:220px;
  z-index:50
}
.sidebar .wordmark {
  color:white;
  padding:0 10px;
  margin-bottom:40px
}
.sidebar nav {
  display:grid;
  gap:5px
}
.nav-button {
  text-align:left;
  min-height:48px;
  padding:12px;
  border-radius:9px;
  background:transparent;
  color:#b9cbbf;
  display:flex;
  gap:12px;
  align-items:center;
  font-size:.89rem;
  font-weight:600
}
.nav-button:hover {
  background:#ffffff0d;
  color:white
}
.nav-button.active {
  background:#365044;
  color:white
}
.nav-icon {
  width:24px;
  font-size:1.12rem;
  text-align:center
}
.sidebar-bottom {
  margin-top:auto;
  padding-top:32px
}
.sidebar-user {
  font-size:.85rem;
  padding:14px 12px;
  border-top:1px solid #ffffff18
}
.sidebar-user small {
  display:block;
  margin-top:5px;
  color:#a1b7a6
}
.panel-main {
  grid-column:2;
  min-width:0
}
.panel-top {
  background:#fff;
  border-bottom:1px solid var(--line);
  padding:15px 28px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  min-height:78px
}
.panel-top h2 {
  font-size:1rem;
  margin:0 0 5px
}
.panel-top .badge {
  font-size:.7rem
}
.panel-content {
  padding:28px;
  min-width:0
}
.page-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  margin-bottom:24px;
  flex-wrap:wrap
}
.page-heading h1 {
  font-size:1.9rem;
  margin:0 0 8px
}
.page-heading p {
  margin:0;
  font-size:.85rem;
  color:var(--muted)
}
.toolbar {
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap
}
.toolbar input,.toolbar select {
  min-height:44px;
  border:1px solid var(--line);
  border-radius:8px;
  padding:10px 12px;
  background:var(--ui-field-bg, white);
  color:var(--ink);
  max-width:100%
}
.connection {
  font-size:.76rem;
  display:flex;
  align-items:center;
  gap:7px
}
.connection:before {
  content:"";
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--green)
}
.connection.offline:before {
  background:var(--red)
}
.connection.reconnecting:before,
.connection.connecting:before {
  background:#bd8a29
}
.kanban {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
  align-items:start
}
.kanban-column {
  background:#e8ece5;
  border-radius:13px;
  padding:12px;
  min-width:0;
  min-height:280px
}
.column-title {
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:.83rem;
  padding:3px 3px 15px;
  font-weight:750
}
.column-title span {
  background:#ffffffb3;
  padding:3px 8px;
  border-radius:6px;
  font-size:.75rem
}
.order-card {
  border:1px solid #dbe2d6;
  background:#fff;
  border-radius:11px;
  padding:15px;
  margin-bottom:10px;
  box-shadow:0 2px 3px #20362903
}
.order-card.new-order {
  border-top:3px solid #507f57
}
.order-card.warning {
  border-top:3px solid #d39b3d
}
.order-card.late {
  border-top:3px solid #c54747
}
.order-card .number {
  font-size:1.15rem;
  font-weight:850
}
.order-card .elapsed {
  font-size:.75rem;
  color:var(--muted);
  font-variant-numeric:tabular-nums
}
.order-card h3 {
  font-size:.9rem;
  margin:14px 0 8px;
  overflow-wrap:anywhere
}
.order-card p {
  font-size:.75rem;
  color:var(--muted);
  margin:0 0 10px;
  overflow-wrap:anywhere
}
.order-card .button {
  padding:10px 8px;
  width:100%;
  font-size:.8rem;
  margin-top:12px
}
.order-card .badge {
  font-size:.65rem
}
.order-card .detail-button {
  display:block;
  width:100%;
  text-align:left;
  background:none;
  color:inherit;
  padding:0;
  min-height:44px
}
.order-card .detail-button:hover .number {
  text-decoration:underline
}
.order-card .card-bottom {
  display:flex;
  justify-content:space-between;
  gap:8px;
  font-size:.9rem;
  font-weight:750
}
.closed-orders {
  margin-top:24px;
  display:grid;
  gap:12px
}
.closed-orders details {
  background:var(--ui-card, white);
  border:1px solid var(--line);
  border-radius:12px;
  padding:0 16px
}
.closed-orders summary {
  padding:16px 0;
  min-height:52px;
  cursor:pointer;
  font-size:.9rem;
  font-weight:700
}
.closed-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px
}
.login-wrap {
  display:grid;
  grid-template-columns:1fr 1fr;
  min-height:100dvh
}
.login-story {
  background:#182e26;
  color:#fff;
  padding:60px;
  display:flex;
  flex-direction:column;
  justify-content:space-between
}
.login-story h1 {
  font-size:clamp(2.5rem,4vw,4.3rem);
  margin-bottom:20px
}
.login-story p {
  color:#b8ccba;
  max-width:390px
}
.login-story .eyebrow {
  color:#b2c795
}
.login-main {
  display:flex;
  align-items:center;
  justify-content:center;
  padding:32px
}
.login-form {
  width:100%;
  max-width:370px
}
.login-form h2 {
  font-size:1.8rem
}
.login-form>.muted {
  margin-bottom:28px
}
.section-card {
  max-width:1000px;
  margin-bottom:24px
}
.section-card h2 {
  font-size:1.15rem;
  margin-bottom:20px
}
.table-wrap {
  position:relative; /* FIX-010: o .sr-only da tabela fica dentro da caixa que rola, não alarga a página */
  width:100%;
  overflow:auto;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--ui-card, white)
}
table {
  border-collapse:collapse;
  width:100%;
  font-size:.85rem
}
th,td {
  padding:14px 18px;
  text-align:left;
  border-bottom:1px solid var(--line);
  vertical-align:middle
}
th {
  font-size:.72rem;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:var(--muted);
  background:var(--ui-th-bg, #f8faf5)
}
td .row {
  flex-wrap:nowrap
}
td img {
  width:44px;
  height:44px;
  border-radius:8px
}
.table-wrap .button {
  padding:8px 12px
}
.category-admin {
  margin-bottom:20px
}
.category-admin>header {
  padding:16px 20px;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap
}
.category-admin h2 {
  font-size:1.05rem;
  margin:0
}
.admin-product {
  padding:12px 20px;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap
}
.admin-product:last-child {
  border-bottom:0
}
.admin-product img {
  width:52px;
  height:52px;
  border-radius:10px
}
.admin-product strong {
  font-size:.9rem
}
.admin-product small {
  display:block;
  margin-top:5px;
  color:var(--muted)
}
.editor-group {
  padding:16px;
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:12px;
  margin-bottom:16px
}
.option-editor {
  display:grid;
  grid-template-columns:1fr 120px 44px;
  gap:10px;
  align-items:end;
  margin:12px 0
}
.option-editor .field {
  margin-bottom:0
}
.upload-preview {
  max-width:100%;
  height:120px;
  border-radius:12px;
  margin-bottom:12px
}
.hours-day {
  padding:12px 0;
  border-bottom:1px solid var(--line)
}
.hours-day>strong {
  font-size:.9rem;
  display:inline-block;
  width:110px
}
.hours-interval {
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin:5px 8px 5px 0
}
.hours-interval input {
  min-height:44px;
  border:1px solid var(--line);
  border-radius:8px;
  padding:8px;
  max-width:125px
}
.zone-card {
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:12px;
  padding:16px;
  margin-bottom:12px
}
.metrics {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
  margin-bottom:24px
}
.metric {
  background:var(--ui-card, #fff);
  border:1px solid var(--line);
  border-radius:13px;
  padding:22px
}
.metric p {
  font-size:.8rem;
  color:var(--muted);
  margin-bottom:12px
}
.metric strong {
  font-size:1.8rem;
  letter-spacing:-.04em
}
.report-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px
}
.chart {
  width:100%;
  height:auto;
  max-height:240px;
  overflow:visible
}
.chart text {
  fill:var(--muted);
  font-family:inherit;
  font-size:10px
}
.chart rect {
  fill:var(--green)
}
.report-grid .card {
  min-width:0
}
.report-grid h2 {
  font-size:1rem
}
.mobile-menu {
  display:none
}
.address-text {
  white-space:pre-line;
  overflow-wrap:anywhere
}
.saved-bar {
  position:sticky;
  bottom:12px;
  padding:12px 16px;
  background:var(--ui-card, #fff);
  border:1px solid var(--line);
  border-radius:12px;
  box-shadow:var(--shadow);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  z-index:10
}
.inline-error {
  color:var(--red);
  font-size:.85rem
}
.payment-settings {
  border:1px solid var(--line);
  padding:18px;
  border-radius:12px;
  margin-top:20px
}
.progress-note {
  font-size:.85rem;
  color:var(--muted)
}
@media(min-width:1600px) {
  .kanban {
    gap:22px
  }
  .order-card {
    padding:20px
  }
  .panel-content {
    padding:36px
  }
  .sidebar {
    width:240px
  }
  .panel-shell {
    grid-template-columns:240px minmax(0,1fr)
  }
}
@media(max-width:1200px) {
  .panel-shell {
    grid-template-columns:190px minmax(0,1fr)
  }
  .sidebar {
    width:190px
  }
  .panel-content {
    padding:20px
  }
  .panel-top {
    padding-inline:20px
  }
  .kanban {
    gap:10px
  }
  .kanban-column {
    padding:8px
  }
  .order-card {
    padding:12px
  }
  .closed-grid {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .landing-main {
    gap:40px
  }
}
@media(max-width:1000px) {
  .kanban {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .kanban-column {
    min-height:220px
  }
  .metrics {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .panel-top>.row {
    gap:6px
  }
  .panel-top .button {
    padding:10px
  }
  .landing-main {
    gap:28px
  }
  .preview-receipt {
    padding:22px
  }
  .report-grid {
    grid-template-columns:1fr
  }
}
@media(max-width:760px) {
  .wrap {
    padding-inline:22px
  }
  .landing-nav {
    padding-top:22px
  }
  .landing-nav .button {
    font-size:.8rem;
    padding:10px 12px
  }
  .landing-main {
    grid-template-columns:1fr;
    padding-top:60px;
    gap:40px
  }
  .landing-copy h1 {
    font-size:3.4rem
  }
  .landing-preview {
    transform:none;
    max-width:480px
  }
  .store-cover {
    height:160px
  }
  .store-wrap {
    padding-inline:18px
  }
  .store-header h1 {
    font-size:1.7rem
  }
  .store-meta {
    gap:10px
  }
  .product-grid {
    grid-template-columns:1fr;
    gap:12px
  }
  .product-card {
    min-height:142px;
    padding:16px
  }
  .product-card img {
    width:96px;
    height:96px
  }
  .category-scroll :is(a,button) {
    padding-inline:12px
  }
  .checkout-layout {
    grid-template-columns:1fr;
    gap:18px
  }
  .checkout-summary {
    position:static
  }
  .checkout-dialog,dialog {
    max-width:100%;
    max-height:94dvh;
    margin: auto 0 0;
    width:100%;
    border-radius:20px 20px 0 0
  }
  .modal-head,.modal-body,.modal-footer {
    padding:18px
  }
  .product-hero {
    height:180px
  }
  .sheet {
    width:100%;
    height:94dvh;
    max-height:94dvh
  }
  .tracking-wrap {
    padding-inline:18px
  }
  .panel-shell {
    display:block
  }
  .panel-main {
    width:100%
  }
  .sidebar {
    transform:translateX(-100%);
    transition:transform .2s;
    width:240px;
    box-shadow:var(--shadow)
  }
  .sidebar.open {
    transform:none
  }
  .mobile-menu {
    display:inline-flex
  }
  .panel-top {
    padding:12px 16px;
    flex-wrap:wrap
  }
  .panel-top>.row:last-child {
    width:100%;
    justify-content:flex-end
  }
  .panel-content {
    padding:20px 16px
  }
  .page-heading h1 {
    font-size:1.6rem
  }
  .toolbar {
    width:100%
  }
  .toolbar .search-input {
    flex:1;
    min-width:130px
  }
  .kanban {
    gap:10px
  }
  .order-card {
    padding:12px
  }
  .column-title {
    font-size:.76rem
  }
  .login-wrap {
    grid-template-columns:1fr
  }
  .login-story {
    padding:28px;
    min-height:auto;
    gap:30px
  }
  .login-story h1 {
    font-size:2.3rem;
    margin-bottom:8px
  }
  .login-story p {
    margin-bottom:0
  }
  .login-story footer {
    display:none
  }
  .login-main {
    padding:30px 24px
  }
  .login-form {
    max-width:440px
  }
  .toasts {
    bottom:16px;
    right:16px
  }
  .form-grid {
    grid-template-columns:1fr
  }
  .option-editor {
    grid-template-columns:1fr 100px 44px
  }
  .section-card {
    padding:18px
  }
  .admin-product {
    padding:12px
  }
  .admin-product>.row {
    width:100%;
    justify-content:flex-end
  }
  .category-admin>header {
    padding:12px
  }
  .hours-day>strong {
    display:block;
    margin-bottom:8px
  }
  .metrics {
    gap:10px
  }
  .metric {
    padding:16px
  }
  .metric strong {
    font-size:1.5rem
  }
  .table-wrap {
    border:0
  }
  th,td {
    padding:12px
  }
  .saved-bar {
    align-items:flex-start
  }
  .saved-bar .muted {
    font-size:.8rem
  }
}
@media(max-width:420px) {
  .kanban {
    grid-template-columns:1fr
  }
  .closed-grid {
    grid-template-columns:1fr
  }
  .kanban-column {
    min-height:120px
  }
  .landing-copy h1 {
    font-size:3rem
  }
  .preview-top {
    flex-wrap:wrap
  }
  .product-card {
    gap:10px
  }
  .product-card img {
    width:86px;
    height:86px
  }
  .panel-top .button {
    font-size:.78rem
  }
  .panel-top .badge {
    font-size:.65rem
  }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    animation:none!important;
    transition:none!important;
    scroll-behavior:auto!important
  }
}

/* Barra de operação: busca flexível sem empilhar controles no desktop. */
.orders-toolbar {
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  margin-bottom:22px
}
.orders-toolbar input { width:100%; min-width:0 }
.orders-toolbar .search-input { min-width:0 }
.orders-toolbar .button { white-space:nowrap; padding-inline:12px }
.order-card .card-bottom { flex-wrap:wrap; gap:8px }
@media(max-width:767px) {
  .orders-toolbar { grid-template-columns:minmax(0,1fr) auto }
  #orders-date { grid-column:1; grid-row:1 }
  #reload-orders { grid-column:2; grid-row:1 }
  #orders-search { grid-column:1 / -1; grid-row:2 }
}

/* Fontes do cardápio servidas pelo OPA.MENU (assets/fonts, licença OFL; 06/11/2026). Só baixam se a loja escolher a fonte. */
@font-face { font-family: "OPA Playfair Display"; src: url("../fonts/playfair-display.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "OPA Lora"; src: url("../fonts/lora.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "OPA Montserrat"; src: url("../fonts/montserrat.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "OPA Oswald"; src: url("../fonts/oswald.woff2") format("woff2"); font-weight: 200 700; font-style: normal; font-display: swap; }
@font-face { font-family: "OPA Nunito"; src: url("../fonts/nunito.woff2") format("woff2"); font-weight: 200 1000; font-style: normal; font-display: swap; }
@font-face { font-family: "OPA Inter"; src: url("../fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "OPA DM Sans"; src: url("../fonts/dm-sans.woff2") format("woff2"); font-weight: 100 1000; font-style: normal; font-display: swap; }
