/* ==========================================================================
   BADGE COMPONENTS
   ========================================================================== */

/* Respecter l'attribut [hidden] même sur les éléments à display explicite
   (sinon un badge/compare-price vide reste visible). */
[hidden] { display: none !important; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-2);
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  letter-spacing: 0.025em;
}

/* Badge Variants */
.badge-primary { background: #dbeafe; color: #1e40af; }
.badge-variables { background: #dbeafe; color: #1e40af; }
.badge-secondary { background: var(--gray-100); color: var(--gray-700); }
.badge-success { background: #d1fae5; color: #065f46; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-error { background: #fee2e2; color: #991b1b; }
.badge-info { background-color: var(--info); color: white; }
.badge-helper { background: #dbeafe; color: #1e40af; }

/* Project-specific badges */
.badge-construction { background-color: #10b981; color: white; }
.badge-renovation { background-color: #f59e0b; color: white; }
.badge-sav { background-color: #ef4444; color: white; }

/* Priority badges */
.badge-priority-low { background-color: #6b7280; color: white; }
.badge-priority-medium { background-color: #3b82f6; color: white; }
.badge-priority-high { background-color: #f59e0b; color: white; }
.badge-priority-urgent { background-color: #ef4444; color: white; }

/* Status badges */
.badge-status-draft { background-color: #6b7280; color: white; }
.badge-status-active { background-color: #10b981; color: white; }
.badge-status-on_hold { background-color: #f59e0b; color: white; }
.badge-status-completed { background-color: #059669; color: white; }
.badge-status-cancelled { background-color: #ef4444; color: white; }
.badge-status-pending { background-color: #6b7280; color: white; }
.badge-status-in_progress { background-color: #3b82f6; color: white; }
.badge-status-delayed { background-color: #dc2626; color: white; }

/* Count Badge */
.count-badge {
  background: var(--primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: var(--space-1) var(--space-2);
  border-radius: 1rem;
  margin-left: var(--space-2);
  min-width: 1.5rem;
  text-align: center;
}

/* Type indicators */
.type-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.type-indicator.product {
  background-color: #dbeafe;
  color: #1e40af;
}

.type-indicator.pack {
  background-color: #d1fae5;
  color: #065f46;
}

.item-type-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
}

.item-type-badge.product {
  background-color: #3b82f6;
  color: white;
}

.item-type-badge.pack {
  background-color: #10b981;
  color: white;
}