@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
    --paper: #F3EFE4;
    --paper-dark: #E8E1D0;
    --ink: #201D18;
    --ink-soft: #5C564A;
    --stamp: #C1432A;
    --stamp-dark: #9E3520;
    --sage: #4B6B4F;
    --line: #D8D0BC;
    --white: #FCFAF4;
    --radius: 4px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 28px;
}

h1, h2, h3, .display {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    line-height: 1.02;
    margin: 0;
}

.mono {
    font-family: 'IBM Plex Mono', monospace;
}

a { color: inherit; }

/* ---------------- Header ---------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(243, 239, 228, 0.92);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--line);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.logo {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 22px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo .dot { color: var(--stamp); }

.nav-links {
    display: flex;
    gap: 28px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-soft);
}

.nav-links a:hover { color: var(--ink); }

/* ---------------- Buttons ---------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 15px;
    padding: 13px 24px;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.btn-primary {
    background: var(--stamp);
    color: var(--white);
}
.btn-primary:hover { background: var(--stamp-dark); transform: translateY(-1px); }

.btn-ghost {
    background: transparent;
    border-color: var(--ink);
    color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-block { width: 100%; }

/* ---------------- Hero ---------------- */
.hero {
    padding: 76px 0 96px;
}

.hero .container {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
}

.eyebrow {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--stamp);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.eyebrow::before {
    content: '';
    width: 22px;
    height: 2px;
    background: var(--stamp);
}

.hero h1 {
    font-size: 64px;
    margin-bottom: 20px;
}

.hero h1 span { color: var(--stamp); }

.hero-sub {
    font-size: 18px;
    color: var(--ink-soft);
    max-width: 460px;
    margin-bottom: 32px;
}

.hero-ctas {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.hero-note {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    color: var(--ink-soft);
}

/* ---------------- Comanda (signature hero element) ---------------- */
.comanda-wrap {
    display: flex;
    justify-content: center;
    perspective: 1200px;
}

.comanda {
    background: var(--white);
    width: 100%;
    max-width: 340px;
    padding: 26px 26px 22px;
    border-radius: 2px;
    box-shadow: 0 30px 60px -20px rgba(32, 29, 24, 0.35), 0 2px 0 var(--line);
    transform: rotate(3deg);
    position: relative;
    animation: comanda-in 0.9s cubic-bezier(.2,.8,.2,1) both;
}

.comanda::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 14px;
    background:
        linear-gradient(135deg, var(--paper) 50%, transparent 50%) 0 50%,
        linear-gradient(-135deg, var(--paper) 50%, transparent 50%) 0 50%;
    background-size: 14px 14px;
    background-repeat: repeat-x;
}

@keyframes comanda-in {
    0% { opacity: 0; transform: rotate(3deg) translateY(24px); }
    100% { opacity: 1; transform: rotate(3deg) translateY(0); }
}

.comanda-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    color: var(--ink-soft);
    border-bottom: 1px dashed var(--line);
    padding-bottom: 12px;
    margin-bottom: 12px;
}

.comanda-head strong { color: var(--ink); font-size: 14px; }

.comanda-item {
    display: flex;
    justify-content: space-between;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    padding: 5px 0;
    opacity: 0;
    animation: item-in 0.4s ease forwards;
}

.comanda-item:nth-child(1) { animation-delay: .5s; }
.comanda-item.i2 { animation-delay: .68s; }
.comanda-item.i3 { animation-delay: .86s; }

@keyframes item-in {
    from { opacity: 0; transform: translateX(-6px); }
    to { opacity: 1; transform: translateX(0); }
}

.comanda-total {
    border-top: 1px dashed var(--line);
    margin-top: 10px;
    padding-top: 12px;
}

.comanda-total .row {
    display: flex;
    justify-content: space-between;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    margin-bottom: 4px;
    color: var(--ink-soft);
}

.comanda-total .row.total {
    color: var(--ink);
    font-weight: 600;
    font-size: 16px;
}

.stamp-badge {
    margin-top: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 2.5px solid var(--sage);
    color: var(--sage);
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 700;
    font-size: 13px;
    padding: 5px 12px;
    border-radius: 40px;
    transform: rotate(-6deg) scale(0.8);
    opacity: 0;
    animation: stamp-in .4s ease 1.05s forwards;
}

@keyframes stamp-in {
    to { transform: rotate(-6deg) scale(1); opacity: 1; }
}

/* ---------------- Sections ---------------- */
section { padding: 88px 0; }

.section-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--stamp);
    margin-bottom: 12px;
}

.section-title {
    font-size: 40px;
    max-width: 640px;
    margin-bottom: 48px;
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-tag {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 24px;
    position: relative;
}

.feature-tag::before {
    content: attr(data-tag);
    position: absolute;
    top: -11px;
    left: 22px;
    background: var(--ink);
    color: var(--paper);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.08em;
    padding: 3px 10px;
    border-radius: 30px;
}

.feature-tag h3 {
    font-size: 22px;
    margin: 12px 0 10px;
}

.feature-tag p {
    color: var(--ink-soft);
    font-size: 15px;
    margin: 0;
}

/* ---------------- Como funciona (sequence) ---------------- */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    counter-reset: step;
}

.step {
    padding: 0 20px 0 0;
    border-left: 2px solid var(--line);
    padding-left: 20px;
    position: relative;
}

.step:first-child { border-left: 2px solid var(--stamp); }

.step-num {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 600;
    font-size: 13px;
    color: var(--stamp);
    margin-bottom: 14px;
}

.step h4 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 20px;
    margin: 0 0 8px;
}

.step p {
    color: var(--ink-soft);
    font-size: 14px;
    margin: 0;
}

/* ---------------- Planos ---------------- */
.planos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.plano-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px 28px;
    position: relative;
}

.plano-card.destaque {
    border: 2px solid var(--stamp);
    transform: translateY(-8px);
}

.plano-badge {
    position: absolute;
    top: -13px;
    right: 24px;
    background: var(--stamp);
    color: var(--white);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 4px 12px;
    border-radius: 30px;
    transform: rotate(3deg);
}

.plano-nome {
    font-family: 'IBM Plex Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 13px;
    color: var(--ink-soft);
    font-weight: 600;
}

.plano-preco {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 46px;
    margin: 10px 0 4px;
}

.plano-preco small {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: var(--ink-soft);
    text-transform: none;
}

.plano-lista {
    list-style: none;
    padding: 0;
    margin: 22px 0 26px;
    font-size: 14px;
}

.plano-lista li {
    display: flex;
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px dashed var(--line);
    color: var(--ink-soft);
}

.plano-lista li:last-child { border-bottom: none; }

.plano-lista .check { color: var(--sage); font-weight: 700; }

/* ---------------- CTA final ---------------- */
.cta-final {
    background: var(--ink);
    color: var(--paper);
    text-align: center;
    border-radius: 6px;
    padding: 64px 40px;
    margin: 0 28px;
}

.cta-final h2 { color: var(--paper); font-size: 40px; margin-bottom: 14px; }
.cta-final p { color: #C9C2AE; margin-bottom: 30px; font-size: 16px; }

/* ---------------- Footer ---------------- */
footer {
    padding: 40px 0;
    border-top: 1px solid var(--line);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    color: var(--ink-soft);
    display: flex;
    justify-content: space-between;
}

/* ---------------- Cadastro (signup) ---------------- */
.cadastro-wrap {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.cadastro-side {
    background: var(--ink);
    color: var(--paper);
    padding: 56px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cadastro-side .logo { color: var(--paper); }
.cadastro-side .logo .dot { color: var(--stamp); }

.cadastro-side blockquote {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 30px;
    line-height: 1.15;
    margin: 0;
    max-width: 420px;
}

.cadastro-side .trial-note {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    color: #C9C2AE;
}

.cadastro-form-col {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 40px;
}

.cadastro-form {
    width: 100%;
    max-width: 400px;
}

.cadastro-form h2 { font-size: 30px; margin-bottom: 6px; }
.cadastro-form .sub { color: var(--ink-soft); font-size: 14px; margin-bottom: 30px; }

.field { margin-bottom: 18px; }

.field label {
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ink-soft);
    margin-bottom: 6px;
}

.field input, .field select, .field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: var(--ink);
    transition: border-color .15s ease;
}

.field textarea { resize: vertical; }

.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--stamp);
}

.carrinho-item-obs {
    font-size: 12px;
    color: var(--ink-soft);
    margin-top: 2px;
    display: flex;
    align-items: flex-start;
    gap: 4px;
}

.plano-select {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.plano-opt {
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    padding: 10px 8px;
    text-align: center;
    cursor: pointer;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
}

.plano-opt input { display: none; }

.plano-opt.checked, .plano-opt:has(input:checked) {
    border-color: var(--stamp);
    background: #FBEDE8;
}

.form-error {
    background: #FBEDE8;
    border: 1px solid var(--stamp);
    color: var(--stamp-dark);
    font-size: 14px;
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.form-success {
    background: #EAF1EA;
    border: 1px solid var(--sage);
    color: var(--sage);
    font-size: 14px;
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.login-hint {
    margin-top: 22px;
    font-size: 13px;
    color: var(--ink-soft);
    text-align: center;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 860px) {
    .hero .container { grid-template-columns: 1fr; }
    .comanda-wrap { order: -1; }
    .hero h1 { font-size: 44px; }
    .features { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .step { border-left: 2px solid var(--stamp); padding: 20px 0 20px 20px; }
    .planos-grid { grid-template-columns: 1fr; }
    .plano-card.destaque { transform: none; }
    .cadastro-wrap { grid-template-columns: 1fr; }
    .cadastro-side { display: none; }
    .plano-select { grid-template-columns: 1fr; }
}

/* =====================================================================
   APP INTERNO (admin, PDV, cardápio público) — reaproveita os tokens
   e componentes (.btn, .field, .form-error, .form-success) já definidos
   acima para manter a mesma identidade visual do site público.
   ===================================================================== */

.app-body { background: var(--paper-dark); }

.app-shell {
    display: flex;
    min-height: 100vh;
}

.app-sidebar {
    width: 220px;
    flex-shrink: 0;
    background: var(--ink);
    color: var(--paper);
    padding: 28px 20px;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
}

.app-sidebar .logo { color: var(--paper); font-size: 20px; }
.app-sidebar .logo .dot { color: var(--stamp); }

.app-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 8px;
    flex: 1;
}

.app-nav a {
    text-decoration: none;
    color: #C9C2AE;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 12px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-icon {
    display: inline-flex;
    width: 20px;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.app-nav a:hover { background: rgba(255,255,255,0.06); color: var(--paper); }
.app-nav a.active { background: var(--stamp); color: var(--white); }

.app-sidebar-footer { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 16px; }

.btn-menu-mobile {
    display: none;
    background: none;
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    width: 36px; height: 36px;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--ink);
    flex-shrink: 0;
    cursor: pointer;
}

.app-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(32,29,24,0.5);
    z-index: 89;
}
.app-sidebar-overlay.aberto { display: block; }

.app-main {
    flex: 1;
    min-width: 0;
}

.app-topbar {
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 22px 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.app-title {
    font-size: 26px;
}

.app-content { padding: 32px 36px 60px; }

.alert-limite {
    background: #FBEDE8;
    border-bottom: 1px solid var(--stamp);
    color: var(--stamp-dark);
    padding: 12px 36px;
    font-size: 14px;
}
.alert-limite a { color: var(--stamp-dark); font-weight: 700; }

.panel {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.panel-head h2 { font-size: 20px; }

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table th {
    text-align: left;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ink-soft);
    border-bottom: 1.5px solid var(--line);
    padding: 8px 10px;
}

.data-table td {
    padding: 10px 10px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}

.data-table tr:last-child td { border-bottom: none; }

.data-table .num { font-family: 'IBM Plex Mono', monospace; text-align: right; }

.row-actions { display: flex; gap: 8px; }
.row-actions a, .row-actions button { font-size: 13px; }

.btn-danger { background: transparent; border: 1.5px solid var(--stamp); color: var(--stamp); }
.btn-danger:hover { background: var(--stamp); color: var(--white); }

.link-btn {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: var(--ink-soft);
    text-decoration: underline;
    cursor: pointer;
}
.link-btn:hover { color: var(--stamp); }

.empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--ink-soft);
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; }

.kpi {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
}
.kpi .label { font-family: 'IBM Plex Mono', monospace; font-size: 11px; text-transform: uppercase; color: var(--ink-soft); letter-spacing: .05em; }
.kpi .value { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 32px; margin-top: 6px; }
.kpi .value.positivo { color: var(--sage); }
.kpi .value.negativo { color: var(--stamp); }

.badge-status {
    display: inline-block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 30px;
}
.badge-novo { background: #FBEDE8; color: var(--stamp-dark); }
.badge-aceito { background: #FDF3DE; color: #8A6116; }
.badge-preparo { background: #FDF3DE; color: #8A6116; }
.badge-saiu_entrega { background: #E4ECF7; color: #2E5490; }
.badge-finalizado { background: #EAF1EA; color: var(--sage); }
.badge-cancelado { background: #EFEBE3; color: var(--ink-soft); }

.tabs { display: flex; gap: 6px; margin-bottom: 20px; flex-wrap: wrap; }
.tab {
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 30px;
    background: var(--white);
    border: 1px solid var(--line);
    color: var(--ink-soft);
}
.tab.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.ficha-row { display: grid; grid-template-columns: 2fr 1fr 32px; gap: 10px; align-items: center; margin-bottom: 10px; }

/* ---------------- Kanban de pedidos ---------------- */
.kanban-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    align-items: start;
}

.kanban-col {
    background: var(--paper-dark);
    border-radius: 12px;
    padding: 14px;
    min-height: 200px;
    border-top: 4px solid var(--line);
    transition: background .15s ease;
}
.kanban-col[data-coluna="novo"] { background: #FBEDE8; border-top-color: var(--stamp); }
.kanban-col[data-coluna="producao"] { background: #FDF3DE; border-top-color: #C98A1F; }
.kanban-col[data-coluna="entrega"] { background: #E4ECF7; border-top-color: #2E5490; }

.kanban-col[data-coluna="novo"] .kanban-count { color: var(--stamp-dark); }
.kanban-col[data-coluna="producao"] .kanban-count { color: #8A6116; }
.kanban-col[data-coluna="entrega"] .kanban-count { color: #2E5490; }
.kanban-col.drag-over { background: #EFE6D3; outline: 2px dashed var(--stamp); outline-offset: -4px; }

.kanban-col-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 6px 14px;
}
.kanban-col-head h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 17px;
    letter-spacing: .02em;
}
.kanban-count {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    font-weight: 700;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 30px;
    padding: 2px 10px;
}

.kanban-cards { display: flex; flex-direction: column; gap: 10px; min-height: 60px; }

.kanban-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 14px;
    cursor: grab;
    transition: box-shadow .15s ease, transform .15s ease;
}
.kanban-card:active { cursor: grabbing; }
.kanban-card:hover { box-shadow: 0 10px 22px -14px rgba(32,29,24,0.4); }
.kanban-card.dragging { opacity: 0.4; }

.kanban-card-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.kanban-card-head .num-pedido { font-family: 'IBM Plex Mono', monospace; font-weight: 700; font-size: 14px; }
.kanban-card-head .hora { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--ink-soft); }

.kanban-card .cliente { font-size: 14px; font-weight: 600; margin-bottom: 4px; }

/* Cronômetro bem chamativo: badge sólida colorida (não só texto), fica
   mais forte e pulsando nos últimos 2 minutos pra ninguém deixar passar. */
.kanban-timer {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: 'IBM Plex Mono', monospace; font-size: 13px; font-weight: 800;
    color: var(--white);
    background: #8A6116;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}
.kanban-timer.kanban-timer-urgente {
    background: var(--stamp);
    animation: kanban-timer-pulso 1s ease-in-out infinite;
}
@keyframes kanban-timer-pulso {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}
.kanban-card.kanban-card-urgente {
    border-color: var(--stamp);
    box-shadow: 0 0 0 3px rgba(193,67,42,0.18);
}
.kanban-card .itens-resumo { font-size: 12px; color: var(--ink-soft); margin-bottom: 8px; line-height: 1.5; }
.kanban-card .total { font-family: 'IBM Plex Mono', monospace; font-weight: 700; font-size: 14px; margin-bottom: 10px; }

.kanban-origem {
    display: inline-block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 30px;
    background: var(--paper-dark);
    color: var(--ink-soft);
    margin-bottom: 8px;
}

.kanban-card-acoes { display: flex; flex-wrap: wrap; gap: 6px; }
.kanban-btn {
    flex: 1;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    padding: 7px 8px;
    border-radius: 6px;
    border: 1.5px solid var(--line);
    background: var(--white);
    color: var(--ink);
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}
.kanban-btn:hover { border-color: var(--stamp); color: var(--stamp); }
.kanban-btn.avancar { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.kanban-btn.avancar:hover { background: var(--stamp); border-color: var(--stamp); color: var(--white); }
.kanban-btn.finalizar { background: var(--sage); color: var(--white); border-color: var(--sage); }
.kanban-btn.cancelar { flex: 0 0 auto; padding: 7px 10px; color: var(--stamp); }

.kanban-empty { color: var(--ink-soft); font-size: 13px; text-align: center; padding: 24px 10px; }

@media (max-width: 900px) {
    .kanban-board { grid-template-columns: 1fr; }
}

/* ---------------- Carrinho (cardápio público / PDV) ---------------- */
.catalogo-layout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }

.secao-categoria h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
}
.secao-categoria h3::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--line);
}

/* Card clicável de produto (estilo iFood: texto à esquerda, foto à direita) */
.produto-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.produto-card:hover {
    box-shadow: 0 10px 24px -14px rgba(32,29,24,0.35);
    border-color: #CDC4AC;
}
.produto-card-info { flex: 1; min-width: 0; }
.produto-card-info h4 { font-family:'Inter',sans-serif; font-weight:700; text-transform:none; font-size: 16px; margin: 0 0 4px; }
.produto-card-info p {
    color: var(--ink-soft); font-size: 13px; margin: 0 0 8px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.produto-card-info .preco { font-family: 'IBM Plex Mono', monospace; font-weight: 600; }
.produto-card-thumb-wrap { position: relative; flex-shrink: 0; }
.produto-card-thumb {
    width: 88px; height: 88px; object-fit: cover; border-radius: 10px;
    transition: transform .25s ease;
}
.produto-card:hover .produto-card-thumb { transform: scale(1.04); }
.produto-card-thumb-placeholder {
    width: 88px; height: 88px; border-radius: 10px;
    background: var(--paper-dark);
    display: flex; align-items: center; justify-content: center;
    font-size: 26px;
}
.produto-card-add {
    position: absolute; right: -6px; bottom: -6px;
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--stamp); color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 17px;
    box-shadow: 0 3px 8px rgba(32,29,24,0.3);
    border: 2px solid var(--white);
}

/* ---------------- Modal de produto (estilo iFood) ---------------- */
.modal-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(32,29,24,0.55);
    z-index: 60;
}
.modal-overlay.aberto { display: block; }

.modal-produto {
    display: none;
    position: fixed;
    z-index: 61;
    background: var(--white);
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    width: 92%; max-width: 480px;
    max-height: 88vh;
    border-radius: 16px;
    overflow: hidden;
    display: none;
    flex-direction: column;
}
.modal-produto.aberto { display: flex; }

.modal-imagem-wrap { position: relative; flex-shrink: 0; background: var(--paper-dark); }
.modal-imagem-wrap img { width: 100%; height: 180px; object-fit: cover; display: block; }
.modal-imagem-placeholder { width: 100%; height: 140px; display: flex; align-items: center; justify-content: center; font-size: 42px; }
.modal-fechar {
    position: absolute; top: 12px; right: 12px;
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(32,29,24,0.65); color: var(--white);
    border: none; font-size: 16px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}

.modal-corpo { padding: 20px; overflow-y: auto; flex: 1; }
.modal-corpo h2 { font-size: 24px; margin-bottom: 6px; }
.modal-corpo .modal-descricao { color: var(--ink-soft); font-size: 14px; margin-bottom: 10px; }
.modal-corpo .modal-preco-base { font-family: 'IBM Plex Mono', monospace; font-weight: 700; font-size: 17px; }

.modal-grupo { margin-top: 22px; }
.modal-grupo-head { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 4px; }
.modal-grupo-head .nome-grupo { font-weight: 700; font-size: 15px; }
.modal-grupo-head .regra-grupo { font-size: 12px; color: var(--ink-soft); }
.modal-grupo-head .obrigatorio-tag { color: var(--stamp); font-family:'IBM Plex Mono',monospace; font-size:11px; font-weight:700; text-transform:uppercase; }

.modal-item-linha { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--line); gap: 10px; }
.modal-item-linha:last-child { border-bottom: none; }
.modal-item-info { flex: 1; min-width: 0; }
.modal-item-info .nome-item { font-size: 14px; font-weight: 600; }
.modal-item-info .preco-item { font-size: 12px; color: var(--ink-soft); font-family: 'IBM Plex Mono', monospace; }

.stepper-mini { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.stepper-mini button {
    width: 28px; height: 28px; border-radius: 50%;
    border: 1.5px solid var(--line); background: var(--white);
    font-weight: 700; font-size: 16px; cursor: pointer; line-height: 1;
}
.stepper-mini button:hover:not(:disabled) { border-color: var(--stamp); color: var(--stamp); }
.stepper-mini button:disabled { opacity: 0.35; cursor: not-allowed; }
.stepper-mini .valor { font-family: 'IBM Plex Mono', monospace; font-weight: 700; min-width: 18px; text-align: center; }

.modal-rodape {
    flex-shrink: 0;
    border-top: 1px solid var(--line);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--white);
}
.modal-rodape .stepper-mini button { width: 34px; height: 34px; }
.modal-rodape .btn { flex: 1; }

@media (max-width: 640px) {
    .modal-produto {
        left: 0; right: 0; bottom: 0; top: auto; transform: none;
        width: 100%; max-width: none; max-height: 92vh;
        border-radius: 18px 18px 0 0;
    }
}

.carrinho {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 24px;
    position: sticky;
    top: 20px;
    box-shadow: 0 16px 40px -24px rgba(32,29,24,0.25);
}
.carrinho h3 {
    font-size: 20px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.carrinho-item { display: flex; justify-content: space-between; align-items:flex-start; font-size: 14px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.carrinho-item > span:first-child { padding-top: 2px; }
.carrinho-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-weight: 700;
    padding-top: 16px;
    font-size: 15px;
}
.carrinho-total span:last-child {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: var(--stamp);
}
.qty-btn { width:26px; height:26px; border-radius:50%; border:1.5px solid var(--line); background:var(--white); cursor:pointer; font-weight:700; }

/* ---------------- Cardápio público: UX melhorada ---------------- */
.cardapio-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(243, 239, 228, 0.96);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--line);
}

.loja-identidade {
    display: flex;
    align-items: center;
    gap: 12px;
}

.loja-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--white);
    box-shadow: 0 2px 6px rgba(32,29,24,0.15);
    flex-shrink: 0;
}

.loja-avatar-fallback {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--paper);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(32,29,24,0.15);
}

.loja-identidade .logo { font-size: 19px; margin-bottom: 2px; }

.loja-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    font-weight: 600;
}
.loja-status .dot-status { width: 8px; height: 8px; border-radius: 50%; }
.loja-status.aberta .dot-status { background: var(--sage); box-shadow: 0 0 0 3px rgba(75,107,79,0.15); }
.loja-status.fechada .dot-status { background: var(--stamp); box-shadow: 0 0 0 3px rgba(193,67,42,0.15); }
.loja-status.aberta { color: var(--sage); }
.loja-status.fechada { color: var(--stamp); }

.badge-frete-gratis {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
    padding: 3px 10px;
    border-radius: 30px;
    background: var(--sage);
    color: var(--white);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .02em;
    vertical-align: middle;
}

/* ---------------- Header do cardápio: topo + ações ---------------- */
.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: auto;
    padding: 16px 28px;
}

.header-acoes { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.icon-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1.5px solid var(--line);
    background: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-size: 17px;
    cursor: pointer;
    color: var(--ink);
    transition: border-color .15s ease, color .15s ease;
}
.icon-btn:hover { border-color: var(--stamp); color: var(--stamp); }

.btn-compartilhar {
    display: flex; align-items: center; gap: 6px;
    height: 40px; padding: 0 16px;
    border-radius: 30px;
    border: 1.5px solid var(--line);
    background: var(--white);
    font-size: 13px; font-weight: 700;
    cursor: pointer;
    color: var(--ink);
}
.btn-compartilhar:hover { border-color: var(--stamp); color: var(--stamp); }

.busca-expandivel { display: none; padding: 0 28px 14px; }
.busca-expandivel.aberta { display: block; }

.status-fechado-banner {
    background: #FBEDE8;
    color: var(--stamp-dark);
    font-size: 13px;
    font-weight: 600;
    padding: 10px 28px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-secundaria {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 28px;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
}
.pedido-minimo-tag {
    font-family: 'IBM Plex Mono', monospace;
    color: var(--ink-soft);
}
.btn-perfil-loja {
    background: none; border: none;
    font-size: 13px; font-weight: 700;
    color: var(--ink);
    cursor: pointer;
    display: flex; align-items: center; gap: 6px;
    text-decoration: underline;
}
.btn-perfil-loja:hover { color: var(--stamp); }

/* ---------------- Painel "Sobre a loja" ---------------- */
.painel-perfil {
    display: none;
    position: fixed;
    z-index: 61;
    background: var(--white);
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    width: 92%; max-width: 420px;
    max-height: 85vh;
    border-radius: 16px;
    overflow-y: auto;
    padding: 24px;
}
.painel-perfil.aberto { display: block; }
.painel-perfil h2 { font-size: 22px; margin-bottom: 16px; }
.painel-perfil-secao { margin-bottom: 20px; }
.painel-perfil-secao h4 {
    font-family: 'IBM Plex Mono', monospace;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: .05em;
    color: var(--ink-soft);
    margin-bottom: 8px;
}
.painel-perfil-secao p { font-size: 14px; margin: 0 0 4px; }
.linha-horario { display: flex; justify-content: space-between; font-size: 13px; padding: 4px 0; border-bottom: 1px dashed var(--line); }
.linha-horario:last-child { border-bottom: none; }
.linha-horario .fechado { color: var(--ink-soft); }

@media (max-width: 640px) {
    .header-top { padding: 14px 18px; }
    .busca-expandivel { padding: 0 18px 14px; }
    .status-fechado-banner, .info-secundaria { padding: 10px 18px; }
}

.busca-categorias {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.busca-input-wrap { position: relative; margin-bottom: 12px; }
.busca-input-wrap input {
    width: 100%;
    padding: 12px 14px 12px 38px;
    border: 1.5px solid var(--line);
    border-radius: 30px;
    background: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    box-shadow: 0 2px 8px -4px rgba(32,29,24,0.12);
}
.busca-input-wrap input:focus { outline: none; border-color: var(--stamp); box-shadow: 0 2px 12px -4px rgba(193,67,42,0.2); }
.busca-input-wrap::before {
    content: '⌕';
    position: absolute;
    left: 14px; top: 50%; transform: translateY(-50%);
    font-size: 18px; color: var(--ink-soft);
}

.chips-categoria {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
}
.chips-categoria::-webkit-scrollbar { display: none; }
.chip-categoria {
    flex-shrink: 0;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 30px;
    background: var(--white);
    border: 1px solid var(--line);
    color: var(--ink-soft);
    white-space: nowrap;
    transition: all .15s ease;
}
.chip-categoria:hover { border-color: var(--stamp); color: var(--stamp); }
.chip-categoria.active { background: var(--ink); color: var(--paper); border-color: var(--ink); box-shadow: 0 4px 12px -6px rgba(32,29,24,0.4); }

.qtd-stepper {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--paper-dark);
    border-radius: 30px;
    padding: 4px 6px;
}
.qtd-stepper button {
    width: 26px; height: 26px;
    border-radius: 50%;
    border: none;
    background: var(--white);
    border: 1.5px solid var(--line);
    font-weight: 700;
    cursor: pointer;
    font-size: 15px;
    line-height: 1;
}
.qtd-stepper button:hover { border-color: var(--stamp); color: var(--stamp); }
.qtd-stepper .qtd-valor { font-family: 'IBM Plex Mono', monospace; font-weight: 700; min-width: 16px; text-align: center; }

.toast-adicionado {
    position: fixed;
    left: 50%;
    bottom: 100px;
    transform: translateX(-50%) translateY(20px);
    background: var(--ink);
    color: var(--paper);
    font-size: 14px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 30px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
    z-index: 100;
    white-space: nowrap;
}
.toast-adicionado.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.cart-bar-mobile {
    display: none;
    position: fixed;
    left: 16px; right: 16px; bottom: 16px;
    background: var(--ink);
    color: var(--white);
    border-radius: 40px;
    padding: 14px 22px;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    box-shadow: 0 12px 30px -8px rgba(0,0,0,0.4);
    z-index: 40;
    cursor: pointer;
    border: none;
    width: calc(100% - 32px);
}
.cart-bar-mobile .badge-count {
    background: var(--stamp);
    border-radius: 50%;
    width: 22px; height: 22px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 12px;
    margin-right: 8px;
}

.carrinho-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(32,29,24,0.5);
    z-index: 49;
}

.btn-fechar-carrinho { display: none; }

@media (max-width: 900px) {
    .btn-menu-mobile { display: inline-flex; }

    .app-sidebar {
        position: fixed;
        top: 0; left: 0; bottom: 0;
        height: 100vh;
        width: 260px;
        max-width: 82vw;
        z-index: 90;
        transform: translateX(-100%);
        transition: transform .25s ease;
        overflow-y: auto;
    }
    .app-sidebar.aberto { transform: translateX(0); }

    .app-content { padding: 22px 18px 60px; }
    .app-topbar { padding: 18px; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }

    /* Tabelas de dados (produtos, pedidos, ingredientes etc.) são largas
       demais pra caber na tela do celular — sem isso, as colunas espremiam
       e quebravam o layout inteiro da página. Agora a tabela vira uma caixa
       com rolagem horizontal própria, sem afetar o resto da página. */
    .data-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }

    .catalogo-layout { display: block; }
    .carrinho {
        position: fixed;
        left: 0; right: 0; bottom: 0;
        top: auto;
        max-height: 88vh;
        border-radius: 18px 18px 0 0;
        transform: translateY(110%);
        transition: transform .3s ease;
        z-index: 50;
        overflow-y: auto;
        box-shadow: 0 -12px 30px -10px rgba(0,0,0,0.3);
    }
    .carrinho.aberto { transform: translateY(0); }
    .carrinho.aberto::before {
        content: '';
        display: block;
        width: 40px;
        height: 4px;
        background: var(--line);
        border-radius: 4px;
        margin: 0 auto 16px;
    }
    .cart-bar-mobile { display: flex; }
    .carrinho-overlay.aberto { display: block; }
    .btn-fechar-carrinho {
        display: block;
        background: none; border: none;
        font-size: 22px; color: var(--ink-soft);
        position: absolute; top: 14px; right: 18px;
        cursor: pointer;
    }
}

/* ---------------- Cardápio público: banner + logo sobreposto ---------------- */
.cardapio-banner {
    height: 120px;
    background-color: var(--cor-loja, var(--stamp));
    background-size: cover;
    background-position: center;
    position: relative;
}
@media (min-width: 640px) { .cardapio-banner { height: 180px; } }

.header-top-banner {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 14px;
}
.header-top-banner .icon-btn,
.header-top-banner .btn-compartilhar {
    background: rgba(252,250,244,0.92);
}

.loja-card-flutuante {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    margin-top: -42px;
    padding-bottom: 16px;
    position: relative;
    z-index: 2;
}
.loja-avatar-grande {
    width: 78px; height: 78px;
    border-radius: 18px;
    overflow: hidden;
    border: 3px solid var(--white);
    box-shadow: 0 8px 20px -10px rgba(32,29,24,0.4);
    background: var(--white);
    flex-shrink: 0;
}
.loja-avatar-grande img { width: 100%; height: 100%; object-fit: cover; display: block; }
.loja-avatar-grande.fallback {
    display: flex; align-items: center; justify-content: center;
    background: var(--ink); color: var(--paper);
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800; font-size: 32px;
}
.loja-info-principal { padding-bottom: 4px; min-width: 0; }
.loja-info-principal h1 { font-size: 21px; }
@media (min-width: 640px) { .loja-info-principal h1 { font-size: 27px; } }
.loja-endereco-curta {
    font-size: 13px;
    color: var(--ink-soft);
    margin-top: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.btn-mais-info {
    background: none; border: none;
    font-size: 12px; font-weight: 700;
    color: var(--stamp);
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    margin-top: 6px;
}

/* ---------------- Painel "Sobre a loja" em abas ---------------- */
.painel-tabs {
    display: flex;
    border-bottom: 1px solid var(--line);
    margin-bottom: 18px;
}
.painel-tab {
    flex: 1;
    text-align: center;
    padding: 10px 4px;
    font-size: 13px;
    font-weight: 700;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--ink-soft);
    cursor: pointer;
    font-family: inherit;
}
.painel-tab.active { color: var(--ink); border-bottom-color: var(--stamp); }
.painel-tab-conteudo { display: none; }
.painel-tab-conteudo.active { display: block; }

/* ---------------- Barra de navegação inferior (mobile) ---------------- */
.nav-bar-mobile {
    display: none;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    background: var(--white);
    border-top: 1px solid var(--line);
    z-index: 41;
    padding: 6px 10px calc(6px + env(safe-area-inset-bottom, 0px));
    align-items: center;
    justify-content: space-around;
}
@media (max-width: 900px) { .nav-bar-mobile.visivel { display: flex; } }
.nav-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: none;
    border: none;
    color: var(--ink-soft);
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    padding: 4px 14px;
    text-decoration: none;
}
.nav-bar-item .nav-bar-icon { font-size: 18px; }
.nav-bar-item.active { color: var(--stamp); }

/* ---------------- Acompanhamento de pedido (cliente) ---------------- */
.acompanhar-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 16px 40px -28px rgba(32,29,24,0.3);
}
.acompanhar-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 14px;
    font-weight: 700;
}
.acompanhar-cancelado {
    background: #FBEDE8;
    color: var(--stamp-dark);
    font-size: 14px;
    font-weight: 600;
    padding: 14px 16px;
    border-radius: 10px;
    margin-top: 14px;
}
.linha-dupla { border-top: 1px dashed var(--line); }

.status-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 20px;
}
.status-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    position: relative;
}
.status-step:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 5px; top: 26px;
    width: 2px; height: calc(100% - 6px);
    background: var(--line);
}
.status-step-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--paper-dark);
    border: 2px solid var(--line);
    flex-shrink: 0;
    z-index: 1;
}
.status-step-label { font-size: 14px; color: var(--ink-soft); }
.status-step.status-concluido .status-step-dot { background: var(--sage); border-color: var(--sage); }
.status-step.status-concluido .status-step-label { color: var(--ink); }
.status-step.status-concluido:not(:last-child)::before { background: var(--sage); }
.status-step.status-atual .status-step-dot { background: var(--stamp); border-color: var(--stamp); box-shadow: 0 0 0 4px rgba(193,67,42,0.18); }
.status-step.status-atual .status-step-label { color: var(--ink); font-weight: 700; }

/* =====================================================================
   MESAS + APP DO GARÇOM
   ===================================================================== */

.badge-mesa-livre { background: #EAF1EA; color: var(--sage); }
.badge-mesa-ocupada { background: #FDF3DE; color: #8A6116; }
.badge-mesa-aguardando_pagamento { background: #FBEDE8; color: var(--stamp-dark); }

.mesas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
}

.mesa-card {
    display: block;
    text-decoration: none;
    color: var(--ink);
    background: var(--white);
    border: 2px solid var(--line);
    border-radius: 10px;
    padding: 16px 14px;
    text-align: center;
    transition: transform .15s ease, border-color .15s ease;
}
.mesa-card:hover { transform: translateY(-2px); }

.mesa-card-numero {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 22px;
    text-transform: uppercase;
}
.mesa-card-nome { font-size: 12px; color: var(--ink-soft); margin-top: 2px; }
.mesa-card-status {
    display: inline-block;
    margin-top: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    padding: 3px 10px;
    border-radius: 20px;
}
.mesa-card-total { margin-top: 10px; font-family: 'IBM Plex Mono', monospace; font-weight: 600; font-size: 14px; }
.mesa-card-pendente { margin-top: 4px; font-size: 11px; color: var(--stamp-dark); font-weight: 700; }

.mesa-card-livre { border-color: var(--sage); }
.mesa-card-livre .mesa-card-status { background: #EAF1EA; color: var(--sage); }

.mesa-card-ocupada { border-color: #C79A2E; }
.mesa-card-ocupada .mesa-card-status { background: #FDF3DE; color: #8A6116; }

.mesa-card-aguardando_pagamento { border-color: var(--stamp); }
.mesa-card-aguardando_pagamento .mesa-card-status { background: #FBEDE8; color: var(--stamp-dark); }

.tag-pendente {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: var(--stamp-dark);
    background: #FBEDE8;
    padding: 2px 8px;
    border-radius: 20px;
    margin-top: 2px;
}

/* ---------------- App do garçom: layout mobile-first ---------------- */
.garcom-body {
    background: var(--paper-dark);
    padding-bottom: 90px;
}

.garcom-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: var(--ink);
    color: var(--paper);
    padding: 14px 16px;
}

.garcom-voltar {
    text-decoration: none;
    color: var(--paper);
    font-size: 20px;
    width: 28px;
}

.garcom-topbar-titulo {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.garcom-topbar-titulo strong { font-family: 'Barlow Condensed', sans-serif; text-transform: uppercase; font-size: 17px; }
.garcom-topbar-titulo span { font-size: 11px; color: #b7b1a2; }

.garcom-sair { text-decoration: none; font-size: 18px; color: var(--paper); }

.garcom-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 16px;
    transition: padding-bottom .2s ease;
}

.garcom-lista-produtos {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 50vh;
    overflow-y: auto;
}

.garcom-categorias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}
.categoria-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    background: var(--white);
    border: 1.5px solid var(--line);
    border-radius: 12px;
    padding: 20px 10px;
    cursor: pointer;
    font-family: inherit;
    transition: border-color .15s ease, transform .15s ease;
}
.categoria-tile:hover { border-color: var(--stamp); transform: translateY(-2px); }
.categoria-tile-icone { font-size: 26px; }
.categoria-tile-nome { font-size: 14px; font-weight: 700; color: var(--ink); }
.categoria-tile-count { font-size: 12px; color: var(--ink-soft); font-family: 'IBM Plex Mono', monospace; }

.garcom-produtos-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.garcom-produtos-head h3 { font-size: 17px; margin: 0; }

.garcom-cart-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 40;
    background: var(--white);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 20px -10px rgba(0,0,0,0.25);
    display: none;
}
.garcom-cart-bar.tem-itens { display: block; }

/* Resumo (total + qtd) sempre visível e compacto — a lista de itens só
   expande sob demanda, pra não tomar a tela toda e travar o acesso aos
   produtos quando o pedido tem muitos itens. */
.garcom-cart-bar-resumo {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: none;
    border: none;
    font-family: inherit;
    font-weight: 700;
    font-size: 14px;
    color: var(--ink);
    cursor: pointer;
}
.garcom-cart-bar-lista {
    display: none;
    max-height: 45vh;
    overflow-y: auto;
    padding: 0 16px;
    max-width: 720px;
    margin: 0 auto;
    border-top: 1px solid var(--line);
}
.garcom-cart-bar.expandido .garcom-cart-bar-lista { display: block; padding-top: 10px; }
.garcom-cart-bar-rodape { padding: 10px 16px 14px; max-width: 720px; margin: 0 auto; }

@media (max-width: 640px) {
    .mesas-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}
