/* Variáveis de cores */
:root {
  --primary-color: #6366f1;
  --secondary-color: #8b5cf6;
  --success-color: #10b981;
  --danger-color: #ef4444;
  --dark-color: #1f2937;
  --light-color: #f9fafb;
  /* Branco levemente tingido com a cor da loja (--cor-tema vem do script.js).
     Sem cor definida, o fundo cai num cinza claro e o card em branco puro. */
  --tema-fundo: color-mix(in srgb, var(--cor-tema, #888) 18%, #fff);
  --tema-card: color-mix(in srgb, var(--cor-tema, #fff) 10%, #fff);
}

/* Reset e Estilos Globais */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
} 

html {
  height: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #f8f9fa;
  color: #333;
  margin: 0;
  padding: 0;
  background: #fefefe;
  padding-top: 60px;
  /* padding-bottom: 120px;  */
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

/* bg-light do Bootstrap usa !important */
body.bg-light {
  background-color: var(--tema-fundo) !important;
}

/* Navbar Moderna Inspirada iFood */
.navbar-custom {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  z-index: 1000;
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  max-width: 100%;
  margin: 0 auto;
}

.navbar-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.navbar-logo img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-icon-btn {
  background: rgba(0, 0, 0, 0.05);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #333;
  font-size: 18px;
  z-index: 2;
}

.nav-icon-btn:hover {
  background: rgba(0, 0, 0, 0.1);
  transform: scale(1.05);
}

.nav-icon-btn:active {
  transform: scale(0.95);
}

.navbar-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  z-index: 2;
  margin-left: auto;
}

.pwa-instalar-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-color, #6366f1);
  white-space: nowrap;
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ea1d2c;
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
  line-height: 1.2;
}

.store-card{
  /* height: 100px; */
  margin-top: 30px;
}

.store-info {
  padding: 16px 20px 12px;
  background: #fff;
  border-top: 1px solid #f0f0f0;
}

.store-name {
  font-size: 0.8em;
  font-weight: 700;
  margin: 0 0 6px 0;
  color: #2e2e2e;
}

.store-details {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #717171;
  flex-wrap: wrap;
}

.store-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.store-rating i {
  color: #ffa500;
  font-size: 14px;
}

.badge-super {
  background: #ea1d2c;
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.store-delivery {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.store-delivery i {
  color: #28a745;
}

/* Barra de Busca */
.search-bar {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: transparent !important;
}

.search-bar.active {
  max-height: 80px;
  padding: 12px 16px;
}

.search-input-container {
  display: flex;
  align-items: center;
  background: #f5f5f5;
  border-radius: 8px;
  padding: 10px 12px;
  gap: 8px;
}

.search-icon {
  color: #717171;
  font-size: 16px;
}

#search-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 15px;
  color: #2e2e2e;
}

#search-input::placeholder {
  color: #999;
}

.search-close {
  background: none;
  border: none;
  color: #717171;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.search-close:hover {
  color: #2e2e2e;
}

.search-close i {
  font-size: 16px;
}

header {
  background: pink;
  padding: 1rem;
  text-align: center;
}

#filtro-subcategoria {
  background-color: #f8f9fa;
  border-bottom: 1px solid #ddd;
  padding-top: 10px;
  padding-bottom: 10px;
}

#botoes-subcategorias button.active {
  background-color: #198754;
  color: white;
}

#produtos-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  justify-content: start;
  gap: 1rem;
  padding: 1rem;
}

#produtos-container .produtos-vazio {
  grid-column: 1 / -1;
}

#produtos-container .produto {
  background: var(--tema-card);
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0.2rem;
  text-align: left;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 335px;
  cursor: pointer;
  overflow: visible;
  position: relative;
}

#produtos-container .produto .produto-rodape {
  margin-top: auto;
  display: flex;
  flex-direction: column;
}

#produtos-container .produto .btn-favorito {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #eee;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}

#produtos-container .produto .btn-favorito i {
  color: #e11d48;
}

#produtos-container .produto img {
  object-fit: cover;
  aspect-ratio: 4/3;
  height: 180px;
  width: 100%;
  border-radius: 6px;
  background: #f6f6f6;
  flex-shrink: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  transform-origin: center center;
}

#produtos-container .produto.produto-imagem-ativa img {
  transform: scale(1.2);
}

/* Destaques (estilo stories) */
.destaques-container {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px;
  scroll-snap-type: x mandatory;
}

.destaque-item {
  width: 64px;
  flex: 0 0 auto;
  text-align: center;
  cursor: pointer;
  scroll-snap-align: start;
}

.destaque-item img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e5e7eb;
}

.destaque-item.destaque-favoritos img {
  border-color: #e11d48;
}

.destaque-item span {
  display: block;
  font-size: 0.65rem;
  margin-top: 4px;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
}

.produto-destaque-target {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Overlay para ampliar imagem do produto */
.produto-imagem-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.produto-imagem-overlay.ativo {
  opacity: 1;
  pointer-events: auto;
}

.produto-imagem-overlay img {
  max-width: 100vw;
  max-height: 100vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.produto-imagem-overlay .fechar-overlay {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 24px;
  line-height: 40px;
  text-align: center;
  cursor: pointer;
}

/* Stories por categoria */
.stories-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.stories-overlay.ativo {
  opacity: 1;
  pointer-events: auto;
}

.stories-content {
  max-width: 92vw;
  max-height: 80vh;
  text-align: center;
  position: relative;
}

.stories-image-wrap {
  position: relative;
  display: inline-block;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.stories-image-wrap img {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.stories-progress {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  overflow: hidden;
}

.stories-progress-fill {
  position: absolute;
  inset: 0;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left center;
}

.stories-progress-fill.ativo {
  animation: stories-progress-fill linear forwards;
}

.stories-progress-fill.pausado {
  animation-play-state: paused;
}

@keyframes stories-progress-fill {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.stories-content img {
  max-width: 92vw;
  max-height: 70vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
}

.stories-caption {
  color: #fff;
  margin-top: 10px;
  font-size: 0.95rem;
}

.stories-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  font-size: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 3;
}

.stories-nav.prev {
  left: 16px;
}

.stories-nav.next {
  right: 16px;
}

.stories-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 24px;
  line-height: 40px;
  text-align: center;
  cursor: pointer;
  z-index: 3;
}
 
#produtos-container .produto h5 {
  margin-top: 0.5rem;
  /* min-height: 3rem; */
  display: flex;
  align-items: center;
  justify-content: center;
}

#produtos-container .produto p {
  min-height: 3rem;
  margin-bottom: 0.5rem;
  flex-grow: 1;
  font-size: 0.8rem;
}

#produtos-container .descricao-produto,
#produtos-container .descricao-produto-grupo {
  font-size: 0.75rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}

#produtos-container .descricao-lista {
  margin: 0;
  padding-left: 1.1rem;
}

#produtos-container .descricao-lista li {
  margin-bottom: 0.1rem;
}

#produtos-container .produto strong {
  display: block;
  margin-bottom: 0.5rem;
  text-align: center;
}

#produtos-container .produto button {
  margin-top: auto !important;
}

.estoque{
  font-size: 0.6rem;
  padding: 0 !important;
  margin: 0 !important;
}

.campos-custom-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: flex-start;
  margin: 6px 0 2px;
  padding: 0 4px;
}

.campo-custom-item {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #f0f0f0;
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 0.72rem;
}

.campo-custom-nome {
  color: #999;
  text-transform: capitalize;
}

.campo-custom-valor {
  color: #333;
  font-weight: 600;
}

#modalQuantidade .modal-content{
  z-index: 1100;
}

/* admin */

.admin-container {
  max-width: 600px;
  margin: 2rem auto;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.form-produto {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-produto input,
.form-produto textarea {
  padding: 0.8rem;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.form-produto button {
  background: #ff69b4;
  border: none;
  padding: 0.8rem;
  color: white;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
}

.form-produto button:hover {
  background: #e7579f;
}

header h1 {
  margin: 0.5rem 0;
}

header a {
  display: block;
  text-align: center;
  color: #333;
  margin-bottom: 1rem;
  text-decoration: none;
}

#badge-carrinho {
  font-size: 0.65rem;
  padding: 0.25rem 0.5rem;
}

.flying-img {
  transition: all 0.7s ease-in-out;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.2);
}

footer a:hover {
  color: #f8d7da;
  text-decoration: none;
}

#info-subcategoria-container {
  position: sticky;
  top: 56px; /* altura da navbar */
  z-index: 999;
}

.main-content {
  flex: 1 0 auto;
  padding-bottom: 2rem;
  /* z-index: 100; */
  background-color: var(--tema-fundo);
}

footer.footer {
  flex-shrink: 0;
  margin-top: auto;
  /* background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); */
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

footer.footer h5,
footer.footer h6 {
  letter-spacing: 0.5px;
}

footer.footer .text-white-50 {
  opacity: 0.85;
}

footer.footer #redes-sociais div a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 0.7rem;
  text-align: center;
}

footer.footer #redes-sociais div a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

/* Gradiente para Hero Section */
.bg-gradient-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

/* Navbar */
.navbar {
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.95) !important;
  /* height: 140px; */
}

/* Cards de Produtos */
.card {
  transition: all 0.3s ease;
  border-radius: 12px !important;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

.card-img-top {
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card:hover .card-img-top {
  transform: scale(1.05);
}

/* Botões */
.btn {
  transition: all 0.3s ease;
  font-weight: 500;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

.btn-outline-primary {
  border-width: 2px;
}

/* Dropdown do Carrinho */
.dropdown-menu {
  border-radius: 12px !important;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Botões de Categoria */
#botoes-subcategorias {
  overflow-x: auto;
  flex-wrap: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0.5rem 0.75rem;
  max-width: 100vw;
  width: 100%;
}

#botoes-subcategorias .btn {
  border-radius: 10px;
  padding: 0.2rem 1rem;
  font-size: 0.9rem;
  border: 1px solid #e5e7eb;
  background: white;
  color: #6b7280;
  white-space: nowrap;
  flex-shrink: 0;
  text-transform: uppercase;
}

#botoes-subcategorias .btn.active,
#botoes-subcategorias .btn:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* Modal */
.modal-content {
  border-radius: 16px !important;
}

/* Botão Voltar ao Topo */
#btn-topo {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Responsividade */
@media (max-width: 768px) {
  .display-6 {
    font-size: 1.5rem;
  }
  
  #nomeLoja {
    font-size: 14px !important;
  }
}

/* Loading Animation */
.spinner-border-sm {
  width: 1rem;
  height: 1rem;
}

/* Footer Minimalista */
.footer {
  margin-top: auto;
  /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
  position: sticky;
  bottom: 0;
  z-index: 999;
}

.footer .btn-light {
  border-radius: 12px;
  font-size: 1.1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.footer .btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.footer .badge {
  font-weight: 600;
  border-radius: 8px;
}

.credito-dc a {
  transition: color 0.25s ease, opacity 0.25s ease;
}

.credito-dc a:hover {
  color: #fff !important;
  opacity: 1;
}

.btn-finalizar {
  border-radius: 12px;
  font-size: 1.1rem;
  background: #F58E2D;
  color: #fff;
  border: var(--primary-color, #198754) 1px solid;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.btn-finalizar:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  color: #fff;
}

.hero {
  position: relative;
  height: 63vh;
}

.hero--sem-foto {
  height: auto;
  padding: 10px;
}

.hero--sem-foto .hero-img {
  display: none;
}

.hero--sem-foto .store-card {
  position: static;
}

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

.store-card {
  position: absolute;
  bottom: 1px;
  left: 3px;
  right: 3px;
  background: var(--tema-card);
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}

.store-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin-top: -40px;
  background: #fff;
  padding: 4px;
}

.store-name {
  margin-top: 8px;
  font-weight: 700;
}

.store-sub {
  font-size: 12px;
  color: #6c757d;
  margin-bottom: 4px;
}

.store-meta {
  font-size: 14px;
  margin-bottom: 4px;
}
.store-meta div {
  font-size: 10px;
}

.store-endereco {
  display: block;
  font-size: 13px;
  color: #6c757d;
  margin-top: 4px;
}

.store-meta .badge {
  background: #ff0000;
  color: #fff;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 12px;
}

.store-delivery {
  font-size: 14px;
}

.aberto-fechado{
  border-radius: 8px;
  margin-top: -35px;
  margin-left: auto;
  width: fit-content;
  max-width: 100%;
  text-align: right;
  font-size: 0.6em;
}

@media (max-width: 480px) {
  .aberto-fechado {
    margin-top: 4px;
    margin-left: 0;
  }
}

/* Toast fix: garante visibilidade acima de outros elementos */
.toast {
  z-index: 99999 !important;
  display: block !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: max-content;
  min-width: 220px;
  max-width: calc(100vw - 32px);
  text-align: center;
}

.toast .toast-body {
  color: #fff;
}

/* Variações de produto */
.variacoes-tamanhos {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: 8px;
}

.btn-variacao-tamanho {
  min-width: 42px;
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 700;
  border: 2px solid #198754;
  border-radius: 8px;
  background: #fff;
  color: #198754;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.btn-variacao-tamanho.active {
  background: #198754;
  color: #fff !important;
}

.btn-variacao-tamanho.indisponivel {
  opacity: 0.4;
  cursor: not-allowed;
  text-decoration: line-through;
}

.variacoes-cores {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 10px;
  margin-bottom: 4px;
}

.btn-variacao-cor {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px #ccc;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-variacao-cor.active {
  box-shadow: 0 0 0 2px #333;
  transform: scale(1.25);
}

.btn-variacao-cor:hover {
  transform: scale(1.15);
}

.img-produto-grupo {
  transition: opacity 0.15s ease;
}

.seletores-grupo {
  margin-top: 4px;
}

.indisponivel {
  display: none !important;
} 

/* ===== Layout compacto (cards em 2 colunas, capa menor, cor da loja) ===== */

/* Capa menor: produtos aparecem já na primeira tela */
.hero {
  height: 32vh;
}

/* Loja sem capa: volta à altura automática (o script.js força display:flex no .hero-img) */
.hero.hero--sem-foto {
  height: auto;
}

.hero.hero--sem-foto .hero-img {
  display: none !important;
}

/* Grade: 2 colunas no celular, mais colunas em telas maiores */
#produtos-container {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
  margin: 0;
}

@media (min-width: 600px) {
  #produtos-container {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 14px;
    padding: 14px;
  }
}

/* Card compacto */
#produtos-container .produto {
  min-height: 0;
  padding: 0;
  border: none;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  width: auto;
}

#produtos-container .produto img {
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 0;
}

#produtos-container .produto h5 {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.25;
  justify-content: flex-start;
  text-align: left;
  margin: 8px 10px 2px !important;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

#produtos-container .descricao-produto,
#produtos-container .descricao-produto-grupo {
  margin: 0 10px 4px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

@media (min-width: 600px) {
  #produtos-container .descricao-produto,
  #produtos-container .descricao-produto-grupo {
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }
}

#produtos-container .campos-custom-wrapper,
#produtos-container .seletores-grupo,
#produtos-container .estoque,
#produtos-container .estoque-grupo {
  margin-left: 10px !important;
  margin-right: 10px !important;
}

/* Rodapé do card: preço à esquerda, "+" à direita */
#produtos-container .produto .produto-rodape {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 4px 10px 10px;
}

#produtos-container .produto strong {
  margin: 0;
  text-align: left;
  font-size: 0.95rem;
}

#produtos-container .produto .btn-adicionar {
  margin: 0 !important;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border: none;
  border-radius: 50%;
  background: var(--cor-tema, #198754);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

#produtos-container .produto .btn-adicionar:active {
  transform: scale(0.92);
}

#produtos-container .produto .btn-favorito {
  width: 30px;
  height: 30px;
  top: 6px;
  right: 6px;
}

/* Cor da loja em todos os destaques (antes: roxo, verde e laranja fixos) */
#botoes-subcategorias .btn.active,
#botoes-subcategorias .btn:hover {
  background: var(--cor-tema, var(--primary-color));
  border-color: var(--cor-tema, var(--primary-color));
}

.btn-variacao-tamanho {
  border-color: var(--cor-tema, #198754);
  color: var(--cor-tema, #198754);
}

.btn-variacao-tamanho.active {
  background: var(--cor-tema, #198754);
}

.btn-finalizar {
  background: var(--cor-tema, #F58E2D);
  border-color: var(--cor-tema, #F58E2D);
}

#produtos-container .produto .btn-ver-mais {
  align-self: flex-start;
  margin: -2px 10px 4px !important;
  padding: 0;
  border: none;
  background: none;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--cor-tema, #0d6efd);
}

/* Modal "ver mais": vidro fosco tingido com a cor da loja */
.detalhe-vidro {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: color-mix(in srgb, var(--cor-tema, #6366f1) 10%, rgba(255, 255, 255, 0.35));
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.detalhe-vidro.ativo {
  opacity: 1;
  visibility: visible;
}

.detalhe-vidro-card {
  position: relative;
  width: min(440px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  padding: 14px;
  border-radius: 20px;
  background: color-mix(in srgb, var(--cor-tema, #6366f1) 6%, rgba(255, 255, 255, 0.82));
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.2s ease;
}

.detalhe-vidro.ativo .detalhe-vidro-card {
  transform: none;
}

.detalhe-vidro-fechar {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  font-size: 22px;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  z-index: 1;
}

.detalhe-vidro-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 14px;
  background: #f6f6f6;
}

.detalhe-vidro-nome {
  margin: 12px 0 6px;
  font-size: 1.05rem;
  font-weight: 700;
}

.detalhe-vidro-descricao {
  font-size: 0.88rem;
  line-height: 1.5;
  color: #4b5563;
  white-space: pre-line;
}

.detalhe-vidro-descricao .descricao-lista {
  white-space: normal;
  padding-left: 1.1rem;
  margin: 0;
}

.detalhe-vidro-rodape {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.detalhe-vidro-preco {
  font-size: 1.1rem;
}

.detalhe-vidro-adicionar {
  border: none;
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 600;
  color: #fff;
  background: var(--cor-tema, #198754);
}

body.detalhe-vidro-aberto {
  overflow: hidden;
}

/* Faixa do modo prévia (?previa=...) */
.faixa-previa {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1100;
  padding: 10px 14px;
  background: #111827;
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}

.faixa-previa b {
  color: #5eead4;
}

body.com-faixa-previa .footer {
  bottom: 62px;
}

/* ===== Cabeçalho da loja compacto ===== */

/* Logo à esquerda, informações à direita */
.store-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  column-gap: 12px;
  row-gap: 2px;
  align-items: center;
}

.store-card > * {
  grid-column: 2;
}

.store-card .store-logo {
  grid-column: 1;
  grid-row: 1 / span 3;
  width: 64px;
  height: 64px;
  margin: 0;
  padding: 0;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.store-card .store-name {
  margin: 0;
  font-size: 1.05rem;
}

#nomeLoja {
  font-size: 1.05rem !important;
}

.store-card .store-sub {
  margin: 0;
  line-height: 1.3;
}

/* Status: selo pequeno + horário resumido */
.status-loja {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin-top: 4px;
}

.status-loja .aberto-fechado {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-loja .aberto-fechado::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.status-loja .aberto-fechado.aberta {
  background: #dcfce7;
  color: #166534;
}

.status-loja .aberto-fechado.fechada {
  background: #fee2e2;
  color: #b91c1c;
}

.status-loja .horario-resumo {
  font-size: 0.75rem;
  color: #6b7280;
}

/* Redes sociais: botões lado a lado ocupando a largura do card */
.store-card #redes-sociais,
.store-card .store-endereco {
  grid-column: 1 / -1;
}

.store-card #redes-sociais {
  gap: 8px;
  margin: 10px 0 0;
}

.store-card #redes-sociais:empty {
  display: none !important;
}

.btn-social {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  max-width: 200px;
  padding: 7px 12px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #1f2937;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.btn-social i {
  font-size: 1.05rem;
}

.btn-social-instagram i {
  color: #e1306c;
}

.btn-social-whatsapp i {
  color: #25d366;
}

.store-card .store-endereco {
  margin-top: 8px;
  font-size: 0.8rem;
  color: #6b7280;
}

/* Categorias: fixas embaixo do topo ao rolar */
.barra-categorias {
  position: sticky;
  top: 64px;
  z-index: 20;
  background: var(--tema-fundo);
  overflow-x: auto;
  scrollbar-width: none;
  box-shadow: 0 6px 8px -8px rgba(0, 0, 0, 0.15);
}

.barra-categorias::-webkit-scrollbar {
  display: none;
}

#botoes-subcategorias .btn {
  font-size: 0.78rem;
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
}

/* Computador: redes sociais à direita do card, na mesma linha do nome */
@media (min-width: 768px) {
  .store-card {
    grid-template-columns: 72px 1fr auto;
    column-gap: 16px;
    padding: 14px 18px;
  }

  .store-card .store-logo {
    width: 72px;
    height: 72px;
  }

  .store-card #redes-sociais {
    grid-column: 3;
    grid-row: 1 / span 3;
    margin: 0;
    align-self: center;
  }

  .btn-social {
    flex: 0 0 auto;
    min-width: 140px;
  }

  .store-card .store-endereco {
    grid-column: 2 / -1;
    margin-top: 2px;
  }
}

/* Com capa: estilo perfil — capa inteira em faixa, card embaixo e logo sobreposta à borda */
.hero:not(.hero--sem-foto) {
  height: auto;
  background: var(--tema-card);
}

.hero:not(.hero--sem-foto) .hero-img {
  height: 160px;
}

.hero:not(.hero--sem-foto) .store-card {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  margin-top: 0;
  border-radius: 0;
  box-shadow: none;
  padding-top: 10px;
  border-bottom: 1px solid #f0f0f0;
}

.hero:not(.hero--sem-foto) .store-card .store-logo {
  align-self: start;
  margin-top: -42px;
  border: 4px solid #fff;
  box-sizing: content-box;
  background: #fff;
}

@media (min-width: 768px) {
  .hero:not(.hero--sem-foto) .hero-img {
    height: 240px;
  }

  .hero:not(.hero--sem-foto) .store-card {
    padding-left: 24px;
    padding-right: 24px;
  }

  .hero:not(.hero--sem-foto) .store-card .store-logo {
    margin-top: -52px;
  }
}

/* ===== Barra do carrinho ===== */
.footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  margin: 0;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: transparent !important;
  transform: translateY(120%);
  transition: transform 0.3s ease;
  pointer-events: none;
}

body.carrinho-com-itens .footer {
  transform: none;
  pointer-events: auto;
}

body.carrinho-com-itens {
  padding-bottom: 84px;
}

.btn-carrinho-footer {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 54px;
  padding: 0 16px;
  border: none;
  border-radius: 14px;
  background: var(--cor-tema, #198754);
  color: var(--cor-tema-texto, #fff);
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.btn-carrinho-footer-qtd {
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  background: color-mix(in srgb, var(--cor-tema-texto, #fff) 22%, transparent);
}

.btn-carrinho-footer-texto {
  flex: 1;
  text-align: left;
}

.btn-carrinho-footer.pulsar {
  animation: pulsar-carrinho 0.35s ease;
}

@keyframes pulsar-carrinho {
  50% { transform: scale(1.04); }
}

/* Crédito no fim da página, fora da barra fixa: selo pequeno no centro */
.credito-dc {
  width: fit-content;
  max-width: calc(100% - 24px);
  margin: 8px auto 24px;
  padding: 7px 16px;
  border: 1px solid #ececec;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  text-align: center;
  font-size: 0.75rem;
  color: #9ca3af;
}

.credito-dc a {
  color: #4b5563;
  font-weight: 600;
  text-decoration: none;
}

.credito-dc a:hover {
  color: #111 !important;
}

body.layout-cardapio .credito-dc {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(17, 17, 17, 0.6);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: none;
}

body.layout-cardapio .credito-dc a {
  color: #e5e7eb;
}

body.layout-cardapio .credito-dc a:hover {
  color: var(--cor-cardapio-destaque, #fff) !important;
}

/* Texto legível sobre a cor da loja: preto em cores claras, branco nas escuras (--cor-tema-texto vem do script.js) */
#btn-busca,
#produtos-container .produto .btn-adicionar,
#botoes-subcategorias .btn.active,
#botoes-subcategorias .btn:hover,
.btn-variacao-tamanho.active,
.btn-finalizar,
.detalhe-vidro-adicionar {
  color: var(--cor-tema-texto, #fff) !important;
}

/* Selo das fotos de banco de imagens usadas nas prévias */
#produtos-container .produto .selo-ilustrativa {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.65);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

#produtos-container .produto .credito-foto {
  display: block;
  margin: 4px 10px 0;
  font-size: 0.62rem;
  line-height: 1.3;
  color: #9ca3af;
}

#produtos-container .produto .credito-foto a {
  color: #6b7280;
  text-decoration: underline;
}

/* Toque no celular deixa :hover preso no último botão; só a categoria ativa fica destacada */
@media (hover: none) {
  #botoes-subcategorias .btn:not(.active):hover {
    background: white;
    border-color: #e5e7eb;
    color: #6b7280 !important;
  }
}

/* Promoções (js/promocoes.js) */
.selo-promocao {
  margin: 0 10px 4px;
  color: var(--cor-tema, var(--primary-color));
  font-size: 0.5rem;
  font-weight: 500;
  line-height: 1.35;
}

.selo-promocao i {
  margin-right: 2px;
  font-size: 0.5rem;
}

.preco-antigo {
  display: block;
  color: #9ca3af;
  font-size: 0.75rem;
  font-weight: 400;
}

.preco-antigo s {
  color: #dc2626;
}

#produtos-container .produto .preco-promocional {
  color: var(--cor-tema, #198754);
}

/* Carrossel de ofertas (estilo iFood) acima da lista de produtos */
.ofertas-container:empty {
  display: none;
}

.ofertas-container {
  padding: 12px 10px 4px;
}

.ofertas-cabecalho {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.ofertas-cabecalho h6 {
  margin: 0;
  font-weight: 700;
  font-size: 1rem;
}

.ofertas-cabecalho h6 i {
  color: #dc2626;
  margin-right: 4px;
}

.ofertas-ver-todas {
  border: none;
  background: none;
  padding: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cor-tema, #198754);
}

.ofertas-lista {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
  scrollbar-width: none;
}

.ofertas-lista::-webkit-scrollbar {
  display: none;
}

.oferta-card {
  flex: 0 0 140px;
  scroll-snap-align: start;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  cursor: pointer;
}

.oferta-imagem {
  position: relative;
}

.oferta-imagem img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
}

.oferta-selo {
  position: absolute;
  top: 6px;
  left: 6px;
  max-width: calc(100% - 12px);
  background: #dc2626;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.oferta-nome {
  padding: 6px 8px 0;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.oferta-precos {
  padding: 2px 8px 8px;
  display: flex;
  flex-direction: column;
}

.oferta-precos s {
  color: #dc2626;
  font-size: 0.72rem;
}

.oferta-precos strong {
  color: var(--cor-tema, #198754);
  font-size: 0.95rem;
}

/* Card que o clique na oferta levou até */
#produtos-container .produto.produto-encontrado {
  animation: produto-encontrado 1.8s ease-out;
}

@keyframes produto-encontrado {
  0%, 60% {
    box-shadow: 0 0 0 3px var(--cor-tema, #198754);
  }
  100% {
    box-shadow: 0 0 0 3px transparent;
  }
}

.btn-promocoes i {
  margin-right: 2px;
}

@media (min-width: 600px) {
  .ofertas-container {
    padding: 14px 14px 4px;
  }

  .oferta-card {
    flex-basis: 170px;
  }

  .oferta-imagem img {
    height: 130px;
  }
}

/* ===== Layout cardápio (Configuração da Loja → Layout do Site) =====
   Lista por categoria, sem foto em cada produto, sobre a foto de fundo
   da loja escurecida. Classe colocada no body por js/cardapio.js. */

/* Foto inteira no centro (contain), sem cortar nem ampliar até a largura da
   tela; o resto da tela é a mesma foto desfocada (::before) */
body.layout-cardapio::before,
body.layout-cardapio::after {
  content: "";
  position: fixed;
  z-index: -1;
}

body.layout-cardapio::before {
  inset: -60px;
  background: var(--fundo-cardapio, none) center / cover no-repeat, #111;
  filter: blur(40px) brightness(0.8);
}

body.layout-cardapio::after {
  inset: 0;
  background:
    linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.68)),
    var(--fundo-cardapio, none) center / contain no-repeat;
}

body.layout-cardapio .main-content {
  background: transparent;
}

/* Espaço enxuto entre topo, card da loja, categorias e lista */
body.layout-cardapio .hero--sem-foto {
  padding: 8px;
}

body.layout-cardapio .store-card {
  margin-top: 0;
}

body.layout-cardapio .destaques-container:empty,
body.layout-cardapio .ofertas-container:empty {
  display: none;
}

/* Recarregar: o app instalado (PWA) não tem o botão de recarregar do navegador */
#btn-recarregar {
  display: none;
}

body.layout-cardapio #btn-recarregar {
  display: flex;
}

#btn-recarregar.girando i {
  animation: girar-recarregar 0.8s linear infinite;
}

@keyframes girar-recarregar {
  to { transform: rotate(360deg); }
}

/* Vidro estilo iOS: quase transparente (a foto aparece desfocada através dele),
   reflexo branco em diagonal, leve tom da cor da loja e bordas que pegam luz.
   O fundo atrás já é escurecido, então o texto branco continua legível */
body.layout-cardapio {
  --vidro-fundo:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.06) 40%, rgba(255, 255, 255, 0.02) 100%),
    color-mix(in srgb, var(--cor-tema, #fff) 14%, transparent);
  --vidro-borda: rgba(255, 255, 255, 0.3);
  --vidro-filtro: blur(24px) saturate(180%) brightness(1.2);
  --vidro-brilho:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1),
    inset 0 0 20px rgba(255, 255, 255, 0.05);
}

/* Vidro mais claro: sombra leve segura a leitura do texto branco e do destaque */
body.layout-cardapio .store-card .store-name,
body.layout-cardapio .store-card .store-endereco,
body.layout-cardapio .status-loja .horario-resumo,
body.layout-cardapio .cardapio-titulo,
body.layout-cardapio .cardapio-texto,
body.layout-cardapio .cardapio-preco strong {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

/* Fica fixa no topo ao rolar: precisa de fundo para a lista não passar por baixo dos botões */
body.layout-cardapio .barra-categorias {
  background: var(--vidro-fundo);
  -webkit-backdrop-filter: var(--vidro-filtro);
  backdrop-filter: var(--vidro-filtro);
  border-bottom: 1px solid var(--vidro-borda);
  box-shadow: var(--vidro-brilho);
  padding: 8px 0;
}

/* --cor-cardapio-destaque é a cor da loja quando ela aparece bem no escuro,
   senão branco (js/cardapio.js) */
body.layout-cardapio .store-card {
  background: var(--vidro-fundo);
  -webkit-backdrop-filter: var(--vidro-filtro);
  backdrop-filter: var(--vidro-filtro);
  border: 1px solid var(--vidro-borda);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), var(--vidro-brilho);
}

body.layout-cardapio .store-name {
  color: #fff;
}

body.layout-cardapio .store-sub,
body.layout-cardapio .store-endereco,
body.layout-cardapio .status-loja .horario-resumo {
  color: #d1d5db;
}

body.layout-cardapio .btn-social {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

body.layout-cardapio .status-loja .aberto-fechado.aberta {
  background: rgba(34, 197, 94, 0.18);
  color: #86efac;
}

body.layout-cardapio .status-loja .aberto-fechado.fechada {
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
}

body.layout-cardapio #botoes-subcategorias .btn {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.3);
  color: #e5e7eb;
}

body.layout-cardapio #botoes-subcategorias .btn.active,
body.layout-cardapio #botoes-subcategorias .btn:hover {
  background: var(--cor-cardapio-destaque, #fff);
  border-color: var(--cor-cardapio-destaque, #fff);
  color: #111 !important;
}

body.layout-cardapio .destaque-item span,
body.layout-cardapio #produtos-container .produtos-vazio,
body.layout-cardapio #produtos-container .produtos-vazio .text-muted {
  color: #e5e7eb !important;
}

body.layout-cardapio #produtos-container {
  display: block;
  padding: 8px;
}

/* Tela larga: itens em colunas, para o preço não ficar longe do nome */
.cardapio-secao {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr));
  column-gap: 40px;
  background: var(--vidro-fundo, rgba(0, 0, 0, 0.35));
  -webkit-backdrop-filter: var(--vidro-filtro, none);
  backdrop-filter: var(--vidro-filtro, none);
  border: 1px solid var(--vidro-borda, transparent);
  box-shadow: var(--vidro-brilho, none);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 10px;
}

.cardapio-titulo {
  grid-column: 1 / -1;
  color: var(--cor-cardapio-destaque, #fff);
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 6px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.35);
}

.cardapio-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.cardapio-texto {
  flex: 1;
  min-width: 0;
}

.cardapio-nome {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 2px;
}

.cardapio-descricao {
  color: #d1d5db;
  font-size: 0.8rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}

.cardapio-descricao .descricao-lista {
  margin: 0;
  padding-left: 1.1rem;
}

.cardapio-item .btn-ver-mais {
  padding: 0;
  border: none;
  background: none;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cor-cardapio-destaque, #fff);
  text-decoration: underline;
}

.cardapio-texto .selo-promocao {
  margin: 4px 0 0;
  font-size: 0.75rem;
  color: #fde68a;
}

/* Encomendas (js/encomenda.js) */
.selo-encomenda {
  margin: 0 10px 4px;
  color: #7e22ce;
  font-size: 0.6rem;
  font-weight: 600;
}

.selo-encomenda i {
  margin-right: 2px;
}

.cardapio-texto .selo-encomenda {
  margin: 4px 0 0;
  font-size: 0.75rem;
  color: #f5d0fe;
}

.cardapio-preco {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-align: right;
}

.cardapio-preco .preco-antigo {
  color: #9ca3af;
}

.cardapio-preco strong {
  color: var(--cor-cardapio-destaque, #fff);
  font-size: 1.05rem;
  font-weight: 800;
  white-space: nowrap;
}

.cardapio-adicionar {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: var(--cor-tema, #198754);
  color: var(--cor-tema-texto, #fff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.cardapio-item-grupo {
  flex-direction: column;
  align-items: stretch;
  cursor: default;
}

.cardapio-variacoes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cardapio-variacao {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.82rem;
}

.cardapio-variacao strong {
  font-weight: 800;
}

.cardapio-variacao i {
  font-size: 0.7rem;
  opacity: 0.8;
}

.cardapio-variacao:active,
.cardapio-adicionar:active {
  transform: scale(0.95);
}

/* Montador de pizza (js/pizza.js) */
.montador-pizza {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1060;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.montador-pizza.ativo {
  display: flex;
}

body.montador-pizza-aberto {
  overflow: hidden;
}

.montador-pizza-card {
  background: #fff;
  border-radius: 14px;
  width: min(480px, 100%);
  max-height: 90vh;
  max-height: 90dvh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.montador-pizza-cabecalho {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid #f0f0f0;
}

.montador-pizza-fechar {
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: #555;
  cursor: pointer;
}

.montador-pizza-corpo {
  padding: 14px 16px;
  overflow-y: auto;
}

.montador-pizza-titulo {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.montador-pizza-busca {
  margin-bottom: 10px;
}

.montador-pizza-opcao {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  text-align: left;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
  cursor: pointer;
}

.montador-pizza-opcao small {
  display: block;
  color: #6b7280;
  font-size: 0.78rem;
}

.montador-pizza-opcao.selecionada {
  border-color: var(--cor-tema, #0d6efd);
  box-shadow: 0 0 0 1px var(--cor-tema, #0d6efd);
}

.montador-pizza-opcao.selecionada .fa-circle-check {
  color: var(--cor-tema, #0d6efd);
}

.montador-pizza-opcao:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.montador-pizza-preco {
  font-weight: 700;
  white-space: nowrap;
}

.montador-pizza-rodape {
  border-top: 1px solid #f0f0f0;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.montador-pizza-total {
  font-weight: 700;
}

.montador-pizza-botoes {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.montador-pizza-avancar {
  background: var(--cor-tema, #198754);
  color: var(--cor-tema-texto, #fff);
}

.cardapio-pizza-precos {
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.85);
}

/* Tutorial de pedido (Shorts vertical 9:16): limita a largura pela altura da tela */
.tutorial-dialog {
  max-width: min(360px, calc((100dvh - 170px) * 9 / 16));
  margin-left: auto;
  margin-right: auto;
}

.tutorial-video {
  aspect-ratio: 9 / 16;
  background: #000;
}

.tutorial-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.tutorial-pular {
  background: var(--cor-tema, var(--primary-color));
  color: var(--cor-tema-texto, #fff);
  font-weight: 600;
}
