:root {
  --plum: #3a1362;
  --plum-deep: #2a0c49;
  --plum-line: #5a2d8a;
  --gold: #f8c21c;
  --gold-soft: #ffe28a;
  --lilac: #cbb6ee;
  --white: #fff8ea;
  --danger: #ff8a8a;
  --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: 20px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

/* Garante que [hidden] vença classes que definem display */
[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--plum);
  color: var(--white);
  font-family: var(--font);
  line-height: 1.4;
}

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

/* ---------- Página pública ---------- */

/* TESTE: fundo preto no cardápio do cliente. Para voltar ao roxo, apague este bloco de variáveis. */
.menu-page {
  --plum: #000;
  --plum-deep: #141416;
  --plum-line: rgb(255 255 255 / 0.12);
  --lilac: #b3adbd;
}

.menu-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--plum);
}

.masthead {
  padding: calc(36px + env(safe-area-inset-top)) var(--gutter) 18px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--lilac);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.masthead h1 {
  margin: 0;
  color: var(--gold);
  font-size: clamp(2.4rem, 12vw, 3.6rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.tagline {
  margin: 10px 0 0;
  color: var(--lilac);
  font-size: 0.92rem;
}

.notice {
  margin: 4px var(--gutter) 14px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--gold);
  color: var(--plum-deep);
  font-size: 0.88rem;
  font-weight: 800;
}

.promo-banner {
  margin: 0 0 14px;
}

/* Carrossel: um card por vez, com uma pontinha do próximo aparecendo na lateral */
.promo-track {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 0 0 0 var(--gutter);
  scroll-padding: 0 var(--gutter);
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.promo-track::-webkit-scrollbar {
  display: none;
}

/* Espaço no fim (soma com o gap = margem lateral) para o último card encaixar igual aos outros */
.promo-track::after {
  content: '';
  flex: 0 0 calc(var(--gutter) - 6px);
}

/* O card ocupa a largura do conteúdo; o próximo aparece só como uma pontinha na margem */
.promo-card {
  flex: 0 0 calc(100% - var(--gutter));
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border: 1.5px dashed #9d4dff;
  border-radius: 14px;
  background: transparent;
  color: var(--white);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

/* Todos os cards na mesma proporção 3:1 (imagem do Canva: 1500 × 500 px) */
.promo-card {
  aspect-ratio: 3 / 1;
  justify-content: center;
  overflow: hidden;
}

/* Card com imagem de fundo: sombra escura à esquerda para o texto continuar legível */
.promo-card.has-image,
.promo-card.has-image.is-live {
  border: 0;
  background:
    linear-gradient(90deg, rgb(0 0 0 / 0.88) 0%, rgb(0 0 0 / 0.55) 45%, rgb(0 0 0 / 0) 75%),
    var(--promo-image) center / cover no-repeat,
    var(--plum-deep);
  color: var(--white);
}

.promo-card.has-image .promo-name {
  color: var(--gold);
}

.promo-card.has-image .promo-tag {
  color: var(--gold-soft);
  opacity: 1;
}

.promo-card.is-live {
  border-style: solid;
  border-color: var(--gold);
  background: var(--gold);
  color: var(--plum-deep);
}

.promo-dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 8px;
}

.promo-dots .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgb(255 248 234 / 0.3);
  transition: background-color 0.2s, width 0.2s;
}

.promo-dots .dot.is-active {
  width: 14px;
  border-radius: 3px;
  background: #9d4dff;
}

.promo-tag {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.8;
}

.promo-name {
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
}

.promo-card:not(.is-live) .promo-name {
  color: var(--gold);
}

.promo-offer {
  font-size: 0.85rem;
  font-weight: 600;
}

.promo-timer {
  margin-top: 4px;
  font-size: 0.78rem;
  font-weight: 600;
}

.promo-clock {
  font-size: 1rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.is-live .promo-clock {
  animation: tick 1s steps(1) infinite;
}

@keyframes tick {
  50% {
    opacity: 0.75;
  }
}

.tabs {
  position: sticky;
  top: 0;
  z-index: 2;
}

.tabs-track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px var(--gutter);
  scrollbar-width: none;
}

.tabs-track::-webkit-scrollbar {
  display: none;
}

.tab {
  flex: none;
  padding: 8px 14px;
  border: 1.5px solid var(--plum-line);
  border-radius: 999px;
  color: var(--gold-soft);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.tab[aria-selected='true'] {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--plum-deep);
}

/* Abas do cardápio: uma cápsula de vidro fosco escuro segurando os botões;
   a aba aberta ganha uma cápsula mais clara por trás (como barras de navegação de apps) */
.menu-page .tabs {
  padding: 10px var(--gutter);
}

.menu-page .tabs-track {
  gap: 2px;
  padding: 4px;
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 999px;
  background: rgb(38 38 42 / 0.5);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.08),
    0 8px 24px rgb(0 0 0 / 0.45);
}

.menu-page .tab {
  padding: 7px 14px;
  border: 0;
  background: transparent;
  color: rgb(255 255 255 / 0.62);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* Interruptor invisível que dá a vibração no iPhone (fica dentro da barra fixa, para o
   foco não fazer a página rolar quando ele é acionado) */
.haptic-switch {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.menu-page .tab[aria-selected='true'] {
  background: rgb(255 255 255 / 0.03);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.08);
  color: #9d4dff;
  text-shadow: none;
}

.panel {
  flex: 1;
  width: 100%;
  max-width: 560px;
  padding: 28px var(--gutter) 40px;
}

.section-title {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: clamp(1.9rem, 9vw, 2.4rem);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.items {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Linha bem sutil entre um item e outro */
.item + .item {
  border-top: 1px solid rgb(255 248 234 / 0.08);
}


.is-entering .item {
  animation: rise 0.35s both;
}

.is-entering .item:nth-child(2) { animation-delay: 0.03s; }
.is-entering .item:nth-child(3) { animation-delay: 0.06s; }
.is-entering .item:nth-child(4) { animation-delay: 0.09s; }
.is-entering .item:nth-child(5) { animation-delay: 0.12s; }
.is-entering .item:nth-child(n + 6) { animation-delay: 0.15s; }

/* Item sem foto: nome à esquerda, preço à direita */
.item-plain {
  padding: 12px 0;
}

.item-line {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0;
}

.item-name {
  flex: 1;
  min-width: 0;
  color: var(--gold);
  font-size: 0.95rem;
  text-transform: uppercase;
}

.item-name strong {
  font-weight: 800;
}

.item-detail {
  color: var(--gold-soft);
  font-weight: 400;
}

.price {
  flex: none;
  color: var(--white);
  font-size: 0.98rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.item-line .price {
  text-align: right;
}

.has-two-prices .price {
  min-width: 3.6rem;
}

.price-head {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin: -6px 0 2px;
}

.price-head-label {
  width: 3.6rem;
  color: var(--gold-soft);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-align: right;
  text-transform: uppercase;
}

.price-old {
  margin-right: 6px;
  color: var(--lilac);
  font-size: 0.78rem;
  font-weight: 500;
}

.price-out {
  color: var(--lilac);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.item-desc {
  display: block;
  margin: 3px 0 0;
  color: var(--lilac);
  font-size: 0.82rem;
  line-height: 1.35;
}

.is-out .item-name,
.is-out .item-title,
.is-out .item-sub {
  opacity: 0.45;
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}

/* Item com foto: texto à esquerda, foto pequena à direita */
.item-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin: 0;
  padding: 10px 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  line-height: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.item-row:active {
  opacity: 0.75;
}

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

.item-title {
  color: var(--gold);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
}

.item-sub {
  color: var(--gold-soft);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.item-body .item-desc {
  margin: 0;
}

.item-prices {
  display: flex;
  flex-direction: column;
  margin-top: 2px;
}

.price-label {
  margin-right: 6px;
  color: var(--lilac);
  font-size: 0.72rem;
  font-weight: 600;
}

.item-photo {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--white);
}

.is-out .item-photo {
  opacity: 0.45;
}

.badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--white);
  color: var(--plum-deep);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  vertical-align: 2px;
}

.badge-promo {
  background: var(--gold);
}

.badge-novo {
  background: var(--lilac);
}

.state {
  color: var(--lilac);
}

.colophon {
  padding: 20px var(--gutter) calc(28px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--plum-line);
  color: var(--lilac);
  font-size: 0.72rem;
}

.colophon p {
  margin: 0 0 6px;
}

.photo-sheet {
  width: min(100% - 32px, 440px);
  max-height: 92dvh;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: var(--plum-deep);
  color: var(--white);
  overflow: auto;
}

.photo-sheet::backdrop {
  background: rgb(10 2 20 / 0.75);
}

.photo-sheet[open] {
  animation: pop 0.22s ease-out;
}

.photo-card {
  margin: 0;
}

.photo-stage {
  position: relative;
  overflow: hidden;
  background: var(--plum);
}

.photo-img {
  display: block;
  width: 100%;
  max-height: 60dvh;
  object-fit: cover;
  background: var(--plum);
}

.photo-img.slide-next {
  animation: slide-next 0.25s ease-out;
}

.photo-img.slide-prev {
  animation: slide-prev 0.25s ease-out;
}

.photo-nav {
  position: absolute;
  top: 50%;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  border: 0;
  border-radius: 50%;
  background: rgb(26 6 46 / 0.55);
  color: var(--white);
  font: inherit;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.photo-nav-prev {
  left: 10px;
}

.photo-nav-next {
  right: 10px;
}

.photo-dots {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgb(255 248 234 / 0.5);
}

.dot.is-active {
  background: var(--gold);
}

.photo-caption {
  padding: 16px 18px 18px;
}

.photo-name {
  margin: 0;
  color: var(--gold);
  font-size: 1.05rem;
  text-transform: uppercase;
}

.photo-name strong {
  font-weight: 900;
}

.photo-price {
  margin: 6px 0 0;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.photo-desc {
  margin: 6px 0 0;
  color: var(--lilac);
  font-size: 0.88rem;
}

.photo-close {
  width: 100%;
  min-height: 44px;
  margin-top: 16px;
  border: 0;
  border-radius: 12px;
  background: var(--gold);
  color: var(--plum-deep);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

@keyframes slide-next {
  from {
    opacity: 0.3;
    transform: translateX(40px);
  }
}

@keyframes slide-prev {
  from {
    opacity: 0.3;
    transform: translateX(-40px);
  }
}

@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
