/**
 * CSS pour la page Panier - Aromex
 */

/* Import des variables globales */
@import url("aromex-variables.css");

/* Styles pour les notifications toast */
.aromex-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 20px;
  border-radius: 8px;
  color: white;
  font-weight: 500;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  max-width: 400px;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease;
}

.aromex-notification.show {
  opacity: 1;
  transform: translateX(0);
}

.aromex-notification.success {
  background: linear-gradient(135deg, #28a745, #20c997);
  border-left: 4px solid #20c997;
}

.aromex-notification.error {
  background: linear-gradient(135deg, #dc3545, #e74c3c);
  border-left: 4px solid #e74c3c;
}

.aromex-notification.warning {
  background: linear-gradient(135deg, #ffc107, #f39c12);
  border-left: 4px solid #f39c12;
  color: #212529;
}

.aromex-notification.info {
  background: linear-gradient(135deg, #17a2b8, #3498db);
  border-left: 4px solid #3498db;
}

@media (max-width: 768px) {
  .aromex-notification {
    left: 10px;
    right: 10px;
    top: 10px;
    max-width: none;
    transform: translateY(-100%);
  }

  .aromex-notification.show {
    transform: translateY(0);
  }
}

/* Masquer les flèches des inputs number */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}

/* Container principal de la page cart et checkout */
.aromex-cart-page,
.aromex-checkout-page {
  font-family: var(--aromex-font-family-primary);
  background: var(--aromex-grey-light);
  min-height: 60vh;
  padding: 120px 0 40px 0;
}

.aromex-cart-page .container,
.aromex-checkout-page .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Titre de bienvenue */
.aromex-cart-page .welcome-title {
  text-align: center;
  margin-bottom: 40px;
}

.aromex-cart-page .welcome-title h1 {
  font-size: 3rem;
  font-weight: 400;
  color: var(--aromex-black);
  margin: 0;
  letter-spacing: 2px;
}

/* Card promotionnelle VapoLogic */
.vapologic-promo-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--aromex-blue-hover) 0%, #5bb7e0 100%);
  border: 2px solid var(--aromex-black);
  border-radius: 10px;
  padding: 12px 20px;
  margin-bottom: 20px;
  text-decoration: none;
  color: var(--aromex-black);
  font-family: var(--aromex-font-family-primary);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.vapologic-promo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  color: var(--aromex-black);
}

.vapologic-promo-card svg:first-child {
  color: var(--aromex-black);
  flex-shrink: 0;
}

.vapologic-promo-card span {
  flex: 1;
}

.vapologic-promo-card svg:last-child {
  flex-shrink: 0;
  opacity: 0.7;
}

/* Responsive pour card VapoLogic */
@media (max-width: 768px) {
  .vapologic-promo-card {
    font-size: 0.85rem;
    padding: 10px 16px;
    gap: 10px;
  }

  .vapologic-promo-card svg:first-child {
    width: 18px;
    height: 18px;
  }

  .vapologic-promo-card svg:last-child {
    width: 14px;
    height: 14px;
  }
}

.cart-products-section {
  margin-bottom: 30px;
}

/* Container du contenu */
.aromex-cart-page .content-container {
  background: var(--aromex-grey-light);
  border-radius: 15px;
  padding: 40px;
  margin: 0 auto;
  border: 2px solid var(--aromex-black);
}

.aromex-cart-page .content-container h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--aromex-black);
  margin-bottom: 30px;
  letter-spacing: 1px;
  text-align: center;
}

/* ===== PANIER VIDE ===== */
.aromex-cart-page .alert-info {
  text-align: center;
  padding: 40px;
  background: var(--aromex-grey-light);
  border: 1px solid var(--aromex-grey-dark);
  border-radius: 8px;
  color: var(--aromex-black);
}

.aromex-cart-page .alert-info .no-content {
  font-size: 1.1rem;
  margin-bottom: 15px;
}

.aromex-cart-page .alert-info a {
  color: var(--aromex-black);
  font-weight: 600;
  text-decoration: underline;
}

.aromex-cart-page .alert-info a:hover {
  text-decoration: none;
}

/* ===== CONTENU DU PANIER ===== */
.aromex-cart-page .cart-main-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-bottom: 30px;
}

/* Section produits modernisée */
.aromex-cart-page .products-grid {
  max-height: 70vh;
  overflow-y: auto;
  margin-top: 20px;
  padding: 10px;
  border-radius: 12px;
}

/* Styles pour les sections de produits */
.aromex-cart-page .product-section {
  margin-bottom: 30px;
}

.aromex-cart-page .section-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--aromex-black);
  margin-bottom: 20px;
  padding: 15px 20px;
  background: linear-gradient(135deg, var(--aromex-grey-light) 0%, rgba(74, 158, 255, 0.1) 100%);
  border-radius: 8px;
  border-left: 4px solid var(--aromex-blue-hover);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.aromex-cart-page .marque-blanche-section .section-title {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  border-left-color: #f39c12;
  color: #856404;
}

.aromex-cart-page .normal-section .section-title {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  border-left-color: var(--aromex-blue-hover);
}

.aromex-cart-page .products-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Nouvelle carte produit moderne */
.aromex-cart-page .product-card {
  background: white;
  border-radius: 16px;
  padding: 25px;
  display: flex;
  align-items: center;
  gap: 25px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  border: 2px solid transparent;
  overflow: hidden;
}

.aromex-cart-page .product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--aromex-blue-hover), #74b9ff);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.aromex-cart-page .product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: var(--aromex-blue-hover);
}

.aromex-cart-page .product-card:hover::before {
  opacity: 1;
}

/* Style spécial pour marque blanche */
.aromex-cart-page .product-card.marque-blanche {
  background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
  border-color: #ffc107;
}

.aromex-cart-page .product-card.marque-blanche::before {
  background: linear-gradient(90deg, #ffc107, #f39c12);
  opacity: 0.7;
}

.aromex-cart-page .product-card.marque-blanche:hover {
  border-color: #f39c12;
  box-shadow: 0 8px 25px rgba(243, 156, 18, 0.3);
}

/* Indicateur de type de produit */
.aromex-cart-page .product-type-indicator {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #ffc107, #f39c12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 12px rgba(243, 156, 18, 0.4);
  animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.1) rotate(180deg); }
}

/* Image produit améliorée */
.aromex-cart-page .product-image {
  width: 150px;
  height: 150px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.aromex-cart-page .product-card:hover .product-image {
  transform: scale(1.05);
}

.aromex-cart-page .product-image img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  border-radius: 8px;
}

/* Info produit simplifiée */
.aromex-cart-page .product-info {
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: 30px;
  min-height: 120px;
}

.aromex-cart-page .product-main-info {
  flex: 1;
  min-width: 250px;
}

.aromex-cart-page .product-name {
  font-family: var(--aromex-font-family-primary);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--aromex-black);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.3;
  margin: 0 0 8px 0;
}

.aromex-cart-page .product-variant {
  font-weight: 500;
  color: var(--aromex-blue);
  font-style: italic;
  text-transform: none;
  font-size: 0.9rem;
}


.aromex-cart-page .product-description {
  font-family: var(--aromex-font-family-primary);
  color: var(--aromex-grey-dark);
  margin-bottom: 15px;
  line-height: 1.5;
  font-size: 0.95rem;
  opacity: 0.8;
}

/* Badge marque blanche */
.aromex-cart-page .product-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.aromex-cart-page .product-badge.marque-blanche {
  background: linear-gradient(135deg, #ffc107, #f39c12);
  color: white;
  box-shadow: 0 2px 8px rgba(243, 156, 18, 0.3);
}

.aromex-cart-page .product-details {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 10px;
}

.aromex-cart-page .product-manufacturer {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--aromex-grey-dark);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 4px 10px;
  background: #f8f9fa;
  border-radius: 15px;
}

/* Actions produit ergonomiques */
.aromex-cart-page .product-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  min-width: 400px;
  padding: 15px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 10px;
  border: 1px solid #dee2e6;
}

.aromex-cart-page .product-price {
  font-family: var(--aromex-font-family-primary);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--aromex-black);
  text-align: center;
  padding: 10px 14px;
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  border-radius: 8px;
  border: 2px solid var(--aromex-blue-hover);
  min-width: 90px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.aromex-cart-page .product-price .currency {
  font-size: 1.4rem;
  color: var(--aromex-blue-dark);
}

.aromex-cart-page .product-price .unit {
  font-size: 0.75rem;
  color: var(--aromex-blue);
  font-weight: 600;
  margin-left: 3px;
}

/* Sélecteur quantité amélioré et debuggé */
.aromex-cart-page .quantity-selector {
  display: flex !important;
  align-items: center;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  overflow: hidden;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.aromex-cart-page .qty-btn {
  font-family: var(--aromex-font-family-primary);
  background: #f8f9fa;
  border: none;
  padding: 8px;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.3s ease;
  color: var(--aromex-black);
  font-size: 1.1rem;
  width: 35px;
  height: 35px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  user-select: none;
}

.aromex-cart-page .qty-btn:hover {
  background: var(--aromex-blue-hover);
  color: white;
  transform: scale(1.05);
}

.aromex-cart-page .qty-btn.plus::before {
  content: "+";
  font-size: 1.1rem;
  font-weight: bold;
}

.aromex-cart-page .qty-btn.minus::before {
  content: "-";
  font-size: 1.2rem;
  font-weight: bold;
}

.aromex-cart-page .qty-input {
  font-family: var(--aromex-font-family-primary);
  border: none;
  padding: 8px;
  width: 50px;
  text-align: center;
  outline: none;
  background: white;
  font-weight: 700;
  font-size: 1rem;
  color: var(--aromex-black);
  height: 35px;
  box-sizing: border-box;
}

/* Affichage quantité pour marque blanche */
.aromex-cart-page .quantity-display {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #f8f9fa;
  border-radius: 12px;
  border: 2px solid #dee2e6;
}

.aromex-cart-page .qty-label {
  font-size: 0.85rem;
  color: var(--aromex-grey-dark);
  font-weight: 600;
}

.aromex-cart-page .qty-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--aromex-black);
}

/* Boutons d'action compacts */
.aromex-cart-page .btn-remove-item {
  background: linear-gradient(135deg, #dc3545, #c82333);
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--aromex-font-family-primary);
  box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2);
  white-space: nowrap;
}

.aromex-cart-page .btn-remove-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4);
  background: linear-gradient(135deg, #c82333, #a71e2a);
}

.aromex-cart-page .btn-remove-item svg {
  width: 18px;
  height: 18px;
}

/* État désactivé pour marque blanche */
.aromex-cart-page .remove-disabled {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: #f8f9fa;
  color: #6c757d;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 2px solid #dee2e6;
  cursor: not-allowed;
  opacity: 0.7;
}

.aromex-cart-page .remove-disabled svg {
  width: 18px;
  height: 18px;
}

/* Bouton détails compact */
.aromex-cart-page .btn-details {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  color: var(--aromex-grey-dark);
  border: 1px solid #dee2e6;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--aromex-font-family-primary);
  white-space: nowrap;
}

.aromex-cart-page .btn-details:hover {
  background: var(--aromex-blue-hover);
  color: white;
  border-color: var(--aromex-blue-hover);
  transform: translateY(-1px);
}

.aromex-cart-page .btn-details svg {
  width: 16px;
  height: 16px;
}

/* ===== RÉSUMÉ DU PANIER ===== */
.aromex-cart-page .cart-summary {
  background: var(--aromex-white);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid var(--aromex-grey-light);
}

.aromex-cart-page .summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--aromex-grey-light);
  font-family: var(--aromex-font-family-primary);
}

.aromex-cart-page .summary-line:last-child {
  border-bottom: none;
}

.aromex-cart-page .summary-line.total-line {
  font-size: 1.2rem;
  padding: 15px 0;
  border-top: 2px solid var(--aromex-black);
  margin-top: 10px;
}

.aromex-cart-page .summary-line.shipping-info {
  border-bottom: none;
  padding: 5px 0;
  justify-content: center;
}

.aromex-cart-page .summary-line.shipping-info small {
  color: var(--aromex-blue-hover);
  font-weight: 600;
}

/* Actions du panier */
.aromex-cart-page .cart-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.aromex-cart-page .btn-clear-cart,
.aromex-cart-page .btn-checkout {
  background: var(--aromex-grey-light);
  color: var(--aromex-black);
  border: 2px solid var(--aromex-black);
  padding: 15px 30px;
  font-family: var(--aromex-font-family-primary);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
}

.aromex-cart-page .btn-clear-cart {
  background: var(--aromex-grey-dark);
  color: var(--aromex-white);
  border-color: var(--aromex-grey-dark);
}

.aromex-cart-page .btn-clear-cart:hover {
  background: var(--aromex-black);
  border-color: var(--aromex-black);
}

.aromex-cart-page .btn-checkout {
  background: var(--aromex-grey-light);
  color: var(--aromex-black);
  border-color: var(--aromex-black);
}

.aromex-cart-page .btn-checkout:hover {
  background: var(--aromex-blue-hover);
  color: var(--aromex-white);
  border-color: var(--aromex-blue-hover);
  text-decoration: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .aromex-cart-page {
    padding: 80px 0 20px 0;
  }

  .aromex-cart-page .container {
    padding: 0 15px;
  }

  .aromex-cart-page .welcome-title h1 {
    font-size: 2rem;
  }

  .aromex-cart-page .content-container {
    padding: 20px;
  }

  .aromex-cart-page .cart-main-content {
    gap: 20px;
  }

  .aromex-cart-page .products-grid {
    max-height: 60vh;
    padding: 5px;
  }

  .aromex-cart-page .section-title {
    font-size: 1rem;
    padding: 12px 15px;
    text-align: center;
  }

  .aromex-cart-page .product-card {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
    text-align: center;
  }

  .aromex-cart-page .product-type-indicator {
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
  }

  .aromex-cart-page .product-image {
    width: 120px;
    height: 120px;
    align-self: center;
  }

  .aromex-cart-page .product-info {
    flex-direction: column;
    gap: 20px;
    text-align: center;
    width: 100%;
  }

  .aromex-cart-page .product-actions {
    flex-direction: column;
    min-width: auto;
    width: 100%;
    gap: 15px;
    padding: 15px;
  }

  .aromex-cart-page .product-price {
    order: 1;
    min-width: auto;
    width: 100%;
  }

  .aromex-cart-page .quantity-selector {
    order: 2;
    justify-content: center;
  }

  .aromex-cart-page .btn-remove-item,
  .aromex-cart-page .btn-details {
    order: 3;
    justify-content: center;
    width: 100%;
    margin-top: 10px;
  }

  .aromex-cart-page .product-main-info {
    min-width: auto;
    width: 100%;
  }

  .aromex-cart-page .product-name {
    font-size: 1.1rem;
  }

  .aromex-cart-page .product-details {
    justify-content: center;
    flex-wrap: wrap;
  }

  .aromex-cart-page .product-actions-container {
    align-items: center;
    width: 100%;
    min-width: auto;
  }

  .aromex-cart-page .product-price-section {
    align-items: center;
  }

  .aromex-cart-page .product-controls {
    align-items: center;
  }

  .aromex-cart-page .product-actions-buttons {
    align-items: center;
  }

  .aromex-cart-page .product-price {
    min-width: auto;
    width: 100%;
    max-width: 200px;
    font-size: 1.4rem;
  }

  .aromex-cart-page .quantity-selector,
  .aromex-cart-page .quantity-display {
    justify-content: center;
  }

  .aromex-cart-page .btn-remove-item,
  .aromex-cart-page .remove-disabled {
    width: 100%;
    max-width: 200px;
    justify-content: center;
  }

  .aromex-cart-page .btn-details {
    width: 100%;
    max-width: 200px;
    justify-content: center;
  }

  .aromex-cart-page .cart-actions {
    flex-direction: column;
    align-items: center;
  }

  .aromex-cart-page .btn-clear-cart,
  .aromex-cart-page .btn-checkout {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .aromex-cart-page .product-card {
    padding: 15px;
    gap: 15px;
  }

  .aromex-cart-page .product-image {
    width: 100px;
    height: 100px;
  }

  .aromex-cart-page .product-name {
    font-size: 1rem;
  }

  .aromex-cart-page .product-price {
    font-size: 1.3rem;
  }

  .aromex-cart-page .qty-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .aromex-cart-page .qty-input {
    width: 50px;
  }
}

/* ===== STYLES SPÉCIFIQUES CHECKOUT ===== */

/* Étapes du checkout */
.checkout-steps {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  gap: 20px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.step.active {
  opacity: 1;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ddd;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  transition: all 0.3s ease;
}

.step.active .step-number {
  background: #4a9eff;
  color: white;
}

.step-label {
  font-family: var(--aromex-font-family-primary);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #333;
}

/* Contenu des étapes */
.checkout-step-content {
  display: none;
}

.checkout-step-content.active {
  display: block;
}

/* Récapitulatif produits dans checkout */
.product-summary-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  border-bottom: 1px solid #eee;
  background: white;
  border-radius: 8px;
  margin-bottom: 10px;
}

.product-summary-image {
  width: 80px;
  height: 60px;
  object-fit: contain;
  flex-shrink: 0;
}

.product-summary-info {
  flex: 1;
}

.product-summary-info h4 {
  margin: 0 0 5px 0;
  font-size: 1rem;
  font-weight: bold;
  color: #333;
}

.product-summary-info p {
  margin: 2px 0;
  font-size: 0.8rem;
  color: #666;
}

.product-summary-price {
  font-size: 1.2rem;
  font-weight: bold;
  color: #333;
}

/* Formulaire d'adresse */
.address-form .form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.address-form .form-group {
  flex: 1;
}

.address-form label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.address-form input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
  transition: border-color 0.3s ease;
}

.address-form input:focus {
  outline: none;
  border-color: #4a9eff;
  box-shadow: 0 0 0 2px rgba(74, 158, 255, 0.2);
}

/* Méthodes de paiement */
.payment-methods {
  margin-bottom: 30px;
}

.payment-method {
  margin-bottom: 15px;
}

.payment-method input[type="radio"] {
  margin-right: 10px;
}

.payment-method label {
  display: flex;
  align-items: center;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.payment-method label:hover {
  border-color: #4a9eff;
  background: #f8f9fa;
}

.payment-method input[type="radio"]:checked + label {
  border-color: #4a9eff;
  background: #e3f2fd;
}

.payment-method label strong {
  display: block;
  margin-bottom: 5px;
}

.payment-method label small {
  color: #666;
  font-size: 0.8rem;
}

/* Actions des étapes */
.step-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
}

.btn-back,
.btn-next,
.btn-confirm {
  background: #4a9eff;
  color: #000;
  border: 2px solid #000;
  padding: 15px 30px;
  font-family: "Montserrat", sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
}

.btn-back {
  background: #6c757d;
  color: white;
  border-color: #6c757d;
}

.btn-back:hover {
  background: #5a6268;
  border-color: #5a6268;
  text-decoration: none;
  color: white;
}

.btn-next:hover {
  background: #2980b9;
  border-color: #000;
}

.btn-confirm {
  background: #28a745;
  color: white;
  border-color: #28a745;
}

.btn-confirm:hover {
  background: #218838;
  border-color: #218838;
}

.btn-confirm:disabled {
  background: #6c757d;
  border-color: #6c757d;
  cursor: not-allowed;
  opacity: 0.6;
}

/* Récapitulatif final */
.final-summary {
  background: white;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  border: 2px solid #333;
}

.final-summary h3 {
  margin: 0 0 15px 0;
  font-size: 1.2rem;
  text-align: center;
  color: #333;
}

.final-totals .summary-line {
  font-size: 1.3rem;
  font-weight: bold;
  padding: 15px 0;
  border-top: 2px solid #333;
}

/* Responsive checkout */
@media (max-width: 768px) {
  .checkout-steps {
    gap: 10px;
  }

  .step-number {
    width: 35px;
    height: 35px;
    font-size: 0.8rem;
  }

  .step-label {
    font-size: 0.7rem;
  }

  .address-form .form-row {
    flex-direction: column;
    gap: 15px;
  }

  .step-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn-back,
  .btn-next,
  .btn-confirm {
    width: 100%;
    max-width: 250px;
  }

  .product-summary-item {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}

/* ============================================
   SECTION COMMANDES EN ATTENTE DE VIREMENT
   ============================================ */

.pending-payment-orders-section {
  margin-bottom: 30px;
  background: #f8f9fa;
  border-radius: 10px;
  padding: 20px;
  border: 2px solid var(--aromex-blue-hover);
}

.pending-payment-orders-section h2 {
  color: #856404;
  margin-bottom: 15px;
  font-size: 1.5rem;
  font-weight: bold;
}

.pending-orders-grid {
  display: grid;
  gap: 20px;
}

.pending-order-card {
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-left: 4px solid var(--aromex-blue-hover);
}

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

.order-info h3 {
  margin: 0 0 5px 0;
  color: #333;
  font-size: 1.2rem;
}

.order-date {
  color: #666;
  font-size: 0.9rem;
  margin: 0 0 5px 0;
}

.order-total {
  color: #666;
  font-size: 1.1rem;
  margin: 0;
}

.status-badge {
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: bold;
  text-transform: uppercase;
}

.order-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.proceed-payment-btn {
  background-color: var(--aromex-blue-hover);
  border-color: var(--aromex-blue-hover);
  color: #212529;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.proceed-payment-btn:hover {
  background-color: var(--aromex-black);
  border-color: var(--aromex-blue-hover);
  color: var(--aromex-white);
  transform: translateY(-1px);
}

.view-order-details-btn,
.close-details-btn {
  background-color: #6c757d;
  border-color: #6c757d;
  color: white;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.view-order-details-btn:hover,
.close-details-btn:hover {
  background-color: #5a6268;
  border-color: #545b62;
}

.order-details {
  margin-top: 20px;
  background: #f8f9fa;
  border-radius: 5px;
  padding: 15px;
  border: 1px solid #dee2e6;
  max-height: 80vh;
  overflow-y: auto;
  width: 100%;
  box-sizing: border-box;
}

.order-details-content {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.order-products-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 15px;
  overflow-x: hidden;
}

.order-product {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
  background: white;
  border-radius: 8px;
  padding: 15px;
  border: 1px solid #e9ecef;
  box-sizing: border-box;
}

.order-product .product-image {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  border-radius: 6px;
  overflow: hidden;
}

.order-product .product-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.order-product .product-info {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 10px;
}

.order-product .product-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
}

.order-product .product-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin: 0;
  flex: 1;
}

.order-product .product-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 5px;
}

.order-product .product-reference,
.order-product .product-quantity {
  font-size: 0.9rem;
  color: #666;
  background: #f8f9fa;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.order-product .status-badge {
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
}

.order-product .price-info {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 5px;
}

.order-product .price-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.order-product .price-label {
  font-size: 0.85rem;
  color: #666;
  text-transform: uppercase;
}

.order-product .price-value {
  font-weight: 500;
  color: #333;
}

.order-product .price-value.total {
  color: #2196f3;
  font-weight: 600;
}

@media (max-width: 768px) {
  .order-product {
    flex-direction: column;
    align-items: flex-start;
  }

  .order-product .product-image {
    width: 60px;
    height: 60px;
  }

  .order-product .product-header {
    flex-direction: column;
    gap: 8px;
  }

  .order-product .product-meta {
    flex-wrap: wrap;
  }

  .order-product .price-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* Style pour la grille de produits dans les détails */
.order-details .order-products-list {
  display: flex;
  gap: 15px;
  padding: 15px;
}

/* Style pour rendre les produits cliquables */
.order-product-item,
.product-card {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.order-product-item:hover,
.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.order-details-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #dee2e6;
}

.order-products-list h4 {
  color: #495057;
  margin-bottom: 15px;
}

.order-product-item {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 15px;
  background: white;
  border-radius: 5px;
  margin-bottom: 10px;
  border: 1px solid #e9ecef;
}

.order-product-item .product-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  align-items: start;
}

.order-product-item .product-info strong {
  display: block;
  margin-bottom: 5px;
}

.order-product-item .product-quantity,
.order-product-item .product-price,
.order-product-item .product-total {
  text-align: left;
  padding: 5px 0;
  border-top: 1px solid #f5f5f5;
}

.product-info {
  width: 100%;
}

.product-info .product-main {
  margin-bottom: 15px;
}

.product-info .product-name {
  color: #333;
  font-size: 1.1rem;
  margin: 0 0 5px 0;
}

.product-info .product-reference {
  color: #666;
  font-size: 0.9rem;
}

.product-info {
  display: flex;
  gap: 15px;
  width: 100%;
  background: white;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.product-main-info {
  border-bottom: 1px solid #eee;
  padding-bottom: 12px;
}

.product-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.product-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.product-reference,
.product-quantity {
  font-size: 0.9rem;
  color: #666;
  background: #f8f9fa;
  padding: 4px 8px;
  border-radius: 4px;
}

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 15px;
  color: white;
  font-size: 0.85rem;
  font-weight: 500;
}

.product-details {
  padding-top: 12px;
}

.price-section {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.price-column {
  flex: 1;
  min-width: 200px;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 15px;
}

.price-column.total {
  background: #e3f2fd;
}

.price-header {
  font-weight: 600;
  color: #333;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
}

.price-label {
  color: #666;
  font-size: 0.9rem;
}

.price-value {
  font-weight: 500;
  color: #333;
  font-size: 0.95rem;
}

.price-value.highlight {
  color: #2196f3;
  font-weight: 600;
  font-size: 1.1rem;
}

.product-info .product-details > div {
  padding: 10px;
  background: #f8f9fa;
  border-radius: 5px;
}

.product-info .product-details strong {
  display: block;
  color: #333;
  font-size: 0.9rem;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.product-info .product-details div:not(strong) {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.4;
}

.product-info .status-badge {
  display: inline-block;
  margin-top: 5px;
  padding: 4px 10px;
  border-radius: 15px;
  color: white;
  font-size: 0.8rem;
  font-weight: 500;
}

.product-ref {
  color: #666;
  font-size: 0.85rem;
  display: block;
  margin-top: 3px;
}

.product-quantity,
.product-price,
.product-total {
  text-align: right;
  font-weight: 500;
}

.product-total {
  color: #28a745;
  font-weight: bold;
}

.loading,
.error {
  text-align: center;
  padding: 20px;
  font-style: italic;
}

.error {
  color: #dc3545;
}

/* Responsive pour commandes en attente */
@media (max-width: 768px) {
  .pending-payment-orders-section .order-header {
    flex-direction: column;
    gap: 10px;
  }

  .pending-payment-orders-section .order-actions {
    flex-direction: column;
  }

  .pending-payment-orders-section .proceed-payment-btn,
  .pending-payment-orders-section .view-order-details-btn {
    width: 100%;
    text-align: center;
  }

  .pending-payment-orders-section .order-product-item {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .pending-payment-orders-section .product-quantity,
  .pending-payment-orders-section .product-price,
  .pending-payment-orders-section .product-total {
    text-align: left;
  }
}

/* ===== MODALE PRODUIT ===== */
.product-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(2px);
}

.product-modal .modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.product-modal .modal-content {
  position: relative;
  background: white;
  border-radius: 12px;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 2;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  animation: modalFadeIn 0.3s ease-out;
}

.product-modal .modal-header {
  padding: 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-modal .modal-title {
  margin: 0;
  font-size: 1.5rem;
  color: var(--aromex-black);
}

.product-modal .modal-close {
  background: none;
  border: none;
  padding: 5px;
  cursor: pointer;
  color: #666;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.product-modal .modal-close:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

.product-modal .modal-body {
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.product-modal .modal-product-image {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  border-radius: 8px;
  overflow: hidden;
}

.product-modal .modal-product-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-modal .modal-product-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-modal .modal-price {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--aromex-black);
}

.product-modal .modal-reference {
  color: #666;
  font-size: 0.9rem;
}

.product-modal .modal-description h3,
.product-modal .modal-categories h3 {
  font-size: 1.1rem;
  margin: 0 0 10px 0;
  color: var(--aromex-black);
}

.product-modal .modal-description p {
  color: #666;
  line-height: 1.5;
  margin: 0;
}

.product-modal .modal-categories-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-modal .category-tag {
  background: #f0f0f0;
  color: #333;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .product-modal .modal-body {
    grid-template-columns: 1fr;
  }

  .product-modal .modal-product-image {
    aspect-ratio: 16/9;
  }
}

/* ===== MODALE DE PAIEMENT ===== */
.aromex-modal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 99999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  transform: none !important;
}

.aromex-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  z-index: 1;
}

.aromex-modal-container {
  position: relative !important;
  background: white !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2) !important;
  max-width: 500px !important;
  width: 90% !important;
  max-height: 90vh !important;
  overflow: hidden !important;
  animation: modalFadeIn 0.3s ease-out !important;
  z-index: 2 !important;
  margin: auto !important;
  transform: none !important;
  left: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.aromex-modal-header {
  background: var(--aromex-blue-hover);
  color: var(--aromex-black);
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.aromex-modal-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  text-transform: uppercase;
}

.aromex-modal-close {
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.aromex-modal-close:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.aromex-modal-content {
  padding: 30px;
}

.payment-confirmation-message {
  text-align: center;
}

.validation-icon {
  margin-bottom: 20px;
}

.validation-text {
  font-size: 16px;
  color: #333;
  margin-bottom: 20px;
  line-height: 1.5;
}

.order-total {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 0;
}

.aromex-modal-footer {
  padding: 20px;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Styles pour les boutons de la modale */
.aromex-modal-footer .btn {
  font-family: var(--aromex-font-family-primary);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 15px 30px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid var(--aromex-black);
}

.aromex-modal-footer .btn-secondary {
  background: var(--aromex-grey-dark);
  color: var(--aromex-white);
  border-color: var(--aromex-grey-dark);
}

.aromex-modal-footer .btn-secondary:hover {
  background: var(--aromex-black);
  border-color: var(--aromex-black);
}

.aromex-modal-footer .btn-primary {
  background: var(--aromex-grey-light);
  color: var(--aromex-black);
  border-color: var(--aromex-black);
}

.aromex-modal-footer .btn-primary:hover {
  background: var(--aromex-blue-hover);
  color: var(--aromex-black);
  border-color: var(--aromex-black);
}
