/* ═══════════════════════════════════════════════════════════════
   🎨 CLICK-SHOP - STYLES ENRICHIS - NUDE GRAY THEME
   ═══════════════════════════════════════════════════════════════ */

/* 🛒 Panier */
.cart-section {
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cart-item {
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid #f3f4f6;
  transition: background-color 0.2s ease;
}

.cart-item:hover {
  background-color: #f9fafb;
}

.cart-item-image {
  width: 100px;
  height: 100px;
  border-radius: 6px;
  object-fit: cover;
  background-color: #f3f4f6;
}

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 4px;
}

.cart-item-price {
  color: #B0671E;
  font-weight: 700;
  font-size: 1.1em;
}

.quantity-input {
  width: 60px;
  padding: 6px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  text-align: center;
  font-weight: 600;
}

.remove-item {
  color: #ef4444;
  cursor: pointer;
  transition: color 0.2s ease;
}

.remove-item:hover {
  color: #dc2626;
}

/* 💳 Checkout */
.checkout-form {
  background: white;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #1f2937;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #B0671E;
  box-shadow: 0 0 0 3px rgba(139, 127, 118, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* 📋 Résumé commande */
.order-summary {
  background: #f9fafb;
  padding: 20px;
  border-radius: 8px;
  position: sticky;
  top: 100px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  color: #6b7280;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 2px solid #83592f;
  font-size: 1.2em;
  font-weight: 700;
  color: #B0671E;
  margin-top: 12px;
}

/* ✅ Confirmation */
.confirmation-container {
  text-align: center;
  padding: 40px 20px;
}

.confirmation-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background-color: #10b981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3em;
  animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

.order-number {
  font-size: 1.4em;
  font-weight: 700;
  color: #1f2937;
  margin: 20px 0;
}

.order-details {
  background: white;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
  text-align: left;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* 👤 Profil utilisateur */
.profile-card {
  background: white;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 24px;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f3f4f6;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #B0671E, #e1a76c);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
  font-weight: 700;
}

.profile-info h2 {
  font-size: 1.4em;
  color: #1f2937;
  margin-bottom: 4px;
}

.profile-info p {
  color: #6b7280;
  font-size: 0.9em;
}

/* 📦 Commandes */
.order-card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #B0671E;
  margin-bottom: 16px;
  transition: all 0.2s ease;
}

.order-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.order-number {
  font-weight: 700;
  color: #B0671E;
}

.order-date {
  color: #6b7280;
  font-size: 0.9em;
}

.order-status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: 600;
}

.order-status.pending {
  background-color: #fef3c7;
  color: #92400e;
}

.order-status.processing {
  background-color: #dbeafe;
  color: #1e40af;
}

.order-status.completed {
  background-color: #dcfce7;
  color: #15803d;
}

.order-status.cancelled {
  background-color: #fee2e2;
  color: #991b1b;
}

/* 📱 Responsive pour mobile */
@media (max-width: 768px) {
  .order-summary {
    position: static;
    margin-top: 20px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .profile-header {
    flex-direction: column;
    text-align: center;
  }
  
  /* ========== TOAST CENTRAL ========== */
.toast-center {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    color: #333;
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: inherit;
    font-weight: 500;
    min-width: 300px;
    z-index: 99999;
    opacity: 0;
    animation: toastFadeIn 0.3s ease forwards;
    border: 1px solid #e5e7eb;
}

.toast-center.success {
    border-left: 5px solid #10b981;
}

.toast-center.error {
    border-left: 5px solid #ef4444;
}

.toast-center.warning {
    border-left: 5px solid #f59e0b;
}

.toast-center.info {
    border-left: 5px solid #3b82f6;
}

.toast-icon {
    font-size: 22px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-icon.success {
    background: #d1fae5;
    color: #10b981;
}

.toast-icon.error {
    background: #fee2e2;
    color: #ef4444;
}

.toast-icon.warning {
    background: #fef3c7;
    color: #f59e0b;
}

.toast-icon.info {
    background: #dbeafe;
    color: #3b82f6;
}

.toast-message {
    flex: 1;
    font-size: 15px;
}

.toast-close {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
    margin-left: 10px;
    border-radius: 5px;
}

.toast-close:hover {
    background: #f3f4f6;
    color: #374151;
}

@keyframes toastFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes toastFadeOut {
    from {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
}

.toast-hiding {
    animation: toastFadeOut 0.3s ease forwards;
}
}