.site-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.site-papel {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 0;
  height: 340px;
  overflow: hidden;
  pointer-events: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 8px 0;
  transition: padding 0.2s var(--ease);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 52px;
  padding: 0 6px 0 14px;
  border-radius: var(--radius-pill);
  transition: background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.site-header.is-scrolled .site-header-inner,
body:not(.site-home) .site-header-inner {
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.site-brand img {
  height: 28px;
  width: auto;
}

.site-header-link {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--btn-ink);
  font-size: 13px;
  font-weight: var(--fw-semibold);
  text-decoration: none;
}

.site-footer {
  margin-top: 40px;
  padding: 28px 0 36px;
}

.site-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  font-size: 12px;
  color: var(--ink-3);
}

.site-footer-inner img {
  height: 24px;
  width: auto;
}

.site-footer-links a,
.conta-termos a {
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.store-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.store-card {
  display: block;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  color: var(--ink);
  text-decoration: none;
  overflow: hidden;
  transition: background 0.15s var(--ease);
}

.store-card:active {
  background: var(--bg);
}

.store-card-cover {
  display: none;
}

.store-card-body {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px 12px 14px;
}

.store-card-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 1px var(--line);
  color: #fff;
  font-size: 17px;
  font-weight: var(--fw-semibold);
  overflow: hidden;
}

.store-card-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-card.is-fechada .store-card-logo {
  filter: grayscale(0.7);
  opacity: 0.75;
}

.store-card-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.store-card-info strong {
  overflow: hidden;
  font-size: 14px;
  font-weight: var(--fw-semibold);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.store-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 8px;
  font-size: 11.5px;
  color: var(--ink-3);
}

.store-card-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.store-card-taxa.is-gratis {
  font-weight: var(--fw-semibold);
  color: var(--success);
}

.produto-entrega {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg);
  font-size: 12.5px;
  font-weight: var(--fw-semibold);
  color: var(--ink-2);
}

.produto-entrega.is-gratis {
  background: var(--success-soft);
  color: var(--success);
}

.store-card-meta > span + span::before {
  content: "";
  width: 3px;
  height: 3px;
  margin-right: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
}

.store-card-nota {
  font-weight: var(--fw-semibold);
  color: var(--warning);
}

.store-card-novo {
  font-weight: var(--fw-semibold);
  color: var(--ink-2);
}

.selo-destaque {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 3px;
  padding: 2px 8px 2px 6px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--brand);
  font-size: 10.5px;
  font-weight: var(--fw-semibold);
  line-height: 1.4;
  white-space: nowrap;
  vertical-align: middle;
}

.selo-destaque .pdz {
  font-size: 13px;
}

.nome-com-selo {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.nome-com-selo > span:first-child {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.store-card-status {
  font-weight: var(--fw-semibold);
  color: var(--danger);
}

.store-card-status.is-open {
  color: var(--success);
}

.store-card-seta {
  flex-shrink: 0;
  font-size: 14px;
  color: var(--ink-3);
}

.empty-box,
.not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 56px 16px;
  text-align: center;
  color: var(--ink-2);
}

.empty-box {
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.empty-box .pdz,
.not-found .pdz {
  font-size: 40px;
  color: var(--ink-3);
}

.not-found h1 {
  font-size: 26px;
  font-weight: var(--fw-semibold);
  color: var(--ink);
}

.previa-faixa {
  position: relative;
  z-index: 25;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 16px;
  background: var(--warning-soft);
  color: var(--warning);
  font-size: 13px;
  line-height: 1.45;
}

.previa-faixa .pdz {
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 16px;
}

@media (min-width: 768px) {
  .site-papel {
    height: 420px;
  }

  .site-header {
    padding: 14px 0;
  }

  .store-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .store-card {
    border-radius: var(--radius-card);
    transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
  }

  .store-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card), 0 18px 34px -20px rgba(17, 17, 17, 0.35);
  }

  .store-card-cover {
    display: block;
    aspect-ratio: 5 / 2;
    background: var(--brand);
  }

  .store-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .store-card-logo {
    width: 56px;
    height: 56px;
    margin-top: -34px;
    border: 4px solid var(--surface);
    box-shadow: 0 6px 16px -6px rgba(17, 17, 17, 0.3);
  }

  .store-card-body {
    align-items: flex-end;
    padding: 0 18px 18px;
  }

  .store-card-seta {
    display: none;
  }
}

@media (min-width: 1100px) {
  .store-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 300;
  max-width: min(440px, calc(100vw - 32px));
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 13.5px;
  font-weight: var(--fw-semibold);
  line-height: 1.4;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

body:has(.app-nav) .toast {
  bottom: calc(96px + env(safe-area-inset-bottom));
}

.app-nav-espaco {
  height: calc(92px + env(safe-area-inset-bottom));
}

.app-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 40;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  width: 100%;
  max-width: 480px;
  height: calc(68px + env(safe-area-inset-bottom));
  padding: 0 6px env(safe-area-inset-bottom);
  border-radius: 24px 24px 0 0;
  background: var(--surface);
  box-shadow: 0 -8px 28px -12px rgba(17, 17, 17, 0.22), 0 0 0 1px rgba(17, 17, 17, 0.04);
  transform: translateX(-50%);
  transition: transform 0.3s var(--ease);
}

body.sheet-aberto .app-nav {
  z-index: 210;
}

.app-nav-item {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  height: 68px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-3);
  font: inherit;
  font-size: 11px;
  font-weight: var(--fw-semibold);
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.15s var(--ease);
}

.app-nav-item .pdz {
  font-size: 23px;
}

.app-nav-item.is-ativo {
  color: var(--loja-botao, var(--ink));
}

.app-nav-item.is-ativo::after {
  content: "";
  position: absolute;
  bottom: 6px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.app-nav-item:active .pdz {
  transform: scale(0.9);
}

.app-nav-foto {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.app-nav-badge {
  position: absolute;
  top: 9px;
  left: calc(50% + 4px);
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border: 2px solid var(--surface);
  border-radius: var(--radius-pill);
  background: var(--danger);
  color: #fff;
  font-size: 9.5px;
  line-height: 13px;
  text-align: center;
}

.app-nav-sacola {
  position: relative;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin: 0 4px 30px;
  padding: 0;
  border: 5px solid var(--loja-fundo, var(--bg));
  border-radius: 50%;
  background: var(--loja-botao, var(--ink));
  box-shadow: 0 10px 22px -8px rgba(17, 17, 17, 0.55);
  color: var(--loja-texto-botao, #fff);
  font-size: 25px;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s var(--ease);
}

.app-nav-sacola:active {
  transform: scale(0.94);
}

.app-nav-sacola.is-pulso {
  animation: app-nav-pulso 0.7s var(--ease);
}

.app-nav-qtd {
  position: absolute;
  top: -4px;
  right: -6px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border: 2px solid var(--surface);
  border-radius: var(--radius-pill);
  background: var(--loja-primaria, var(--brand));
  color: #111;
  font-size: 11px;
  font-weight: var(--fw-semibold);
  line-height: 18px;
  text-align: center;
}

.app-nav-qtd[hidden] {
  display: none;
}

.app-nav-sacola.is-pulso .app-nav-qtd {
  animation: app-nav-qtd 0.7s var(--ease);
}

.app-nav-mais {
  position: absolute;
  top: -10px;
  left: 50%;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--loja-primaria, var(--brand));
  color: #111;
  font-size: 12px;
  font-weight: var(--fw-semibold);
  line-height: 1.4;
  pointer-events: none;
  animation: app-nav-mais 1s var(--ease) forwards;
}

@keyframes app-nav-mais {
  0% { opacity: 0; transform: translate(-50%, 6px) scale(0.7); }
  25% { opacity: 1; transform: translate(-50%, -6px) scale(1); }
  70% { opacity: 1; transform: translate(-50%, -14px) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -22px) scale(0.9); }
}

@keyframes app-nav-pulso {
  0% { transform: scale(1); box-shadow: 0 10px 22px -8px rgba(17, 17, 17, 0.55), 0 0 0 0 rgba(255, 184, 10, 0.55); }
  35% { transform: scale(1.14); }
  100% { transform: scale(1); box-shadow: 0 10px 22px -8px rgba(17, 17, 17, 0.55), 0 0 0 16px rgba(255, 184, 10, 0); }
}

@keyframes app-nav-qtd {
  0% { transform: scale(0.4); }
  60% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .app-nav,
  .app-nav-sacola,
  .app-nav-sacola.is-pulso,
  .app-nav-sacola.is-pulso .app-nav-qtd {
    transition: none;
    animation: none;
  }
}

.preco-off,
.cardapio-item-preco .preco-off,
.prato-card-preco .preco-off,
.produto-preco .preco-off {
  align-self: center;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  background: var(--success-soft);
  color: var(--success);
  font-size: 11.5px;
  font-style: normal;
  font-weight: var(--fw-semibold);
  line-height: 1.5;
}

.store-card-salao {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: var(--fw-semibold);
  color: var(--ink-2);
}

[data-previa][hidden] {
  display: none;
}
