/* ==========================================================================
   ERS COFFEE - DESIGN SYSTEM & PALETTE OFFICIELLE
   ========================================================================== */

/* 1. PALETTE OFFICIELLE ERS COFFEE */
:root {
  /* Palette Officielle */
  --color-primary: #5C1A24;         /* Principal (Bordeaux / Deep Burgundy) */
  --color-primary-hover: #3E0F16;   /* Hover / Fundos escuros */
  --color-gold: #C9A227;            /* Dourado Gold (Warm Satin Gold) */
  --color-gold-light: #E6C766;      /* Dourado claro (Destaques) */
  
  /* Fundos */
  --bg-main: #F3E9D8;               /* Fundo (Warm Cream) */
  --bg-alt: #EFE1C7;                /* Fundo alternativo (Soft Linen) */
  --bg-card: #FFFFFF;               /* Fundo de cartões */
  --bg-dark: #3E0F16;               /* Fundos escuros de prestígio */
  
  /* Textos */
  --text-main: #2A1810;             /* Texto principal (Dark Coffee) */
  --text-muted: #4A2F24;            /* Texto secundário (Medium Roast) */
  --text-light: #F3E9D8;            /* Texto em fundos escuros */

  /* Subtiles Lignes Colombie Logo */
  --flag-yellow: #F5C518;
  --flag-blue: #0056B3;
  --flag-red: #C8102E;

  /* Polices & Typographie Luxe */
  --font-serif: 'Cormorant Garamond', 'Baskerville', 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Ombres & Transitions */
  --shadow-sm: 0 4px 15px rgba(62, 15, 22, 0.05);
  --shadow-md: 0 12px 30px rgba(62, 15, 22, 0.09);
  --shadow-lg: 0 24px 50px rgba(62, 15, 22, 0.15);
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 2. RESET & BASE */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
}

/* 3. TYPOGRAPHIE SUR-MESURE */
h1, h2, h3, h4, .serif-font {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--color-primary-hover);
}

h1 {
  font-size: clamp(2.6rem, 5.2vw, 4.8rem);
}

h2 {
  font-size: clamp(2rem, 3.6vw, 3.2rem);
}

h3 {
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
}

h4 {
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
}

p {
  color: var(--text-muted);
  font-size: 1.05rem;
  font-weight: 400;
}

/* 4. SECTIONS & LAYOUT */
.container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 2rem;
}

@media (max-width: 560px) {
  .container { padding: 0 1.25rem; }
}

.section-padding {
  padding: 6.5rem 0;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 4rem auto;
}

.section-subtitle {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--color-gold);
  display: block;
  margin-bottom: 0.75rem;
}

.section-title {
  margin-bottom: 1.25rem;
}

.section-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
}

/* 5. BOUTONS PRESTIGE */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.15rem 2.6rem;
  background-color: var(--color-primary);
  color: var(--bg-main);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all var(--transition-smooth);
  box-shadow: var(--shadow-sm);
  max-width: 100%;
}

@media (max-width: 480px) {
  .btn-primary, .btn-outline, .btn-quick-add {
    padding: 1rem 1.5rem !important;
    font-size: 0.8rem !important;
    white-space: normal;
    text-align: center;
  }
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  color: var(--color-gold-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.1rem 2.4rem;
  background-color: transparent;
  color: var(--text-main);
  border: 1px solid var(--color-primary);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

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

.btn-gold {
  background-color: var(--color-gold);
  color: var(--color-primary-hover);
}

.btn-gold:hover {
  background-color: var(--color-gold-light);
  color: var(--color-primary-hover);
}

/* 6. TOAST & ANIMATIONS */
#ers-toast-notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 10000;
  background-color: var(--color-primary-hover);
  color: var(--text-light);
  padding: 1rem 1.75rem;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-gold);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.95rem;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all var(--transition-smooth);
}

#ers-toast-notification.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#ers-toast-notification i {
  color: var(--color-gold);
  font-size: 1.2rem;
}
