/* ===== VARIÁVEIS ===== */
:root {
  --bg: #0e0714;
  --card: #1a0f26;
  --roxo: #6b2a9e;
  --roxo-claro: #b45cf0;
  --laranja: #ff7a00;
  --texto: #f5eefa;
}

/* ===== BASE ===== */
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--texto);
  font-family: system-ui, "Segoe UI", sans-serif;
  line-height: 1.5;
}
section { padding: 64px 5%; max-width: 1100px; margin: 0 auto; }
h2 {
  font-size: clamp(28px, 5vw, 42px);
  color: var(--laranja);
  text-transform: uppercase;
  margin-bottom: 8px;
}
small { display: block; opacity: .7; }
.preco { color: var(--laranja); font-weight: 800; }

/* ===== CABEÇALHO ===== */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 5%;
  background: rgba(14, 7, 20, .92);
  border-bottom: 2px solid var(--roxo);
}
.logo { font-weight: 900; font-size: 22px; color: #fff; text-decoration: none; }
.logo span { color: var(--roxo-claro); font-style: italic; }
nav a { color: var(--texto); text-decoration: none; margin-left: 16px; font-size: 14px; }
.carrinho {
  background: var(--laranja);
  color: #000;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 800;
}

/* ===== BOTÕES ===== */
.btn {
  background: var(--laranja);
  color: #000;
  border: 0;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.btn.sm { padding: 8px 14px; font-size: 14px; }
.btn:hover { filter: brightness(1.1); }

/* ===== HERO ===== */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: center;
  min-height: 80vh;
}
.hero h1 { font-size: clamp(40px, 8vw, 84px); line-height: 1; text-transform: uppercase; }
.hero h1 em { color: var(--laranja); font-style: normal; display: block; }
.hero p { margin: 20px 0 28px; font-size: 20px; color: var(--roxo-claro); }
.hero .l { display: block; overflow: hidden; }
.hero .l > * { display: block; animation: sobe .9s cubic-bezier(.2, .8, .2, 1) both; }
.hero .l:nth-child(2) > * { animation-delay: .2s; }
.hero .l:nth-child(3) > * { animation-delay: .4s; }
.foto-hero {
  aspect-ratio: 1;
  border-radius: 50% 50% 40% 60%;
  background: radial-gradient(circle, var(--roxo), #2a0f3f);
  border: 4px solid var(--laranja);
  display: grid;
  place-items: center;
  font-size: 120px;
  overflow: hidden;
  position: relative;
  animation: entra 1.2s .3s both;
}
.foto-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@keyframes sobe { from { transform: translateY(110%); } to { transform: none; } }
@keyframes entra { from { opacity: 0; transform: scale(.8) rotate(-6deg); } to { opacity: 1; transform: none; } }

/* ===== SELETORES ===== */
.box {
  background: var(--card);
  border: 2px solid var(--roxo);
  border-radius: 16px;
  padding: 20px;
  margin-top: 20px;
}
.box h3 { color: var(--roxo-claro); margin: 16px 0 8px; font-size: 15px; text-transform: uppercase; }
.box h3:first-child { margin-top: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; }
.chip span {
  display: block;
  padding: 8px 14px;
  border: 2px solid var(--roxo);
  border-radius: 999px;
  font-size: 14px;
  cursor: pointer;
}
.chip input:checked + span { background: var(--laranja); border-color: var(--laranja); color: #000; font-weight: 700; }
.chip input:disabled + span { opacity: .35; cursor: not-allowed; }
.hint { color: var(--laranja); font-size: 14px; }

/* ===== COPOS ESPECIAIS ===== */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 20px; }
.card { background: var(--card); border: 2px solid var(--roxo); border-radius: 16px; padding: 14px; }
.card p { font-size: 14px; opacity: .8; margin: 6px 0 12px; }
.card .row { display: flex; justify-content: space-between; align-items: center; }
.ph {
  height: 150px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--roxo), #2a0f3f);
  display: grid;
  place-items: center;
  font-size: 48px;
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
}
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ===== PEDIDO ===== */
#pedido { border: 2px solid var(--laranja); border-radius: 16px; background: var(--card); }
#pedido.pulse { animation: pulso .6s; }
@keyframes pulso { 50% { box-shadow: 0 0 0 8px rgba(255, 122, 0, .4); } }
#itens { list-style: none; padding: 0; margin: 12px 0; }
#itens li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--roxo); }
#itens li div { flex: 1; }
.vazio { opacity: .6; }
.x { background: 0; border: 0; color: #f66; font-size: 24px; cursor: pointer; }
.total { font-size: 24px; text-align: right; margin: 12px 0; }
input[type=text], select {
  width: 100%;
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 8px;
  border: 2px solid var(--roxo);
  background: var(--bg);
  color: var(--texto);
  font-size: 16px;
}
#end { display: none; }

/* ===== RODAPÉ / REVELAR ===== */
footer { text-align: center; padding: 32px 5%; border-top: 2px solid var(--roxo); opacity: .8; }
.rev { opacity: 0; transform: translateY(30px); transition: .7s; }
.rev.on { opacity: 1; transform: none; }

/* ===== CELULAR ===== */
@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; text-align: center; min-height: auto; }
  .foto-hero { max-width: 280px; margin: 0 auto; font-size: 80px; }
  nav a { display: none; }
}

/* ===== ARTE / IMAGENS ===== */
.ph svg { height: 100%; width: auto; position: relative; }
.foto-hero { font-size: 0; }
.foto-hero svg { width: 78%; height: auto; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .5)); }
.cards3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.cards3 a { color: inherit; text-decoration: none; transition: transform .3s; text-align: center; }
.cards3 a:hover { transform: translateY(-6px); border-color: var(--laranja); }
.cards3 .ph { height: 200px; }
.cards3 h3 { color: var(--laranja); font-size: 24px; text-transform: uppercase; margin-top: 4px; }
nav a.on { color: var(--laranja); font-weight: 800; }
.pg { padding-top: 40px; padding-bottom: 120px; }

/* ===== CARRINHO ===== */
.bar {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 20;
  width: min(92%, 520px);
  display: none;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: var(--laranja);
  color: #000;
  border: 0;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .6);
}
.bar b { font-size: 20px; }
.bar.pulse { animation: pulsa .5s; }
@keyframes pulsa { 50% { transform: translateX(-50%) scale(1.06); } }
.over { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); z-index: 30; display: none; }
.over.open { display: block; }
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(100%, 420px);
  background: var(--card);
  border-left: 3px solid var(--laranja);
  z-index: 40;
  padding: 20px;
  overflow-y: auto;
  transform: translateX(105%);
  transition: transform .35s;
}
.drawer.open { transform: none; }
.dh { display: flex; justify-content: space-between; align-items: center; }
.link { background: 0; border: 0; color: var(--roxo-claro); margin-top: 12px; cursor: pointer; width: 100%; }
.drawer .btn { width: 100%; }

/* ===== MENU CENTRALIZADO + HOVER ===== */
header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 14px max(5%, calc((100% - 1100px) / 2));
}
nav { display: flex; gap: 8px; justify-content: center; }
nav a {
  position: relative;
  margin: 0;
  padding: 8px 18px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 999px;
  transition: color .25s, background .25s, transform .25s;
}
nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--laranja);
  transition: width .3s, left .3s;
}
nav a:hover {
  color: var(--laranja);
  background: rgba(107, 42, 158, .35);
  transform: translateY(-2px);
}
nav a:hover::after { width: 60%; left: 20%; }
@media (max-width: 720px) {
  header { grid-template-columns: 1fr; gap: 8px; justify-items: center; }
  nav a { display: block; padding: 6px 12px; font-size: 14px; }
}

/* ===== ESTRUTURA: rodapé sempre no fim ===== */
body { display: flex; flex-direction: column; min-height: 100vh; position: relative; }
main { flex: 1; position: relative; z-index: 1; }
header, .cta, footer { position: relative; z-index: 2; }

/* ===== FAIXA DE TÍTULO (parada; só o texto anima) ===== */
.faixa {
  text-align: center;
  padding: 44px 5% 36px;
  background: linear-gradient(180deg, #2a0f3f, var(--bg));
  border-bottom: 3px solid var(--laranja);
}
.faixa h1 { font-size: clamp(34px, 6vw, 56px); text-transform: uppercase; color: var(--laranja); animation: textoEntra .6s both; }
.faixa p { color: var(--roxo-claro); animation: textoEntra .6s .12s both; }
@keyframes textoEntra { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
main > *:not(.faixa) { animation: fade .5s .1s both; }
.cta, .rodape { animation: fade .5s .45s both; }
body.saindo main > *:not(.faixa), body.saindo .cta, body.saindo .rodape, body.saindo .faixa > * { opacity: 0; transition: opacity .2s; animation: none; }
.pg { padding-top: 36px; padding-bottom: 40px; }

/* ===== FOTOS ===== */
.ph img { object-fit: cover; }
.cards3 .ph, .grid .ph { height: 180px; }
.foto-hero img { filter: saturate(1.1); }

/* ===== DECORAÇÃO: bagas de açaí flutuando ===== */
.berries { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.berry {
  position: absolute;
  bottom: -30px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #c27cf5, #4a1a73);
  opacity: .5;
  animation: sobeBaga linear infinite;
}
@keyframes sobeBaga { to { transform: translateY(-115vh) translateX(30px); } }

/* ===== CHAMADA FINAL ===== */
.cta { padding: 60px 5% 40px; max-width: 1100px; margin: 0 auto; width: 100%; }
.cta-card {
  position: relative;
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 28px 32px;
  border-radius: 24px;
  background: linear-gradient(120deg, var(--laranja), #ff9a3c);
  color: #000;
}
.cta-card h2 { color: #000; margin: 0; }
.cta-card p { margin: 4px 0 14px; font-weight: 600; }
.cta-card .btn { background: #1a0f26; color: #fff; }
.cta-cup { width: 150px; height: 150px; flex: none; position: relative; animation: pula 2.4s ease-in-out infinite; }
.cta-cup svg, .cta-cup img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 4px solid #1a0f26; }
.cta-cup svg { display: none; }
.balao {
  position: absolute;
  top: -18px;
  left: 120px;
  background: #fff;
  padding: 6px 14px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 14px;
  animation: pula 2.4s .3s ease-in-out infinite;
}
@keyframes pula { 50% { transform: translateY(-8px); } }

/* ===== RODAPÉ ===== */
.rodape { background: var(--roxo); margin-top: 0; padding-bottom: 20px; position: relative; }
.pinga { position: absolute; top: -59px; left: 0; width: 100%; height: 60px; transform: scaleY(-1); }
.rod-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; max-width: 1100px; margin: 0 auto; padding: 28px 5% 12px; }
.rod-in a { display: block; color: #fff; text-decoration: none; margin: 4px 0; opacity: .9; }
.rod-in a:hover { color: var(--laranja); }
.rod-in b { color: var(--laranja); text-transform: uppercase; display: block; margin-bottom: 6px; }
.rod-in p { opacity: .85; margin-top: 6px; }
.copy { text-align: center; opacity: .8; font-size: 14px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .2); max-width: 1000px; margin: 0 auto; }
@media (max-width: 720px) {
  .rod-in { grid-template-columns: 1fr; text-align: center; }
  .cta-card { flex-direction: column; text-align: center; }
  .balao { left: 50%; top: -22px; }
}

/* ===== CONTADORES DE ACOMPANHAMENTO ===== */
.cnt {
  display: inline-block;
  margin-left: 10px;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--laranja);
  color: #000;
  font-size: 13px;
  font-weight: 800;
  text-transform: none;
  transition: background .3s, transform .3s;
}
.cnt.ok { background: #3ddc84; transform: scale(1.06); }
.retirada { margin: 8px 0 12px; color: var(--laranja); font-weight: 700; }
