/* ══════════════════════════════════════════════
   STYLES — Hamburgueria Palmira
   Mobile-first, dark brand, OKLCH palette
══════════════════════════════════════════════ */

/* ── Reset ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background-color: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.65;
  min-height: 100dvh;
  /* Espaço para sticky bottom bar no mobile */
  padding-bottom: 72px;
}

@media (min-width: 1024px) { body { padding-bottom: 0; } }

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
ul, ol { list-style: none; }
address { font-style: normal; }

/* ── Container ──────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

/* ── Acessibilidade ─────────────────────────── */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Tipografia base ────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

p { text-wrap: pretty; }

.section-title {
  font-size: var(--text-h2);
  color: var(--color-ink);
  margin-bottom: var(--space-2);
}

.section-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--color-ink);
  margin-bottom: var(--space-6);
  max-width: 52ch;
}

/* ── Botões ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: var(--radius-md);
  transition:
    background var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-on-primary);
  padding: 14px 28px;
}
.btn-primary:hover { background: var(--color-primary-dim); }

.btn-outline {
  background: transparent;
  color: var(--color-ink);
  border: 1.5px solid var(--color-border);
  padding: 13px 27px;
}
.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-sm  { padding: 10px 20px; font-size: var(--text-sm); }
.btn-lg  { padding: 16px 32px; font-size: 1.0625rem; }
.btn-xl  { padding: 18px 40px; font-size: 1.125rem; }
.btn-full { width: 100%; }

/* ── Placeholders de imagem ─────────────────── */
.img-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--color-surface-2);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}

.img-placeholder--tall { aspect-ratio: 3 / 4; }

.img-placeholder-label {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-muted);
  text-align: center;
  padding-inline: var(--space-2);
}

/* ─────────────────────────────────────────────
   HEADER
───────────────────────────────────────────── */
.site-header {
  display: none; /* escondido no mobile */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  background: oklch(0.07 0 0 / 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  height: 64px;
}

@media (min-width: 1024px) { .site-header { display: flex; align-items: center; } }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-img { height: 44px; width: auto; display: block; object-fit: contain; }

/* ─────────────────────────────────────────────
   HERO
───────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-start;
  padding-top: clamp(1.5rem, 4svh, 3rem);
  padding-bottom: 88px; /* 72px sticky bar + 16px buffer */
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, var(--color-surface) 0%, transparent 70%),
    var(--color-bg);
}

@media (min-width: 1024px) {
  .hero {
    min-height: 92vh;
    padding-top: 64px;
    padding-bottom: var(--space-12);
    align-items: center;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  width: 100%;
  text-align: center;
  margin-inline: auto;
}

@media (min-width: 1024px) {
  .hero-content {
    display: flex;
    align-items: center;
    gap: var(--space-12);
    max-width: var(--container-max);
    text-align: left;
    margin-inline: auto;
  }
  .hero-text-col { flex: 1; min-width: 0; }
}

/* Logo no hero — só mobile */
.hero-logo {
  width: min(240px, 60vw);
  height: auto;
  margin-inline: auto;
  margin-bottom: var(--space-3);
  display: block;
}

@media (min-width: 1024px) {
  .hero-logo {
    display: block;
    order: 2;
    width: min(340px, 30vw);
    height: auto;
    margin: 0;
    flex-shrink: 0;
    filter: drop-shadow(0 0 48px oklch(0.73 0.172 65 / 0.30));
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-on-primary);
  background: var(--color-primary);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  margin-bottom: var(--space-4);
}

.hero-badge::before {
  content: '';
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-on-primary);
  animation: pulse 2s ease-in-out infinite;
}

.hero-badge.fechado {
  background: var(--color-surface-2);
  color: var(--color-muted);
}
.hero-badge.fechado::before { background: var(--color-muted); animation: none; }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-size: var(--text-hero);
  color: var(--color-ink);
  margin-bottom: var(--space-3);
  line-height: 1;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: oklch(0.72 0.012 85);
  max-width: 52ch;
  margin-bottom: var(--space-4);
  line-height: 1.6;
  margin-inline: auto;
}

.hero-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--space-2);
  justify-content: center;
}

.hero-actions .btn {
  flex: 1;
  text-align: center;
  justify-content: center;
  padding-inline: var(--space-2);
  font-size: 0.875rem;
}

@media (min-width: 640px) {
  .hero-actions {
    flex-wrap: wrap;
  }
  .hero-actions .btn {
    flex: unset;
    padding-inline: 32px;
    font-size: 1rem;
  }
}

@media (min-width: 1024px) {
  .hero-actions { justify-content: flex-start; }
}

/* ─────────────────────────────────────────────
   CARDÁPIO
───────────────────────────────────────────── */
.cardapio {
  padding-block: var(--section-py);
  background: var(--color-surface);
}

.cardapio-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-6);
}

.tab-btn {
  flex: 1;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-muted);
  padding: var(--space-2) var(--space-4);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  text-align: center;
  transition:
    color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out);
}

.tab-btn:hover { color: var(--color-ink); }

.tab-btn.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-4);
}

.menu-card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--dur-base) var(--ease-out);
}

.menu-card:hover { border-color: var(--color-primary-dim); }

.menu-card-img-wrap {
  position: relative;
  overflow: hidden;
}

.menu-card-img-wrap .img-placeholder {
  border-radius: 0;
  border: none;
  aspect-ratio: 4 / 3;
  min-height: 200px;
}

.menu-card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.size-picker {
  display: flex;
  gap: 6px;
  margin-bottom: var(--space-2);
}

.size-btn {
  flex: 1;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-muted);
  font-family: var(--font-body);
  font-size: var(--text-label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}

.size-btn:hover {
  border-color: var(--color-primary-dim);
  color: var(--color-ink);
}

.size-btn.active {
  background: var(--color-primary-deep);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.badge-lancamento {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  background: oklch(0.35 0.12 160);
  color: oklch(0.82 0.14 155);
  font-family: var(--font-body);
  font-size: var(--text-label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.adicional-destaque {
  border-color: var(--color-primary-dim);
  background: var(--color-primary-deep);
}

.adicional-destaque .adicional-nome { color: var(--color-ink); }
.adicional-destaque .adicional-preco { color: var(--color-primary); }

.badge-popular {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  background: var(--color-primary);
  color: var(--color-on-primary);
  font-family: var(--font-body);
  font-size: var(--text-label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.menu-card-body {
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.menu-card-title {
  font-size: var(--text-h3);
  color: var(--color-primary);
}

.menu-card-desc {
  font-size: var(--text-sm);
  color: var(--color-ink);
  line-height: 1.55;
  flex: 1;
}

.menu-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-top: var(--space-1);
}

.menu-card-price {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.375rem;
  color: var(--color-primary);
  letter-spacing: -0.01em;
}

/* Adicionais list */
.adicionais-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

@media (min-width: 768px) {
  .adicionais-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: var(--space-8);
  }
  .adicional-item:first-child { border-top: none; }
  .adicional-destaque { grid-column: 1 / -1; }
  .adicional-header    { grid-column: 1 / -1; }
}

.adicional-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
}

.adicional-item:first-child { border-top: 1px solid var(--color-border); }

.adicional-nome {
  font-size: var(--text-body);
  color: var(--color-ink);
}

.adicional-desc {
  display: block;
  font-size: var(--text-label);
  color: var(--color-muted);
  font-weight: 400;
  margin-top: 2px;
}

.adicional-header {
  font-size: var(--text-label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-muted);
  padding: var(--space-2) 0 var(--space-1);
  border-bottom: 1px solid var(--color-border);
  margin-top: var(--space-2);
}

.adicional-preco {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.125rem;
  color: var(--color-primary);
}

/* ─────────────────────────────────────────────
   DIFERENCIAIS
───────────────────────────────────────────── */
.diferenciais {
  padding-block: var(--section-py);
  background: var(--color-bg);
}

.diferenciais-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-8) var(--space-6);
}

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

.diferencial-icon-wrap {
  color: var(--color-primary);
  width: 32px;
  height: 32px;
}

.diferencial-divider {
  width: 40px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 1px;
  margin-block: var(--space-1);
}

.diferencial-title {
  font-size: var(--text-h3);
  color: var(--color-ink);
}

.diferencial-desc {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.6;
  max-width: 32ch;
}

/* ─────────────────────────────────────────────
   MINI-HISTÓRIA
───────────────────────────────────────────── */
.historia {
  padding-block: var(--section-py);
  background: var(--color-surface);
}

.historia-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .historia-inner {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

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

.historia-texto .section-title { margin-bottom: 0; }

.historia-texto p {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--color-muted);
  line-height: 1.7;
}

.historia-foto .img-placeholder--tall {
  border-radius: var(--radius-xl);
}

.historia-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-xl);
}

/* ─────────────────────────────────────────────
   PROVA SOCIAL
───────────────────────────────────────────── */
.prova-social {
  padding-block: var(--section-py);
  background: var(--color-bg);
}

.rating-destaque {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.rating-numero {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3.5rem, 8vw, 6rem);
  color: var(--color-primary);
  line-height: 1;
  letter-spacing: -0.04em;
}

.rating-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.rating-stars {
  display: flex;
  gap: 2px;
}

.star {
  font-size: 1.25rem;
  color: var(--color-border);
}
.star.filled { color: var(--color-primary); }

.rating-label {
  font-size: var(--text-sm);
  color: var(--color-muted);
  font-weight: 500;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.review-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.review-stars {
  color: var(--color-primary);
  font-size: 1rem;
  letter-spacing: 2px;
}

.review-texto {
  font-size: var(--text-sm);
  color: var(--color-ink);
  line-height: 1.65;
  flex: 1;
  font-style: italic;
}

.review-autor {
  font-size: var(--text-sm);
  color: var(--color-muted);
  font-weight: 600;
  font-style: normal;
}

.reviews-link-wrap { text-align: center; }

.link-externo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-primary);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--dur-fast) var(--ease-out);
}
.link-externo:hover { color: var(--color-primary-dim); }

/* ─────────────────────────────────────────────
   FAQ
───────────────────────────────────────────── */
.faq {
  padding-block: var(--section-py);
  background: var(--color-surface);
}

.faq .container { max-width: 720px; }
@media (min-width: 1024px) { .faq .container { max-width: 860px; } }

.faq-list { display: flex; flex-direction: column; }

.faq-item { border-top: 1px solid var(--color-border); }
.faq-item:last-child { border-bottom: 1px solid var(--color-border); }

.faq-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-block: var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--color-ink);
  text-align: left;
  transition: color var(--dur-fast) var(--ease-out);
}

.faq-btn:hover { color: var(--color-primary); }

.faq-chevron {
  flex-shrink: 0;
  color: var(--color-primary);
  transition: transform var(--dur-base) var(--ease-out);
}

.faq-btn[aria-expanded="true"] .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  overflow: hidden;
}

.faq-answer[hidden] { display: none; }

.faq-answer p {
  padding-bottom: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.7;
}

/* ─────────────────────────────────────────────
   LOCALIZAÇÃO
───────────────────────────────────────────── */
.localizacao {
  padding-block: var(--section-py);
  background: var(--color-bg);
}

.localizacao-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .localizacao-inner {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

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

.endereco, .horarios, .pagamentos {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.endereco p, .horarios p, .pagamentos p {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.6;
}

.endereco strong, .horarios strong, .pagamentos strong {
  color: var(--color-ink);
  font-weight: 600;
}

.horarios-obs {
  font-size: var(--text-label) !important;
  color: var(--color-muted);
  opacity: 0.7;
}

.pagamentos-lista {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}

.pagamento-tag {
  font-family: var(--font-body);
  font-size: var(--text-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-ink);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
}

.mapa-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.mapa-wrap iframe {
  display: block;
  width: 100%;
  min-height: 320px;
  filter: grayscale(0.3) contrast(0.9);
}

/* ─────────────────────────────────────────────
   CTA FINAL
───────────────────────────────────────────── */
.cta-final {
  padding-block: var(--section-py);
  background: var(--color-surface);
}

.cta-final-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.cta-final-title {
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  color: var(--color-ink);
  line-height: 1.05;
}

.cta-final-sub {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--color-muted);
  max-width: 46ch;
}

/* ─────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────── */
.site-footer {
  padding-block: var(--space-8);
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  text-align: center;
}

.footer-logo { height: 64px; width: 64px; object-fit: contain; }

.footer-copy, .footer-dev {
  font-size: var(--text-sm);
  color: var(--color-muted);
}

.footer-dev a {
  color: var(--color-primary);
  text-underline-offset: 3px;
}
.footer-dev a:hover { text-decoration: underline; }

/* ─────────────────────────────────────────────
   STICKY BOTTOM BAR — mobile
───────────────────────────────────────────── */
.sticky-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding: var(--space-2) var(--container-px);
  padding-bottom: calc(var(--space-2) + env(safe-area-inset-bottom, 0px));
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.sticky-bottom.is-visible { transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .sticky-bottom { transition: none; }
}

@media (min-width: 1024px) { .sticky-bottom { display: none; } }

/* ─────────────────────────────────────────────
   SCROLL REVEAL
───────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: opacity var(--dur-slow) var(--ease-out); transform: none; }
}

/* Stagger para grids */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
}

.reveal-stagger.visible > * { opacity: 1; transform: translateY(0); }

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 40ms; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 80ms; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 120ms; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 160ms; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 200ms; }
.reveal-stagger.visible > *:nth-child(7) { transition-delay: 240ms; }
.reveal-stagger.visible > *:nth-child(8) { transition-delay: 280ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal-stagger > * { transition: opacity var(--dur-slow) var(--ease-out); transform: none; }
}

/* ─────────────────────────────────────────────
   ORDER DIALOG — Bottom sheet de pedido
───────────────────────────────────────────── */
.order-dialog {
  position: fixed;
  inset: auto 0 0;
  width: 100%;
  max-width: 100%;
  max-height: 90svh;
  margin: 0;
  padding: 0;
  border: none;
  background: var(--color-surface);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  box-shadow: 0 -8px 48px oklch(0 0 0 / 0.65);
  overflow: hidden;
}

.order-dialog::backdrop {
  background: oklch(0 0 0 / 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.order-dialog[open] {
  animation: order-sheet-up var(--dur-slow) var(--ease-out) both;
}

@keyframes order-sheet-up {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.order-sheet {
  display: flex;
  flex-direction: column;
  padding: var(--space-3) var(--space-4) calc(var(--space-4) + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  max-height: 90svh;
}

.order-sheet-handle {
  width: 44px;
  height: 4px;
  background: var(--color-border);
  border-radius: var(--radius-pill);
  margin-inline: auto;
  margin-bottom: var(--space-3);
  flex-shrink: 0;
}

.order-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
  flex-shrink: 0;
}

.order-sheet-title {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  font-weight: 900;
  color: var(--color-ink);
  line-height: 1;
}

.order-sheet-close {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  background: var(--color-surface-2);
  color: var(--color-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.order-sheet-close:hover { color: var(--color-ink); background: var(--color-border); }

.order-sheet-body {
  display: flex;
  flex-direction: column;
  margin-bottom: var(--space-3);
}

/* ── Linha: item + qty ── */
.order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-2) 0;
}

.order-row-label {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 900;
  color: var(--color-ink);
  line-height: 1.2;
}

/* ── Stepper ── */
.order-qty-ctrl {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-surface-2);
  border-radius: var(--radius-pill);
  padding: 4px;
  flex-shrink: 0;
}

.order-qty-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  background: var(--color-bg);
  color: var(--color-ink);
  font-size: 1.25rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.order-qty-btn:hover { background: var(--color-primary); color: var(--color-on-primary); }

.order-qty-val {
  min-width: 26px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 900;
  color: var(--color-ink);
}

/* ── Divisor + título acompanhamentos ── */
.order-divider {
  height: 1px;
  background: var(--color-border);
  margin: var(--space-1) 0 var(--space-2);
}

.order-addons-title {
  font-size: var(--text-sm);
  color: var(--color-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-1);
}

/* Garante que [hidden] não seja sobrescrito pelo display:flex */
.order-qty-ctrl[hidden] { display: none !important; }

/* ── Addon row ── */
.order-addon-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-border);
}
.order-addon-row:last-child { border-bottom: none; }

.order-addon-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  flex: 1;
}

.order-addon-check {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.order-addon-checkmark {
  width: 22px;
  height: 22px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}

.order-addon-check:checked ~ .order-addon-checkmark {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.order-addon-check:checked ~ .order-addon-checkmark::after {
  content: '';
  display: block;
  width: 5px;
  height: 9px;
  border: 2px solid var(--color-on-primary);
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translate(-1px, -1px);
}

.order-addon-name {
  font-size: 1rem;
  color: var(--color-ink);
  line-height: 1.3;
}
.order-addon-price {
  font-size: var(--text-label);
  font-weight: 700;
  color: var(--color-primary);
  margin-left: 4px;
  white-space: nowrap;
}
.order-addon-row.order-addon-destaque {
  background: var(--color-primary-deep);
  border: 1px solid var(--color-primary-dim);
  border-radius: var(--radius-sm);
  padding: var(--space-1) var(--space-2);
  margin-bottom: var(--space-1);
}

/* ── Sub-opções (Batata Frita / Refrigerante) ── */
.order-subopts {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-1) 0 var(--space-1) var(--space-3);
}
.order-subopts--flush { padding-left: 0; }
.order-subopts[hidden] { display: none !important; }
.order-subopt {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  font-size: var(--text-body);
  color: var(--color-ink);
}
.order-subopt-radio {
  accent-color: var(--color-primary);
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  cursor: pointer;
}
.order-subopt-label {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  line-height: 1.35;
}

/* ── Preview da mensagem ── */
.order-preview {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  margin-bottom: var(--space-4);
}

.order-preview-label {
  font-size: var(--text-sm);
  color: var(--color-muted);
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.order-preview-text {
  font-size: var(--text-sm);
  color: var(--color-ink);
  white-space: pre-line;
  line-height: 1.75;
}

/* ── Desktop: modal centralizado ── */
@media (min-width: 640px) {
  .order-dialog {
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    width: 460px;
    max-width: 90vw;
    border-radius: var(--radius-xl);
    max-height: 85vh;
  }
  .order-dialog[open] {
    animation: order-modal-in var(--dur-slow) var(--ease-out) both;
  }
}

@keyframes order-modal-in {
  from { transform: translate(-50%, -50%) scale(0.95); opacity: 0; }
  to   { transform: translate(-50%, -50%) scale(1);    opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .order-dialog[open] { animation: none; }
}
