/* ==========================================================
   RANCHO DO SABOR | tema
   Troque as cores do site nas variáveis abaixo.
   ========================================================== */
@font-face { font-family: "Anton"; src: url("../fonts/anton.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Kaushan Script"; src: url("../fonts/kaushan.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../fonts/dmsans.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }

:root {
  --ink: #120904;
  --wood: #1d110a;
  --panel: #24150c;
  --panel-2: #2f1c10;
  --line: rgba(255, 190, 110, .16);
  --line-strong: rgba(255, 190, 110, .34);
  --orange: #f7670f;
  --orange-deep: #d94a05;
  --amber: #ffa412;
  --yellow: #ffd02e;
  --cream: #fff7ea;
  --muted: #cdb9a3;
  --green: #1fae54;
  --green-deep: #128a3f;
  --danger: #ff8d70;
  --display: "Anton", Impact, "Arial Narrow", sans-serif;
  --script: "Kaushan Script", "Brush Script MT", cursive;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 18px;
  --topbar: 62px;
  --phone: 480px; /* largura máxima do site: em telas maiores ele fica centralizado */
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.locked { overflow: hidden; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink);
  color: var(--cream);
  font: 400 16px/1.5 var(--body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.topbar, main, .footer { width: 100%; max-width: var(--phone); margin-inline: auto; }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(90% 50% at 50% 0, rgba(247, 103, 15, .1), transparent 70%),
    linear-gradient(rgba(18, 9, 4, .62), rgba(18, 9, 4, .8)),
    url("../images/fundo/madeira.webp") center / cover;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.wrap { width: min(1200px, 100%); margin-inline: auto; padding-inline: 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--yellow); color: #000; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }
.script { font-family: var(--script); color: var(--amber); font-size: 1.3rem; line-height: 1.2; }
.brush { width: 150px; height: 10px; fill: var(--orange); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 20px;
  border: 0; border-radius: 12px;
  font-weight: 800; font-size: .95rem; line-height: 1.15; text-decoration: none; text-align: center;
  transition: transform .18s var(--ease), box-shadow .18s, filter .18s, background .18s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: scale(.97); }
.btn--lg { min-height: 54px; padding: 12px 24px; font-size: 1.02rem; }
.btn--block { width: 100%; }
.btn--primary {
  background: linear-gradient(180deg, #ff8a1f, var(--orange) 55%, var(--orange-deep));
  color: #fff; text-shadow: 0 1px 1px rgba(90, 30, 0, .55);
  box-shadow: 0 8px 22px -8px rgba(247, 103, 15, .85), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.btn--whats {
  background: linear-gradient(180deg, #27c463, var(--green) 55%, var(--green-deep));
  color: #fff; text-shadow: 0 1px 1px rgba(0, 60, 25, .5);
  box-shadow: 0 8px 22px -8px rgba(31, 174, 84, .85), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn--ghost { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
@media (hover: hover) {
  .btn--primary:hover, .btn--whats:hover { filter: brightness(1.08); transform: translateY(-2px); }
  .btn--ghost:hover { background: rgba(255, 190, 110, .1); }
}

/* ---------- Topo ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 12px;
  height: var(--topbar);
  padding: 0 16px;
  background: rgba(18, 9, 4, .9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.topbar__brand { display: flex; align-items: center; gap: 8px; margin-right: auto; text-decoration: none; min-width: 0; }
.topbar__brand img { width: 46px; height: 46px; object-fit: contain; flex: none; }
.topbar__brand span { font-family: var(--display); font-size: 1.16rem; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; }
.topbar__brand em { font-family: var(--script); font-style: normal; text-transform: none; color: var(--amber); padding-inline: 2px; }
.topbar__cart {
  position: relative; display: flex; align-items: center; gap: 8px;
  min-width: 46px; height: 46px; padding: 0 11px;
  background: rgba(255, 190, 110, .1); border: 1px solid var(--line-strong); border-radius: 12px;
  font-weight: 700;
}
.topbar__cart svg { width: 22px; height: 22px; }
.topbar__cart.bump { animation: bump .4s var(--ease); }
.count {
  position: absolute; top: -7px; right: -7px;
  min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px;
  background: var(--yellow); color: #231000; font-size: .78rem; font-weight: 800; line-height: 22px; text-align: center;
}
@keyframes bump { 40% { transform: scale(1.16) rotate(-5deg); } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; border-bottom: 3px solid var(--orange); }
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(70% 40% at 50% 26%, rgba(18, 9, 4, .25), transparent),
    linear-gradient(180deg, rgba(18, 9, 4, .72), rgba(18, 9, 4, .62) 38%, rgba(18, 9, 4, .95) 78%);
}
.hero__inner {
  width: min(1200px, 100%); margin-inline: auto;
  padding: 20px 16px 34px;
  display: grid; justify-items: center; text-align: center; gap: 8px;
}
.hero__stage { position: relative; width: 100%; aspect-ratio: 100 / 80; }

/* Logo animada: entra com impacto, flutua e recebe um brilho */
.hero__logo {
  position: absolute; left: 10%; top: 0; width: 80%;
  animation: logoIn .9s var(--ease) both, logoFloat 4.6s .9s ease-in-out infinite;
}
.hero__logo::before {
  content: ""; position: absolute; inset: -8%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 140, 20, .6), transparent);
  animation: glow 2.6s ease-in-out infinite;
}
.hero__logo img { width: 100%; height: auto; filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .65)); }
.hero__shine {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .75) 50%, transparent 60%) no-repeat;
  background-size: 300% 100%; background-position: 120% 0;
  -webkit-mask: url("../images/logo.webp") center / contain no-repeat; mask: url("../images/logo.webp") center / contain no-repeat;
  animation: shine 4.5s 1.2s ease-in-out infinite;
}
@keyframes logoIn { 0% { opacity: 0; transform: scale(.4) rotate(-10deg); } 65% { opacity: 1; transform: scale(1.08) rotate(2deg); } }
@keyframes logoFloat { 50% { transform: translateY(-6px) rotate(-1.2deg) scale(1.015); } }
@keyframes glow { 0%, 100% { opacity: .55; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes shine { 0% { background-position: 120% 0; } 35%, 100% { background-position: -40% 0; } }

.hero__logo::after {
  content: ""; position: absolute; inset: -22%; z-index: -2; border-radius: 50%; pointer-events: none;
  background: repeating-conic-gradient(rgba(255, 190, 60, .55) 0 10deg, transparent 10deg 30deg);
  -webkit-mask: radial-gradient(closest-side, #000 35%, transparent); mask: radial-gradient(closest-side, #000 35%, transparent);
  opacity: 0; animation: rays 1.5s .1s ease-out;
}
@keyframes rays { 0% { opacity: 0; transform: scale(.4) rotate(0); } 25% { opacity: 1; } 100% { opacity: 0; transform: scale(1.15) rotate(50deg); } }
body:not(.in-hero) .hero * { animation-play-state: paused; }

/* Brasas subindo */
.hero__embers { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.hero__embers i {
  position: absolute; bottom: -10px; width: 5px; height: 5px; border-radius: 50%;
  background: #ffb13a; box-shadow: 0 0 8px 2px rgba(255, 120, 20, .9);
  animation: ember 6s linear infinite;
}
.hero__embers i:nth-child(1) { left: 8%; animation-delay: 0s; }
.hero__embers i:nth-child(2) { left: 22%; animation-delay: 2.4s; animation-duration: 7s; }
.hero__embers i:nth-child(3) { left: 38%; animation-delay: 1.1s; animation-duration: 5.2s; }
.hero__embers i:nth-child(4) { left: 53%; animation-delay: 3.6s; }
.hero__embers i:nth-child(5) { left: 67%; animation-delay: .6s; animation-duration: 7.4s; }
.hero__embers i:nth-child(6) { left: 81%; animation-delay: 2.9s; animation-duration: 5.6s; }
.hero__embers i:nth-child(7) { left: 93%; animation-delay: 4.4s; }
@keyframes ember { 0% { transform: translate(0, 0) scale(1); opacity: 0; } 10% { opacity: 1; } 100% { transform: translate(24px, -640px) scale(.3); opacity: 0; } }
.hero__copy { animation: rise .8s .25s var(--ease) both; display: grid; justify-items: center; }
.hero__kicker { font-size: .78rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--yellow); }
.hero h1 {
  margin-top: 4px;
  font: 400 clamp(2.6rem, 13vw, 3.9rem)/1.04 var(--display);
  text-transform: uppercase; letter-spacing: .01em;
  text-shadow: 0 4px 0 rgba(90, 30, 0, .55), 0 10px 30px rgba(0, 0, 0, .7);
}
.hero h1 span { color: transparent; background: linear-gradient(180deg, var(--yellow), var(--orange) 85%); -webkit-background-clip: text; background-clip: text; text-shadow: none; filter: drop-shadow(0 4px 0 rgba(90, 30, 0, .55)); }
.hero__text { max-width: 34em; margin-top: 12px; color: #f3e4d2; }
.hero__actions { display: grid; width: min(100%, 400px); margin-top: 20px; }
.hero__delivery {
  display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 8px 18px 8px 12px;
  border: 1px solid var(--line-strong); border-radius: 14px; background: rgba(18, 9, 4, .6); text-align: left;
}
.hours { margin-top: 10px; font-size: .88rem; font-weight: 700; color: var(--yellow); }
.hero__delivery svg { width: 46px; height: 36px; color: var(--amber); flex: none; }
.hero__delivery strong { display: block; font-family: var(--display); font-weight: 400; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; line-height: 1.2; }
.hero__delivery a { font-family: var(--display); font-size: 1.32rem; color: var(--amber); text-decoration: none; letter-spacing: .02em; line-height: 1.2; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* ---------- Títulos ---------- */
.section-head h2, .cat__head h2 {
  font: 400 clamp(2.2rem, 8vw, 3.4rem)/1.08 var(--display);
  text-transform: uppercase; letter-spacing: .012em;
}
.section-head--center { display: grid; justify-items: center; text-align: center; gap: 4px; }
.section-head .brush { margin-top: 4px; }

/* ---------- Destaques ---------- */
.highlights { padding: 42px 0 12px; }
.highlights__track {
  display: flex; gap: 14px; margin-top: 22px;
  padding: 4px 16px 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px;
  scrollbar-width: none;
}
.highlights__track::-webkit-scrollbar { display: none; }
.highlights__track { cursor: grab; -webkit-overflow-scrolling: touch; touch-action: pan-x pan-y; }
.highlights__track.dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.highlights__track.dragging .spot { pointer-events: none; }
.highlights__nav { display: grid; justify-items: center; gap: 8px; padding-inline: 16px; }
.highlights__dots { display: flex; gap: 7px; }
.highlights__dots i { width: 8px; height: 8px; border-radius: 4px; background: var(--line-strong); transition: width .25s var(--ease), background .25s; }
.highlights__dots i.on { width: 24px; background: var(--orange); }
.highlights__hint { font-size: .85rem; font-weight: 700; color: var(--amber); transition: opacity .3s; }
.highlights__hint i { display: inline-block; font-style: normal; font-size: 1.1rem; line-height: 1; animation: nudge 1.2s ease-in-out infinite; }
.highlights__hint.off { opacity: 0; }
@keyframes nudge { 50% { transform: translateX(6px); } }
.spot {
  display: flex; flex-direction: column; flex: 0 0 min(80vw, 330px); scroll-snap-align: start;
  overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line-strong);
  box-shadow: 0 18px 36px -18px #000; background: var(--panel);
}
.spot img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.spot__body { display: flex; flex-direction: column; flex: 1; align-items: flex-start; padding: 14px 16px 16px; background: linear-gradient(180deg, var(--panel-2), var(--panel)); }
.spot h3 { margin-top: 8px; font: 400 1.75rem/1.1 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.spot__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; width: 100%; margin-top: auto; padding-top: 10px; }
.tag {
  display: inline-block; padding: 4px 10px; border-radius: 6px;
  background: linear-gradient(90deg, var(--yellow), var(--amber));
  color: #291300; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
}

/* Preço no estilo do cardápio impresso */
.price { display: grid; line-height: 1; }
.price small { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #f3e4d2; margin-bottom: 3px; }
.price b {
  display: flex; align-items: baseline; gap: 3px;
  font: 400 2.5rem/1 var(--display);
  color: transparent; background: linear-gradient(180deg, var(--yellow) 15%, var(--orange) 90%); -webkit-background-clip: text; background-clip: text;
  padding-right: 2px;
}
.price i { font-style: normal; font-size: 1.15rem; }

/* ---------- Barra de categorias ---------- */
.menu { padding-top: 16px; scroll-margin-top: var(--topbar); }
.menu__bar {
  position: sticky; top: var(--topbar); z-index: 20;
  background: rgba(18, 9, 4, .93);
  border-block: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.menu__bar .wrap { padding-inline: 0; }
.cats {
  display: flex; gap: 8px; padding: 10px 16px;
  overflow-x: auto; scrollbar-width: none;
}
.cats::-webkit-scrollbar { display: none; }
.cats button {
  flex: none; min-height: 40px; padding: 7px 16px;
  background: rgba(255, 190, 110, .08); border: 1px solid var(--line-strong); border-radius: 999px;
  font-weight: 700; font-size: .9rem; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s;
}
.cats button[aria-pressed="true"] {
  background: linear-gradient(180deg, #ff8a1f, var(--orange-deep)); border-color: transparent; color: #fff;
  box-shadow: 0 6px 16px -6px rgba(247, 103, 15, .9);
}
.search {
  position: relative; margin-top: 16px;
}
.search > svg { position: absolute; left: 15px; top: 15px; width: 20px; height: 20px; color: var(--amber); pointer-events: none; }
.search input {
  width: 100%; height: 50px; padding: 0 46px;
  background: rgba(18, 9, 4, .72); border: 1px solid var(--line-strong); border-radius: 14px;
  font-size: 1rem;
  -webkit-appearance: none; appearance: none;
}
.search input::-webkit-search-cancel-button { display: none; }
.search input::placeholder { color: #a8927c; }
.search input:focus { outline: 0; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(255, 164, 18, .25); }
.search button { position: absolute; right: 3px; top: 3px; width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; color: var(--muted); }
.search button svg { width: 18px; height: 18px; }
.menu__status { min-height: 1.5em; margin-top: 8px; font-size: .88rem; color: var(--muted); }

/* ---------- Seções ---------- */
.cat { padding: 18px 0 30px; scroll-margin-top: calc(var(--topbar) + 70px); }
.cat__head {
  position: relative; overflow: hidden; isolation: isolate;
  margin-bottom: 18px; padding: 22px 18px 18px;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--wood);
}
.cat__head::before {
  content: ""; position: absolute; inset: 0 0 0 30%; z-index: -1;
  background: linear-gradient(90deg, var(--wood) 2%, rgba(29, 17, 10, .55) 60%, rgba(29, 17, 10, .25)), var(--cover) center / cover;
}
.cat__head h2 { font-size: clamp(2rem, 8.4vw, 3.4rem); text-shadow: 0 3px 12px rgba(0, 0, 0, .75); }
.cat__head .script { text-shadow: 0 2px 8px rgba(0, 0, 0, .85); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 16px; }
.card {
  display: flex; flex-direction: column;
  overflow: hidden; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  box-shadow: 0 16px 30px -20px #000;
  opacity: 0; transform: translateY(14px);
  transition: opacity .5s var(--ease), transform .5s var(--ease), border-color .25s, box-shadow .25s;
}
.card.in { opacity: 1; transform: none; }
.card.flash { animation: flash 1.6s var(--ease); }
@keyframes flash { 0%, 60% { box-shadow: 0 0 0 3px var(--yellow), 0 0 40px rgba(255, 164, 18, .5); } }
.card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--wood); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card__media::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(180deg, transparent, rgba(36, 21, 12, .85)); }
.card__media .tag { position: absolute; left: 12px; top: 12px; z-index: 1; }
.card__body { display: flex; flex-direction: column; flex: 1; gap: 10px; padding: 12px 16px 16px; }
.card h3 { font: 400 1.62rem/1.12 var(--display); text-transform: uppercase; letter-spacing: .012em; }
.card__desc { color: var(--muted); font-size: .94rem; line-height: 1.42; }
.sides {
  display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: baseline;
  padding: 8px 10px; border-left: 3px solid var(--orange); border-radius: 0 8px 8px 0;
  background: rgba(247, 103, 15, .1); font-size: .86rem; line-height: 1.3;
}
.sides strong { font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; color: var(--amber); }
.sizes { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.sizes label { position: relative; cursor: pointer; }
.sizes input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.sizes span {
  display: grid; justify-items: center; align-content: center; gap: 1px; height: 100%; min-height: 56px; padding: 6px 4px;
  border: 1.5px solid var(--line-strong); border-radius: 10px;
  font-size: .78rem; font-weight: 600; line-height: 1.15; text-align: center;
  transition: background .18s, border-color .18s;
}
.sizes b { font: 400 1.14rem/1.1 var(--display); letter-spacing: .02em; color: var(--amber); }
.sizes input:checked + span { background: rgba(247, 103, 15, .2); border-color: var(--orange); box-shadow: inset 0 0 0 1px var(--orange); }
.sizes input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }
.card__buy { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 4px; }
.btn--add { flex: 0 1 200px; padding-inline: 12px; font-size: .88rem; }
.btn--add svg { width: 16px; height: 16px; }
.btn--add.done { background: linear-gradient(180deg, #27c463, var(--green-deep)); box-shadow: none; }
@media (hover: hover) {
  .card:hover { border-color: var(--line-strong); box-shadow: 0 22px 40px -20px #000; }
  .card:hover .card__media img { transform: scale(1.05); }
}

/* Sobremesas: duas colunas no celular */
.grid--sobremesas { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grid--sobremesas .card__media { aspect-ratio: 1; }
.grid--sobremesas .card__body { padding: 10px 12px 12px; gap: 6px; }
.grid--sobremesas h3 { font-size: 1.24rem; }
.grid--sobremesas .card__desc { font-size: .84rem; }
.grid--sobremesas .card__buy { flex-direction: column; align-items: stretch; gap: 8px; }
.grid--sobremesas .price small { display: none; }
.grid--sobremesas .price b { font-size: 2rem; }
.grid--sobremesas .btn--add { flex: none; min-height: 42px; font-size: .8rem; padding-inline: 6px; gap: 5px; }

.empty { display: grid; justify-items: center; gap: 8px; padding: 40px 16px; text-align: center; color: var(--muted); }
.empty .btn { margin-top: 8px; }

/* ---------- Chamada final e rodapé ---------- */
.cta { margin-top: 10px; background: linear-gradient(100deg, var(--orange-deep), var(--orange) 55%, var(--amber)); }
.cta__inner { display: grid; justify-items: center; gap: 8px; padding-block: 26px; text-align: center; color: #fff; }
.cta__inner > svg { width: 62px; height: 46px; }
.cta h2 { font: 400 2.1rem/1.1 var(--display); text-transform: uppercase; letter-spacing: .015em; text-shadow: 0 2px 0 rgba(120, 40, 0, .6); }
.cta__inner div a { font: 400 1.7rem/1.2 var(--display); text-decoration: none; letter-spacing: .02em; text-shadow: 0 2px 0 rgba(120, 40, 0, .6); }
.cta .btn { margin-top: 8px; }
.footer { padding: 30px 0 calc(34px + env(safe-area-inset-bottom)); text-align: center; background: rgba(18, 9, 4, .85); }
.footer .wrap { display: grid; justify-items: center; gap: 6px; }
.footer img { width: 96px; height: 96px; object-fit: contain; }
.footer p a { color: var(--amber); font-weight: 700; }
.footer small { margin-top: 6px; color: #a8927c; }
.has-cart .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }

/* ---------- Flutuantes ---------- */
.fab {
  position: fixed; right: max(16px, calc(50vw - var(--phone) / 2 + 16px)); bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 25;
  display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%;
  background: linear-gradient(180deg, #2ad26a, var(--green-deep)); color: #fff;
  box-shadow: 0 10px 24px -6px rgba(0, 0, 0, .7), 0 0 0 0 rgba(31, 174, 84, .6);
  animation: pulse 2.8s infinite;
  transition: bottom .25s var(--ease), transform .2s, opacity .25s, visibility .25s;
}
.in-hero .fab { opacity: 0; visibility: hidden; pointer-events: none; }
.fab svg { width: 28px; height: 28px; }
.has-cart .fab { bottom: calc(84px + env(safe-area-inset-bottom)); }
@keyframes pulse { 70% { box-shadow: 0 10px 24px -6px rgba(0, 0, 0, .7), 0 0 0 16px rgba(31, 174, 84, 0); } 100% { box-shadow: 0 10px 24px -6px rgba(0, 0, 0, .7), 0 0 0 0 rgba(31, 174, 84, 0); } }
.cartbar {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 26;
  max-width: calc(var(--phone) - 24px); margin-inline: auto;
  display: flex; align-items: center; gap: 10px; height: 58px; padding: 0 16px 0 10px;
  border: 0; border-radius: 16px;
  background: linear-gradient(180deg, #ff8a1f, var(--orange-deep)); color: #fff;
  font-weight: 800;
  box-shadow: 0 14px 28px -8px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .25);
  animation: rise .35s var(--ease);
}
.cartbar strong { margin-left: auto; font: 400 1.32rem/1 var(--display); letter-spacing: .02em; }
.cartbar__count { display: grid; place-items: center; min-width: 38px; height: 38px; padding-inline: 6px; border-radius: 11px; background: rgba(60, 20, 0, .35); }
.toast {
  position: fixed; left: 50%; top: calc(var(--topbar) + 12px); z-index: 60;
  max-width: calc(100vw - 32px); padding: 9px 16px; border-radius: 999px;
  background: var(--cream); color: #2a1305; font-size: .9rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .5);
  transform: translate(-50%, -16px); opacity: 0; pointer-events: none;
  transition: transform .25s var(--ease), opacity .25s;
}
.toast.on { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Carrinho ---------- */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(5, 2, 0, .7); opacity: 0; transition: opacity .3s; backdrop-filter: blur(2px); }
.scrim.on { opacity: 1; }
.drawer {
  position: fixed; inset: auto 0 0; z-index: 50;
  max-width: var(--phone); margin-inline: auto;
  display: flex; flex-direction: column;
  height: 94dvh; max-height: 94vh;
  background: linear-gradient(rgba(29, 17, 10, .96), rgba(24, 14, 8, .99)), url("../images/fundo/madeira.webp") center / cover;
  border-top: 3px solid var(--orange); border-radius: 22px 22px 0 0;
  box-shadow: 0 -20px 50px rgba(0, 0, 0, .6);
  transform: translateY(102%); visibility: hidden;
  transition: transform .34s var(--ease), visibility 0s .34s;
}
.drawer.on { transform: none; visibility: visible; transition: transform .34s var(--ease); }
@supports (height: 94dvh) { .drawer { max-height: 94dvh; } }
.drawer__head { display: flex; align-items: center; gap: 10px; padding: 14px 16px 12px; border-bottom: 1px solid var(--line); }
.drawer__head > div { margin-right: auto; }
.drawer__head h2 { font: 400 1.6rem/1.1 var(--display); text-transform: uppercase; letter-spacing: .015em; }
.steps { display: flex; gap: 6px; margin: 3px 0 0; padding: 0; list-style: none; font-size: .74rem; font-weight: 700; color: #a8927c; }
.steps li + li::before { content: "›"; margin-right: 6px; }
.steps li.on { color: var(--amber); }
.iconbtn { display: grid; place-items: center; width: 44px; height: 44px; flex: none; background: rgba(255, 190, 110, .1); border: 1px solid var(--line); border-radius: 12px; }
.iconbtn svg { width: 19px; height: 19px; }
.iconbtn--sm { width: 36px; height: 36px; background: none; color: var(--muted); }
.iconbtn--sm svg { width: 17px; height: 17px; }
.drawer__view { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.drawer__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 14px 16px; -webkit-overflow-scrolling: touch; }
.drawer__foot { padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-strong); background: rgba(18, 9, 4, .6); }
.lines { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.line { display: grid; grid-template-columns: 76px 1fr auto; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: rgba(47, 28, 16, .7); }
.line img { width: 76px; height: 76px; object-fit: cover; border-radius: 10px; }
.line h3 { font: 400 1.14rem/1.15 var(--display); text-transform: uppercase; letter-spacing: .012em; }
.line p { margin-top: 2px; font-size: .84rem; color: var(--muted); }
.line__info { min-width: 0; }
.line__side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 6px; }
.line__side strong { font-size: .94rem; white-space: nowrap; color: var(--yellow); }
.stepper { display: inline-flex; align-items: center; margin-top: 8px; border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; }
.stepper button { display: grid; place-items: center; width: 40px; height: 36px; border: 0; background: rgba(255, 190, 110, .1); color: var(--amber); }
.stepper svg { width: 14px; height: 14px; }
.stepper output { min-width: 32px; text-align: center; font-weight: 800; }
.totals { margin: 0; display: grid; gap: 3px; }
.totals div { display: flex; justify-content: space-between; align-items: baseline; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; font-weight: 700; }
.totals__total dt { font: 400 1.25rem/1.2 var(--display); color: var(--cream); text-transform: uppercase; letter-spacing: .02em; }
.totals__total dd { font: 400 1.9rem/1.15 var(--display); color: var(--yellow); letter-spacing: .01em; }
.note { margin: 4px 0 10px; font-size: .78rem; color: #a8927c; }
.drawer__foot .totals + .btn { margin-top: 8px; }
.empty--cart svg { width: 54px; height: 54px; color: var(--orange); }
.empty--cart { padding-top: 70px; }

/* Formulário */
.form { display: grid; align-content: start; gap: 16px; }
#addressFields { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { padding: 0; font-weight: 700; font-size: .92rem; }
.field legend { margin-bottom: 6px; }
.field label span { font-weight: 400; color: #a8927c; }
.field > input, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 13px;
  background: rgba(18, 9, 4, .7); border: 1.5px solid var(--line-strong); border-radius: 11px;
  font-size: 1rem;
}
.field textarea { resize: vertical; }
.field > input:focus, .field textarea:focus { outline: 0; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(255, 164, 18, .22); }
.field ::placeholder { color: #8f7a65; }
.field.invalid > input { border-color: var(--danger); }
.error { font-size: .84rem; font-weight: 600; color: var(--danger); margin-top: 2px; }
.choice { display: grid; gap: 8px; }
.choice--2 { grid-template-columns: 1fr 1fr; }
.choice label { position: relative; cursor: pointer; font-weight: 600; }
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choice span {
  display: flex; align-items: center; justify-content: center; gap: 8px; height: 100%; min-height: 50px; padding: 8px;
  border: 1.5px solid var(--line-strong); border-radius: 11px; color: var(--cream); font-size: .9rem; line-height: 1.15; text-align: center;
  transition: background .18s, border-color .18s;
}
.choice svg { width: 26px; height: 22px; flex: none; color: var(--amber); }
.choice input:checked + span { background: rgba(247, 103, 15, .2); border-color: var(--orange); box-shadow: inset 0 0 0 1px var(--orange); }
.choice input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }

.sent__body { display: grid; align-content: center; justify-items: center; gap: 12px; text-align: center; }
.sent__icon { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--green); }
.sent__icon svg { width: 40px; height: 40px; }
.sent h3 { font: 400 2rem/1.1 var(--display); text-transform: uppercase; letter-spacing: .015em; }
.sent p { color: var(--muted); max-width: 26em; margin-bottom: 8px; }
.nojs { position: fixed; inset: auto 0 0; z-index: 99; margin: 0; padding: 14px; background: var(--yellow); color: #000; text-align: center; font-weight: 700; }

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