/* CSS Desktop para Index */
/* Este arquivo será usado para dispositivos desktop e tablet */


/* Variáveis CSS */
:root {
  --primary: #8e44ad; /* Mudado para roxo */
  --secondary: #2C3E50;
  --background: #F8F9FA;
  --card-bg: #FFFFFF;
  --text: #2C3E50;
  --text-muted: #6C757D;
  --border: #DEE2E6;
  --success: #27ae60;
  --warning: #e67e22;
  --danger: #e74c3c;
  --info: #17A2B8;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(0,0,0,0.1);
  --spacing: 1rem;
  
  /* Tema escuro */
  --dark-bg: #1a1a1a;
  --dark-card: #2d2d2d;
  --dark-text: #ffffff;
  --dark-text-muted: #b0b0b0;
  --dark-border: #404040;
}

/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--background);
  color: var(--text);
  line-height: 1.6;
  padding-bottom: 80px;
  transition: all 0.3s ease;
}

/* Tema escuro */
[data-theme="dark"] {
  --background: var(--dark-bg);
  --card-bg: var(--dark-card);
  --text: var(--dark-text);
  --text-muted: var(--dark-text-muted);
  --border: var(--dark-border);
}

/* Layout principal para desktop - MELHORADO */
.main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Controles do header */
.header-controls {
  position: fixed;
  top: 2rem;
  right: 2rem;
  display: flex;
  gap: 1rem;
  z-index: 200;
}

.control-btn {
  width: 50px;
  height: 50px;
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text);
  font-size: 1.2rem;
  box-shadow: var(--shadow);
}

.control-btn:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(52, 152, 219, 0.3);
}

/* Container de busca - MELHORADO */
.search-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--card-bg);
  border-bottom: 2px solid var(--border);
  padding: 1.5rem 2rem;
  transform: translateY(-100%);
  transition: all 0.3s ease;
  z-index: 150;
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.search-container.active {
  transform: translateY(0);
}

.search-input {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  display: block;
  padding: 1rem 1.5rem;
  font-size: 1.2rem;
  border: 2px solid var(--border);
  border-radius: 30px;
  background: var(--background);
  color: var(--text);
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
}

.search-close {
  position: absolute;
  top: 50%;
  right: 2rem;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-muted);
  cursor: pointer;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.search-close:hover {
  background: var(--danger);
  color: white;
}

/* ✅ TOPO - MAIS COMPACTO */
.topo {
  height: 250px; /* REDUZIDO de 300px para 250px */
  overflow: visible;
  border-radius: 0 0 var(--radius) var(--radius);
  margin-bottom: 0.5rem; /* REDUZIDO de 1rem para 0.5rem */
  box-shadow: var(--shadow);
  position: relative;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0.5rem;
}

.capa-background {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.capa-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.capa-background:hover .capa-image {
  transform: scale(1.05);
}

.capa-default {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 4rem;
}

/* ✅ LOGO - MENOR E MAIS COMPACTA */
.logo-overlay {
  position: absolute;
  bottom: 0;
  left: 2rem;
  transform: translateY(25%); /* REDUZIDO de 30% para 25% */
  width: 140px; /* REDUZIDO de 180px para 140px */
  height: 140px; /* REDUZIDO de 180px para 140px */
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid white; /* REDUZIDO de 6px para 4px */
  box-shadow: 0 6px 20px rgba(0,0,0,0.25); /* REDUZIDO */
  background: white;
  z-index: 60;
  transition: all 0.3s ease;
}

.logo-overlay:hover {
  transform: translateY(25%) scale(1.05);
  box-shadow: 0 8px 25px rgba(0,0,0,0.35);
}

.logo-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.logo-default {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 42px; /* REDUZIDO de 56px para 42px */
  border-radius: 50%;
}

/* ✅ WELCOME USER - REPOSICIONADO NO CANTO DIREITO ABAIXO DA CAPA */
.welcome-user {
  background: linear-gradient(135deg, #8e44ad 0%, #6c3483 100%);
  color: white;
  padding: 0.75rem 1.25rem; /* COMPACTO */
  border-radius: var(--radius);
  display: flex;
  align-items: center; /* UMA LINHA */
  justify-content: space-between;
  box-shadow: var(--shadow);
  position: absolute; /* Posicionado em relação ao topo */
  top: 220px; /* Posicionado abaixo da capa */
  right: 2rem; /* Canto direito */
  z-index: 100;
  max-width: 280px; /* COMPACTO */
  font-size: 0.85rem; /* MENOR */
}

.welcome-user p {
  font-size: 0.85rem;
  margin: 0; /* SEM MARGIN */
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.user-name {
  font-weight: 700;
}

.user-points {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  opacity: 0.95;
  margin-left: 0.5rem; /* PEQUENO ESPAÇO */
}

.user-points i {
  color: #ffd700;
}

.logout-btn {
  background: rgba(255,255,255,0.2);
  color: white;
  border: 2px solid rgba(255,255,255,0.3);
  padding: 0.4rem 0.8rem; /* MUITO COMPACTO */
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 0.75rem; /* PEQUENO */
}

.logout-btn:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-1px);
}

/* ✅ INFORMAÇÕES DO RESTAURANTE - MUITO MAIS COMPACTAS */
.info-restaurante {
  background: var(--card-bg);
  padding: 1rem 1.5rem; /* MUITO REDUZIDO de 1.5rem 2rem */
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 0.75rem; /* REDUZIDO de 1rem */
  text-align: center;
  position: relative;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0.75rem;
  margin-top: 70px; /* REDUZIDO de 90px para 70px */
}

.nome-restaurante {
  font-size: 1.75rem; /* REDUZIDO de 2rem */
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.75rem; /* REDUZIDO de 1rem */
  line-height: 1.2;
}

.status-principal {
  margin-bottom: 0.75rem; /* REDUZIDO de 1rem */
}

.status-text {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem; /* REDUZIDO de 0.75rem */
  padding: 0.75rem 1.5rem; /* REDUZIDO de 1rem 2rem */
  border-radius: 25px; /* REDUZIDO de 30px */
  font-weight: 600;
  font-size: 1rem; /* REDUZIDO de 1.1rem */
}

.status-aberto {
  background: #d4edda;
  color: #155724;
  border: 2px solid #c3e6cb;
}

.status-fechado {
  background: #f8d7da;
  color: #721c24;
  border: 2px solid #f5c6cb;
}

/* ✅ GRID DE INFORMAÇÕES - MAIS COMPACTO */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem; /* REDUZIDO de 1rem */
  margin-bottom: 0.75rem; /* REDUZIDO de 1rem */
  max-width: 500px; /* REDUZIDO de 600px */
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0.75rem;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 0.75rem; /* REDUZIDO de 1rem */
  padding: 0.75rem; /* REDUZIDO de 1rem */
  background: var(--background);
  border-radius: var(--radius);
  border: 2px solid var(--border);
  transition: all 0.3s ease;
}

.info-item:hover {
  border-color: var(--primary);
  transform: translateY(-1px); /* REDUZIDO de -2px */
  box-shadow: 0 3px 15px rgba(52, 152, 219, 0.15); /* REDUZIDO */
}

.info-item i {
  font-size: 1.5rem; /* REDUZIDO de 1.8rem */
  color: var(--primary);
}

.info-content {
  flex: 1;
}

.info-label {
  font-size: 0.8rem; /* REDUZIDO de 0.85rem */
  color: var(--text-muted);
  margin-bottom: 0.2rem; /* REDUZIDO de 0.25rem */
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.info-value {
  font-size: 1rem; /* REDUZIDO de 1.1rem */
  font-weight: 700;
  color: var(--text);
}

/* ✅ PEDIDO MÍNIMO - MAIS COMPACTO */
.pedido-minimo {
  background: #fff3cd;
  color: #856404;
  padding: 0.5rem 1rem; /* REDUZIDO de 0.75rem 1.5rem */
  border-radius: var(--radius);
  border-left: 4px solid var(--warning);
  font-weight: 600;
  text-align: center;
  margin-top: 0.5rem;
  max-width: 350px; /* REDUZIDO de 400px */
  margin-left: auto;
  margin-right: auto;
  margin-top: 0.5rem;
  font-size: 0.9rem; /* ADICIONADO para ficar menor */
}

/* ✅ SEÇÃO DE DESTAQUES - MAIS COMPACTA */
.secao-destaques {
  background: var(--card-bg);
  padding: 1.25rem 1.5rem; /* REDUZIDO de 1.5rem 2rem */
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 0.75rem; /* REDUZIDO de 1rem */
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0.75rem;
}

.destaques-header {
  text-align: center;
  margin-bottom: 1.25rem; /* REDUZIDO de 1.5rem */
}

.destaques-titulo {
  font-size: 1.6rem; /* REDUZIDO de 1.8rem */
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem; /* REDUZIDO de 0.5rem */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem; /* REDUZIDO de 1rem */
}

.destaques-titulo i {
  color: var(--danger);
  animation: flicker 2s infinite alternate;
}

@keyframes flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.destaques-subtitulo {
  font-size: 0.9rem; /* REDUZIDO de 1rem */
  color: var(--text-muted);
}

/* Carrossel de promoções */
.carousel-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}

.carousel-wrapper {
  display: flex;
  gap: 1.5rem; /* REDUZIDO de 2rem */
  transition: transform 0.3s ease;
  padding: 0.75rem 0; /* REDUZIDO de 1rem */
}

.carousel-container.can-drag {
  cursor: grab;
}

.carousel-container.can-drag.dragging {
  cursor: grabbing;
}

.carousel-container.can-drag .carousel-wrapper.dragging {
  transition: none;
}

.carousel-container.no-drag .carousel-wrapper {
  justify-content: center;
  flex-wrap: wrap;
}

/* Cards de promoção */
.promocao-card {
  flex: 0 0 280px; /* REDUZIDO de 300px */
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid var(--border);
}

.promocao-card:hover {
  transform: translateY(-3px); /* REDUZIDO de -4px */
  box-shadow: 0 6px 25px rgba(0,0,0,0.18); /* REDUZIDO */
  border-color: var(--primary);
}

.promocao-image {
  height: 180px; /* REDUZIDO de 200px */
  overflow: hidden;
  position: relative;
}

.promocao-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.promocao-card:hover .promocao-image img {
  transform: scale(1.08); /* REDUZIDO de 1.1 */
}

.promocao-badge {
  position: absolute;
  top: 0.75rem; /* REDUZIDO de 1rem */
  left: 0.75rem; /* REDUZIDO de 1rem */
  background: var(--danger);
  color: white;
  padding: 0.4rem 0.8rem; /* REDUZIDO de 0.5rem 1rem */
  border-radius: 15px; /* REDUZIDO de 20px */
  font-size: 0.8rem; /* REDUZIDO de 0.85rem */
  font-weight: 700;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.4rem; /* REDUZIDO de 0.5rem */
}

.promocao-content {
  padding: 1.25rem; /* REDUZIDO de 1.5rem */
}

.promocao-nome {
  font-size: 1.2rem; /* REDUZIDO de 1.3rem */
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.6rem; /* REDUZIDO de 0.75rem */
}

.promocao-descricao {
  color: var(--text-muted);
  font-size: 0.9rem; /* REDUZIDO de 0.95rem */
  margin-bottom: 1.25rem; /* REDUZIDO de 1.5rem */
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.promocao-precos {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.preco-original {
  font-size: 0.95rem; /* REDUZIDO de 1rem */
  color: var(--text-muted);
  text-decoration: line-through;
  margin-bottom: 0.2rem; /* REDUZIDO de 0.25rem */
}

.preco-promocional {
  font-size: 1.3rem; /* REDUZIDO de 1.4rem */
  font-weight: 700;
  color: var(--primary);
}

.desconto-percentual {
  background: var(--success);
  color: white;
  padding: 0.4rem 0.8rem; /* REDUZIDO de 0.5rem 1rem */
  border-radius: 12px; /* REDUZIDO de 15px */
  font-weight: 700;
  font-size: 0.85rem; /* REDUZIDO de 0.9rem */
}

/* Indicadores do carrossel */
.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 0.75rem; /* REDUZIDO de 1rem */
  margin-top: 1.5rem; /* REDUZIDO de 2rem */
}

.indicator {
  width: 10px; /* REDUZIDO de 12px */
  height: 10px; /* REDUZIDO de 12px */
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background: var(--primary);
  transform: scale(1.2); /* REDUZIDO de 1.3 */
}

/* ✅ SISTEMA DE NAVEGAÇÃO DE CATEGORIAS - COMPACTO */
.categories-navigation {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border-bottom: 2px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 998;
  box-shadow: 0 6px 25px var(--shadow); /* REDUZIDO */
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto;
}

.categories-scroll-container {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  padding: 3px 0; /* REDUZIDO de 4px */
}

.categories-scroll-container::-webkit-scrollbar {
  display: none;
}

.categories-wrapper {
  display: flex;
  gap: 6px; /* REDUZIDO de 8px */
  padding: 12px 16px; /* REDUZIDO de 16px 20px */
  min-width: max-content;
  justify-content: center;
}

.category-btn {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text);
  padding: 10px 20px; /* REDUZIDO de 12px 24px */
  border-radius: 20px; /* REDUZIDO de 25px */
  cursor: pointer;
  font-size: 13px; /* REDUZIDO de 14px */
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.6px; /* REDUZIDO de 0.8px */
  min-width: fit-content;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px var(--shadow); /* REDUZIDO */
}

.category-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.5s ease;
  z-index: 1;
}

.category-btn:hover::before {
  left: 100%;
}

.category-btn:hover {
  transform: translateY(-1px) scale(1.03); /* REDUZIDO */
  box-shadow: 0 8px 20px var(--shadow); /* REDUZIDO */
  border-color: rgba(142, 68, 173, 0.4);
}

.category-btn.active {
  background: linear-gradient(135deg, #8e44ad, #6c3483);
  color: white;
  border-color: #8e44ad;
  transform: translateY(-2px) scale(1.05); /* REDUZIDO */
  box-shadow: 0 12px 25px rgba(142, 68, 173, 0.35); /* REDUZIDO */
  animation: categoryPulse 0.6s ease-out;
}

@keyframes categoryPulse {
  0% {
    transform: translateY(-2px) scale(1);
    box-shadow: 0 6px 12px rgba(142, 68, 173, 0.2);
  }
  50% {
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 15px 30px rgba(142, 68, 173, 0.45);
  }
  100% {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 12px 25px rgba(142, 68, 173, 0.35);
  }
}

.category-btn.active .category-text {
  text-shadow: 0 2px 6px rgba(0,0,0,0.25); /* REDUZIDO */
  position: relative;
  z-index: 2;
}

.category-btn.active .category-indicator {
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px; /* REDUZIDO de 8px */
  height: 6px; /* REDUZIDO de 8px */
  background: white;
  border-radius: 50%;
  box-shadow: 0 3px 8px rgba(255,255,255,0.5); /* REDUZIDO */
  animation: indicatorBounce 0.8s ease-out;
}

@keyframes indicatorBounce {
  0% {
    transform: translateX(-50%) scale(0);
    opacity: 0;
  }
  60% {
    transform: translateX(-50%) scale(1.2); /* REDUZIDO de 1.3 */
    opacity: 1;
  }
  100% {
    transform: translateX(-50%) scale(1);
    opacity: 1;
  }
}

/* Menu de categorias antigo (compatibilidade) */
.menu-categorias {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--card-bg);
  border-bottom: 2px solid var(--border);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  margin-bottom: 1.5rem; /* REDUZIDO de 2rem */
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
}

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

.categorias-container {
  display: flex;
  gap: 0.4rem; /* REDUZIDO de 0.5rem */
  padding: 1.25rem 1.5rem; /* REDUZIDO de 1.5rem 2rem */
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  max-width: 1200px;
  margin: 0 auto;
  justify-content: center;
  scroll-behavior: smooth;
}

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

.categoria-item {
  flex-shrink: 0;
  padding: 0.8rem 1.25rem; /* REDUZIDO de 1rem 1.5rem */
  background: var(--background);
  color: var(--text);
  text-decoration: none;
  border-radius: 20px; /* REDUZIDO de 25px */
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid var(--border);
  white-space: nowrap;
  font-size: 0.9rem; /* ADICIONADO para ficar menor */
}

.categoria-item:hover,
.categoria-item.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-1px); /* REDUZIDO de -2px */
  box-shadow: 0 3px 12px rgba(52, 152, 219, 0.25); /* REDUZIDO */
}

.categoria-item.active {
  animation: categoryActiveGlow 0.5s ease-out;
}

@keyframes categoryActiveGlow {
  0% {
    box-shadow: 0 3px 12px rgba(52, 152, 219, 0.25);
  }
  50% {
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.5);
  }
  100% {
    box-shadow: 0 3px 12px rgba(52, 152, 219, 0.25);
  }
}

/* ✅ CONTEÚDO PRINCIPAL - MAIS COMPACTO */
.conteudo {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.25rem; /* REDUZIDO de 1.5rem */
  align-items: start;
}

/* Botão de login - MELHORADO */
.login-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 1.25rem 2.5rem; /* REDUZIDO de 1.5rem 3rem */
  border-radius: 25px; /* REDUZIDO de 30px */
  font-size: 1.1rem; /* REDUZIDO de 1.2rem */
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: block;
  margin: 0 auto 1.5rem; /* REDUZIDO de 2rem */
  box-shadow: 0 3px 15px rgba(52, 152, 219, 0.25); /* REDUZIDO */
  animation: pulse-button 2s infinite;
  grid-column: 1 / -1;
  justify-self: center;
  max-width: 280px; /* REDUZIDO de 300px */
}

@keyframes pulse-button {
  0% { box-shadow: 0 3px 15px rgba(52, 152, 219, 0.25); }
  50% { box-shadow: 0 6px 30px rgba(52, 152, 219, 0.4); }
  100% { box-shadow: 0 3px 15px rgba(52, 152, 219, 0.25); }
}

.login-btn:hover {
  background: #2980b9;
  transform: translateY(-2px); /* REDUZIDO de -3px */
  box-shadow: 0 6px 30px rgba(52, 152, 219, 0.4); /* REDUZIDO */
}

/* No results */
.no-results {
  text-align: center;
  padding: 3rem 2rem; /* REDUZIDO de 4rem */
  color: var(--text-muted);
  display: none;
  grid-column: 1 / -1;
}

.no-results.show {
  display: block;
}

.no-results i {
  display: block;
  margin-bottom: 1rem;
}

/* ✅ HEADERS DE CATEGORIA - MAIS COMPACTOS */
.categoria-header {
  font-size: 1.6rem; /* REDUZIDO de 1.8rem */
  font-weight: 700;
  color: var(--text);
  margin: 0.75rem 0 0.75rem; /* MUITO REDUZIDO de 1rem 0 1rem */
  padding-bottom: 0.75rem; /* REDUZIDO de 1rem */
  border-bottom: 3px solid var(--primary);
  position: relative;
  grid-column: 1 / -1;
}

.categoria-header::before {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 50px; /* REDUZIDO de 60px */
  height: 3px;
  background: var(--primary);
}

/* Items do cardápio */
.item-cardapio {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  border: 2px solid var(--border);
  display: block;
  height: fit-content;
}

.item-cardapio:hover {
  transform: translateY(-3px); /* REDUZIDO de -4px */
  box-shadow: 0 6px 25px rgba(0,0,0,0.18); /* REDUZIDO */
  border-color: var(--primary);
}

.item-cardapio.hidden {
  display: none;
}

.item-cardapio img {
  width: 100%;
  height: 180px; /* REDUZIDO de 200px */
  object-fit: cover;
  transition: transform 0.3s ease;
}

.item-cardapio:hover img {
  transform: scale(1.03); /* REDUZIDO de 1.05 */
}

.item-content {
  padding: 1.25rem; /* REDUZIDO de 1.5rem */
}

.item-content h3 {
  font-size: 1.2rem; /* REDUZIDO de 1.3rem */
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.6rem; /* REDUZIDO de 0.75rem */
  line-height: 1.3;
}

.item-description {
  color: var(--text-muted);
  font-size: 0.9rem; /* REDUZIDO de 0.95rem */
  line-height: 1.4;
  margin-bottom: 1.25rem; /* REDUZIDO de 1.5rem */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Seção de preços */
.item-price-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.item-price-section strong {
  font-size: 1.3rem; /* REDUZIDO de 1.4rem */
  font-weight: 700;
  color: var(--primary);
}

.price-container {
  display: flex;
  align-items: center;
  gap: 0.75rem; /* REDUZIDO de 1rem */
}

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

.price-promocional {
  font-size: 1.3rem; /* REDUZIDO de 1.4rem */
  font-weight: 700;
  color: var(--primary);
}

.promocao-badge {
  background: var(--danger);
  color: white;
  padding: 0.2rem 0.6rem; /* REDUZIDO de 0.25rem 0.75rem */
  border-radius: 10px; /* REDUZIDO de 12px */
  font-size: 0.75rem; /* REDUZIDO de 0.8rem */
  font-weight: 600;
  text-transform: uppercase;
}

/* Pizza label */
.pizza-label {
  display: flex;
  align-items: center;
  gap: 0.4rem; /* REDUZIDO de 0.5rem */
  color: var(--warning);
  font-weight: 600;
  font-size: 0.95rem; /* REDUZIDO de 1rem */
}

.pizza-label i {
  font-size: 1.1rem; /* REDUZIDO de 1.2rem */
}

/* ===== MODAIS DE LOGIN E CADASTRO ===== */

/* Modal overlay - fundo semi-transparente */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  overflow-y: auto;
  animation: modalFadeIn 0.3s ease-out;
}

/* Container do modal */
.modal-container {
  background: var(--card-bg);
  width: 90%;
  max-width: 500px;
  margin: 50px auto;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: modalSlideIn 0.3s ease-out;
  border: 2px solid var(--border);
}

/* Header do modal */
.modal-header {
  background: var(--primary);
  color: white;
  padding: 2rem;
  text-align: center;
  border-radius: var(--radius) var(--radius) 0 0;
  position: relative;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Botão de fechar */
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

/* Corpo do modal */
.modal-body {
  padding: 2rem;
}

/* Grupos de formulário */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}

.form-control {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  background: var(--background);
  color: var(--text);
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
  background: var(--card-bg);
}

/* Linha com dois campos */
.form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.form-row .form-group {
  flex: 1;
  margin-bottom: 0;
}

/* Botões do modal */
.btn-submit {
  width: 100%;
  padding: 1rem 2rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.btn-submit:hover {
  background: #2980b9;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(52, 152, 219, 0.4);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-cancel {
  width: 100%;
  padding: 1rem 2rem;
  background: var(--danger);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-cancel:hover {
  background: #c0392b;
  transform: translateY(-2px);
}

/* Alertas */
.alert {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.4;
}

.alert-danger {
  background: #f8d7da;
  color: #721c24;
  border: 2px solid #f5c6cb;
}

.alert-success {
  background: #d4edda;
  color: #155724;
  border: 2px solid #c3e6cb;
}

/* Tema escuro para alertas */
[data-theme="dark"] .alert-danger {
  background: #2d1b1e;
  color: #f8d7da;
  border-color: #721c24;
}

[data-theme="dark"] .alert-success {
  background: #1c2d20;
  color: #d4edda;
  border-color: #155724;
}

/* Spinner de carregamento */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
}

/* Animações do modal */
@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

/* Menu inferior */
.menu-inferior {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: center;
  z-index: 100;
  box-shadow: 0 -2px 20px rgba(0,0,0,0.1);
}

.menu-inferior a {
  flex: 1;
  max-width: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.menu-inferior a:hover {
  color: var(--primary);
  background: rgba(52, 152, 219, 0.1);
}

.menu-inferior a.active {
  color: var(--primary);
  background: rgba(52, 152, 219, 0.1);
}

.menu-inferior a i {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.notificacao-carrinho {
  position: absolute;
  top: 0.5rem;
  right: 50%;
  transform: translateX(50%);
  background: var(--primary);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.menu-inferior a.active {
  color: var(--primary);
}

/* MELHORIAS ESPECÍFICAS PARA DESKTOP GRANDE */
@media (min-width: 1400px) {
  .main-container {
    max-width: 1300px;
  }
  
  .conteudo {
    max-width: 1150px;
    grid-template-columns: repeat(3, 1fr);
  }
  
  .topo {
    max-width: 1100px;
    height: 280px; /* REDUZIDO de 350px */
  }
  
  .logo-overlay {
    width: 160px; /* REDUZIDO de 200px */
    height: 160px;
    border-width: 5px; /* REDUZIDO de 8px */
  }
  
  .logo-default {
    font-size: 48px; /* REDUZIDO de 64px */
  }
  
  .info-restaurante {
    max-width: 950px;
    margin-top: 80px; /* REDUZIDO de 100px */
  }
  
  .secao-destaques {
    max-width: 1100px;
  }
  
  .categories-navigation {
    max-width: 1300px;
  }
  
  .welcome-user {
    top: 250px; /* Ajustado para capa maior */
  }
}

/* Responsivo para tablets */
@media (max-width: 1024px) {
  /* Welcome user volta ao layout normal em tablet */
  .welcome-user {
    position: static;
    max-width: none;
    padding: 1.25rem; /* REDUZIDO */
    margin-bottom: 0.75rem; /* REDUZIDO */
    grid-column: 1 / -1;
    font-size: 0.95rem; /* REDUZIDO */
  }
  
  .welcome-user p {
    font-size: 1rem; /* REDUZIDO */
  }
  
  .logout-btn {
    padding: 0.6rem 1.25rem; /* REDUZIDO */
    font-size: 0.9rem; /* REDUZIDO */
  }

  .main-container {
    padding: 0 1rem;
  }
  
  .header-controls {
    top: 1.5rem;
    right: 1.5rem;
  }
  
  .topo {
    height: 220px; /* REDUZIDO de 250px */
    max-width: none;
  }
  
  .logo-overlay {
    left: 50%;
    transform: translateX(-50%) translateY(25%);
    width: 120px; /* REDUZIDO de 140px */
    height: 120px;
    border-width: 4px;
  }

  .logo-overlay:hover {
    transform: translateX(-50%) translateY(25%) scale(1.05);
  }
  
  .logo-default {
    font-size: 36px; /* REDUZIDO de 42px */
  }
  
  .info-restaurante {
    margin-top: 60px; /* REDUZIDO de 70px */
  }
  
  .nome-restaurante {
    font-size: 1.9rem; /* REDUZIDO de 2.2rem */
  }
  
  .info-restaurante {
    padding: 1.5rem 1.25rem; /* REDUZIDO */
    max-width: none;
  }
  
  .info-grid {
    max-width: none;
  }
  
  .secao-destaques {
    padding: 1.5rem 1.25rem; /* REDUZIDO */
    max-width: none;
  }
  
  .destaques-titulo {
    font-size: 1.7rem; /* REDUZIDO */
  }
  
  .promocao-card {
    flex: 0 0 260px; /* REDUZIDO */
  }
  
  .conteudo {
    padding: 0 1rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
    max-width: none;
  }
  
  .categoria-header {
    font-size: 1.5rem; /* REDUZIDO */
  }
  
  .categorias-container {
    padding: 1rem 1.25rem; /* REDUZIDO */
    max-width: none;
    justify-content: flex-start;
  }
  
  .categories-navigation {
    max-width: none;
  }
  
  .categories-wrapper {
    justify-content: flex-start;
  }

  .modal-container {
    width: 95%;
    margin: 30px auto;
  }
  
  .welcome-user {
    max-width: none;
  }
  
  .login-btn {
    max-width: none;
  }
  
  .pedido-minimo {
    max-width: none;
  }
}

/* Responsivo para mobile */
@media (max-width: 768px) {
  /* Welcome user volta ao layout normal em mobile */
  .welcome-user {
    position: static;
    max-width: none;
    padding: 1rem; /* REDUZIDO */
    margin-bottom: 0.75rem;
    flex-direction: column;
    gap: 0.75rem; /* REDUZIDO */
    text-align: center;
    font-size: 0.9rem; /* REDUZIDO */
  }
  
  .welcome-user p {
    font-size: 1rem;
  }
  
  .logout-btn {
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
  }

  .header-controls {
    top: 1rem;
    right: 1rem;
    gap: 0.5rem;
  }
  
  .control-btn {
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }
  
  .search-container {
    padding: 1rem;
  }
  
  .search-input {
    font-size: 1rem;
    padding: 0.875rem 1.25rem;
  }
  
  .search-close {
    right: 1rem;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
  }
  
  .topo {
    height: 180px; /* REDUZIDO de 200px */
  }
  
  .logo-overlay {
    left: 50%;
    transform: translateX(-50%) translateY(25%);
    width: 90px; /* REDUZIDO de 100px */
    height: 90px;
    border-width: 3px;
  }

  .logo-overlay:hover {
    transform: translateX(-50%) translateY(25%) scale(1.05);
  }
  
  .logo-default {
    font-size: 28px; /* REDUZIDO de 30px */
  }
  
  .info-restaurante {
    margin-top: 45px; /* REDUZIDO de 50px */
  }
  
  .nome-restaurante {
    font-size: 1.7rem; /* REDUZIDO de 2rem */
  }
  
  .info-restaurante {
    padding: 1.25rem 1rem; /* REDUZIDO */
  }
  
  .info-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem; /* REDUZIDO */
  }
  
  .info-item {
    padding: 0.75rem; /* REDUZIDO */
  }
  
  .info-item i {
    font-size: 1.75rem; /* REDUZIDO */
  }
  
  .info-value {
    font-size: 1rem;
  }
  
  .secao-destaques {
    padding: 1.25rem 1rem; /* REDUZIDO */
  }
  
  .destaques-titulo {
    font-size: 1.6rem; /* REDUZIDO */
    flex-direction: column;
    gap: 0.4rem; /* REDUZIDO */
  }
  
  .destaques-subtitulo {
    font-size: 0.9rem;
  }
  
  .carousel-wrapper {
    gap: 0.75rem; /* REDUZIDO */
  }
  
  .promocao-card {
    flex: 0 0 260px;
  }
  
  .promocao-content {
    padding: 1rem;
  }
  
  .promocao-nome {
    font-size: 1.1rem;
  }
  
  .categorias-container {
    padding: 0.75rem; /* REDUZIDO */
    gap: 0.2rem; /* REDUZIDO */
  }
  
  .categoria-item {
    padding: 0.6rem 1rem; /* REDUZIDO */
    font-size: 0.85rem; /* REDUZIDO */
  }
  
  .categories-wrapper {
    padding: 10px 12px; /* REDUZIDO */
    gap: 4px; /* REDUZIDO */
    justify-content: flex-start;
  }
  
  .category-btn {
    padding: 8px 16px; /* REDUZIDO */
    font-size: 12px; /* REDUZIDO */
    letter-spacing: 0.5px;
    min-width: auto;
  }
  
  .category-btn.active {
    transform: translateY(-1px) scale(1.03); /* REDUZIDO */
  }
  
  .conteudo {
    padding: 0 1rem;
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .categoria-header {
    font-size: 1.4rem; /* REDUZIDO */
    margin: 1.5rem 0 1rem; /* REDUZIDO */
  }
  
  .item-cardapio img {
    height: 160px; /* REDUZIDO de 180px */
  }
  
  .item-content {
    padding: 1rem; /* REDUZIDO */
  }
  
  .item-content h3 {
    font-size: 1.1rem; /* REDUZIDO */
  }
  
  .login-btn {
    padding: 1rem 2rem; /* REDUZIDO */
    font-size: 1rem; /* REDUZIDO */
  }

  /* Responsivo para modais em mobile */
  .modal-container {
    width: 95%;
    margin: 20px auto;
  }

  .modal-header {
    padding: 1.5rem;
  }

  .modal-title {
    font-size: 1.3rem;
  }

  .modal-body {
    padding: 1.5rem;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .form-row .form-group {
    margin-bottom: 1.5rem;
  }
}

/* Estados específicos */
.hidden {
  display: none !important;
}

.fade-in {
  animation: fadeIn 0.3s ease-in-out;
}

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

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

/* Scrollbar personalizada */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--background);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}