/* ==============================================================================
   FORNO & BRASA - ECOSSISTEMA GASTRONÔMICO
   DESIGN SYSTEM & CARDÁPIO DIGITAL 100% ARTESANAL (VERSÃO 3.0 LIMPA DO ZERO)
   ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@500;700;800&display=swap');

:root {
  --header-height: 72px;

  /* Surface Colors */
  --bg-app: #07090e;
  --bg-surface: #0e131f;
  --bg-card: #131b2e;
  --bg-card-hover: #19243d;
  --bg-input: #0a0e17;
  --bg-modal: #0d121d;
  --bg-glass: rgba(14, 19, 31, 0.85);

  /* Brand Fire & Gold Gradients */
  --brand-fire: #ff5722;
  --brand-fire-hover: #f4511e;
  --brand-amber: #ff9800;
  --brand-gold: #fbbf24;
  --brand-gold-soft: #fef08a;
  --brand-teal: #00bdae;
  --brand-success: #10b981;
  --brand-danger: #ef4444;

  --grad-fire: linear-gradient(135deg, #ff5722 0%, #ff8f00 100%);
  --grad-fire-subtle: linear-gradient(135deg, rgba(255, 87, 34, 0.15) 0%, rgba(255, 143, 0, 0.08) 100%);
  --grad-gold: linear-gradient(135deg, #f59e0b 0%, #fbbf24 50%, #fef08a 100%);
  --grad-card-overlay: linear-gradient(180deg, rgba(7, 9, 14, 0) 40%, rgba(7, 9, 14, 0.95) 100%);

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: rgba(255, 255, 255, 0.1);
  --border-focus: #ff7043;
  --border-active: #fbbf24;

  /* Typography */
  --text-main: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-highlight: #fde68a;

  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.6), 0 0 1px 1px rgba(255, 255, 255, 0.05);
  --shadow-hover: 0 20px 40px -10px rgba(0, 0, 0, 0.8), 0 0 25px rgba(255, 87, 34, 0.25);
  --shadow-glow-fire: 0 0 24px rgba(255, 87, 34, 0.45);
  --shadow-glow-gold: 0 0 24px rgba(251, 191, 36, 0.4);

  /* Radii */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-pill: 9999px;

  --transition-fast: all 0.18s ease;
  --transition-smooth: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==============================================================================
   RESET & GLOBAL STYLES
   ============================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-app);
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: hidden;
  padding-bottom: 90px;
  background-image: 
    radial-gradient(circle at 10% 10%, rgba(255, 87, 34, 0.07) 0%, transparent 45%),
    radial-gradient(circle at 90% 80%, rgba(251, 191, 36, 0.05) 0%, transparent 45%);
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-app);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand-amber);
}


/* ==============================================================================
   HEADER & NAVIGATION
   ============================================================================== */
.header {
  background-color: rgba(14, 19, 31, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-subtle);
  min-height: var(--header-height, 72px);
}
.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: none;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
  flex-shrink: 0;
}
.brand-text-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}
.brand-name {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  background: var(--grad-fire);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  margin: 0;
}
.brand-unit-sub {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  color: var(--text-secondary);
  font-weight: 600;
  line-height: 1.2;
  margin-top: 2px;
}
.unit-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.7);
  flex-shrink: 0;
}
.unit-status-dot.closed {
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.7);
}
.brand-tagline {
  font-size: 0.76rem;
  color: var(--text-secondary);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.unit-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}
.cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--grad-fire);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(255, 87, 34, 0.4);
  transition: var(--transition-smooth);
}
.cart-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 87, 34, 0.6);
}
.cart-count {
  background: #fff;
  color: var(--brand-fire);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-total {
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

/* ==============================================================================
   CARROSSEL DE BANNERS PROMOCIONAIS (ATÉ 5 FOTOS - OTIMIZADO PARA CPU / ZERO GPU OVERLOAD)
   ============================================================================== */
.hero-banner {
  position: relative;
  overflow: hidden;
  padding: 16px 0 6px;
  background: transparent;
  border-bottom: 1px solid var(--border-subtle);
}
.hero-banner-container {
  width: 100%;
}
.banner-carousel {
  position: relative;
  width: 100%;
  max-height: 320px;
  aspect-ratio: 21 / 7;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(14, 19, 31, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  user-select: none;
  touch-action: pan-y;
}
@media (max-width: 768px) {
  .hero-banner {
    padding: 10px 0 4px;
  }
  .banner-carousel {
    aspect-ratio: 16 / 7;
    border-radius: 12px;
  }
}
.banner-track {
  position: relative;
  width: 100%;
  height: 100%;
}
.banner-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease-in-out, visibility 0.45s;
  pointer-events: none;
}
.banner-slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Botões de Navegação Anterior / Próximo */
.banner-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.25s ease, background 0.2s ease, transform 0.2s ease;
  padding-bottom: 2px;
}
.banner-carousel:hover .banner-nav-btn {
  opacity: 1;
}
.banner-nav-btn:hover {
  background: var(--primary, #f97316);
  border-color: var(--primary, #f97316);
}
.banner-prev {
  left: 14px;
}
.banner-next {
  right: 14px;
}
@media (max-width: 768px) {
  .banner-nav-btn {
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
    opacity: 0.85;
    background: rgba(15, 23, 42, 0.5);
  }
  .banner-prev { left: 8px; }
  .banner-next { right: 8px; }
}

/* Indicadores / Dots na base */
.banner-indicators {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 10;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.35);
  pointer-events: auto;
}
.banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}
.banner-dot.active {
  width: 22px;
  border-radius: 10px;
  background: var(--primary, #f97316);
  box-shadow: 0 0 8px rgba(249, 115, 22, 0.5);
}

/* ==============================================================================
   CATEGORY NAVIGATION TABS
   ============================================================================== */
.categories-nav {
  padding: 14px 0;
  background-color: rgba(7, 9, 14, 0.95);
  backdrop-filter: blur(16px);
  position: sticky;
  top: var(--header-height, 72px);
  z-index: 90;
  border-bottom: 1px solid var(--border-subtle);
}
.nav-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  white-space: nowrap;
  padding: 4px 20px;
  scrollbar-width: none;
}
.nav-scroll::-webkit-scrollbar {
  display: none;
}
.cat-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cat-pill:hover {
  background: var(--bg-card-hover);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}
.cat-pill.active {
  background: var(--grad-fire);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-glow-fire);
}

/* ==============================================================================
   MAIN MENU & PRODUCTS GRID
   ============================================================================== */
.main-content {
  padding-top: 32px;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}
.section-header h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.5px;
}
.search-box {
  position: relative;
  width: 320px;
}
.search-box input {
  width: 100%;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 10px 18px 10px 42px;
  color: #fff;
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition-smooth);
}
.search-box input:focus {
  border-color: var(--brand-amber);
  box-shadow: 0 0 18px rgba(255, 152, 0, 0.3);
  background: var(--bg-card-hover);
}
.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Products Grid */
/* Products Grid (Estilo iFood / Uber Eats: 2 colunas desktop, 1 coluna mobile) */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(390px, 1fr));
  gap: 16px;
}
@media (max-width: 860px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
.loading-spinner, .empty-cart {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* ==============================================================================
   MODERN HORIZONTAL PRODUCT CARDS (ESTILO IFOOD / UBER EATS)
   ============================================================================== */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: space-between;
  gap: 14px;
  min-height: 142px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  position: relative;
  box-sizing: border-box;
}
.product-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 87, 34, 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

/* Lado Esquerdo: Informações do Produto */
.card-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-badges-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

/* Botão Visualizar 3D / WebAR Premium Neon & Glass */
.badge-ar {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15) 0%, rgba(59, 130, 246, 0.18) 100%);
  border: 1px solid rgba(6, 182, 212, 0.45);
  color: #38bdf8;
  padding: 4px 10px;
  border-radius: var(--radius-pill, 9999px);
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(6, 182, 212, 0.18);
  backdrop-filter: blur(8px);
  user-select: none;
}
.badge-ar svg {
  color: #38bdf8;
  filter: drop-shadow(0 0 5px rgba(6, 182, 212, 0.6));
  transition: transform 0.25s ease;
}
.badge-ar:hover {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.32) 0%, rgba(59, 130, 246, 0.42) 100%);
  border-color: #38bdf8;
  color: #ffffff;
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 4px 16px rgba(6, 182, 212, 0.45), 0 0 10px rgba(56, 189, 248, 0.35);
}
.badge-ar:hover svg {
  transform: rotate(-10deg) scale(1.15);
  color: #ffffff;
}
.badge-ar:active {
  transform: translateY(0) scale(0.98);
}

.badge-pizza {
  display: inline-flex;
  align-items: center;
  background: rgba(220, 38, 38, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  padding: 3px 9px;
  border-radius: var(--radius-pill, 9999px);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.badge-burger {
  display: inline-flex;
  align-items: center;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fcd34d;
  padding: 3px 9px;
  border-radius: var(--radius-pill, 9999px);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 6px 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0 0 10px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 6px;
  border-top: 1px solid var(--border-subtle);
}

.price-tag {
  display: flex;
  flex-direction: column;
}
.price-prefix {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.price-val {
  font-family: var(--font-mono);
  font-size: 1.22rem;
  font-weight: 900;
  color: var(--brand-gold);
  line-height: 1.15;
}

/* Lado Direito: Mídia e Botão de Ação */
.card-side-media {
  width: 120px;
  min-width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.card-thumb-wrap {
  position: relative;
  width: 120px;
  height: 94px;
  border-radius: 12px;
  overflow: hidden;
  background: #090e18;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.card-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .card-thumb-img {
  transform: scale(1.08);
}

.card-thumb-wrap .ribbon-sold-out {
  position: absolute;
  top: 10px;
  right: -36px;
  width: 120px;
  font-size: 0.62rem;
  padding: 3px 0;
}

.btn-add-card {
  background: var(--grad-fire);
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 0.82rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 14px rgba(255, 87, 34, 0.35);
  white-space: nowrap;
}
.btn-add-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 87, 34, 0.6);
}

.btn-add-side {
  width: 100%;
  padding: 7px 8px;
  font-size: 0.78rem;
  text-align: center;
}

.badge-sold-out-inline {
  background: rgba(220, 38, 38, 0.85);
  color: #fff;
  font-size: 0.65rem;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 700;
  margin-left: 6px;
  vertical-align: middle;
}

/* Sold Out / Esgotado States */
.product-card.is-sold-out {
  opacity: 0.82;
  cursor: not-allowed !important;
}
.product-card.is-sold-out:hover {
  transform: none;
  box-shadow: var(--shadow-card);
  border-color: rgba(239, 68, 68, 0.3);
}
.product-card.is-sold-out .card-img {
  filter: grayscale(75%) contrast(0.9);
  transform: none !important;
}

/* Faixa Diagonal "Esgotado" na foto */
.ribbon-sold-out {
  position: absolute;
  top: 18px;
  right: -42px;
  width: 155px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  color: #ffffff;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  z-index: 10;
  pointer-events: none;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  border-bottom: 1px solid rgba(0, 0, 0, 0.4);
}

/* Badge Inline "Esgotado" para itens sem foto */
.badge-sold-out-inline {
  display: inline-block;
  vertical-align: middle;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #fca5a5;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-left: 8px;
}

.btn-add-card.disabled,
.btn-add-card:disabled {
  background: #334155 !important;
  color: #94a3b8 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  transform: none !important;
}

/* ==============================================================================
   MODAL: BASE STYLES & DIALOGS
   ============================================================================== */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 12, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-backdrop.open {
  display: flex;
}
.modal-card {
  background: var(--bg-modal);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 1px 1px rgba(255, 255, 255, 0.1);
  overflow: hidden;
  animation: modal-pop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modal-pop {
  0% { transform: scale(0.95); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.modal-header {
  padding: 16px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
}
.modal-header h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
}
.close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: none;
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}
.close-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.modal-body {
  padding: 22px;
  overflow-y: auto;
  flex: 1;
}
.modal-footer {
  padding: 16px 22px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.footer-price {
  display: flex;
  flex-direction: column;
}
.price-caption {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
}
.footer-price .price-val {
  font-size: 1.45rem;
}
.btn-primary {
  background: var(--grad-fire);
  border: none;
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
  box-shadow: var(--shadow-glow-fire);
  transition: var(--transition-smooth);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 26px rgba(255, 87, 34, 0.65);
}
.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.btn-block {
  width: 100%;
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-fast);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* ==============================================================================
   MODAL: PRODUCT CUSTOMIZER DETAILS (PIZZA & BURGER BUILDER)
   ============================================================================== */
.cust-summary {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  padding: 14px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}
.cust-summary h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}
.cust-section {
  margin-bottom: 22px;
}
.section-label {
  display: block;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--brand-amber);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}
.sub-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-weight: 600;
}

/* Split Options (1 Sabor vs 2 Sabores) */
.split-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.split-label {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}
.split-label input {
  accent-color: var(--brand-fire);
}
.split-label.active {
  background: rgba(255, 87, 34, 0.15);
  border-color: var(--brand-fire);
  color: #fff;
}
.flavor-selector {
  margin-top: 10px;
}
.form-select {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: #fff;
  font-size: 0.9rem;
  outline: none;
}
.form-select:focus {
  border-color: var(--brand-amber);
}

/* Options Grid & Option Cards (Sizes, Crusts, Complements) */
.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.option-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  transition: var(--transition-fast);
}
.option-card span {
  font-size: 0.84rem;
  color: var(--text-secondary);
  font-weight: 600;
}
.option-card strong {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: var(--brand-gold);
}
.option-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.18);
}
.option-card.selected {
  border-color: var(--brand-amber);
  background: rgba(255, 152, 0, 0.15);
  box-shadow: 0 0 12px rgba(255, 152, 0, 0.25);
}
.option-card.selected span {
  color: #fff;
}

/* Radio Card (Doneness) */
.radio-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  color: #cbd5e1;
  font-weight: 600;
}
.radio-card input {
  accent-color: var(--brand-fire);
}

/* Quick Notes & Tags */
.form-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: #fff;
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition-fast);
}
.form-input:focus {
  border-color: var(--brand-amber);
  box-shadow: 0 0 12px rgba(255, 152, 0, 0.25);
  background: rgba(10, 14, 23, 0.9);
}
.quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.tag-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
}
.tag-badge:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
.tag-badge.danger {
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.1);
}
.tag-badge.danger:hover {
  background: rgba(239, 68, 68, 0.25);
}

/* ==============================================================================
   MODAL AR: CÂMERA IMERSIVA TELA CHEIA (estilo app nativo)
   ============================================================================== */

/* O modal AR é um elemento fixo que ocupa 100% da tela */
.ar-fullscreen-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #000;
  overflow: hidden;
}
.ar-fullscreen-modal.active {
  display: block;
}

/* Câmera de fundo em tela cheia */
.ar-fullscreen-modal .ar-camera-feed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  display: none; /* exibido após ativação */
}
.ar-fullscreen-modal .ar-camera-feed.active {
  display: block;
}

/* Palco Three.js em tela cheia */
.ar-fullscreen-modal .customer-threejs-stage {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  z-index: 2;
  background: transparent;
}
.ar-fullscreen-modal .customer-threejs-stage canvas {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
}

/* Model Viewer em tela cheia */
.ar-fullscreen-modal model-viewer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background: radial-gradient(circle at 50% 45%, #151d2f 0%, #080c14 100%);
  --poster-color: transparent;
  touch-action: pan-y;
}

/* Poster de Carregamento Elegante */
.ar-model-poster {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: radial-gradient(circle at 50% 45%, #151d2f 0%, #080c14 100%);
  z-index: 5;
  transition: opacity 0.4s ease;
}
.ar-loader-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(249, 115, 22, 0.2);
  border-top-color: #f97316;
  border-radius: 50%;
  animation: arSpin 0.9s linear infinite;
}
@keyframes arSpin {
  to { transform: rotate(360deg); }
}
.ar-loader-text {
  font-size: 0.9rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.02em;
}

/* Botão Flutuante de Lançamento de AR Nativo na Mesa (Slot ar-button do model-viewer) */
.btn-ar-launch-table {
  position: absolute;
  bottom: 96px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1.5px solid rgba(249, 115, 22, 0.65);
  border-radius: 50px;
  padding: 12px 24px;
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 24px rgba(249, 115, 22, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  pointer-events: auto;
}
.btn-ar-launch-table:hover,
.btn-ar-launch-table:active {
  transform: translateX(-50%) scale(1.03);
  border-color: #f97316;
  background: rgba(30, 41, 59, 0.98);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.6), 0 0 32px rgba(249, 115, 22, 0.6);
}
.ar-launch-icon-pulse {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
  color: #fff;
  box-shadow: 0 0 12px rgba(234, 88, 12, 0.8);
  animation: pulseGlow 2s infinite alternate;
}
@keyframes pulseGlow {
  0% { transform: scale(0.95); box-shadow: 0 0 8px rgba(234, 88, 12, 0.6); }
  100% { transform: scale(1.08); box-shadow: 0 0 20px rgba(249, 115, 22, 0.9); }
}
.ar-launch-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}
.ar-launch-text strong {
  font-size: 0.92rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.01em;
}
.ar-launch-text small {
  font-size: 0.72rem;
  color: #cbd5e1;
}

/* BARRA SUPERIOR: Botão Voltar e Detalhes do Prato */
.ar-top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 16px;
  padding-top: max(16px, env(safe-area-inset-top));
  pointer-events: auto;
  background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, transparent 100%);
}
.btn-ar-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(10, 15, 26, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 50px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
.btn-ar-back:hover,
.btn-ar-back:active {
  background: rgba(30, 41, 59, 0.9);
  transform: scale(0.97);
}

/* Detalhes do Prato no Header do Modal */
.ar-header-dish-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  pointer-events: none;
}
.dish-title-badge {
  font-size: 0.92rem;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}
.dish-scale-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #34d399;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
  text-shadow: none;
}
.dish-scale-badge::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 6px #34d399;
}

/* BARRA INFERIOR: Botão de Pedir */
.ar-bottom-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  padding: 16px 20px;
  padding-bottom: max(16px, env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
  pointer-events: auto;
}
.btn-ar-order-floating {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
  color: #ffffff;
  border: none;
  border-radius: 60px;
  padding: 15px 32px;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(234, 88, 12, 0.55);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 380px;
  width: 100%;
  justify-content: center;
  letter-spacing: 0.01em;
}
.btn-ar-order-floating:hover,
.btn-ar-order-floating:active {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 36px rgba(234, 88, 12, 0.65);
}

/* OVERLAY DESKTOP: QR Code exibido apenas em telas maiores */
.ar-activate-overlay {
  position: absolute;
  top: 80px;
  right: 24px;
  z-index: 8;
  display: none;
  pointer-events: auto;
}
@media (min-width: 769px) {
  .ar-activate-overlay {
    display: flex;
  }
}

/* Callout QR Code (desktop/tablet) */
.ar-qr-callout {
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.qr-col-text {
  flex: 1;
}
.qr-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.qr-col-text h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}
.qr-col-text p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.35;
}
.qr-col-img img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  background: #fff;
  padding: 4px;
  display: block;
}

/* Retículo de superfície — estilo Pokémon GO */
/* Transparência do model-viewer e Three.js quando câmera ativa */
.ar-fullscreen-modal.camera-active #ar-viewer {
  background: transparent !important;
  --poster-color: transparent !important;
}

/* Em mobile, oculta callouts para exibição imediata e pura da câmera */
@media (max-width: 768px) {
  .ar-fullscreen-modal .ar-activate-overlay {
    display: none !important;
  }
}

/* ==============================================================================
   CART DRAWER & BRAZILIAN CHECKOUT
   ============================================================================== */
.cart-drawer {
  position: fixed;
  top: 0;
  right: -480px;
  width: 440px;
  max-width: 100vw;
  height: 100vh;
  background: var(--bg-modal);
  border-left: 1px solid var(--border-subtle);
  z-index: 210;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.85);
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.cart-drawer.open {
  right: 0;
}
.drawer-header {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
}
.drawer-header h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
}
.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Cart Item Rows */
.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cart-item-row {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.cart-item-details {
  flex: 1;
}
.cart-item-details strong {
  display: block;
  font-size: 0.94rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}
.cart-item-details small {
  display: block;
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.35;
}
.cart-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.cart-item-price {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.98rem;
  color: var(--brand-gold);
}
.btn-remove-item {
  background: none;
  border: none;
  color: var(--brand-danger);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}
.btn-remove-item:hover {
  text-decoration: underline;
}

/* Checkout Form */
.checkout-form {
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
}
.form-title {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--brand-amber);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.form-group {
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.form-group label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
}
.form-row {
  display: flex;
  gap: 10px;
}
.flex-1 { flex: 1; }
.flex-2 { flex: 2; }
.btn-cep {
  height: 42px;
  margin-top: 22px;
  width: 100%;
}

/* Payment Modality Selector */
.payment-modality-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.modality-btn {
  background: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: var(--transition-fast);
  color: var(--text-main);
  outline: none;
}
.modality-btn:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
}
.modality-btn.active {
  background: rgba(255, 152, 0, 0.12);
  border-color: var(--brand-amber);
  box-shadow: 0 0 16px rgba(255, 152, 0, 0.15);
}
.modality-title {
  font-family: var(--font-heading);
  font-size: 0.90rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}
.modality-btn.active .modality-title {
  color: var(--brand-gold);
}
.modality-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
}
.modality-btn.active .modality-desc {
  color: #fed7aa;
}

/* Payment Methods */
.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.pay-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition-fast);
}
.pay-card input {
  accent-color: var(--brand-fire);
}
.pay-card:hover {
  background: var(--bg-card-hover);
}
.pay-card.active {
  border-color: var(--brand-amber);
  background: rgba(255, 152, 0, 0.1);
}
.pay-info strong {
  display: block;
  font-size: 0.86rem;
  color: #fff;
}
.pay-info small {
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* Card Online Form */
.card-form-inner {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 14px 14px 10px;
  animation: slideDown 0.22s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.card-form-inner .form-group {
  margin-bottom: 10px;
}
.card-form-inner label {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 4px;
  display: block;
}
.card-form-inner .form-input {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}
.card-form-inner .form-row {
  display: flex;
  gap: 10px;
}
.card-form-inner .flex-1 { flex: 1; }

/* Drawer Footer */
.drawer-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.summary-line span:last-child {
  font-family: var(--font-mono);
  font-weight: 700;
}
.total-line {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  border-top: 1px dashed var(--border-subtle);
  padding-top: 8px;
  margin-top: 4px;
}
.total-line span:last-child {
  color: var(--brand-gold);
  font-size: 1.3rem;
  font-weight: 900;
}

/* ==============================================================================
   SUCCESS & PIX MODAL
   ============================================================================== */
.text-center { text-align: center; }
.success-icon {
  font-size: 3rem;
  margin-bottom: 10px;
}
.pix-box {
  background: rgba(0, 189, 174, 0.08);
  border: 1px solid rgba(0, 189, 174, 0.35);
  border-radius: var(--radius-md);
  padding: 16px;
  margin: 18px 0;
}
.pix-box h5 {
  font-family: var(--font-heading);
  color: var(--brand-teal);
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 10px;
}
.pix-qr {
  width: 180px;
  height: 180px;
  margin: 0 auto 12px;
  display: block;
  background: #fff;
  padding: 8px;
  border-radius: 8px;
}
.pix-copy-box {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
.pix-copy-box input {
  flex: 1;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 189, 174, 0.3);
  color: var(--brand-teal);
  padding: 8px 12px;
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

/* Status Tracker */
.status-tracker {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  position: relative;
}
.status-tracker::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: var(--border-subtle);
  z-index: 1;
}
.status-tracker .step {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.status-tracker .step span {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border-subtle);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.82rem;
}
.status-tracker .step.active span {
  background: var(--brand-fire);
  border-color: var(--brand-fire);
  color: #fff;
  box-shadow: var(--shadow-glow-fire);
}
.status-tracker .step p {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-secondary);
}

/* ==============================================================================
   MOBILE CART BAR & TOASTS
   ============================================================================== */
.mobile-cart-bar {
  display: none;
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: var(--grad-fire);
  color: #fff;
  border-radius: 16px;
  padding: 14px 20px;
  z-index: 150;
  box-shadow: 0 10px 32px rgba(255, 87, 34, 0.55);
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
  animation: slide-up 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-cart-bar.visible {
  display: flex;
}
@keyframes slide-up {
  0% { transform: translateY(50px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.m-cart-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 0.92rem;
}
.m-cart-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.m-cart-total {
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 1.1rem;
}
.m-cart-cta {
  font-size: 0.82rem;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.25);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
}

/* Toasts */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast-item {
  pointer-events: auto;
  background: rgba(14, 19, 31, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 152, 0, 0.4);
  border-left: 5px solid var(--brand-amber);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7);
  padding: 12px 14px 12px 16px;
  border-radius: 12px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  max-width: 390px;
  animation: toast-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 0.25s ease, max-height 0.25s ease;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  position: relative;
  will-change: transform, opacity;
}
.toast-item.dragging {
  cursor: grabbing !important;
  transition: none !important;
}
.toast-item.fade-out {
  opacity: 0;
  transform: translateX(120%) scale(0.9);
}
@keyframes toast-in {
  0% { transform: translateY(20px) scale(0.95); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
.toast-icon { font-size: 1.6rem; flex-shrink: 0; }
.toast-body { flex: 1; min-width: 0; }
.toast-title { font-weight: 800; font-size: 0.94rem; color: #fff; }
.toast-desc { font-size: 0.82rem; color: #cbd5e1; margin-top: 2px; word-break: break-word; }
.toast-close-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.35rem;
  line-height: 1;
  padding: 4px 6px;
  cursor: pointer;
  border-radius: 6px;
  margin-left: 4px;
  transition: all 0.2s ease;
  opacity: 0.6;
  flex-shrink: 0;
}
.toast-close-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  opacity: 1;
}

/* Observação da Cozinha no Carrinho (Disponível para TODOS os itens, mesmo sem personalização) */
.cart-item-obs-block {
  margin-top: 8px;
  width: 100%;
}
.btn-item-obs-trigger {
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: #94a3b8;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 5px 9px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-item-obs-trigger:hover {
  background: rgba(245, 158, 11, 0.1);
  border-color: #f59e0b;
  color: #f59e0b;
}
.cart-item-obs-badge {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 6px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.78rem;
  color: #fbbf24;
  cursor: pointer;
  transition: all 0.15s ease;
}
.cart-item-obs-badge:hover {
  background: rgba(245, 158, 11, 0.14);
  border-color: #f59e0b;
}
.cart-item-obs-badge .obs-edit-link {
  font-size: 0.72rem;
  color: #94a3b8;
  text-decoration: underline;
  flex-shrink: 0;
}
.cart-item-obs-editor {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 8px;
  padding: 8px 10px;
  margin-top: 4px;
}
.cart-obs-input {
  flex: 1;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: #fff;
  font-size: 0.8rem;
  padding: 6px 10px;
  outline: none;
}
.cart-obs-input:focus {
  border-color: #f59e0b;
}
.btn-cart-obs-done {
  background: #f59e0b;
  color: #0d131f;
  border: none;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.76rem;
  padding: 6px 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-cart-obs-done:hover {
  background: #fbbf24;
}
.cart-obs-quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}
.cart-obs-quick-tags .quick-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: #cbd5e1;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}
.cart-obs-quick-tags .quick-chip:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: #f59e0b;
  color: #fbbf24;
}
.cart-obs-quick-tags .quick-chip.danger {
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.3);
}
.cart-obs-quick-tags .quick-chip.danger:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
}


/* ==========================================================================
   TENANT WHITE-LABEL PRELOADER & HERO BANNER
   ========================================================================== */
.app-preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: radial-gradient(circle at center, #111827 0%, #080b12 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.app-preloader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px;
  max-width: 380px;
}
.preloader-logo-ring {
  position: relative;
  width: 96px;
  height: 96px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.preloader-logo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: none;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.6));
  z-index: 2;
  animation: preloaderPulse 2.2s infinite ease-in-out;
}
.preloader-pulse {
  display: none; /* Desativa anel externo secundário que criava moldura duplicada */
}
@keyframes preloaderPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
@keyframes preloaderRing {
  0% { transform: scale(0.85); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}
.preloader-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: #f8fafc;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}
.preloader-bar-wrap {
  width: 180px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 12px;
}
.preloader-bar {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--primary, #f97316), transparent);
  animation: preloaderSlide 1.5s infinite linear;
}
@keyframes preloaderSlide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.preloader-sub {
  font-size: 0.82rem;
  color: #94a3b8;
  font-weight: 500;
}
.hero-banner.custom-banner-bg {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

/* ==============================================================================
   RESPONSIVE MOBILE DESIGN SYSTEM (IPHONE SE 375x667 & DISPOSITIVOS MÓVEIS)
   ============================================================================== */
@media (max-width: 768px) {
  :root {
    --header-height: 56px;
  }

  body {
    padding-bottom: 96px;
  }

  .container {
    padding: 0 16px;
  }

  /* Header Compacto & Sem Quebras de Linha Indesejadas */
  .header {
    height: var(--header-height, 56px);
    min-height: var(--header-height, 56px);
  }

  .header-content {
    padding: 8px 16px;
    gap: 10px;
    height: 100%;
    align-items: center;
  }

  .brand {
    gap: 10px;
    min-width: 0;
    flex: 1;
    overflow: hidden;
    align-items: center;
  }

  .brand-logo {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 50%;
    border: none;
    background: transparent;
    box-shadow: none;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
  }

  .brand-text-wrap {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .brand-name {
    font-size: 1.05rem;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    display: block;
    letter-spacing: 0.2px;
    margin: 0;
  }

  .brand-unit-sub {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    color: var(--text-secondary);
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1;
  }

  .unit-status-dot {
    width: 6px;
    height: 6px;
  }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }

  /* Oculta a pílula redundante no mobile para não esmagar a marca e a tela */
  .header-actions .unit-pill {
    display: none !important;
  }

  /* Botão de carrinho touch circular padrão iOS/Android */
  .cart-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
    position: relative;
    box-shadow: 0 4px 14px rgba(255, 87, 34, 0.45);
  }

  .cart-btn .cart-icon {
    width: 18px;
    height: 18px;
  }

  .cart-btn .cart-total {
    display: none !important;
  }

  .cart-btn .cart-count {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 19px;
    height: 19px;
    font-size: 0.7rem;
    border: 2px solid var(--bg-surface, #0e131f);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  }

  /* Fixação exata da barra de categorias abaixo do header compacto */
  .categories-nav {
    top: var(--header-height, 56px);
    padding: 8px 0;
  }

  .nav-scroll {
    gap: 8px;
    padding: 4px 16px;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
  }

  .cat-pill {
    padding: 7px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* Hero Banner em Mobile */
  .hero-banner {
    padding: 8px 0 2px;
  }

  .banner-carousel {
    aspect-ratio: 16 / 7;
    border-radius: 12px;
  }

  .banner-nav-btn {
    width: 28px;
    height: 28px;
    font-size: 1.1rem;
  }

  /* Seção de Busca e Título */
  .main-content {
    padding-top: 14px;
  }

  .section-header {
    margin-bottom: 12px;
    gap: 10px;
    flex-direction: column;
    align-items: stretch;
  }

  .section-header h3 {
    font-size: 1.22rem;
    letter-spacing: -0.3px;
    margin: 0;
  }

  .search-box {
    width: 100%;
  }

  .search-box input {
    height: 40px;
    font-size: 0.86rem;
    padding: 8px 14px 8px 38px;
    border-radius: 12px;
  }

  .search-icon {
    left: 12px;
    width: 16px;
    height: 16px;
  }

  /* Grid e Cards de Produtos no Mobile */
  .products-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .product-card {
    padding: 12px 14px;
    border-radius: 14px;
    gap: 10px;
    min-height: auto;
  }

  .card-info {
    min-width: 0;
  }

  .card-title {
    font-size: 0.98rem;
    font-weight: 800;
    margin-bottom: 4px;
    line-height: 1.25;
  }

  .card-desc {
    font-size: 0.78rem;
    line-height: 1.35;
    margin-bottom: 8px;
    -webkit-line-clamp: 2;
  }

  .card-footer {
    padding-top: 6px;
    margin-top: auto;
  }

  .price-prefix {
    font-size: 0.62rem;
  }

  .price-val {
    font-size: 1.15rem;
  }

  .btn-add-card {
    padding: 7px 16px;
    font-size: 0.82rem;
    min-height: 36px;
    border-radius: var(--radius-pill);
  }

  /* Cards com Imagem Lateral */
  .product-card.has-media .card-side-media {
    width: 96px;
    min-width: 96px;
    gap: 6px;
  }

  .product-card.has-media .card-thumb-wrap {
    width: 96px;
    height: 78px;
    border-radius: 10px;
  }

  .product-card.has-media .btn-add-side {
    padding: 6px 8px;
    font-size: 0.76rem;
  }

  /* Badges Internos */
  .card-badges-inline {
    gap: 5px;
    margin-bottom: 6px;
  }

  .badge-ar {
    font-size: 0.68rem;
    padding: 3px 8px;
  }

  .badge-pizza, .badge-burger {
    font-size: 0.66rem;
    padding: 2px 7px;
  }

  /* Modal do Personalizador em Bottom Sheet Fluido */
  .modal-backdrop {
    padding: 0;
    align-items: flex-end;
  }

  .modal-card {
    width: 100%;
    max-width: 100%;
    border-radius: 20px 20px 0 0;
    border-bottom: none;
    max-height: 90vh;
    margin: 0;
    animation: sheetSlideUp 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  }

  @keyframes sheetSlideUp {
    from { transform: translateY(100%); opacity: 0.8; }
    to   { transform: translateY(0); opacity: 1; }
  }

  .modal-header {
    padding: 12px 16px;
  }

  .modal-body {
    padding: 14px 16px;
  }

  .modal-footer {
    padding: 12px 16px;
    padding-bottom: max(16px, env(safe-area-inset-bottom, 16px));
  }

  .options-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 8px;
  }

  .split-options {
    gap: 8px;
  }

  .split-label {
    padding: 8px 10px;
    font-size: 0.8rem;
  }

  /* Gaveta do Carrinho (Cart Drawer) Fullscreen */
  .cart-drawer {
    width: 100vw;
    max-width: 100vw;
    right: -100vw;
  }

  .drawer-header {
    padding: 12px 16px;
  }

  .drawer-body {
    padding: 14px 16px;
  }

  .drawer-footer {
    padding: 14px 16px;
    padding-bottom: max(16px, env(safe-area-inset-bottom, 16px));
  }

  .cart-item-row {
    padding: 12px;
    gap: 10px;
  }

  .cart-item-details strong {
    font-size: 0.9rem;
  }

  .cart-item-price {
    font-size: 0.94rem;
  }

  .payment-modality-selector {
    gap: 8px;
  }

  .modality-btn {
    padding: 10px 8px;
  }

  .modality-title {
    font-size: 0.84rem;
  }

  .modality-desc {
    font-size: 0.68rem;
  }

  /* Barra Flutuante de Carrinho na Base */
  .mobile-cart-bar {
    bottom: max(12px, env(safe-area-inset-bottom, 12px));
    left: 12px;
    right: 12px;
    padding: 12px 16px;
    border-radius: 14px;
  }

  .m-cart-left {
    font-size: 0.88rem;
  }

  .m-cart-total {
    font-size: 1.05rem;
  }

  .m-cart-cta {
    font-size: 0.78rem;
    padding: 5px 10px;
  }

  /* Modal de PIX & Confirmação */
  .pix-qr {
    width: 150px;
    height: 150px;
  }

  .pix-copy-box {
    flex-direction: column;
    gap: 8px;
  }

  .pix-copy-box button {
    width: 100%;
  }

  .status-tracker .step p {
    font-size: 0.68rem;
  }

  .toast-container {
    bottom: 80px;
    right: 14px;
    left: 14px;
  }
}
