/* ==========================================================================
   V99 SUPREME NEURODESIGN SYSTEM (DarkForge-X)
   The "Ketchup & Mustard" Dopamine Engine
   Target: Thumb Zone Conversions + CLS Zero B2B Trojan Horse
   ========================================================================== */

:root {
  /* 1. Cores de Guerra (WCAG AAA Contrast > 7:1) */
  --celta-void: #0F0F0F;          /* Fundo preto abissal - foca a pupila */
  --celta-bone: #EDEDED;          /* Texto principal - não cega na rua debaixo do sol */
  --celta-sub: #A0A0A0;           /* Textos de suporte */
  --neuro-lava: #FF2A00;          /* Ação primária (Ketchup) - Urgência, Fome, Pulsação */
  --neuro-warning: #FFC107;       /* Suporte / Estrelas (Mostarda) - Felicidade, Oferta */
  
  /* 2. Fluid Typography (clamp min, preferred, max) */
  --text-xs: clamp(0.75rem, 0.70rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.80rem + 0.38vw, 1rem);
  --text-base: clamp(1rem, 0.90rem + 0.50vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1.00rem + 0.63vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.10rem + 0.75vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.25rem + 1.25vw, 2rem);
  --text-3xl: clamp(1.875rem, 1.50rem + 1.88vw, 2.75rem);
  --text-gigante: clamp(2.5rem, 2.00rem + 2.50vw, 4rem);

  /* 3. Thumb Zone Constraints (Fricção Zero) */
  --thumb-zone-height: 110px; /* Espaço inferior travado pro botão não sumir */
}

/* ==========================================================================
   Reset & Base V99
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  /* Anti-serrilhado pesado */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  font-size: 16px;
  background-color: var(--celta-void);  
  color: var(--celta-bone);
  overflow-x: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  scroll-behavior: smooth;
  /* Bloqueia Pull-to-Refresh Glitches (Scroll Bounce) */
  overscroll-behavior-y: none;
  /* Trava o Layout. Impede o usuário de selecionar texto por acidente e mostrar cor azul no Mobile */
  user-select: none;
  -webkit-user-select: none;
  /* Força subpixel rendering para fontes de carga lenta (Inter) */
  text-rendering: optimizeLegibility;
}

body {
  line-height: 1.5;
  padding-bottom: var(--thumb-zone-height); /* Espaço pra Thumb Zone */
  min-height: 100vh;
  min-height: 100dvh; /* Dynamic viewport fallback para iOS Safari bottom-bar clipping */
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

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

button {
  all: unset;
  cursor: pointer;
  box-sizing: border-box;
  touch-action: manipulation; /* Mata delay de 300ms do Double-Tap em iOS/Android nativo */
  -webkit-tap-highlight-color: transparent; /* Remove sombra azul em links no mobile */
}

/* WCAG 2.4.1: Skip Link (invisível, aparece no Tab) */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--neuro-warning);
  color: var(--celta-void);
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 8px 8px;
  font-weight: 800;
  font-size: var(--text-sm);
  z-index: 9999;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

/* WCAG 2.4.7: Focus Visible (AAA) */
a:focus-visible,
button:focus-visible,
.social-badge:focus-visible,
.delivery-badge:focus-visible,
.b2b-cta:focus-visible {
  outline: 3px solid var(--neuro-warning);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ==========================================================================
   Micro-Arquitetura (Grids e Layout Semântico)
   ========================================================================== */
.container {
  width: 100%;
  max-width: 600px; /* Mobile esticado, travado no centro da tela no Desktop */
  margin: 0 auto;
  /* Viewport-fit=cover Safe Areas: Impede que o Notch do iPhone coma as letras em Landscape! */
  padding: 0 calc(1.5rem + env(safe-area-inset-right)) 0 calc(1.5rem + env(safe-area-inset-left));
}

header {
  padding: 2rem 0;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.brand-title {
  font-size: var(--text-3xl);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -1px;
  color: var(--neuro-warning);
  text-shadow: 0 0 20px rgba(255, 193, 7, 0.2);
}

.brand-subtitle {
  font-size: var(--text-sm);
  color: var(--celta-sub);
  margin-top: 0.5rem;
  font-weight: 500;
  /* Anti-CLS block (Garante que frases longas não empurrem o vídeo) */
  min-height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.delivery-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 42, 0, 0.1);
  color: var(--neuro-lava);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: var(--text-sm); /* WCAG 1.4.6: bold >= 14px = 'large text' → AAA com 5.1:1 */
  font-weight: 700;
  margin-top: 1rem;
  border: 1px solid rgba(255, 42, 0, 0.2);
  gap: 0.5rem;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.dot-pulse {
  width: 8px;
  height: 8px;
  background-color: var(--neuro-lava);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

/* ==========================================================================
   Zero-Latency Video Facade (Lite YouTube)
   ========================================================================== */
.video-sales-letter {
  margin-top: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.video-container {
  width: 100%;
  max-width: 320px; /* Constraints para formato SHORTS */
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(255, 42, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: var(--celta-void);
  /* Proteção LCP/CLS: Espaço reservado para vídeo vertical (16:9 ratio inverts to 9:16) */
  aspect-ratio: 9 / 16;
}

lite-youtube {
  width: 100%;
  height: 100%;
  max-width: 100%;
}

.video-hook {
  text-align: center;
  font-size: var(--text-xs);
  color: var(--celta-sub);
  margin-top: 1rem;
  font-style: italic;
}

/* ==========================================================================
   Vitrine de Ponto de Venda
   ========================================================================== */
.menu-section {
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.menu-label {
  text-align: center;
  font-size: var(--text-xs);
  color: var(--celta-sub);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: -0.5rem;
}

.pizza-card {
  background: rgba(255,255,255, 0.03);
  border: 1px solid rgba(255,255,255, 0.05);
  border-radius: 1rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: stretch;
  gap: 1rem;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.pizza-card:active {
  transform: scale(0.98);
}

.pizza-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  min-width: 0;
}

.pizza-title {
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--celta-bone);
  line-height: 1.2;
}

.pizza-desc {
  font-size: var(--text-xs);
  color: var(--celta-sub);
  margin-top: 0.25rem;
}

.pizza-price {
  font-size: var(--text-xl);
  font-weight: 900;
  color: var(--neuro-warning);
  margin-top: 0.75rem;
}

.pizza-action {
  display: flex;
  align-items: center;
  align-self: center; /* Impede a pílula de virar uma 'salsicha' vertical se o texto for enorme */
  background: rgba(255, 193, 7, 0.05); /* Outline suave */
  border: 1px solid rgba(255, 193, 7, 0.2);
  border-radius: 999px;
  padding: 0.25rem;
  gap: 0.5rem;
  flex-shrink: 0; /* IMPEDE que botões + e - fiquem ovais em telas finas */
}

.qty-btn {
  background: var(--neuro-warning);
  color: var(--celta-void);
  font-weight: 800;
  font-size: var(--text-base);
  width: 44px;  /* WCAG 2.5.5 AAA: Target Size >= 44px */
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(255, 193, 7, 0.1);
  transition: transform 0.1s, opacity 0.1s;
}

.qty-btn.disabled {
  opacity: 0.3;
  pointer-events: none;
  background: var(--celta-sub);
  box-shadow: none;
  border: 2px dashed rgba(255,255,255,0.15); /* WCAG 1.4.1: não depende só de cor/opacidade */
}

.qty-btn:active {
  transform: scale(0.9);
}

.qty-count {
  font-size: var(--text-lg);
  font-weight: 900;
  color: var(--celta-bone);
  width: 20px;
  text-align: center;
  display: inline-block; /* Fundamental para animação transformar */
}

@keyframes popNumber {
  0% { transform: scale(1); }
  40% { transform: scale(1.5); color: var(--neuro-lava); }
  100% { transform: scale(1); color: var(--celta-bone); }
}

/* ==========================================================================
   THUMB ZONE - O Funil Físico (Fricção Zero)
   ========================================================================== */
.thumb-zone-fixed {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 600px;
  height: calc(var(--thumb-zone-height) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  background: rgba(15, 15, 15, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.thumb-zone-fixed.hidden-checkout {
  transform: translateY(150%);
  opacity: 0;
  pointer-events: none;
}

.cta-zap {
  width: 100%;
  max-width: 600px;
  background: var(--neuro-lava);
  color: white;
  text-align: center;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  font-size: var(--text-lg);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  box-shadow: 0 8px 25px rgba(255, 42, 0, 0.4);
  /* Proteção CLS */
  will-change: transform;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-zap:active {
  transform: translateY(2px);
}

/* ==========================================================================
   ASSINATURA RET TECNOLOGIA (Identidade Real: #FF3333 / #004D73 / #007BB6)
   ========================================================================== */
.ret-footer {
  margin-top: auto;
  padding: 2.5rem 0;
  text-align: center;
  font-size: var(--text-xs);
  color: var(--celta-sub);
}

.ret-signature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.ret-signature__divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #004D73, #007BB6, #004D73, transparent);
  margin-bottom: 0.5rem;
  border-radius: 999px;
}

.ret-signature__badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-sm);
  color: var(--celta-sub);
  letter-spacing: 0.3px;
}

.ret-trigger {
  color: #007BB6;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 1.5px;
  font-size: var(--text-xs);
  text-transform: uppercase;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(0, 123, 182, 0.3);
  padding-bottom: 1px;
}

@media (hover: hover) {
  .ret-trigger:hover,
  .ret-trigger:focus {
    color: #FF3333;
    text-shadow: 0 0 12px rgba(255, 51, 51, 0.4);
    border-bottom-color: #FF3333;
  }
}

.ret-signature__tagline {
  font-size: 0.65rem;
  color: rgba(0, 123, 182, 0.6);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
}

.ret-signature__info {
  margin-top: 0.25rem;
  font-size: 0.7rem;
  color: var(--celta-sub);
  letter-spacing: 0.5px;
  opacity: 0.7;
}

.b2b-machine-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%; /* Previne BUG do 100vw + Scrollbar Vertical do Windows dando rolagem horizontal inútil e irritante */
  height: 100vh;
  height: 100dvh; /* Fix iOS Safari: Dynamic Viewport Height */
  z-index: 1000;
  background: rgba(0, 0, 0, 0.98);
  display: flex;
  align-items: center;
  justify-content: center;
  /* Proteção CLS (Apenas Opacity/Transform) */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(20px);
}

.b2b-machine-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.b2b-payload {
  max-width: 500px;
  width: 90%;
  max-height: 90dvh; /* Protege a Viewport se deitado */
  overflow-y: auto;
  background: #050505;
  border: 1px solid #004D73;
  border-radius: 12px;
  padding: 2rem;
  /* Previne reflow */
  transform: translateY(40px) scale(0.95);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.b2b-machine-overlay.active .b2b-payload {
  transform: translateY(0) scale(1);
}

.b2b-header {
  font-family: 'Inter', sans-serif;
  color: #FF3333;
  font-size: var(--text-xl);
  font-weight: 800;
  margin-bottom: 1rem;
}

.b2b-copy {
  color: #CCC;
  font-size: var(--text-base);
  margin-bottom: 2rem;
}

.b2b-cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 1rem;
  background: linear-gradient(135deg, #004D73, #007BB6);
  color: white;
  font-weight: 800;
  border-radius: 8px;
  font-size: var(--text-base);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  letter-spacing: 0.5px;
}

.b2b-cta:active {
  transform: scale(0.97);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.close-b2b {
  position: fixed;
  top: 1rem;
  right: 1.5rem;
  color: white;
  font-size: 2rem;
  z-index: 1001;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  display: none; /* Só aparece quando modal ativo */
}

.b2b-machine-overlay.active .close-b2b {
  display: block;
}

/* ==========================================================================
   Social Proof Bar (Linktree Killer)
   ========================================================================== */
.social-proof {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 0;
  margin-top: 0.5rem;
}

.social-badge {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: var(--celta-sub);
  text-decoration: none;
  font-size: var(--text-xs);
  font-weight: 600;
  transition: all 0.2s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.social-badge:active {
  transform: scale(0.95);
  background: rgba(255, 255, 255, 0.12);
}

.social-badge svg {
  flex-shrink: 0;
  opacity: 0.8;
}

.social-count {
  font-family: 'Inter', sans-serif;
  font-variant-numeric: tabular-nums;
}

.social-badge--whatsapp {
  background: rgba(37, 211, 102, 0.1);
  border-color: rgba(37, 211, 102, 0.2);
  color: #25D366;
}

.social-badge--whatsapp svg {
  color: #25D366;
  opacity: 1;
}

/* ==========================================================================
   Keyframes & Micro-Animações
   ========================================================================== */
@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 42, 0, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(255, 42, 0, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 42, 0, 0); }
}
/* ==========================================================================
   CHECKOUT MODAL (BOTTOM SHEET)
   ========================================================================== */
.checkout-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%; /* BugFix do Scrollbar width de terceiros (100vw overflows document element) */
  height: 100vh;
  height: 100dvh; /* Garante que Safari iOS não corte os botões do footer */
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  z-index: 8000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.checkout-sheet {
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  background: var(--celta-void);
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  transform: translateY(0);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
  font-family: 'Inter', sans-serif;
}

.hidden-sheet {
  opacity: 0;
  pointer-events: none;
}

.hidden-sheet .checkout-sheet {
  transform: translateY(100%);
}

.checkout-header {
  padding: 1.5rem 1.75rem 1rem 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.checkout-header h2 {
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--celta-bone);
  margin: 0;
  line-height: 1;
}

#close-checkout-btn {
  font-size: 1.75rem;
  color: var(--celta-sub);
  width: 36px;
  height: 36px;
  margin-right: -0.5rem; /* Ajuste óptico pra encostar mais perto da borda real sem invadir a curva do raio */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  transition: background 0.2s;
}

@media (hover: hover) {
  #close-checkout-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #FFF;
  }
}

.checkout-scroll {
  padding: 1.5rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1 1 auto; /* Força o scroll a respeitar o limite de 90vh da tela */
  min-height: 0;  /* Flexbox Hack Vital: Permite engolir o conteúdo excedente em vez de empurrar o Footer pra fora da tela (Safari/Chrome bug) */
}

.checkout-items-list {
  list-style: none;
  padding: 1rem;
  margin: 0 0 1rem 0;
  color: var(--celta-bone);
  font-size: var(--text-base);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.03);
}

.checkout-items-list li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
  border-bottom: 1px dashed rgba(255,255,255,0.05);
  padding-bottom: 0.5rem;
  gap: 1rem;
}

.checkout-items-list li span:first-child {
  flex: 1;
  min-width: 0;
}

.checkout-items-list li span:last-child {
  font-weight: 700;
  color: var(--neuro-warning);
  flex-shrink: 0;
}

.upsell-box {
  background: rgba(255, 193, 7, 0.05);
  border: 1px solid rgba(255, 193, 7, 0.2);
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.upsell-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}

.upsell-checkbox {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--neuro-warning);
}

.upsell-text {
  font-size: var(--text-sm);
  color: var(--celta-bone);
  font-weight: 700;
}

.checkout-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
  margin: 1.5rem 0;
}

.checkout-section-title {
  font-size: var(--text-sm);
  color: var(--celta-sub);
  margin-bottom: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.chip {
  background: rgba(255, 255, 255, 0.05);
  color: var(--celta-sub);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  min-height: 44px; /* WCAG 2.5.5 AAA: Touch Target mínimo */
  display: flex;
  flex: 1; /* Força botões Pix, Cartão e Dinheiro a dividirem espaçamentos iguais */
  justify-content: center;
  align-items: center;
  text-align: center;
  border-radius: 999px;
  font-size: var(--text-sm);
  font-weight: 600;
  transition: all 0.2s ease;
}

.chip.active {
  background: var(--neuro-warning);
  color: var(--celta-void);
  border-color: var(--neuro-warning);
}

.checkout-form-group {
  margin-bottom: 1rem;
  transition: opacity 0.3s ease, height 0.3s ease;
}

.hidden-field {
  display: none;
}

.checkout-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 1.25rem; /* Ajuste Tático: Respiração interna pro placeholder não grudar na borda esquerda */
  border-radius: 8px;
  color: var(--celta-bone);
  /* IMPORTANTE: font-size >= 16px previne auto-zoom no iOS Safari quando clica no input! */
  font-size: max(var(--text-base), 16px);
  font-family: inherit;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
  /* Endereços longos não podem estourar a caixa */
  word-break: break-word;
}

.checkout-input:focus {
  outline: none;
  border-color: var(--neuro-warning);
  background: rgba(255, 255, 255, 0.05);
}

.checkout-footer {
  padding: 1.5rem 1.5rem calc(1.5rem + env(safe-area-inset-bottom, 0px)) 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: var(--celta-void);
}

.checkout-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-lg);
  color: var(--celta-bone);
  margin-bottom: 1.25rem;
}

.checkout-total-row strong {
  font-weight: 900;
  color: #FFF;
}

.full-width {
  width: 100%;
  display: flex;
  justify-content: center;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   EDGE CASES DE VIEWPORT (Micro-Mobile & Landscape Hacks)
   Telas menores que 370px (iPhone SE, Galaxy Z Fold Front Screen)
   ========================================================================== */
@media (max-width: 370px) {
  .pizza-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
  
  .pizza-price {
    margin-top: 0.2rem;
  }

  .pizza-action {
    width: 100%;
    justify-content: center;
    gap: 2rem;
    padding: 0.5rem;
  }

  .b2b-payload {
    padding: 1.5rem 1rem;
  }

  .checkout-header h2 {
    font-size: var(--text-base); /* Evita quebra de linha no título Checkout */
  }
}

/* Landscape Mode Constraint (Quando celular tá deitado jogando) */
@media (orientation: landscape) and (max-height: 400px) {
  .thumb-zone-fixed {
    /* Diminui a grossura da barra de compra pra sobrar tela útil mas respeita as laterais e o Notch */
    padding: 10px calc(1.25rem + env(safe-area-inset-right)) env(safe-area-inset-bottom, 0px) calc(1.25rem + env(safe-area-inset-left));
    height: auto;
  }
  body {
    padding-bottom: 70px;
  }
  .video-container {
    max-width: 200px;
  }
}

/* ==========================================================================
   ACESSIBILIDADE: Reduced Motion (Epilepsia, Motion Sickness, Vestibular)
   WCAG 2.3.3 AAA: Animações pausadas para quem precisa.
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   ACESSIBILIDADE: High Contrast Mode (Windows)
   ========================================================================== */
@media (prefers-contrast: more) {
  .pizza-card {
    border: 2px solid var(--celta-bone);
  }
  .chip {
    border: 2px solid var(--celta-bone);
  }
  .qty-btn {
    border: 2px solid var(--celta-void);
  }
}

/* ==========================================================================
   DESKTOP BREAKPOINT (>= 768px) — Para quem abre no PC do escritório
   ========================================================================== */
@media (min-width: 768px) {
  .pizza-card:hover {
    transform: scale(1.02);
    border-color: rgba(255, 193, 7, 0.2);
  }
  .cta-zap {
    max-width: 500px;
    margin: 0 auto;
  }
  .thumb-zone-fixed {
    padding: 12px 2rem;
  }
}

/* ==========================================================================
   PRINT STYLESHEET (Quando o dono imprime o cardápio na gráfica)
   ========================================================================== */
@media print {
  .thumb-zone-fixed,
  .checkout-overlay,
  .b2b-machine-overlay,
  .video-sales-letter,
  .social-proof,
  .skip-link,
  .delivery-badge { display: none !important; }
  
  body {
    background: white !important;
    color: black !important;
    padding: 0 !important;
  }
  .pizza-card {
    border: 1px solid #ccc !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .brand-title { color: black !important; text-shadow: none !important; }
  .pizza-price { color: #CC0000 !important; }
  .ret-footer { display: none !important; }
}
