:root {
  --wine: #650b08;
  --red: #9d160e;
  --red-bright: #c72b15;
  --orange: #ff6410;
  --yellow: #ffc928;
  --cream: #f8d99c;
  --cream-light: #fff0c9;
  --ink: #390b06;
  --blue: #779cff;
  --green: #238452;
  --line: rgba(57, 11, 6, 0.22);
  --shadow: 6px 6px 0 var(--ink);
}

* { box-sizing: border-box; letter-spacing: 0; }
html, body { min-height: 100%; margin: 0; }
body, button, textarea, input { font-family: Arial, Helvetica, sans-serif; }
button { border: 0; border-radius: 4px; cursor: pointer; font-weight: 900; }
button:focus-visible, [role="button"]:focus-visible { outline: 4px solid var(--blue); outline-offset: 3px; }
button:disabled { cursor: not-allowed; opacity: .46; }

.client-v2 { min-height: 100dvh; overflow: hidden; color: var(--ink); background: var(--cream); }
.client-shell {
  display: grid;
  grid-template-rows: 68px minmax(0, 1fr);
  gap: 10px;
  width: min(1480px, calc(100% - 20px));
  height: calc(100dvh - 20px);
  margin: 10px auto;
}
.client-top {
  display: grid;
  grid-template-columns: 190px minmax(330px, 1fr) 128px;
  align-items: center;
  gap: 18px;
  min-width: 0;
  padding: 6px 10px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  color: var(--cream-light);
  background: var(--wine);
  box-shadow: 4px 4px 0 var(--orange);
}
.client-brand { display: flex; align-items: center; min-width: 0; }
.client-logo { display: grid; place-items: center; width: 176px; height: 52px; overflow: hidden; border-radius: 3px; background: var(--yellow); }
.client-logo img { width: 158px; height: 50px; object-fit: contain; }
.client-progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-self: center;
  width: min(520px, 100%);
  min-width: 0;
  border: 1px solid rgba(255, 240, 201, .34);
  border-radius: 4px;
  overflow: hidden;
}
.client-progress span { display: grid; place-items: center; min-height: 34px; padding: 0 8px; color: var(--cream); font-size: .73rem; font-weight: 900; text-transform: uppercase; }
.client-v2[data-screen="menu"] .step-menu,
.client-v2[data-screen="payment-choice"] .step-payment,
.client-v2[data-screen="payment"] .step-payment,
.client-v2[data-screen="done"] .step-done { color: var(--ink); background: var(--yellow); }
.client-ticket {
  display: grid;
  place-items: center;
  min-width: 124px;
  min-height: 46px;
  padding: 0 12px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  color: var(--wine);
  background: var(--yellow);
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 1.1rem;
  white-space: nowrap;
}

.client-screen { display: none; min-height: 0; }
.client-screen.active { animation: screen-in 150ms ease-out; }
#screen-payment-choice.active, #screen-payment.active, #screen-done.active { display: grid; }
#screen-menu.active { display: grid; grid-template-rows: 98px minmax(0, 1fr); gap: 10px; min-height: 0; }
.order-head {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  min-width: 0;
  padding: 12px 18px 12px 28px;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 5px;
  color: var(--cream-light);
  background: var(--wine) url('/web/assets/fundo-batata-cheddar.png') 70% 48% / cover no-repeat;
  box-shadow: 5px 5px 0 var(--orange);
}
.order-head::after { position: absolute; inset: 0; z-index: -1; background: rgba(57, 11, 6, .72); content: ""; }
.order-head p, .method-head p, .payment-info p, .done-card > p, .voice-message p { margin: 0; color: var(--yellow); font-size: .72rem; font-weight: 900; text-transform: uppercase; }
.order-head h2, .method-head h2 { margin: 2px 0 0; color: var(--cream-light); font-family: Impact, "Arial Black", sans-serif; font-size: 2.8rem; line-height: .94; text-transform: uppercase; }
.order-actions-top { display: flex; align-items: center; }
.voice-order-button {
  --voice-level: 0;
  display: grid;
  grid-template-columns: 46px auto;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 270px;
  min-height: 62px;
  padding: 5px 18px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  color: var(--ink);
  background: var(--yellow);
  box-shadow: 4px 4px 0 var(--orange);
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 1.12rem;
  text-transform: uppercase;
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.voice-order-button:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--orange); }
.voice-order-button.recording { color: var(--cream-light); background: var(--red-bright); }
.voice-order-button.processing { cursor: wait; color: var(--cream-light); background: var(--wine); }
.mic-visual { position: relative; display: grid; place-items: center; }
.voice-order-button .mic-visual { width: 44px; height: 44px; border: 2px solid var(--ink); border-radius: 50%; color: var(--cream-light); background: var(--red-bright); }
.mic-visual::before { width: 11px; height: 18px; border: 3px solid currentColor; border-radius: 7px; content: ""; }
.mic-visual::after { position: absolute; top: 24px; width: 21px; height: 11px; border-right: 3px solid currentColor; border-bottom: 3px solid currentColor; border-left: 3px solid currentColor; border-radius: 0 0 12px 12px; content: ""; }
.mic-visual i { position: absolute; top: 35px; width: 3px; height: 6px; border-radius: 2px; background: currentColor; }
.mic-visual[data-state="processing"]::before { width: 21px; height: 21px; border-color: currentColor transparent currentColor currentColor; border-radius: 50%; animation: voice-spin 700ms linear infinite; }
.mic-visual[data-state="processing"]::after, .mic-visual[data-state="processing"] i { display: none; }

.category-tabs { display: none; }
.menu-workspace { display: grid; grid-template-rows: minmax(0, 1fr) 112px; gap: 10px; min-height: 0; overflow: hidden; }
.full-menu-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr); gap: 12px; min-height: 0; }
.client-product-card {
  position: relative;
  display: grid;
  grid-template-rows: minmax(150px, 62%) minmax(52px, 1fr) 52px;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 6px;
  color: var(--ink);
  background: var(--cream-light);
  box-shadow: 5px 5px 0 rgba(57, 11, 6, .25);
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.client-product-card:hover, .client-product-card:focus-visible { transform: translateY(-2px); box-shadow: 6px 7px 0 rgba(57, 11, 6, .32); }
.client-product-card:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 rgba(57, 11, 6, .3); }
.client-product-card.selected { outline: 5px solid var(--yellow); outline-offset: -7px; }
.client-product-art { position: relative; display: grid; place-items: center; overflow: hidden; border-bottom: 2px solid var(--ink); background: var(--yellow); }
.client-product-card:nth-child(2) .client-product-art { background: var(--orange); }
.client-product-card:nth-child(3) .client-product-art { background: var(--red-bright); }
.client-product-art.has-photo::before { position: absolute; width: 205px; height: 205px; border-radius: 50%; background: var(--cream-light); content: ""; }
.client-product-art.has-photo img { position: relative; z-index: 1; display: block; width: min(78%, 250px); height: min(88%, 220px); object-fit: contain; filter: drop-shadow(7px 9px 0 rgba(57, 11, 6, .2)); user-select: none; }
.client-product-art:not(.has-photo) span { display: none; }
.product-qty { position: absolute; top: 10px; right: 10px; z-index: 3; display: grid; place-items: center; min-height: 32px; padding: 0 10px; border: 2px solid var(--ink); border-radius: 3px; color: var(--yellow); background: var(--wine); font-size: .74rem; font-weight: 900; }
.client-product-copy { display: grid; align-content: center; justify-items: center; min-height: 0; padding: 9px 12px; text-align: center; }
.client-product-copy small, .client-product-copy p { display: none; }
.client-product-copy strong { color: var(--wine); font-family: Impact, "Arial Black", sans-serif; font-size: 1.55rem; line-height: 1; text-transform: uppercase; }
.client-product-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; padding: 7px 9px; border-top: 1px solid var(--line); background: var(--cream-light); }
.client-product-bottom .price-empty { display: none; }
.client-product-bottom > span:not(.add-chip) { color: var(--wine); font-family: Impact, "Arial Black", sans-serif; font-size: 1.4rem; line-height: 1; white-space: nowrap; }
.add-chip { display: grid; place-items: center; min-height: 34px; padding: 0 13px; border: 2px solid var(--ink); border-radius: 3px; color: var(--ink) !important; background: var(--yellow); font-size: .76rem; font-weight: 900; text-transform: uppercase; }
.selected .add-chip { color: var(--cream-light) !important; background: var(--wine); }

.order-drawer { display: grid; grid-template-columns: 160px minmax(280px, 1fr) 150px 270px; align-items: stretch; gap: 8px; min-width: 0; min-height: 112px; padding: 8px; overflow: hidden; border: 2px solid var(--ink); border-radius: 4px; background: var(--cream-light); box-shadow: 4px 4px 0 var(--wine); }
.order-drawer-title { display: grid; align-content: center; gap: 7px; padding: 10px; color: var(--cream-light); background: var(--wine); text-align: center; }
.order-drawer-title h2 { margin: 0; color: var(--yellow); font-family: Impact, "Arial Black", sans-serif; font-size: 1.5rem; line-height: 1; text-transform: uppercase; }
.cart-count { color: var(--cream); font-size: .72rem; font-weight: 900; text-transform: uppercase; }
.order-drawer:has(.empty-cart-row) .cart-count { display: none; }
.summary-list { margin: 0; padding: 0; list-style: none; }
.order-drawer .summary-list { display: grid; align-content: center; gap: 3px; min-width: 0; min-height: 0; padding: 5px 8px; overflow: auto; border-left: 4px solid var(--orange); background: var(--cream); }
.cart-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 7px; min-width: 0; padding: 4px; border-bottom: 1px solid var(--line); }
.cart-row:last-child { border-bottom: 0; }
.cart-main { display: grid; grid-template-columns: 31px minmax(0, 1fr); align-items: center; gap: 7px; min-width: 0; }
.cart-main b { display: grid; place-items: center; min-height: 30px; color: var(--ink); background: var(--yellow); font-size: .74rem; }
.cart-main span { min-width: 0; color: var(--wine); font-size: .8rem; font-weight: 900; line-height: 1.15; overflow-wrap: anywhere; }
.cart-row > strong { color: var(--wine); font-size: .78rem; white-space: nowrap; }
.cart-row > strong.price-empty { display: none; }
.cart-row > button { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 1px solid var(--red); color: var(--red); background: transparent; font-size: 1rem; }
.empty-cart-row { display: grid; place-items: center; min-height: 62px; color: var(--red); font-size: .82rem; font-weight: 900; text-align: center; }
.order-drawer-total { display: grid; align-content: center; justify-items: center; gap: 4px; padding: 8px; border: 1px solid var(--line); }
.order-drawer-total > span { color: var(--red); font-size: .68rem; font-weight: 900; text-transform: uppercase; }
.total { margin: 0; color: var(--wine); font-family: Impact, "Arial Black", sans-serif; font-size: 1.15rem; text-align: center; }
.order-drawer-actions { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 7px; }
.confirm-button, .clear-button, .copy-button { width: 100%; min-height: 48px; padding: 0 14px; text-transform: uppercase; }
.confirm-button { border: 2px solid var(--ink); color: var(--ink); background: var(--yellow); box-shadow: 3px 3px 0 var(--orange); font-size: .9rem; }
.clear-button { border: 1px solid var(--red); color: var(--red); background: transparent; }
.order-drawer .confirm-button, .order-drawer .clear-button { height: 100%; }
.order-drawer .clear-button:disabled { display: none; }
.order-drawer .clear-button:disabled + .confirm-button { grid-column: 1 / -1; }
.drawer-status, .heard-text { display: none; }
.secure-voice-link { display: block; margin-top: 8px; color: var(--yellow); font-size: .72rem; font-weight: 900; text-decoration: underline; }
.voice-suggestions[hidden], .voice-suggestions:empty, .pix-panel[hidden], .cash-panel[hidden] { display: none !important; }
.voice-suggestions { display: flex; align-items: center; gap: 5px; min-width: 0; overflow: auto; }
.voice-suggestions span { color: var(--red); font-size: .7rem; font-weight: 900; }
.voice-suggestions button { min-height: 32px; padding: 0 8px; border: 1px solid var(--red); color: var(--red); background: transparent; white-space: nowrap; }

.voice-overlay[hidden] { display: none !important; }
.voice-overlay { min-height: 0; }
#screen-menu:has(.voice-overlay:not([hidden])) .order-head { display: none; }
.voice-dialog { display: grid; grid-template-columns: 82px minmax(0, 1fr) 250px; align-items: center; gap: 16px; width: 100%; height: 98px; min-width: 0; padding: 9px 14px; border: 2px solid var(--ink); border-radius: 5px; color: var(--ink); background: var(--yellow); box-shadow: 5px 5px 0 var(--orange); }
.voice-stage { position: relative; display: grid; place-items: center; width: 74px; height: 74px; }
.voice-ripple { position: absolute; width: calc(62px + var(--voice-level, .08) * 10px); height: calc(62px + var(--voice-level, .08) * 10px); border: 2px solid var(--ink); border-radius: 50%; background: var(--cream-light); }
.mic-visual-large { width: 50px; height: 50px; border: 2px solid var(--ink); border-radius: 50%; color: var(--cream-light); background: var(--wine); }
.mic-visual-large::after { top: 28px; }
.mic-visual-large i { top: 39px; }
.voice-message { display: grid; align-content: center; gap: 3px; min-width: 0; }
.voice-message h2 { margin: 0; color: var(--wine); font-family: Impact, "Arial Black", sans-serif; font-size: 1.65rem; line-height: 1; text-transform: uppercase; }
.voice-message > span { color: var(--red); font-size: .82rem; font-weight: 800; }
.voice-overlay-transcript { min-width: 0; overflow: hidden; color: var(--wine); font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.voice-overlay-transcript[hidden] { display: none; }
.voice-overlay-actions { display: grid; grid-template-columns: .8fr 1.2fr; gap: 8px; }
.voice-overlay-actions button { min-height: 54px; padding: 0 9px; border: 2px solid var(--ink); text-transform: uppercase; }
.voice-cancel-button { color: var(--ink); background: var(--cream-light); }
.voice-finish-button { color: var(--cream-light); background: var(--wine); box-shadow: 3px 3px 0 var(--orange); }
.voice-overlay[data-mode="processing"] .voice-finish-button, .voice-overlay[data-mode="processing"] .voice-cancel-button { visibility: hidden; }
.voice-overlay[data-mode="processing"] .voice-ripple { animation: processing-pulse 900ms ease-in-out infinite; }

.method-layout {
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(500px, 1.28fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-areas: "head head" "summary options" "actions actions";
  gap: 16px 20px;
  align-self: stretch;
  width: min(1180px, 100%);
  min-height: 0;
  margin: 0 auto;
  padding: 22px 26px;
  border-top: 10px solid var(--orange);
  border-bottom: 10px solid var(--wine);
  background: var(--cream-light);
}
.method-head { grid-area: head; padding-bottom: 12px; border-bottom: 2px solid var(--line); }
.method-head p { color: var(--red); }
.method-head h2 { color: var(--wine); font-size: 3rem; }
.method-summary { grid-area: summary; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 10px; min-height: 0; padding: 16px; border: 2px solid var(--ink); border-radius: 4px; color: var(--cream-light); background: var(--wine); }
.method-summary > strong, .method-summary > span { color: var(--yellow); font-weight: 900; }
.method-summary .summary-list { display: grid; align-content: start; gap: 5px; min-height: 0; overflow: auto; }
.method-summary .cart-row { grid-template-columns: minmax(0, 1fr) auto; }
.method-summary .cart-main span, .method-summary .cart-row > strong { color: var(--cream-light); }
.method-options { grid-area: options; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.method-card { position: relative; display: grid; grid-template-rows: auto 1fr auto; align-content: center; justify-items: start; gap: 14px; min-width: 0; min-height: 230px; padding: 24px; border: 3px solid var(--ink); border-radius: 6px; color: var(--ink); background: var(--yellow); box-shadow: 6px 6px 0 var(--ink); text-align: left; transition: transform 120ms ease, box-shadow 120ms ease; }
.method-card:last-child { color: var(--cream-light); background: var(--red-bright); }
.method-card:hover, .method-card:focus-visible { transform: translate(2px, 2px); box-shadow: 4px 4px 0 var(--ink); }
.method-card.active { outline: 5px solid var(--orange); outline-offset: -9px; transform: translate(3px, 3px); box-shadow: 3px 3px 0 var(--ink); }
.method-icon { display: grid; place-items: center; min-width: 64px; min-height: 52px; padding: 0 10px; border: 2px solid currentColor; font-family: Impact, "Arial Black", sans-serif; font-size: 1.35rem; }
.method-copy { display: grid; align-content: center; gap: 5px; }
.method-copy strong { font-family: Impact, "Arial Black", sans-serif; font-size: 2.6rem; line-height: 1; text-transform: uppercase; }
.method-copy small { color: inherit; font-size: .95rem; font-weight: 800; }
.method-card em { font-size: .74rem; font-style: normal; font-weight: 900; text-transform: uppercase; }
.method-card[aria-pressed="true"] em::before { content: "OK - "; }
.method-actions { grid-area: actions; display: grid; grid-template-columns: 190px minmax(280px, 1fr); gap: 9px 12px; }
.method-selection-status { grid-column: 1 / -1; margin: 0; color: var(--red); font-size: .82rem; font-weight: 900; text-align: center; }
.method-back { color: var(--ink); background: transparent; }
.method-continue { min-height: 58px; font-size: 1rem; }
.method-continue:disabled { color: rgba(57, 11, 6, .58); background: #e1c98f; box-shadow: none; }

.payment-card { display: grid; grid-template-columns: 290px minmax(0, 1fr); grid-template-areas: "info content" "cancel cancel"; gap: 18px; align-self: center; width: min(1100px, 100%); min-height: 490px; margin: 0 auto; padding: 22px; border-top: 10px solid var(--orange); border-bottom: 10px solid var(--wine); background: var(--cream-light); }
.payment-info { grid-area: info; display: grid; align-content: center; gap: 12px; min-width: 0; padding: 22px; color: var(--cream-light); background: var(--wine); }
.payment-info h2 { margin: 0; color: var(--yellow); font-family: Impact, "Arial Black", sans-serif; font-size: 3.7rem; line-height: .92; text-transform: uppercase; }
.payment-info strong { width: fit-content; padding: 8px 12px; border: 2px solid var(--ink); color: var(--ink); background: var(--yellow); font-size: 1rem; }
.payment-info span { color: var(--cream-light); font-weight: 800; line-height: 1.32; }
.pix-panel { grid-area: content; display: grid; grid-template-columns: 290px minmax(0, 1fr); align-items: center; gap: 20px; min-width: 0; }
.pix-panel img { width: 290px; height: 290px; border: 7px solid var(--yellow); background: white; box-shadow: 5px 5px 0 var(--ink); object-fit: contain; }
.pix-panel > div { min-width: 0; }
.pix-panel p { margin: 0 0 10px; color: var(--wine); font-size: 1rem; font-weight: 900; line-height: 1.3; }
.pix-details { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 8px; margin: 0 0 10px; }
.pix-details > span { display: grid; min-width: 0; padding: 9px 10px; border: 2px solid var(--wine); background: var(--yellow); }
.pix-details small { color: var(--wine); font-size: .64rem; font-weight: 900; line-height: 1.2; text-transform: uppercase; }
.pix-details strong { overflow-wrap: anywhere; color: var(--ink); font-size: 1rem; line-height: 1.25; }
.pix-panel textarea { width: 100%; height: 54px; resize: none; padding: 9px; border: 2px solid var(--ink); color: var(--ink); background: white; font-size: .7rem; }
.copy-button { margin: 9px 0; border: 2px solid var(--ink); color: var(--cream-light); background: var(--orange); box-shadow: 3px 3px 0 var(--ink); }
.pix-panel > div > small { display: block; color: var(--red); font-weight: 800; line-height: 1.28; }
.cash-panel { grid-area: content; display: grid; align-content: center; gap: 12px; min-height: 310px; padding: 34px; border-left: 12px solid var(--orange); background: var(--yellow); }
.cash-panel strong { color: var(--wine); font-family: Impact, "Arial Black", sans-serif; font-size: 3rem; text-transform: uppercase; }
.cash-panel b { width: fit-content; padding: 10px 14px; border: 3px solid var(--wine); color: var(--wine); background: var(--cream-light); font-size: 2rem; }
.cash-panel span { color: var(--red); font-size: 1rem; font-weight: 800; }
.payment-card > .clear-button { grid-area: cancel; justify-self: center; width: min(300px, 100%); min-height: 42px; }
.danger-client-action { color: var(--red); background: transparent; }

.done-card { display: grid; align-self: center; justify-self: center; justify-items: center; width: min(740px, 100%); padding: 38px; border-top: 10px solid var(--orange); border-bottom: 10px solid var(--yellow); color: var(--cream-light); background: var(--wine); text-align: center; }
.done-card h2 { margin: 8px 0 18px; color: var(--yellow); font-family: Impact, "Arial Black", sans-serif; font-size: 5rem; line-height: 1; text-transform: uppercase; }
.done-card .summary-list { display: grid; gap: 6px; width: min(500px, 100%); margin-bottom: 15px; }
.done-card .cart-row { grid-template-columns: minmax(0, 1fr) auto; color: var(--cream-light); text-align: left; }
.done-card .cart-main span, .done-card .cart-row > strong { color: var(--cream-light); }
.done-card > span, .done-card > small { margin-bottom: 16px; color: var(--cream-light); font-weight: 900; }
.start-order-button { width: min(340px, 100%); min-height: 60px; border: 2px solid var(--ink); color: var(--ink); background: var(--yellow); box-shadow: 4px 4px 0 var(--orange); font-size: 1rem; text-transform: uppercase; }

@keyframes voice-spin { to { transform: rotate(360deg); } }
@keyframes processing-pulse { 0%, 100% { transform: scale(.94); } 50% { transform: scale(1.06); } }
@keyframes screen-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1000px) {
  .client-top { grid-template-columns: 170px minmax(280px, 1fr) 112px; gap: 10px; }
  .client-logo { width: 158px; }
  .client-logo img { width: 146px; }
  .client-progress span { font-size: .66rem; }
  .client-ticket { min-width: 108px; }
  .order-drawer { grid-template-columns: 135px minmax(220px, 1fr) 130px 220px; }
  .client-product-copy strong { font-size: 1.25rem; }
  .add-chip { padding: 0 8px; font-size: .68rem; }
  .method-layout { grid-template-columns: 260px minmax(0, 1fr); padding: 18px; }
  .method-copy strong { font-size: 2.1rem; }
  .payment-card { grid-template-columns: 250px minmax(0, 1fr); }
  .pix-panel { grid-template-columns: 245px minmax(0, 1fr); }
  .pix-panel img { width: 245px; height: 245px; }
}

@media (min-width: 700px) and (max-width: 900px) and (orientation: portrait) {
  .client-shell { height: calc(100dvh - 16px); margin: 8px auto; }
  #screen-menu.active { grid-template-rows: 104px minmax(0, 1fr); }
  .menu-workspace { grid-template-rows: minmax(0, 1fr) 174px; }
  .full-menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); }
  .client-product-card { grid-template-rows: minmax(140px, 62%) minmax(52px, 1fr) 48px; }
  .client-product-art.has-photo::before { width: 165px; height: 165px; }
  .client-product-art.has-photo img { width: 185px; height: 180px; }
  .client-product-copy strong { font-size: 1.1rem; }
  .client-product-bottom { display: flex; padding: 6px; }
  .client-product-bottom > span:not(.add-chip) { font-size: 1.12rem; text-align: left; }
  .add-chip { min-height: 30px; padding: 0 7px; }
  .client-product-card:nth-child(3) { grid-column: 1 / -1; grid-template-columns: 42% minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) 50px; }
  .client-product-card:nth-child(3) .client-product-art { grid-column: 1; grid-row: 1 / 3; border-right: 2px solid var(--ink); border-bottom: 0; }
  .client-product-card:nth-child(3) .client-product-copy { grid-column: 2; grid-row: 1; }
  .client-product-card:nth-child(3) .client-product-bottom { grid-column: 2; grid-row: 2; display: flex; }
  .order-drawer { grid-template-columns: 140px minmax(0, 1fr) 130px; grid-template-rows: 92px 58px; }
  .order-drawer-title { grid-column: 1; grid-row: 1; }
  .order-drawer .summary-list { grid-column: 2; grid-row: 1; }
  .order-drawer-total { grid-column: 3; grid-row: 1; }
  .order-drawer-actions { grid-column: 1 / -1; grid-row: 2; }
  .method-layout { grid-template-columns: 1fr; grid-template-rows: auto auto minmax(300px, 1fr) auto; grid-template-areas: "head" "summary" "options" "actions"; }
  .method-summary { max-height: 190px; }
  .payment-card { grid-template-columns: 1fr; grid-template-areas: "info" "content" "cancel"; align-content: center; }
  .payment-info { grid-template-columns: auto auto 1fr; align-items: center; }
  .pix-panel { justify-self: center; width: min(650px, 100%); }
}

@media (max-width: 699px) {
  .client-v2 { overflow: auto; }
  .client-shell { grid-template-rows: auto auto; width: calc(100% - 12px); height: auto; min-height: calc(100dvh - 12px); margin: 6px auto; }
  .client-top { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 54px 34px; }
  .client-logo { width: 145px; height: 48px; }
  .client-logo img { width: 132px; height: 46px; }
  .client-ticket { min-width: 96px; min-height: 42px; }
  .client-progress { grid-column: 1 / -1; grid-row: 2; width: 100%; }
  .client-progress span { min-height: 30px; }
  #screen-menu.active { grid-template-rows: auto auto auto; }
  .order-head { grid-template-columns: 1fr; gap: 9px; padding: 14px; background-position: center; }
  .order-head h2 { font-size: 2.2rem; }
  .voice-order-button { width: 100%; min-width: 0; }
  .menu-workspace { grid-template-rows: auto auto; overflow: visible; }
  .full-menu-grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .client-product-card { grid-template-columns: 130px minmax(0, 1fr); grid-template-rows: 98px 48px; min-height: 146px; }
  .client-product-art { grid-row: 1 / 3; border-right: 2px solid var(--ink); border-bottom: 0; }
  .client-product-art.has-photo::before { width: 105px; height: 105px; }
  .client-product-art.has-photo img { width: 118px; height: 110px; }
  .client-product-copy { justify-items: start; text-align: left; }
  .client-product-copy strong { font-size: 1.18rem; }
  .order-drawer { grid-template-columns: 105px minmax(0, 1fr); grid-template-rows: 92px 56px 52px; height: auto; }
  .order-drawer-title { grid-column: 1; grid-row: 1; }
  .order-drawer .summary-list { grid-column: 2; grid-row: 1; }
  .order-drawer-total { grid-column: 1 / -1; grid-row: 2; grid-template-columns: auto auto; justify-content: space-between; }
  .order-drawer-actions { grid-column: 1 / -1; grid-row: 3; }
  .voice-dialog { grid-template-columns: 62px minmax(0, 1fr); grid-template-rows: auto auto; height: auto; min-height: 150px; }
  .voice-stage { width: 60px; height: 60px; }
  .voice-overlay-actions { grid-column: 1 / -1; }
  .voice-message h2 { font-size: 1.3rem; }
  .method-layout { grid-template-columns: 1fr; grid-template-rows: auto auto auto auto; grid-template-areas: "head" "summary" "options" "actions"; padding: 16px 12px; }
  .method-head h2 { font-size: 2.35rem; }
  .method-summary { min-height: 150px; }
  .method-options { grid-template-columns: 1fr; }
  .method-card { grid-template-columns: 62px minmax(0, 1fr) auto; grid-template-rows: 1fr; align-items: center; min-height: 112px; padding: 16px; }
  .method-copy strong { font-size: 1.8rem; }
  .method-actions { grid-template-columns: 1fr; }
  .method-selection-status { grid-column: 1; }
  .payment-card { grid-template-columns: 1fr; grid-template-areas: "info" "content" "cancel"; padding: 14px; }
  .payment-info { padding: 18px; }
  .payment-info h2 { font-size: 3rem; }
  .pix-panel { grid-template-columns: 1fr; justify-items: center; }
  .pix-panel img { width: min(270px, 100%); height: auto; aspect-ratio: 1; }
  .pix-panel > div { width: 100%; }
  .pix-details { grid-template-columns: 1fr; }
  .cash-panel strong { font-size: 2.3rem; }
  .done-card { padding: 26px 16px; }
  .done-card h2 { font-size: 4rem; }
}

/* v4.2: cardapio limpo, forte e facil de escanear. */
.client-v2 {
  background: #f8d99c;
  color: var(--ink);
}

.client-shell {
  width: min(1360px, calc(100% - 28px));
  height: calc(100dvh - 28px);
  margin: 14px auto;
  gap: 14px;
}

.client-top {
  grid-template-columns: 184px minmax(330px, 1fr) 132px;
  min-height: 70px;
  padding: 8px 12px;
  border: 0;
  border-radius: 14px;
  background: #650b08;
  box-shadow: 0 10px 0 rgba(57, 11, 6, .16);
}

.client-logo {
  width: 174px;
  height: 52px;
  border-radius: 10px;
  background: #ffc928;
}

.client-logo img { width: 156px; height: 48px; }

.client-progress {
  border: 1px solid rgba(255, 240, 201, .3);
  border-radius: 10px;
}

.client-progress span { min-height: 36px; color: #fff0c9; }
.client-ticket { border: 0; border-radius: 10px; background: #ffc928; }

#screen-menu.active {
  grid-template-rows: 96px minmax(0, 1fr);
  gap: 12px;
}

.order-head {
  min-height: 96px;
  padding: 14px 20px 14px 24px;
  border: 0;
  border-radius: 16px;
  background-position: 68% 48%;
  box-shadow: 0 10px 0 rgba(57, 11, 6, .15);
}

.order-head::after { background: linear-gradient(90deg, rgba(57, 11, 6, .92), rgba(57, 11, 6, .38)); }
.order-head h2 { font-size: clamp(2rem, 3.1vw, 3rem); }

.voice-order-button {
  min-width: 248px;
  min-height: 58px;
  border: 0;
  border-radius: 12px;
  background: #779cff;
  box-shadow: 0 7px 0 rgba(57, 11, 6, .24);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  text-transform: none;
}

.voice-order-button:hover { transform: translateY(-2px); box-shadow: 0 9px 0 rgba(57, 11, 6, .24); }
.voice-order-button.recording { background: #c72b15; }
.voice-order-button.processing { background: #390b06; }

.menu-workspace {
  grid-template-rows: minmax(0, 1fr) 124px;
  gap: 12px;
}

.full-menu-grid { gap: 14px; }

.client-product-card {
  grid-template-rows: minmax(150px, 58%) minmax(52px, 1fr) 52px;
  border: 0;
  border-radius: 16px;
  background: #fff0c9;
  box-shadow: 0 10px 0 rgba(57, 11, 6, .16);
}

.client-product-card:hover,
.client-product-card:focus-visible { transform: translateY(-3px); box-shadow: 0 13px 0 rgba(57, 11, 6, .2); }

.client-product-art { border-bottom: 0; }
.client-product-card:nth-child(1) .client-product-art { background: #ffc928; }
.client-product-card:nth-child(2) .client-product-art { background: #ff6410; }
.client-product-card:nth-child(3) .client-product-art { background: #779cff; }
.client-product-art.has-photo::before { width: 190px; height: 190px; }
.client-product-art.has-photo img { width: min(74%, 230px); height: min(86%, 215px); }

.client-product-copy { padding: 12px 16px 6px; }
.client-product-copy strong { font-size: clamp(1.25rem, 1.8vw, 1.75rem); }
.client-product-bottom { padding: 8px 14px 12px; border-top: 1px solid rgba(57, 11, 6, .13); }
.client-product-bottom > span:not(.add-chip) { font-size: 1.5rem; }
.add-chip { min-height: 38px; padding: 0 15px; border: 0; border-radius: 10px; background: #ffc928; }
.selected .add-chip { background: #650b08; }

.order-drawer {
  grid-template-columns: 176px minmax(260px, 1fr) 150px 250px;
  gap: 10px;
  min-height: 124px;
  padding: 10px;
  border: 0;
  border-radius: 16px;
  background: #fff0c9;
  box-shadow: 0 9px 0 rgba(57, 11, 6, .17);
}

.order-drawer-title { border-radius: 10px; background: #650b08; }
.order-drawer-title h2 { font-family: Arial, Helvetica, sans-serif; font-size: 1.1rem; letter-spacing: .03em; }
.order-drawer .summary-list { border-left: 0; border-radius: 10px; background: #f8d99c; }
.order-drawer-total { border: 0; border-radius: 10px; background: #ffc928; }
.order-drawer-actions { gap: 8px; }
.confirm-button { border: 0; border-radius: 10px; box-shadow: 0 5px 0 #ff6410; }
.clear-button { border: 1px solid rgba(57, 11, 6, .24); border-radius: 10px; }

.voice-overlay { width: 100%; }
.voice-dialog { border: 0; border-radius: 14px; background: #ffc928; box-shadow: 0 10px 0 rgba(57, 11, 6, .2); }

@media (max-width: 699px) {
  .client-shell { width: calc(100% - 16px); margin: 8px auto; }
  .client-top { border-radius: 12px; }
  .order-head { border-radius: 12px; }
  .voice-order-button { min-height: 56px; }
  .client-product-card { border-radius: 12px; box-shadow: 0 7px 0 rgba(57, 11, 6, .16); }
  .order-drawer { border-radius: 12px; box-shadow: 0 7px 0 rgba(57, 11, 6, .17); }
}

/* Android: layout compacto sem rolagem ou elementos cortados na horizontal. */
@media (max-width: 699px) {
  html, body, .client-v2 { max-width: 100%; overflow-x: hidden; }
  .client-v2 { overflow-y: auto; }
  .client-shell {
    display: grid;
    grid-template-rows: auto auto;
    width: calc(100% - 16px);
    max-width: calc(100vw - 16px);
    height: auto;
    min-height: calc(100dvh - 16px);
    margin: 8px auto;
    gap: 8px;
  }
  .client-top {
    grid-template-columns: minmax(0, 1fr) 86px;
    grid-template-rows: 48px 29px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 85px;
    padding: 6px 8px;
    gap: 4px 8px;
  }
  .client-logo { width: 130px; height: 42px; }
  .client-logo img { width: 120px; height: 40px; }
  .client-ticket { min-width: 86px; min-height: 38px; padding: 0 6px; font-size: .84rem; }
  .client-progress { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; min-width: 0; width: 100%; }
  .client-progress span { min-width: 0; min-height: 27px; padding: 0 4px; font-size: .55rem; }
  #screen-menu.active { grid-template-rows: auto auto auto; gap: 8px; min-width: 0; }
  .order-head {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    padding: 13px 14px;
    gap: 8px;
    background-position: center;
  }
  .order-head p { font-size: .62rem; }
  .order-head h2 { font-size: 1.78rem; }
  .order-actions-top { min-width: 0; }
  .voice-order-button { width: 100%; min-width: 0; min-height: 52px; }
  .menu-workspace { grid-template-rows: auto auto; min-width: 0; overflow: visible; gap: 8px; }
  .full-menu-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; width: 100%; min-width: 0; gap: 8px; }
  .client-product-card {
    grid-template-columns: 108px minmax(0, 1fr);
    grid-template-rows: 82px 44px;
    width: 100%;
    max-width: calc(100vw - 16px);
    min-width: 0;
    min-height: 126px;
    overflow: hidden;
  }
  .client-product-art { grid-column: 1; grid-row: 1 / 3; border-right: 0; border-bottom: 0; }
  .client-product-art.has-photo::before { width: 94px; height: 94px; }
  .client-product-art.has-photo img { width: 104px; height: 98px; }
  .client-product-copy { grid-column: 2; grid-row: 1; min-width: 0; padding: 8px 12px 3px; justify-items: start; text-align: left; }
  .client-product-copy strong { font-size: 1rem; line-height: 1.05; }
  .client-product-bottom { position: relative; grid-column: 2; grid-row: 2; min-width: 0; padding: 6px 10px; }
  .client-product-bottom > span:not(.add-chip) { font-size: 1.05rem; }
  .client-product-bottom .add-chip { display: none !important; }
  .client-product-card::after { content: "+ ADICIONAR"; position: absolute; left: 185px; bottom: 6px; z-index: 3; display: grid; place-items: center; width: 90px; min-height: 31px; border-radius: 8px; color: #390b06; background: #ffc928; font-size: .64rem; font-weight: 900; text-transform: uppercase; pointer-events: none; }
  .client-product-card.selected::after { content: "+ MAIS UM"; color: #fff0c9; background: #650b08; }
  .order-drawer {
    grid-template-columns: 94px minmax(0, 1fr);
    grid-template-rows: 76px 46px 44px;
    min-width: 0;
    min-height: 0;
    height: auto;
    padding: 7px;
    gap: 6px;
  }
  .order-drawer-title { grid-column: 1; grid-row: 1; padding: 7px; }
  .order-drawer-title h2 { font-size: .88rem; }
  .order-drawer .summary-list { grid-column: 2; grid-row: 1; min-width: 0; padding: 4px 6px; }
  .order-drawer-total { grid-column: 1 / -1; grid-row: 2; grid-template-columns: auto auto; justify-content: space-between; padding: 5px 10px; }
  .order-drawer-actions { grid-column: 1 / -1; grid-row: 3; min-width: 0; }
  .confirm-button, .clear-button { min-height: 38px; font-size: .74rem; }
  .voice-dialog { grid-template-columns: 62px minmax(0, 1fr); grid-template-rows: auto auto; height: auto; min-height: 150px; }
  .voice-stage { width: 60px; height: 60px; }
  .voice-overlay-actions { grid-column: 1 / -1; }
  .voice-message h2 { font-size: 1.3rem; }
  .method-layout { grid-template-columns: 1fr; grid-template-rows: auto auto auto auto; grid-template-areas: "head" "summary" "options" "actions"; padding: 16px 12px; }
  .method-options { grid-template-columns: 1fr; }
  .method-actions { grid-template-columns: 1fr; }
  .method-selection-status { grid-column: 1; }
  .payment-card { grid-template-columns: 1fr; grid-template-areas: "info" "content" "cancel"; padding: 14px; }
  .pix-panel { grid-template-columns: 1fr; justify-items: center; }
  .pix-panel img { width: min(270px, 100%); height: auto; aspect-ratio: 1; }
  .pix-panel > div { width: 100%; }
  .pix-details { grid-template-columns: 1fr; }
}
