/* ==========================================================================
   SISTEMA ENCANTO CATÁLOGO - DESIGN SYSTEM & ESTILOS GLOBAIS
   Paleta Sofisticada: Rose Gold, Champanhe, Grafite e Tons Quentes
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* Cores Principais da Marca Encanto */
  --primary: #c97a7e;
  --primary-hover: #b6686c;
  --primary-light: #fdf2f2;
  --primary-glow: rgba(201, 122, 126, 0.25);

  --secondary: #d4a373;
  --secondary-light: #fefae0;
  
  --accent: #2d6a4f;
  --accent-light: #e8f5e9;
  
  /* WhatsApp Verde Oficial */
  --whatsapp: #25d366;
  --whatsapp-hover: #20ba59;
  --whatsapp-glow: rgba(37, 211, 102, 0.3);

  /* Tons Neutros e Superfícies */
  --bg-main: #faf8f5;
  --bg-card: #ffffff;
  --bg-surface: #f4efe9;
  --bg-elevated: #ffffff;

  --text-primary: #1f1b24;
  --text-secondary: #5e5768;
  --text-muted: #8d8598;
  --text-white: #ffffff;

  --border-subtle: #ebdcd0;
  --border-strong: #dbc8ba;
  
  --status-active-bg: #dcfce7;
  --status-active-text: #15803d;
  --status-inactive-bg: #fee2e2;
  --status-inactive-text: #b91c1c;

  /* Sombras e Profundidade */
  --shadow-sm: 0 2px 8px rgba(31, 27, 36, 0.04);
  --shadow-md: 0 8px 24px rgba(31, 27, 36, 0.08);
  --shadow-lg: 0 16px 40px rgba(31, 27, 36, 0.12);
  --shadow-glow: 0 8px 25px var(--primary-glow);
  --shadow-wa: 0 8px 25px var(--whatsapp-glow);

  /* Tipografia */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Bordas e Transições */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset Global */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Tipografia Base */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}

p {
  color: var(--text-secondary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

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

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  transition: var(--transition);
}

/* Utilitários e Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #a6585c 100%);
  color: var(--text-white);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-hover) 0%, #964a4e 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(201, 122, 126, 0.35);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #1da851 100%);
  color: var(--text-white);
  box-shadow: var(--shadow-wa);
  font-weight: 700;
  font-size: 1.05rem;
}

.btn-whatsapp:hover {
  background: linear-gradient(135deg, #2ae06c 0%, #1b9e4c 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
}

.btn-outline {
  border: 1.5px solid var(--border-strong);
  color: var(--text-primary);
  background: transparent;
}

.btn-outline:hover {
  background: var(--bg-surface);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-icon {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge-active {
  background-color: var(--status-active-bg);
  color: var(--status-active-text);
}

.badge-inactive {
  background-color: var(--status-inactive-bg);
  color: var(--status-inactive-text);
}

.badge-encanto {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(201, 122, 126, 0.25);
}

/* Toast de Notificação Flutuante */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: #ffffff;
  color: var(--text-primary);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  max-width: 400px;
  border-left: 5px solid var(--primary);
  animation: slideInRight 0.3s ease forwards;
  font-size: 0.9rem;
  font-weight: 500;
}

.toast.toast-success {
  border-left-color: var(--whatsapp);
}

.toast.toast-error {
  border-left-color: #ef4444;
}

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

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