/* =============================================
   LOADING SCREEN - REMOVIDO
   ============================================= */

/* 🔄 Loading Screen - COMENTADO
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #C6490B, #FF8A47);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

/* 🎯 Esconder loading quando não está carregando 
body:not(.loading) .loading-screen {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* 🎯 Esconder conteúdo principal durante loading 
body.loading main,
body.loading header,
body.loading nav,
body.loading footer {
  opacity: 0;
  visibility: hidden;
}
*/

/* =============================================
   🚨 CORREÇÕES CRÍTICAS MOBILE - USER SELECT
   ============================================= */

/* 🚨 CRÍTICO: Desabilita seleção de texto em elementos interativos */
button, .btn, [role="button"], a, input[type="button"], input[type="submit"] {
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -moz-user-select: none;
}

/* 🚨 CRÍTICO: Desabilita seleção nos cards de produto */
.product-card, .product-card * {
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -moz-user-select: none;
}

/* 🚨 CRÍTICO: Desabilita seleção em itens do carrinho */
.cart-item, .cart-item-title, .cart-item-controls {
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -moz-user-select: none;
}

/* 🚨 CRÍTICO: Permite seleção apenas em campos de texto */
input[type="text"], input[type="email"], input[type="tel"], textarea, .observacao-input {
    user-select: text;
    -webkit-user-select: text;
    -ms-user-select: text;
    -moz-user-select: text;
}

/* Loading Content - COMENTADO
.loading-content {
  text-align: center;
  color: white;
}

.loading-content h2 {
  margin: 20px 0 10px 0;
  font-size: 1.8rem;
  font-weight: 700;
}

.loading-content p {
  margin: 0;
  font-size: 1rem;
  opacity: 0.9;
}

/* 🌀 Spinner animado 
.spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
*/

/* =============================================
   CORREÇÕES ANTI-OVERFLOW HORIZONTAL
   ============================================= */

/* 🔧 CORREÇÃO CRÍTICA: Box-sizing universal */
*, *::before, *::after {
  box-sizing: border-box !important;
}

/* 🔧 CORREÇÃO CRÍTICA: Prevenir scroll horizontal */
html {
  overflow-x: hidden !important;
}

body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
}

/* 🛡️ Proteção para containers */
.container, .wrapper, main, section {
  max-width: 100vw !important;
  overflow-x: hidden !important;
}

/* =============================================
   VARIÁVEIS CSS ORIGINAIS
   ============================================= */

:root {
  --orange: #C6490B;
  --beige: #FFE6C4;
  --white: #FFFFFF;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
}

body {
  font-family: 'Montserrat', Arial, sans-serif;
  background: var(--beige);
  color: var(--orange);
  margin: 0;
  min-height: 100vh;
}

/* HEADER RESPONSIVO E SEM BUG NO MOBILE */
.header {
  background: var(--orange) !important;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1.5px solid #ffcfa2;
  width: 100%;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 0 min(1.2em, 3vw);
  min-height: 60px;
  box-sizing: border-box;
  width: 100%;
}

.brand-title {
  font-family: 'Reggae One', Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(1.0rem, 3.0vw, 1.6rem);
  color: #fff;
  margin: 0;
  flex: 1 1 160px;
  line-height: 1.1;
  max-width: 60vw;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* ⏱️ REMOVIDO: Tempo de entrega (não mostrar mais)
.header-delivery-time {
  color: #fff;
  font-size: 1.1em;
  font-weight: 500;
  margin-left: 1.2em;
  margin-right: 1.2em;
  flex: 0 0 auto;
  white-space: nowrap;
}
*/

.cart-btn {
  background: #FFE6C4 !important;
  border: none;
  border-radius: 24px;
  padding: 0.4em 1.1em 0.4em 0.7em;
  font-size: 1.08rem;
  font-weight: bold;
  box-shadow: 0 2px 8px #0001;
  display: flex;
  align-items: center;
  gap: 0.35em;
  margin-left: 0.6em;
  cursor: pointer;
  color: var(--orange);
  transition: background 0.18s, color 0.18s;
  z-index: 200;
}

@media (max-width: 700px) {
  .header-container {
    flex-direction: column;
    align-items: stretch;
    gap: 0.3em;
    padding: 0.45em 0.6em 0.25em 0.6em;
    min-height: unset;
  }
  .brand-title {
    font-size: clamp(0.9rem, 2.5vw, 1.3rem);
    margin-bottom: 0.1em;
    flex: none;
    max-width: 100%;
  }
  /* ⏱️ REMOVIDO: CSS não necessário - elemento já foi removido do HTML */
  .cart-btn {
    margin: 0.25em 0 0 0;
    width: 100%;
    justify-content: flex-start;
  }
}

/* NAV CATEGORIAS */
.categories-nav {
  display: flex;
  flex: 1;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 0.35em;
  margin: 0;
  padding: 0.45em 0.2em 0.45em 0.2em;
  background: #fff5ea;
  border-bottom: 1px solid #ffd2a3;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  max-height: 60px;
  scrollbar-width: thin;
  scrollbar-color: #fcc07f #fff;
  position: sticky;
  top: 60px;
  z-index: 90;
}
.categories-nav::-webkit-scrollbar {
  height: 3px;
  background: transparent;
}
.categories-nav::-webkit-scrollbar-thumb {
  background: #fcc07f;
  border-radius: 4px;
}

.category-btn {
  flex: 0 0 auto;
  font-family: 'League Spartan', 'Montserrat', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  background: #fff5ea;
  color: var(--orange);
  border: none;
  padding: 0.45em 1em;
  border-radius: 20px;
  margin: 0 0.15em;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  white-space: nowrap;
  box-shadow: 0 0.5px 2px #0001;
  outline: none;
}
.category-btn.active,
.category-btn:active,
.category-btn:focus {
  background: #fcc07f;
  color: #a73909;
}

/* Carrinho bonito e responsivo */
.cart-btn {
  background: #FFE6C4 !important;
  border: none;
  border-radius: 24px;
  padding: 0.4em 1.1em 0.4em 0.7em;
  font-size: 1.08rem;
  font-weight: bold;
  box-shadow: 0 2px 8px #0001;
  display: flex;
  align-items: center;
  gap: 0.35em;
  margin-left: 1em;
  margin-right: 0;
  cursor: pointer;
  color: var(--orange);
  transition: background 0.18s, color 0.18s;
  position: relative;
  z-index: 200;
}
.cart-emoji { order: 1; font-size: 1.3em; margin-right: 0.1em; }
.cart-label { order: 2; font-size: 1em; font-weight: 600; letter-spacing: 0.01em; margin: 0 0.2em 0 0; }
.cart-count {
  order: 3;
  background: var(--orange);
  color: #fff;
  border-radius: 1em;
  padding: 0 0.4em;
  margin-left: 0.15em;
  font-size: 0.97em;
  min-width: 1.5em;
  display: inline-block;
  text-align: center;
  font-weight: bold;
  position: relative;
  right: 0;
  top: 0;
  z-index: 1;
}
.cart-btn:hover {
  filter: brightness(1.15);
}
@media (max-width: 600px) {
  .cart-btn {
    font-size: 0.95rem;
    padding: 0.3em 0.7em 0.3em 0.5em;
    margin-left: 0.4em;
    margin-right: 0;
    width: auto;
    height: auto;
    flex-direction: row;
    gap: 0.2em;
    background: #FFE6C4 !important;
  }
  .cart-label { order: 1; margin-left: 0; margin-right: 0.13em; }
  .cart-count { order: 2; margin-left: 0; margin-right: 0.13em; }
  .cart-emoji { order: 3; }
}

/* MENU PRINCIPAL */
.menu {
  max-width: 1120px;
  margin: 1.5rem auto 2rem;
  padding: 0 1rem;
}
.menu-category {
  margin-top: 2.6rem;
  scroll-margin-top: 100px;
}
.menu-category-title {
  font-family: 'Reggae One', 'Montserrat', cursive;
  font-size: 2.1rem;
  color: var(--orange);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5em;
}
.products-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
}

/* =============================================
   🎨 REDESIGN MODERNO: VARIÁVEIS CSS PARA CONSISTÊNCIA
   ============================================= */
:root {
  --text-primary: #2c2c2c;
  --text-secondary: #666666;
  --text-muted: #999999;
  --color-primary: #c6490b;
  --color-primary-light: #ff8a47;
  --bg-card: #ffffff;
  --bg-hover: #f8f9fa;
  --border-light: #e9ecef;
  --shadow-light: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-hover: 0 4px 12px rgba(198, 73, 11, 0.15);
  --border-radius: 12px;
  --spacing-xs: 0.5rem;
  --spacing-sm: 0.75rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
}

/* =============================================
   🎨 NOVO LAYOUT: CONTAINER DE PRODUTOS (MOBILE-FIRST)
   ============================================= */
.menu {
  padding: var(--spacing-md);
  max-width: 100%;
  overflow-x: hidden;
}

.menu-category {
  margin-bottom: var(--spacing-lg);
}

/* 🎨 Lista de produtos - Mobile First (vertical) */
.products-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  width: 100%;
}

/* =============================================
   🎨 NOVO DESIGN: CARDS DE PRODUTO RESPONSIVOS
   ============================================= */

/* 📱 MOBILE: Layout em lista (Flexbox horizontal) */
.product-card {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius);
  padding: var(--spacing-md);
  width: 100%;
  max-width: 100%;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-light);
  position: relative;
  overflow: hidden;
}

/* 🖼️ Imagem do produto (lado esquerdo no mobile) */
.product-thumb-wrap {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  border-radius: 8px;
  overflow: hidden;
  background: #f8f9fa;
  border: 1px solid var(--border-light);
}

.product-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

/* 📝 Informações do produto (lado direito no mobile) */
.product-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0; /* Permite truncamento */
  gap: var(--spacing-xs);
}

/* 🏷️ Nome do produto */
.product-name {
  font-family: 'League Spartan', 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin: 0;
  /* Truncamento com elipsis */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 📄 Descrição do produto */
.product-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0;
  /* Truncamento inteligente - máximo 2 linhas */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 💰 Preços */
.product-price {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  flex-wrap: wrap;
  margin-top: auto;
}

.new-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
}

.old-price {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

/* 🔘 Botão de adicionar (moderno) */
.add-direct-btn {
  position: absolute;
  bottom: var(--spacing-sm);
  right: var(--spacing-sm);
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(198, 73, 11, 0.2);
}

.add-direct-btn:hover {
  background: #a03808;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(198, 73, 11, 0.3);
}

/* 🎨 Estados de hover */
.product-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.product-card:hover .product-thumb {
  transform: scale(1.05);
}

/* =============================================
   🖥️ DESKTOP: Layout grid conservador
   ============================================= */
@media (min-width: 768px) {
  .products-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
  }
  
  /* ️ Desktop: Layout horizontal conservador (similar ao mobile) */
  .product-card {
    flex-direction: row;
    align-items: center;
    text-align: left;
    padding: 15px;
    min-height: auto;
  }
  
  .product-thumb-wrap {
    width: 80px;
    height: 80px;
    margin-bottom: 0;
    margin-right: 15px;
    flex-shrink: 0;
  }
  
  .product-info {
    text-align: left;
    flex: 1;
    gap: var(--spacing-xs);
  }
  
  .product-name {
    font-size: 1.1rem;
    text-align: left;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
  
  .product-description {
    text-align: left;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
  
  .product-price {
    justify-content: flex-start;
    margin-top: var(--spacing-xs);
  }
  
  .add-direct-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    margin-top: 0;
    width: auto;
    padding: 8px 12px;
    font-size: 0.9rem;
  }
}

/* =============================================
   🖥️ DESKTOP GRANDE: Ajustes conservadores
   ============================================= */
@media (min-width: 1200px) {
  .products-list {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
  }
  
  .product-thumb-wrap {
    width: 90px;
    height: 90px;
  }
  
  .product-name {
    font-size: 1.15rem;
  }
  
  .menu {
    padding: var(--spacing-lg) var(--spacing-md);
  }
}

/* ----------- MODAL ----------- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4); /* ✅ FUNDO: escuro semi-transparente para destacar modal */
  z-index: 200;
  align-items: center; /* ✅ DESKTOP: centralizar verticalmente */
  justify-content: center; /* ✅ DESKTOP: centralizar horizontalmente */
  transition: opacity 0.23s;
  padding: 150px 20px; /* 🎈 FLUTUANDO: padding extremo para garantir espaçamento visível */
}
.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.23s;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: rgba(255, 255, 255, 0.95); /* ✅ MODAL: fundo sólido para o conteúdo */
  border-radius: 0px; /* 🔲 QUADRADO: bordas totalmente retas */
  width: 90vw; /* 📐 LARGURA: aumentada para desktop */
  max-width: 750px; /* 📐 LARGURA: muito mais largo no desktop */
  height: auto; /* ✅ DESKTOP: altura automática */
  max-height: 50vh; /* 🎈 FLUTUANDO: altura bem menor para garantir espaçamento visível */
  padding: 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); /* ✅ DESKTOP: sombra suave */
  position: relative;
  animation: modalPopFull 0.23s;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow-y: scroll; /* 🔧 FORÇA: sempre mostra barra de rolagem (era auto) */
  backdrop-filter: blur(2px); /* ✅ EFEITO BLUR: desfoca o fundo ligeiramente */
  margin: 100px 0; /* 🎈 FLUTUANDO: ainda mais espaçamento em cima e embaixo */
  /* 🔧 BARRA DE ROLAGEM: personalizada para ficar no canto direito */
  scrollbar-width: thin; /* 🔧 FINA: barra mais discreta */
  scrollbar-color: rgba(198, 73, 11, 0.7) transparent; /* 🔧 SEMI-TRANSPARENTE: track invisível */
  padding-right: 10px; /* 🔧 ESPAÇO: garante espaço para a barra de rolagem */
}

/* 🔧 BARRA DE ROLAGEM WEBKIT (Chrome, Safari, Edge) */
.modal::-webkit-scrollbar {
  width: 8px; /* 🔧 MAIS VISÍVEL: aumentei para 8px */
  background: transparent;
}

.modal::-webkit-scrollbar-track {
  background: rgba(240, 240, 240, 0.3); /* 🔧 VISÍVEL: track levemente visível */
  border-radius: 4px;
  margin: 5px 0; /* 🔧 MARGEM: espaço em cima e embaixo */
}

.modal::-webkit-scrollbar-thumb {
  background: rgba(198, 73, 11, 0.8); /* 🔧 MAIS OPACO: mais visível */
  border-radius: 4px;
  min-height: 20px; /* 🔧 ALTURA MÍNIMA: garante que apareça */
}

.modal::-webkit-scrollbar-thumb:hover {
  background: rgba(143, 45, 0, 1); /* 🔧 TOTALMENTE OPACO: ao passar mouse */
}
@keyframes modalPopFull {
  0% { transform: scale(0.98) translateY(30px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.modal-close {
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--orange);
  position: absolute;
  top: 1.2rem;
  right: 3rem; /* 🔧 MAIS PARA DENTRO: X fica antes da barra de rolagem (era 2rem) */
  cursor: pointer;
  z-index: 1002;
  transition: color 0.2s;
}
.modal-close:hover { color: #8f2d00; }
.modal-content {
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
  padding: 1.5rem 0.8rem 1rem 0.8rem; /* 🔧 ESPAÇAMENTO: reduzido de 1.2rem para 0.8rem lateral */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.modal-img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
  max-height: 300px; /* ✅ AUMENTO: de 260px para 300px */
  max-width: 280px; /* ✅ NOVO: limitar largura máxima */
  margin: 1.5rem auto 1.2rem auto; /* 🚨 CRÍTICO: Margin-top para não ficar cortada */
  background: #fcfaf7;
  display: block; /* ✅ GARANTIR: block para centralização */
}
.modal-product-name {
  font-family: 'League Spartan', 'Montserrat', sans-serif;
  color: var(--orange);
  font-size: 1.6em;
  font-weight: 700;
  text-align: left; /* 🔧 ALINHAMENTO: mudado para esquerda igual à descrição */
  margin-bottom: 0.5rem;
  margin-top: 0.5rem; /* 🚨 CRÍTICO: Margin-top menor por padrão */
  padding: 0 0.5rem; /* 🔧 ESPAÇAMENTO: mesmo padding da descrição */
  hyphens: none; /* 🔧 SEM HÍFEN: evita corte de palavras no nome */
  -webkit-hyphens: none; /* 🔧 SEM HÍFEN: suporte webkit */
  word-break: normal; /* 🔧 QUEBRA: palavras inteiras */
  overflow-wrap: break-word; /* 🔧 QUEBRA: só quebra palavras muito longas */
}

/* 🚨 CRÍTICO: Margin-top maior apenas quando não há imagem */
.modal-content:not(:has(.modal-img)) .modal-product-name,
.modal-content .modal-product-name:first-child {
  margin-top: 1.5rem; /* Espaçamento maior quando é o primeiro elemento */
}
.modal-product-desc {
  color: #964200;
  font-size: 0.9em; /* 🔧 FONTE: diminuída ainda mais de 1.0em para 0.9em */
  margin-bottom: 0.7em;
  text-align: left; /* 🔧 ALINHAMENTO: mudado para esquerda - resolve espaços grandes */
  line-height: 1.4;
  padding: 0 0.5rem; /* 🔧 ESPAÇAMENTO: padding adicional para a descrição */
  word-spacing: normal; /* 🔧 ESPAÇAMENTO: volta ao normal */
  hyphens: none; /* 🔧 SEM HÍFEN: desabilitado para evitar palavras cortadas */
  -webkit-hyphens: none; /* 🔧 SEM HÍFEN: suporte webkit */
  word-break: normal; /* 🔧 QUEBRA: palavras inteiras */
  overflow-wrap: break-word; /* 🔧 QUEBRA: só quebra palavras muito longas se necessário */
}
@media (max-width: 600px) {
  .modal {
    width: 100vw !important; /* 📱 MOBILE: tela cheia no mobile */
    max-width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    border-radius: 0 !important; /* 📱 MOBILE: sem bordas arredondadas */
    margin: 0 !important; /* 📱 MOBILE: sem margin no mobile */
  }
  .modal-overlay {
    padding: 0 !important; /* 📱 MOBILE: sem padding no mobile */
  }
  .modal-content {
    max-width: 100vw;
    padding: 1.2rem 1.0rem 1rem 1.0rem; /* 🔧 ESPAÇAMENTO: reduzido de 1.5rem para 1.0rem lateral */
  }
  .modal-product-name {
    font-size: 1.4em; /* 📱 MOBILE: fonte um pouco menor */
    padding: 0 0.5rem; /* 📱 MOBILE: mesmo padding da descrição */
    text-align: left; /* 📱 MOBILE: alinhado à esquerda */
    hyphens: none; /* 📱 MOBILE: sem hífen para evitar corte de palavras */
    -webkit-hyphens: none; /* 📱 MOBILE: suporte webkit */
    word-break: normal; /* 📱 MOBILE: quebra palavras inteiras */
    overflow-wrap: break-word; /* 📱 MOBILE: quebra só palavras muito longas */
  }
  .modal-product-desc {
    font-size: 0.85em; /* 📱 MOBILE: fonte ainda menor - de 0.95em para 0.85em */
    padding: 0 0.5rem; /* 📱 MOBILE: mesmo padding do nome */
    line-height: 1.5; /* 📱 MOBILE: altura de linha maior para melhor leitura */
    text-align: left; /* 📱 MOBILE: alinhamento à esquerda - resolve espaços grandes */
    word-spacing: normal; /* 📱 MOBILE: espaçamento normal entre palavras */
    hyphens: none; /* 📱 MOBILE: sem hifenização para evitar palavras cortadas */
    -webkit-hyphens: none; /* 📱 MOBILE: suporte webkit */
    word-break: normal; /* 📱 MOBILE: quebra palavras inteiras */
    overflow-wrap: break-word; /* 📱 MOBILE: quebra só palavras muito longas */
  }
  .modal-img {
    max-height: 180px;
  }
  .modal-close {
    top: 0.7rem;
    right: 2rem; /* 🔧 MOBILE: X também fica antes da barra (era 1rem) */
  }
}

/* 🖥️ DESKTOP: Configurações específicas para desktop - FORÇAR FLUTUAÇÃO */
@media (min-width: 601px) {
  .modal {
    width: 80vw !important; /* 📐 DIMINUÍDO: de 90vw para 80vw (menos largura) */
    max-width: 650px !important; /* 📐 DIMINUÍDO: de 750px para 650px */
    max-height: 95vh !important; /* 📏 AUMENTADO: de 65vh para 95vh (apenas 5% de espaçamento total) */
    border-radius: 0px !important;
    margin: 20px 0 !important; /* 🎈 MÍNIMO: apenas 20px de espaçamento (2.5% de uma tela 800px) */
  }
  .modal-overlay {
    padding: 20px !important; /* 🎈 MÍNIMO: apenas 20px de espaçamento total */
  }
}

/* ✅ NOVO: Estilos para campo de Hashi */
.hashi-container {
  margin: 1rem 0;
  padding: 0.8rem;
  background: #f8f6f4;
  border-radius: 12px;
  border: 2px solid #e8e4e0;
}

.hashi-label {
  display: block;
  font-weight: 600;
  color: #964200;
  margin-bottom: 0.5rem;
  font-size: 1.1em;
}

.hashi-input {
  width: 80px;
  padding: 0.5rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1.1em;
  text-align: center;
  font-weight: 600;
  color: var(--orange);
}

.hashi-input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
}

/* ----------- NOVO DESIGN DOS ADICIONAIS (CARD FLEX GRID) ----------- */
.complementos-group {
  margin: 1.2em 0 0.7em 0;
  padding: 0;
  background: none;
  box-shadow: none;
  border: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 10px;
}
.complementos-title {
  font-size: 1.09em;
  font-weight: 600;
  color: #3a3a3a;
  margin: 1.1em 0 0.55em 0;
}
.complementos-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7em;
  margin-bottom: 0.8em;
}
.complemento-card {
  background: #fff;
  border: 1.5px solid #eee;
  border-radius: 10px;
  min-width: 135px;
  flex: 1 1 135px;
  max-width: 230px;
  padding: 0.7em 1em 0.5em 1em;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-sizing: border-box;
  font-size: 1em;
}
.complemento-nome {
  color: #444;
  font-weight: 500;
  font-size: 1em;
  margin-bottom: 0.25em;
  word-break: break-word;
}
.complemento-preco {
  color: #a6490b;
  font-size: 0.98em;
  margin-bottom: 0.5em;
}

/* Controles de quantidade estilo minimalista */
.quantidade-controls {
  display: flex;
  align-items: center;
  gap: 0.2em;
  margin-bottom: 0;
  margin-top: 0.1em;
}
.quantidade-controls button {
  width: 2em;
  height: 2em;
  background: #f3f3f3;
  color: #383838;
  border: none;
  border-radius: 5px;
  font-size: 1.15em;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.13s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.quantidade-controls button:active {
  background: #e6e6e6;
}
.quantidade-controls .quantidade-num {
  width: 2.2em;
  height: 2em;
  text-align: center;
  font-size: 1em;
  border: none;
  background: #f3f3f3;
  border-radius: 5px;
  margin: 0 0.2em;
  color: #222;
  font-weight: 500;
  pointer-events: none;
}

@media (max-width: 700px) {
  .complementos-list {
    gap: 0.5em;
  }
  .complemento-card {
    min-width: 125px;
    max-width: 48vw;
    padding: 0.55em 0.7em 0.4em 0.7em;
    font-size: 0.97em;
  }
  .complementos-title {
    font-size: 1.01em;
    margin-top: 1em;
    margin-bottom: 0.33em;
  }
  body, html, .modal-content, .cart-sidebar, .menu, .product-card {
    max-width: 100vw !important;
    box-sizing: border-box;
    overflow-x: hidden;
  }
  .complementos-group {
    grid-template-columns: 1fr 1fr;
    gap: 6px 6px;
  }
  .complemento-item {
    font-size: 0.92em;
    padding: 0.45em 0.2em 0.4em 0.2em;
  }
}
/* -------- FIM ADICIONAIS -------- */

.observacao-label {
  display: block;
  margin: 0.7em 0 0.3em 0;
  font-size: 0.97em;
  color: #784000;
}
.observacao-input {
  width: 95%;
  max-width: 420px;
  border-radius: 8px;
  border: 2px solid #ffb77b;
  padding: 0.4em 0.6em; /* 🔧 DIMINUÍDO: padding menor */
  font-size: 1.01em; /* 🔧 DIMINUÍDO: fonte menor */
  margin-bottom: 0.2em; /* 🔧 GRUDADO: margin menor para grudar no botão */
  resize: vertical;
  min-height: 50px; /* 🔧 DIMINUÍDO: altura bem menor (de 90px para 50px) */
  box-sizing: border-box;
}
@media (max-width: 700px) {
   .observacao-input {
    font-size: 1.02em; /* 🔧 DIMINUÍDO: fonte menor no mobile */
    min-height: 40px; /* 🔧 DIMINUÍDO: altura menor no mobile (de 120px para 40px) */
    padding: 0.5em 0.7em; /* 🔧 DIMINUÍDO: padding menor no mobile */
  }
}

.add-cart-btn {
  display: block;
  width: 100%;
  background: var(--orange);
  color: var(--white);
  font-family: 'League Spartan', 'Montserrat', sans-serif;
  font-size: 1.1em; /* 🔧 EQUILIBRADO: fonte ligeiramente menor (de 1.15em para 1.1em) */
  border: none;
  border-radius: 12px;
  padding: 0.5em 0; /* 🔧 DIMINUÍDO: altura menor (de 0.8em para 0.5em) */
  cursor: pointer;
  margin-top: 0.1em; /* 🔧 GRUDADO: margin menor para grudar com observação */
  box-shadow: 0 1px 5px #c6490b10;
  transition: filter 0.18s;
}
.add-cart-btn:hover {
  filter: brightness(1.06);
}

/* 🔧 CONTAINER STICKY: observação e botão fixos ao rolar */
.modal-footer-sticky {
  position: sticky;
  bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-top: 1px solid #f0f0f0;
  padding: 15px 20px;
  margin: 0 -20px;
  z-index: 100;
}

/* =============================================
   🚨 CORREÇÃO CRÍTICA: CARRINHO COM BARRA DE ROLAGEM
   ============================================= */

.cart-sidebar {
  position: fixed;
  top: 0; 
  right: -400px;
  width: 370px;
  max-width: 96vw;
  height: 100dvh; /* 🚨 CRÍTICO: DVH para área real do viewport mobile */
  height: 100vh; /* 🚨 FALLBACK: Para navegadores antigos */
  background: #fff;
  border-top-left-radius: 16px;
  border-bottom-left-radius: 16px;
  box-shadow: -6px 0 32px #c6490b44;
  z-index: 210;
  padding: 0;
  display: flex; /* 🚨 CRÍTICO: Flexbox para layout vertical */
  flex-direction: column; /* 🚨 CRÍTICO: Direção vertical */
  transition: right 0.23s cubic-bezier(0.6, 0.1, 0.45, 1.16);
  box-sizing: border-box;
  overflow: hidden; /* 🚨 CRÍTICO: Evita scroll no container principal */
}

.cart-sidebar.active {
  right: 0;
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1rem 0.8rem;
  color: #C6490B;
  font-family: 'League Spartan', 'Montserrat', sans-serif;
  border-bottom: 1px solid #ffe6c4;
  flex-shrink: 0; /* 🚨 CRÍTICO: Header fixo no topo */
  background: #fff;
  position: relative;
  z-index: 3;
}
.close-cart:hover, #close-cart:hover {
  color: #333 !important;
}
.close-cart, #close-cart {
  position: absolute;
  top: 32px;
  right: 24px;
  z-index: 9999;
  background: none;
  border: none;
  font-size: 2.7rem;
  color: #111 !important;
  cursor: pointer;
}
@media (max-width: 700px) {
  .close-cart, #close-cart {
    top: 32px;
    right: 16px;
    font-size: 2.7rem;
    z-index: 9999;
  }
}
/* 🚨 CORREÇÃO CRÍTICA: ESTRUTURA PRINCIPAL DO CARRINHO */
.cart-step-1 {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 80px); /* 🚨 CRÍTICO: Altura dinâmica descontando header */
  min-height: 0;
  flex: 1;
}

/* 🚨 CORREÇÃO CRÍTICA: ÁREA DE ITENS COM SCROLL */
.cart-items {
  flex: 1 1 auto; /* 🚨 CRÍTICO: Cresce para ocupar espaço disponível */
  min-height: 0; /* 🚨 CRÍTICO: Permite flexbox shrink */
  overflow-y: auto; /* 🚨 CRÍTICO: Permite rolagem dos itens */
  overflow-x: hidden;
  padding: 1rem;
  margin: 0;
  /* 🎨 Estilização da barra de rolagem */
  scrollbar-width: thin;
  scrollbar-color: #c6490b #f0f0f0;
}

/* 🎨 Webkit scrollbar para navegadores baseados em Chromium */
.cart-items::-webkit-scrollbar {
  width: 6px;
}
.cart-items::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 3px;
}
.cart-items::-webkit-scrollbar-thumb {
  background: #c6490b;
  border-radius: 3px;
}
.cart-items::-webkit-scrollbar-thumb:hover {
  background: #a03808;
}

/* 🚨 CORREÇÃO CRÍTICA: FOOTER FIXO NO FUNDO */
.cart-summary-footer {
  flex-shrink: 0; /* 🚨 CRÍTICO: Footer sempre visível */
  background: #fff;
  padding: 1rem;
  padding-bottom: calc(3rem + env(safe-area-inset-bottom, 20px)); /* 🚨 CORREÇÃO: Espaço extra para garantir visibilidade */
  border-top: 1px solid #ffe6c4;
  box-shadow: 0 -2px 8px rgba(198, 73, 11, 0.1);
  z-index: 2;
  position: relative;
}

/* 🚨 RESPONSIVIDADE MÓVEL CRÍTICA - CARRINHO SIMPLIFICADO */
@media (max-width: 700px) {
  /* Remover duplicações e simplificar */
  .cart-sidebar {
    height: 100vh !important;
    height: calc(100vh + env(safe-area-inset-bottom, 0px)) !important; /* 🚨 ALTURA TOTAL + SAFE AREA */
    width: 100vw !important; /* 🚨 CRÍTICO: Largura 100% da tela */
    max-width: 100vw !important; /* 🚨 GARANTIR 100% */
    right: -100vw !important; /* 🚨 CORREÇÃO: Esconde 100% da largura */
    border-radius: 0 !important; /* 🚨 Remove bordas arredondadas */
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    background: #fff !important; /* 🚨 FUNDO BRANCO TOTAL */
  }
  
  .cart-sidebar.active {
    right: 0 !important; /* 🚨 APARECE completamente na tela */
  }
  
  .cart-header {
    flex-shrink: 0 !important; /* Header fixo */
    height: auto !important;
  }
  
  .cart-items {
    flex: 1 !important; /* 🚨 CRÍTICO: Ocupa espaço disponível */
    overflow-y: auto !important; /* 🚨 CRÍTICO: Permite scroll dos itens */
    padding: 0.8rem;
    padding-bottom: 2rem !important; /* 🚨 ESPAÇO EXTRA NO FINAL DOS ITENS */
    min-height: 100px !important; /* Garante espaço mínimo */
  }
  
  .cart-summary-footer {
    flex-shrink: 0 !important; /* Footer fixo */
    padding: 0.8rem;
    padding-bottom: calc(5rem + env(safe-area-inset-bottom, 30px)) !important; /* 🚨 CORREÇÃO: Espaço MAIOR para garantir visibilidade em todos dispositivos */
    height: auto !important; /* Altura automática baseada no conteúdo */
    display: block !important; /* 🚨 GARANTIR QUE APAREÇA */
    background: #fff !important;
    border-top: 1px solid #ffe6c4;
    margin-bottom: 0 !important; /* 🚨 CORREÇÃO: Sem margem, apenas padding */
  }
}

.cart-item {
  border-bottom: 1px solid #ffe6c4;
  background: #fcf6f1;
  border-radius: 10px;
  margin-bottom: 0.7em;
  padding: 0.7em 0.7em;
  /* 🚨 CRÍTICO: CSS Grid para layout consistente */
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto auto;
  gap: 0.5em 0.7em;
  align-items: start;
}
.cart-item-title {
  font-weight: 700;
  color: #c6490b;
  font-size: 1.11em;
  line-height: 1.3;
  /* 🚨 CRÍTICO: Grid positioning e word break */
  grid-column: 1;
  grid-row: 1;
  word-break: break-word; /* 🚨 CRÍTICO: Quebra palavras longas */
  overflow-wrap: break-word;
  hyphens: none;
  -webkit-hyphens: none;
}
.cart-item-complementos, .cart-item-obs {
  font-size: 0.96em;
  color: #9d480c;
  /* 🚨 CRÍTICO: Grid positioning */
  grid-column: 1;
  word-break: break-word;
}
.cart-item-obs {
  margin-left: 1em;
  /* 🚨 CRÍTICO: Grid positioning */
  grid-column: 1;
}
.cart-item-controls {
  display: flex;
  gap: 0.6em;
  margin-top: 0.2em;
  /* 🚨 CRÍTICO: Grid positioning e largura fixa */
  grid-column: 2;
  grid-row: 1 / -1; /* 🚨 CRÍTICO: Ocupa todas as linhas */
  align-self: start;
  min-width: 120px; /* 🚨 CRÍTICO: Largura mínima fixa */
  justify-content: flex-end;
  flex-direction: column; /* 🚨 CRÍTICO: Botões em coluna */
}
.cart-item-btn {
  background: #ffe6c4;
  color: #c6490b;
  border: none;
  border-radius: 6px;
  padding: 0.3em 0.65em;
  font-size: 0.98em;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.17s;
}
.cart-item-btn:hover { background: #ffcfa2; }

.cart-summary {
  margin: 0.7em 0;
  font-size: 1em;
  color: #c6490b;
  background: #ffe6c4;
  border-radius: 8px;
  padding: 0.7em 1em;
  margin-bottom: 0.7em;
}
.cart-summary .total {
  font-weight: bold;
  font-size: 1.14em;
}

/* 🚨 CORREÇÃO CRÍTICA: SCROLL CHECKOUT MOBILE */
@media (max-width: 700px) {
  /* 🚨 APLICAR BLOQUEIO APENAS QUANDO MODAL ESTIVER ABERTO */
  body.modal-open, body.cart-open {
    overflow: hidden !important; /* 🚨 BLOQUEAR SCROLL DO SITE */
    height: 100vh !important; /* 🚨 ALTURA FIXA */
    position: fixed !important; /* 🚨 FIXAR SITE PRINCIPAL */
    touch-action: none !important; /* 🚨 BLOQUEAR GESTOS DO SITE */
  }
  
  body.modal-open .container, 
  body.modal-open .wrapper, 
  body.modal-open main, 
  body.modal-open section,
  body.cart-open .container, 
  body.cart-open .wrapper, 
  body.cart-open main, 
  body.cart-open section {
    overflow: hidden !important; /* 🚨 BLOQUEAR APENAS COM MODAL ABERTO */
    height: 100vh !important; /* 🚨 ALTURA FIXA APENAS COM MODAL */
    position: relative !important;
  }
  
  .checkout-form {
    overflow-y: auto !important; /* 🚨 SCROLL APENAS NO CHECKOUT */
    max-height: 80vh !important; /* 🚨 ALTURA MÁXIMA PARA FORÇAR SCROLL */
    min-height: auto !important; /* 🚨 ALTURA MÍNIMA AUTOMÁTICA */
    padding-bottom: 4rem !important; /* 🚨 PADDING EXTRA NO MOBILE */
    touch-action: pan-y !important; /* 🚨 GESTOS APENAS NO CHECKOUT */
    position: relative !important; /* 🚨 POSIÇÃO RELATIVA */
    z-index: 9999 !important; /* 🚨 ACIMA DE TUDO */
    background: #fff !important; /* 🚨 FUNDO BRANCO */
  }
  
  .payment-options, .endereco-container, #payment-options-list {
    overflow: visible !important; /* 🚨 PERMITIR EXPANSÃO */
    max-height: none !important; /* 🚨 SEM LIMITE DE ALTURA */
  }
  
  /* 🚨 BOTÃO FINALIZAR NO MOBILE */
  .finalize-btn {
    margin-bottom: 3rem !important; /* 🚨 MARGEM EXTRA NO MOBILE */
    padding: 1rem 0 !important; /* 🚨 PADDING MAIOR NO MOBILE */
    position: relative !important; /* 🚨 POSIÇÃO RELATIVA */
    z-index: 10 !important; /* 🚨 ACIMA DE TUDO */
  }
}

.checkout-form {
  background: #fff7f0;
  border-radius: 12px;
  box-shadow: 0 2px 20px #c6490b33;
  padding: 1.2em 1em;
  padding-bottom: 3rem !important; /* 🚨 PADDING EXTRA NO FINAL */
  margin-bottom: 1em;
  width: 100%;
  box-sizing: border-box;
  max-width: 100%;
  overflow: visible; /* 🚨 CORREÇÃO: Permitir que o conteúdo expanda */
  
  /* 🚨 CRÍTICO: SCROLL HABILITADO APENAS NO CHECKOUT */
  overflow-y: auto !important; /* 🚨 SCROLL VERTICAL APENAS NO CHECKOUT */
  max-height: 85vh !important; /* 🚨 ALTURA MÁXIMA PARA FORÇAR SCROLL */
  touch-action: pan-y !important; /* 🚨 GESTOS VERTICAIS APENAS NO CHECKOUT */
  position: relative !important; /* 🚨 POSIÇÃO RELATIVA */
  z-index: 999 !important; /* 🚨 ACIMA DE TUDO */
}
.delivery-options {
  display: flex;
  gap: 1.5em;
  margin-bottom: 0.5em;
}
.address-info {
  font-size: 0.97em;
  color: #723202;
  margin-bottom: 0.6em;
}
.payment-options {
  margin: 1em 0;
}
.payment-options label {
  background: #ffe6c4;
  padding: 0.3em 0.8em;
  border-radius: 8px;
  margin-right: 0.8em;
  color: #c6490b;
  font-weight: 600;
}
.payment-options label input[type="radio"] {
  margin-right: 0.3em;
}
.client-info input {
  width: 100%;
  border: 1.5px solid #ffb77b;
  border-radius: 8px;
  font-size: 1.03em;
  margin-bottom: 0.6em;
  padding: 0.5em 0.7em;
  box-sizing: border-box;
  max-width: 100%;
}

.endereco-container {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 0.6em;
}

.endereco-container input {
  margin-bottom: 0;
}

.finalize-btn {
  width: 100%;
  background: var(--orange);
  color: var(--white);
  font-family: 'League Spartan', 'Montserrat', sans-serif;
  font-size: 1.09em;
  padding: 0.7em 0;
  min-height: 48px; /* 🚨 GARANTIR altura mínima para toque */
  border: none;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 0.7em;
  margin-bottom: calc(2rem + env(safe-area-inset-bottom, 0px)) !important; /* 🚨 CORREÇÃO: Margem + safe area */
  font-weight: bold;
  transition: background 0.2s;
  position: relative !important; /* 🚨 POSIÇÃO RELATIVA */
  z-index: 10 !important; /* 🚨 ACIMA DE OUTROS ELEMENTOS */
}
.finalize-btn:hover {
  background: #a93e07;
}

.overlay, .sidebar-overlay {
  opacity: 0;
  pointer-events: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.16);
  z-index: 205;
  transition: opacity 0.2s;
}
.overlay.active, .sidebar-overlay.active {
  opacity: 1;
  pointer-events: auto;
  animation: fadeIn 0.2s;
}

::-webkit-scrollbar { width: 8px; background: #ffe6c4; }
::-webkit-scrollbar-thumb { background: #c6490b55; border-radius: 4px; }

@media (max-width: 900px) {
  .menu {
    max-width: 98vw;
  }
  .header-container {
    max-width: 98vw;
  }
}

@media (max-width: 600px) {
  .header-container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.2em;
    padding: 0.4em 0.4em 0 0.4em;
    height: 52px;
  }
  .brand-title {
    font-size: clamp(0.9rem, 2.3vw, 1.2rem);
    text-align: left;
    margin: 0;
    flex: 1;
    max-width: 100%;
  }
  .categories-nav {
    gap: 0.15em;
    padding: 0.35em 0.1em;
    min-height: 38px;
    max-height: 48px;
    font-size: 0.98em;
    margin: 0.1em 0;
    justify-content: flex-start;
    scroll-padding-left: 8px;
    position: sticky;
    top: 52px;
    z-index: 99;
    background: #fff5ea;
    border-bottom: 1px solid #ffd2a3;
  }
  .cart-btn {
    font-size: 0.95rem;
    padding: 0.3em 0.7em 0.3em 0.5em;
    margin-left: 0.4em;
    margin-right: 0;
    width: auto;
    height: auto;
    flex-direction: row;
    gap: 0.2em;
    background: #FFE6C4 !important;
  }
  .cart-label { order: 1; margin-left: 0; margin-right: 0.13em; }
  .cart-count { order: 2; margin-left: 0; margin-right: 0.13em; }
  .cart-emoji { order: 3; }
  .menu {
    padding: 0 0.2em;
    max-width: 99vw;
  }
}

/* --- STICKY HEADER E CATEGORIAS MOBILE SEMPRE VISÍVEIS --- */
@media (max-width: 700px) {
  .header {
    position: sticky;
    top: 0;
    z-index: 120;
    width: 100vw;
    left: 0;
    right: 0;
  }
  .categories-nav {
    position: sticky;
    top: 52px; /* altura do header no mobile */
    z-index: 110;
    width: 100vw;
    left: 0;
    right: 0;
    background: #fff5ea;
    border-bottom: 1px solid #ffd2a3;
  }
}

/* === Botão de Pagamento com Chevron === */
.payment-btn-with-chevron {
  display: flex;
  align-items: center;
  gap: 0;
  border-radius: 8px;
  overflow: visible; /* ✅ ALTERADO: permitir indicador por cima */
  background: linear-gradient(90deg, #C6490B 60%, #ff9831 100%);
  box-shadow: 0 2px 10px #c6490b22;
  transition: background 0.18s, transform 0.13s;
  cursor: pointer;
  position: relative; /* ✅ ADICIONADO: para posicionamento absoluto do indicador */
}

.payment-btn-with-chevron:hover {
  background: linear-gradient(90deg, #a53c00 55%, #ffa552 100%);
  transform: scale(1.02);
}

.payment-btn-with-chevron button#choose-payment-btn {
  background: transparent;
  color: #fff;
  border: none;
  font-weight: bold;
  font-size: 1.11em;
  padding: 0.7em 1.3em;
  cursor: pointer;
  flex: 1;
  text-align: left;
  transition: none;
  border-radius: 0;
  box-shadow: none;
  outline: none;
}

.payment-btn-with-chevron button#choose-payment-btn:hover {
  background: transparent;
  transform: none;
}

.payment-btn-with-chevron button#choose-payment-btn:focus {
  outline: none;
}

.payment-collapse-toggle {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s;
  margin: 6px 8px 6px 0;
}

.payment-collapse-toggle:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

.payment-collapse-toggle .chevron {
  width: 8px;
  height: 8px;
  border-style: solid;
  border-width: 0 2px 2px 0;
  display: inline-block;
  border-color: #fff;
  transform: rotate(-45deg); /* Padrão: aponta para a direita (colapsado) */
  transition: transform 0.2s ease-in-out;
}

/* Quando expandido, a seta aponta para baixo */
.payment-collapse-toggle:not(.collapsed) .chevron {
  transform: rotate(45deg);
}

#payment-options-list {
  background: #fff7ed;
  border-radius: 8px;
  box-shadow: 0 5px 18px #c6490b19;
  padding: 0.8em 1em;
  margin-top: 6px;
  border: 1px solid #ffe6c4;
}
#payment-options-list label {
  display: block;
  margin: 0.5em 0;
  font-weight: 500;
  color: #C6490B;
  cursor: pointer;
}
.modal-quantity {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-bottom: 1em;
  justify-content: flex-start;
}
.modal-qty-btn {
  background: #ffe6c4;
  border: none;
  border-radius: 50%;
  font-size: 1.3em;
  width: 2em;
  height: 2em;
  color: #c6490b;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.17s;
}
.modal-qty-btn:hover {
  background: #ffcfa2;
}
.modal-qty-input {
  width: 2.5em;
  text-align: center;
  font-size: 1.1em;
  border-radius: 6px;
  border: 1px solid #ffd3b6;
  background: #fff7f0;
  color: #c6490b;
  font-weight: bold;
  margin: 0 0.2em;
}
body.cart-open,
body.modal-open {
  overflow: hidden !important; /* 🚨 BLOQUEAR SCROLL DO SITE PRINCIPAL */
  height: 100vh !important; /* 🚨 ALTURA FIXA PARA BLOQUEAR SCROLL */
  touch-action: none !important; /* 🚨 BLOQUEAR GESTOS NO SITE PRINCIPAL */
  overscroll-behavior: contain;
  position: fixed !important; /* 🚨 FIXAR SITE PRINCIPAL */
  width: 100vw;
}
@media (max-width: 700px) {
  .modal-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    box-sizing: border-box;
    padding: 0.8em 0.8em 1.1em 0.8em;
    background: #fff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .modal-content {
    padding-bottom: 90px !important;
  }
  .add-cart-btn {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    display: block;
    text-align: center;
    box-sizing: border-box;
    border-radius: 12px;
  }
}
.destaque-btn {
  background: linear-gradient(90deg, #ffae42 50%, #ffd700 100%);
  color: #a73909;
  font-weight: bold;
  border: 2px solid #ffc85a;
  box-shadow: 0 2px 8px #ffae4210;
}
.destaque-btn.active,
.destaque-btn:active,
.destaque-btn:focus {
  background: linear-gradient(90deg, #ffd700 60%, #ffae42 100%);
  color: #a73909;
}

/* Mini-carrinho flutuante (Estilos Base) */
.mini-cart {
  position: fixed;
  bottom: -200px; /* Começa escondido */
  right: 20px; /* Posição padrão para telas maiores */
  width: 280px; /* Largura padrão para telas maiores */
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(198, 73, 11, 0.2);
  padding: 15px;
  z-index: 1000;
  transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 2px solid #FFE6C4;
  /* Adicione box-sizing para consistência (opcional, mas bom) */
  box-sizing: border-box; 
}

.mini-cart.show {
  bottom: 20px;
}
.mini-cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  color: #C6490B;
  font-weight: bold;
}
.mini-cart-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #C6490B;
  cursor: pointer;
}
.mini-cart-item {
  padding: 10px;
  background-color: #fff7f0;
  border-radius: 8px;
  margin-bottom: 10px;
  font-size: 0.9rem;
}
.mini-cart-view {
  width: 100%;
  background-color: #C6490B;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 0;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s;
}
.mini-cart-view:hover {
  background-color: #a73909;
}
@media (max-width: 600px) {
  .mini-cart {
    width: 90%; /* Ocupa 90% da largura da tela */
    
    /* Centralização: */
    left: 50%; 
    transform: translateX(-50%);
    
    /* Sobrescreve/Remove o 'right' da regra base para evitar conflitos */
    right: auto; 
    
    /* Ajuste o 'bottom' se necessário para a posição inicial em telas pequenas */
    /* bottom: -200px; (mantém o mesmo ou ajusta) */
  }
}
/* Adicione ao final do style.css para etapas do carrinho */
.cart-step {
  width: 100%;
  transition: opacity 0.2s;
}
.cart-step[style*="display: none"] {
  opacity: 0;
  pointer-events: none;
}
.modal {
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-height: 100vh;
}
.modal-content {
  flex: 1 1 auto;
  overflow-y: auto;
  padding-bottom: 2.5em;
}
.modal-footer {
  flex-shrink: 0;
  background: #fff;
  box-shadow: 0 -1px 10px #c6490b18;
  padding: 1em 1.2em 1.2em 1.2em;
  padding-bottom: calc(1.2em + env(safe-area-inset-bottom, 0px)); /* 🚨 CRÍTICO: Área segura */
  width: 100%;
  position: sticky;
  bottom: 0;
  left: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
}
.add-cart-btn {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}
@media (max-width: 700px) {
  .modal-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    box-sizing: border-box;
    padding: 0.8em 0.8em 1.1em 0.8em;
    background: #fff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .modal-content {
    padding-bottom: 90px !important;
  }
  .add-cart-btn {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    display: block;
    text-align: center;
    box-sizing: border-box;
    border-radius: 12px;
  }
}

/* 🚨 CRÍTICO: Correção específica para área segura em mobile */
@media (max-width: 700px) {
  .modal-footer {
    padding-bottom: calc(1.5em + env(safe-area-inset-bottom, 30px)) !important; /* 🚨 CRÍTICO: Mais padding */
    min-height: 80px !important; /* 🚨 CRÍTICO: Altura mínima maior */
  }
  
  /* 🚨 CRÍTICO: Correção do botão cortado no modal */
  .modal-content {
    padding-bottom: 180px !important; /* 🚨 CRÍTICO: Ainda mais espaço para garantir que não corte */
  }
}

/* Destaca o X do modal */
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  font-size: 2.5rem;      /* Bem grande */
  background: rgba(0,0,0,0.4); /* Fundo escuro semi-transparente */
  color: #fff;            /* Cor branca */
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: background 0.2s, color 0.2s, transform 0.1s;
  outline: none;
}

/* Efeito no hover (mouse por cima) */
.modal-close:hover,
.modal-close:focus {
  background: #e74c3c;
  color: #fff;
  transform: scale(1.1);
}

/* Garante que o botão X fica por cima nas telas pequenas também */
@media (max-width: 600px) {
  .modal-close {
    top: 24px;
    right: 8px;
    font-size: 2.2rem;
    width: 42px;
    height: 42px;
  }
}

/* Garante que o modal está com posicionamento relativo para o X absoluto funcionar */
.modal {
  position: relative;
}
/* Botão + para adicionar direto ao carrinho */
.add-direct-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  background: #ff6a00;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 1.3em;
  font-weight: bold;
  box-shadow: 0 2px 8px #0002;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.92;
  transition: opacity 0.18s;
}

/* Garante que o card tenha position:relative */
.product-card {
  position: relative;
}

/* No desktop, só mostra o botão ao passar o mouse */
@media (min-width: 701px) {
  .add-direct-btn {
    opacity: 0;
    pointer-events: none;
  }
  .product-card:hover .add-direct-btn {
    opacity: 1;
    pointer-events: auto;
  }
}

/* No mobile, layout ajustado: Nome/Preço à esquerda, Botão/Imagem à direita */
@media (max-width: 700px) {
  .product-card {
    display: grid;
    /* 3 colunas: Info | Botão | Imagem */
    grid-template-columns: 1fr auto auto;
    /* Linhas implícitas baseadas no conteúdo e posicionamento */
    align-items: center; /* Centraliza verticalmente itens nas suas células */
    gap: 0.1em 0.5em; /* Espaçamento linha | Espaçamento coluna */
    position: relative;
    width: 98vw;
    min-width: 95vw;
    max-width: 99vw;
    border-radius: 12px;
    margin: 0.5em auto;
    padding: 0.7em 0.5em;
  }

  /* Container de Nome/Preço na primeira coluna, ocupando a altura */
  .product-info {
    grid-column: 1 / 2;
    grid-row: 1 / 3; /* Ocupa a altura das linhas implícitas */
    display: flex;
    flex-direction: column; /* Empilha nome e preço */
    justify-content: center; /* Centraliza verticalmente o conteúdo */
    align-items: flex-start; /* Alinha texto à esquerda */
    gap: 0.1em;
  }

  .product-name {
    margin-bottom: 0;
    font-size: 1.08em;
  }

  .product-price {
    margin-bottom: 0;
  }

  /* Botão na segunda coluna, centralizado */
  .add-direct-btn {
    grid-column: 2 / 3;
    grid-row: 1 / 3; /* Ocupa a altura */
    justify-self: center; /* Centraliza horizontalmente na coluna */
    align-self: center; /* Centraliza verticalmente */
    position: static; /* Remove posicionamento absoluto */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    pointer-events: auto;
    width: 32px;
    height: 32px;
    margin: 0;
  }

  /* Imagem na terceira coluna, centralizada */
  .product-thumb-wrap {
    grid-column: 3 / 4;
    grid-row: 1 / 3; /* Ocupa a altura */
    justify-self: center; /* Centraliza horizontalmente na coluna */
    align-self: center; /* Centraliza verticalmente */
    margin: 0;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
/* ---------- MELHORIAS DO CARRINHO ---------- */
.cart-thumb{
  width:48px;
  height:48px;
  object-fit:cover;
  border-radius:8px;
  border:1px solid #ffe6c4;
  background:#fff7ef;
}

/* Botões com emoji */
.cart-item-edit-btn{
  background:#dfe9ff;
  color:#3563ff;
}
.cart-item-edit-btn:hover{
  background:#c9d9ff;
}

.cart-item-remove-btn{
  background:#f9d6d6;
  color:#c42b2b;
}
.cart-item-remove-btn:hover{
  background:#f5c3c3;
}
.icon-up {
  display: inline-block;
  transform: rotate(-225deg);
}

/* === Estilos do Campo de Troco === */
.troco-field {
  margin: 1.5em 0;
  animation: slideIn 0.3s ease-out;
  width: 100%;
  box-sizing: border-box;
}

.troco-container {
  background: linear-gradient(135deg, #fff9f0 0%, #ffeedc 100%);
  border: 2px solid #ffcc99;
  border-radius: 16px;
  padding: 1em;
  display: flex;
  align-items: flex-start;
  gap: 1em;
  box-shadow: 0 4px 16px rgba(198, 73, 11, 0.1);
  transition: all 0.3s ease;
  width: 100%;
  box-sizing: border-box;
  max-width: 100%;
  overflow: hidden;
}

.troco-container:hover {
  border-color: var(--orange);
  box-shadow: 0 6px 20px rgba(198, 73, 11, 0.15);
}

.troco-icon {
  font-size: 1.5em;
  background: var(--orange);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(198, 73, 11, 0.3);
}

.troco-content {
  flex: 1;
  min-width: 0;
  width: 100%;
}

.troco-label {
  font-weight: bold;
  font-size: 1em;
  color: var(--orange);
  display: block;
  margin-bottom: 0.3em;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.troco-description {
  font-size: 0.85em;
  color: #8b4513;
  margin: 0 0 1em 0;
  line-height: 1.3;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.troco-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: white;
  border: 2px solid #ffcc99;
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

.troco-input-wrapper:focus-within {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(198, 73, 11, 0.1);
}

.currency-symbol {
  background: #ffcc99;
  color: var(--orange);
  font-weight: bold;
  padding: 0.6em 0.8em;
  font-size: 1em;
  flex-shrink: 0;
}

.troco-input {
  border: none;
  outline: none;
  font-size: 1em;
  padding: 0.6em 0.8em;
  flex: 1;
  background: transparent;
  color: var(--orange);
  font-weight: 600;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.troco-input::placeholder {
  color: #cc9966;
}

.troco-input:disabled {
  background: #f5f5f5;
  color: #999;
}

.troco-error {
  display: none;
  color: #d63384;
  font-size: 0.8em;
  margin-top: 0.5em;
  font-weight: 500;
  background: #ffeaea;
  padding: 0.4em 0.6em;
  border-radius: 6px;
  border-left: 3px solid #d63384;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

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

/* === Responsividade para o campo de troco === */
@media (max-width: 600px) {
  .troco-container {
    flex-direction: column;
    text-align: left;
    padding: 1em;
    gap: 0.8em;
  }
  
  .troco-icon {
    align-self: flex-start;
    margin-bottom: 0;
    width: 35px;
    height: 35px;
    font-size: 1.3em;
  }
  
  .troco-label {
    font-size: 0.95em;
  }
  
  .troco-description {
    font-size: 0.8em;
    margin-bottom: 0.8em;
  }
  
  .currency-symbol {
    padding: 0.5em 0.7em;
    font-size: 0.95em;
  }
  
  .troco-input {
    padding: 0.5em 0.7em;
    font-size: 0.95em;
  }
}

/* === Responsividade para o botão de pagamento === */
@media (max-width: 600px) {
  .payment-btn-with-chevron {
    border-radius: 6px;
  }
  
  .payment-btn-with-chevron button#choose-payment-btn {
    font-size: 1.05em;
    padding: 0.6em 1.1em;
  }
  
  .payment-collapse-toggle {
    width: 26px;
    height: 26px;
    margin-right: 6px;
  }
  
  .payment-collapse-toggle .chevron {
    width: 7px;
    height: 7px;
  }
}

@media (max-width: 480px) {
  .payment-btn-with-chevron button#choose-payment-btn {
    font-size: 1em;
    padding: 0.5em 1em;
  }
  
  .payment-collapse-toggle {
    width: 24px;
    height: 24px;
    margin-right: 4px;
  }
  
  .payment-collapse-toggle .chevron {
    width: 6px;
    height: 6px;
  }
}

/* === Estilos para Tipos de Cartão === */
.card-types-field {
  background: #fff;
  border: 1px solid #ffcc99;
  border-radius: 12px;
  padding: 1.2em;
  margin-top: 1em;
  box-shadow: 0 2px 8px rgba(198, 73, 11, 0.1);
  transition: all 0.3s ease;
}

.card-types-header {
  margin-bottom: 1em;
  text-align: center;
}

.card-types-title {
  font-size: 1.1em;
  font-weight: 600;
  color: var(--orange);
  display: block;
}

.card-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.8em;
}

.card-type-option {
  position: relative;
  cursor: pointer;
  display: block;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  padding: 0.8em 0.6em;
  transition: all 0.2s ease;
  background: #fafafa;
}

.card-type-option:hover {
  border-color: #ffcc99;
  background: #fff5e6;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(198, 73, 11, 0.15);
}

.card-type-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.card-type-option input[type="radio"]:checked + .card-brand-container {
  border-color: var(--orange);
  background: #fff5e6;
}

.card-type-option input[type="radio"]:checked {
  opacity: 1;
}

.card-brand-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5em;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.5em;
  transition: all 0.2s ease;
}

.card-brand-logo {
  width: 50px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8em;
  font-weight: bold;
  border-radius: 6px;
  color: white;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.card-brand-name {
  font-size: 0.9em;
  font-weight: 600;
  color: #333;
  text-align: center;
}

/* Cores específicas das bandeiras */
.visa-logo {
  background: linear-gradient(135deg, #1a1f71 0%, #0f3460 100%);
  color: white;
}

.mastercard-logo {
  background: linear-gradient(135deg, #eb001b 0%, #f79e1b 100%);
  color: white;
}

.elo-logo {
  background: linear-gradient(135deg, #ffcb05 0%, #f7941d 100%);
  color: #333;
  text-shadow: none;
}

.amex-logo {
  background: linear-gradient(135deg, #006fcf 0%, #0048a3 100%);
  color: white;
  font-size: 0.7em;
}

.hipercard-logo {
  background: linear-gradient(135deg, #d50000 0%, #b71c1c 100%);
  color: white;
  font-size: 0.7em;
}

.diners-logo {
  background: linear-gradient(135deg, #0079be 0%, #00558b 100%);
  color: white;
  font-size: 0.7em;
}

/* Indicador de seleção */
.card-type-option input[type="radio"]:checked ~ .card-brand-container::after {
  content: '✓';
  position: absolute;
  top: -5px;
  right: -5px;
  width: 20px;
  height: 20px;
  background: var(--orange);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8em;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(198, 73, 11, 0.3);
}

/* Responsividade */
@media (max-width: 600px) {
  .card-types-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6em;
  }
  
  .card-type-option {
    padding: 0.6em 0.4em;
  }
  
  .card-brand-logo {
    width: 45px;
    height: 25px;
    font-size: 0.7em;
  }
  
  .card-brand-name {
    font-size: 0.8em;
  }
}

@media (max-width: 400px) {
  .card-types-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.4em;
  }
  
  .card-brand-logo {
    width: 40px;
    height: 22px;
    font-size: 0.6em;
  }
  
  .card-brand-name {
    font-size: 0.75em;
  }
}

/* === ESTADO MINIMIZADO DOS TIPOS DE CARTÃO === */
.card-types-field.minimized {
  display: none !important;
  transition: all 0.3s ease;
}

.card-types-field.minimized .card-types-grid {
  display: none;
}

.card-types-field.minimized .card-types-title {
  display: none;
}

/* Animação suave para minimização */
.card-types-field:not(.minimized) .card-types-grid {
  animation: fadeIn 0.3s ease;
}

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

/* Animação para o campo de tipos de cartão */
.card-types-field {
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.card-types-field[style*="display: block"] {
  opacity: 1;
  transform: translateY(0);
}

/* Botão para expandir/minimizar no mobile */
@media (max-width: 600px) {
  .card-types-field {
    position: relative;
  }
}

/* === CORREÇÕES DO TOTAL E FORMULÁRIO DE ENDEREÇO === */

/* Estilo do Total Sempre Visível (FONTE MENOR E ELEGANTE) */
#total-sempre-visivel {
  background: linear-gradient(135deg, #C6490B 0%, #a53c00 100%);
  color: white;
  padding: 10px 18px;
  border-radius: 8px;
  margin: 12px 0;
  text-align: center;
  font-weight: 600;
  font-size: 0.95em;
  box-shadow: 0 3px 12px rgba(198, 73, 11, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  letter-spacing: 0.2px;
  transition: all 0.3s ease;
}

#total-sempre-visivel:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(198, 73, 11, 0.3);
}

/* Melhorias nos Campos de Endereço */
.endereco-compacto-wrapper {
  margin: 15px 0;
}

.endereco-toggle {
  width: 100%;
  background: #f8f9fa;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 0.95em;
  color: #495057;
  transition: all 0.3s ease;
}

.endereco-toggle:hover {
  background: #e9ecef;
  border-color: #C6490B;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(198, 73, 11, 0.15);
}

.endereco-toggle.campos-incompletos {
  border-color: #dc3545;
  background: #fff5f5;
}

.endereco-toggle.campos-completos {
  border-color: #28a745;
  background: #f8fff8;
}

.endereco-toggle-content {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.endereco-status {
  font-size: 0.85em;
  color: #dc3545;
  font-weight: 600;
  margin-left: auto;
  margin-right: 15px;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(220, 53, 69, 0.1);
}

.endereco-status.completo {
  color: #28a745;
  background: rgba(40, 167, 69, 0.1);
}

.endereco-chevron {
  transition: transform 0.3s ease;
  font-size: 0.9em;
  color: #6c757d;
}

.endereco-chevron.rotated {
  transform: rotate(180deg);
}

.endereco-campos {
  background: #f8f9fa;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  padding: 20px;
  margin-top: 8px;
  animation: expandir 0.3s ease-out;
}

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

.campo-linha {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.campo-linha input {
  flex: 1;
  padding: 10px 14px;
  border: 2px solid #ced4da;
  border-radius: 6px;
  font-size: 0.95em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
}

.endereco-campos textarea {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid #ced4da;
  border-radius: 6px;
  font-size: 0.95em;
  resize: vertical;
  margin-bottom: 12px;
  min-height: 60px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
}

.campo-linha input:focus {
  outline: none;
  border-color: #C6490B;
  box-shadow: 0 0 0 3px rgba(198, 73, 11, 0.15);
  transform: translateY(-1px);
}

.campo-linha input.campo-erro {
  border-color: #dc3545;
  background: #fff5f5;
}

.campo-linha input.campo-sucesso {
  border-color: #28a745;
  background: #f8fff8;
}

.endereco-preview-compacto {
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 0.9em;
  margin-top: 5px;
}

#endereco-texto-preview {
  color: #6c757d;
  font-style: italic;
}

#endereco-texto-preview.preenchido {
  color: #495057;
  font-weight: 500;
  font-style: normal;
}

/* === MELHORIAS UI/UX CAMPO ENDEREÇO === */

/* 1. Ícone de alerta discreto */
.endereco-alert-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 20px;
  height: 20px;
  background: #e63946;
  border: 2px solid #fff;
  border-radius: 50%;
  color: white;
  font-size: 12px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  animation: pulse-alert 2s infinite;
  box-shadow: 0 2px 6px rgba(230, 57, 70, 0.3);
}

/* 2. Container do campo com posição relativa para o badge */
.endereco-container {
  position: relative;
  margin: 1em 0;
}

/* 3. Animação de shake (tremida) */
@keyframes shake {
  0% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
  100% { transform: translateX(0); }
}

/* ✅ NOVA: Animação pulse-error melhorada para botão */
@keyframes pulse-error-improved {
  0% { 
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
  }
  25% { 
    transform: scale(1.02);
    box-shadow: 0 0 0 6px rgba(220, 53, 69, 0.3);
  }
  50% { 
    transform: scale(1);
    box-shadow: 0 0 0 12px rgba(220, 53, 69, 0.1);
  }
  75% { 
    transform: scale(1.02);
    box-shadow: 0 0 0 6px rgba(220, 53, 69, 0.3);
  }
  100% { 
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
  }
}

/* ✅ NOVA: Animação do indicador "!" piscante */
@keyframes error-indicator-pulse {
  0% { opacity: 0; transform: scale(0.8); }
  25% { opacity: 1; transform: scale(1.2); }
  50% { opacity: 1; transform: scale(1); }
  75% { opacity: 1; transform: scale(1.1); }
  100% { opacity: 0; transform: scale(0.8); }
}

/* 4. Efeito de erro com borda vermelha pulsante */
@keyframes pulse-error {
  0% { 
    border-color: #e63946; 
    box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.4);
  }
  50% { 
    border-color: #dc2f02; 
    box-shadow: 0 0 0 8px rgba(230, 57, 70, 0.1);
  }
  100% { 
    border-color: #e63946; 
    box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.4);
  }
}

/* 5. Animação sutil do badge */
@keyframes pulse-alert {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* 6. Classes de estado para o campo */
.endereco-shake, .endereco-container.endereco-shake {
  animation: shake 0.6s ease-in-out;
}

.endereco-error, .endereco-container.endereco-error {
  border: 2px solid #e63946 !important;
  animation: pulse-error 1.5s ease-in-out;
}

.endereco-error input {
  border-color: #e63946 !important;
}

/* 7. Tooltip de erro */
.endereco-tooltip {
  position: absolute;
  top: -45px;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  white-space: nowrap;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.endereco-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #333;
}

.endereco-tooltip.show {
  opacity: 1;
}

/* 8. Melhorias no input de endereço */
input[name="endereco"] {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: #fff;
  box-sizing: border-box;
}

input[name="endereco"]:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  outline: none;
}

/* 9. Estado de sucesso */
.endereco-success {
  border-color: #10b981 !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1) !important;
}

/* 10. Responsividade mobile */
@media (max-width: 480px) {
  .endereco-tooltip {
    top: -40px;
    font-size: 12px;
    padding: 6px 10px;
  }
  
  .endereco-alert-badge, .payment-alert-badge {
    width: 18px;
    height: 18px;
    font-size: 11px;
    top: -6px;
    right: -6px;
  }
}

/* === MELHORIAS UI/UX CAMPO PAGAMENTO === */

/* 1. Ícone de alerta para pagamento */
.payment-alert-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 20px;
  height: 20px;
  background: #e63946;
  border: 2px solid #fff;
  border-radius: 50%;
  color: white;
  font-size: 12px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  animation: pulse-alert 2s infinite;
  box-shadow: 0 2px 6px rgba(230, 57, 70, 0.3);
}

/* 2. Classes de estado para pagamento */
.payment-pulse-error {
  animation: pulse-error-improved 1.2s ease-in-out;
}

/* ✅ NOVO: Classe pulse-error para aplicar diretamente no botão */
/* ✅ NOVO: Classes de erro para pagamento (seguindo padrão do endereço) */
.payment-shake {
  animation: shake 0.6s ease-in-out;
}

.payment-error {
  border: 2px solid #e63946 !important;
  animation: pulse-error 1.5s ease-in-out;
}

.pulse-error {
  animation: pulse-error-improved 1.5s ease-in-out 1 !important;
  border: 2px solid #dc3545 !important;
  transition: none !important; /* Desabilitar transições durante a animação */
}

/* ✅ NOVO: Indicador de erro na ponta direita */
.payment-error-indicator {
  position: absolute;
  right: -1px;      /* BEM na ponta direita */
  top: -5px;        /* Altura ideal */
  width: 17px;
  height: 17px;
  background: #dc3545;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  z-index: 10;
  border: 1.5px solid white;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}

.show-payment-error .payment-error-indicator {
  opacity: 1;
  animation: error-indicator-pulse 1.2s ease-in-out infinite;
}

.payment-error {
  border: 2px solid #e63946 !important;
  animation: pulse-error 1.5s ease-in-out;
}

.payment-success {
  border-color: #10b981 !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1) !important;
}

/* ============================================================
   🚨 SISTEMA DE PRODUTOS ESGOTADOS
   ============================================================ */

/* Produto esgotado - visual geral */
.product-card.esgotado {
  opacity: 0.7;
  position: relative;
  filter: grayscale(30%);
}

/* Overlay "ESGOTADO" sobre o produto */
.produto-esgotado-overlay {
  position: absolute;
  top: 8px;
  right: 8px;
  background: linear-gradient(45deg, #dc3545, #c82333);
  color: white;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 12px;
  z-index: 5;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  animation: pulseEsgotado 2s infinite;
}

@keyframes pulseEsgotado {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

/* Preço com linha através */
.product-price.esgotado .new-price {
  text-decoration: line-through;
  opacity: 0.6;
}

/* Botão + modificado para esgotado */
.add-direct-btn.esgotado {
  background: #dc3545 !important;
  cursor: not-allowed !important;
  opacity: 0.8;
  border: none;
  font-size: 0.7rem;
  padding: 8px 4px;
}

.add-direct-btn.esgotado:hover {
  background: #dc3545 !important;
  transform: none !important;
}

.esgotado-text {
  font-size: 0.65rem;
  font-weight: bold;
  line-height: 1;
}

/* Hover effect diferente para produtos esgotados */
.product-card.esgotado:hover {
  transform: none;
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2);
  border: 1px solid rgba(220, 53, 69, 0.3);
}

/* Modal - botão de adicionar desabilitado */
.modal button.esgotado {
  background: #dc3545 !important;
  cursor: not-allowed !important;
  opacity: 0.7;
}

.modal button.esgotado:hover {
  background: #dc3545 !important;
  transform: none !important;
}

/* Badge esgotado no admin */
.produto-esgotado-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  background: #dc3545;
  color: white;
  font-size: 0.7rem;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 8px;
  z-index: 10;
}

/* Produto esgotado no admin */
.produto-card.esgotado {
  border-left: 4px solid #dc3545;
  background: rgba(220, 53, 69, 0.05);
}

/* Responsivo */
@media (max-width: 768px) {
  .produto-esgotado-overlay {
    font-size: 0.65rem;
    padding: 3px 6px;
    top: 5px;
    right: 5px;
  }
  
  .esgotado-text {
    font-size: 0.6rem;
  }
}

/* Modal - Produtos Esgotados */
.produto-esgotado-aviso {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  font-weight: bold;
  margin: 15px 0;
  box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
  animation: pulseAlert 1.5s infinite ease-in-out;
}

.esgotado-btn {
  background: #95a5a6 !important;
  cursor: not-allowed !important;
  opacity: 0.6;
}

.esgotado-btn:hover {
  background: #95a5a6 !important;
  transform: none !important;
}

@keyframes pulseAlert {
  0%, 100% { 
    transform: scale(1);
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
  }
  50% { 
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.5);
  }
}

/* ===== FOOTER DO SITE CLIENTE ===== */
.site-footer {
  background: var(--orange);
  color: white;
  padding: 20px 0;
  margin-top: 40px;
  text-align: center;
  border-top: 2px solid #FFE6C4;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.footer-link {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.footer-link:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.footer-separator {
  color: rgba(255, 255, 255, 0.6);
  font-weight: bold;
}

.footer-copyright {
  font-size: 0.9rem;
  opacity: 0.8;
  font-style: italic;
}

/* Responsivo para Footer */
@media (max-width: 768px) {
  .footer-links {
    flex-direction: column;
    gap: 10px;
  }
  
  .footer-separator {
    display: none;
  }
  
  .footer-link {
    width: 100%;
    max-width: 200px;
    justify-content: center;
  }
}

/* ===== 🎟️ SEÇÃO DE CUPOM DE DESCONTO ===== */
.cupom-section {
  background: #fff;
  border-radius: 12px;
  border: 2px solid #ffe6c4;
  padding: 16px;
  margin: 16px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.cupom-section:hover {
  border-color: #ffd2a3;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.cupom-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.cupom-icon {
  font-size: 1.2em;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.cupom-title {
  font-weight: 600;
  color: var(--orange);
  font-size: 0.95em;
}

.cupom-input-container {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.cupom-input {
  flex: 1;
  padding: 10px 12px;
  border: 2px solid #ffe6c4;
  border-radius: 8px;
  font-size: 0.9em;
  color: var(--orange);
  background: #fff;
  transition: all 0.2s ease;
  text-transform: uppercase;
}

.cupom-input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(198, 73, 11, 0.1);
}

.cupom-input::placeholder {
  color: #a0a0a0;
  text-transform: none;
}

.cupom-btn {
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85em;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.cupom-btn.aplicar {
  background: var(--orange);
  color: white;
  min-width: 80px;
  justify-content: center;
}

.cupom-btn.aplicar:hover {
  background: #b03f08;
  transform: translateY(-1px);
}

.cupom-btn.aplicar:active {
  transform: translateY(0);
}

.cupom-btn.aplicar:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

/* Remoção da definição duplicada - movida para dentro de .cupom-sucesso */

/* Resultado do cupom aplicado */
.cupom-resultado {
  animation: slideDown 0.3s ease-out;
}

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

.cupom-sucesso {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #d4edda;
  border: 1px solid #c3e6cb;
  border-radius: 8px;
  padding: 12px;
  flex-wrap: nowrap; /* 🔧 CORREÇÃO: Impede quebra de linha */
  min-height: 44px; /* 🔧 CORREÇÃO: Altura mínima para consistência */
}

.cupom-check {
  font-size: 1.1em;
  flex-shrink: 0; /* 🔧 CORREÇÃO: Não permite encolher */
}

.cupom-info {
  flex: 1;
  min-width: 0; /* 🔧 CORREÇÃO: Permite overflow adequado do texto */
}

.cupom-codigo-aplicado {
  font-weight: 600;
  color: #155724;
  font-size: 0.9em;
  line-height: 1.2; /* 🔧 CORREÇÃO: Controle de altura da linha */
}

.cupom-desconto-valor {
  color: #155724;
  font-size: 0.85em;
  margin-top: 2px;
  line-height: 1.2; /* 🔧 CORREÇÃO: Controle de altura da linha */
}

.cupom-btn.remover {
  background: #ff4757;
  color: white;
  width: 28px;
  height: 28px;
  min-width: 28px;
  max-width: 28px; /* 🔧 CORREÇÃO: Largura fixa */
  padding: 0;
  border-radius: 50%;
  font-size: 0.9em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0; /* 🔧 CORREÇÃO: Não permite encolher */
  margin-left: auto; /* 🔧 CORREÇÃO: Sempre fica à direita */
}

.cupom-btn.remover:hover {
  background: #ff3742;
}

/* 📱 RESPONSIVIDADE MOBILE MELHORADA */
@media (max-width: 480px) {
  .cupom-sucesso {
    padding: 10px;
    gap: 8px;
    align-items: flex-start; /* 🔧 CORREÇÃO: Botão X fica mais alto no mobile */
  }
  
  .cupom-codigo-aplicado {
    font-size: 0.85em;
  }
  
  .cupom-desconto-valor {
    font-size: 0.8em;
  }
  
  .cupom-btn.remover {
    width: 24px;
    height: 24px;
    min-width: 24px;
    max-width: 24px;
    font-size: 0.8em;
    margin-top: 2px; /* 🔧 CORREÇÃO: Pequeno ajuste para alinhar com texto */
  }
  
  .cupom-check {
    margin-top: 2px; /* 🔧 CORREÇÃO: Alinha o ícone ✅ com o texto */
  }
}

/* Mensagem de erro */
.cupom-erro {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 8px;
  padding: 10px 12px;
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.cupom-erro-icon {
  font-size: 1em;
}

.cupom-erro-texto {
  color: #721c24;
  font-size: 0.85em;
  font-weight: 500;
}

/* Loading state para o botão aplicar */
.cupom-btn.aplicar.loading {
  background: #ccc;
  cursor: not-allowed;
  position: relative;
}

.cupom-btn.aplicar.loading::after {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Responsividade */
@media (max-width: 480px) {
  .cupom-section {
    padding: 12px;
    margin: 12px 0;
  }
  
  .cupom-input-container {
    flex-direction: column;
    gap: 10px;
  }
  
  .cupom-btn.aplicar {
    width: 100%;
    justify-content: center;
  }
  
  .cupom-sucesso {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .cupom-info {
    width: 100%;
  }
}

/* === LAYOUT CARDÁPIO COM DESCRIÇÃO === */

/* Card com descrição - CONSERVADOR: mantém layout original */
.product-card-with-desc {
    /* Altura maior quando tem descrição para acomodar mais texto */
    min-height: 140px;
}

/* Descrição - mais espaço e texto */
.product-card-with-desc .product-description {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    margin: 8px 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* Garantir que o preço nunca quebre em duas linhas */
.product-card-with-desc .product-price {
    white-space: nowrap;
    min-width: fit-content;
}

.product-card-with-desc .product-price .new-price,
.product-card-with-desc .product-price .old-price {
    white-space: nowrap;
}

/* Responsividade para mobile */
@media (max-width: 768px) {
    .product-card-with-desc {
        min-height: 120px;
    }
    
    .product-card-with-desc .product-description {
        font-size: 12px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        margin: 6px 0;
    }
    
    /* Garantir preço em uma linha no mobile também */
    .product-card-with-desc .product-price {
        font-size: 14px;
        white-space: nowrap;
    }
}

/* === FIM LAYOUT CARDÁPIO COM DESCRIÇÃO === */

/* =================================================== */
/*  Responsividade para Modais em Celulares Pequenos   */
/* =================================================== */

@media (max-width: 360px) {
    .swal2-popup {
        width: 90% !important; /* Faz o modal ocupar quase toda a largura da tela */
        padding: 15px !important; /* Reduz o espaçamento interno */
        margin: 10px !important; /* Reduz margem externa */
        box-sizing: border-box !important;
    }

    .swal2-title {
        font-size: 1.2rem !important; /* Reduz o tamanho do título */
        line-height: 1.3 !important;
        margin-bottom: 15px !important;
    }

    .swal2-html-container {
        font-size: 0.9rem !important; /* Reduz o tamanho do texto do corpo */
        margin: 10px 0 !important;
        line-height: 1.4 !important;
        padding: 0 !important;
    }

    .swal2-actions {
        flex-direction: column !important; /* Coloca os botões um em cima do outro */
        gap: 10px !important; /* Adiciona um pequeno espaço entre os botões */
        margin-top: 15px !important;
        padding: 0 !important;
    }
    
    .swal2-confirm, .swal2-cancel {
        width: 100% !important; /* Faz os botões ocuparem a largura total */
        margin: 0 !important;
        padding: 12px !important;
        font-size: 0.9rem !important;
    }

    /* Reduzir ícones se muito grandes */
    .swal2-icon {
        width: 60px !important;
        height: 60px !important;
        margin: 15px auto !important;
    }

    /* Ajustar container geral do modal */
    .swal2-container {
        padding: 10px !important;
    }
}

/* Para telas muito pequenas (320px ou menos) */
@media (max-width: 320px) {
    .swal2-popup {
        width: 95% !important;
        padding: 12px !important;
        margin: 5px !important;
    }

    .swal2-title {
        font-size: 1.1rem !important;
        margin-bottom: 12px !important;
    }

    .swal2-html-container {
        font-size: 0.85rem !important;
        margin: 8px 0 !important;
    }

    .swal2-actions {
        gap: 8px !important;
        margin-top: 12px !important;
    }
    
    .swal2-confirm, .swal2-cancel {
        padding: 10px !important;
        font-size: 0.85rem !important;
    }

    .swal2-icon {
        width: 50px !important;
        height: 50px !important;
        margin: 10px auto !important;
    }
}

/* =============================================
   CORREÇÃO ESPECÍFICA: BRAND-TITLE RESPONSIVO
   ============================================= */

/* 📱 Telas muito pequenas - fonte ainda menor */
@media (max-width: 360px) {
  .brand-title {
    font-size: clamp(0.8rem, 2.0vw, 1.0rem) !important;
  }
}

/* 📱 Telas pequenas - fonte mínima */
@media (max-width: 320px) {
  .brand-title {
    font-size: clamp(0.7rem, 1.8vw, 0.9rem) !important;
  }
}

/* ===============================================
   🎨 SKELETON LOADER - CATEGORIAS (APARECE INSTANTÂNEO)
   =============================================== */
.skeleton-categories {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 15px;
  margin-bottom: 20px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}

.skeleton-categories::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.skeleton-cat {
  min-width: 100px;
  height: 36px;
  background: linear-gradient(
    90deg,
    #e8e8e8 0%,
    #f5f5f5 50%,
    #e8e8e8 100%
  );
  background-size: 200% 100%;
  animation: skeleton-pulse 1.2s ease-in-out infinite;
  border-radius: 18px;
  flex-shrink: 0;
}

@keyframes skeleton-pulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Esconder skeleton quando categorias carregarem */
#menu.loaded .skeleton-categories {
  display: none;
}

/* ===============================================
   FIM DO ARQUIVO CSS - TODAS AS REGRAS FECHADAS
   =============================================== */
