/* Cardápio digital — experiência do cliente */
body { background: var(--surface); }
.shell { max-width: 1080px; margin: 0 auto; }

/* Capa */
.hero { position: relative; }
.cover {
  height: 210px; background: var(--brand) center/cover no-repeat; position: relative;
}
.cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 30%, rgba(0,0,0,.45)); }
@media (min-width: 768px) { .cover { height: 280px; border-radius: 0 0 28px 28px; } }
.store-head { position: relative; padding: 0 16px; margin-top: -52px; z-index: 2; }
.store-card {
  background: var(--surface); border-radius: 22px; box-shadow: var(--shadow); padding: 18px; display: grid; gap: 14px;
}
@media (min-width: 768px) { .store-card { padding: 22px 26px; grid-template-columns: auto 1fr auto; align-items: center; } }
.logo {
  width: 76px; height: 76px; border-radius: 20px; background: var(--brand-soft) center/cover; color: var(--brand);
  display: grid; place-items: center; font-weight: 800; font-size: 28px; border: 4px solid var(--surface);
  box-shadow: var(--shadow-sm); margin-top: -46px;
}
@media (min-width: 768px) { .logo { width: 92px; height: 92px; margin-top: 0; } }
.store-name { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.store-desc { color: var(--ink-2); font-size: 14px; margin-top: 4px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px;
  background: var(--surface-2); color: var(--ink-2); font-size: 13px; font-weight: 600; border: 0;
}
.chip svg { width: 16px; height: 16px; }
.chip.open { background: var(--ok-soft); color: var(--ok); }
.chip.closed { background: var(--danger-soft); color: var(--danger); }
.store-actions { display: flex; gap: 8px; }

.table-banner {
  margin: 14px 16px 0; padding: 12px 16px; border-radius: 14px; background: var(--ink); color: #fff;
  display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px;
}
.closed-banner { margin: 14px 16px 0; padding: 12px 16px; border-radius: 14px; background: var(--danger-soft); color: var(--danger); font-weight: 600; font-size: 14px; display: flex; gap: 10px; align-items: center; }

/* Barra fixa: busca + categorias */
.sticky {
  position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line); margin-top: 18px;
}
.search { padding: 12px 16px 6px; }
.search label {
  display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border-radius: 14px;
  background: var(--surface-2); color: var(--ink-3);
}
.search input { border: 0; background: transparent; outline: none; flex: 1; height: 100%; color: var(--ink); font-size: 15px; }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding: 8px 16px 12px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; height: 36px; padding: 0 14px; border-radius: 999px; border: 0; background: transparent;
  font-weight: 700; font-size: 14px; color: var(--ink-2); transition: background .15s, color .15s;
}
.tab:hover { background: var(--surface-2); }
.tab.active { background: var(--ink); color: #fff; }

/* Conteúdo */
main { padding: 8px 16px 140px; }
.section { padding-top: 22px; scroll-margin-top: 130px; }
.section-title { font-size: 19px; font-weight: 800; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.section-title small { font-size: 13px; color: var(--ink-3); font-weight: 600; }

.featured { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
.featured::-webkit-scrollbar { display: none; }
.fcard {
  flex: none; width: 210px; scroll-snap-align: start; border-radius: 18px; overflow: hidden; background: var(--surface);
  border: 1px solid var(--line); text-align: left; padding: 0; transition: transform .2s var(--ease), box-shadow .2s;
}
.fcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.fcard .img { aspect-ratio: 4/3; background: var(--surface-2) center/cover; }
.fcard .body { padding: 12px; }
.fcard h4 { font-size: 14.5px; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }

.grid { display: grid; gap: 12px; }
@media (min-width: 768px) { .grid { grid-template-columns: 1fr 1fr; } }
.pcard {
  display: flex; gap: 14px; padding: 14px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface);
  text-align: left; width: 100%; align-items: stretch; transition: border-color .15s, box-shadow .2s, transform .2s var(--ease);
}
.pcard:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); box-shadow: var(--shadow); transform: translateY(-1px); }
.pcard.soldout { opacity: .55; }
.pcard .info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pcard h3 { font-size: 15.5px; font-weight: 700; }
.pcard p { font-size: 13.5px; color: var(--ink-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard .thumb { width: 108px; height: 108px; border-radius: 14px; background: var(--surface-2) center/cover; flex: none; position: relative; }
.pcard .add {
  position: absolute; right: 6px; bottom: 6px; width: 32px; height: 32px; border-radius: 10px; background: var(--surface);
  display: grid; place-items: center; color: var(--brand); box-shadow: var(--shadow);
}
.price { font-weight: 800; font-size: 15px; margin-top: auto; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.price s { color: var(--ink-3); font-weight: 600; font-size: 13px; }
.price .promo { color: var(--ok); }
.ph-img { display: grid; place-items: center; color: var(--ink-3); font-size: 34px; }

.empty { text-align: center; padding: 60px 20px; color: var(--ink-3); }

/* Barra do carrinho */
.cartbar {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 30; width: min(calc(100% - 32px), 520px);
  height: 60px; border-radius: 18px; border: 0; background: var(--brand); color: var(--brand-ink); padding: 0 10px 0 18px;
  display: flex; align-items: center; gap: 12px; font-weight: 700; box-shadow: 0 16px 40px -10px color-mix(in srgb, var(--brand) 70%, transparent);
  animation: up .35s var(--ease);
}
.cartbar .count { width: 32px; height: 32px; border-radius: 10px; background: rgba(255,255,255,.22); display: grid; place-items: center; }
.cartbar .total { margin-left: auto; background: rgba(0,0,0,.14); padding: 8px 14px; border-radius: 12px; }
@keyframes up { from { transform: translate(-50%, 30px); opacity: 0; } }

/* Folhas / modais */
.overlay { position: fixed; inset: 0; background: rgba(20, 18, 15, .5); z-index: 50; backdrop-filter: blur(3px); }
.sheet {
  position: fixed; z-index: 51; background: var(--surface); display: flex; flex-direction: column;
  left: 0; right: 0; bottom: 0; max-height: 94dvh; border-radius: 26px 26px 0 0; box-shadow: var(--shadow-lg);
}
@media (min-width: 768px) {
  .sheet { left: 50%; top: 50%; bottom: auto; right: auto; transform: translate(-50%, -50%); width: 560px; max-height: 88vh; border-radius: 26px; }
  .sheet.drawer { left: auto; right: 0; top: 0; bottom: 0; transform: none; width: 460px; max-height: none; border-radius: 26px 0 0 26px; }
}
.sheet-scroll { overflow-y: auto; overscroll-behavior: contain; flex: 1; }
.sheet-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.sheet-head h2 { font-size: 17px; font-weight: 800; flex: 1; }
.sheet-foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
.grabber { width: 40px; height: 5px; border-radius: 9px; background: var(--line); margin: 8px auto 0; }
@media (min-width: 768px) { .grabber { display: none; } }

.p-hero { aspect-ratio: 16/10; background: var(--surface-2) center/cover; position: relative; }
.p-hero .icon-btn { position: absolute; top: 12px; right: 12px; background: rgba(255,255,255,.92); }
.p-body { padding: 18px 18px 6px; }
.p-body h2 { font-size: 21px; font-weight: 800; }
.p-body p { color: var(--ink-2); margin-top: 6px; font-size: 14.5px; }

.group { margin-top: 18px; }
.group-head {
  position: sticky; top: 0; z-index: 1; background: var(--surface-2); padding: 12px 18px; display: flex; align-items: center; gap: 10px;
}
.group-head.err { animation: shake .4s; background: var(--danger-soft); }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.group-head h4 { font-size: 15px; font-weight: 800; }
.group-head .sub { font-size: 12.5px; color: var(--ink-3); }
.opt { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); cursor: pointer; }
.opt:last-child { border-bottom: 0; }
.opt .name { font-weight: 600; font-size: 14.5px; }
.opt .op-price { font-size: 13.5px; color: var(--ink-3); }
.mark {
  width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); flex: none; display: grid; place-items: center;
  transition: .15s; color: #fff;
}
.mark.sq { border-radius: 7px; }
.mark.on { background: var(--brand); border-color: var(--brand); }
.mark svg { width: 14px; height: 14px; stroke-width: 3; }
.stepper { display: inline-flex; align-items: center; gap: 2px; background: var(--surface-2); border-radius: 12px; padding: 3px; }
.stepper button { width: 34px; height: 34px; border: 0; background: transparent; border-radius: 9px; display: grid; place-items: center; color: var(--brand); }
.stepper button:disabled { color: var(--ink-3); cursor: not-allowed; }
.stepper button:hover:not(:disabled) { background: var(--surface); }
.stepper span { min-width: 22px; text-align: center; font-weight: 800; }
.stepper.lg button { width: 42px; height: 42px; }

/* Checkout */
.steps { display: flex; gap: 6px; padding: 12px 16px 0; }
.steps i { flex: 1; height: 4px; border-radius: 9px; background: var(--line); }
.steps i.on { background: var(--brand); }
.pad { padding: 16px; }
.stack { display: grid; gap: 14px; }
.cart-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-item .opts { font-size: 13px; color: var(--ink-3); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; background: var(--surface-2); padding: 4px; border-radius: 14px; }
.seg button { height: 52px; border: 0; border-radius: 11px; background: transparent; font-weight: 700; font-size: 13.5px; color: var(--ink-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.seg button small { font-weight: 600; font-size: 11.5px; color: var(--ink-3); }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pay {
  display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 14px; border: 1.5px solid var(--line);
  background: var(--surface); font-weight: 700; font-size: 14px; text-align: left;
}
.pay.on { border-color: var(--brand); background: var(--brand-soft); color: var(--ink); }
.summary { background: var(--surface-2); border-radius: 16px; padding: 14px 16px; display: grid; gap: 6px; font-size: 14px; }
.summary .row { justify-content: space-between; }
.summary .tot { font-size: 17px; font-weight: 800; padding-top: 6px; border-top: 1px dashed var(--line); margin-top: 4px; }
.coupon-ok { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--ok-soft); color: var(--ok); font-weight: 700; font-size: 14px; }

.info-list { display: grid; gap: 14px; }
.info-list .row { align-items: flex-start; }
.hours-table { width: 100%; font-size: 14px; border-collapse: collapse; }
.hours-table td { padding: 7px 0; border-bottom: 1px solid var(--line); }
.hours-table td:last-child { text-align: right; color: var(--ink-2); }
.hours-table tr.today td { font-weight: 800; color: var(--ink); }

footer.credit { text-align: center; color: var(--ink-3); font-size: 12.5px; padding: 30px 16px 120px; }
footer.credit a { color: var(--ink-2); font-weight: 700; text-decoration: none; }
footer.credit .powered-by { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-weight: 500; color: var(--ink-3); }
footer.credit .powered-by strong { color: var(--ink-2); }

.fade-enter { transition: opacity .2s; }
.slide-enter { transition: transform .32s var(--ease), opacity .2s; }
