/* ========================================
   PÁGINA DE REVISÃO DE COTAÇÃO
   Design: Minimalista Profissional B2B
   Memory IT
   ======================================== */

:root {
  --primary: #0ea65a;
  --primary-dark: #0d9551;
  --danger: #ef4444;
  --danger-dark: #dc2626;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
}

.mc-review-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ========== HEADER ========== */
.mc-review-header {
  margin-bottom: 48px;
}

.mc-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-600);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 20px;
  transition: color 0.2s;
}

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

.mc-review-title {
  font-size: 48px;
  font-weight: 800;
  margin: 0 0 12px;
  color: var(--gray-900);
  letter-spacing: -0.02em;
}

.mc-review-subtitle {
  font-size: 18px;
  color: var(--gray-500);
  margin: 0;
  font-weight: 500;
}

/* ========== EMPTY STATE ========== */
.mc-empty-cart {
  text-align: center;
  padding: 80px 24px;
  background: var(--gray-50);
  border-radius: 20px;
  border: 2px dashed var(--gray-300);
}

.mc-empty-icon {
  margin-bottom: 24px;
}

.mc-empty-cart h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 12px;
}

.mc-empty-cart p {
  font-size: 16px;
  color: var(--gray-500);
  margin: 0 0 32px;
}

/* ========== TABELA ========== */
.mc-review-table-wrapper {
  background: white;
  border: 2px solid var(--gray-200);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 32px;
}

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

.mc-review-table thead {
  background: var(--gray-50);
  border-bottom: 2px solid var(--gray-200);
}

.mc-review-table th {
  padding: 16px 20px;
  text-align: left;
  font-weight: 700;
  font-size: 13px;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mc-review-table td {
  padding: 20px;
  border-bottom: 1px solid var(--gray-100);
}

.mc-review-table tbody tr:last-child td {
  border-bottom: none;
}

.mc-review-table tbody tr:hover {
  background: var(--gray-50);
}

/* ========== PRODUTO ========== */
.mc-product-info {
  display: flex;
  gap: 16px;
  align-items: center;
}

.mc-product-image {
  width: 80px;
  height: 80px;
  background: var(--gray-100);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.mc-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mc-product-image-placeholder {
  color: var(--gray-400);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.mc-product-details h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 6px;
  line-height: 1.3;
}

.mc-product-sku {
  font-size: 13px;
  color: var(--gray-500);
  font-weight: 600;
}

/* ========== QUANTIDADE ========== */
.mc-qty-control {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--gray-50);
  border-radius: 12px;
  padding: 8px;
}

.mc-qty-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--gray-300);
  background: white;
  color: var(--gray-700);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  transition: all 0.2s;
}

.mc-qty-btn:hover {
  background: var(--gray-100);
  border-color: var(--gray-400);
}

.mc-qty-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
  min-width: 40px;
  text-align: center;
}

/* ========== PREÇO ========== */
.mc-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-900);
}

.mc-subtotal {
  font-size: 18px;
  font-weight: 800;
  color: var(--gray-900);
}

/* ========== BOTÃO REMOVER ========== */
.mc-btn-remove {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--gray-200);
  background: white;
  color: var(--danger);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.mc-btn-remove:hover {
  background: var(--danger);
  border-color: var(--danger);
  color: white;
}

/* ========== FOOTER ========== */
.mc-review-footer {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 32px;
}

/* ========== OBSERVAÇÕES ========== */
.mc-review-notes {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mc-label {
  font-weight: 700;
  font-size: 14px;
  color: var(--gray-700);
}

.mc-textarea {
  width: 100%;
  border: 2px solid var(--gray-200);
  border-radius: 12px;
  padding: 16px;
  font-size: 15px;
  font-family: inherit;
  resize: vertical;
  transition: all 0.2s;
  outline: none;
}

.mc-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(14, 166, 90, 0.1);
}

.mc-helper {
  font-size: 13px;
  color: var(--gray-500);
}

/* ========== RESUMO ========== */
.mc-review-summary {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mc-summary-card {
  background: white;
  border: 2px solid var(--gray-200);
  border-radius: 16px;
  padding: 24px;
}

.mc-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}

.mc-summary-row span {
  color: var(--gray-600);
  font-size: 15px;
}

.mc-summary-row strong {
  color: var(--gray-900);
  font-size: 16px;
  font-weight: 700;
}

.mc-summary-divider {
  height: 2px;
  background: var(--gray-100);
  margin: 12px 0;
}

.mc-summary-total {
  padding: 16px 0;
}

.mc-summary-total span {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
}

.mc-summary-total strong {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
}

.mc-summary-note {
  font-size: 12px;
  color: var(--gray-500);
  margin: 12px 0 0;
  font-style: italic;
}

/* ========== AÇÕES ========== */
.mc-review-actions {
  display: flex;
  gap: 12px;
}

.mc-btn {
  flex: 1;
  height: 56px;
  border-radius: 12px;
  border: 2px solid transparent;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

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

.mc-btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(14, 166, 90, 0.3);
}

.mc-btn-ghost {
  background: white;
  border-color: var(--gray-200);
  color: var(--gray-700);
}

.mc-btn-ghost:hover {
  background: var(--gray-50);
  border-color: var(--gray-300);
}

/* ========== TOAST ========== */
.mc-toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: var(--gray-900);
  color: white;
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 10000;
}

.mc-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.mc-toast-content {
  font-weight: 600;
  font-size: 15px;
}

/* ========== UTILITÁRIOS ========== */
.mc-text-center {
  text-align: center;
}

.mc-text-right {
  text-align: right;
}

/* ========== RESPONSIVO ========== */
@media (max-width: 1024px) {
  .mc-review-footer {
    grid-template-columns: 1fr;
  }
  
  .mc-review-summary {
    order: -1;
  }
}

@media (max-width: 768px) {
  .mc-review-page {
    padding: 24px 16px;
  }
  
  .mc-review-title {
    font-size: 32px;
  }
  
  .mc-review-table-wrapper {
    overflow-x: auto;
  }
  
  .mc-review-table {
    min-width: 600px;
  }
  
  .mc-review-actions {
    flex-direction: column;
  }
  
  .mc-btn {
    width: 100%;
  }
}
