/* ======================== VARIABLES Y RESET ======================== */
:root {
  --primary: #F97316;
  --primary-dark: #EA580C;
  --primary-light: #FFEDD5;
  --background: #09090B;
  --surface: #18181B;
  --text-dark: #FAFAFA;
  --text-muted: #A1A1AA;
  --success: #10B981;
}

* { 
  font-family: 'DM Sans', sans-serif; 
  box-sizing: border-box; 
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 { 
  font-family: 'Space Grotesk', sans-serif; 
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body { 
  background: var(--background);
  color: var(--text-dark);
}

/* ======================== SCROLLBAR ======================== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #e5e7eb; }
::-webkit-scrollbar-thumb { 
  background: var(--primary); 
  border-radius: 3px; 
}

/* ======================== TARJETAS ======================== */
.card-hover { 
  transition: all 0.3s ease; 
  border-radius: 12px;
}
.card-hover:hover { 
  transform: translateY(-4px); 
  box-shadow: 0 15px 35px -10px rgba(59, 130, 246, 0.3); 
}

/* ======================== BOTÓN PRINCIPAL ======================== */
.btn-primary { 
  background: linear-gradient(
    135deg, 
    var(--primary) 0%, 
    var(--primary-dark) 100%
  ); 
  transition: all 0.3s ease; 
  color: white;
  border: none;
}
.btn-primary:hover { 
  transform: scale(1.03); 
  box-shadow: 0 8px 24px -8px rgba(59, 130, 246, 0.6); 
}

/* ======================== BOTONES CATEGORÍA ======================== */
.category-btn.active { 
  background: var(--primary); 
  color: white; 
  box-shadow: 0 4px 16px -4px rgba(59, 130, 246, 0.4); 
}

/* ======================== ANIMACIONES ======================== */
.slide-in { 
  animation: slideIn 0.4s ease-out forwards; 
}

@keyframes slideIn { 
  from { opacity: 0; transform: translateY(20px); } 
  to { opacity: 1; transform: translateY(0); } 
}

.fade-in { 
  animation: fadeIn 0.3s ease-out forwards; 
}

@keyframes fadeIn { 
  from { opacity: 0; } 
  to { opacity: 1; } 
}

/* ======================== ESTADOS DE PEDIDOS ======================== */
.status-pending { background: #FEF3C7; color: #92400E; }
.status-preparing { background: #DBEAFE; color: #1E40AF; }
.status-ready { background: #D1FAE5; color: #065F46; }
.status-delivered { background: #E5E7EB; color: #374151; }

/* ======================== FORMULARIOS ======================== */
.sauce-check:checked + .sauce-label { 
  background-color: var(--primary); 
  color: white; 
  border-color: var(--primary); 
}

/* Upload */
.upload-area { 
  border: 2px dashed #cbd5e1; 
  transition: all 0.3s; 
  cursor: pointer; 
  border-radius: 12px;
}
.upload-area:hover { 
  border-color: var(--primary); 
  background-color: rgba(59, 130, 246, 0.05); 
}

/* ======================== MENÚ CATEGORÍAS ======================== */
#categoriesContainer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  max-width: 100%;
  box-sizing: border-box;
}

#categoriesContainer > * {
  flex: 0 0 auto;
}

#categoriesContainer::-webkit-scrollbar {
  display: none;
}
#categoriesContainer {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ======================== PRODUCTOS ======================== */
.product-image-container {
  width: 100%;
  height: 10rem;
  overflow: hidden;
  background: linear-gradient(
    to bottom right,
    rgba(59, 130, 246, 0.1),
    rgba(147, 197, 253, 0.1)
  );
  position: relative;
  border-radius: 12px;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ======================== PRINT ======================== */
@media print {
  body * { visibility: hidden; }
  #printArea, #printArea * { visibility: visible; }
  #printArea { 
    position: absolute; 
    left: 0; 
    top: 0; 
    width: 100%; 
    padding: 20px; 
  }
}

/* ======================== NOTIFICACIONES (TOASTS) REFINADAS ======================== */
#notification-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 240px;
  max-width: 320px;
  background: rgba(24, 24, 27, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transform: translateX(120%);
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast.show {
  transform: translateX(0);
}

.toast-icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
}

.toast.success .toast-icon { background: rgba(16, 185, 129, 0.2); color: #10B981; }
.toast.error .toast-icon { background: rgba(239, 68, 68, 0.2); color: #ef4444; }
.toast.warning .toast-icon { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }

.toast-content {
  flex-grow: 1;
}

.toast-title {
  font-weight: 700;
  font-size: 0.8125rem;
  line-height: 1.2;
}

.toast-message {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.125rem;
}