/* ================================================================
   APP.CSS — Interface do cliente da Pizzaria do Aldax
   Mobile-first. Usado pela loja (index.html) e pelo checkout.
   ================================================================ */

:root {
  --bg:        #0D0C0A;
  --bg-2:      #141310;
  --card:      #1A1915;
  --card-2:    #23211C;
  --line:      rgba(255, 255, 255, .07);
  --line-2:    rgba(255, 255, 255, .13);

  --text:      #F7F4EC;
  --muted:     #A8A294;
  --faint:     #6F6A5F;

  --brand:     #F6BD15;
  --brand-2:   #FFD34D;
  --brand-dk:  #C8891A;
  --ink:       #0D0C0A;
  --brand-soft: rgba(246, 189, 21, .12);
  --brand-line: rgba(246, 189, 21, .35);

  --ok:        #3DDC84;
  --warn:      #FFB547;
  --danger:    #FF6B5B;
  --wpp:       #25D366;

  --r-sm: 10px;
  --r:    16px;
  --r-lg: 22px;
  --r-xl: 28px;

  --ease:   cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);

  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --top:    calc(56px + var(--safe-t));
  --catbar: 56px;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top) + var(--catbar)); }
html.no-scroll { overflow: hidden; overscroll-behavior: none; }
body {
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  min-height: 100dvh;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.015em; }
.num, .price { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 8px; }

.skip {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  background: var(--brand); color: var(--ink); font-weight: 700;
  padding: 10px 14px; border-radius: 10px; transition: top .2s;
}
.skip:focus { top: calc(10px + var(--safe-t)); }

.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico--fill { fill: currentColor; stroke: none; }

/* ---------- Botões base ---------- */
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-grid; place-items: center; flex: none;
  background: rgba(13, 12, 10, .55);
  border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: transform .2s var(--ease), background .2s;
}
.icon-btn:active { transform: scale(.92); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 22px; border-radius: var(--r);
  font-weight: 800; font-size: 16px; letter-spacing: -.01em;
  transition: transform .18s var(--ease), background .2s, opacity .2s, box-shadow .2s;
  user-select: none;
}
.btn:active:not(:disabled) { transform: scale(.975); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn--primary { background: var(--brand); color: var(--ink); box-shadow: 0 10px 28px rgba(246, 189, 21, .22); }
.btn--primary:hover:not(:disabled) { background: var(--brand-2); }
.btn--ghost { background: var(--card); border: 1px solid var(--line-2); color: var(--text); }
.btn--wpp { background: var(--wpp); color: #fff; }
.btn--block { width: 100%; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 16px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line-2);
  font-size: 14px; font-weight: 600; color: var(--text);
  transition: transform .18s var(--ease), background .2s;
}
.pill:active { transform: scale(.96); }
.pill .ico { width: 17px; height: 17px; }
.pill--wpp .ico { color: var(--wpp); }

/* ================================================================
   LOJA
   ================================================================ */

/* ---------- Barra superior ---------- */
.topbar {
  position: fixed; inset: 0 0 auto; z-index: 40;
  height: var(--top); padding: var(--safe-t) 12px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  transition: background .3s, border-color .3s, -webkit-backdrop-filter .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.topbar__brand {
  display: flex; align-items: center; gap: 10px; min-width: 0;
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.topbar__brand img { width: 32px; height: 32px; border-radius: 50%; }
.topbar__brand span { font-weight: 800; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar__actions { display: flex; gap: 8px; margin-left: auto; }
.is-scrolled .topbar {
  background: rgba(13, 12, 10, .86);
  -webkit-backdrop-filter: saturate(140%) blur(16px); backdrop-filter: saturate(140%) blur(16px);
  border-bottom-color: var(--line);
}
.is-scrolled .topbar__brand { opacity: 1; transform: none; pointer-events: auto; }
.is-scrolled .topbar .icon-btn { background: transparent; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }

/* ---------- Capa ---------- */
.cover {
  position: relative; overflow: hidden;
  height: clamp(220px, 58vw, 360px);
  background: radial-gradient(ellipse at 50% 70%, rgba(246, 189, 21, .18), transparent 60%), #000;
}
.cover__img {
  position: absolute; inset: -6% 0 0; width: 100%; height: 106%;
  object-fit: cover; object-position: 50% 62%;
  will-change: transform;
  animation: capa 1.2s var(--ease) both;
}
.cover::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(13, 12, 10, .55) 0%, rgba(13, 12, 10, 0) 28%, rgba(13, 12, 10, 0) 55%, var(--bg) 100%);
}
@keyframes capa { from { opacity: 0; transform: scale(1.08); } }

/* ---------- Cabeçalho da loja ---------- */
.store {
  position: relative; z-index: 2;
  margin-top: -58px; padding: 0 20px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.store__logo {
  width: 92px; height: 92px; border-radius: 50%; background: #000;
  box-shadow: 0 0 0 4px var(--bg), 0 14px 34px rgba(0, 0, 0, .6);
  animation: surge .7s .1s var(--spring) both;
}
.store__name { margin-top: 14px; font-size: 26px; font-weight: 900; letter-spacing: -.03em; }
.store__tagline { margin-top: 4px; color: var(--muted); font-size: 14px; }
.store__meta { margin-top: 14px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.meta {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 12px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line);
  font-size: 13px; font-weight: 600; color: var(--muted);
}
.meta .ico { width: 15px; height: 15px; }
.status { color: var(--ok); background: rgba(61, 220, 132, .1); border-color: rgba(61, 220, 132, .22); }
.status i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; animation: pulso 2s infinite; }
.status--off { color: var(--danger); background: rgba(255, 107, 91, .1); border-color: rgba(255, 107, 91, .25); }
.status--off i { animation: none; }
.status--warn { color: var(--warn); background: rgba(255, 181, 71, .1); border-color: rgba(255, 181, 71, .25); }
.store__actions { margin-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
@keyframes pulso { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, .55); } 70% { box-shadow: 0 0 0 7px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }
@keyframes surge { from { opacity: 0; transform: scale(.6); } }

.notice {
  width: 100%; max-width: 520px; margin-top: 16px; padding: 14px 16px;
  border-radius: var(--r); text-align: left;
  background: rgba(255, 107, 91, .08); border: 1px solid rgba(255, 107, 91, .25);
  display: flex; gap: 12px; align-items: flex-start;
}
.notice .ico { color: var(--danger); margin-top: 1px; }
.notice strong { display: block; font-size: 14px; }
.notice p { color: var(--muted); font-size: 13px; margin-top: 2px; }
.notice--warn { background: rgba(255, 181, 71, .08); border-color: rgba(255, 181, 71, .25); }
.notice--warn .ico { color: var(--warn); }

/* ---------- Avisos/promoções ---------- */
.promos {
  display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none;
  padding: 20px 16px 2px; scroll-snap-type: x mandatory;
}
.promos::-webkit-scrollbar { display: none; }
.promo {
  flex: none; scroll-snap-align: start;
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(246, 189, 21, .13), rgba(246, 189, 21, .03));
  border: 1px solid rgba(246, 189, 21, .2);
  font-size: 13px; font-weight: 600; white-space: nowrap;
}
.promo b {
  font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase;
  background: var(--brand); color: var(--ink); padding: 3px 7px; border-radius: 6px;
}

/* ---------- Categorias fixas ---------- */
.catbar {
  position: sticky; top: var(--top); z-index: 30;
  background: rgba(13, 12, 10, .9);
  -webkit-backdrop-filter: saturate(140%) blur(16px); backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
  margin-top: 14px;
}
.catbar.is-stuck { border-bottom-color: var(--line); box-shadow: 0 10px 24px rgba(0, 0, 0, .35); }
.catbar__track {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  padding: 10px 16px; height: var(--catbar); align-items: center;
}
.catbar__track::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 36px; padding: 0 16px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line);
  color: var(--muted); font-size: 14px; font-weight: 700; white-space: nowrap;
  transition: background .25s var(--ease), color .25s, border-color .25s, transform .18s var(--ease);
}
.chip:active { transform: scale(.95); }
.chip.is-on { background: var(--brand); border-color: var(--brand); color: var(--ink); }

/* ---------- Seções e itens ---------- */
.menu { padding-bottom: 8px; }
.sec { padding: 26px 16px 4px; scroll-margin-top: calc(var(--top) + var(--catbar) + 4px); }
.sec__head { margin-bottom: 4px; }
.sec__head h2 { font-size: 21px; font-weight: 900; }
.sec__head p { color: var(--muted); font-size: 13px; margin-top: 3px; }

.item {
  position: relative;
  display: grid; grid-template-columns: 1fr 112px; gap: 14px; align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--line);
  cursor: pointer; transition: background .2s;
}
.list .item:last-child { border-bottom: 0; }
.item:active .item__media { transform: scale(.96); }
.item__info { min-width: 0; }
.item__name { font-size: 16px; font-weight: 700; }
.item__desc {
  margin-top: 4px; color: var(--muted); font-size: 13.5px; line-height: 1.42;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.item__price { margin-top: 8px; font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.item__price small { font-size: 12px; font-weight: 500; color: var(--muted); margin-right: 2px; }
.item__media { position: relative; width: 112px; height: 112px; transition: transform .2s var(--ease); }
.item__img, .ph {
  width: 100%; height: 100%; border-radius: var(--r); object-fit: cover;
  background: #000; border: 1px solid var(--line);
}
.ph { display: grid; place-items: center; }
.ph img { width: 58%; opacity: .35; }
.item__add, .dest__add {
  position: absolute; right: 6px; bottom: 6px;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand); color: var(--ink);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .45);
  transition: transform .2s var(--spring);
}
.item__add .ico, .dest__add .ico { width: 18px; height: 18px; stroke-width: 2.6; }
.item__add:active, .dest__add:active { transform: scale(.85); }
.item__qty {
  position: absolute; top: -7px; left: -7px; z-index: 1;
  min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--brand); color: var(--ink); font-size: 12px; font-weight: 900;
  box-shadow: 0 0 0 3px var(--bg);
  animation: surge .35s var(--spring);
}
.item.is-off { cursor: default; }
.item.is-off .item__media { filter: grayscale(1); opacity: .45; }
.item.is-off .item__name, .item.is-off .item__desc { opacity: .55; }
.tag { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; }
.tag--off { background: rgba(255, 107, 91, .14); color: var(--danger); }

.anima .item, .anima .dest { animation: entra .55s var(--ease) both; animation-delay: calc(min(var(--i, 0), 8) * 45ms); }
@keyframes entra { from { opacity: 0; transform: translateY(14px); } }

/* fotos aparecem suaves quando carregam */
.item__img, .dest__img, .ck-item__img { opacity: 0; transition: opacity .45s var(--ease); }
.is-loaded { opacity: 1 !important; }

/* ---------- Destaques ---------- */
.hscroll {
  display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none;
  margin: 12px -16px 0; padding: 0 16px 6px; scroll-snap-type: x mandatory;
  scroll-padding-left: 16px;
}
.hscroll::-webkit-scrollbar { display: none; }
.dest {
  position: relative; flex: none; width: min(66vw, 250px); aspect-ratio: 4 / 5;
  border-radius: var(--r-lg); overflow: hidden; scroll-snap-align: start;
  background: #000; cursor: pointer; isolation: isolate;
  border: 1px solid var(--line);
  transition: transform .2s var(--ease);
}
.dest:active { transform: scale(.98); }
.dest__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; transform: scale(1.12); }
.dest::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .9) 100%); z-index: 0; }
.dest__info { position: absolute; left: 14px; right: 56px; bottom: 14px; z-index: 1; }
.dest__info h3 { font-size: 17px; font-weight: 800; }
.dest__price { display: inline-block; margin-top: 6px; font-size: 13px; font-weight: 800; color: var(--brand); font-variant-numeric: tabular-nums; }
.dest__add { right: 12px; bottom: 12px; width: 38px; height: 38px; z-index: 1; }

/* ---------- Esqueleto de carregamento ---------- */
.sk { background: linear-gradient(90deg, var(--card) 25%, var(--card-2) 50%, var(--card) 75%); background-size: 200% 100%; animation: brilho 1.2s linear infinite; border-radius: 8px; }
.sk-row { display: grid; grid-template-columns: 1fr 112px; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.sk-row .sk-l { height: 14px; margin-bottom: 10px; }
.sk-row .sk-img { width: 112px; height: 112px; border-radius: var(--r); }
@keyframes brilho { to { background-position: -200% 0; } }

/* ---------- Busca ---------- */
.search {
  position: fixed; inset: 0; z-index: 60; background: var(--bg);
  display: flex; flex-direction: column;
  opacity: 0; transform: translateY(-10px); transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.search.is-open { opacity: 1; transform: none; }
.search__bar { display: flex; align-items: center; gap: 10px; padding: calc(10px + var(--safe-t)) 12px 10px; border-bottom: 1px solid var(--line); }
.search__bar .icon-btn { background: transparent; border-color: transparent; }
.search__field { position: relative; flex: 1; }
.search__field .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--faint); width: 18px; height: 18px; }
.search__field input {
  width: 100%; height: 46px; border-radius: 14px; padding: 0 14px 0 42px;
  background: var(--card); border: 1px solid var(--line-2); font-size: 16px;
}
.search__field input:focus { border-color: var(--brand-line); box-shadow: 0 0 0 3px var(--brand-soft); }
.search__results { flex: 1; overflow-y: auto; padding: 4px 16px calc(24px + var(--safe-b)); overscroll-behavior: contain; }
.search__vazio { text-align: center; color: var(--muted); padding: 56px 20px; }
.search__vazio strong { display: block; color: var(--text); font-size: 17px; margin-bottom: 6px; }
.search__dica { color: var(--faint); font-size: 13px; padding: 18px 2px 4px; }

/* ---------- Rodapé ---------- */
.foot {
  margin-top: 28px; padding: 36px 20px calc(36px + var(--safe-b));
  border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: 13px;
}
.foot__logo { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 10px; }
.foot__name { color: var(--text); font-weight: 800; font-size: 16px; }
.foot__line { margin-top: 4px; }
.foot__links { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 18px; margin: 18px 0; }
.foot__links a { color: var(--text); font-weight: 600; }
.foot__copy { color: var(--faint); font-size: 12px; }
.foot__copy a { color: var(--muted); }
.has-cart .foot { padding-bottom: calc(110px + var(--safe-b)); }

/* ---------- Barra da sacola ---------- */
.cartbar {
  position: fixed; z-index: 45; left: 0; right: 0; margin: 0 auto;
  bottom: calc(12px + var(--safe-b)); width: min(560px, calc(100% - 24px));
  height: 62px; padding: 0 20px 0 10px; border-radius: 20px;
  display: flex; align-items: center; gap: 12px;
  background: var(--brand); color: var(--ink);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .55), 0 0 0 1px rgba(0, 0, 0, .25);
  opacity: 0; transform: scale(.94) translateY(8px); pointer-events: none;
  transition: opacity .3s var(--ease), transform .35s var(--spring);
}
.cartbar.is-on { opacity: 1; transform: none; pointer-events: auto; }
.cartbar:active { transform: scale(.98); }
.cartbar__icon {
  position: relative; width: 42px; height: 42px; border-radius: 14px;
  display: grid; place-items: center; background: var(--ink); color: var(--brand);
}
.cartbar__icon .ico { width: 21px; height: 21px; }
.cartbar__count {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: #fff; color: var(--ink);
  font-size: 11px; font-weight: 900; display: grid; place-items: center;
}
.cartbar__label { flex: 1; font-size: 16px; font-weight: 800; }
.cartbar__total { font-size: 16px; font-weight: 900; font-variant-numeric: tabular-nums; }
.cartbar.bump { animation: bump .5s var(--spring); }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.06); } 100% { transform: scale(1); } }

/* imagem que voa até a sacola */
.fly {
  position: fixed; z-index: 90; pointer-events: none;
  border-radius: 50%; object-fit: cover; background: #000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5), 0 0 0 3px var(--brand);
}

/* ---------- Aviso (toast) ---------- */
.toast {
  position: fixed; z-index: 95; left: 50%;
  bottom: calc(24px + var(--safe-b));
  max-width: calc(100% - 32px); width: max-content;
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px 12px 16px; border-radius: 14px;
  background: var(--text); color: var(--ink);
  font-size: 14px; font-weight: 600;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .5);
  opacity: 0; transform: translate(-50%, 16px); pointer-events: none;
  transition: opacity .25s var(--ease), transform .3s var(--ease);
}
.has-cart .toast { bottom: calc(86px + var(--safe-b)); }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast .ico { color: #12924a; width: 18px; height: 18px; }
.toast--error .ico { color: #d23c2b; }
.toast__acao { font-weight: 800; color: #8a6500; text-transform: uppercase; font-size: 13px; letter-spacing: .03em; padding: 4px 2px; }

/* ================================================================
   FOLHA (produto / informações)
   ================================================================ */
.sheet { position: fixed; inset: 0; z-index: 70; }
.sheet__backdrop {
  position: absolute; inset: 0; background: rgba(0, 0, 0, .62);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: 0; transition: opacity .3s var(--ease);
}
.sheet__panel {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-height: 92dvh; display: flex; flex-direction: column;
  background: var(--bg-2); border-radius: var(--r-xl) var(--r-xl) 0 0;
  box-shadow: 0 -20px 50px rgba(0, 0, 0, .5);
  transform: translateY(100%); transition: transform .42s var(--ease);
  overflow: hidden; view-transition-name: painel;
}
.sheet.is-open .sheet__backdrop { opacity: 1; }
.sheet.is-open .sheet__panel { transform: none; }
.sheet.sem-anim .sheet__panel, .sheet.sem-anim .sheet__backdrop { transition: none; }
.sheet__grab {
  position: absolute; top: 8px; left: 50%; z-index: 3; transform: translateX(-50%);
  width: 42px; height: 5px; border-radius: 99px; background: rgba(255, 255, 255, .4);
}
.sheet__close {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  background: rgba(13, 12, 10, .72); -webkit-backdrop-filter: none; backdrop-filter: none;
}
.sheet__panel:focus { outline: none; }
.sheet__scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.sheet__footer {
  display: flex; gap: 12px; align-items: center;
  padding: 12px 16px calc(12px + var(--safe-b));
  border-top: 1px solid var(--line); background: var(--bg-2);
}
.sheet__footer:empty { display: none; }

::view-transition-group(foto) { animation-duration: .45s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
::view-transition-new(painel) { animation: vt-sobe .45s cubic-bezier(.2, .8, .2, 1) both; }
::view-transition-old(painel) { animation: vt-desce .3s ease both; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .3s; }
@keyframes vt-sobe { from { transform: translateY(35%); opacity: 0; } }
@keyframes vt-desce { to { transform: translateY(30%); opacity: 0; } }

/* ---------- Produto ---------- */
.pd__media { position: relative; aspect-ratio: 4 / 3; max-height: 46dvh; width: 100%; background: #000; overflow: hidden; }
.pd__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.pd__media .ph { border-radius: 0; border: 0; }
.pd__media::after { content: ""; position: absolute; inset: auto 0 0; height: 30%; background: linear-gradient(180deg, transparent, var(--bg-2)); pointer-events: none; }
.pd__body { padding: 2px 20px 24px; }
.pd__name { font-size: 24px; font-weight: 900; letter-spacing: -.025em; }
.pd__desc { margin-top: 6px; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.pd__price { margin-top: 10px; font-size: 18px; font-weight: 900; color: var(--brand); font-variant-numeric: tabular-nums; }
.pd__price small { color: var(--muted); font-size: 13px; font-weight: 500; margin-right: 4px; }

.grp { margin-top: 24px; }
.grp__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.grp__head h3 { font-size: 16px; font-weight: 800; }
.grp__hint { color: var(--muted); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.grp__note { color: var(--muted); font-size: 13px; margin: -6px 0 12px; }
.badge {
  font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 6px; background: rgba(255, 255, 255, .08); color: var(--muted);
}
.badge--ok { background: rgba(61, 220, 132, .12); color: var(--ok); }

.sizes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.size {
  position: relative; text-align: left;
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; column-gap: 12px;
  padding: 12px; border-radius: var(--r);
  background: var(--card); border: 1.5px solid var(--line-2);
  transition: border-color .2s, background .2s, transform .18s var(--ease);
}
.size:active { transform: scale(.97); }
.size__letter {
  grid-row: 1 / 4; align-self: center;
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .07); font-weight: 900; font-size: 16px;
  transition: background .2s, color .2s;
}
.size__label { font-size: 14px; font-weight: 800; }
.size__info { font-size: 11.5px; color: var(--muted); line-height: 1.35; }
.size__price { font-size: 14px; font-weight: 800; color: var(--brand); margin-top: 2px; font-variant-numeric: tabular-nums; }
.size.is-on { border-color: var(--brand); background: rgba(246, 189, 21, .07); }
.size.is-on .size__letter { background: var(--brand); color: var(--ink); }
.size__ok {
  position: absolute; top: 8px; right: 8px; width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center; background: var(--brand); color: var(--ink);
  opacity: 0; transition: opacity .2s var(--ease);
}
.size__ok .ico { width: 12px; height: 12px; stroke-width: 3.2; }
.size.is-on .size__ok { opacity: 1; }

.opts { display: flex; flex-direction: column; gap: 8px; }
.opt {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 14px; border-radius: var(--r); background: var(--card); border: 1.5px solid var(--line-2);
  transition: border-color .2s, background .2s;
}
.opt__radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--faint); flex: none; transition: all .2s var(--ease); }
.opt__label { flex: 1; font-weight: 700; font-size: 14.5px; }
.opt__price { color: var(--muted); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.opt.is-on { border-color: var(--brand); background: rgba(246, 189, 21, .07); }
.opt.is-on .opt__radio { border-color: var(--brand); background: var(--brand); box-shadow: inset 0 0 0 4px var(--card); }
.opt.is-on .opt__price { color: var(--brand); }

.flavors { display: flex; flex-wrap: wrap; gap: 8px; }
.flavor {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 8px 0 14px; border-radius: 999px;
  background: var(--brand-soft); border: 1px solid var(--brand-line);
  color: var(--brand-2); font-size: 13.5px; font-weight: 700;
  animation: surge .3s var(--spring);
}
.flavor em { font-style: normal; font-size: 11px; color: var(--muted); font-weight: 600; padding-right: 6px; }
.flavor button { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .35); color: var(--text); }
.flavor button .ico { width: 13px; height: 13px; stroke-width: 2.6; }
.addflavor {
  margin-top: 12px; width: 100%; height: 48px; border-radius: var(--r);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  border: 1.5px dashed rgba(255, 255, 255, .2); color: var(--text); font-weight: 700; font-size: 14.5px;
  transition: border-color .2s, background .2s;
}
.addflavor:active, .addflavor[aria-expanded="true"] { border-color: var(--brand-line); background: var(--brand-soft); }
.flist { margin-top: 12px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); overflow: hidden; animation: entra .3s var(--ease); }
.flist__busca { position: relative; padding: 10px; border-bottom: 1px solid var(--line); }
.flist__busca .ico { position: absolute; left: 22px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--faint); }
.flist__busca input { width: 100%; height: 42px; border-radius: 12px; padding: 0 12px 0 36px; background: var(--bg-2); border: 1px solid var(--line-2); font-size: 16px; }
.flist__grupo { padding: 12px 14px 4px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.frow {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 11px 14px; border-top: 1px solid var(--line); transition: background .15s;
}
.frow:active { background: rgba(255, 255, 255, .04); }
.frow img, .frow .ph { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; flex: none; }
.frow .ph img { width: 70%; }
.frow__nome { flex: 1; font-size: 14px; font-weight: 600; }
.frow__preco { color: var(--muted); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.frow__mais { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line-2); color: var(--brand); flex: none; }
.frow__mais .ico { width: 15px; height: 15px; stroke-width: 2.6; }

.field {
  width: 100%; padding: 13px 14px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--line-2);
  font-size: 16px; line-height: 1.4; resize: none;
  transition: border-color .2s, box-shadow .2s;
}
.field::placeholder { color: var(--faint); }
.field:focus { border-color: var(--brand-line); box-shadow: 0 0 0 3px var(--brand-soft); }

.stepper {
  display: inline-flex; align-items: center; flex: none;
  height: 52px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line-2);
}
.stepper button { width: 46px; height: 100%; display: grid; place-items: center; border-radius: var(--r); transition: transform .15s; }
.stepper button:active { transform: scale(.85); }
.stepper button:disabled { opacity: .3; }
.stepper button .ico { width: 18px; height: 18px; stroke-width: 2.6; }
.stepper output { min-width: 22px; text-align: center; font-weight: 900; font-size: 17px; font-variant-numeric: tabular-nums; }
.btn--add { flex: 1; justify-content: space-between; padding: 0 20px; }

/* ---------- Informações da loja ---------- */
.info { padding: 26px 20px 20px; }
.info__head { display: flex; align-items: center; gap: 14px; padding-right: 44px; }
.info__head img { width: 60px; height: 60px; border-radius: 50%; flex: none; }
.info__head h2 { font-size: 20px; font-weight: 900; }
.info__head .meta { margin-top: 6px; }
.info__sec { margin-top: 22px; }
.info__sec h3 { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.info__sec h3 .ico { width: 16px; height: 16px; }
.info__rows { border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.info__row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; font-size: 14px; }
.info__row + .info__row { border-top: 1px solid var(--line); }
.info__row span:last-child { color: var(--muted); text-align: right; }
.info__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.info__tams { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.info__tam { text-align: center; padding: 12px 6px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.info__tam b { display: block; font-size: 20px; font-weight: 900; color: var(--brand); }
.info__tam span { font-size: 12px; color: var(--muted); }

/* ================================================================
   CHECKOUT
   ================================================================ */
.ck-top {
  position: sticky; top: 0; z-index: 30;
  height: var(--top); padding: var(--safe-t) 8px 0;
  display: flex; align-items: center; gap: 6px;
  background: rgba(13, 12, 10, .88);
  -webkit-backdrop-filter: saturate(140%) blur(16px); backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.ck-top .icon-btn { background: transparent; border-color: transparent; }
.ck-top h1 { flex: 1; font-size: 17px; font-weight: 800; }
.ck-top__limpar { color: var(--muted); font-size: 14px; font-weight: 700; padding: 8px 10px; border-radius: 10px; }
.ck-top__limpar:active { color: var(--danger); }

.ck-wrap { max-width: 640px; margin: 0 auto; padding: 14px 14px calc(120px + var(--safe-b)); }
.ck-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 18px 16px; margin-bottom: 12px;
  animation: entra .5s var(--ease) both;
}
.ck-card:nth-child(2) { animation-delay: .05s; } .ck-card:nth-child(3) { animation-delay: .1s; }
.ck-card:nth-child(4) { animation-delay: .15s; } .ck-card:nth-child(5) { animation-delay: .2s; }
.ck-card__head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.ck-card__head h2 { flex: 1; font-size: 17px; font-weight: 800; }
.ck-step {
  width: 26px; height: 26px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--brand); color: var(--ink); font-size: 13px; font-weight: 900;
}
.ck-link { display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-size: 14px; font-weight: 700; }
.ck-link .ico { width: 16px; height: 16px; stroke-width: 2.6; }

.ck-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.ck-item:first-child { border-top: 0; padding-top: 0; }
.ck-item__media { width: 56px; height: 56px; border-radius: 14px; overflow: hidden; background: #000; border: 1px solid var(--line); }
.ck-item__img { width: 100%; height: 100%; object-fit: cover; }
.ck-item__media .ph { border: 0; border-radius: 0; }
.ck-item__nome { font-size: 14.5px; font-weight: 700; line-height: 1.3; }
.ck-item__det { color: var(--muted); font-size: 12.5px; margin-top: 3px; line-height: 1.4; }
.ck-item__preco { margin-top: 5px; font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; }
.ck-qty { display: inline-flex; align-items: center; height: 36px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line-2); }
.ck-qty button { width: 34px; height: 100%; display: grid; place-items: center; color: var(--text); transition: transform .15s; }
.ck-qty button:active { transform: scale(.85); }
.ck-qty button .ico { width: 16px; height: 16px; stroke-width: 2.6; }
.ck-qty button.is-rm { color: var(--danger); }
.ck-qty span { min-width: 18px; text-align: center; font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; }
.ck-mais { display: flex; justify-content: center; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }

.f-grid { display: grid; gap: 12px; }
.f-label { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.f-input {
  width: 100%; height: 52px; padding: 0 14px; border-radius: 14px;
  background: var(--bg-2); border: 1px solid var(--line-2); font-size: 16px;
  transition: border-color .2s, box-shadow .2s;
}
textarea.f-input { height: auto; min-height: 92px; padding: 13px 14px; resize: vertical; line-height: 1.45; }
.f-input::placeholder { color: var(--faint); }
.f-input:focus { border-color: var(--brand-line); box-shadow: 0 0 0 3px var(--brand-soft); }
.f-input.error { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(255, 107, 91, .15); animation: treme .35s; }
@keyframes treme { 25% { transform: translateX(-5px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }
.f-select { position: relative; }
.f-select select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; }
.f-select::after {
  content: ""; position: absolute; right: 16px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); pointer-events: none;
}
.f-select option { background: var(--bg-2); color: var(--text); }
.f-saved {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px; margin-bottom: 12px; border-radius: 12px;
  background: rgba(61, 220, 132, .08); border: 1px solid rgba(61, 220, 132, .2);
  color: var(--ok); font-size: 13px; font-weight: 600;
}
.f-saved button { color: var(--muted); font-size: 13px; font-weight: 700; }

.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.seg__opt, .pay-opt {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 88px; padding: 10px 6px; border-radius: var(--r); text-align: center;
  background: var(--bg-2); border: 1.5px solid var(--line-2);
  transition: border-color .2s, background .2s, transform .18s var(--ease);
}
.seg__opt:active, .pay-opt:active { transform: scale(.97); }
.seg__opt .ico, .pay-opt .ico { width: 24px; height: 24px; color: var(--muted); transition: color .2s; }
.seg__opt strong, .pay-opt__label { font-size: 14px; font-weight: 800; }
.seg__opt small, .pay-opt__tag { font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.seg__opt.active, .pay-opt.active { border-color: var(--brand); background: rgba(246, 189, 21, .07); }
.seg__opt.active .ico, .pay-opt.active .ico { color: var(--brand); }
.seg__opt:disabled { opacity: .35; cursor: not-allowed; }
.pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pay-opt { flex-direction: row; justify-content: flex-start; gap: 12px; min-height: 64px; padding: 12px 14px; text-align: left; }
.pay-opt__info { display: flex; flex-direction: column; }
.ck-addr { margin-top: 14px; }
.ck-nota {
  margin-top: 12px; padding: 12px 14px; border-radius: 14px; font-size: 13px; line-height: 1.5;
  background: var(--brand-soft); border: 1px solid rgba(246, 189, 21, .22); color: var(--text);
}
#_deliveryNotice { border-radius: 12px !important; }

.ck-sum__rows { display: flex; flex-direction: column; gap: 10px; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.summary-row--total { padding-top: 12px; margin-top: 2px; border-top: 1px dashed var(--line-2); color: var(--text); font-size: 18px; }
.summary-row--total strong { font-weight: 900; }
.sum-free { color: var(--ok); font-weight: 700; }
.ck-cupom { display: flex; gap: 8px; margin-top: 16px; }
.ck-cupom input {
  flex: 1; min-width: 0; height: 46px; padding: 0 14px; border-radius: 12px;
  background: var(--bg-2); border: 1px dashed var(--line-2); font-size: 15px; text-transform: uppercase; letter-spacing: .04em;
}
.ck-cupom input:focus { border-color: var(--brand-line); border-style: solid; }
.ck-cupom button { height: 46px; padding: 0 16px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--line-2); font-weight: 800; font-size: 14px; }
.ck-cupom__ok { flex: 1; display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px; border-radius: 12px; background: rgba(61, 220, 132, .1); border: 1px solid rgba(61, 220, 132, .3); color: var(--ok); font-weight: 800; }
.ck-cupom .is-rm { color: var(--danger); }
#cupomFeedback { font-size: 13px; font-weight: 600; margin-top: 8px; }
.ck-tempo { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 12px 14px; border-radius: 14px; background: var(--bg-2); font-size: 14px; color: var(--muted); }
.ck-tempo strong { margin-left: auto; color: var(--text); }
.ck-tempo .ico { width: 18px; height: 18px; }
.btn-finalizar { display: none; }
.summary-hint { text-align: center; font-size: 12.5px; color: var(--faint); margin-top: 10px; }

.checkout-sticky {
  position: fixed; z-index: 40; left: 0; right: 0; bottom: 0;
  padding: 12px 16px calc(12px + var(--safe-b));
  background: rgba(13, 12, 10, .92);
  -webkit-backdrop-filter: saturate(140%) blur(16px); backdrop-filter: saturate(140%) blur(16px);
  border-top: 1px solid var(--line);
  animation: entra .4s var(--ease);
}
.checkout-sticky__in { max-width: 640px; margin: 0 auto; display: flex; align-items: center; gap: 14px; }
.checkout-sticky__info { display: flex; flex-direction: column; min-width: 0; }
.checkout-sticky__info small { color: var(--muted); font-size: 12px; font-weight: 600; }
.checkout-sticky__info strong { font-size: 20px; font-weight: 900; font-variant-numeric: tabular-nums; }
.btn-pix-sm { flex: 1; }
#btnMobileIcon { display: none; }

.ck-vazio {
  min-height: calc(100dvh - var(--top)); display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 32px 24px;
}
.ck-vazio img { width: 112px; height: 112px; border-radius: 50%; opacity: .5; margin-bottom: 18px; }
.ck-vazio h2 { font-size: 22px; font-weight: 900; }
.ck-vazio p { color: var(--muted); margin: 6px 0 22px; }

.ck-fechado {
  position: fixed; inset: 0; z-index: 80; display: none;
  flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 24px; text-align: center; background: rgba(13, 12, 10, .97);
}
.ck-fechado .ico { width: 44px; height: 44px; color: var(--danger); margin-bottom: 6px; }
.ck-fechado h2 { font-size: 22px; font-weight: 900; }
.ck-fechado p { color: var(--muted); max-width: 320px; margin-bottom: 10px; }

.pg-sacola .toast { bottom: calc(96px + var(--safe-b)); }
@media (min-width: 960px) { .pg-sacola .toast { bottom: 28px; } }
.ck-wrap { gap: 0; }

/* ================================================================
   PÁGINAS (início curto e cardápio)
   ================================================================ */
.topbar--solid {
  background: rgba(13, 12, 10, .88);
  -webkit-backdrop-filter: saturate(140%) blur(16px); backdrop-filter: saturate(140%) blur(16px);
  border-bottom-color: var(--line);
}
.topbar--solid .topbar__brand { opacity: 1; transform: none; pointer-events: auto; }
.topbar--solid .icon-btn { background: transparent; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.topbar__title { flex: 1; min-width: 0; font-size: 18px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.page-top { height: var(--top); }
.topbar__hello {
  position: absolute; left: 18px; top: var(--safe-t); height: 56px;
  display: flex; align-items: center; font-size: 17px; font-weight: 800; letter-spacing: -.01em;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.is-scrolled .topbar__hello { opacity: 0; transform: translateY(-6px); pointer-events: none; }

/* ---------- Início ---------- */
.home { max-width: 760px; margin: 0 auto; padding: 14px 16px 0; }
.hero-card {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--r-xl);
  background: radial-gradient(120% 60% at 100% 100%, rgba(246, 189, 21, .1), transparent 60%), #15140f;
  border: 1px solid rgba(246, 189, 21, .18);
  box-shadow: 0 20px 44px rgba(0, 0, 0, .35);
  animation: entra .6s var(--ease) both;
}
.hero-card__cover { position: relative; height: clamp(96px, 28vw, 150px); overflow: hidden; background: #000; }
.hero-card__cover img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%;
  transform: scale(1.06); animation: capa 1.1s var(--ease) both;
}
.hero-card__cover::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .3) 0%, rgba(0, 0, 0, 0) 38%, rgba(21, 20, 15, 0) 58%, #15140f 100%);
}
.hero-card__body { position: relative; padding: 0 16px 14px; }
.hero-card__top { display: flex; align-items: flex-start; gap: 12px; margin-top: -32px; }
.hero-card__logo {
  width: 64px; height: 64px; border-radius: 50%; flex: none; background: #000;
  box-shadow: 0 0 0 3px #15140f, 0 10px 22px rgba(0, 0, 0, .55);
  animation: surge .6s .15s var(--spring) both;
}
.hero-card__id { min-width: 0; padding-top: 38px; }
.hero-card h1 { font-size: clamp(18px, 5.2vw, 21px); font-weight: 900; letter-spacing: -.03em; line-height: 1.15; }
.hero-card__tag { color: var(--muted); font-size: 13px; margin-top: 2px; }
.hero-card .store__meta { justify-content: flex-start; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.hero-card .meta { flex: none; height: 28px; padding: 0 8px; font-size: 12px; white-space: nowrap; gap: 4px; }
.hero-card .meta .ico { width: 14px; height: 14px; }
.hero-card__acoes { display: flex; gap: 8px; margin-top: 12px; }
.hero-card__acoes .btn { flex: 1; height: 46px; font-size: 15.5px; }
.hero-card__acoes .btn .ico { width: 18px; height: 18px; stroke-width: 2.6; }
.hero-card__acoes .pill { flex: none; width: 46px; height: 46px; padding: 0; border-radius: var(--r); justify-content: center; }
.hero-card__acoes .pill .ico { width: 20px; height: 20px; }
.hero-card .notice { max-width: none; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.home .promos { margin: 14px -16px 0; padding-top: 0; }
.home .sec { padding: 28px 0 0; }
.home .hscroll { margin: 12px -16px 0; padding: 0 16px 6px; }
.sec__head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }

.cats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.cat-tile {
  position: relative; display: block; aspect-ratio: 1 / 1.08; isolation: isolate;
  border-radius: var(--r-lg); overflow: hidden; background: #000; border: 1px solid var(--line);
  transition: transform .2s var(--ease), border-color .2s;
  animation: entra .55s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms + .1s);
}
.cat-tile:active { transform: scale(.97); }
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; transform: scale(1.18); transition: transform .6s var(--ease), opacity .45s var(--ease); z-index: -2; }
.cat-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, .88) 100%); }
.cat-tile__txt { position: absolute; left: 14px; right: 14px; bottom: 12px; }
.cat-tile__txt strong { display: block; font-size: 19px; font-weight: 900; letter-spacing: -.02em; }
.cat-tile__txt span { font-size: 12.5px; font-weight: 600; color: rgba(255, 255, 255, .72); }
.cat-tile__seta {
  position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(13, 12, 10, .55); color: var(--brand);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid var(--line-2);
}
.cat-tile__seta .ico { width: 16px; height: 16px; stroke-width: 2.6; }

/* ---------- Cardápio ---------- */
.catbar--page { margin-top: 0; }
.catbar--page .chip { padding: 0 15px; }
.menu.troca   { animation: troca .35s var(--ease); }
.menu.troca-d { animation: troca-d .35s var(--ease); }
.menu.troca-e { animation: troca-e .35s var(--ease); }
@keyframes troca   { from { opacity: 0; transform: translateY(10px); } }
@keyframes troca-d { from { opacity: 0; transform: translateX(32px); } }
@keyframes troca-e { from { opacity: 0; transform: translateX(-32px); } }
.cat-tile.sk { animation: brilho 1.2s linear infinite; }
.notice--page { margin: 14px 16px 0; width: auto; max-width: none; }
.foot--mini { margin-top: 12px; padding-top: 28px; }
.foot--mini .foot__links { margin-top: 0; }

/* ================================================================
   TELAS MAIORES
   ================================================================ */
@media (min-width: 720px) {
  .cats { grid-template-columns: repeat(4, 1fr); }
  .cat-tile:hover { border-color: var(--brand-line); }
  .cat-tile:hover img { transform: scale(1.26); }
  .cover { height: 340px; }
  .store__name { font-size: 32px; }
  .list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
  .item {
    padding: 14px; border: 1px solid var(--line); border-radius: var(--r-lg);
    background: var(--card); transition: border-color .2s, transform .2s var(--ease), background .2s;
  }
  .list .item:last-child { border-bottom: 1px solid var(--line); }
  .item:hover { border-color: var(--line-2); transform: translateY(-2px); }
  .sk-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .dest { width: 250px; }
  .dest:hover .dest__img { transform: scale(1.18); }
  .dest__img { transition: transform .6s var(--ease), opacity .45s var(--ease); }
}

@media (min-width: 960px) {
  .menu, .promos, .catbar__track { max-width: 1080px; margin-left: auto; margin-right: auto; }
  .home { max-width: 1080px; padding-top: 24px; }
  .home .promos { margin: 14px 0 0; padding: 0; }
  .home .hscroll { margin: 12px 0 0; padding: 0 0 6px; }
  .hero-card { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .hero-card__cover { height: auto; min-height: 280px; }
  .hero-card__cover::after { background: linear-gradient(90deg, rgba(0, 0, 0, .15), rgba(0, 0, 0, 0) 45%, #15140f 100%); }
  .hero-card__body { padding: 26px 30px; align-self: center; }
  .hero-card__top { margin-top: 0; align-items: center; }
  .hero-card__id { padding-top: 0; }
  .hero-card h1 { font-size: 28px; }
  .hero-card__logo { width: 76px; height: 76px; }
  .hero-card__acoes { max-width: 440px; }
  .topbar__hello { left: max(20px, calc((100% - 1080px) / 2 + 20px)); }
  .notice--page { max-width: 1040px; margin: 14px auto 0; }
  .sec { padding-left: 20px; padding-right: 20px; }
  .hscroll { margin: 12px 0 0; padding: 0 0 6px; }
  .topbar { padding-left: max(20px, calc((100% - 1080px) / 2 + 20px)); padding-right: max(20px, calc((100% - 1080px) / 2 + 20px)); }
  .cover { height: 380px; max-width: 1080px; margin: var(--top) auto 0; border-radius: var(--r-xl); }
  .cover__img { inset: 0; height: 100%; }

  /* folha vira janela central no computador */
  /* centralizada com margin:auto; aberta fica sem transform */
  .sheet__panel {
    inset: 0; margin: auto;
    width: min(560px, 92vw); height: fit-content; max-height: min(88dvh, 860px);
    border-radius: var(--r-xl);
    transform: translateY(18px) scale(.97); opacity: 0;
    transition: transform .35s var(--ease), opacity .25s var(--ease);
  }
  .sheet.is-open .sheet__panel { transform: none; opacity: 1; }
  .sheet__grab { display: none; }
  .pd__media { aspect-ratio: 16 / 10; }

  .ck-wrap { max-width: 1040px; display: grid; grid-template-columns: 1fr 380px; gap: 16px; align-items: start; padding-bottom: 48px; }
  .ck-col { min-width: 0; }
  .ck-sum { position: sticky; top: calc(var(--top) + 14px); }
  .btn-finalizar { display: flex; width: 100%; margin-top: 16px; }
  .checkout-sticky { display: none !important; }
}

@media (max-width: 380px) {
  .item { grid-template-columns: 1fr 96px; }
  .item__media, .sk-row .sk-img { width: 96px; height: 96px; }
  .pay-grid { grid-template-columns: 1fr; }
}

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

/* ---------- Faixa de destaque do nome de cada categoria ---------- */
.sec__banner {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 14px 10px 14px; border-radius: 20px;
  background: linear-gradient(100deg, rgba(246, 189, 21, .22), rgba(246, 189, 21, .07) 58%, rgba(246, 189, 21, .02));
  border: 1px solid var(--brand-line);
  box-shadow: inset 5px 0 0 var(--brand);
}
.sec__thumb {
  position: relative; flex: none; width: 54px; height: 54px; margin-left: 4px; border-radius: 50%;
  overflow: hidden; background: #000; border: 2px solid var(--brand);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .45);
}
.sec__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 64%; transform: scale(1.5); }
.sec__thumb img[src^="img/logo.png"], .sec__thumb img[src^="/img/logo.png"] { object-fit: contain; transform: none; padding: 14%; }
.sec__txt { flex: 1; min-width: 0; }
.sec__banner h2 { font-size: 20px; font-weight: 900; letter-spacing: -.02em; line-height: 1.15; }
.sec__banner p { margin-top: 3px; font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.sec__count {
  flex: none; min-width: 30px; height: 28px; padding: 0 11px; border-radius: 999px;
  display: grid; place-items: center; font-size: 13px; font-weight: 900; font-variant-numeric: tabular-nums;
  background: var(--brand); color: var(--ink);
}
.sec__banner + .list { margin-top: 4px; }
@media (min-width: 720px) {
  .sec__banner { padding: 12px 18px 12px 16px; }
  .sec__thumb { width: 62px; height: 62px; }
  .sec__banner h2 { font-size: 23px; }
  .sec__banner + .list { margin-top: 14px; }
}
