/* =============================================
   RESET E VARIÁVEIS
   ============================================= */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0a0a0a;
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.7);
  --accent: #e8a44a;
  --font-display: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* =============================================
      HERO OVERLAY
      ============================================= */
.hero-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s ease, visibility 0s linear 0.6s;
}

.hero-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.hero-overlay__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-overlay__bg {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.hero-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.1) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-overlay__content {
  position: relative;
  z-index: 2;
  padding: 0 24px calc(env(safe-area-inset-bottom) + 80px);
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.hero-overlay__nome {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 16px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-overlay__bio {
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 90%;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

.hero-overlay__info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 40px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.hero-overlay__info .info-label {
  color: white;
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-overlay__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px;
  border-radius: 30px;
  background: var(--accent);
  color: #000;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.hero-overlay__btn:active {
  transform: scale(0.98);
  background: #d18b36;
}

/* =============================================
      BARRA DE CATEGORIAS (PILLS)
      ============================================= */
.cat-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 80px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: calc(env(safe-area-inset-top) + 27px) 0 16px 24px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  pointer-events: none;
  background: transparent;
}

.cat-bar::-webkit-scrollbar {
  display: none;
}

.cat-bar::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: calc(env(safe-area-inset-top) + 80px);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
  z-index: -1;
}

.cat-bar button {
  pointer-events: auto;
  flex: 0 0 auto;
  padding: 8px 18px;
  border-radius: 30px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.cat-bar button.is-active {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  font-weight: 600;
}

/* =============================================
      FEED HORIZONTAL (CATEGORIAS)
      ============================================= */
.fullscreen-feed {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow-x: scroll;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.fullscreen-feed::-webkit-scrollbar {
  display: none;
}

/* =============================================
      SEÇÃO DE CATEGORIA
      ============================================= */
.categoria-secao {
  position: relative;
  flex: 0 0 100vw;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #000;
  flex-shrink: 0;
}

/* =============================================
      CARROSSEL VERTICAL (PRATOS)
      ============================================= */
.carrossel-vertical {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow-y: scroll;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.carrossel-vertical::-webkit-scrollbar {
  display: none;
}

/* =============================================
      TELA DO PRATO
      ============================================= */
.prato-screen {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  cursor: pointer;
}

.prato-screen__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #000;
}

.prato-screen__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prato-screen__fallback {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  display: none;
}

.prato-screen__media.is-error .prato-screen__video {
  display: none;
}

.prato-screen__media.is-error .prato-screen__fallback {
  display: block;
}

.prato-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.4) 40%, rgba(0, 0, 0, 0) 70%);
  z-index: 1;
  pointer-events: none;
}

.prato-screen__content {
  position: relative;
  z-index: 2;
  padding: 0 24px calc(env(safe-area-inset-bottom) + 40px);
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  pointer-events: none;
}

.prato-screen__content>* {
  pointer-events: auto;
}

.prato-screen__nome {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 12px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.prato-screen__descricao {
  font-size: 15px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 20px;
  max-width: 85%;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

.prato-screen__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.prato-screen__preco {
  font-size: 22px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 20px;
  border-radius: 30px;
}

.btn-saiba-mais {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #000;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  animation: pulseButton 2.5s ease-in-out infinite;
  box-shadow: 0 4px 20px rgba(232, 164, 74, 0.3);
  transition: transform 0.2s;
}

.btn-saiba-mais:active {
  transform: scale(0.9);
}

@keyframes pulseButton {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 4px 20px rgba(232, 164, 74, 0.3);
  }

  50% {
    transform: scale(1.08);
    box-shadow: 0 4px 25px rgba(232, 164, 74, 0.5);
  }
}

/* =============================================
      INDICADORES DE SCROLL
      ============================================= */
.scroll-hint-down,
.scroll-hint-left,
.scroll-hint-right {
  position: fixed;
  z-index: 10;
  color: rgba(255, 255, 255, 0.6);
  pointer-events: none;
  transition: opacity 0.3s;
}

.scroll-hint-down {
  bottom: calc(env(safe-area-inset-bottom) + 16px);
  left: 50%;
  transform: translateX(-50%);
  animation: bounceDown 2s infinite;
}

.scroll-hint-left,
.scroll-hint-right {
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  padding: 8px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.scroll-hint-left {
  left: 16px;
  animation: bounceLeft 2s infinite;
}

.scroll-hint-right {
  right: 16px;
  animation: bounceRight 2s infinite;
}

@keyframes bounceDown {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  40% {
    transform: translateX(-50%) translateY(-5px);
  }

  60% {
    transform: translateX(-50%) translateY(-2px);
  }
}

@keyframes bounceRight {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(-50%) translateX(0);
  }

  40% {
    transform: translateY(-50%) translateX(5px);
  }

  60% {
    transform: translateY(-50%) translateX(2px);
  }
}

@keyframes bounceLeft {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(-50%) translateX(0);
  }

  40% {
    transform: translateY(-50%) translateX(-5px);
  }

  60% {
    transform: translateY(-50%) translateX(-2px);
  }
}

/* =============================================
      BOTÃO E PAINEL DE MENU
      ============================================= */
.btn-menu {
  position: fixed;
  top: calc(env(safe-area-inset-top) + 20px);
  right: 24px;
  z-index: 60;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.btn-menu:active {
  transform: scale(0.92);
}

.menu-painel {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  flex-direction: column;
  justify-content: flex-end;
}

.menu-painel.is-open {
  display: flex;
}

.menu-painel__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.menu-painel__content {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  background: #12100e;
  border-radius: 24px 24px 0 0;
  padding: 32px 24px;
  padding-bottom: calc(32px + env(safe-area-inset-bottom));
  max-height: 85vh;
  min-height: 65vh;
  overflow-y: auto;
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-titulo {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
}

.menu-fechar,
.menu-voltar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.menu-fechar:hover,
.menu-voltar:hover {
  background: rgba(255, 255, 255, 0.2);
}

.menu-telas-container {
  position: relative;
  overflow: hidden;
}

.menu-tela {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.menu-tela--ativa {
  position: relative;
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.menu-tela--escondida {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
}

.menu-tela--anterior {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
}

.menu-cat-btn {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 32px;
  text-align: left;
  cursor: pointer;
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: color 0.2s, padding-left 0.2s;
}

.menu-cat-btn:hover,
.menu-cat-btn:active {
  color: var(--accent);
  padding-left: 8px;
}

.menu-cat-btn span.count {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 400;
}

.menu-sobre-btn {
  margin-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  color: var(--text-muted);
  font-size: 26px;
}

.menu-sobre-btn:hover,
.menu-sobre-btn:active {
  color: var(--accent);
}

.menu-subtitulo {
  font-family: var(--font-display);
  font-size: 26px;
  margin-bottom: 16px;
}

.menu-lista {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.menu-item-btn {
  width: 100%;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-body);
  font-size: 17px;
  text-align: left;
  cursor: pointer;
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: color 0.2s, transform 0.2s;
}

.menu-item-btn:hover,
.menu-item-btn:active {
  color: var(--text);
  transform: translateX(4px);
}

.menu-item-btn span.preco {
  font-size: 15px;
  color: var(--accent);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.menu-item-btn:hover span.preco {
  text-shadow: 0 0 10px rgba(232, 164, 74, 0.3);
}

/* =============================================
      MODAL DE DETALHES
      ============================================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: flex-end;
}

.modal.is-open {
  display: flex;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease;
}

.modal__content {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  background: #151515;
  border-radius: 24px 24px 0 0;
  padding: 32px 24px;
  padding-bottom: calc(32px + env(safe-area-inset-bottom));
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 92vh;
  min-height: 65vh;
  overflow-y: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s;
}

.modal__close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.modal__body {
  margin-top: 12px;
}

.modal__nome {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  margin-bottom: 8px;
  line-height: 1.15;
}

.modal__preco {
  font-size: 20px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 24px;
  font-variant-numeric: tabular-nums;
}

.modal__descricao {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* =============================================
      ACESSIBILIDADE
      ============================================= */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}