/* ==========================================================================
   Macahé Burguer — Design System v2
   Tokens e componentes base. Carregado apenas onde o layout novo é usado.
   CSP do projeto: style-src 'self' — nada de estilo inline nas views.
   ========================================================================== */

/* --- Fontes da marca (mesmos arquivos do site atual, convertidos p/ woff) - */

@font-face {
    font-family: "Macahe Black";
    src: url("/assets/fonts/macahe-black.woff") format("woff");
    font-weight: 400 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Akzidenz Grotesk BE";
    src: url("/assets/fonts/akzidenz-regular.woff") format("woff");
    font-weight: 300 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Akzidenz Grotesk BE";
    src: url("/assets/fonts/akzidenz-bold.woff") format("woff");
    font-weight: 600 900;
    font-style: normal;
    font-display: swap;
}

/* --- Tokens ------------------------------------------------------------- */

:root {
    /* marca */
    --mb-blue: #3b5dfe;
    --mb-blue-hover: #5372ff;
    --mb-blue-pressed: #2a46d6;
    --mb-blue-soft: #e6eaff;
    /* tinte do mesmo azul, usado como texto sobre ink (4,6:1 — AA) */
    --mb-blue-on-dark: #5372ff;
    --mb-blue-tint: #f4f6ff;
    --mb-ink: #0a1030;
    --mb-ink-2: #131a44;

    /* fundo e superfície */
    --mb-bg: #fbfbfd;
    --mb-bg-alt: var(--mb-blue-tint);
    --mb-surface: #ffffff;
    --mb-surface-hover: var(--mb-blue-tint);
    --mb-surface-selected: var(--mb-blue-soft);

    /* texto */
    --mb-text: #101320;
    --mb-text-2: #3a3f4e;
    --mb-text-muted: #6b7183;
    --mb-text-inverse: #ffffff;

    /* borda */
    --mb-border: #ebedf5;
    --mb-border-strong: #c7cfff;
    --mb-focus: var(--mb-blue);

    /* apoio e feedback */
    --mb-mustard: #ffc23c;
    --mb-mustard-hover: #ffd166;
    --mb-chili: #d6321e;
    --mb-success: #0b7a3b;
    --mb-warning: #ffc23c;
    --mb-error: #d6321e;

    /* sobreposição */
    --mb-scrim: rgba(10, 16, 48, .72);

    /* tipografia */
    --mb-font-display: "Macahe Black", "Arial Black", Helvetica, sans-serif;
    --mb-font-body: "Akzidenz Grotesk BE", "Helvetica Neue", Arial, sans-serif;
    --mb-tracking-display: -.02em;
    --mb-tracking-title: -.012em;
    --mb-leading-body: 1.68;

    /* espaçamento */
    --mb-space-1: 4px;
    --mb-space-2: 8px;
    --mb-space-3: 12px;
    --mb-space-4: 16px;
    --mb-space-6: 24px;
    --mb-space-8: 32px;
    --mb-space-12: 48px;
    --mb-space-16: 64px;
    --mb-space-24: 96px;
    --mb-space-32: 128px;

    /* forma */
    --mb-radius-xs: 8px;
    --mb-radius-sm: 12px;
    --mb-radius-md: 16px;
    --mb-radius-lg: 24px;
    --mb-radius-xl: 28px;
    --mb-radius-pill: 999px;

    /* elevação */
    --mb-shadow-1: 0 1px 2px rgba(10, 16, 48, .05), 0 2px 8px rgba(10, 16, 48, .06);
    --mb-shadow-2: 0 2px 4px rgba(10, 16, 48, .06), 0 8px 24px rgba(10, 16, 48, .10);
    --mb-shadow-3: 0 4px 10px rgba(10, 16, 48, .08), 0 24px 56px rgba(10, 16, 48, .16);
    --mb-glow: 0 8px 24px rgba(59, 93, 254, .34);
    --mb-glow-strong: 0 12px 34px rgba(59, 93, 254, .48);

    /* movimento */
    --mb-dur-instant: 100ms;
    --mb-dur-fast: 150ms;
    --mb-dur-base: 240ms;
    --mb-dur-slow: 300ms;
    --mb-ease: cubic-bezier(.2, .8, .2, 1);

    /* layout */
    --mb-container: 1140px;
    --mb-container-narrow: 760px;
}

@media (prefers-reduced-motion: reduce) {
    :root {
        --mb-dur-instant: .01ms;
        --mb-dur-fast: .01ms;
        --mb-dur-base: .01ms;
        --mb-dur-slow: .01ms;
    }
}

/* --- Base --------------------------------------------------------------- */

.mb *,
.mb *::before,
.mb *::after {
    box-sizing: border-box;
}

/* [hidden] tem a mesma especificidade de qualquer classe com display: X (ex.:
   .mb-alert, .mb-btn) — sem isso, quem carrega ambos no mesmo elemento e é
   declarado depois (nossas classes vêm depois do UA stylesheet) vence, e o
   elemento "escondido" continua visível. Alterne visibilidade via el.hidden. */
.mb [hidden] {
    display: none !important;
}

html {
    overflow-x: hidden;
}

body.mb {
    margin: 0;
    overflow-x: hidden;
    background: var(--mb-bg);
    color: var(--mb-text);
    font-family: var(--mb-font-body);
    font-weight: 400;
    font-size: 16px;
    line-height: var(--mb-leading-body);
    font-variant-numeric: tabular-nums;
    -webkit-font-smoothing: antialiased;
    text-wrap: pretty;
}

.mb img {
    max-width: 100%;
    height: auto;
}

/* :where() keeps this a low-priority default: any component class below
   (button, chip, badge, brand mark...) wins without needing !important or
   extra classes, even though they're single-class selectors themselves. */
.mb :where(a) {
    color: var(--mb-blue);
    text-decoration: none;
}

.mb :where(a):hover {
    color: var(--mb-blue-pressed);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.mb :focus-visible {
    outline: 3px solid var(--mb-focus);
    outline-offset: 2px;
    border-radius: var(--mb-radius-xs);
}

/* Superfície escura: inverte texto, links e foco.
   O cabeçalho de página interna é sempre escuro, então entra junto em todas
   as regras abaixo — assim nenhuma página precisa lembrar de marcar .mb-dark
   só para o texto ficar legível sobre o ink. */
.mb-dark {
    background: var(--mb-ink);
    color: var(--mb-text-inverse);
}

.mb-dark :where(a),
.mb-page-hero :where(a) {
    color: var(--mb-text-inverse);
}

.mb-dark :where(a):hover,
.mb-page-hero :where(a):hover {
    color: var(--mb-blue-on-dark);
}

.mb-dark :focus-visible,
.mb-page-hero :focus-visible {
    outline-color: var(--mb-text-inverse);
}

/* --- Layout ------------------------------------------------------------- */

.mb-container {
    width: 100%;
    max-width: var(--mb-container);
    margin-inline: auto;
    padding-inline: 20px;
}

.mb-section {
    padding-block: var(--mb-space-12);
}

.mb-section--alt {
    background: var(--mb-bg-alt);
}

.mb-skip {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    background: var(--mb-blue);
    color: var(--mb-text-inverse);
    font-weight: 800;
    font-size: 13px;
    letter-spacing: .02em;
    text-transform: uppercase;
    padding: 14px 20px;
    border-radius: 0 0 var(--mb-radius-sm) 0;
}

.mb-skip:focus {
    left: 0;
}

/* Filete de onda — assinatura da marca, usada em transição de seção. */
.mb-wave {
    height: 22px;
    background: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='22' viewBox='0 0 56 22'%3E%3Cpath d='M0 12 Q14 2 28 12 T56 12' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x bottom;
    background-size: 56px 22px;
    opacity: .5;
}

.mb-wave--blue {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='22' viewBox='0 0 56 22'%3E%3Cpath d='M0 12 Q14 2 28 12 T56 12' fill='none' stroke='%233b5dfe' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* --- Tipografia --------------------------------------------------------- */

.mb-display,
.mb-h1,
.mb-h2,
.mb-h3 {
    font-family: var(--mb-font-display);
    font-weight: 400;
    text-transform: uppercase;
    margin: 0;
}

.mb-display {
    font-size: clamp(44px, 7vw, 88px);
    line-height: .96;
    letter-spacing: var(--mb-tracking-display);
}

.mb-h1 {
    font-size: clamp(34px, 5vw, 64px);
    line-height: .98;
    letter-spacing: -.018em;
}

.mb-h2 {
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.04;
    letter-spacing: -.014em;
}

.mb-h3 {
    font-size: clamp(24px, 2.6vw, 32px);
    line-height: 1.12;
    letter-spacing: -.01em;
}

.mb-outline {
    color: transparent;
    -webkit-text-stroke: 2.5px currentColor;
}

/* Palavra de destaque na headline. Sobre ink usa o tinte do azul (AA). */
.mb-accent {
    color: var(--mb-blue);
}

.mb-dark .mb-accent,
.mb-page-hero .mb-accent {
    color: var(--mb-blue-on-dark);
}

.mb-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--mb-blue);
    margin: 0;
}

.mb-label::before {
    content: "";
    width: 26px;
    height: 1px;
    background: currentColor;
}

.mb-dark .mb-label,
.mb-page-hero .mb-label {
    color: var(--mb-blue-on-dark);
}

.mb-lede {
    font-size: clamp(17px, 1.5vw, 20px);
    font-weight: 300;
    line-height: 1.6;
    letter-spacing: -.004em;
    color: var(--mb-text-2);
    max-width: 58ch;
    margin: 0;
}

.mb-dark .mb-lede,
.mb-page-hero .mb-lede {
    color: rgba(255, 255, 255, .86);
}

.mb-body {
    margin: 0;
    color: var(--mb-text-2);
}

.mb-dark .mb-body,
.mb-page-hero .mb-body {
    color: rgba(255, 255, 255, .82);
}

.mb-small {
    font-size: 13px;
    line-height: 1.6;
    color: var(--mb-text-muted);
    margin: 0;
}

.mb-dark .mb-small,
.mb-page-hero .mb-small {
    color: rgba(255, 255, 255, .68);
}

/* --- Botões ------------------------------------------------------------- */

.mb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 30px;
    border: 0;
    border-radius: var(--mb-radius-pill);
    font-family: var(--mb-font-body);
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .02em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background var(--mb-dur-fast) var(--mb-ease),
                box-shadow var(--mb-dur-fast) var(--mb-ease),
                transform var(--mb-dur-fast) var(--mb-ease),
                color var(--mb-dur-fast) var(--mb-ease);
}

.mb-btn:hover {
    text-decoration: none;
}

.mb-btn:active {
    transform: translateY(1px);
}

.mb-btn--primary {
    background: var(--mb-blue);
    color: var(--mb-text-inverse);
}

.mb-btn--primary:hover {
    background: var(--mb-blue-hover);
    color: var(--mb-text-inverse);
    box-shadow: var(--mb-glow);
}

/* CTA principal: azul da marca com texto branco (4,9:1) e brilho azul. */
.mb-btn--order {
    background: var(--mb-blue);
    color: var(--mb-text-inverse);
    box-shadow: var(--mb-glow);
}

.mb-btn--order:hover {
    background: var(--mb-blue-hover);
    color: var(--mb-text-inverse);
    box-shadow: var(--mb-glow-strong);
}

.mb-btn--secondary {
    background: var(--mb-surface);
    color: var(--mb-blue);
    box-shadow: inset 0 0 0 2px var(--mb-blue);
}

.mb-btn--secondary:hover {
    background: var(--mb-blue-tint);
    color: var(--mb-blue-pressed);
    box-shadow: inset 0 0 0 2px var(--mb-blue-pressed), var(--mb-shadow-1);
}

/* Único botão permitido sobre foto ou faixa escura, ao lado do CTA. */
.mb-btn--ghost {
    background: transparent;
    color: var(--mb-text-inverse);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55);
}

.mb-btn--ghost:hover {
    background: var(--mb-text-inverse);
    color: var(--mb-ink);
    box-shadow: inset 0 0 0 2px var(--mb-text-inverse);
}

.mb-btn--sm {
    min-height: 44px;
    padding: 0 22px;
    font-size: 14px;
}

.mb-btn--block {
    width: 100%;
}

.mb-btn__icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Link com ícone: a seta anda 4 px no hover. */
.mb-link-icon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    font-size: 15px;
    font-weight: 700;
}

.mb-link-icon svg {
    width: 18px;
    height: 18px;
    transition: transform var(--mb-dur-fast) var(--mb-ease);
}

.mb-link-icon:hover svg {
    transform: translateX(4px);
}

/* --- Chips e selos ------------------------------------------------------ */

.mb-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 20px;
    border-radius: var(--mb-radius-pill);
    background: var(--mb-surface);
    color: var(--mb-text);
    box-shadow: inset 0 0 0 2px var(--mb-border-strong);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background var(--mb-dur-fast) var(--mb-ease),
                box-shadow var(--mb-dur-fast) var(--mb-ease);
}

.mb-chip:hover {
    background: var(--mb-blue-tint);
    color: var(--mb-blue-pressed);
    box-shadow: inset 0 0 0 2px var(--mb-blue);
    text-decoration: none;
}

.mb-chip[aria-current="true"],
.mb-chip--active {
    background: var(--mb-blue);
    color: var(--mb-text-inverse);
    box-shadow: none;
    font-weight: 800;
}

.mb-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 32px;
    padding: 0 14px;
    border-radius: var(--mb-radius-pill);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.mb-badge--new {
    background: var(--mb-blue);
    color: var(--mb-text-inverse);
}

.mb-badge--stamp {
    background: #e7f5ec;
    color: var(--mb-success);
    box-shadow: inset 0 0 0 1.5px var(--mb-success);
}

.mb-badge--locked {
    color: var(--mb-text-muted);
    box-shadow: inset 0 0 0 1.5px var(--mb-border);
}

.mb-badge--promo {
    background: var(--mb-mustard);
    color: var(--mb-text);
}

.mb-badge--top {
    background: rgba(255, 255, 255, .14);
    color: var(--mb-text-inverse);
    box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .4);
}

/* --- Cards -------------------------------------------------------------- */

.mb-card {
    display: flex;
    flex-direction: column;
    background: var(--mb-surface);
    border: 1px solid var(--mb-border);
    border-radius: var(--mb-radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform var(--mb-dur-fast) var(--mb-ease),
                box-shadow var(--mb-dur-fast) var(--mb-ease),
                border-color var(--mb-dur-fast) var(--mb-ease);
}

.mb-card:hover {
    transform: translateY(-4px);
    border-color: transparent;
    box-shadow: var(--mb-shadow-1);
    text-decoration: none;
}

.mb-card--locked {
    opacity: .75;
}

.mb-card--locked:hover {
    transform: none;
    border-color: var(--mb-border);
    box-shadow: none;
}

.mb-card--dark {
    background: var(--mb-ink-2);
    border-color: rgba(255, 255, 255, .12);
    color: var(--mb-text-inverse);
}

.mb-card--dark:hover {
    border-color: rgba(255, 255, 255, .28);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .38);
}

.mb-card__media {
    aspect-ratio: 4 / 3;
    background: var(--mb-blue-tint) center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mb-border-strong);
}

.mb-card--dark .mb-card__media {
    background-color: rgba(255, 255, 255, .06);
    color: rgba(255, 255, 255, .32);
}

.mb-card__media svg {
    width: 56px;
    height: 56px;
}

.mb-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mb-card__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px;
    flex-grow: 1;
}

.mb-card__kicker {
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--mb-blue);
    margin: 0;
}

.mb-card--dark .mb-card__kicker {
    color: var(--mb-blue-on-dark);
}

.mb-card__title {
    font-size: 19px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0;
}

.mb-card__text {
    font-size: 14px;
    line-height: 1.5;
    color: var(--mb-text-muted);
    margin: 0;
}

.mb-card--dark .mb-card__text {
    color: rgba(255, 255, 255, .72);
}

.mb-card__foot {
    margin-top: auto;
    padding-top: 14px;
    font-size: 14px;
    font-weight: 700;
    color: var(--mb-blue);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.mb-card--dark .mb-card__foot {
    color: var(--mb-blue-on-dark);
}

/* --- Grades ------------------------------------------------------------- */

.mb-grid {
    align-items: stretch;
    display: grid;
    gap: var(--mb-space-6);
}

.mb-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mb-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mb-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mb-cluster {
    display: flex;
    flex-wrap: wrap;
    gap: var(--mb-space-3);
    align-items: center;
}

.mb-stack {
    display: flex;
    flex-direction: column;
    gap: var(--mb-space-4);
}

@media (max-width: 1024px) {
    .mb-grid--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mb-grid--3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .mb-section {
        padding-block: var(--mb-space-12);
    }

    .mb-grid--2,
    .mb-grid--3,
    .mb-grid--4 {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* --- Cabeçalho de página interna (reutilizável em cardápio, unidades, etc.) */

.mb-page-hero {
    position: relative;
    background: var(--mb-ink);
    color: var(--mb-text-inverse);
    overflow: hidden;
    padding-block: var(--mb-space-16) 0;
}

.mb-page-hero__inner > * + * {
    margin-top: var(--mb-space-4);
}

.mb-page-hero .mb-cats {
    margin-top: var(--mb-space-8);
}

/* Link "voltar" acima do título — mesmo padrão em toda página interna com
   hero escuro (vaga, produto, criação compartilhada...). */
.mb-page-hero__back {
    display: flex;
    width: max-content;
    max-width: 100%;
    color: rgba(255, 255, 255, .8);
    margin-bottom: var(--mb-space-2);
}

.mb-page-hero__back:hover {
    color: var(--mb-text-inverse);
    text-decoration: none;
}

.mb-page-hero__actions {
    margin-top: var(--mb-space-6) !important;
}

.mb-page-hero__wave {
    position: relative;
    margin-top: var(--mb-space-12);
    opacity: .5;
}

@media (max-width: 767px) {
    .mb-page-hero {
        padding-block: var(--mb-space-12) 0;
    }
}

/* --- Estado vazio (reutilizável) ----------------------------------------- */

.mb-empty {
    text-align: center;
    max-width: 440px;
    margin-inline: auto;
    padding-block: var(--mb-space-16);
}

.mb-empty svg {
    width: 56px;
    height: 56px;
    color: var(--mb-border-strong);
    margin-bottom: var(--mb-space-4);
}

.mb-empty .mb-h3 {
    margin-bottom: var(--mb-space-2);
}

.mb-empty .mb-btn {
    margin-top: var(--mb-space-6);
}

/* --- Aviso de cookies (injetado por app.js em toda página) -------------- */
/* app.js é comum a todo o site; o markup não carrega classe nos filhos, então
   os elementos são estilizados aqui mesmo por tag, escopados ao container. */

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--mb-space-4);
    padding: var(--mb-space-4) 20px;
    background: var(--mb-ink);
    box-shadow: 0 -8px 24px rgba(10, 16, 48, .18);
}

.cookie-banner p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, .82);
}

.cookie-banner a {
    color: var(--mb-text-inverse);
    font-weight: 700;
}

.cookie-banner button {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 20px;
    border: 0;
    border-radius: var(--mb-radius-pill);
    background: var(--mb-blue);
    color: var(--mb-text-inverse);
    font-family: var(--mb-font-body);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .02em;
    text-transform: uppercase;
    cursor: pointer;
}

.cookie-banner button:hover {
    background: var(--mb-blue-hover);
}

/* Selo posicionado sobre a mídia do card (ex.: Destaque, Promoção). */
.mb-card {
    position: relative;
}

.mb-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1;
}

/* --- Formulários --------------------------------------------------------- */

.mb-form {
    display: flex;
    flex-direction: column;
    gap: var(--mb-space-6);
}

.mb-field {
    display: flex;
    flex-direction: column;
    gap: var(--mb-space-2);
}

/* Rótulo de verdade acima do campo — nunca placeholder no lugar do rótulo. */
.mb-field__label {
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--mb-text-2);
}

.mb-field__optional {
    font-weight: 400;
    letter-spacing: .04em;
    text-transform: none;
    color: var(--mb-text-muted);
}

/* Contorno via inset box-shadow: não soma na caixa, então o campo não "pula"
   quando o estado muda de 2 px para o anel de foco. */
.mb-input {
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    border: 0;
    border-radius: var(--mb-radius-sm);
    background: var(--mb-surface);
    box-shadow: inset 0 0 0 2px var(--mb-border-strong);
    font-family: var(--mb-font-body);
    font-size: 16px;
    line-height: 1.2;
    color: var(--mb-text);
    transition: box-shadow var(--mb-dur-fast) var(--mb-ease),
                background var(--mb-dur-fast) var(--mb-ease);
}

textarea.mb-input {
    min-height: 104px;
    padding: 14px 16px;
    line-height: 1.5;
    resize: vertical;
}

.mb-input::placeholder {
    color: var(--mb-text-muted);
}

.mb-input:hover:not(:disabled) {
    box-shadow: inset 0 0 0 2px var(--mb-blue);
}

.mb-input:focus-visible {
    outline: 0;
    box-shadow: inset 0 0 0 2px var(--mb-blue),
                0 0 0 2px var(--mb-surface),
                0 0 0 5px var(--mb-blue);
}

.mb-input:disabled {
    background: var(--mb-blue-tint);
    box-shadow: inset 0 0 0 2px var(--mb-blue-soft);
    color: #a2a8bc;
    cursor: not-allowed;
}

/* Erro tem três sinais: contorno, ícone e texto — o vermelho sozinho não basta. */
.mb-field--error .mb-input,
.mb-input[aria-invalid="true"] {
    box-shadow: inset 0 0 0 2px var(--mb-error);
}

.mb-field__hint {
    font-size: 12px;
    line-height: 1.5;
    color: var(--mb-text-muted);
    margin: 0;
}

.mb-field__error {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--mb-error);
    margin: 0;
}

.mb-field__error svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

/* Campo com ação embutida (mostrar senha, buscar, limpar). */
.mb-field__wrap {
    position: relative;
    display: flex;
}

.mb-field__wrap .mb-input {
    padding-right: 92px;
}

.mb-field__action {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    min-height: 40px;
    padding: 0 10px;
    border: 0;
    border-radius: var(--mb-radius-xs);
    background: transparent;
    font-family: var(--mb-font-body);
    font-size: 13px;
    font-weight: 700;
    color: var(--mb-blue);
    cursor: pointer;
}

.mb-field__action:hover {
    color: var(--mb-blue-pressed);
    background: var(--mb-blue-tint);
}

/* Lista com check — requisitos de vaga, ingredientes de uma criação
   compartilhada etc. Reaproveitada por mais de uma página, por isso mora aqui. */
.mb-checklist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--mb-space-3);
}

.mb-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    line-height: 1.55;
    color: var(--mb-text-2);
}

.mb-checklist svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--mb-blue);
}

/* --- Unidades (cartão de loja) ------------------------------------------ */
/* Usado no preview da home e na lista completa /unidades. */

.mb-store {
    display: flex;
    flex-direction: column;
    gap: var(--mb-space-2);
    background: var(--mb-surface);
    border: 1px solid var(--mb-border);
    border-radius: var(--mb-radius-lg);
    padding: var(--mb-space-6);
}

.mb-store__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--mb-space-3);
}

.mb-store .mb-store__photo {
    margin: calc(var(--mb-space-6) * -1) calc(var(--mb-space-6) * -1) 0;
    overflow: hidden;
    border-radius: var(--mb-radius-lg) var(--mb-radius-lg) 0 0;
    aspect-ratio: 4 / 3;
    background: var(--mb-bg-alt);
}

.mb-store .mb-store__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mb-store__name {
    font-size: 19px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0;
}

.mb-store__status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 28px;
    padding: 0 12px;
    border-radius: var(--mb-radius-pill);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    flex-shrink: 0;
    background: #e7f5ec;
    color: var(--mb-success);
    box-shadow: inset 0 0 0 1.5px var(--mb-success);
}

.mb-store__status svg {
    width: 13px;
    height: 13px;
}

.mb-store__actions {
    margin-top: var(--mb-space-4);
}

.mb-store__meta {
    display: flex;
    flex-direction: column;
    gap: var(--mb-space-2);
}

.mb-store__meta-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--mb-text-2);
}

.mb-store__meta-item svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--mb-blue);
}

.mb-store__hours {
    list-style: none;
    margin: 0;
    padding: var(--mb-space-3) 0 0;
    border-top: 1px solid var(--mb-border);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mb-store__hours li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--mb-space-3);
    font-size: 13px;
}

.mb-store__hours-day {
    color: var(--mb-text-muted);
}

.mb-store__hours-time {
    font-weight: 700;
    color: var(--mb-text);
    text-align: right;
}

/* Chip de ingrediente (foto + nome): base visual usada tanto no Monte Seu
   Macahé (com seleção, ver builder.css) quanto na lista pública /ingredientes
   (só leitura). */
.mb-ingredient {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--mb-space-2);
    padding: var(--mb-space-4) var(--mb-space-3);
    background: var(--mb-surface);
    border-radius: var(--mb-radius-md);
    box-shadow: inset 0 0 0 2px var(--mb-border);
    text-align: center;
}

.mb-ingredient__thumb {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--mb-radius-sm);
    background: var(--mb-blue-tint) center / cover no-repeat;
    color: var(--mb-border-strong);
}

.mb-ingredient__thumb svg {
    width: 28px;
    height: 28px;
}

.mb-ingredient__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.mb-ingredient__name {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--mb-text);
}

/* Checkbox de consentimento (LGPD, termos...): usado em qualquer formulário,
   por isso mora aqui e não na folha de uma página específica. */
.mb-consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--mb-text-2);
    cursor: pointer;
}

.mb-consent input {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    margin: 1px 0 0;
    accent-color: var(--mb-blue);
    cursor: pointer;
}

/* --- Feedback inline ----------------------------------------------------- */

.mb-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border-radius: var(--mb-radius-sm);
    background: var(--mb-blue-tint);
    box-shadow: inset 0 0 0 2px var(--mb-blue-soft);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--mb-text);
    margin: 0;
}

.mb-alert svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.mb-alert--error {
    background: #fdeeec;
    box-shadow: inset 0 0 0 2px var(--mb-error);
    color: #8e1e11;
}

.mb-alert--success {
    background: #e9f6ee;
    box-shadow: inset 0 0 0 2px var(--mb-success);
    color: #075a2b;
}

.mb-alert--warning {
    background: #fff6e0;
    box-shadow: inset 0 0 0 2px var(--mb-warning);
    color: #5d4300;
}


/* --- Chrome do layout: cabeçalho e rodapé -------------------------------- */
/* Mora aqui, e não em landing.css, porque toda página que usa layouts/landing
   (login, cardápio, unidades...) monta o mesmo cabeçalho e o mesmo rodapé. */

/* --- Cabeçalho ---------------------------------------------------------- */

.mb-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--mb-ink);
    color: var(--mb-text-inverse);
}

.mb-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--mb-space-6);
    min-height: 76px;
}

.mb-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--mb-text-inverse);
    text-decoration: none;
    flex-shrink: 0;
}

.mb-brand:hover {
    color: var(--mb-text-inverse);
    text-decoration: none;
}

.mb-brand svg,
.mb-brand img {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.mb-brand__name {
    font-family: var(--mb-font-display);
    font-size: 18px;
    letter-spacing: -.008em;
    text-transform: uppercase;
    white-space: nowrap;
}

.mb-nav {
    display: flex;
    align-items: center;
    gap: var(--mb-space-8);
}

.mb-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .82);
    text-decoration: none;
    border-bottom: 3px solid transparent;
}

.mb-nav a:hover {
    color: var(--mb-text-inverse);
    text-decoration: none;
}

.mb-nav a[aria-current="page"] {
    color: var(--mb-text-inverse);
    font-weight: 800;
    border-bottom-color: var(--mb-blue-on-dark);
}

.mb-header__actions {
    display: flex;
    align-items: center;
    gap: var(--mb-space-3);
    flex-shrink: 0;
}

/* Entrar / Meu Macahé aparecem aqui no desktop e dentro do menu no mobile,
   nunca nos dois ao mesmo tempo (ver o breakpoint de 1024px abaixo).

   O seletor duplicado nao e redundancia: os links de conta sao <a> dentro de
   .mb-nav, entao a regra `.mb-nav a` (0,1,1) vence `.mb-nav__account` (0,1,0)
   e o display:inline-flex dela reapareceria com eles no desktop. */
.mb-nav__divider,
.mb-nav__account,
.mb-nav a.mb-nav__account {
    display: none;
}

/* Menu móvel sem JS: checkbox + label, acessível por teclado.
   O input fica fora da tela mas continua focável — quem clica usa o label. */
.mb-menu-toggle {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.mb-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--mb-radius-sm);
    color: var(--mb-text-inverse);
    cursor: pointer;
}

.mb-menu-btn svg {
    width: 24px;
    height: 24px;
}

.mb-menu-toggle:focus-visible + .mb-menu-btn {
    outline: 3px solid var(--mb-text-inverse);
    outline-offset: 2px;
}

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

    .mb-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--mb-ink);
        padding: var(--mb-space-2) 20px var(--mb-space-8);
        border-top: 1px solid rgba(255, 255, 255, .14);
    }

    .mb-menu-toggle:checked ~ .mb-nav {
        display: flex;
    }

    .mb-nav a {
        min-height: 56px;
        font-family: var(--mb-font-display);
        font-size: 26px;
        font-weight: 400;
        letter-spacing: -.01em;
        border-bottom: 1px solid rgba(255, 255, 255, .14);
    }

    .mb-nav a[aria-current="page"] {
        color: var(--mb-blue-on-dark);
        border-bottom-color: rgba(255, 255, 255, .14);
    }

    /* Só o botão de conta sai daqui — ele reaparece dentro do menu. O CTA de
       pedido continua visível: escondê-lo deixava o mobile inteiro sem nenhum
       caminho para pedir. */
    .mb-header__account {
        display: none;
    }

    /* O CTA encolhe para caber ao lado do hambúrguer em telas estreitas. */
    .mb-header__inner {
        gap: var(--mb-space-3);
        min-height: 64px;
    }

    .mb-header__actions .mb-btn--order {
        padding: 0 16px;
        font-size: 13px;
    }

    .mb-nav__divider {
        display: block;
        height: 1px;
        margin-top: var(--mb-space-4);
        background: rgba(255, 255, 255, .14);
    }

    /* Mesmo motivo do bloco acima: sem o seletor mais especifico, `.mb-nav a`
       impoe a fonte display de 26px tambem nestes links. */
    .mb-nav__account,
    .mb-nav a.mb-nav__account {
        display: inline-flex;
        align-items: center;
        min-height: 52px;
        font-size: 15px;
        font-weight: 700;
        letter-spacing: .04em;
        text-transform: uppercase;
        color: rgba(255, 255, 255, .82);
        text-decoration: none;
        border-bottom: 1px solid rgba(255, 255, 255, .14);
    }

    .mb-nav__account:hover {
        color: var(--mb-text-inverse);
        text-decoration: none;
    }

    /* O menu é uma camada sobre a página: sem isto o corpo rolava por baixo
       dele no iOS. A classe é posta pelo app.js. */
    /* Sem z-index proprio: o header ja e um contexto de empilhamento (z 50),
       e a .mb-nav vem depois no DOM, entao ela pinta por cima desta camada.
       Como o pseudo pertence ao label, tocar fora fecha o menu sem JS. */
    .mb-menu-btn::after {
        content: "";
        position: fixed;
        inset: 64px 0 0;
        display: none;
        background: rgba(4, 16, 53, .6);
    }

    .mb-menu-toggle:checked + .mb-menu-btn::after {
        display: block;
    }
}

/* Trava o scroll do corpo enquanto o menu móvel está aberto. */
.mb.is-menu-open {
    overflow: hidden;
}

@media (max-width: 1024px) {
    .mb-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .mb-footer__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--mb-space-6);
    }

    .mb-section__head {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--mb-space-4);
    }
}

/* --- Cabeçalho de seção ------------------------------------------------- */

.mb-section__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--mb-space-8);
    margin-bottom: var(--mb-space-8);
}

.mb-section__head > div > * + * {
    margin-top: var(--mb-space-3);
}

/* O link da direita nao encolhe nem quebra: quem manda na largura e o titulo. */
.mb-section__head .mb-link-icon {
    flex-shrink: 0;
    white-space: nowrap;
}

/* --- Categorias --------------------------------------------------------- */

.mb-cats {
    display: flex;
    flex-wrap: wrap;
    gap: var(--mb-space-3);
}


/* --- Rodapé ------------------------------------------------------------- */

.mb-footer {
    position: relative;
    background: var(--mb-ink);
    color: var(--mb-text-inverse);
    padding-top: var(--mb-space-16);
    overflow: hidden;
}

.mb-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
    gap: var(--mb-space-8);
    padding-bottom: var(--mb-space-12);
}

.mb-footer__col h2 {
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .55);
    margin: 0 0 var(--mb-space-4);
}

.mb-footer__col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mb-footer__col li + li {
    margin-top: 2px;
}

.mb-footer__col a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    font-size: 14px;
    color: rgba(255, 255, 255, .86);
    text-decoration: none;
}

.mb-footer__col a:hover {
    color: var(--mb-blue-on-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.mb-footer__about {
    font-size: 14px;
    font-weight: 300;
    line-height: 1.6;
    color: rgba(255, 255, 255, .78);
    max-width: 34ch;
    margin: var(--mb-space-4) 0 0;
}

.mb-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--mb-space-4);
    padding-block: var(--mb-space-6) var(--mb-space-12);
    border-top: 1px solid rgba(255, 255, 255, .18);
}

.mb-footer__bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, .66);
    margin: 0;
}

.mb-footer__legal {
    display: flex;
    flex-wrap: wrap;
    gap: var(--mb-space-4);
}

.mb-footer__wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 16px;
    opacity: .35;
}


/* --- Barra de ação fixa (só mobile) -------------------------------------- */
/* A home tem dobras longas e o cabeçalho rola junto; esta barra mantém pedido
   e cardápio sempre alcançáveis com o polegar. */
.mb-actionbar {
    display: none;
}

@media (max-width: 767px) {
    .mb-actionbar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 40;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
        gap: var(--mb-space-2);
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
        background: rgba(4, 16, 53, .92);
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(255, 255, 255, .16);
    }

    .mb-actionbar .mb-btn {
        width: 100%;
        min-height: 48px;
        padding: 0 12px;
        font-size: 14px;
    }

    /* Espaço para o rodapé não ficar coberto pela barra. */
    .mb-footer {
        padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    }

    /* Com o menu aberto a barra sairia por cima da sobreposição. */
    .mb.is-menu-open .mb-actionbar {
        display: none;
    }
}
