/* ==========================================================
   PALHÊ · Menu Especial de Natal
   ========================================================== */
:root {
  --wine-900: #3b070b;
  --wine-800: #4f0b10;
  --wine-700: #6a1016;
  --wine-600: #7d151c;
  --wine-500: #96202a;
  --cream-50: #fdf5ec;
  --cream-100: #f8e8d8;
  --cream-200: #f1d7c1;
  --cream-300: #e8c4a8;
  --gold-300: #f3dcae;
  --gold-400: #e4c286;
  --gold-500: #c9a061;
  --green-700: #22552f;
  --ink: #3a1a17;
  --ink-soft: #6e4a42;
  --wa: #1fa855;

  --f-title: "Playfair Display", Georgia, serif;
  --f-caps: "Cinzel", Georgia, serif;
  --f-script: "Pinyon Script", "Brush Script MT", cursive;
  --f-body: "Lora", Georgia, serif;

  --radius: 18px;
  --shadow: 0 18px 40px -18px rgba(59, 7, 11, .45);
  --header-h: 74px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--f-body);
  color: var(--ink);
  background: var(--cream-100);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }

/* ---------- Canvases ---------- */
#snow, #stars {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
#snow  { z-index: 2; }
#stars { z-index: 9999; }

/* ---------- Varal de luzes ---------- */
.garland {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  height: 22px;
  display: flex; justify-content: space-around;
  pointer-events: none;
  background:
    radial-gradient(120% 22px at 50% -8px, transparent 14px, rgba(30, 50, 25, .9) 15px, rgba(30, 50, 25, .9) 16.5px, transparent 17.5px) 0 0 / 44px 22px repeat-x;
}
.garland i {
  position: relative; top: 9px;
  width: 9px; height: 13px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: var(--c, #ffd36b);
  box-shadow: 0 2px 14px 3px var(--c, #ffd36b);
  animation: twinkle 1.6s ease-in-out infinite;
  animation-delay: var(--dl, 0s);
}
.garland i::before {
  content: ""; position: absolute; top: -4px; left: 2px;
  width: 5px; height: 5px; border-radius: 1px; background: #2c3d26;
}
.garland i:nth-child(4n+1) { --c: #ff5a5f; --dl: .2s; }
.garland i:nth-child(4n+2) { --c: #ffd36b; --dl: .7s; }
.garland i:nth-child(4n+3) { --c: #7ee07e; --dl: 1.1s; }
.garland i:nth-child(4n+4) { --c: #8ad3ff; --dl: .45s; }
.garland i:nth-child(n+21) { display: none; }
@media (min-width: 760px) { .garland i:nth-child(n+21) { display: block; } }
@keyframes twinkle {
  0%, 100% { opacity: 1; filter: brightness(1.1); }
  50% { opacity: .35; filter: brightness(.6); box-shadow: 0 2px 4px 0 var(--c); }
}

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(180deg, rgba(59, 7, 11, .97), rgba(79, 11, 16, .94));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(228, 194, 134, .25);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .7);
}
.topbar__inner {
  max-width: 1200px; margin: 0 auto;
  height: var(--header-h);
  padding: 14px 16px 0;
  display: flex; align-items: center; gap: 16px;
}
.brand img { height: 46px; width: auto; }
.nav { display: none; margin-left: 28px; gap: 26px; }
.nav a {
  font-family: var(--f-caps); letter-spacing: .14em; text-transform: uppercase;
  font-size: .82rem; color: var(--cream-100); text-decoration: none;
  position: relative; padding: 6px 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--gold-400); transform: scaleX(0); transition: transform .35s;
}
.nav a:hover::after { transform: scaleX(1); }
@media (min-width: 760px) { .nav { display: flex; } }

.topbar__actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }

.btn-music {
  display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(228, 194, 134, .55);
  background: rgba(255, 255, 255, .05);
  color: var(--gold-300);
  transition: background .25s, transform .2s;
}
.btn-music:hover { background: rgba(228, 194, 134, .15); }
.btn-music svg { width: 18px; height: 18px; fill: currentColor; }
.btn-music .ico-pause, .btn-music .eq { display: none; }
.btn-music.is-playing .ico-play { display: none; }
.btn-music.is-playing .ico-pause, .btn-music.is-playing .eq { display: inline-flex; }
.btn-music__label { font-family: var(--f-caps); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; }
.btn-music:not(.is-playing) { animation: pulse-gold 2.4s ease-in-out infinite; }
@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(228, 194, 134, .45); }
  50% { box-shadow: 0 0 0 8px rgba(228, 194, 134, 0); }
}
.eq { gap: 2px; align-items: flex-end; height: 14px; }
.eq b { width: 3px; background: var(--gold-400); border-radius: 2px; animation: eq .9s ease-in-out infinite; }
.eq b:nth-child(2) { animation-delay: .2s; }
.eq b:nth-child(3) { animation-delay: .4s; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 14px; } }
@media (max-width: 420px) { .btn-music__label { display: none; } }

.btn-cart {
  position: relative;
  width: 46px; height: 46px; border-radius: 50%;
  border: none;
  background: linear-gradient(145deg, var(--gold-300), var(--gold-500));
  color: var(--wine-800);
  display: grid; place-items: center;
  box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .6);
  transition: transform .2s;
}
.btn-cart:hover { transform: translateY(-2px); }
.btn-cart svg { width: 22px; height: 22px; fill: currentColor; }
.btn-cart.bump { animation: bump .5s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.25) rotate(-8deg); } 100% { transform: scale(1); } }

.badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 999px;
  background: #d62b36; color: #fff;
  font: 700 .72rem/22px system-ui, sans-serif; text-align: center;
  border: 2px solid var(--wine-800);
}
.badge.is-zero { display: none; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--f-caps); font-weight: 600; font-size: .82rem;
  letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none;
  transition: transform .2s, box-shadow .25s, background .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn--block { width: 100%; }
.btn--gold {
  background: linear-gradient(145deg, var(--gold-300), var(--gold-500));
  color: var(--wine-800);
  box-shadow: 0 10px 24px -10px rgba(228, 194, 134, .8);
}
.btn--ghost { border-color: rgba(243, 220, 174, .6); color: var(--gold-300); }
.btn--ghost:hover { background: rgba(243, 220, 174, .1); }
.btn--wine {
  background: linear-gradient(145deg, var(--wine-500), var(--wine-700));
  color: var(--cream-50);
  box-shadow: 0 10px 20px -12px rgba(106, 16, 22, .9);
}
.btn--wine:hover { box-shadow: 0 14px 26px -12px rgba(106, 16, 22, 1); }
.btn--wa { background: var(--wa); color: #fff; padding: 15px 20px; font-size: .8rem; box-shadow: 0 10px 22px -10px rgba(31, 168, 85, .9); }
.btn--wa svg { width: 22px; height: 22px; }

/* ---------- Hero ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  overflow: hidden;
  background: #3a0709;
  color: var(--cream-100);
  display: flex; align-items: flex-end;
}
/* fundo: a própria foto da capa, sem moldura */
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg-photo {
  position: absolute; inset: 0;
  background: url("../../img/capa-larga.jpg") center top / cover no-repeat;
}
.hero__bg-photo { animation: kenburns 24s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.06); } }
/* escurece só a parte de baixo para o texto e os botões aparecerem */
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(40, 4, 6, 0) 55%, rgba(40, 4, 6, .55) 75%, rgba(40, 4, 6, .92) 100%);
}
/* telas largas que não são computador (celular deitado, tablet): foto larga */
@media (min-aspect-ratio: 3/4) {
  .hero__bg-photo { background-position: center 30%; }
}

/* título escrito: escondido no celular (lá ele faz parte da foto) */
.hero__brand { display: none; }

/* ===== COMPUTADOR: parede vermelha com a árvore à esquerda + título escrito ===== */
@media (min-width: 900px) and (orientation: landscape) {
  .hero { align-items: center; }
  .hero__bg-photo {
    background-image: url("../../img/fundo-computador.jpg");
    background-position: left center;
    animation: none;
  }
  .hero__bg::after { background: linear-gradient(90deg, rgba(40, 4, 6, 0) 40%, rgba(40, 4, 6, .25) 100%); }
  .hero__inner { padding: 28px 16px 80px; display: flex; justify-content: center; }
  .hero__text { width: min(620px, 60%); margin: 0 auto; }
  .hero__brand { display: flex; flex-direction: column; align-items: center; }
  .hero__logo { width: min(170px, 19vh); height: auto; }
  .hero__line { width: 1px; height: min(54px, 5vh); background: linear-gradient(var(--gold-400), transparent); margin: 18px 0 6px; }
  .hero__spark { color: var(--gold-300); font-size: 1rem; animation: spark 2.2s ease-in-out infinite; }
  .hero__kicker {
    margin: 14px 0 0;
    font-family: var(--f-caps); font-weight: 400;
    font-size: clamp(1.3rem, min(2.6vw, 4.2vh), 2.4rem); letter-spacing: .38em; line-height: 1.25;
    color: var(--cream-100); padding-left: .38em; text-align: center;
  }
  .hero__kicker small { font-size: .72em; letter-spacing: .3em; }
  .hero__title {
    margin: -6px 0 0;
    font-family: var(--f-script); font-weight: 400;
    font-size: clamp(4.5rem, min(10vw, 17vh), 10rem); line-height: 1;
    color: var(--cream-50);
    animation: glow 4s ease-in-out infinite;
  }
  .hero__bow { width: min(340px, 80%); height: auto; margin-top: -6px; fill: none; stroke: var(--gold-400); stroke-width: 1.6; stroke-linecap: round; }
  .hero__bow circle { fill: var(--gold-400); }
  .hero__bow path { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 2.4s .4s ease forwards; }
  .hero__sub { margin-top: 22px; }
  .orn--1, .orn--2 { display: none; }
}
@keyframes spark { 0%, 100% { transform: scale(1) rotate(0); opacity: .9; } 50% { transform: scale(1.5) rotate(45deg); opacity: 1; text-shadow: 0 0 12px #fff3c4; } }
@keyframes glow { 0%, 100% { text-shadow: 0 0 22px rgba(255, 220, 160, .25); } 50% { text-shadow: 0 0 40px rgba(255, 220, 160, .6); } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* celulares baixos: esconde a frase para não cobrir o "Natal" da foto */
@media (max-aspect-ratio: 3/4) and (max-height: 640px) {
  .hero__sub { display: none; }
}
.hero__inner {
  position: relative; z-index: 3;
  width: 100%; max-width: 1200px; margin: 0 auto;
  padding: 0 16px 84px;
}
.hero__text { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero__sub { max-width: 440px; margin: 0 auto 20px; color: var(--cream-100); font-size: 1.02rem; text-shadow: 0 2px 12px rgba(0, 0, 0, .6); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
@media (max-aspect-ratio: 3/4) {
  .hero__inner { padding-bottom: 26px; }
  .hero__sub { font-size: .92rem; max-width: 330px; margin-bottom: 14px; line-height: 1.45; }
  .hero__cta .btn { padding: 12px 22px; }
  .hero__scroll { display: none; }
  .hero__bg::after { background: linear-gradient(180deg, rgba(40, 4, 6, 0) 68%, rgba(40, 4, 6, .6) 82%, rgba(40, 4, 6, .92) 100%); }
}
.hero__cta .btn--ghost { background: rgba(40, 4, 6, .35); backdrop-filter: blur(4px); }

.hero__scroll {
  position: absolute; z-index: 3; left: 50%; bottom: 22px; translate: -50% 0;
  width: 26px; height: 42px; border: 1.5px solid rgba(243, 220, 174, .6); border-radius: 14px;
}
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold-300); animation: scroll 1.8s infinite; }
@keyframes scroll { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* bolas penduradas */
.ornaments { position: absolute; inset: 0 0 auto; height: 0; z-index: 2; }
.orn {
  position: absolute; top: 0;
  width: 2px; background: linear-gradient(rgba(243, 220, 174, .1), rgba(243, 220, 174, .7));
  transform-origin: top center;
  animation: swing 4.5s ease-in-out infinite;
}
.orn::after {
  content: ""; position: absolute; left: 50%; bottom: -34px; translate: -50% 0;
  width: 38px; height: 38px; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #fff 0 4%, var(--b1) 12%, var(--b2) 70%, #200204 100%);
  box-shadow: 0 10px 20px -6px rgba(0, 0, 0, .6);
}
.orn::before {
  content: ""; position: absolute; left: 50%; bottom: -6px; translate: -50% 0;
  width: 10px; height: 8px; border-radius: 2px;
  background: linear-gradient(90deg, #a9813f, #f3dcae, #a9813f);
  z-index: 1;
}
.orn--1 { left: 5%;  height: 70px;  --b1: #e5484f; --b2: #8e0f17; }
.orn--2 { left: 13%; height: 130px; --b1: #f3dcae; --b2: #a77a32; animation-delay: -1.5s; animation-duration: 5.2s; }
.orn--3 { right: 9%;  height: 90px;  --b1: #e5484f; --b2: #8e0f17; animation-delay: -2.6s; }
.orn--4 { right: 3%;  height: 150px; --b1: #4fa766; --b2: #164425; animation-delay: -.8s; animation-duration: 5.8s; }
.orn--4::after { width: 30px; height: 30px; bottom: -28px; }
@keyframes swing { 0%, 100% { transform: rotate(5deg); } 50% { transform: rotate(-5deg); } }
@media (max-width: 760px) { .orn--2, .orn--3 { display: none; } .orn--1 { height: 50px; } .orn--4 { height: 70px; } }

/* ---------- Zoom hint ---------- */
.zoom-hint {
  position: absolute; right: 12px; bottom: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 999px;
  background: rgba(59, 7, 11, .82); color: var(--cream-50);
  font-family: var(--f-caps); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  backdrop-filter: blur(4px);
  transition: transform .3s, background .3s;
}
.zoom-hint svg { width: 15px; height: 15px; fill: currentColor; }

/* ---------- Cardápio ---------- */
.menu {
  position: relative; z-index: 3;
  padding: 80px max(16px, calc((100% - 1200px) / 2)) 90px;
  background:
    radial-gradient(50% 40% at 0% 0%, rgba(255, 255, 255, .55), transparent 70%),
    radial-gradient(40% 40% at 100% 30%, rgba(232, 196, 168, .5), transparent 70%),
    var(--cream-100);
}
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head__logo { width: 120px; height: auto; margin: 0 auto; }
.divider { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 14px auto 10px; width: 280px; max-width: 100%; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--wine-600); opacity: .6; }
.divider i { width: 6px; height: 6px; border-radius: 50%; background: var(--wine-600); }
.section-head h2, .howto h2 {
  margin: 6px 0 10px;
  font-family: var(--f-title); font-style: italic; font-weight: 700;
  font-size: clamp(2.1rem, 6vw, 3.2rem); line-height: 1.1;
  color: var(--wine-700);
}
.section-head h2 em, .howto h2 em { font-family: var(--f-script); font-style: normal; font-weight: 400; font-size: 1.25em; color: var(--wine-500); }
.section-head p { color: var(--ink-soft); margin: 0; }

.grid { display: grid; gap: 26px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 30px; } }

.card {
  display: flex; flex-direction: column;
  background: var(--cream-50);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid rgba(125, 21, 28, .12);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -22px rgba(59, 7, 11, .55); }
.card__media { position: relative; display: block; overflow: hidden; aspect-ratio: 864 / 1536; max-height: 560px; background: var(--cream-200); }
.card__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.card:hover .card__media img { transform: scale(1.04); }
.card:hover .zoom-hint { transform: scale(1.06); background: var(--wine-600); }
.card__tag {
  position: absolute; left: 12px; top: 12px;
  padding: 5px 12px; border-radius: 999px;
  background: var(--wine-700); color: var(--cream-50);
  font-family: var(--f-caps); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .5);
}
.card__body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card__title { margin: 0; font-family: var(--f-title); font-style: italic; font-weight: 700; font-size: 1.5rem; color: var(--wine-700); line-height: 1.15; }
.card__desc { margin: 0; color: var(--ink-soft); font-size: .95rem; flex: 1; }
.card__opt { display: grid; gap: 4px; font-size: .82rem; color: var(--ink-soft); }
.card__opt select, .field input, .field select, .field textarea {
  width: 100%; padding: 10px 12px;
  border-radius: 10px; border: 1px solid var(--cream-300);
  background: #fff; color: var(--ink);
  font: inherit; font-size: .95rem;
}
.card__opt select:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold-400); border-color: var(--gold-500); }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price {
  display: inline-block; padding: 6px 16px; border-radius: 12px;
  background: linear-gradient(145deg, var(--wine-600), var(--wine-800));
  color: var(--cream-50);
  font-family: var(--f-title); font-weight: 600; font-size: 1.2rem; letter-spacing: .02em;
  box-shadow: inset 0 0 0 1px rgba(228, 194, 134, .4);
}
.qty { display: inline-flex; align-items: center; border: 1px solid var(--cream-300); border-radius: 999px; background: #fff; overflow: hidden; }
.qty__btn { width: 38px; height: 38px; border: 0; background: transparent; color: var(--wine-700); font-size: 1.25rem; line-height: 1; transition: background .2s; }
.qty__btn:hover { background: var(--cream-100); }
.qty__input { width: 38px; height: 38px; border: 0; text-align: center; font: 600 1rem var(--f-body); color: var(--ink); background: transparent; -moz-appearance: textfield; appearance: textfield; }
.qty__input::-webkit-outer-spin-button, .qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty--sm .qty__btn, .qty--sm .qty__input { width: 30px; height: 30px; font-size: .95rem; }

/* ---------- Como pedir ---------- */
.howto {
  position: relative; z-index: 3;
  background:
    radial-gradient(60% 60% at 0% 0%, rgba(255, 190, 110, .2), transparent 70%),
    linear-gradient(160deg, #5e0d13 0%, #3b070b 100%);
  color: var(--cream-100);
  padding: 80px 16px;
}
.howto__inner { max-width: 1100px; margin: 0 auto; display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .howto__inner { grid-template-columns: 1.1fr .9fr; } }
.howto h2 { color: var(--cream-50); font-weight: 600; text-align: center; }
.howto h2 em { color: var(--gold-300); }
.howto__bow { display: block; width: 220px; margin: 0 auto 20px; fill: none; stroke: var(--gold-400); stroke-width: 1.6; stroke-linecap: round; }
.steps { list-style: none; margin: 0 0 28px; padding: 0; }
.steps li { display: flex; gap: 18px; align-items: center; padding: 16px 0; border-bottom: 1px solid rgba(228, 194, 134, .22); }
.steps__ico { flex: none; width: 52px; height: 52px; display: grid; place-items: center; border-right: 1px solid rgba(228, 194, 134, .5); padding-right: 14px; }
.steps__ico svg { width: 34px; height: 34px; fill: var(--gold-400); }
.steps strong { display: block; font-weight: 500; color: var(--cream-50); }
.steps small { display: block; color: var(--cream-300); font-size: .86rem; }
.wa-pill {
  display: flex; align-items: center; gap: 16px;
  max-width: 420px; margin: 0 auto;
  padding: 12px 24px; border-radius: 999px;
  border: 1.5px solid var(--gold-400);
  text-decoration: none; color: var(--cream-100);
  transition: background .3s;
}
.wa-pill:hover { background: rgba(228, 194, 134, .1); }
.wa-pill svg { width: 40px; height: 40px; fill: var(--gold-400); flex: none; padding-right: 14px; border-right: 1px solid rgba(228, 194, 134, .5); box-sizing: content-box; }
.wa-pill b { display: block; font-size: 1.35rem; color: var(--gold-300); font-weight: 600; }
.howto__poster { position: relative; justify-self: center; width: min(380px, 86vw); border-radius: 18px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(228, 194, 134, .35); }

/* ---------- Footer ---------- */
.footer { position: relative; z-index: 3; background: var(--wine-900); color: var(--cream-300); text-align: center; padding: 40px 16px 110px; font-size: .9rem; }
.footer img { width: 130px; margin: 0 auto 12px; height: auto; }
.footer p { margin: 4px 0; }
.footer__xmas { font-family: var(--f-script); font-size: 1.9rem; color: var(--gold-300); margin-top: 10px !important; }
@media (min-width: 760px) { .footer { padding-bottom: 40px; } }

/* ---------- FAB carrinho (mobile) ---------- */
.fab-cart {
  position: fixed; z-index: 45;
  left: 16px; right: 16px; bottom: 16px;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 22px;
  border: 0; border-radius: 999px;
  background: linear-gradient(145deg, var(--wine-500), var(--wine-800));
  color: var(--cream-50);
  box-shadow: 0 16px 30px -12px rgba(59, 7, 11, .9), 0 0 0 1px rgba(228, 194, 134, .4);
  transform: translateY(140%);
  transition: transform .45s cubic-bezier(.2, .9, .3, 1.2);
}
.fab-cart.is-visible { transform: translateY(0); }
.fab-cart__label { font-family: var(--f-caps); letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; }
.fab-cart__total { margin-left: auto; font-family: var(--f-title); font-size: 1.15rem; color: var(--gold-300); }
.fab-cart .badge { position: static; border-color: var(--wine-500); }
@media (min-width: 760px) { .fab-cart { display: none; } }

/* ---------- Drawer ---------- */
.overlay { position: fixed; inset: 0; z-index: 70; background: rgba(30, 3, 5, .55); backdrop-filter: blur(3px); animation: fade .3s; }
@keyframes fade { from { opacity: 0; } }
.drawer {
  position: fixed; z-index: 80; top: 0; right: 0; bottom: 0;
  width: min(440px, 100%);
  display: flex; flex-direction: column;
  background: var(--cream-50);
  box-shadow: -20px 0 50px -20px rgba(0, 0, 0, .6);
  transform: translateX(105%);
  visibility: hidden;
  transition: transform .45s cubic-bezier(.2, .8, .2, 1), visibility 0s .45s;
}
.drawer.is-open { transform: translateX(0); visibility: visible; transition-delay: 0s; }
.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px;
  background: linear-gradient(160deg, var(--wine-700), var(--wine-900));
  color: var(--cream-50);
}
.drawer__head h2 { margin: 0; font-family: var(--f-title); font-style: italic; font-size: 1.6rem; }
.drawer__close { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(243, 220, 174, .5); background: transparent; color: var(--cream-50); font-size: 1.6rem; line-height: 1; }
.drawer__body { flex: 1; overflow-y: auto; padding: 18px 20px 28px; overscroll-behavior: contain; }

.cart-empty { text-align: center; padding: 40px 10px; color: var(--ink-soft); }
.cart-empty img { width: 120px; margin: 0 auto 14px; opacity: .85; }

.cart-list { list-style: none; margin: 0 0 18px; padding: 0; }
.cart-item {
  display: grid; grid-template-columns: 62px 1fr auto; gap: 12px; align-items: center;
  padding: 12px 0; border-bottom: 1px dashed var(--cream-300);
}
.cart-item.is-new { animation: slidein .5s ease; }
@keyframes slidein { from { opacity: 0; transform: translateX(20px); } }
.cart-item img { width: 62px; height: 80px; object-fit: cover; object-position: center 60%; border-radius: 10px; }
.cart-item__name { font-family: var(--f-title); font-weight: 600; color: var(--wine-700); line-height: 1.2; }
.cart-item__opt { display: block; font-size: .78rem; color: var(--ink-soft); }
.cart-item__unit { font-size: .8rem; color: var(--ink-soft); }
.cart-item__right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.cart-item__total { font-weight: 600; color: var(--ink); white-space: nowrap; }
.cart-item__rm { border: 0; background: none; color: var(--wine-500); font-size: .76rem; text-decoration: underline; padding: 0; }

.checkout h3 { font-family: var(--f-caps); font-size: .9rem; letter-spacing: .14em; text-transform: uppercase; color: var(--wine-700); margin: 6px 0 12px; }
.field { display: grid; gap: 4px; margin: 0 0 12px; font-size: .86rem; color: var(--ink-soft); border: 0; padding: 0; }
.field small { color: var(--wine-500); }
.field--radio { display: flex; gap: 10px; flex-wrap: wrap; }
.field--radio legend { width: 100%; margin-bottom: 4px; }
.field--radio label {
  flex: 1; display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border-radius: 10px; border: 1px solid var(--cream-300); background: #fff; color: var(--ink); cursor: pointer;
}
.field--radio label:has(input:checked) { border-color: var(--wine-600); background: #fff6f2; box-shadow: inset 0 0 0 1px var(--wine-600); }
.field--radio input { accent-color: var(--wine-600); width: auto; }
.hint { font-size: .8rem; color: var(--ink-soft); margin: -4px 0 12px; }
.field.is-invalid input, .field.is-invalid select { border-color: #d62b36; background: #fff4f4; }

.summary { margin: 18px 0 14px; padding: 14px 16px; border-radius: 14px; background: var(--cream-100); border: 1px solid var(--cream-300); }
.summary div { display: flex; justify-content: space-between; padding: 3px 0; font-size: .92rem; }
.summary__total { border-top: 1px solid var(--cream-300); margin-top: 6px; padding-top: 8px !important; font-size: 1.1rem !important; color: var(--wine-700); }
.summary__total b { font-family: var(--f-title); font-size: 1.3rem; }
.summary__half { color: var(--ink-soft); font-size: .82rem !important; }
.form-error { color: #b3141f; background: #fff0f0; border: 1px solid #f3c2c5; border-radius: 10px; padding: 10px 12px; font-size: .88rem; }
.link-clear { display: block; margin: 14px auto 0; border: 0; background: none; color: var(--ink-soft); font-size: .82rem; text-decoration: underline; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; z-index: 90; left: 50%; top: 96px;
  translate: -50% -20px; opacity: 0; pointer-events: none;
  padding: 12px 20px; border-radius: 999px;
  background: var(--green-700); color: #fff;
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5);
  font-size: .92rem; white-space: nowrap;
  transition: opacity .3s, translate .3s;
}
.toast.is-show { opacity: 1; translate: -50% 0; }

/* item voando até o carrinho */
.fly {
  position: fixed; z-index: 95; pointer-events: none;
  border-radius: 12px; object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
  transition: all .8s cubic-bezier(.5, -0.3, .7, 1);
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }
.card.reveal.is-in:hover { transform: translateY(-6px); }

/* ---------- Fancybox: tema ---------- */
.fancybox__container { --fancybox-bg: rgba(30, 3, 5, .94); --fancybox-accent-color: var(--gold-400); }
.fancybox__caption { font-family: var(--f-title); font-style: italic; font-size: 1.15rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
