/* ============================================
   CARBONOFF - Components
   Design System Profissional
   ============================================ */

/* ==========================================
   BOTÕES
   ========================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 12px 24px;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  line-height: 1;
  text-decoration: none;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-sm {
  padding: 8px 16px;
  font-size: var(--text-xs);
}

.btn-lg {
  padding: 16px 32px;
  font-size: var(--text-base);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

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

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

.btn-secondary {
  background-color: var(--secondary);
  color: var(--white);
  border-color: var(--secondary);
}

.btn-secondary:hover {
  background-color: var(--secondary-hover);
  border-color: var(--secondary-hover);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-primary);
  border-color: var(--border-default);
}

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

.btn-outline-primary {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

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

.btn-ghost {
  background-color: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}

.btn-ghost:hover {
  background-color: var(--bg-muted);
  color: var(--text-primary);
}

.btn-accent {
  background-color: var(--accent);
  color: var(--secondary);
  border-color: var(--accent);
}

.btn-accent:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-icon {
  padding: 10px;
  border-radius: var(--radius-md);
}

.btn-icon svg {
  width: 20px;
  height: 20px;
}

.btn-block {
  width: 100%;
}

/* ==========================================
   FORMULÁRIOS
   ========================================== */

.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--text-primary);
}

.form-label.required::after {
  content: " *";
  color: var(--error);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--text-primary);
  background-color: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
  border-color: var(--border-default);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-100);
}

.form-input::placeholder {
  color: var(--text-light);
}

.form-input.is-valid {
  border-color: var(--success);
}

.form-input.is-invalid {
  border-color: var(--error);
}

.form-error {
  display: block;
  margin-top: var(--space-1);
  font-size: var(--text-xs);
  color: var(--error);
}

.form-help {
  display: block;
  margin-top: var(--space-1);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.input-group {
  position: relative;
}

.input-group .form-input {
  padding-left: 44px;
}

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

.input-group-icon svg {
  width: 18px;
  height: 18px;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 44px;
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
  line-height: var(--leading-normal);
}

.form-check {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

.form-check-label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* ==========================================
   CARDS
   ========================================== */

.card {
  background-color: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.card-elevated {
  border: none;
  box-shadow: var(--shadow-sm);
}

.card-elevated:hover {
  box-shadow: var(--shadow-md);
}

.card-body {
  padding: var(--space-5);
}

.card-header {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border-light);
}

.card-footer {
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--border-light);
  background-color: var(--bg-light);
}

.card-title {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.card-subtitle {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* Card de Produto - Design Moderno */
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

/* Card Image Area */
.product-card-image {
  position: relative;
  display: block;
  aspect-ratio: 1/1;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  overflow: hidden;
  min-height: 200px;
  max-height: 300px;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: var(--space-4);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  max-width: 100%;
  max-height: 100%;
}

.product-card:hover .product-card-image img {
  transform: scale(1.08);
}

/* Badges */
.product-card-badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border-radius: 20px;
  z-index: 2;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.product-card-badge.featured {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-active) 100%);
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.3);
  left: auto;
  right: var(--space-3);
  top: var(--space-3);
}

/* Card Content */
.product-card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--space-5);
  padding-bottom: var(--space-6);
  gap: var(--space-2);
}

.product-card-category {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: var(--space-1);
}

.product-card-title {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
}

.product-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.product-card-title a:hover {
  color: var(--primary);
}

.product-card-description {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

/* Price Section */
.product-card-price {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: auto;
  padding-top: var(--space-3);
}

.product-card-price-old {
  font-size: 13px;
  color: var(--text-light);
  text-decoration: line-through;
  order: -1;
}

.product-card-price-current {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: -0.02em;
}

/* Card Actions */
.product-card-actions {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-light);
}

.product-card-actions .btn {
  flex: 1;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  transition: all 0.2s ease;
}

.product-card-actions .add-to-cart-btn {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-active) 100%);
  border: none;
  color: var(--white);
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.25);
}

.product-card-actions .add-to-cart-btn:hover {
  background: linear-gradient(135deg, var(--primary-active) 0%, var(--primary-900) 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.35);
}

.product-card-actions .favorite-btn {
  flex: 0 0 auto;
  padding: 12px;
  min-width: 44px;
  border: 1px solid var(--border-default);
  background: var(--white);
  color: var(--text-muted);
  border-radius: var(--radius-lg);
}

.product-card-actions .favorite-btn:hover {
  border-color: #ef4444;
  color: #ef4444;
  background: #fef2f2;
}

.product-card-actions .favorite-btn.favorited {
  border-color: #ef4444;
  color: #ef4444;
  background: #fef2f2;
}

.product-card-actions .favorite-btn.favorited svg {
  fill: #ef4444;
}

/* Legacy styles for compatibility */
.product-card-img {
  position: relative;
  aspect-ratio: 1/1;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  overflow: hidden;
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: var(--space-4);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card:hover .product-card-img img {
  transform: scale(1.08);
}

.product-card-info {
  padding: var(--space-5);
}

.product-card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.product-card-spec {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.product-card-spec svg {
  width: 14px;
  height: 14px;
  color: var(--primary);
}

.product-card-footer {
  padding: var(--space-4);
  border-top: 1px solid var(--border-light);
  background-color: var(--bg-light);
}

/* Responsive Product Cards */
@media (max-width: 640px) {
  .product-card-image {
    min-height: 150px;
    max-height: 200px;
  }

  .product-card-image img {
    padding: var(--space-3);
  }

  .product-card-content {
    padding: var(--space-4);
    padding-bottom: var(--space-5);
  }

  .product-card-title {
    font-size: 14px;
    min-height: auto;
  }

  .product-card-price-current {
    font-size: 18px;
  }

  .product-card-actions .btn {
    padding: 10px 12px;
    font-size: 12px;
  }

  .product-card-actions .favorite-btn {
    padding: 10px;
    min-width: 40px;
  }
}

/* Tablet */
@media (min-width: 641px) and (max-width: 1024px) {
  .product-card-image {
    min-height: 180px;
    max-height: 250px;
  }
}

/* Desktop grande */
@media (min-width: 1200px) {
  .product-card-image {
    min-height: 220px;
    max-height: 280px;
  }
}

/* ==========================================
   BADGES
   ========================================== */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  border-radius: var(--radius-sm);
}

.badge-primary {
  background-color: var(--primary);
  color: var(--white);
}

.badge-secondary {
  background-color: var(--slate-100);
  color: var(--slate-700);
}

.badge-success {
  background-color: var(--success-light);
  color: var(--success);
}

.badge-warning {
  background-color: var(--warning-light);
  color: var(--warning);
}

.badge-error {
  background-color: var(--error-light);
  color: var(--error);
}

.badge-info {
  background-color: var(--info-light);
  color: var(--info);
}

.badge-accent {
  background-color: var(--accent-light);
  color: var(--accent-hover);
}

.badge-outline {
  background-color: transparent;
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
}

/* ==========================================
   MODAL
   ========================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.6);
  z-index: var(--z-overlay);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-base), visibility var(--duration-base);
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  background-color: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  z-index: var(--z-modal);
  max-width: 560px;
  width: calc(100% - 32px);
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-base) var(--ease-out);
}

.modal.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.modal-lg {
  max-width: 800px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--border-light);
}

.modal-title {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  margin: 0;
}

.modal-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  transition: all var(--duration-fast);
}

.modal-close:hover {
  background-color: var(--bg-muted);
  color: var(--text-primary);
}

.modal-body {
  padding: var(--space-6);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--border-light);
  background-color: var(--bg-light);
}

/* ==========================================
   TOAST
   ========================================== */

.toast-container {
  position: fixed;
  top: var(--space-4);
  right: var(--space-4);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  background-color: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  min-width: 320px;
  max-width: 420px;
  animation: toastIn var(--duration-base) var(--ease-out);
}

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

.toast-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.toast-content {
  flex: 1;
  min-width: 0;
}

.toast-message {
  font-size: var(--text-sm);
  color: var(--text-primary);
  margin: 0;
}

.toast-close {
  flex-shrink: 0;
  padding: 2px;
  color: var(--text-light);
  transition: color var(--duration-fast);
}

.toast-close:hover {
  color: var(--text-primary);
}

.toast-success .toast-icon { color: var(--success); }
.toast-error .toast-icon { color: var(--error); }
.toast-warning .toast-icon { color: var(--warning); }
.toast-info .toast-icon { color: var(--info); }

/* ==========================================
   TABS
   ========================================== */

.tabs {
  border-bottom: 1px solid var(--border-light);
}

.tabs-list {
  display: flex;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tab-button {
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all var(--duration-fast);
}

.tab-button:hover {
  color: var(--text-primary);
}

.tab-button.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-content {
  padding: var(--space-6) 0;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* ==========================================
   BREADCRUMB
   ========================================== */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-muted);
}

.breadcrumb-item a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--duration-fast);
}

.breadcrumb-item a:hover {
  color: var(--primary);
}

.breadcrumb-item.active {
  color: var(--text-primary);
}

/* Classes alternativas usadas nas páginas */
.breadcrumb-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--duration-fast);
}

.breadcrumb-link:hover {
  color: var(--primary);
}

.breadcrumb-current {
  color: var(--text-primary);
  font-weight: var(--font-medium);
}

.breadcrumb-separator {
  color: var(--text-light);
}

/* ==========================================
   PAGINATION
   ========================================== */

.pagination {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.pagination-item {
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  transition: all var(--duration-fast);
}

.pagination-item:hover {
  background-color: var(--bg-muted);
  color: var(--text-primary);
}

.pagination-item.active {
  background-color: var(--primary);
  color: var(--white);
}

.pagination-item:disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* ==========================================
   RATING
   ========================================== */

.rating {
  display: flex;
  gap: 2px;
}

.rating-star {
  color: var(--slate-200);
  width: 18px;
  height: 18px;
}

.rating-star.filled {
  color: var(--accent);
}

/* ==========================================
   QUANTITY SELECTOR
   ========================================== */

.quantity-selector {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.quantity-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-light);
  color: var(--text-secondary);
  transition: all var(--duration-fast);
}

.quantity-btn:hover {
  background-color: var(--bg-muted);
  color: var(--text-primary);
}

.quantity-input {
  width: 56px;
  height: 40px;
  text-align: center;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--text-primary);
  border: none;
  border-left: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ==========================================
   SKELETON
   ========================================== */

.skeleton {
  background: linear-gradient(90deg, var(--slate-100) 25%, var(--slate-50) 50%, var(--slate-100) 75%);
  background-size: 200% 100%;
  animation: skeleton 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-text {
  height: 16px;
  margin-bottom: var(--space-2);
}

.skeleton-title {
  height: 24px;
  width: 70%;
  margin-bottom: var(--space-3);
}

.skeleton-img {
  aspect-ratio: 4/3;
}

/* ==========================================
   SPINNER
   ========================================== */

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--slate-200);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

.spinner-sm {
  width: 20px;
  height: 20px;
  border-width: 2px;
}

.spinner-lg {
  width: 48px;
  height: 48px;
  border-width: 4px;
}

/* ==========================================
   DIVIDER
   ========================================== */

.divider {
  height: 1px;
  background-color: var(--border-light);
  margin: var(--space-6) 0;
}

.divider-text {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.divider-text::before,
.divider-text::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: var(--border-light);
}

/* ==========================================
   TOOLTIP
   ========================================== */

[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 12px;
  background-color: var(--secondary);
  color: var(--white);
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  border-radius: var(--radius-md);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-fast);
  z-index: var(--z-dropdown);
  pointer-events: none;
}

[data-tooltip]:hover::after {
  opacity: 1;
  visibility: visible;
}

/* ==========================================
   AVATAR
   ========================================== */

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background-color: var(--bg-muted);
}

.avatar-sm { width: 32px; height: 32px; }
.avatar-lg { width: 56px; height: 56px; }
.avatar-xl { width: 80px; height: 80px; }

.avatar-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-semibold);
  color: var(--white);
  background-color: var(--primary);
}

/* ==========================================
   ALERT
   ========================================== */

.alert {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  border: 1px solid;
}

.alert-success {
  background-color: var(--success-light);
  border-color: var(--success);
  color: var(--success);
}

.alert-error {
  background-color: var(--error-light);
  border-color: var(--error);
  color: var(--error);
}

.alert-warning {
  background-color: var(--warning-light);
  border-color: var(--warning);
  color: var(--warning);
}

.alert-info {
  background-color: var(--info-light);
  border-color: var(--info);
  color: var(--info);
}

.alert-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.alert-content {
  flex: 1;
}

.alert-title {
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-1);
}

.alert-message {
  font-size: var(--text-sm);
  opacity: 0.9;
}

/* ==========================================
   STEPS
   ========================================== */

.steps {
  display: flex;
  align-items: flex-start;
}

.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 18px;
  left: calc(50% + 24px);
  width: calc(100% - 48px);
  height: 2px;
  background-color: var(--border-light);
}

.step.completed:not(:last-child)::after {
  background-color: var(--primary);
}

.step-indicator {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--bg-muted);
  color: var(--text-muted);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  position: relative;
  z-index: 1;
  transition: all var(--duration-fast);
}

.step.active .step-indicator {
  background-color: var(--primary);
  color: var(--white);
}

.step.completed .step-indicator {
  background-color: var(--primary);
  color: var(--white);
}

.step-label {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-align: center;
}

.step.active .step-label {
  color: var(--text-primary);
  font-weight: var(--font-medium);
}

/* ==========================================
   ACCORDION
   ========================================== */

.accordion {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.accordion-item {
  border-bottom: 1px solid var(--border-light);
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  color: var(--text-primary);
  text-align: left;
  background-color: var(--white);
  transition: background-color var(--duration-fast);
}

.accordion-header:hover {
  background-color: var(--bg-light);
}

.accordion-icon {
  color: var(--text-muted);
  transition: transform var(--duration-fast);
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-slow) var(--ease-out);
}

.accordion-item.active .accordion-content {
  max-height: 500px;
}

.accordion-body {
  padding: 0 var(--space-5) var(--space-5);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

/* ==========================================
   STATS
   ========================================== */

.stat-card {
  text-align: center;
  padding: var(--space-6);
}

.stat-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
  background-color: var(--primary-100);
  color: var(--primary);
  border-radius: var(--radius-lg);
}

.stat-number {
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* ==========================================
   DROPDOWN
   ========================================== */

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 200px;
  background-color: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: var(--z-dropdown);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--duration-fast) var(--ease-out);
}

.dropdown.active .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  transition: all var(--duration-fast);
}

.dropdown-item:first-child {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.dropdown-item:last-child {
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.dropdown-item:hover {
  background-color: var(--bg-light);
  color: var(--text-primary);
}

.dropdown-divider {
  height: 1px;
  background-color: var(--border-light);
  margin: var(--space-2) 0;
}

/* ==========================================
   EMPTY STATE
   ========================================== */

.empty-state {
  text-align: center;
  padding: var(--space-16) var(--space-6);
}

.empty-state-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-4);
  color: var(--text-light);
}

.empty-state-title {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.empty-state-description {
  font-size: var(--text-sm);
  color: var(--text-muted);
  max-width: 360px;
  margin: 0 auto var(--space-6);
}

/* ==========================================
   TAG
   ========================================== */

.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 2px 8px;
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  background-color: var(--bg-muted);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
}

.tag-primary {
  background-color: var(--primary-100);
  color: var(--primary);
}

.tag-removable {
  padding-right: 4px;
}

.tag-remove {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: inherit;
  opacity: 0.6;
  transition: opacity var(--duration-fast);
}

.tag-remove:hover {
  opacity: 1;
}

/* ==========================================
   SPEC TABLE (para equipamentos)
   ========================================== */

.spec-table {
  width: 100%;
  border-collapse: collapse;
}

.spec-table tr {
  border-bottom: 1px solid var(--border-light);
}

.spec-table tr:last-child {
  border-bottom: none;
}

.spec-table th,
.spec-table td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  font-size: var(--text-sm);
}

.spec-table th {
  font-weight: var(--font-medium);
  color: var(--text-muted);
  background-color: var(--bg-light);
  width: 40%;
}

.spec-table td {
  color: var(--text-primary);
}

/* ==========================================
   FEATURE LIST (para produtos)
   ========================================== */

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-2) 0;
}

.feature-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--primary);
}

.feature-text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}
