/* ===================================================
   IMPÉRIO LANCHES — Design System v2.0
   Dark Food Delivery UI / Modern Premium Look
   =================================================== */

/* --- Google Fonts & Base Reset --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Bebas+Neue&display=swap');

:root {
  --bg-primary:    #0f0f0f;
  --bg-secondary:  #1a1a1a;
  --bg-card:       #222222;
  --bg-card-hover: #2a2a2a;
  --accent:        #FF6B1A;
  --accent-light:  #FF8C42;
  --accent-gold:   #FFB347;
  --success:       #22c55e;
  --danger:        #ef4444;
  --text-primary:  #f5f5f5;
  --text-secondary:#a8a8a8;
  --text-muted:    #666666;
  --border:        #2e2e2e;
  --border-accent: #FF6B1A44;
  --shadow-card:   0 4px 24px rgba(0,0,0,0.5);
  --shadow-hover:  0 8px 40px rgba(255,107,26,0.2);
  --radius-sm:     8px;
  --radius-md:     14px;
  --radius-lg:     20px;
  --radius-pill:   999px;
  --transition:    all 0.25s cubic-bezier(0.4,0,0.2,1);
  --header-h:      68px;
  --footer-h:      64px;
  --font-main:     'Poppins', sans-serif;
  --font-display:  'Bebas Neue', cursive;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary) !important;
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ===================================================
   HEADER — Sticky Glassmorphism
   =================================================== */
.header-imperio {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15,15,15,0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  padding: 0;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  gap: 12px;
}

/* Logo */
.logo-imperio {
  height: 46px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255,107,26,0.3));
}

/* Status da Loja Pill */
.loja-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: var(--transition);
  white-space: nowrap;
}
.loja-status-pill.aberta {
  background: rgba(34,197,94,0.15);
  color: var(--success);
  border: 1px solid rgba(34,197,94,0.3);
}
.loja-status-pill.fechada {
  background: rgba(239,68,68,0.15);
  color: var(--danger);
  border: 1px solid rgba(239,68,68,0.3);
}
.loja-status-pill .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse-dot 1.8s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

/* User Icon no header */
.header-user-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-secondary);
  font-size: 1rem;
}
.header-user-btn:hover, .header-user-btn.autenticado {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(255,107,26,0.1);
}

/* Grupo de ações (carrinho + usuário) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Botão Carrinho no header */
.header-cart-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-secondary);
  font-size: 1rem;
  position: relative;
  text-decoration: none;
}
.header-cart-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(255,107,26,0.1);
}

/* Badge de quantidade no carrinho */
.header-cart-badge {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--accent);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 700;
  min-width: 16px; height: 16px;
  border-radius: var(--radius-pill);
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px;
  border: 2px solid var(--bg-primary);
  animation: pop-in 0.3s cubic-bezier(0.34,1.56,0.64,1) both;
}

/* Barra de Busca */
.busca-wrapper {
  padding: 0 16px 12px;
  position: relative;
}
.busca-wrapper .busca-icon {
  position: absolute;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
  pointer-events: none;
}
#search {
  width: 100%;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 10px 16px 10px 40px;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.88rem;
  transition: var(--transition);
  outline: none;
}
#search::placeholder { color: var(--text-muted); }
#search:focus {
  border-color: var(--accent);
  background: var(--bg-secondary);
  box-shadow: 0 0 0 3px rgba(255,107,26,0.12);
}

/* ===================================================
   NAVEGAÇÃO DE CATEGORIAS — Scroll Horizontal Pills
   =================================================== */
.categorias-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 990;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 10px 12px;
  display: flex;
  gap: 8px;
}
.categorias-nav::-webkit-scrollbar { display: none; }

.cat-pill {
  display: inline-block;
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.cat-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(255,107,26,0.08);
}
.cat-pill.ativo {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 12px rgba(255,107,26,0.35);
}

/* ===================================================
   BANNER PROMOÇÃO — Hero Card "Especial do Dia"
   =================================================== */
.promo-hero {
  margin: 16px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #1e0d00 0%, #2d1500 50%, #1a0a00 100%);
  border: 1px solid rgba(255,107,26,0.25);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-card);
  animation: fadeInUp 0.5s ease both;
}
.promo-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 90% 50%, rgba(255,107,26,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 10px;
}

.promo-inner {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 20px 16px;
}
.promo-img-wrap {
  flex: 0 0 130px;
  height: 130px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid rgba(255,107,26,0.3);
  background: var(--bg-card);
}
.promo-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.promo-img-wrap:hover img { transform: scale(1.06); }

.promo-info {
  flex: 1;
  padding-left: 16px;
}
.promo-nome {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.3;
}
.promo-ingredientes {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.promo-precos {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}
.promo-de {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: line-through;
}
.promo-por {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--accent-gold);
  letter-spacing: 0.02em;
}
.btn-pedir-promo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff;
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(255,107,26,0.4);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.btn-pedir-promo:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255,107,26,0.55);
  background: linear-gradient(135deg, var(--accent-light), var(--accent-gold));
}

/* ===================================================
   SEÇÃO DE CATEGORIAS — Título com linha decorativa
   =================================================== */
.secao-categoria {
  padding: 24px 16px 8px;
}
.secao-categoria-titulo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.secao-categoria-titulo::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 2px;
}
.secao-categoria-titulo .cat-icon {
  width: 28px; height: 28px;
  background: rgba(255,107,26,0.15);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  color: var(--accent);
}

/* ===================================================
   CARDS DE PRODUTO
   =================================================== */
.produtos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 12px 16px;
}

@media (min-width: 540px) {
  .produtos-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .produtos-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1200px) {
  .produtos-grid { grid-template-columns: repeat(4, 1fr); }
}

.produto-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: row;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  position: relative;
}
.produto-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
  background: var(--bg-card-hover);
}

.produto-img-wrap {
  flex: 0 0 110px;
  height: 110px;
  overflow: hidden;
  background: #111;
}
.produto-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.produto-card:hover .produto-img-wrap img { transform: scale(1.08); }

.produto-body {
  flex: 1;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.produto-nome {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.produto-desc {
  font-size: 0.73rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}

.produto-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.produto-preco {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--accent-gold);
  letter-spacing: 0.02em;
  line-height: 1;
}
.produto-preco-unit {
  font-family: var(--font-main);
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 400;
  vertical-align: super;
  margin-right: 2px;
}

.btn-add {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  color: #fff;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(255,107,26,0.4);
  line-height: 1;
}
.btn-add:hover {
  background: var(--accent-light);
  transform: scale(1.12);
  box-shadow: 0 4px 16px rgba(255,107,26,0.6);
}

/* ===================================================
   FOOTER FIXO MOBILE
   =================================================== */
.footer-mobile-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--footer-h);
  background: rgba(20,20,20,0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 999;
  padding: 0 8px;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex: 1;
  height: 100%;
  cursor: pointer;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: var(--transition);
  border-radius: var(--radius-md);
  padding: 6px 4px;
  position: relative;
}
.nav-item:hover, .nav-item.ativo {
  color: var(--accent);
}
.nav-item .nav-icon {
  font-size: 1.4rem;
  line-height: 1;
}

/* Badge carrinho */
.cart-badge {
  position: absolute;
  top: 6px;
  right: calc(50% - 18px);
  background: var(--accent);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: var(--radius-pill);
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--bg-primary);
  animation: pop-in 0.3s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes pop-in {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* ===================================================
   MODAL LOGIN — Dark Premium
   =================================================== */
.modal-content {
  background: var(--bg-secondary) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-lg) !important;
  color: var(--text-primary) !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.7) !important;
}
.modal-header {
  border-bottom: 1px solid var(--border) !important;
  padding: 20px 24px !important;
}
.modal-title {
  font-family: var(--font-display) !important;
  font-size: 1.6rem !important;
  letter-spacing: 0.05em !important;
  color: var(--accent) !important;
}
.modal-header .close {
  color: var(--text-secondary) !important;
  opacity: 1 !important;
  font-size: 1.4rem !important;
}
.modal-header .close:hover { color: var(--danger) !important; }

.modal-body {
  padding: 20px 24px !important;
}
.modal-body .form-group label {
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.modal-body .form-control {
  background: var(--bg-card) !important;
  border: 1.5px solid var(--border) !important;
  border-radius: var(--radius-sm) !important;
  color: var(--text-primary) !important;
  font-family: var(--font-main) !important;
  font-size: 0.88rem !important;
  padding: 10px 14px !important;
}
.modal-body .form-control:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(255,107,26,0.15) !important;
  background: var(--bg-primary) !important;
}
.modal-body .form-control::placeholder { color: var(--text-muted) !important; }

.modal-footer {
  border-top: 1px solid var(--border) !important;
  padding: 16px 24px 20px !important;
  flex-direction: column !important;
  gap: 10px !important;
  align-items: stretch !important;
}
.modal-footer .btn-success {
  background: linear-gradient(135deg, var(--accent), var(--accent-light)) !important;
  border: none !important;
  border-radius: var(--radius-pill) !important;
  font-weight: 700 !important;
  padding: 11px 24px !important;
  font-size: 0.9rem !important;
  letter-spacing: 0.04em !important;
  box-shadow: 0 4px 16px rgba(255,107,26,0.4) !important;
  width: 100%;
}
.modal-footer .btn-success:hover {
  box-shadow: 0 6px 24px rgba(255,107,26,0.6) !important;
  transform: translateY(-1px);
}
.modal-footer .btn-warning {
  background: transparent !important;
  border: 1.5px solid var(--border) !important;
  border-radius: var(--radius-pill) !important;
  color: var(--text-secondary) !important;
  font-weight: 600 !important;
  padding: 10px 24px !important;
  width: 100%;
}
.modal-footer .btn-warning:hover {
  border-color: var(--accent-gold) !important;
  color: var(--accent-gold) !important;
}
.modal-footer .txt1 {
  color: var(--text-muted);
  font-size: 0.8rem;
}
.modal-footer .txt2 {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
}
.modal-backdrop { backdrop-filter: blur(4px); }
.modal-backdrop.show { opacity: 0.7; }

/* ===================================================
   WHATSAPP FAB
   =================================================== */
.whatsapp-fab {
  position: fixed;
  bottom: calc(var(--footer-h) + 16px);
  right: 18px;
  z-index: 998;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: var(--transition);
  animation: pulse-wa 2.5s infinite;
}
.whatsapp-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.65);
  animation: none;
}
.whatsapp-fab img {
  width: 30px; height: 30px;
}
@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.45); }
  50%       { box-shadow: 0 4px 32px rgba(37,211,102,0.7); }
}

/* ===================================================
   FOOTER DE PÁGINA
   =================================================== */
.page-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-bottom: var(--footer-h);
}
.page-footer a { color: var(--accent); font-weight: 600; }
.page-footer a:hover { color: var(--accent-light); }

/* ===================================================
   ANIMAÇÕES GLOBAIS
   =================================================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.animate-in {
  animation: fadeInUp 0.4s ease both;
}
.animate-in-delay-1 { animation-delay: 0.05s; }
.animate-in-delay-2 { animation-delay: 0.10s; }
.animate-in-delay-3 { animation-delay: 0.15s; }

/* ===================================================
   ESTADOS — Loja Fechada Overlay
   =================================================== */
.produto-card.fechado {
  opacity: 0.55;
  pointer-events: none;
}
.produto-card.fechado::after {
  content: '🔒 Fechado';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
}

/* ===================================================
   OCULTA ESTILOS LEGADOS INCOMPATÍVEIS
   =================================================== */
.primeiraSecao08,
.scrollmenu.fixaMenu,
.footerNovo.fixed-bottom,
.fundoMenuNovo,
.destaquesCliente {
  all: unset;
  display: block;
}
.centralizaPadrao { width: 100% !important; }

/* Esconde elementos antigos que serão substituídos */
.primeiraSecao08 > header,
.primeiraSecao08 > div.scrollmenu {
  display: none !important;
}

/* ===================================================
   UTILITIES
   =================================================== */
.d-none { display: none !important; }
.hidden-texto { display: none; }
.sep { height: 1px; background: var(--border); margin: 8px 16px; }

/* ===================================================
   BOTTOM SHEET — Produto
   =================================================== */
.produto-sheet {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: flex-end;
  pointer-events: none;
  transition: background 0.3s ease;
}
.produto-sheet.aberto {
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
  pointer-events: all;
}

.produto-sheet-panel {
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 40px rgba(0,0,0,0.6);
  transform: translateY(100%);
  transition: transform 0.38s cubic-bezier(0.32,0.72,0,1);
  max-height: 90dvh;
  overflow-y: auto;
  position: relative;
  scrollbar-width: none;
}
.produto-sheet-panel::-webkit-scrollbar { display: none; }
.produto-sheet.aberto .produto-sheet-panel {
  transform: translateY(0);
}

/* Botão fechar (X) */
.sheet-close-btn {
  position: absolute;
  top: 12px; right: 14px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 2;
}
.sheet-close-btn:hover {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}

/* Imagem */
.sheet-img-wrap {
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: #111;
}
.sheet-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* Informações */
.sheet-info {
  padding: 16px 20px 8px;
}
.sheet-nome {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.3;
}
.sheet-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 8px;
}
.sheet-preco {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--accent-gold);
  letter-spacing: 0.02em;
  margin: 0;
}

/* Divisória */
.sheet-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}

/* Campo Observação */
.sheet-obs-wrap {
  padding: 10px 20px;
}
.sheet-obs-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 6px;
}
.sheet-obs-label span {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.75rem;
}
.sheet-obs-input {
  width: 100%;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.83rem;
  padding: 10px 12px;
  resize: none;
  outline: none;
  transition: var(--transition);
}
.sheet-obs-input::placeholder { color: var(--text-muted); }
.sheet-obs-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,107,26,0.12);
}

/* Opções Dinâmicas (Adicionais/Sabores) */
.sheet-options-container {
  padding: 0 20px 10px;
}
.sheet-opgrp {
  margin-bottom: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.sheet-opgrp-header {
  background: rgba(255,255,255,0.03);
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.sheet-opgrp-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}
.sheet-opgrp-rules {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: rgba(255,255,255,0.1);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}
.sheet-opgrp-items {
  padding: 6px 14px;
  display: flex;
  flex-direction: column;
}
.sheet-op-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  cursor: pointer;
}
.sheet-op-item:last-child {
  border-bottom: none;
}
.sheet-op-info {
  display: flex; flex-direction: column;
}
.sheet-op-name {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.sheet-op-price {
  font-size: 0.75rem;
  color: var(--accent-light);
  margin-top: 2px;
}
.sheet-op-item input[type="radio"],
.sheet-op-item input[type="checkbox"] {
  width: 20px; height: 20px;
  accent-color: var(--accent);
  cursor: pointer;
  background: var(--bg-main);
  border: 1px solid var(--border);
}

/* Footer — quantidade + botão */
.sheet-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px 20px;
}

/* Stepper de quantidade */
.sheet-qtd-wrap {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  overflow: hidden;
  flex-shrink: 0;
}
.sheet-qtd-btn {
  width: 38px; height: 38px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.sheet-qtd-btn:hover {
  background: rgba(255,107,26,0.15);
  color: var(--accent);
}
.sheet-qtd-input {
  width: 36px;
  background: transparent;
  border: none;
  text-align: center;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 700;
  outline: none;
  -moz-appearance: textfield;
  appearance: textfield;
}
.sheet-qtd-input::-webkit-outer-spin-button,
.sheet-qtd-input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* Botão Adicionar */
.sheet-btn-adicionar {
  flex: 1;
  height: 46px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border: none;
  border-radius: var(--radius-pill);
  color: #fff;
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(255,107,26,0.4);
  letter-spacing: 0.02em;
}
.sheet-btn-adicionar:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255,107,26,0.6);
}

/* ===================================================
   MODAL DE IDENTIFICAÇÃO (Smart Login)
   =================================================== */
.id-modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.id-modal-header {
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
}
.id-modal-header .modal-title {
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.02em;
}
.id-modal-header .close {
  color: var(--text-secondary);
  text-shadow: none;
  opacity: 1;
  transition: var(--transition);
}
.id-modal-header .close:hover {
  color: var(--accent);
}
.id-modal-body {
  padding: 24px 20px;
}

.id-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 20px;
}
.id-label {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.id-input {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-main);
  padding: 12px 14px;
  height: 48px;
  transition: var(--transition);
}
.id-input::placeholder {
  color: var(--text-muted);
}
.id-input:focus {
  background: var(--bg-secondary);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,107,26,0.12);
  color: var(--text-primary);
}

.btn-id-primario {
  width: 100%;
  height: 48px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border: none;
  border-radius: var(--radius-md);
  color: #fff;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 10px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-id-primario:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,107,26,0.4);
}
.btn-id-primario:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.id-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: 20px 0;
}
.id-divider::before, .id-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px dashed var(--border);
}
.id-divider span {
  padding: 0 10px;
}

.id-alert {
  background: rgba(220,53,69,0.1);
  color: var(--danger);
  border-left: 3px solid var(--danger);
  padding: 10px 14px;
  font-size: 0.85rem;
  border-radius: 4px;
  margin-top: 16px;
}


/* ===================================================
   CARRINHO & CHECKOUT (finalizaPedido.php)
   =================================================== */
.titulo-adicional {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

/* Lista de itens */
.carrinho-lista {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cart-item-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  display: flex;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--border);
  position: relative;
}
.cart-item-img {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
  background: #111;
}
.cart-item-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.cart-item-details {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.cart-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 4px;
}
.cart-item-title {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}
.cart-btn-edit {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  padding: 0 4px;
}
.cart-btn-edit:hover {
  color: var(--accent);
}

.cart-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.meta-tag {
  background: rgba(255,255,255,0.06);
  color: var(--text-secondary);
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.cart-item-extras {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  line-height: 1.4;
}
.cart-item-obs {
  font-size: 0.8rem;
  color: var(--accent-light);
  background: rgba(255,107,26,0.08);
  padding: 6px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
  font-style: italic;
  display: inline-block;
}

.cart-item-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}
.cart-qtd-stepper {
  border: 1.5px solid var(--border);
  height: 34px;
  background: var(--bg-card);
}
.cart-qtd-stepper .sheet-qtd-btn {
  width: 32px; height: 32px;
}
.cart-qtd-stepper .sheet-qtd-input {
  width: 28px;
  font-size: 0.9rem;
}
.cart-item-price {
  color: var(--accent-gold);
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}

/* Secões de Resumo / Frete */
.cart-summary-card, .cart-payment-section, .cart-obs-section {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.section-title, .cart-summary-header {
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}
.cart-summary-header i, .section-title i {
  color: var(--accent);
}
.btn-outline-custom {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}
.btn-outline-custom:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(255,107,26,0.05);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: 10px;
}
.cart-final-total-card {
  background: var(--bg-card);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  box-shadow: 0 4px 20px rgba(255,107,26,0.1);
}
.cart-summary-row.supertotal {
  margin-top: 0;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.15rem;
}
.cart-summary-row.supertotal .text-accent {
  color: var(--accent-gold);
  font-size: 1.4rem;
  font-family: var(--font-display);
}

/* Botões do Carrinho Bottom */
.cart-actions-sticky {
  background: var(--bg-main);
  border-top: 1px solid var(--border);
  padding: 20px 0;
}
.btn-cart-finalizar {
  background: linear-gradient(135deg, var(--success), #1da851);
  border: none;
  border-radius: var(--radius-md);
  color: #fff;
  font-family: var(--font-main);
  font-size: 1.1rem;
  font-weight: 700;
  padding: 14px;
  box-shadow: 0 4px 16px rgba(33, 190, 92, 0.3);
  transition: var(--transition);
  display: flex; justify-content: center; align-items: center; gap: 10px;
}
.btn-cart-finalizar:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(33, 190, 92, 0.45);
}
.btn-cart-secondary {
  background: var(--bg-secondary);
  border: 1.5px solid var(--border);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  padding: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.btn-cart-secondary:hover {
  background: var(--bg-card);
  border-color: var(--text-secondary);
}
.btn-cart-danger {
  background: rgba(220,53,69,0.1);
  border: 1.5px solid rgba(220,53,69,0.3);
  color: var(--danger);
  border-radius: var(--radius-md);
  padding: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.btn-cart-danger:hover {
  background: var(--danger);
  color: #fff;
}

/* ============== ACOMPANHA PEDIDO ============== */
.orders-container {
  padding: 10px 0 40px;
}
.order-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.order-card-header {
  background: rgba(255,255,255,0.03);
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.order-number {
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 1px;
}
.order-date {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.order-status-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.status-0 { background: rgba(255,193,7,0.15); color: #ffc107; border: 1px solid rgba(255,193,7,0.3); } /* Aguardando */
.status-1 { background: rgba(13,202,240,0.15); color: #0dcaf0; border: 1px solid rgba(13,202,240,0.3); } /* Produzindo */
.status-2 { background: rgba(255,107,26,0.15); color: var(--accent); border: 1px solid rgba(255,107,26,0.3); } /* Entregando */
.status-3 { background: rgba(32,201,151,0.15); color: #20c997; border: 1px solid rgba(32,201,151,0.3); } /* Finalizado */
.status-4 { background: rgba(239,68,68,0.15); color: #ef4444; border: 1px solid rgba(239,68,68,0.3); } /* Cancelado */

.order-items-list {
  padding: 16px 20px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.order-items-list strong {
  color: var(--text-primary);
}
.order-total-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px;
  background: rgba(0,0,0,0.15);
  border-top: 1px solid var(--border);
}
.order-total-lbl { color: var(--text-muted); font-size: 0.9rem; font-weight: 500; }
.order-total-val { color: var(--accent-gold); font-size: 1.3rem; font-family: var(--font-display); }
.btn-cancel-order {
  padding: 6px 12px; font-size: 0.8rem; background: transparent; border: 1px solid #ef4444; color: #ef4444; border-radius: var(--radius-md); transition: var(--transition);
}
.btn-cancel-order:hover { background: #ef4444; color: #fff; }

/* ===================================================
   MÁSCARA E ESTADOS DO INPUT DE TELEFONE
   =================================================== */
#idTelefone {
    transition: border-color 0.3s ease;
}
#idTelefone:focus:not(.is-complete) {
    border-color: #4a4a4a;
}
#idTelefone.is-complete {
    border-color: #FF6B1A !important;
}
#idTelefone::-webkit-outer-spin-button,
#idTelefone::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
/* ===================================================
   CORREÇÕES FINALIZA PEDIDO
   =================================================== */
.sheet-qtd-btn {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-actions-sticky {
    display: flex;
    gap: 10px;
    flex-direction: row;
}

.btn-cart-finalizar {
    flex: 2;
    margin-bottom: 0 !important;
}

.cart-actions-sticky .btn-outline-custom {
    flex: 1;
}
