/* Estilo base - tema claro/escuro - v2.0 Mobile Optimized */
:root {
  --bg: #ffffff;
  --text: #000000;
  --muted: #374151;
  --primary: #ef4444;
  --secondary: #111827;
  --card: #f9fafb;
  --border: #d1d5db;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 12px 40px rgba(0, 0, 0, 0.15);
}

* {
  color: var(--text);
}

.btn, .btn *, .cart-count, .notification, .notification * {
  color: inherit;
}

/* Mobile - Cards mais largos para mostrar nomes completos */
@media (max-width: 640px) {
  .grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    align-items: stretch !important;
  }

  .container { 
    padding: 8px !important; 
  }

  .card { 
    display: flex !important; 
    flex-direction: column !important; 
    min-height: auto !important;
    height: 100% !important;
    min-width: 0 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
  }
  
  .card img { 
    height: 120px !important; 
    object-fit: cover !important;
    border-radius: 10px 10px 0 0 !important;
    width: 100% !important;
  }
  
  .card-body { 
    padding: 8px !important; 
    display: flex !important; 
    flex-direction: column !important; 
    gap: 6px !important; 
    flex: 1 !important;
  }
  
  .card-body h3 { 
    font-size: 11px !important; 
    line-height: 1.3 !important; 
    min-height: auto !important;
    max-height: none !important;
    display: block !important; 
    overflow: visible !important; 
    font-weight: 600 !important;
    margin: 0 !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
  }
  
  .price { 
    font-size: 13px !important; 
    font-weight: bold !important;
    color: var(--primary) !important;
    margin: 4px 0 !important;
  }

  .card .card-body > div { 
    display: flex !important; 
    gap: 4px !important; 
    margin-top: auto !important; 
    min-width: 0 !important; 
    flex-direction: column !important;
  }
  
  .card .btn { 
    padding: 8px 6px !important; 
    font-size: 10px !important; 
    white-space: nowrap !important; 
    width: 100% !important;
    min-width: 0 !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    flex: 1 !important;
    line-height: 1.2 !important;
  }
}

/* Mobile pequeno - 3 colunas para telas muito pequenas */
@media (max-width: 380px) {
  .grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
  }
  
  .card-body h3 { 
    font-size: 11px !important; 
    line-height: 1.3 !important; 
    min-height: auto !important;
  }
  
  .card .btn { 
    padding: 8px 6px !important; 
    font-size: 10px !important; 
  }
}

html[data-theme="dark"] {
  --bg: #0b0f14;
  --text: #ffffff;
  --muted: #9ca3af;
  --primary: #f87171;
  --secondary: #111827;
  --card: #111827;
  --border: #1f2937;
}

* { 
  box-sizing: border-box; 
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}

body[style*="background-image"] {
  background-size: cover !important;
  background-position: center !important;
  background-attachment: fixed !important;
  background-repeat: no-repeat !important;
  position: relative;
}

@media (max-width: 640px) {
  body[style*="background-image"] {
    background-attachment: scroll !important;
    background-size: cover !important;
    background-position: center top !important;
    min-height: 100vh !important;
  }
}

.container { 
  max-width: 1050px; 
  margin: 0 auto; 
  padding: 16px; 
  animation: fadeIn 0.6s ease-out;
}

section {
  animation: fadeIn 0.8s ease-out;
  animation-fill-mode: backwards;
}

section:nth-child(1) { animation-delay: 0.1s; }
section:nth-child(2) { animation-delay: 0.2s; }
section:nth-child(3) { animation-delay: 0.3s; }
section:nth-child(4) { animation-delay: 0.4s; }
section:nth-child(n+5) { animation-delay: 0.5s; }
.header { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; }
.logo { 
  height: 48px; 
  width: auto; 
  border-radius: 12px; 
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.logo:hover {
  transform: scale(1.05) rotate(2deg);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

h1, h2, h3 { 
  margin: 8px 0; 
}

h2 {
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  display: inline-block;
  margin: 24px 0 20px 0;
  letter-spacing: -0.02em;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 2px;
  animation: expandWidth 0.6s ease-out;
  box-shadow: 0 2px 10px rgba(102, 126, 234, 0.5);
}

h2:hover::after {
  width: 80px;
  transition: width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes expandWidth {
  from {
    width: 0;
  }
  to {
    width: 60px;
  }
}
.grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); 
  gap: 20px; 
  perspective: 1000px;
}

.grid .card {
  animation: cardFadeIn 0.6s ease-out backwards;
}

.grid .card:nth-child(1) { animation-delay: 0.05s; }
.grid .card:nth-child(2) { animation-delay: 0.1s; }
.grid .card:nth-child(3) { animation-delay: 0.15s; }
.grid .card:nth-child(4) { animation-delay: 0.2s; }
.grid .card:nth-child(5) { animation-delay: 0.25s; }
.grid .card:nth-child(6) { animation-delay: 0.3s; }
.grid .card:nth-child(7) { animation-delay: 0.35s; }
.grid .card:nth-child(8) { animation-delay: 0.4s; }
.grid .card:nth-child(9) { animation-delay: 0.45s; }
.grid .card:nth-child(10) { animation-delay: 0.5s; }
.grid .card:nth-child(n+11) { animation-delay: 0.55s; }

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px) rotateX(-15deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0);
  }
}
.card { 
  background: var(--card); 
  border: 1px solid var(--border); 
  border-radius: 16px; 
  overflow: hidden; 
  box-shadow: 0 4px 20px rgba(0,0,0,0.08), 0 0 0 1px rgba(255,255,255,0.1); 
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  backdrop-filter: blur(10px);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #4facfe);
  background-size: 300% 100%;
  opacity: 0;
  transition: opacity 0.4s ease;
  animation: gradientShift 3s ease infinite;
}

.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
  pointer-events: none;
}

.card:hover::before {
  opacity: 1;
}

.card:hover::after {
  left: 100%;
}

.card:hover { 
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 40px rgba(102, 126, 234, 0.2), 0 0 0 1px rgba(102, 126, 234, 0.1);
  border-color: rgba(102, 126, 234, 0.3);
}

.card img { 
  width: 100%; 
  height: 160px; 
  object-fit: cover; 
  display: block; 
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card:hover img {
  transform: scale(1.1);
}

.card-body { 
  padding: 16px; 
  position: relative;
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 100%);
}

.card-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px 0;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.card:hover .card-body h3 {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.price { 
  color: var(--primary); 
  font-weight: bold; 
  font-size: 18px;
  text-shadow: 0 2px 10px rgba(239, 68, 68, 0.3);
  background: linear-gradient(135deg, #ef4444, #dc2626);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 200%; }
}

.btn { 
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  gap: 8px; 
  padding: 12px 20px; 
  border-radius: 14px; 
  border: none; 
  color: white; 
  text-decoration: none; 
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
  background-size: 200% 200%;
  cursor: pointer; 
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}



.btn:hover { 
  transform: translateY(-3px) scale(1.02); 
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.5); 
  background-position: right center;
}

.btn:active { 
  transform: translateY(-1px) scale(0.98); 
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4); 
}
.btn.primary { 
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%); 
  background-size: 200% 200%;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
  animation: gradientPulse 3s ease infinite;
}

.btn.primary:hover { 
  background-position: right center;
  box-shadow: 0 10px 30px rgba(255, 107, 107, 0.5);
  animation: none;
}

@keyframes gradientPulse {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.35);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.5);
  }
}

@keyframes gentlePulse {
  0%, 100% {
    transform: scale(1) translateY(0);
  }
  50% {
    transform: scale(1.015) translateY(-2px);
  }
}
.btn.secondary { 
  background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%); 
  box-shadow: 0 4px 15px rgba(116, 185, 255, 0.3);
}
.btn.secondary:hover { 
  background: linear-gradient(135deg, #5dade2 0%, #2980b9 100%);
  box-shadow: 0 8px 25px rgba(116, 185, 255, 0.4);
}
.btn.success { 
  background: linear-gradient(135deg, #00b894 0%, #00a085 100%); 
  box-shadow: 0 4px 15px rgba(0, 184, 148, 0.3);
}
.btn.success:hover { 
  background: linear-gradient(135deg, #00a085 0%, #008f7a 100%);
  box-shadow: 0 8px 25px rgba(0, 184, 148, 0.4);
}
.btn.danger { 
  background: linear-gradient(135deg, #e17055 0%, #d63031 100%); 
  box-shadow: 0 4px 15px rgba(225, 112, 85, 0.3);
}
.btn.danger:hover { 
  background: linear-gradient(135deg, #d63031 0%, #c0392b 100%);
  box-shadow: 0 8px 25px rgba(225, 112, 85, 0.4);
}
.btn.ghost { 
  background: transparent; 
  border: 2px solid var(--primary); 
  color: var(--primary);
  box-shadow: none;
}
.btn.ghost:hover { 
  background: var(--primary); 
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}
.btn:disabled { 
  opacity: .5; 
  cursor: not-allowed; 
  transform: none; 
  box-shadow: none; 
  background: #bdc3c7;
}

.card .btn {
  position: relative;
  z-index: 1;
}

.card:hover .btn {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.card:hover .btn.primary {
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

@keyframes fade-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fade-out { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-4px); } }
@keyframes bounce { 
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

.nav { display:flex; gap:8px; flex-wrap:wrap; margin:12px 0; }

.input, input[type="text"], input[type="password"], input[type="number"], input[type="file"], select, textarea {
  width: 100%; padding: 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--card); color: var(--text);
}
label { display:grid; gap:6px; }

.cart { position: sticky; bottom: 0; background: var(--card); border-top: 1px solid var(--border); padding: 16px; }
#cart-items { display: grid; gap: 8px; }
.cart-item { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  gap: 12px; 
  border: 1px solid var(--border); 
  padding: 14px 16px; 
  border-radius: 12px; 
  background: var(--bg);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.cart-item:hover {
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.15);
  transform: translateX(4px);
  border-color: rgba(102, 126, 234, 0.3);
}

#cart-items::-webkit-scrollbar {
  display: none;
}

.cart-icon:hover {
  background: var(--primary) !important;
  color: white !important;
  transform: scale(1.05);
}

.cart-icon:hover span:first-child {
  transform: scale(1.1);
}

.cart-count {
  animation: pulse 0.3s ease;
}

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

.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.5);
}

html[data-theme="dark"] .glass-card {
  background: rgba(17, 24, 39, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.modal { 
  position: fixed; 
  inset: 0; 
  background: rgba(0,0,0,0.7); 
  display: grid; 
  place-items: center; 
  z-index: 1000;
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  animation: fadeIn 0.3s ease;
}
.modal[hidden] { display: none; }
.modal-content { 
  width: min(520px, 92vw); 
  background: rgba(255, 255, 255, 0.95); 
  color: var(--text); 
  border-radius: 24px; 
  padding: 28px; 
  border: 1px solid rgba(255, 255, 255, 0.3); 
  box-shadow: 0 25px 80px rgba(0,0,0,0.4), 0 0 0 1px rgba(255, 255, 255, 0.5);
  animation: slideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

html[data-theme="dark"] .modal-content {
  background: rgba(17, 24, 39, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.modal-content form { display: grid; gap: 16px; }
.modal-content input { 
  width: 100%; 
  padding: 14px 18px; 
  border-radius: 14px; 
  border: 2px solid var(--border); 
  background: var(--card); 
  color: var(--text); 
  font-size: 15px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.modal-content input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15), 0 4px 20px rgba(102, 126, 234, 0.1);
  transform: translateY(-2px);
}
.actions { 
  display: flex; 
  justify-content: flex-end; 
  gap: 12px; 
  margin-top: 20px; 
}

.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #00b894 0%, #00a085 100%);
  color: white;
  padding: 18px 26px;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 184, 148, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.3);
  z-index: 1001;
  animation: slideInRight 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 400px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.notification.error {
  background: linear-gradient(135deg, #e17055 0%, #d63031 100%);
  box-shadow: 0 8px 25px rgba(225, 112, 85, 0.3);
}

.notification.warning {
  background: linear-gradient(135deg, #fdcb6e 0%, #e17055 100%);
  box-shadow: 0 8px 25px rgba(253, 203, 110, 0.3);
}

.notification.info {
  background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
  box-shadow: 0 8px 25px rgba(116, 185, 255, 0.3);
}

.notification-icon {
  font-size: 20px;
}

.notification-close {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
}

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

@keyframes slideUp {
  from { 
    opacity: 0; 
    transform: translateY(30px) scale(0.95); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0) scale(1); 
  }
}

@keyframes slideInRight {
  from { 
    opacity: 0; 
    transform: translateX(100%); 
  }
  to { 
    opacity: 1; 
    transform: translateX(0); 
  }
}

@keyframes slideOutRight {
  from { 
    opacity: 1; 
    transform: translateX(0); 
  }
  to { 
    opacity: 0; 
    transform: translateX(100%); 
  }
}

.status-box { 
  background: var(--card); 
  padding: 16px; 
  border: 1px solid var(--border); 
  border-radius: 16px; 
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: var(--shadow-md);
}

.status-box:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.greeting-animation {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: white !important;
  border: none !important;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3) !important;
  animation: greetingSlideIn 0.6s ease-out, greetingGlow 2s ease-in-out infinite 0.6s;
  padding: 20px 24px !important;
  border-radius: 16px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  position: relative;
  overflow: hidden;
}

.greeting-animation::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: shimmerGreeting 2s infinite;
}

@keyframes greetingSlideIn {
  from {
    opacity: 0;
    transform: translateX(-30px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes greetingGlow {
  0%, 100% {
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
  }
  50% {
    box-shadow: 0 10px 35px rgba(102, 126, 234, 0.5);
  }
}

@keyframes shimmerGreeting {
  0% { left: -100%; }
  100% { left: 100%; }
}

@keyframes greetingFadeOut {
  from {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateX(30px) scale(0.95);
  }
}

.btn.info { 
  background: linear-gradient(135deg, #a29bfe 0%, #6c5ce7 100%); 
  box-shadow: 0 4px 15px rgba(162, 155, 254, 0.3);
}
.btn.info:hover { 
  background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
  box-shadow: 0 8px 25px rgba(162, 155, 254, 0.4);
}



.status-entregue {
  background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%) !important;
  color: white !important;
  box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3) !important;
}

.status-rota {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%) !important;
  color: white !important;
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3) !important;
}

.status-preparando {
  background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%) !important;
  color: white !important;
  box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3) !important;
}

.status-aguardando {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%) !important;
  color: #92400e !important;
  box-shadow: 0 4px 15px rgba(254, 243, 199, 0.3) !important;
}

.status-pronto {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%) !important;
  color: #065f46 !important;
  box-shadow: 0 4px 15px rgba(209, 250, 229, 0.3) !important;
}

.status-cancelado {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%) !important;
  color: #dc2626 !important;
  box-shadow: 0 4px 15px rgba(254, 226, 226, 0.3) !important;
}

.status-retirada_local {
  background: linear-gradient(135deg, #c084fc 0%, #a855f7 100%) !important;
  color: white !important;
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3) !important;
}

.main-header {
  background: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.3);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  transition: all 0.3s ease;
}

html[data-theme="dark"] .main-header {
  background: rgba(17, 24, 39, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: fit-content;
}

.brand h1 {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  color: var(--text);
  white-space: nowrap;
  transition: all 0.4s ease;
  cursor: default;
}

.brand h1:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transform: scale(1.02);
}

.logo {
  height: 48px;
  width: auto;
  border-radius: 10px;
  object-fit: contain;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  justify-content: flex-end;
}

.search-container {
  position: relative;
  max-width: 320px;
  width: 100%;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 14px 18px;
  border-radius: 14px;
  border: 2px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  outline: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15), 0 4px 20px rgba(239, 68, 68, 0.1);
  transform: translateY(-2px);
}

.search-input::placeholder {
  transition: opacity 0.3s ease;
}

.search-input:focus::placeholder {
  opacity: 0.5;
}

.search-input::placeholder {
  color: var(--muted);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
}

.nav-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.nav-link svg {
  flex-shrink: 0;
}

.whatsapp-link {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  background-size: 200% 200%;
  border-color: #25d366;
  color: white;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  animation: gradientPulse 3s ease infinite;
}

.whatsapp-link:hover {
  background: linear-gradient(135deg, #20ba5a 0%, #0f7d6f 100%);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
  transform: translateY(-3px) scale(1.05);
  animation: none;
}

.admin-link {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background-size: 200% 200%;
  border-color: #667eea;
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  animation: gradientPulse 3s ease infinite;
}

.admin-link:hover {
  background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
  transform: translateY(-3px) scale(1.05);
  animation: none;
}

.cart-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.cart-container:hover {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border-color: var(--primary);
  color: white;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

.cart-container:hover svg {
  animation: cartBounce 0.6s ease;
}

@keyframes cartBounce {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.2) rotate(-5deg); }
  75% { transform: scale(1.2) rotate(5deg); }
}

.cart-container svg {
  color: inherit;
  transition: all 0.3s ease;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.5);
  border: 2px solid var(--card);
  display: none;
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.5);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.7);
  }
}

.cart-badge[style*="display: flex"],
.cart-badge:not([style*="display: none"]) {
  display: flex !important;
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 16px;
    padding: 12px 0;
  }

  .brand {
    width: 100%;
    justify-content: center;
  }

  .brand h1 {
    font-size: 20px;
  }

  .header-actions {
    width: 100%;
    flex-direction: column;
    gap: 12px;
  }

  .search-container {
    max-width: 100%;
  }

  .nav-menu {
    width: 100%;
    justify-content: space-between;
    gap: 6px;
  }

  .nav-link {
    flex: 1;
    justify-content: center;
    padding: 12px 8px;
    font-size: 12px;
  }

  .nav-link span {
    display: none;
  }

  .cart-container {
    flex: 1;
    justify-content: center;
    padding: 12px 8px;
  }
}

footer {
  background: rgba(255, 255, 255, 0.7);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 32px 20px;
  text-align: center;
  color: var(--muted);
  margin-top: 60px;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.05);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

html[data-theme="dark"] footer {
  background: rgba(17, 24, 39, 0.7);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.3);
}

/* Melhorias do modal de confirmação */
#confirm-modal .modal-content {
  max-height: none;
  width: min(700px, 94vw);
  height: auto;
  overflow: visible;
  display: flex;
  flex-direction: column;
  padding: 12px;
}

#confirm-details {
  flex: 1;
  overflow: visible;
  padding-right: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: auto;
}

#confirm-details::-webkit-scrollbar {
  display: none;
}

html #confirm-details {
  scrollbar-width: none;
}

#confirm-modal .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: stretch;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

#confirm-modal .actions .btn {
  flex: 1;
  min-width: 70px;
  padding: 8px 6px;
  font-size: 11px;
  white-space: nowrap;
}

@media (max-width: 768px) {
  #confirm-modal .modal-content {
    width: min(95vw, 500px);
    max-height: none;
    height: auto;
    padding: 10px;
  }
}

@media (max-width: 480px) {
  #confirm-modal .modal-content {
    width: min(95vw, 400px);
    max-height: none;
    height: auto;
    padding: 10px;
  }
  
  #confirm-modal .actions {
    flex-direction: column;
  }
  
  #confirm-modal .actions .btn {
    width: 100%;
  }
}

/* ===== ESTILOS DO PAINEL ADMINISTRATIVO ===== */

.admin-header {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  position: relative;
  animation: slideDown 0.5s ease-out;
  margin-bottom: 32px;
  overflow: hidden;
}

.admin-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

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

.admin-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  z-index: 1;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.admin-logo {
  height: 56px;
  width: auto;
  border-radius: 12px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
  transition: all 0.3s ease;
}

.admin-logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

.admin-title h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
}

.admin-subtitle {
  display: block;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.admin-greeting {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  border: none;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  animation: fadeIn 0.6s ease-out 0.3s both;
}

.greeting-text {
  color: white;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.greeting-text strong {
  font-weight: 700;
  display: inline;
  margin-left: 4px;
}

/* ===== NAVEGAÇÃO ADMIN ===== */

.admin-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 32px;
  margin-bottom: 32px;
  animation: fadeIn 0.6s ease-out 0.4s both;
}

.admin-nav-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.admin-nav-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.admin-nav-section:hover {
  border-color: #667eea;
  box-shadow: 0 8px 30px rgba(102, 126, 234, 0.15);
  transform: translateY(-4px);
}

.admin-nav-section:hover::before {
  transform: scaleX(1);
}

.nav-section-title {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--muted);
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.nav-items {
  display: grid;
  gap: 8px;
}

.admin-nav .btn {
  width: 100%;
  justify-content: flex-start;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  background: linear-gradient(135deg, var(--bg) 0%, var(--card) 100%);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.admin-nav .btn::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.admin-nav .btn:hover {
  background: linear-gradient(135deg, #f9fafb 0%, var(--card) 100%);
  border-color: #667eea;
  color: #667eea;
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.15);
  transform: translateX(4px);
}

.admin-nav .btn:hover::before {
  transform: scaleY(1);
}

.admin-nav .btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.admin-nav .btn:hover svg {
  stroke: currentColor;
  filter: drop-shadow(0 0 4px rgba(102, 126, 234, 0.4));
}

.admin-nav .btn.primary {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
  color: white;
  border: none;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.admin-nav .btn.primary:hover {
  background: linear-gradient(135deg, #ff5252 0%, #e74c3c 100%);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
  transform: translateX(4px);
}

.admin-nav .btn.success {
  background: linear-gradient(135deg, #00b894 0%, #00a085 100%);
  color: white;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 184, 148, 0.3);
}

.admin-nav .btn.success:hover {
  background: linear-gradient(135deg, #00a085 0%, #008f7a 100%);
  box-shadow: 0 6px 20px rgba(0, 184, 148, 0.4);
  transform: translateX(4px);
}

.admin-nav .btn.secondary {
  background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
  color: white;
  border: none;
  box-shadow: 0 4px 15px rgba(116, 185, 255, 0.3);
}

.admin-nav .btn.secondary:hover {
  background: linear-gradient(135deg, #5dade2 0%, #2980b9 100%);
  box-shadow: 0 6px 20px rgba(116, 185, 255, 0.4);
  transform: translateX(4px);
}

/* ===== SEÇÃO DE PEDIDOS ===== */

.orders-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 24px;
  animation: fadeIn 0.6s ease-out 0.5s both;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
}

.section-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-header svg {
  width: 24px;
  height: 24px;
  color: #667eea;
  flex-shrink: 0;
}

.table-container {
  overflow-x: auto;
  border-radius: 12px;
  margin-bottom: 16px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table thead {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-bottom: 2px solid rgba(102, 126, 234, 0.5);
}

.admin-table th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.admin-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
  background: var(--card);
}

.admin-table tbody tr:hover {
  background: rgba(102, 126, 234, 0.1);
  box-shadow: inset 0 0 8px rgba(102, 126, 234, 0.15);
  transform: scale(1.01);
}

.admin-table td {
  padding: 14px 16px;
  color: var(--text);
  font-weight: 500;
}

.admin-table .price {
  font-weight: 700;
  color: #667eea;
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-copy:hover {
  background: #667eea;
  color: white;
  border-color: #667eea;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  transform: translateY(-2px);
}

.status-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.section-footer {
  display: flex;
  justify-content: center;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.section-footer .btn.primary {
  width: 100%;
  max-width: 400px;
}

/* ===== ANIMAÇÕES ADICIONAIS ===== */

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

@keyframes fadeOutBar {
  from {
    width: 100%;
    opacity: 1;
  }
  to {
    width: 0;
    opacity: 0;
  }
}

/* ===== RESPONSIVO ===== */

@media (max-width: 768px) {
  .admin-header {
    padding: 20px;
    margin-bottom: 24px;
  }

  .admin-header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .admin-brand {
    width: 100%;
  }

  .admin-title h1 {
    font-size: 22px;
  }

  .admin-greeting {
    width: 100%;
    justify-content: center;
  }

  .greeting-text {
    font-size: 13px;
  }

  .admin-nav {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .admin-nav-section {
    padding: 16px;
  }

  .admin-table {
    font-size: 12px;
  }

  .admin-table th,
  .admin-table td {
    padding: 12px 8px;
  }
}

@media (max-width: 480px) {
  .admin-header {
    padding: 16px;
    margin-bottom: 20px;
  }

  .admin-header-content {
    gap: 12px;
  }

  .admin-logo {
    height: 48px;
  }

  .admin-title h1 {
    font-size: 18px;
  }

  .admin-subtitle {
    font-size: 11px;
  }

  .admin-nav {
    gap: 10px;
  }

  .admin-nav-section {
    padding: 12px;
  }

  .nav-section-title {
    font-size: 11px;
  }

  .admin-nav .btn {
    padding: 10px 12px;
    font-size: 12px;
  }

  .orders-section {
    padding: 16px;
  }

  .section-header h2 {
    font-size: 16px;
  }

  .admin-table {
    font-size: 11px;
  }

  .admin-table th,
  .admin-table td {
    padding: 10px 6px;
  }

  .btn-copy {
    font-size: 11px;
    padding: 4px 8px;
  }
}
