@font-face {
  font-family: "Fraunces Alki";
  src: url("/restaurantes/assets/fonts/Fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope Alki";
  src: url("/restaurantes/assets/fonts/Manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --brand: #d1552f;
  --brand-contrast: #000;
  --editorial-ink: #131110;
  --editorial-ink-2: #1e1a18;
  --editorial-ink-3: #2a2522;
  --editorial-bone: #f4efe6;
  --editorial-surface: #fffdf8;
  --editorial-ember: #d1552f;
  --editorial-ember-deep: #a93d1e;
  --editorial-brass: #c39b52;
  --editorial-sage: #4d6b52;
  --editorial-amber: #a1701a;
  --editorial-clay: #7b6f66;
  --editorial-line: #e2dad0;
  --editorial-interface: "Manrope Alki", Atkinson, "Segoe UI", sans-serif;
  --editorial-display: "Fraunces Alki", Georgia, serif;
  --editorial-ease: cubic-bezier(.22, 1, .36, 1);
}

html:has(body.editorial-system),
body.editorial-system {
  max-width: 100%;
  overflow-x: clip;
}

body.editorial-system {
  min-width: 320px;
  font-family: var(--editorial-interface);
  font-size: 17px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.editorial-system :where(h1, h2, h3, h4, h5, p, span, strong, small, label, legend, button, a, dt, dd) {
  min-width: 0;
  overflow-wrap: anywhere;
}

body.editorial-system :where(button, input, select, textarea) {
  max-width: 100%;
  font-family: var(--editorial-interface);
  font-size: max(16px, .9rem);
  line-height: 1.35;
}

body.editorial-system :where(input, select, textarea) {
  min-height: 52px;
}

body.editorial-system button {
  min-height: 44px;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  white-space: normal;
  text-wrap: balance;
}

body.editorial-system :where(.primary, .add-product) {
  background: var(--brand, var(--editorial-ember));
  border-color: var(--brand, var(--editorial-ember));
  color: var(--brand-contrast, #fff);
}

body.editorial-system :where(h1, .guest-heading h1, .page-heading h1, .section-heading h2, .dialog-heading h2) {
  font-family: var(--editorial-display);
  font-variation-settings: "SOFT" 50, "WONK" 0;
  font-weight: 650;
  letter-spacing: -.045em;
  text-wrap: balance;
}

body.editorial-system :where(dialog) {
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 24px);
  margin: auto;
  overflow: auto;
  overscroll-behavior: contain;
}

body.editorial-system :where(dialog form, .dialog-heading, .dialog-heading > *, .header-end, .tools, .admin-actions, .section-heading, .page-heading) {
  min-width: 0;
}

body.editorial-system .dialog-heading {
  align-items: flex-start;
  flex-wrap: wrap;
}

body.editorial-system .dialog-heading > :first-child,
body.editorial-system .dialog-heading > h2 {
  flex: 1 1 220px;
}

body.editorial-system .dialog-heading > button {
  flex: 0 0 auto;
}

body.editorial-system .empty-state,
body.editorial-system :where(.section-empty, .menu-empty) {
  border-style: solid;
}

.product-dialog-media[hidden] {
  display: none;
}

.product-dialog-media img {
  display: block;
  width: 100%;
  height: clamp(190px, 34vh, 300px);
  object-fit: cover;
}

/* Cardápio do cliente: a comida ocupa o primeiro plano e a plataforma some. */
body.guest-catalog-page {
  color: var(--editorial-bone);
  background: var(--editorial-ink);
  --page-bg: var(--editorial-ink);
  --surface: var(--editorial-ink-2);
  --ink: var(--editorial-ink);
  --muted: #c3b9b0;
  --line: #433b36;
}

.guest-catalog-page .app-header {
  height: auto;
  min-height: 88px;
  padding: 18px max(24px, calc((100vw - 1280px) / 2));
  background: var(--editorial-ink);
  border-bottom: 1px solid #332c28;
}

.guest-catalog-page .app-header .brand {
  max-width: min(68vw, 760px);
  color: var(--editorial-bone);
  font-family: var(--editorial-display);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 650;
}

.guest-catalog-page .app-header .brand img {
  width: 50px;
  height: 50px;
  max-width: 50px;
  background: var(--editorial-surface);
  border-radius: 12px;
}

.guest-catalog-page .app-header .header-end {
  margin-left: auto;
}

.guest-catalog-page #refresh-menu {
  min-height: 46px;
  padding: 10px 16px;
  color: #e8ded6;
  background: var(--editorial-ink-2);
  border-color: #4b413b;
}

.guest-catalog-page .guest-main {
  width: min(100%, 1280px);
  max-width: 1280px;
  padding: 38px 28px 72px;
}

.guest-catalog-page .notice {
  color: var(--editorial-bone);
  background: var(--editorial-ink-2);
  border: 1px solid #4c403a;
  border-left: 5px solid var(--brand, var(--editorial-ember));
}

.guest-catalog-page .notice.error {
  color: #ffded1;
  background: #2a1a16;
  border-color: #773c2b;
}

.guest-catalog-page .guest-heading {
  align-items: end;
  margin: 16px 0 28px;
}

.guest-catalog-page .guest-heading .eyebrow {
  color: var(--editorial-brass);
}

.guest-catalog-page .guest-heading h1 {
  max-width: 12ch;
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: .9;
}

.guest-catalog-page .table-chip {
  max-width: 48vw;
  padding: 12px 17px;
  color: var(--editorial-ink);
  background: var(--editorial-bone);
  border-radius: 10px;
  font-size: .88rem;
  line-height: 1.25;
  white-space: normal;
  text-align: right;
}

.guest-catalog-page .table-customers {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 12px 18px;
  align-items: end;
  margin: 0 0 30px;
  padding: 24px;
  color: var(--editorial-bone);
  background: var(--editorial-ink-2);
  border: 1px solid #413833;
  border-radius: 16px;
}

.guest-catalog-page .table-customers label {
  grid-column: 1;
  margin: 0;
  color: #f7eee5;
  font-size: .9rem;
}

.guest-catalog-page .table-customers input {
  margin-top: 8px;
  color: var(--editorial-ink);
  background: var(--editorial-surface);
  border-color: #dacfc5;
}

.guest-catalog-page .table-customers button {
  grid-column: 2;
  grid-row: 1;
  min-height: 52px;
  color: var(--brand-contrast, #fff);
  background: var(--brand, var(--editorial-ember));
  border-color: var(--brand, var(--editorial-ember));
}

.guest-catalog-page .table-customers > p {
  grid-column: 1 / -1;
  color: #bfb3aa;
  font-size: .8rem;
}

.guest-catalog-page .guest-service,
.guest-catalog-page .pending {
  color: var(--editorial-bone);
  background: var(--editorial-ink-2);
  border-color: #453c36;
}

.guest-catalog-page .guest-service-actions button {
  color: var(--editorial-bone);
  background: var(--editorial-ink-3);
  border-color: #5a4e47;
}

.guest-catalog-page .table-layout {
  grid-template-columns: minmax(0, 1fr);
  gap: 30px;
}

.guest-catalog-page .menu-surface {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.guest-catalog-page .category-bar {
  gap: 9px;
  margin-bottom: 18px;
}

.guest-catalog-page .category-bar button,
.guest-catalog-page .section-bar button {
  min-height: 48px;
  color: #d4c9c0;
  background: var(--editorial-ink-2);
  border: 1px solid #463c36;
  border-radius: 9px;
}

.guest-catalog-page :where(.category-bar, .section-bar) button[aria-pressed="true"] {
  color: var(--brand-contrast, #fff);
  background: var(--brand, var(--editorial-ember));
  border-color: var(--brand, var(--editorial-ember));
}

.guest-catalog-page .menu-surface .search-field {
  margin: 0 0 18px;
  color: #cbbfb5;
  font-size: .8rem;
}

.guest-catalog-page .search-field input {
  margin-top: 8px;
  color: var(--editorial-ink);
  background: var(--editorial-surface);
  border-color: #d4c8bd;
}

.guest-catalog-page .section-bar {
  gap: 8px;
  padding: 0 0 22px;
  border: 0;
}

.guest-catalog-page .menu-products {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.guest-catalog-page .menu-section {
  display: contents;
}

.guest-catalog-page .section-title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.guest-catalog-page .product-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  gap: 0;
  min-height: 0;
  height: 100%;
  padding: 0;
  overflow: hidden;
  color: var(--editorial-bone);
  background: var(--editorial-ink-2);
  border: 1px solid #403732;
  border-radius: 16px;
}

.guest-catalog-page .product-image {
  grid-row: auto;
  width: 100%;
  height: auto;
  max-height: 310px;
  aspect-ratio: 4 / 3;
  border-radius: 0;
  background: transparent;
  object-fit: cover;
}

.guest-catalog-page .product-info {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  padding: 21px 21px 16px;
}

.guest-catalog-page .product-row.no-photo .product-info {
  padding-top: 28px;
}

.guest-catalog-page .product-info h4 {
  color: #fff8ef;
  font-family: var(--editorial-display);
  font-size: clamp(1.45rem, 2.3vw, 1.9rem);
  font-weight: 620;
  line-height: 1.08;
  letter-spacing: -.025em;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.guest-catalog-page .product-section-label {
  margin-bottom: 7px;
  color: var(--editorial-brass);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.25;
  text-transform: uppercase;
}

.guest-catalog-page .product-description {
  min-height: 3.2em;
  margin: 10px 0 0;
  color: #bfb3aa;
  font-size: .82rem;
  line-height: 1.6;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.guest-catalog-page .product-price {
  margin-top: auto;
  padding-top: 15px;
  color: #fffaf3;
  font-family: var(--editorial-display);
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
  font-weight: 670;
}

.guest-catalog-page .product-pricing-note {
  color: #cbbeb4;
}

.guest-catalog-page .add-product {
  grid-column: 1;
  justify-self: stretch;
  align-self: end;
  min-height: 50px;
  margin: 0 21px 21px;
  padding: 11px 16px;
  border-radius: 9px;
  font-size: .88rem;
}

.guest-catalog-page .cart {
  top: 22px;
  padding: 26px;
  color: var(--editorial-ink);
  background: var(--editorial-bone);
  border: 0;
  border-radius: 16px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .2);
}

@media (min-width: 768px) {
  .guest-catalog-page .cart {
    order: -1;
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    grid-template-areas:
      "kicker total"
      "title action"
      "lines footnote";
    gap: 8px 28px;
    align-items: start;
  }

  .guest-catalog-page .cart > .eyebrow {
    grid-area: kicker;
    margin: 0;
  }

  .guest-catalog-page .cart > h2 {
    grid-area: title;
  }

  .guest-catalog-page #cart-lines {
    grid-area: lines;
  }

  .guest-catalog-page .cart-total {
    grid-area: total;
    margin: 0;
  }

  .guest-catalog-page #send-order {
    grid-area: action;
  }

  .guest-catalog-page .cart-footnote {
    grid-area: footnote;
    margin: 0;
  }
}

.guest-catalog-page .cart .eyebrow {
  color: var(--editorial-ember-deep);
}

.guest-catalog-page .cart h2 {
  font-family: var(--editorial-display);
  font-size: 1.75rem;
  font-weight: 650;
}

.guest-catalog-page :where(.cart-empty, .cart-footnote, .cart-line small) {
  color: #665d57;
}

.guest-catalog-page .cart-line,
.guest-catalog-page .cart-total {
  border-color: #d8cec3;
}

.guest-catalog-page .cart-line button {
  color: #8b3724;
  background: transparent;
}

.guest-catalog-page .mobile-cart-link {
  background: var(--brand, var(--editorial-ember));
  color: var(--brand-contrast, #fff);
}

.guest-catalog-page #product-dialog {
  width: min(680px, calc(100% - 24px));
  padding: 0;
  color: var(--editorial-ink);
  background: var(--editorial-bone);
  border: 0;
  border-radius: 18px;
}

.guest-catalog-page #product-dialog form > :not(.product-dialog-media) {
  box-sizing: border-box;
  margin-right: 28px;
  margin-left: 28px;
  max-width: calc(100% - 56px);
}

.guest-catalog-page #product-dialog .dialog-heading {
  margin-top: 26px;
}

.guest-catalog-page #product-dialog .dialog-heading h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
}

.guest-catalog-page #product-dialog #product-description {
  color: #675d56;
}

.guest-catalog-page #product-dialog #product-price {
  color: var(--editorial-ember-deep);
  font-family: var(--editorial-display);
  font-size: 1.55rem;
}

.guest-catalog-page #product-dialog #close-product {
  color: var(--editorial-bone);
  background: var(--editorial-ink-2);
  border-color: var(--editorial-ink-2);
}

.guest-catalog-page #product-dialog #add-line {
  width: calc(100% - 56px);
  margin: 24px 28px 28px;
}

.guest-catalog-page #product-dialog :where(input, select, textarea) {
  color: var(--editorial-ink);
  background: var(--editorial-surface);
  border-color: #cfc4b9;
}

.guest-catalog-page dialog::backdrop {
  background: rgba(12, 10, 9, .82);
}

/* Operação: leitura imediata, densidade controlada e estados sólidos. */
body.operation-page,
body.cashier-page,
body.admin-page {
  color: var(--editorial-ink-2);
  background: var(--editorial-bone);
  --page-bg: var(--editorial-bone);
  --surface: var(--editorial-surface);
  --ink: var(--editorial-ink);
  --muted: #6a615b;
  --line: var(--editorial-line);
}

:where(.operation-page, .cashier-page) .app-header {
  min-height: 82px;
  height: auto;
  padding-block: 15px;
  background: var(--editorial-ink);
}

:where(.operation-page, .cashier-page) .app-header .brand {
  color: var(--editorial-bone);
  font-family: var(--editorial-display);
  font-weight: 650;
}

.operation-page main {
  max-width: 1600px;
}

.operation-page .page-heading h1,
.cashier-page .page-heading h1 {
  font-size: clamp(2.65rem, 5vw, 4.8rem);
  line-height: .92;
}

.operation-page .eyebrow,
.cashier-page .eyebrow {
  color: var(--editorial-ember-deep);
}

.operation-page .surface,
.cashier-page :where(.surface, .bill) {
  background: var(--editorial-surface);
  border-color: var(--editorial-line);
}

.operation-page .metrics {
  background: var(--editorial-surface);
  border-color: var(--editorial-line);
}

.operation-page .metric strong,
.cashier-page .amount-due strong {
  font-family: var(--editorial-display);
  font-variant-numeric: tabular-nums;
}

.operation-page .table-card {
  min-height: 190px;
  padding: 19px;
  background: var(--editorial-surface);
  border: 1px solid var(--editorial-line);
  border-radius: 12px;
}

.operation-page .table-card .table-number {
  font-family: var(--editorial-display);
  font-size: 2.25rem;
  font-weight: 650;
}

.operation-page .table-card.review {
  background: #fff4df;
  border-color: #d7a85f;
}

.operation-page .table-card.ready {
  background: #edf5ed;
  border-color: #9eb9a2;
}

.operation-page .table-card.occupied {
  border-color: color-mix(in srgb, var(--brand, var(--editorial-ember)), white 52%);
}

.operation-page .table-card .table-status {
  border-radius: 5px;
}

.operation-page .menu-surface {
  background: var(--editorial-surface);
}

.operation-page .product-row {
  grid-template-columns: 112px minmax(0, 1fr) minmax(112px, auto);
  gap: 18px;
  border-color: var(--editorial-line);
}

.operation-page .product-row.no-photo {
  grid-template-columns: minmax(0, 1fr) minmax(112px, auto);
}

.operation-page .product-image {
  width: 112px;
  height: 112px;
  border-radius: 12px;
}

.operation-page .product-info h4 {
  font-family: var(--editorial-display);
  font-size: 1.35rem;
  font-weight: 650;
}

.operation-page .product-section-label {
  display: none;
}

.operation-page .product-description {
  font-size: .82rem;
}

.operation-page .add-product {
  min-width: 112px;
}

.operation-page :where(.delivery-board, .arrival-board) {
  background: var(--editorial-ink-2);
  border-color: #3d3531;
}

.operation-page .back-button,
.cashier-page #back-bills {
  padding-inline: 0;
  color: var(--editorial-ember-deep);
  background: transparent;
  border-color: transparent;
}

.operation-page dialog,
.cashier-page dialog,
.admin-page dialog {
  color: var(--editorial-ink-2);
  background: var(--editorial-surface);
  border-color: #d2c7bc;
}

.operation-page #product-dialog {
  padding: 0;
  overflow: auto;
}

.operation-page #product-dialog form > :not(.product-dialog-media) {
  margin-right: 26px;
  margin-left: 26px;
}

.operation-page #product-dialog .dialog-heading {
  margin-top: 24px;
}

.operation-page #product-dialog #add-line {
  width: calc(100% - 52px);
  margin: 24px 26px 26px;
}

.operation-page :where(.alert-tools button, .preparation-alert button, .delivery-actions button, .arrival-actions button) {
  min-height: 44px;
}

.operation-page .arrival-seat button {
  flex: 0 0 auto;
}

/* Caixa: estados e valores permanecem legíveis a distância. */
.cashier-page main {
  max-width: 1500px;
}

.cashier-page .account-nav,
.cashier-page .queue-tabs {
  gap: 8px;
}

.cashier-page :where(.account-nav, .queue-tabs) button[aria-pressed="true"],
.cashier-page .account-nav button:first-child {
  color: var(--brand-contrast, #fff);
  background: var(--brand, var(--editorial-ember));
  border-color: var(--brand, var(--editorial-ember));
}

.cashier-page .bill {
  border-radius: 12px;
}

.cashier-page .bill h2,
.cashier-page #account-title {
  font-family: var(--editorial-display);
  font-weight: 650;
}

.cashier-page .methods label {
  min-height: 52px;
  color: var(--editorial-ink-2);
  background: var(--editorial-surface);
  border-color: #cfc5bc;
}

.cashier-page .methods label:has(input:checked) {
  color: var(--brand-contrast, #fff);
  background: var(--brand, var(--editorial-ember));
  border-color: var(--brand, var(--editorial-ember));
}

/* Administração: o conteúdo existente é preservado, com limites tipográficos. */
.admin-page {
  --admin-paper: var(--editorial-bone);
  --admin-surface: var(--editorial-surface);
  --admin-ink: var(--editorial-ink);
  --admin-line: var(--editorial-line);
  --admin-coral: var(--editorial-ember);
}

.admin-page .skip {
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
  transform: none;
}

.admin-page .skip:focus-visible {
  clip-path: none;
  width: auto;
  height: auto;
  overflow: visible;
  white-space: normal;
}

.admin-page .admin-header {
  background: var(--editorial-ink);
}

.admin-page .admin-heading::after {
  display: none;
}

.admin-page .admin-brand,
.admin-page .admin-heading h1,
.admin-page .section-heading h2,
.admin-page .menu-category-heading h3 {
  font-family: var(--editorial-display);
  font-weight: 650;
}

.admin-page :where(input, select, textarea) {
  font-size: 16px;
}

.admin-page .product-media-field input[type="file"] {
  font-size: 16px;
}

.admin-page :where(.admin-actions a, .admin-actions button, .admin-nav button, .text-action, .edit-product, .section-empty button, .reservation-card-actions button, .homologation-card-footer button) {
  min-height: 44px;
  font-size: max(14px, .76rem);
  line-height: 1.25;
}

.admin-page .menu-product-row.without-image {
  grid-template-columns: minmax(0, 1fr) auto;
}

.admin-page .product-media-field.no-preview {
  grid-template-columns: minmax(0, 1fr);
}

.admin-page .product-media-field.no-preview .product-image-preview {
  display: none;
}

.admin-page .brand-preview-logo[hidden] {
  display: none;
}

.admin-page .section-empty,
.admin-page .menu-empty {
  background: #f3eee8;
  border-color: #d9cec3;
}

.admin-page .menu-product-copy p {
  white-space: normal;
}

@media (max-width: 430px) {
  .admin-page .admin-heading {
    grid-template-columns: minmax(0, 1fr);
    overflow: visible;
  }

  .admin-page .admin-heading-copy,
  .admin-page .admin-heading h1 {
    min-width: 0;
    max-width: 100%;
  }

  .admin-page .admin-heading h1 {
    font-size: clamp(2.45rem, 12vw, 3.25rem);
    line-height: .96;
    letter-spacing: -.055em;
    overflow-wrap: anywhere;
  }
}

/* Movimento pontual: apresentação entra uma vez; operação repetida é instantânea. */
@media (prefers-reduced-motion: no-preference) {
  .guest-catalog-page #content:not([hidden]) > .guest-heading,
  .guest-catalog-page #content:not([hidden]) > .table-customers,
  .guest-catalog-page #content:not([hidden]) > .table-layout {
    animation: editorial-enter 260ms var(--editorial-ease) both;
  }

  body.editorial-system dialog[open] {
    animation: editorial-dialog-enter 220ms var(--editorial-ease) both;
  }

  @keyframes editorial-enter {
    from {
      opacity: 0;
      transform: translateY(8px);
      filter: blur(3px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
      filter: blur(0);
    }
  }

  @keyframes editorial-dialog-enter {
    from {
      opacity: 0;
      transform: translateY(8px) scale(.99);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .guest-catalog-page .product-row {
    transition: transform 180ms var(--editorial-ease), border-color 180ms var(--editorial-ease), background-color 180ms var(--editorial-ease);
  }

  .guest-catalog-page .product-image {
    transition: transform 240ms var(--editorial-ease), filter 240ms var(--editorial-ease);
  }

  .guest-catalog-page .product-row:hover {
    transform: translateY(-2px);
    border-color: #68564b;
  }

  .guest-catalog-page .product-row:hover .product-image {
    transform: scale(1.012);
    filter: saturate(1.05);
  }
}

@media (max-width: 1000px) {
  .operation-page .product-row,
  .operation-page .product-row.no-photo {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .operation-page .product-image {
    width: 92px;
    height: 92px;
    grid-row: span 2;
  }

  .operation-page .add-product {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 1100px) {
  .guest-catalog-page .menu-products {
    gap: 12px;
  }

  .guest-catalog-page .product-info {
    padding: 14px 12px 10px;
  }

  .guest-catalog-page .product-info h4 {
    font-size: 1.05rem;
    line-height: 1.12;
  }

  .guest-catalog-page .product-description {
    min-height: 3em;
    font-size: 14px;
    line-height: 1.5;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .guest-catalog-page .product-price {
    font-size: 1.1rem;
  }

  .guest-catalog-page .add-product {
    min-height: 46px;
    margin: 0 12px 12px;
    padding: 9px 8px;
    font-size: 14px;
  }
}

@media (max-width: 760px) {
  body.editorial-system {
    font-size: 17px;
  }

  .guest-catalog-page .app-header,
  :where(.operation-page, .cashier-page) .app-header {
    min-height: 76px;
    padding: 13px 18px;
  }

  .guest-catalog-page .app-header .brand {
    max-width: calc(100vw - 150px);
    font-size: 1.45rem;
  }

  .guest-catalog-page #refresh-menu {
    padding-inline: 12px;
    font-size: .82rem;
  }

  .guest-catalog-page .guest-main {
    padding: 28px 18px 96px;
  }

  .guest-catalog-page .guest-heading {
    align-items: flex-start;
    margin-top: 10px;
  }

  .guest-catalog-page .guest-heading h1 {
    font-size: clamp(3.1rem, 16vw, 4.5rem);
  }

  .guest-catalog-page .table-customers {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .guest-catalog-page .table-customers button {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
  }

  .guest-catalog-page .table-layout {
    grid-template-columns: 1fr;
  }

  .guest-catalog-page .cart {
    position: static;
  }

  .guest-catalog-page #product-dialog form > :not(.product-dialog-media),
  .operation-page #product-dialog form > :not(.product-dialog-media) {
    margin-right: 20px;
    margin-left: 20px;
    max-width: calc(100% - 40px);
  }

  .guest-catalog-page #product-dialog #add-line,
  .operation-page #product-dialog #add-line {
    width: calc(100% - 40px);
    margin-right: 20px;
    margin-left: 20px;
  }

  .product-dialog-media img {
    height: min(32vh, 240px);
  }

  .operation-page .product-row,
  .operation-page .product-row.no-photo {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .operation-page .product-image {
    width: 88px;
    height: 88px;
  }

  .operation-page .add-product {
    width: 100%;
  }

  .cashier-page .methods {
    grid-template-columns: 1fr;
  }

  .cashier-page .methods label {
    justify-content: flex-start;
    padding-inline: 16px;
  }
}

@media (max-width: 767px) {
  .guest-catalog-page .menu-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guest-catalog-page .cart {
    order: initial;
    display: block;
  }

  .guest-catalog-page .product-image {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .guest-catalog-page .product-description {
    min-height: 3em;
  }
}

@media (max-width: 420px) {
  .guest-catalog-page .app-header .brand {
    max-width: calc(100vw - 134px);
  }

  .guest-catalog-page .app-header .brand img {
    width: 42px;
    height: 42px;
  }

  .guest-catalog-page .table-chip {
    max-width: 44vw;
    padding: 10px 12px;
    font-size: .78rem;
  }

  .guest-catalog-page .category-bar,
  .guest-catalog-page .section-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guest-catalog-page .section-bar button:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .guest-catalog-page .product-info {
    padding: 12px 11px 9px;
  }

  .guest-catalog-page .add-product {
    margin: 0 11px 11px;
  }

  body.editorial-system dialog {
    max-width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.editorial-system *,
  body.editorial-system *::before,
  body.editorial-system *::after {
    animation: none !important;
    transition-duration: 0s !important;
    scroll-behavior: auto !important;
  }
}

/* Identidade do estabelecimento: o tema fornece pares fechados de fundo e
   texto. A empresa altera apenas o tema, o destaque e a logo; estados de
   atenção, pronto e erro continuam com as cores operacionais do produto. */
body.guest-catalog-page {
  color: var(--venue-text, var(--editorial-bone));
  background: var(--venue-canvas, var(--editorial-ink));
  --page-bg: var(--venue-canvas, var(--editorial-ink));
  --surface: var(--venue-surface, var(--editorial-ink-2));
  --ink: var(--venue-text, var(--editorial-bone));
  --muted: var(--venue-muted, #c3b9b0);
  --line: var(--venue-line, #433b36);
}

.guest-catalog-page .app-header {background:var(--venue-header,var(--editorial-ink));border-color:var(--venue-line,#332c28)}
.guest-catalog-page .app-header .brand {color:var(--venue-header-text,var(--editorial-bone))}
.guest-catalog-page .app-header .brand img {background:var(--venue-input,var(--editorial-surface))}
.guest-catalog-page #refresh-menu {color:var(--venue-header-text,#e8ded6);background:var(--venue-surface-raised,var(--editorial-ink-2));border-color:var(--venue-line,#4b413b)}
.guest-catalog-page .notice {color:var(--venue-surface-text,var(--editorial-bone));background:var(--venue-surface,var(--editorial-ink-2));border-color:var(--venue-line,#4c403a)}
.guest-catalog-page .guest-heading .eyebrow {color:var(--venue-text,var(--editorial-brass))}
.guest-catalog-page .table-chip {color:var(--venue-panel-text,var(--editorial-ink));background:var(--venue-panel,var(--editorial-bone))}
.guest-catalog-page .table-customers {color:var(--venue-surface-text,var(--editorial-bone));background:var(--venue-surface,var(--editorial-ink-2));border-color:var(--venue-line,#413833)}
.guest-catalog-page .table-customers label {color:var(--venue-surface-text,#f7eee5)}
.guest-catalog-page .table-customers input,
.guest-catalog-page .search-field input {color:var(--venue-input-text,var(--editorial-ink));background:var(--venue-input,var(--editorial-surface));border-color:var(--venue-line,#d4c8bd)}
.guest-catalog-page .table-customers>p,
.guest-catalog-page .menu-surface .search-field {color:var(--venue-muted,#bfb3aa)}
.guest-catalog-page .guest-service,
.guest-catalog-page .pending {color:var(--venue-surface-text,var(--editorial-bone));background:var(--venue-surface,var(--editorial-ink-2));border-color:var(--venue-line,#453c36)}
.guest-catalog-page .guest-service-actions button {color:var(--venue-header-text,var(--editorial-bone));background:var(--venue-header,var(--editorial-ink));border-color:var(--venue-header,var(--editorial-ink))}
.guest-catalog-page .category-bar button,
.guest-catalog-page .section-bar button {color:var(--venue-surface-text,#d4c9c0);background:var(--venue-surface,var(--editorial-ink-2));border-color:var(--venue-line,#463c36)}
.guest-catalog-page .product-row {color:var(--venue-card-text,var(--editorial-bone));background:var(--venue-card,var(--editorial-ink-2));border-color:var(--venue-line,#403732)}
.guest-catalog-page .product-info h4,
.guest-catalog-page .product-price {color:var(--venue-card-text,#fff8ef)}
.guest-catalog-page .product-section-label {color:var(--venue-highlight,var(--editorial-brass))}
.guest-catalog-page .product-description,
.guest-catalog-page .product-row .product-preparation,
.guest-catalog-page .product-pricing-note {color:var(--venue-card-muted,#bfb3aa)}
.guest-catalog-page .cart {color:var(--venue-panel-text,var(--editorial-ink));background:var(--venue-panel,var(--editorial-bone))}
.guest-catalog-page .cart .eyebrow,
.guest-catalog-page :where(.cart-empty,.cart-footnote,.cart-line small) {color:var(--venue-panel-muted,#665d57)}
.guest-catalog-page .cart-line,
.guest-catalog-page .cart-total {border-color:var(--venue-line,#d8cec3)}
.guest-catalog-page #product-dialog {color:var(--venue-panel-text,var(--editorial-ink));background:var(--venue-panel,var(--editorial-bone))}
.guest-catalog-page #product-dialog #product-description {color:var(--venue-panel-muted,#675d56)}
.guest-catalog-page #product-dialog #product-price {color:var(--venue-panel-text,var(--editorial-ink))}
.guest-catalog-page #product-dialog #close-product {color:var(--venue-card-text,var(--editorial-bone));background:var(--venue-card,var(--editorial-ink-2));border-color:var(--venue-card,var(--editorial-ink-2))}
.guest-catalog-page #product-dialog :where(input,select,textarea) {color:var(--venue-input-text,var(--editorial-ink));background:var(--venue-input,var(--editorial-surface));border-color:var(--venue-line,#cfc4b9)}
.guest-catalog-page dialog::backdrop {background:color-mix(in srgb,var(--venue-header,#0c0a09),transparent 12%)}

body.operation-page,
body.cashier-page {
  color:var(--venue-text,var(--editorial-ink-2));
  background:var(--venue-canvas,var(--editorial-bone));
  --page-bg:var(--venue-canvas,var(--editorial-bone));
  --surface:var(--venue-surface,var(--editorial-surface));
  --ink:var(--venue-text,var(--editorial-ink));
  --muted:var(--venue-muted,#6a615b);
  --line:var(--venue-line,var(--editorial-line));
}

:where(.operation-page,.cashier-page) .app-header {background:var(--venue-header,var(--editorial-ink));border-color:var(--venue-line,#3d3531)}
:where(.operation-page,.cashier-page) .app-header .brand {color:var(--venue-header-text,var(--editorial-bone))}
body:is(.operation-page,.cashier-page) :is(input,select,textarea) {color:var(--venue-input-text,var(--editorial-ink));background:var(--venue-input,var(--editorial-surface));border-color:var(--venue-line,#cfc4b9)}
.operation-page .eyebrow,
.cashier-page .eyebrow {color:var(--venue-text,var(--editorial-ink-2))}
.operation-page .surface,
.cashier-page :where(.surface,.bill),
.operation-page .metrics,
.operation-page .table-card,
.operation-page .menu-surface {color:var(--venue-surface-text,var(--editorial-ink-2));background:var(--venue-surface,var(--editorial-surface));border-color:var(--venue-line,var(--editorial-line))}
.operation-page .product-row {border-color:var(--venue-line,var(--editorial-line))}
.operation-page :where(.delivery-board,.arrival-board) {color:var(--venue-header-text,var(--editorial-bone));background:var(--venue-header,var(--editorial-ink-2));border-color:var(--venue-line,#3d3531)}
.operation-page .back-button,
.cashier-page #back-bills {color:var(--venue-text,var(--editorial-ink-2))}

/* Brand-tinted finishes share the editor's contrast-protected endpoints. */
.guest-catalog-page{background-image:radial-gradient(ellipse at 100% 0,var(--venue-canvas-finish,var(--venue-canvas)),transparent 65%)}
:where(.guest-catalog-page,.operation-page,.cashier-page) .app-header{background-image:linear-gradient(115deg,transparent,var(--venue-header-finish,var(--venue-header)))}
.guest-catalog-page .product-row{background-image:linear-gradient(145deg,var(--venue-card-finish,var(--venue-card)),transparent 80%)}
.guest-catalog-page .product-row{box-shadow:0 10px 24px #00000026,inset 0 1px 0 #ffffff18}
.guest-catalog-page .add-product{background-image:linear-gradient(115deg,transparent,var(--venue-action-finish,var(--brand)))}
.guest-catalog-page,:where(.guest-catalog-page,.operation-page,.cashier-page) .app-header,.guest-catalog-page .add-product{background-image:none}
.guest-catalog-page .product-row{border:1px solid #ffffff1f;box-shadow:inset 0 1px 0 #ffffff18,0 6px 18px #00000018}
.guest-catalog-page .product-row{background-image:var(--venue-card-image,none)}
.operation-page dialog,
.cashier-page dialog {color:var(--venue-panel-text,var(--editorial-ink-2));background:var(--venue-panel,var(--editorial-surface));border-color:var(--venue-line,#d2c7bc)}
.operation-page dialog,
.cashier-page dialog {
  --muted:var(--venue-panel-muted,#665d56);
  --ink:var(--venue-panel-text,#211c18);
}
.operation-page dialog .eyebrow,
.cashier-page dialog .eyebrow {color:var(--venue-panel-text,#211c18)}
.operation-page .order-item {color:var(--venue-surface-text,#211c18);background:var(--venue-surface,#fffdf8);border-color:var(--venue-line,#d8cdc0)}
.operation-page .order-item .customer-tag {color:var(--venue-surface-text,#211c18)}
.operation-page .order-item .notes {color:var(--venue-panel-text,#211c18);background:var(--venue-panel,#fff9f0)}
.operation-page .preorder {
  --muted:var(--venue-panel-muted,#665d56);
  color:var(--venue-panel-text,#211c18);
  background:var(--venue-panel,#fff9f0);
}
.operation-page .preorder-head span {color:var(--venue-panel-text,#211c18)}
.cashier-page .methods label {color:var(--venue-surface-text,var(--editorial-ink-2));background:var(--venue-surface,var(--editorial-surface));border-color:var(--venue-line,#cfc5bc)}
.operation-page .table-card.review,
.operation-page .table-card.ready {color:#211c18}

/* Header controls keep the header's own surface/text pair, including hover. */
:where(.operation-page,.cashier-page,.guest-catalog-page) .header-end button:hover {
  background:color-mix(in srgb,var(--venue-header,var(--editorial-ink)),var(--venue-header-text,var(--editorial-bone)) 12%);
  color:var(--venue-header-text,var(--editorial-bone));
}

.cashier-page :where(.queue-board,.pdv-overview) {
  color:var(--venue-panel-text,var(--editorial-ink));
  background:var(--venue-panel,var(--editorial-surface));
}
.cashier-page :where(.queue-description,.pdv-area-heading>span,.pdv-heading .muted) {
  color:var(--venue-panel-muted,#665d56);
}
.cashier-page .queue-tabs button:not([aria-pressed="true"]) {
  color:var(--venue-panel-text,var(--editorial-ink));
  background:var(--venue-panel,var(--editorial-surface));
}
.cashier-page .queue-tabs button:not([aria-pressed="true"]):hover {
  background:color-mix(in srgb,var(--venue-panel,var(--editorial-surface)),var(--venue-panel-text,var(--editorial-ink)) 8%);
}
