/* Cantinho da Amizade — Bar e Porções */

@font-face { font-family: 'Barlow'; src: url(../fonts/barlow-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url(../fonts/barlow-latin-500-normal.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url(../fonts/barlow-latin-600-normal.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url(../fonts/barlow-latin-700-normal.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Kaushan Script'; src: url(../fonts/kaushan-script-latin-400-normal.woff2) format('woff2'); font-display: swap; }

:root {
  --bg: #121217;
  --bg-2: #1c1c22;
  --bg-3: #29292f;
  --bar: #101014;
  --text: #ffffff;
  --text-2: #dcdad6;
  --muted: #aaa8a4;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.34);
  --red: #d3121f;
  --red-hover: #e6202d;
  --red-press: #ab0d18;
  --red-text: #ff7077;
  --blue: #2f8fff;
  --yellow: #ffc530; /* só no lettering da chamada */

  --font-body: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-script: 'Kaushan Script', 'Brush Script MT', cursive;

  --header-h: 58px;
  --cat-h: 54px;
  --radius: 10px;
  --gutter: 16px;

  /* Movimento: interações de 180 a 300 ms, revelações de 400 a 650 ms */
  --t-tap: 180ms;
  --t-short: 220ms;
  --t-mid: 280ms;
  --t-long: 560ms;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-exit: cubic-bezier(0.4, 0, 0.9, 0.6);

  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}

@media (min-width: 900px) {
  :root { --header-h: 62px; --cat-h: 66px; --gutter: 32px; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--cat-h));
  scrollbar-gutter: stable;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
  /* A troca de categoria muda a altura da lista; a página não deve ser reposicionada pelo navegador. */
  overflow-anchor: none;
}

[hidden] { display: none !important; }
.modal-open, .modal-open body { overflow: hidden; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
a { color: inherit; touch-action: manipulation; }
address { font-style: normal; }
h1, h2, h3, h4, p { margin: 0; }

.icon { width: 22px; height: 22px; flex: none; }
.muted { color: var(--muted); font-weight: 400; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }
.noscript { padding: 24px 0; }

.skip-link {
  position: fixed; left: 12px; top: 12px; z-index: 300;
  background: #fff; color: #111; padding: 10px 16px; border-radius: var(--radius); font-weight: 700;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
h2:focus { outline: none; }

/* Revelação ao entrar na tela: só é aplicada pelo JS a elementos fora da tela */
.rv { opacity: 0; transform: translateY(16px); }
.rv-in {
  opacity: 1; transform: none;
  transition: opacity var(--t-long) var(--ease), transform var(--t-long) var(--ease);
  transition-delay: var(--rv-d, 0ms);
}

/* ---------- Botões e links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px;
  border-radius: 999px; border: 0;
  font-weight: 700; font-size: 17px; text-decoration: none; line-height: 1.1; text-align: center;
  user-select: none;
  transition: background-color var(--t-tap), transform var(--t-tap) var(--ease);
}
.btn:active { transform: scale(0.97); transition-duration: 60ms; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:active { background: var(--red-press); }
.btn-red[aria-disabled="true"] { background: var(--bg-3); color: var(--muted); }
.btn-lg { min-height: 56px; padding: 0 32px; font-size: 20px; }
.btn-grow { flex: 1; }
.btn-text {
  background: none; border: 0; padding: 10px 6px; min-height: 44px;
  color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px;
}
.text-link {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px;
  font-weight: 600; font-size: 18px; text-decoration: none;
}
.text-link::after {
  content: ''; position: absolute; left: 6px; right: 6px; bottom: 8px; height: 2px;
  background: currentColor; transform-origin: left;
  transition: transform var(--t-short) var(--ease), opacity var(--t-short);
}
.text-link:active::after { transform: scaleX(0.6); }
.icon-btn {
  width: 44px; height: 44px; display: grid; place-items: center; flex: none;
  border-radius: 999px; border: 1px solid var(--line-strong); background: transparent;
  transition: transform var(--t-tap) var(--ease), border-color var(--t-tap);
}
.icon-btn:active { transform: scale(0.94); transition-duration: 60ms; }
@media (hover: hover) {
  .btn-red:not([aria-disabled="true"]):hover { background: var(--red-hover); }
  .text-link:hover::after { transform: scaleX(0.6); }
  .icon-btn:hover { border-color: #fff; }
}

/* ---------- Cabeçalho ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h); }
.site-header::before {
  content: ''; position: absolute; inset: 0;
  background: var(--bar); border-bottom: 1px solid var(--line-strong);
  opacity: 0.42; transition: opacity var(--t-mid) var(--ease);
}
.site-header.is-solid::before { opacity: 1; }
.header-inner {
  position: relative; height: 100%; padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 2px;
}
.header-start { position: relative; flex: 1 1 auto; align-self: stretch; display: flex; align-items: center; min-width: 0; }
.place, .brand { transition: opacity var(--t-mid) var(--ease); }
.place {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; white-space: nowrap;
  font-size: 15px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none;
}
.place .icon { width: 19px; height: 19px; }
.brand { position: absolute; left: 0; top: 50%; transform: translateY(-50%); display: block; opacity: 0; pointer-events: none; }
.brand img { height: calc(var(--header-h) - 8px); width: auto; }
.site-header:not(.at-top) .place { opacity: 0; pointer-events: none; }
.site-header:not(.at-top) .brand { opacity: 1; pointer-events: auto; }
.site-header .brand:focus-visible, .site-header .place:focus-visible { opacity: 1; pointer-events: auto; }
.main-nav { display: flex; }
.main-nav a, .footer-nav a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px;
  text-decoration: none; font-weight: 600; font-size: 15px;
}
.main-nav a::after, .footer-nav a::after {
  content: ''; position: absolute; left: 8px; right: 8px; bottom: 7px; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-short) var(--ease);
}
.main-nav a:focus-visible::after, .main-nav a:active::after, .footer-nav a:focus-visible::after, .footer-nav a:active::after { transform: scaleX(1); }
.header-sep { display: none; width: 1px; height: 26px; margin: 0 10px; background: var(--line-strong); }
.bag-btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  min-width: 44px; height: 44px; padding: 0 9px; margin-left: 2px;
  border-radius: 999px; border: 0; background: transparent; color: #fff;
  transition: transform var(--t-tap) var(--ease), background-color var(--t-tap);
}
.bag-btn .icon { width: 25px; height: 25px; }
.bag-btn:active { transform: scale(0.93); transition-duration: 60ms; }
.bag-total { display: none; font-weight: 700; font-variant-numeric: tabular-nums; }
.bag-count {
  position: absolute; top: 0; left: 26px;
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--red); color: #fff; font-size: 12.5px; font-weight: 700; line-height: 20px; text-align: center;
}
@media (hover: hover) {
  .main-nav a:hover::after, .footer-nav a:hover::after { transform: scaleX(1); }
  .bag-btn:hover { background: rgba(255, 255, 255, 0.1); }
}
@media (min-width: 600px) {
  .place { font-size: 17px; }
  .main-nav a { padding: 0 16px; font-size: 18px; }
  .main-nav a::after { left: 16px; right: 16px; }
  .header-sep { display: block; }
  .bag-total:not(:empty) { display: inline; }
}

/* ---------- Primeira tela ---------- */
/* Celular e telas em pé: composição própria, com a mesa embaixo e a placa em cima. */
.hero {
  --u: min(1vw, 0.47vh);
  --u: min(1vw, 0.47svh);
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; align-items: center;
  height: calc(100vh - var(--cat-h));
  height: calc(100svh - var(--cat-h));
  min-height: 560px;
  padding-top: var(--header-h);
  background: #0d0d11;
}
.hero-scene, .hero-fore { position: absolute; inset: 0; pointer-events: none; }
.hero-scene { z-index: -1; }
.hero-scene img, .hero-fore img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; transform-origin: 50% 100%; }
.hero-fore { z-index: 1; }
.hero-scene::after {
  /* Só para a leitura sobre o fundo do bar no celular */
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 14, 0.5), rgba(10, 10, 14, 0.42) 48%, rgba(10, 10, 14, 0) 68%);
}
.hero-sign { position: relative; flex: none; width: calc(var(--u) * 50 + max(0px, (100vh - 700px) * 0.18)); aspect-ratio: 1; margin-bottom: calc(var(--u) * -3); }
.hero-sign img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-copy { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; width: 100%; padding: 0 var(--gutter); text-align: center; }
.hero-call-wrap { position: relative; }
.hero-brush { position: absolute; left: -10%; top: -26%; width: 120%; max-width: none; height: 152%; z-index: -1; opacity: 0.86; }
.hero-call { font-family: var(--font-script); font-weight: 400; line-height: 1.08; transform: rotate(-4deg); }
.call-a { display: block; font-size: calc(var(--u) * 7.2); color: #fff; }
.call-b { display: block; font-size: calc(var(--u) * 9.3); color: var(--yellow); white-space: nowrap; }
.hero-stroke { width: 58%; height: auto; margin: calc(var(--u) * -0.6) 0 0 30%; transform: rotate(-1deg); }
.hero-lead { margin-top: calc(var(--u) * 1.2); max-width: 22em; text-wrap: balance; font-size: clamp(16px, 4.2vw, 19px); line-height: 1.3; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8); }
.hero-actions { margin-top: calc(var(--u) * 2.4 + max(0px, (100vh - 700px) * 0.05)); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; }
.hero-actions .btn-lg { min-height: 52px; padding: 0 26px; font-size: 18px; }
.hero-actions .btn .icon { width: 1.1em; height: 1.1em; }
.hero-actions .text-link { text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9); }

/* Computador: a composição da referência, com a placa à esquerda e a chamada à direita. */
@media (min-aspect-ratio: 5/4) {
  .hero { --u: min(1vw, 1.72vh); --u: min(1vw, 1.72svh); display: block; padding-top: 0; min-height: 330px; }
  .hero-scene::after { background: linear-gradient(180deg, rgba(10, 10, 14, 0.35), rgba(10, 10, 14, 0) 22%); }
  .hero-scene img, .hero-fore img { object-position: 14% 100%; }
  .hero-sign { position: absolute; left: calc(29.6% - var(--u) * 14.5); top: calc(var(--header-h) + var(--u) * 0.2); width: calc(var(--u) * 29); margin: 0; }
  .hero-actions { margin-top: calc(var(--u) * 1.7); }
  .hero-copy { position: absolute; left: 51%; width: 45%; top: calc(var(--header-h) + var(--u) * 1.6); padding: 0; }
  .hero-brush { left: -9%; top: -24%; width: 118%; height: 150%; }
  .hero-call { transform: rotate(-6deg); }
  .call-a { font-size: calc(var(--u) * 4.5); }
  .call-b { font-size: calc(var(--u) * 5); }
  .hero-stroke { width: 58%; margin: calc(var(--u) * -0.3) 0 0 32%; transform: rotate(-2deg); }
  .hero-lead { margin-top: calc(var(--u) * 1.5); font-size: max(17px, calc(var(--u) * 1.5)); max-width: 21em; }
  .hero-actions { margin-top: calc(var(--u) * 1.7); flex-direction: column; gap: 2px; }
  .hero-actions .btn-lg { min-height: max(50px, calc(var(--u) * 3.8)); padding: 0 max(26px, calc(var(--u) * 3)); font-size: max(18px, calc(var(--u) * 1.55)); }
  .hero-actions .text-link { font-size: max(18px, calc(var(--u) * 1.15)); }
}
/* Telas largas e baixas: a mesa cresce em relação à altura, então a placa vai para a direita da caneca
   e a logo nunca fica coberta. */
@media (min-aspect-ratio: 11/6), (min-aspect-ratio: 5/4) and (max-height: 480px) {
  .hero-sign { left: calc(26% - var(--u) * 3.7); }
}
/* Celular deitado: pouca altura, ações na mesma linha. */
@media (min-aspect-ratio: 5/4) and (max-height: 480px) {
  .hero-lead { font-size: 16px; margin-top: 2px; }
  .hero-actions { flex-direction: row; gap: 14px; margin-top: 6px; }
}

/* Abertura: resolvida em cerca de 1,2 s depois da primeira renderização. */
@media (prefers-reduced-motion: no-preference) {
  .hero-scene img, .hero-fore img { animation: scene-in 1200ms var(--ease) both; }
  .sign-ring { animation: ring-on 560ms ease-out 140ms both; }
  .sign-base { animation: sign-in 480ms var(--ease) 280ms both; }
  .hero-brush { animation: fade-in 420ms ease-out 400ms both; }
  .call-a { animation: rise 420ms var(--ease) 480ms both; }
  .call-b { animation: rise 420ms var(--ease) 580ms both; }
  .hero-stroke { animation: fade-in 320ms ease-out 720ms both; }
  .hero-lead { animation: rise 400ms var(--ease) 700ms both; }
  .hero-cta { animation: cta-note 260ms ease-out 940ms; }
  .header-inner > * { animation: fade-in 420ms ease-out 60ms backwards; }
}
@keyframes scene-in { from { transform: scale(1.03); } to { transform: none; } }
@keyframes ring-on { from { opacity: 0; } to { opacity: 1; } }
@keyframes sign-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes cta-note { 50% { transform: scale(1.035); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-out { to { opacity: 0; } }

/* ---------- Categorias ---------- */
.cat-bar {
  position: sticky; top: var(--header-h); z-index: 30; height: var(--cat-h);
  background: var(--bar); border-bottom: 1px solid var(--line);
}
.cat-tabs {
  position: relative; display: flex; height: 100%;
  overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  max-width: 1280px; margin: 0 auto; padding: 0 8px;
}
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-ink {
  position: absolute; left: 0; bottom: 7px; width: 1px; height: 3px;
  background: var(--red); transform-origin: left; opacity: 0;
  transition: transform var(--t-mid) var(--ease), background-color var(--t-short);
}
.cat-ink.is-ready { opacity: 1; }
.is-searching .cat-ink { background: var(--line-strong); }
.cat-tab {
  position: relative; flex: none; height: 100%; min-width: 44px; padding: 0 14px;
  border: 0; background: transparent;
  font-size: 17px; font-weight: 600; white-space: nowrap;
  color: var(--text-2);
  transition: color var(--t-tap);
}
.cat-tab > span { display: inline-block; transition: transform var(--t-tap) var(--ease); }
.cat-tab:active > span { transform: scale(0.96); transition-duration: 60ms; }
.cat-tab:focus-visible { outline-offset: -6px; }
.cat-tab[aria-selected="true"] { color: #fff; }
@media (hover: hover) { .cat-tab:hover { color: #fff; } }
@media (min-width: 900px) {
  .cat-tabs { justify-content: center; }
  .cat-tab { font-size: 21px; padding: 0 clamp(26px, 5vw, 76px); }
  .cat-tab + .cat-tab::before { content: ''; position: absolute; left: 0; top: 50%; height: 26px; margin-top: -13px; width: 1px; background: var(--line-strong); }
  .cat-ink { bottom: 8px; }
}

/* ---------- Cardápio ---------- */
.section-h { position: relative; font-size: clamp(34px, 8.6vw, 52px); font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; padding-bottom: 12px; }
.section-h::after { content: ''; position: absolute; left: 0; bottom: 0; width: 150px; height: 18px; background: url(../img/scene/stroke.webp) left center / contain no-repeat; }
.section-sub { color: var(--text-2); font-size: 18px; margin-top: 6px; }
.menu { padding: 0 0 56px; scroll-margin-top: var(--header-h); }
.menu-head { display: flex; flex-direction: column; gap: 16px; padding: 26px 0 8px; }
@media (min-width: 760px) {
  .menu-head { flex-direction: row; align-items: flex-end; justify-content: space-between; padding-top: 36px; }
  .search { width: 380px; flex: none; }
}
.search {
  position: relative; display: flex; align-items: center;
  height: 52px; border-radius: 999px;
  background: var(--bg-2); border: 1px solid var(--line-strong);
  transition: border-color var(--t-tap);
}
.search:focus-within { border-color: #fff; }
.search > .icon { position: absolute; left: 16px; width: 20px; height: 20px; color: var(--text-2); pointer-events: none; }
.search input {
  flex: 1; height: 100%; min-width: 0; border: 0; background: transparent; outline: none;
  padding: 0 48px 0 46px; font-size: 17px;
}
.search input::placeholder { color: var(--muted); opacity: 1; }
.search input::-webkit-search-cancel-button { display: none; }
.search-clear {
  position: absolute; right: 4px; width: 44px; height: 44px; border-radius: 999px;
  display: grid; place-items: center; border: 0; background: transparent;
}
.search-clear .icon { width: 18px; height: 18px; }

.menu-list { padding-top: 18px; min-height: 60vh; }
.cat-head { padding-bottom: 2px; }
.cat-name { font-size: clamp(26px, 6vw, 34px); font-weight: 700; line-height: 1.15; }
.cat-sub { color: var(--text-2); margin-top: 2px; }
.sub-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.sub-tab {
  min-height: 42px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: transparent;
  font-weight: 600; font-size: 15px;
  transition: border-color var(--t-tap), transform var(--t-tap) var(--ease);
}
.sub-tab:active { transform: scale(0.97); transition-duration: 60ms; }
@media (hover: hover) { .sub-tab:hover { border-color: #fff; } }

.group { padding-top: 26px; scroll-margin-top: calc(var(--header-h) + var(--cat-h) + 8px); }
.section-title { font-size: 25px; font-weight: 700; line-height: 1.15; margin-top: 34px; scroll-margin-top: calc(var(--header-h) + var(--cat-h) + 8px); }
.group-title { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.group-title h3 { font-size: 20px; font-weight: 700; line-height: 1.2; }
.group-title::after {
  /* Filete das cores da marca */
  content: ''; flex: 1; height: 2px;
  background: linear-gradient(90deg, var(--blue) 0 18px, var(--red) 18px 36px, var(--line) 36px);
}
.search-path { color: var(--muted); font-size: 15px; margin-bottom: 2px; }

.items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 680px) { .items { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1100px) { .items { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }

.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--bg-2); border-radius: var(--radius); overflow: hidden;
  transition: transform var(--t-short) var(--ease);
}
.card-open { position: absolute; inset: 0; z-index: 1; border: 0; background: transparent; border-radius: inherit; }
.card-open:focus-visible { outline-offset: -3px; }
.card:has(.card-open:active) { transform: scale(0.985); transition-duration: 60ms; }
.card-media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--bg-3); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-long) var(--ease); }
.no-photo { display: grid; place-items: center; color: var(--text-2); }
.no-photo .icon { width: 56px; height: 56px; opacity: 0.7; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 10px 10px 10px; }
.card-name { font-size: 17px; font-weight: 700; line-height: 1.22; }
.card-desc { margin-top: 4px; font-size: 14.5px; font-weight: 400; color: var(--text-2); line-height: 1.35; }
.card-note { margin-top: 3px; font-size: 14px; color: var(--muted); }
.card-price { margin-top: 6px; font-size: 20px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.card-alt { margin-top: 2px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.card-spacer { display: block; flex: 1 0 10px; }
.card-add {
  position: relative; z-index: 2;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; width: 100%; border: 0; border-radius: 999px;
  background: var(--red); color: #fff; font-weight: 700; font-size: 16px;
  transition: background-color var(--t-tap), transform var(--t-tap) var(--ease);
}
.card-add .icon { width: 18px; height: 18px; }
.card-add:active { transform: scale(0.96); background: var(--red-press); transition-duration: 60ms; }
.card-add.is-done { background: #fff; color: #15151a; }
@media (hover: hover) {
  .card:hover { transform: translateY(-3px); }
  .card:hover .card-media img { transform: scale(1.03); }
  .card-add:hover { background: var(--red-hover); }
  .card-add.is-done:hover { background: #fff; }
}
@media (min-width: 1100px) { .card-body { padding: 12px 14px 14px; } .card-name { font-size: 18px; } }

.empty-state { padding: 44px 0; max-width: 28em; }
.empty-state strong { display: block; font-size: 20px; margin-bottom: 4px; }
.empty-state p { color: var(--text-2); margin-bottom: 16px; }
.search-count { color: var(--text-2); }

/* ---------- Contato ---------- */
.contact { background: var(--bg-2); border-top: 1px solid var(--line); scroll-margin-top: var(--header-h); }
.contact-grid { display: grid; }
.contact-copy { padding: 40px var(--gutter) 36px; }
.contact-name { font-size: 20px; font-weight: 700; margin-top: 10px; }
.contact-list { margin: 20px 0 22px; display: grid; gap: 14px; }
.contact-list dt { color: var(--text-2); }
.contact-list dd { margin: 0; font-size: 21px; font-weight: 700; line-height: 1.3; }
.contact-list dd > a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 4px; }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.contact-photo { margin: 0; aspect-ratio: 1012 / 385; overflow: hidden; background: var(--bg-3); }
.contact-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); min-height: 440px; }
  .contact-copy { padding: 56px 40px 56px max(var(--gutter), calc((100vw - 1280px) / 2 + var(--gutter))); }
  .contact-photo { aspect-ratio: auto; }
}

/* ---------- Rodapé ---------- */
.site-footer { padding: 30px 0 calc(28px + var(--safe-b)); border-top: 1px solid var(--line); background: var(--bar); }
.has-bag .site-footer { padding-bottom: calc(96px + var(--safe-b)); }
.footer-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.footer-logo { width: 150px; height: auto; }
.footer-nav { display: flex; flex-wrap: wrap; margin: 4px 0 0 -8px; }
.footer-nav a { font-size: 17px; }
.footer-note { font-size: 15px; color: var(--muted); }
@media (min-width: 760px) {
  .footer-inner { flex-direction: row; align-items: center; gap: 28px; }
  .footer-nav { margin: 0 auto 0 0; }
}
@media (min-width: 900px) { .has-bag .site-footer { padding-bottom: 28px; } }

/* ---------- Barra da sacola (celular) ---------- */
.bag-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 8px var(--gutter) calc(8px + var(--safe-b));
  background: var(--bar); border-top: 1px solid var(--line);
  transform: translateY(105%); visibility: hidden;
  transition: transform var(--t-mid) var(--ease), visibility 0s linear var(--t-mid);
}
.bag-bar.is-on { transform: none; visibility: visible; transition-delay: 0s; }
.bag-bar-btn {
  width: 100%; max-width: 560px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px;
  min-height: 54px; padding: 0 6px 0 20px; border-radius: 999px; border: 0;
  background: var(--red); color: #fff; text-align: left;
  transition: transform var(--t-tap) var(--ease);
}
.bag-bar-btn:active { transform: scale(0.98); transition-duration: 60ms; }
.bag-bar-qty, .bag-bar-total, .bag-bar-cta { white-space: nowrap; }
.bag-bar-qty { font-weight: 600; font-size: 16px; }
.bag-bar-total { font-weight: 700; font-size: 19px; font-variant-numeric: tabular-nums; margin-right: auto; }
.bag-bar-cta { background: #fff; color: #15151a; border-radius: 999px; padding: 0 16px; min-height: 42px; display: inline-flex; align-items: center; font-weight: 700; }
@media (min-width: 900px) { .bag-bar { display: none; } }

/* Miniatura que vai até a sacola */
.fly-thumb { position: fixed; z-index: 60; width: 56px; height: 56px; border-radius: 8px; object-fit: cover; pointer-events: none; will-change: transform, opacity; }

/* ---------- Folhas (detalhes e sacola) ---------- */
dialog.sheet {
  padding: 0; border: 0; background: transparent; color: var(--text);
  width: 100%; max-width: 100%; max-height: 100%; height: fit-content;
  margin: auto 0 0 0; overflow: visible;
}
dialog.sheet::backdrop { background: rgba(6, 6, 9, 0.7); }
dialog.sheet[open]::backdrop { animation: fade-in var(--t-mid) ease both; }
dialog.sheet.closing::backdrop { animation: fade-out var(--t-short) ease both; }
.sheet-inner {
  position: relative; display: flex; flex-direction: column;
  max-height: 92vh; max-height: 92dvh;
  background: var(--bg-2);
  border-radius: 16px 16px 0 0;
  overflow: hidden;
}
dialog.sheet[open] .sheet-inner { animation: sheet-up var(--t-mid) var(--ease); }
dialog.sheet.closing .sheet-inner { animation: sheet-down var(--t-short) var(--ease-exit) forwards; }
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes sheet-down { to { transform: translateY(100%); } }
.sheet-scroll { overflow-y: auto; overscroll-behavior: contain; flex: 1 1 auto; min-height: 0; }
.sheet-foot {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
  padding: 12px var(--gutter) calc(12px + var(--safe-b));
  border-top: 1px solid var(--line);
}
.sheet-close {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center;
  border: 0; background: rgba(16, 16, 20, 0.85); color: #fff;
  transition: transform var(--t-tap) var(--ease);
}
.sheet-close:active { transform: scale(0.94); transition-duration: 60ms; }

/* Detalhes */
.pd-layout { display: flex; flex-direction: column; min-height: 0; flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.pd-side { display: contents; }
.pd-body { overflow: visible; flex: none; padding: 14px var(--gutter) 18px; }
.pd-foot { position: sticky; bottom: 0; background: var(--bg-2); z-index: 2; }
.pd-media { position: relative; flex: none; margin: 0; height: min(100vw, 40vh); height: min(100vw, 40dvh); background: #0c0c10; overflow: hidden; }
.pd-media img { width: 100%; height: 100%; object-fit: contain; }
.pd-media.no-photo { height: 130px; }
.pd-group { font-size: 15px; color: var(--muted); }
.pd-title { font-size: 28px; font-weight: 700; line-height: 1.15; }
.pd-desc { margin-top: 6px; color: var(--text-2); }
.pd-desc:empty { display: none; }
.pd-price { margin-top: 8px; font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pd-price small { display: block; font-size: 15px; font-weight: 500; color: var(--text-2); }
.pd-hint { flex-basis: 100%; font-size: 15px; color: var(--text-2); text-align: center; }
.pd-hint:empty { display: none; }
@media (prefers-reduced-motion: no-preference) {
  dialog.product-sheet[open]:not(.closing) .pd-media,
  dialog.product-sheet[open]:not(.closing) .pd-body > * { animation: rise var(--t-mid) var(--ease) backwards; }
  dialog.product-sheet[open]:not(.closing) .pd-media { animation-name: fade-in; animation-delay: 40ms; }
  dialog.product-sheet[open]:not(.closing) .pd-group,
  dialog.product-sheet[open]:not(.closing) .pd-title { animation-delay: 80ms; }
  dialog.product-sheet[open]:not(.closing) .pd-desc,
  dialog.product-sheet[open]:not(.closing) .pd-price { animation-delay: 120ms; }
  dialog.product-sheet[open]:not(.closing) .pd-options,
  dialog.product-sheet[open]:not(.closing) .pd-note { animation-delay: 160ms; }
}
@media (min-width: 760px) {
  dialog.product-sheet { margin: auto; width: min(1060px, calc(100% - 48px)); }
  .product-sheet .sheet-inner { border-radius: 16px; max-height: min(88vh, 560px); height: min(88vh, 560px); }
  .pd-layout { flex-direction: row; overflow: hidden; }
  .pd-media { flex: 0 0 min(54%, min(88vh, 560px)); height: auto; }
  .pd-media.no-photo { height: auto; }
  .pd-side { display: flex; flex-direction: column; flex: 1; min-width: 0; min-height: 0; }
  .pd-body { overflow-y: auto; flex: 1 1 auto; min-height: 0; padding: 18px 22px; }
  .pd-group { padding-right: 44px; }
  .pd-foot { position: static; padding-left: 22px; padding-right: 22px; }
  dialog.product-sheet[open] .sheet-inner { animation: pop-in var(--t-mid) var(--ease); }
  dialog.product-sheet.closing .sheet-inner { animation: pop-out var(--t-short) var(--ease-exit) forwards; }
  dialog.bag-sheet { margin: 0 0 0 auto; width: min(480px, 100%); height: 100%; max-height: 100%; }
  .bag-sheet .sheet-inner { height: 100%; max-height: 100vh; border-radius: 16px 0 0 16px; }
  dialog.bag-sheet[open] .sheet-inner { animation: drawer-in var(--t-mid) var(--ease); }
  dialog.bag-sheet.closing .sheet-inner { animation: drawer-out var(--t-short) var(--ease-exit) forwards; }
}
@keyframes pop-in { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes pop-out { to { opacity: 0; transform: translateY(6px) scale(0.985); } }
@keyframes drawer-in { from { transform: translateX(100%); } to { transform: none; } }
@keyframes drawer-out { to { transform: translateX(100%); } }

/* Escolhas das jantinhas */
.opts { margin-top: 16px; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; }
.opts-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; background: var(--bg-3); }
.opts-head strong { font-size: 17px; }
.opts-head span { font-size: 15px; color: var(--text-2); }
.opts-badge { flex: none; font-size: 15px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--red); color: #fff !important; font-variant-numeric: tabular-nums; }
.opts-badge.ok { background: #fff; color: #15151a !important; }
.opts-sub { padding: 10px 12px 4px; font-size: 15px; font-weight: 700; color: var(--text-2); border-top: 1px solid var(--line); }
.opt { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 5px 12px; border-top: 1px solid var(--line); }
.opt-name { flex: 1; font-weight: 600; }
.opt-extra { display: block; font-size: 14px; font-weight: 500; color: var(--text-2); }
.opt input[type="radio"] { appearance: none; -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--muted); display: grid; place-items: center; margin: 0; flex: none; }
.opt input[type="radio"]:checked { border-color: var(--red-text); }
.opt input[type="radio"]:checked::after { content: ''; width: 12px; height: 12px; border-radius: 50%; background: var(--red-text); }
label.opt { cursor: pointer; }
.stepper { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line-strong); border-radius: 999px; padding: 1px; flex: none; }
.stepper output, .stepper .qty { min-width: 28px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.step-btn { width: 44px; height: 44px; border-radius: 999px; border: 0; background: transparent; display: grid; place-items: center; transition: transform var(--t-tap) var(--ease); }
.step-btn:active { transform: scale(0.9); transition-duration: 60ms; }
.step-btn .icon { width: 18px; height: 18px; }
.step-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.stepper-sm .step-btn { width: 40px; height: 40px; }

/* Campos */
.field { display: block; margin: 16px 0 0; border: 0; padding: 0; min-width: 0; }
.field-label { display: block; font-weight: 700; margin-bottom: 6px; padding: 0; }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 12px; font-size: 16px;
  border-radius: var(--radius); border: 1px solid var(--line-strong); background: var(--bg); color: var(--text);
  outline: none; resize: vertical;
  transition: border-color var(--t-tap);
}
.field textarea { min-height: 70px; }
.field input:focus, .field textarea:focus { border-color: #fff; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 1; }
.field-error { display: block; font-size: 15px; font-weight: 600; margin-top: 5px; color: var(--red-text); }
.field-error:empty { display: none; }
.field.has-error input, .field.has-error .segmented { border-color: var(--red-text); }

/* ---------- Sacola ---------- */
.bag-head { display: flex; align-items: center; gap: 10px; padding: 12px var(--gutter) 6px; }
.bag-title { margin-right: auto; font-size: 25px; font-weight: 700; line-height: 1.15; }
.bag-title:focus { outline: none; }
.bag-steps { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0 var(--gutter) 10px; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--muted); }
.bag-steps li { position: relative; padding-bottom: 2px; transition: color var(--t-short); }
.bag-steps li::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-short) var(--ease);
}
.bag-steps .is-on { color: #fff; }
.bag-steps .is-on::after { transform: scaleX(1); }
.bag-step { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.bag-lines { list-style: none; margin: 0; padding: 0 var(--gutter); }
.line { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.line-thumb { width: 64px; height: 64px; border-radius: 8px; overflow: hidden; background: var(--bg-3); color: var(--text-2); }
.line-thumb img { width: 100%; height: 100%; object-fit: cover; }
.line-thumb .icon { width: 30px; height: 30px; }
.line-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.line-name { font-weight: 700; line-height: 1.25; }
.line-total { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.line-meta { margin-top: 2px; font-size: 15px; color: var(--text-2); }
.line-meta b { color: #fff; font-weight: 600; }
.line-pending { margin-top: 2px; font-size: 15px; font-weight: 600; color: var(--red-text); }
.line-controls { grid-column: 1 / -1; display: flex; align-items: center; gap: 2px; }
.line-controls .stepper { margin-right: auto; }
.line-controls .btn-text { padding: 8px; }
.line-controls .danger { color: var(--red-text); }
.bag-empty { display: grid; justify-items: start; gap: 14px; padding: 32px var(--gutter); font-size: 18px; }
.bag-foot { flex-direction: column; align-items: stretch; flex-wrap: nowrap; }
.bag-actions { display: flex; align-items: center; gap: 10px; }
.totals { display: grid; gap: 2px; }
.total-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 18px; font-weight: 600; }
.total-row strong { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pending-note { font-size: 15px; font-weight: 600; color: var(--red-text); }
.review { padding: 0 var(--gutter) 20px; }
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; border-radius: var(--radius); }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segmented span {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 50px; padding: 4px 6px; border-radius: var(--radius); border: 1px solid var(--line-strong);
  font-weight: 700; font-size: 15px; line-height: 1.15; background: var(--bg);
  transition: background-color var(--t-tap), border-color var(--t-tap);
}
.segmented input:checked + span { background: var(--red); border-color: var(--red); color: #fff; }
.segmented input:focus-visible + span { outline: 2px solid #fff; outline-offset: 1px; }
.summary { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); }
.summary-title { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.summary-lines { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; font-size: 15.5px; }
.summary-lines li { display: flex; justify-content: space-between; gap: 10px; }
.summary-lines .s-meta { display: block; color: var(--text-2); font-size: 15px; }
.summary-lines .s-price { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 700; }
.send-note { margin-top: 14px; font-size: 15px; color: var(--text-2); }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: calc(86px + var(--safe-b)); z-index: 400;
  transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
  width: max-content; max-width: calc(100% - 32px); padding: 10px 18px; border-radius: 999px; text-align: center;
  background: #fff; color: #15151a; font-weight: 600;
  transition: opacity var(--t-short), transform var(--t-short) var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 900px) { .toast { bottom: 28px; } }

/* Movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important; transition-delay: 0ms !important;
  }
}
