/* Base editorial responsiva compartilhada por todos os cardápios */
:root {
  --bg: #faf8f4;
  --surface: #ffffff;
  --surface-soft: #f4f0e8;
  --border: #e7e0d4;
  --text: #1f241f;
  --text-muted: #5d645d;
  --accent: #456746;
  --accent-dark: #2f4a30;
  --accent-soft: #edf4ed;
  --highlight: #b85c38;
  --highlight-soft: #fdf2ec;
  --price-color: #1f241f;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 2px 10px rgba(20, 24, 20, 0.05), 0 10px 28px rgba(20, 24, 20, 0.04);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent-dark);
}

.hidden {
  display: none !important;
}

.menu-shell {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 16px 96px;
}

/* Hero */
.hero {
  position: relative;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 28px 18px 24px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
  align-items: center;
}

.hero-inner.no-media {
  grid-template-columns: 1fr;
}

.hero-inner.no-media .hero-desc {
  max-width: 66ch;
}

.hero-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.05;
  color: var(--text);
}

.hero-logo-img {
  height: clamp(40px, 6vw, 54px);
  width: auto;
  object-fit: contain;
}

.hero-tagline {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--accent);
}

.hero-desc {
  margin: 2px 0 0;
  font-size: 0.94rem;
  color: var(--text-muted);
  max-width: 48ch;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text-muted);
  border: 1px solid var(--border);
  text-decoration: none;
}

.hero-pill:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.hero-media {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}

.hero-media img {
  border-radius: 10px;
  max-height: 170px;
  width: 100%;
  object-fit: contain;
}

/* Destaque especial (ex: Menu Ráscal / Buffet) */
.featured-banner {
  margin: 20px 0 18px;
  background: linear-gradient(135deg, var(--surface) 0%, var(--accent-soft) 100%);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border));
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
  align-items: center;
}

.featured-kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.featured-banner h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1.15;
}

.featured-banner p {
  margin: 6px 0 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.featured-prices {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.featured-price-row {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.featured-price-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.featured-price-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent-dark);
  white-space: nowrap;
}

/* Barra fixa de busca + categorias */
.sticky-controls {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0 10px;
  margin-bottom: 18px;
}

.sticky-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.search-filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  flex: 1 1 240px;
}

.search-box svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 36px 10px 38px;
  font-family: inherit;
  font-size: 0.92rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
}

.clear-search-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: var(--surface-soft);
  color: var(--text-muted);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
}

.filter-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-right: 2px;
}

.filter-chip {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.filter-chip:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.filter-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.category-nav {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  border-top: 1px solid var(--border);
  padding-top: 8px;
}

.category-nav::-webkit-scrollbar {
  display: none;
}

.cat-pill {
  flex: 0 0 auto;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 5px 11px 7px;
  border-radius: 6px 6px 0 0;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.cat-pill:hover {
  color: var(--text);
  background: var(--surface-soft);
}

.cat-pill.active {
  color: var(--accent-dark);
  border-bottom-color: var(--accent);
  background: transparent;
}

/* Seções de categoria */
.menu-section {
  margin-bottom: 34px;
  scroll-margin-top: 132px;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--border);
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text);
}

.section-subtitle {
  margin: 3px 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.section-note-box {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 15px;
  margin-bottom: 14px;
  font-size: 0.88rem;
  color: var(--text);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
}

.subgroup-title {
  margin: 18px 0 10px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.subgroup-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Cards de pratos */
.items-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.dish-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 15px 16px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

.dish-card:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  box-shadow: var(--shadow);
}

.dish-card.is-picked {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent-soft) 55%, #fff);
}

.dish-thumb {
  width: 82px;
  height: 82px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border);
  background: var(--surface-soft);
}

.dish-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.dish-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.dish-name {
  margin: 0;
  font-size: 0.99rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.dish-desc {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.dish-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 2px;
}

.tag {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.tag-novo {
  background: var(--highlight-soft);
  color: var(--highlight);
  border: 1px solid color-mix(in srgb, var(--highlight) 35%, transparent);
}

.tag-veg {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.tag-destaque {
  background: #fef9c3;
  color: #854d0e;
}

.tag-info {
  background: var(--surface-soft);
  color: var(--text-muted);
}

.dish-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 6px;
}

.dish-prices {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: baseline;
}

.price-main {
  font-size: 1rem;
  font-weight: 800;
  color: var(--price-color);
  white-space: nowrap;
}

.price-variant {
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.price-variant strong {
  color: var(--price-color);
  font-weight: 800;
  font-size: 0.94rem;
}

.price-addon {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent-dark);
  background: var(--accent-soft);
  padding: 2px 8px;
  border-radius: 999px;
}

.pick-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  font-size: 1rem;
  font-weight: 700;
  transition: all 0.15s ease;
}

.pick-btn:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.dish-card.is-picked .pick-btn {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Rodapé de notas & unidades */
.info-footer {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.footer-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}

.footer-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.3rem;
}

.units-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.units-list li {
  font-size: 0.8rem;
  background: var(--surface-soft);
  color: var(--text);
  padding: 4px 10px;
  border-radius: 999px;
}

.footnotes {
  margin: 0;
  padding-left: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.powered-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Barra flutuante "Minha Escolha da Mesa" */
.table-bar {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 40;
  background: var(--text);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 20px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

.table-bar-count {
  background: var(--accent);
  color: #fff;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.8rem;
}

/* Modal de prato e lista da mesa */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(18, 22, 18, 0.56);
  display: grid;
  place-items: center;
  padding: 16px;
  z-index: 60;
}

.modal-sheet {
  width: 100%;
  max-width: 520px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--surface);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  border: none;
  background: var(--surface-soft);
  color: var(--text);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
}

.modal-photo {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 14px;
}

.modal-title {
  margin: 0 36px 8px 0;
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1.15;
}

.modal-desc {
  margin: 0 0 14px;
  font-size: 0.94rem;
  color: var(--text-muted);
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.btn-accent {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-accent:hover {
  background: var(--accent-dark);
}

.btn-soft {
  background: var(--surface-soft);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.picked-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 14px 0;
}

.picked-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface-soft);
}

.empty-search {
  text-align: center;
  padding: 40px 20px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
}

@media (max-width: 780px) {
  .hero-inner,
  .featured-banner,
  .items-grid,
  .info-footer {
    grid-template-columns: 1fr;
  }

  .hero-media {
    order: -1;
  }
}
