/* ==========================================================================
   Cardápio Digital — Caminho da Praia (Barra Grande - PI)
   Refatoração Mobile-First (360–430px) → Tablet → Desktop
   Hierarquia: USABILIDADE → CONTEÚDO → NAVEGAÇÃO → IDENTIDADE VISUAL
   ========================================================================== */

:root {
  --blue: #025fb9;
  --blue-deep: #013a78;
  --ink: #061b36;
  --cream: #fff8ec;
  --cream-2: #faeed4;
  --red: #d93829;
  --coral: #e85d32;
  --gold: #f5b82e;
  --gold-warm: #e6a71e;
  --green: #0d825f;
  --sand: #f0e4cf;

  --f-display: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --f-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --topbar-h: 80px;
  --catnav-h: 50px;
  --pad: clamp(14px, 4.5vw, 28px);
  --maxw: 1200px;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 8px rgba(6, 27, 54, .06);
  --shadow-md: 0 8px 24px -6px rgba(6, 27, 54, .14);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

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

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--f-display);
  font-optical-sizing: auto;
  font-weight: 400;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* Grão sutil de textura artesanal */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 150;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

body.is-locked { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 6px;
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 12px;
  z-index: 300;
  padding: 10px 16px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  border-radius: 0 0 12px 12px;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

main:focus { outline: none; }

/* ==========================================================================
   HEADER / TOPBAR COMPACTO MOBILE
   ========================================================================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 70;
  height: 80px;
  padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(247, 247, 247, .96);
  box-shadow: 0 10px 35px #142b4014;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: none;
  view-transition-name: topbar;
}

/* Logotipo oficial sem efeito de fundo ou borda */
.topbar-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex: none;
  border-radius: 0;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  transition: transform .2s var(--ease);
}
.topbar-brand:active { transform: scale(.94); }
.topbar-brand img {
  width: auto;
  height: 56px;
  max-height: 56px;
  border-radius: 0;
  background: transparent;
  padding: 0;
  border: none;
  box-shadow: none;
  object-fit: contain;
}

/* Alternância Café | Almoço */
.menu-switch {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(230px, 54vw);
  padding: 3px;
  border-radius: var(--radius-pill);
  background: rgba(6, 27, 54, .08);
  box-shadow: inset 0 0 0 1px rgba(6, 27, 54, .1);
}
.menu-switch-btn {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 34px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-weight: 750;
  font-size: .78rem;
  line-height: 1.1;
  text-align: center;
  color: var(--ink);
  opacity: .75;
  transition: color .25s, opacity .25s;
}
.menu-switch-btn[aria-current="true"] {
  color: var(--ink);
  opacity: 1;
}
.menu-switch-thumb {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(50% - 3px);
  border-radius: var(--radius-pill);
  background: var(--gold);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
  transition: translate .35s var(--ease);
}
body[data-menu="almoco"] .menu-switch-thumb { translate: 100% 0; }

/* Seletor de Idioma (somente bandeiras) */
.lang {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: none;
}
.lang-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  opacity: .5;
  transition: opacity .2s, transform .2s;
  position: relative;
}
.lang-option img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
  transition: box-shadow .2s, transform .2s;
}
.lang-option.is-active {
  opacity: 1;
}
.lang-option.is-active img {
  box-shadow: 0 0 0 2px var(--gold), 0 2px 8px rgba(0, 0, 0, .35);
  transform: scale(1.08);
}
.lang-option:hover { opacity: .9; }
.lang-option:active { transform: scale(.92); }

/* ==========================================================================
   ELEMENTOS DE IDENTIDADE & GRÁFICOS COSTEIROS
   ========================================================================== */
.deco {
  position: absolute;
  pointer-events: none;
  user-select: none;
  max-width: none;
}
.deco-costa {
  color: var(--gold);
  opacity: .2;
}
.deco-vento {
  color: #ffffff;
  opacity: .18;
}

.kicker {
  margin: 0 0 8px;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}

/* ==========================================================================
   TELA INICIAL (LANDING) MOBILE-FIRST
   ========================================================================== */
.landing {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: calc(100dvh - var(--topbar-h));
  padding: 24px var(--pad) 72px;
  color: var(--cream);
  background:
    radial-gradient(100% 60% at 90% 0%, #0a73dc 0%, transparent 60%),
    radial-gradient(80% 50% at 10% 100%, #013166 0%, transparent 70%),
    var(--blue);
}

.landing .deco-a {
  width: clamp(260px, 70vw, 420px);
  height: auto;
  top: -40px;
  right: -60px;
  animation: float-waves 24s ease-in-out infinite alternate;
}
.landing .deco-b {
  width: clamp(220px, 60vw, 360px);
  height: auto;
  bottom: 80px;
  left: -50px;
  animation: float-wind 18s ease-in-out infinite alternate;
}

@keyframes float-waves {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(22px) rotate(6deg); }
}
@keyframes float-wind {
  0% { transform: translateX(0) rotate(0deg); }
  100% { transform: translateX(18px) rotate(-4deg); }
}

.landing-head {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

.landing-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.landing-logo {
  width: 56px;
  height: 56px;
  border-radius: 0;
  background: transparent;
  padding: 0;
  border: none;
  box-shadow: none;
  object-fit: contain;
}
.landing-head .kicker {
  color: var(--gold);
  margin: 0;
}

.landing-title {
  margin: 0;
  font-weight: 800;
  line-height: .92;
}
.landing-title span { display: block; }
.lt-1 {
  font-size: clamp(1.2rem, 5.2vw, 1.8rem);
  font-weight: 600;
  letter-spacing: -.01em;
  color: rgba(255, 248, 236, .92);
}
.lt-2 {
  font-size: clamp(2.5rem, 13vw, 5.4rem);
  font-stretch: 80%;
  letter-spacing: -.03em;
  text-transform: uppercase;
  color: #ffffff;
}
.lt-3 {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(3rem, 15vw, 6.2rem);
  letter-spacing: -.02em;
  color: var(--gold);
  margin-top: -.08em;
}

.landing-lead {
  max-width: 32ch;
  margin: 14px 0 0;
  font-family: var(--f-serif);
  font-size: clamp(1.1rem, 4.2vw, 1.4rem);
  line-height: 1.25;
  color: var(--cream-2);
}

/* Cards Café e Almoço na Landing */
.choices {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 580px;
  margin: 28px auto 0;
}

.choice {
  position: relative;
  display: block;
  text-decoration: none;
  color: var(--ink);
  background: var(--cream);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, .28);
  border: 1px solid rgba(255, 255, 255, .3);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.choice--lunch {
  background: var(--cream-2);
}
.choice:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px -6px rgba(0, 0, 0, .35);
}
.choice:active {
  transform: scale(.98);
}

.choice-media {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 8 / 9;
  overflow: hidden;
  background: var(--blue-deep);
}
.choice-media img,
.choice-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.choice--lunch .choice-media img {
  object-position: 50% 60%;
}
.choice:hover .choice-media img,
.choice:hover .choice-media video {
  transform: scale(1.05);
}

.choice-badge {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  font-weight: 800;
  font-size: 1.15rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
}
.choice--lunch .choice-badge {
  background: var(--coral);
  color: #ffffff;
}

.choice-body {
  display: block;
  padding: 16px 18px 18px;
}
.choice-title {
  display: block;
  font-size: clamp(1.25rem, 5vw, 1.6rem);
  font-weight: 800;
  font-stretch: 80%;
  line-height: 1;
  letter-spacing: -.02em;
  text-transform: uppercase;
  color: var(--ink);
}
.choice-sub {
  display: block;
  margin-top: 6px;
  font-size: .88rem;
  line-height: 1.35;
  color: #3b4c68;
}
.choice-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  background: var(--blue);
  color: #ffffff;
  font-weight: 750;
  font-size: .88rem;
  transition: background .2s, gap .2s;
}
.choice:hover .choice-cta {
  background: var(--blue-deep);
  gap: 12px;
}
.choice--lunch .choice-cta {
  background: var(--red);
}
.choice--lunch:hover .choice-cta {
  background: #b5271a;
}

.waves {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 28px;
  color: var(--cream);
}

/* ==========================================================================
   CARDÁPIO: HERO & CABEÇALHO DO MENU
   ========================================================================== */
.menu-view {
  background: var(--cream);
  min-height: calc(100dvh - var(--topbar-h));
}

.menu-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 22px var(--pad) 38px;
  background: var(--cream-2);
  color: var(--blue-deep);
  border-bottom: 1px solid rgba(6, 27, 54, .08);
}
.menu-view[data-theme="almoco"] .menu-hero {
  background: var(--blue-deep);
  color: var(--cream);
  border-bottom: none;
}

.hero-wave {
  width: clamp(200px, 50vw, 340px);
  height: auto;
  right: -40px;
  top: -20px;
  opacity: .18;
}
.menu-view[data-theme="almoco"] .hero-wave {
  opacity: .14;
}

.menu-hero .kicker {
  color: var(--red);
}
.menu-view[data-theme="almoco"] .menu-hero .kicker {
  color: var(--gold);
}

.menu-title {
  margin: 0;
  font-size: clamp(2.2rem, 9.5vw, 4.4rem);
  font-weight: 800;
  font-stretch: 80%;
  line-height: .92;
  letter-spacing: -.03em;
  text-transform: uppercase;
  outline: none;
}
.menu-title em {
  font-family: var(--f-serif);
  font-weight: 400;
  font-stretch: 100%;
  text-transform: none;
  color: var(--red);
}
.menu-view[data-theme="almoco"] .menu-title em {
  color: var(--gold);
}

.menu-tagline {
  max-width: 32ch;
  margin: 10px 0 0;
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(1.1rem, 4vw, 1.45rem);
  line-height: 1.2;
}

/* ==========================================================================
   BARRA DE NAVEGAÇÃO HORIZONTAL DE CATEGORIAS (STICKY)
   ========================================================================== */
.catnav {
  position: sticky;
  top: var(--topbar-h);
  z-index: 50;
  background: rgba(255, 248, 236, .96);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1.5px solid rgba(6, 27, 54, .12);
  box-shadow: 0 4px 14px -6px rgba(6, 27, 54, .08);
}

.catnav-list {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px var(--pad);
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.catnav-list::-webkit-scrollbar { display: none; }

.catnav-link {
  flex: none;
  scroll-snap-align: center;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-weight: 750;
  font-size: .82rem;
  white-space: nowrap;
  background: #ffffff;
  color: var(--ink);
  transition: background .2s, color .2s, border-color .2s;
  -webkit-tap-highlight-color: transparent;
}
.catnav-link[aria-current="true"] {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
  box-shadow: 0 2px 6px rgba(6, 27, 54, .25);
}

/* ==========================================================================
   SEÇÕES DE CATEGORIA & CABEÇALHOS
   ========================================================================== */
.menu-body {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad) 48px;
}

.cat {
  --cat-accent: var(--coral);
  position: relative;
  padding-top: 24px;
  /* Espaço para o cabeçalho não ficar encoberto pelo header sticky */
  scroll-margin-top: calc(var(--topbar-h) + var(--catnav-h) + 14px);
}
.cat:nth-child(5n+1) { --cat-accent: var(--coral); }
.cat:nth-child(5n+2) { --cat-accent: var(--blue); }
.cat:nth-child(5n+3) { --cat-accent: var(--red); }
.cat:nth-child(5n+4) { --cat-accent: var(--green); }
.cat:nth-child(5n+5) { --cat-accent: #c48300; }

.cat-head {
  position: relative;
  margin-bottom: 14px;
}
.cat-badge-line {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cat-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--cat-accent);
  color: #ffffff;
  font-size: .72rem;
  font-weight: 800;
  flex: none;
}
.cat-title {
  margin: 0;
  font-size: clamp(1.3rem, 5.5vw, 2rem);
  font-weight: 800;
  font-stretch: 80%;
  line-height: 1.1;
  letter-spacing: -.02em;
  text-transform: uppercase;
  color: var(--ink);
}
.cat-tagline {
  margin: 6px 0 0;
  font-family: var(--f-serif);
  font-style: italic;
  font-size: .95rem;
  line-height: 1.25;
  color: #3b4c68;
}
.cat-note {
  display: inline-block;
  margin: 6px 0 0;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(6, 27, 54, .08);
  color: var(--ink);
  font-size: .75rem;
  font-weight: 700;
}

/* ==========================================================================
   CARDS DE PRATOS — MOBILE FIRST
   Densidade alta: 2 a 3 pratos visíveis por tela
   Conteúdo essencial 100% visível por padrão
   ========================================================================== */
.dishes {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card {
  position: relative;
  background: #ffffff;
  border-radius: var(--radius);
  border: 1.5px solid rgba(6, 27, 54, .12);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  opacity: 1; /* Regra obrigatória: NUNCA invisível */
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
}

/* 3.1 CARD COM FOTOGRAFIA (LAYOUT HORIZONTAL COMPACTO) */
.card.card--has-media {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  align-items: stretch;
}

.card-media {
  position: relative;
  width: 88px;
  height: 88px;
  min-height: 88px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--cream-2);
  align-self: start;
  flex: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.illus-tag {
  position: absolute;
  left: 3px;
  right: 3px;
  bottom: 3px;
  padding: 2px 4px;
  border-radius: 6px;
  background: rgba(6, 27, 54, .82);
  color: #ffffff;
  font-size: .52rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  pointer-events: none;
}

/* 3.2 CARD SEM FOTOGRAFIA (LARGURA TOTAL, TIPOGRAFIA COMPACTA) */
.card.card--no-media {
  display: flex;
  flex-direction: column;
  padding: 12px 14px;
  border-left: 4px solid var(--cat-accent, var(--blue));
}

.card-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  justify-content: space-between;
}

.card-head-line {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.card-name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 750;
  line-height: 1.18;
  letter-spacing: -.01em;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.card-unit {
  display: inline-block;
  align-self: flex-start;
  padding: 1px 7px;
  border-radius: var(--radius-pill);
  background: var(--cream-2);
  font-size: .7rem;
  font-weight: 700;
  color: var(--blue-deep);
}

.card-desc {
  margin: 4px 0 0;
  font-size: .82rem;
  line-height: 1.34;
  color: #3b4c68;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card--no-media .card-desc {
  -webkit-line-clamp: 3;
  font-size: .84rem;
}

.unavail-tag {
  margin: 4px 0 0;
  font-size: .75rem;
  font-weight: 700;
  color: var(--red);
}
.card.is-unavailable { opacity: .65; }
.card.is-unavailable .price { text-decoration: line-through; }

/* Rodapé do card: preço e botões */
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  padding-top: 6px;
}
.card--no-media .card-foot {
  border-top: 1px dashed rgba(6, 27, 54, .08);
}

.price {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1;
  color: var(--blue-deep);
  white-space: nowrap;
}
.price small {
  font-size: .58em;
  font-weight: 700;
  margin-right: .15em;
  vertical-align: .28em;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.details-btn,
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 38px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-pill);
  background: #ffffff;
  color: var(--ink);
  font-weight: 750;
  cursor: pointer;
  transition: background .2s, color .2s, transform .15s;
  -webkit-tap-highlight-color: transparent;
}
.details-btn {
  padding: 0 10px;
  font-size: .76rem;
}
.icon-btn {
  width: 38px;
  padding: 0;
}
.details-btn:hover,
.icon-btn:hover {
  background: var(--ink);
  color: var(--cream);
}
.details-btn:active,
.icon-btn:active {
  transform: scale(.93);
}

/* 3.3 CARDS ESPECIAIS (DESTAQUES SELECIONADOS) */
.card--feature {
  display: flex !important;
  flex-direction: column !important;
  padding: 12px;
  background: var(--cream-2);
  border: 2px solid var(--gold);
}
.card--feature .card-media {
  width: 100%;
  height: 175px;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
}
.card--feature .card-name {
  font-size: 1.28rem;
  font-weight: 800;
  margin-top: 8px;
  text-transform: uppercase;
}
.card--feature .card-desc {
  font-size: .88rem;
  -webkit-line-clamp: 3;
}
.card--feature .price {
  font-size: 1.45rem;
}

.stamp {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--gold);
  color: var(--ink);
  font-size: .65rem;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}

/* Foco / Prato selecionado por link direto */
.card.is-target {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold), 0 0 0 5px var(--ink);
  animation: target-pulse 1.6s var(--ease) 2;
}
@keyframes target-pulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* ==========================================================================
   MODAIS & BOTTOM SHEETS MOBILE
   ========================================================================== */
dialog {
  padding: 0;
  border: 0;
  color: var(--ink);
  max-width: none;
  max-height: none;
  overscroll-behavior: contain;
}
dialog::backdrop {
  background: rgba(6, 27, 54, .65);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* Modal de detalhes do prato (Bottom Sheet) */
.dish-dialog {
  position: fixed;
  inset: auto 0 0 0;
  width: 100%;
  height: auto;
  max-height: 92dvh;
  margin: 0;
  border-radius: 24px 24px 0 0;
  background: var(--cream);
  overflow: hidden;
  box-shadow: 0 -8px 32px rgba(6, 27, 54, .25);
  opacity: 0;
  translate: 0 60px;
  transition: opacity .25s, translate .4s var(--ease), overlay .4s allow-discrete, display .4s allow-discrete;
}
.dish-dialog[open] { opacity: 1; translate: 0 0; }
@starting-style { .dish-dialog[open] { opacity: 0; translate: 0 60px; } }

/* Indicador de arrasto no topo da bottom sheet */
.dish-dialog::before,
.share-dialog::before {
  content: '';
  display: block;
  width: 40px;
  height: 4px;
  margin: 8px auto 0;
  border-radius: var(--radius-pill);
  background: rgba(6, 27, 54, .2);
}

.dd-scroll {
  max-height: calc(92dvh - 12px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
}

.dd-close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 10;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  cursor: pointer;
  transition: transform .2s, background .2s;
}
.dd-close:hover { background: var(--red); }
.dd-close:active { transform: scale(.92); }

.dd-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--cream-2);
  overflow: hidden;
  border-radius: 0 0 16px 16px;
}
.dd-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dd-body {
  padding: 16px var(--pad) 24px;
}
.dd-cat {
  margin: 0 0 4px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red);
}
.dd-title {
  margin: 0;
  font-size: clamp(1.6rem, 7vw, 2.4rem);
  font-weight: 800;
  font-stretch: 80%;
  line-height: .98;
  letter-spacing: -.02em;
  text-transform: uppercase;
}
.dd-unit {
  margin: 4px 0 0;
  font-size: .84rem;
  font-weight: 700;
  color: var(--blue-deep);
}
.dd-price {
  margin: 10px 0 0;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
}
.dd-price small { font-size: .5em; margin-right: .15em; vertical-align: .35em; }

.dd-desc {
  margin: 12px 0 0;
  font-size: .95rem;
  line-height: 1.45;
  color: #2b3b55;
}
.dd-h {
  margin: 18px 0 8px;
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--ink);
}
.dd-list {
  display: flex;
  flex-direction: column;
  margin: 10px 0 0;
  padding: 6px 14px;
  list-style: none;
  background: rgba(255, 255, 255, .65);
  border: 1px solid rgba(6, 27, 54, .08);
  border-radius: var(--radius-sm);
}
.dd-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: .92rem;
  font-weight: 550;
  line-height: 1.4;
  color: var(--ink);
  border-bottom: 1px solid rgba(6, 27, 54, .06);
}
.dd-list li:last-child {
  border-bottom: none;
}
.dd-list li::before {
  content: '';
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%230d825f'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}
.dd-notes {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}
.dd-notes li {
  padding-left: 20px;
  position: relative;
  font-size: .88rem;
  font-weight: 500;
}
.dd-notes li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .48em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 1.5px var(--ink);
}

.dd-illus-note {
  margin: 14px 0 0;
  font-size: .78rem;
  color: #556680;
}

.dd-share {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.dd-share .sd-btn {
  flex: 1 1 130px;
  min-height: 44px;
}

/* Modal de Compartilhamento */
.share-dialog {
  position: fixed;
  inset: auto 0 0 0;
  width: 100%;
  margin: 0;
  border-radius: 24px 24px 0 0;
  background: var(--cream);
  opacity: 0;
  translate: 0 50px;
  transition: opacity .2s, translate .35s var(--ease), overlay .35s allow-discrete, display .35s allow-discrete;
}
.share-dialog[open] { opacity: 1; translate: 0 0; }
@starting-style { .share-dialog[open] { opacity: 0; translate: 0 50px; } }

.sd-inner {
  padding: 16px var(--pad) calc(22px + env(safe-area-inset-bottom));
  max-width: 480px;
  margin: 0 auto;
}
.sd-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.sd-head h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
}
.sd-close {
  position: static;
  flex: none;
}
.sd-dish {
  margin: 4px 0 14px;
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--blue-deep);
}
.sd-actions {
  display: grid;
  gap: 8px;
}
.sd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--ink);
  text-decoration: none;
  font-weight: 750;
  font-size: .92rem;
  cursor: pointer;
  transition: background .2s, color .2s, transform .15s;
}
.sd-btn:hover {
  background: var(--ink);
  color: var(--cream);
}
.sd-btn:active { transform: scale(.97); }
.sd-whats {
  background: #25d366;
  border-color: #0d833f;
  color: #043618;
}
.sd-whats:hover {
  background: #0d833f;
  color: #ffffff;
}
.sd-native { background: var(--gold); }
.sd-url {
  width: 100%;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1.5px dashed rgba(6, 27, 54, .35);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .7);
  font: inherit;
  font-size: .78rem;
  color: #3b4c68;
}

/* Toast de confirmação */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 400;
  max-width: calc(100vw - 32px);
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--cream);
  font-weight: 700;
  font-size: .88rem;
  box-shadow: var(--shadow-md);
  translate: -50% 140%;
  opacity: 0;
  pointer-events: none;
  transition: translate .35s var(--ease), opacity .25s;
}
.toast.is-on { translate: -50% 0; opacity: 1; }
.toast::before { content: '✓ '; color: var(--gold); }
.toast.is-error::before { content: '! '; color: var(--coral); }

/* Estados de carregamento e aviso */
.load-state, .load-error, .noscript-note, .menu-notice {
  max-width: 500px;
  margin: 36px auto;
  padding: 0 var(--pad);
  text-align: center;
  font-weight: 700;
}
.menu-notice {
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: var(--gold);
  color: var(--ink);
  margin-bottom: 24px;
}
.load-state {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--blue);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--gold);
  color: var(--ink);
  font-weight: 750;
  cursor: pointer;
}

/* Rodapé */
.site-foot {
  padding: 28px var(--pad) calc(36px + env(safe-area-inset-bottom));
  background: var(--blue-deep);
  color: var(--cream-2);
  font-size: .82rem;
  text-align: center;
}
.site-foot p { max-width: 600px; margin: 0 auto 6px; }
.site-foot-brand {
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .72rem !important;
  color: var(--gold);
  margin-top: 12px !important;
}

.credits { margin: 12px auto 0; max-width: 50rem; font-size: .78rem; text-align: left; }
.credits summary { cursor: pointer; font-weight: 700; text-align: center; padding: 8px; }
.credits-list { margin: 6px 0 0; padding-left: 1.2rem; display: grid; gap: 4px; opacity: .88; }
.credits-list a { color: inherit; text-decoration: underline; }

/* ==========================================================================
   BREAKPOINTS: TABLET (≥ 640px)
   ========================================================================== */
@media (min-width: 640px) {
  :root {
    --topbar-h: 80px;
    --catnav-h: 56px;
  }
  .topbar-brand img { width: auto; height: 60px; max-height: 60px; }
  .menu-switch { width: 270px; }
  .menu-switch-btn { min-height: 38px; font-size: .85rem; }

  .choices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }
  .choice-media { aspect-ratio: 8 / 10; }

  .dishes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .card--feature {
    grid-column: 1 / -1;
  }

  .dish-dialog {
    inset: 0;
    margin: auto;
    width: min(840px, calc(100vw - 40px));
    height: fit-content;
    max-height: 88dvh;
    border-radius: 28px;
    translate: 0 30px;
  }
  .dish-dialog::before { display: none; }
  .dish-dialog .dd-scroll {
    max-height: 88dvh;
    padding-bottom: 0;
  }
  .dish-dialog .dd-content.has-media {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
  .dish-dialog .dd-content.has-media .dd-media {
    aspect-ratio: auto;
    min-height: 100%;
    border-radius: 0;
  }

  .share-dialog {
    inset: 0;
    margin: auto;
    width: min(440px, calc(100vw - 32px));
    height: fit-content;
    border-radius: 24px;
    translate: 0 20px;
  }
  .share-dialog::before { display: none; }
}

/* ==========================================================================
   BREAKPOINTS: DESKTOP (≥ 980px)
   ========================================================================== */
@media (min-width: 980px) {
  .menu-hero { padding: 48px var(--pad) 64px; }
  .menu-title { font-size: 3.8rem; }
  .catnav-list { justify-content: center; flex-wrap: wrap; }
  .dishes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
  .card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
  }
}

/* ==========================================================================
   ACESSIBILIDADE: PREFERS-REDUCED-MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ==========================================================================
   CESTA DO CARDÁPIO REGULAR
   ========================================================================== */
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.cart-trigger {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(6, 27, 54, .14);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: transform .18s var(--ease), background .2s, border-color .2s;
}
.cart-trigger:hover { background: var(--cream); border-color: var(--ink); }
.cart-trigger:active { transform: scale(.93); }

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: var(--radius-pill);
  background: var(--red);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  line-height: 20px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(6, 27, 54, .22);
}
.cart-badge.is-empty {
  background: rgba(6, 27, 54, .55);
}

.card-cart-bar,
.dd-cart-bar {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(6, 27, 54, .12);
}
.dd-cart-bar {
  margin-top: 16px;
  padding-top: 14px;
  gap: 8px;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(6, 27, 54, .18);
  border-radius: var(--radius-pill);
  background: #fff;
  overflow: hidden;
  flex: none;
}
.qty-btn {
  width: 28px;
  height: 32px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: .95rem;
  font-weight: 800;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.qty-btn:hover { background: rgba(6, 27, 54, .06); }
.qty-val {
  min-width: 18px;
  text-align: center;
  font-size: .82rem;
  font-weight: 800;
  color: var(--ink);
}
.qty-stepper.is-compact .qty-btn { width: 28px; height: 30px; }
.qty-stepper.is-compact .qty-val { min-width: 20px; font-size: .82rem; }

.add-cart-btn {
  flex: 1;
  min-width: 0;
  min-height: 34px;
  padding: 6px 10px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--cream);
  font: inherit;
  font-size: clamp(.72rem, 2.7vw, .8rem);
  font-weight: 750;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.add-cart-btn svg {
  width: 14px;
  height: 14px;
  flex: none;
}
.add-cart-btn:hover { background: var(--blue-deep); }
.add-cart-btn:active { transform: scale(.97); }

/* Drawer lateral (desktop) / Tela cheia (mobile) */
.cart-dialog {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: 100dvh;
  margin: 0;
  border-radius: 0;
  background: var(--cream);
  box-shadow: -8px 0 36px rgba(6, 27, 54, .26);
  opacity: 0;
  translate: 40px 0;
  transition: opacity .22s, translate .32s var(--ease), overlay .32s allow-discrete, display .32s allow-discrete;
}
.cart-dialog[open] { opacity: 1; translate: 0 0; }
@starting-style { .cart-dialog[open] { opacity: 0; translate: 40px 0; } }

.cart-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #fff;
  border-bottom: 1px solid rgba(6, 27, 54, .1);
  flex: none;
}
.cart-head-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cart-head h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -.01em;
}
.cart-head-count {
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: var(--radius-pill);
  background: var(--gold);
  color: var(--ink);
  font-size: .8rem;
  font-weight: 800;
  line-height: 24px;
  text-align: center;
}
.cart-close {
  position: static;
  width: 38px;
  height: 38px;
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px 18px calc(24px + env(safe-area-inset-bottom));
}

.cart-empty {
  padding: 40px 16px;
  text-align: center;
}
.cart-empty-title {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 800;
}
.cart-empty-sub {
  margin: 0;
  font-size: .9rem;
  color: #465872;
}

.cart-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cart-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(6, 27, 54, .1);
}
.cart-item-info {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.cart-item-name { font-size: .92rem; font-weight: 800; }
.cart-item-unit { font-size: .8rem; color: #465872; white-space: nowrap; }
.cart-item-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.cart-item-sub {
  margin-left: auto;
  font-size: .92rem;
  font-weight: 800;
  color: var(--blue-deep);
}
.cart-remove-btn {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(180, 35, 24, .1);
  color: #b42318;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.cart-remove-btn:hover { background: #b42318; color: #fff; }

.cart-summary {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1.5px solid rgba(6, 27, 54, .12);
}
.cart-total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
}
.cart-total-row span { font-size: .95rem; font-weight: 700; }
.cart-total-row strong { font-size: 1.35rem; font-weight: 800; color: var(--blue-deep); }

.cart-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cart-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.cart-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.cart-field > span {
  font-size: .8rem;
  font-weight: 750;
  color: var(--ink);
}
.cart-field b { color: var(--red); }
.cart-field input,
.cart-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid rgba(6, 27, 54, .18);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: .92rem;
}
.cart-field input:focus,
.cart-field textarea:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
  border-color: var(--blue);
}

.cart-review-pickup {
  margin: 0;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(2, 95, 185, .08);
  color: var(--blue-deep);
  font-size: .82rem;
  font-weight: 700;
}
.cart-notice {
  margin: 0;
  font-size: .78rem;
  line-height: 1.4;
  color: #465872;
}
.cart-feedback {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fde8e8;
  color: #9b1c1c;
  font-size: .84rem;
  font-weight: 700;
}
.cart-submit-btn {
  width: 100%;
  min-height: 48px;
  padding: 12px 18px;
  border: 0;
  border-radius: var(--radius-pill);
  background: #16a34a;
  color: #fff;
  font: inherit;
  font-size: .96rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.cart-submit-btn:hover { background: #15803d; }
.cart-submit-btn:active { transform: scale(.98); }

@media (min-width: 720px) {
  .cart-dialog {
    inset: 0 0 0 auto;
    width: min(440px, 100vw);
    border-radius: 24px 0 0 24px;
  }
}

.cart-popup-fallback {
  padding: 12px;
  border-radius: 12px;
  background: #fff8ee;
  border: 1.5px solid #d76a00;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cart-popup-fallback p {
  margin: 0;
  font-size: .84rem;
  font-weight: 700;
  color: var(--ink);
}
.cart-popup-fallback .cart-submit-btn {
  text-decoration: none;
}

.cart-thanks {
  padding: 28px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.cart-thanks[hidden] { display: none; }
.cart-thanks-logo {
  width: 84px;
  height: auto;
  object-fit: contain;
}
.cart-thanks-title {
  margin: 4px 0 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ink);
}
.cart-thanks-text {
  margin: 0;
  font-size: .92rem;
  line-height: 1.5;
  color: #354450;
  max-width: 36ch;
}
.cart-back-btn {
  margin-top: 8px;
  min-height: 44px;
  padding: 10px 22px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--cream);
  font: inherit;
  font-size: .9rem;
  font-weight: 800;
  cursor: pointer;
}
.cart-back-btn:hover { background: var(--blue-deep); }

/* Toast de confirmação ao adicionar item */
.cart-toast {
  position: fixed;
  top: 88px;
  left: 12px;
  right: 12px;
  z-index: 95;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 16px;
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 12px 32px rgba(6, 27, 54, .32);
  opacity: 0;
  translate: 0 -10px;
  transition: opacity .24s var(--ease), translate .28s var(--ease);
}
.cart-toast[hidden] { display: none; }
.cart-toast.is-on {
  opacity: 1;
  translate: 0 0;
}
.cart-toast-icon {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #16a34a;
  color: #fff;
  display: grid;
  place-items: center;
}
.cart-toast-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.cart-toast-title {
  font-size: .86rem;
  font-weight: 800;
  line-height: 1.2;
}
.cart-toast-detail {
  font-size: .8rem;
  opacity: .88;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-toast-btn {
  flex: none;
  padding: 7px 12px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--gold);
  color: var(--ink);
  font: inherit;
  font-size: .8rem;
  font-weight: 800;
  cursor: pointer;
}
.cart-toast-btn:hover { filter: brightness(1.06); }

@media (min-width: 720px) {
  .cart-toast {
    left: auto;
    right: 20px;
    top: 92px;
    width: min(390px, calc(100vw - 40px));
  }
}

.cart-picker-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.cart-picker-wrap input {
  padding-right: 40px;
  min-width: 0;
}
.cart-picker-btn {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--blue-deep);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.cart-picker-btn:hover { background: rgba(2, 95, 185, .1); }

@media (max-width: 420px) {
  .cart-field-row { grid-template-columns: 1fr; }
}

.cart-subpicker {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: rgba(6, 27, 54, .48);
  display: grid;
  place-items: center;
  padding: 16px;
}
.cart-subpicker[hidden] { display: none; }
.cart-subpicker-card {
  width: min(320px, 100%);
  background: #fff;
  color: var(--ink);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 18px 40px rgba(6, 27, 54, .32);
}
.cart-subpicker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.cart-subpicker-head strong { font-size: .95rem; font-weight: 800; }
.cart-cal-nav {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(6, 27, 54, .16);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
}
.cart-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: .72rem;
  font-weight: 800;
  color: #465872;
  margin-bottom: 4px;
}
.cart-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}
.cart-cal-day {
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: .84rem;
  font-weight: 700;
  cursor: pointer;
}
.cart-cal-day:hover:not(:disabled) { background: rgba(2, 95, 185, .1); }
.cart-cal-day.is-today { box-shadow: inset 0 0 0 1.5px var(--blue); }
.cart-cal-day.is-selected { background: var(--ink); color: #fff; }
.cart-cal-day:disabled { opacity: .28; cursor: not-allowed; }

.cart-time-preview {
  font-size: 1rem;
  font-weight: 800;
  color: var(--blue-deep);
}
.cart-time-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.cart-time-col-lbl {
  display: block;
  text-align: center;
  font-size: .74rem;
  font-weight: 800;
  color: #465872;
  margin-bottom: 4px;
}
.cart-time-list {
  height: 190px;
  overflow-y: auto;
  border: 1px solid rgba(6, 27, 54, .12);
  border-radius: 10px;
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cart-time-opt {
  padding: 7px 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
}
.cart-time-opt.is-selected {
  background: var(--ink);
  color: #fff;
}

.cart-subpicker-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}
.cart-subpicker-cancel,
.cart-subpicker-ok {
  padding: 8px 14px;
  border: 0;
  border-radius: var(--radius-pill);
  font: inherit;
  font-size: .82rem;
  font-weight: 800;
  cursor: pointer;
}
.cart-subpicker-cancel { background: rgba(6, 27, 54, .08); color: var(--ink); }
.cart-subpicker-ok { background: var(--ink); color: #fff; }

body[data-origem="mesa"] #cart-open-btn,
body[data-origem="mesa"] .card-cart-bar,
body[data-origem="mesa"] .dd-cart-bar,
body[data-origem="mesa"] #cart-dialog,
body[data-origem="mesa"] #cart-toast {
  display: none !important;
}
