/*!*********************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[3]!./component/cart/cart.css ***!
  \*********************************************************************************************************************************************************************************************************************************************************************/
/* Styles pour les composants du panier */

/* Style général du panier */
.cart-content {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.cart-title {
  font-size: 28px;
  margin-bottom: 30px;
  font-weight: 600;
  color: #2c4783;
  text-align: center;
}

/* Container pour les items du panier */
.cart-items {
  margin-bottom: 30px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* Message panier vide */
.cart-empty {
  padding: 40px 20px;
  text-align: center;
  font-size: 16px;
  color: #666;
  background-color: #f9f9f9;
  border-radius: 8px;
  border: 1px dashed #ddd;
}

/* Styles pour les éléments du panier */
.cart-item {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  grid-template-areas: 
    "image info actions"
    "image details details";
  border-bottom: 1px solid #eaeaea;
  padding: 15px;
  grid-gap: 15px;
  gap: 15px;
  background-color: white;
  transition: background-color 0.2s ease;
  align-items: start;
}

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

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

/* Image du produit */
.cart-item-img {
  grid-area: image;
  width: 70px;
  height: 70px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid #eaeaea;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-img img {
  width: 90%;
  height: 90%;
  object-fit: contain;
}

/* Infos du produit */
.cart-item-info {
  grid-area: info;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* En-tête de l'item */
.cart-item-header {
  display: flex;
  align-items: flex-start;
}

.cart-item-name {
  font-weight: 600;
  font-size: 15px;
  color: #2c2c2c;
  line-height: 1.3;
}

.cart-item-ref {
  font-size: 13px;
  color: #777;
  margin-left: 5px;
}

/* Bouton de suppression */
.cart-remove-btn {
  grid-area: actions;
  background: #f8f8f8;
  border: 1px solid #e0e0e0;
  color: #666;
  font-size: 14px;
  cursor: pointer;
  padding: 3px 6px;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.cart-remove-btn:hover {
  background-color: #ffebee;
  color: #d32f2f;
  border-color: #ffcdd2;
}

/* Détails du produit */
.cart-item-details {
  grid-area: details;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding-top: 5px;
}

/* Contrôles de quantité */
.cart-qty-controls {
  display: flex;
  align-items: center;
  background-color: #f5f5f5;
  border-radius: 4px;
  padding: 3px;
  border: 1px solid #e0e0e0;
  height: 28px;
}

.cart-qty-btn {
  width: 24px;
  height: 24px;
  background-color: white;
  border: none;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #333;
  transition: all 0.2s ease;
}

.cart-qty-btn:hover {
  background-color: #2c4783;
  color: white;
}

.cart-item-qty {
  font-size: 14px;
  font-weight: 500;
  min-width: 24px;
  text-align: center;
  color: #333;
}

/* Container de prix avec nouveau style */
.price-container {
  background-color: #f9f9f9;
  padding: 8px 12px;
  border-radius: 6px;
  min-width: 180px;
  margin-left: 10px;
}

.price-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: right;
}

.unit-price, .line-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.line-total {
  padding-top: 6px;
  border-top: 1px dashed #e0e0e0;
  margin-top: 3px;
  font-weight: 500;
}

.price-label {
  font-size: 13px;
  color: #666;
  font-weight: normal;
}

.price-value {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.price-ttc {
  font-weight: 600;
  font-size: 16px;
  color: #333;
}

.price-ht {
  font-size: 13px;
  color: #777;
}

.total-value {
  font-weight: 700;
  font-size: 18px;
  color: #2c4783;
}

/* Résumé du panier */
.cart-summary {
  margin: 30px 0;
  padding: 20px;
  border-radius: 8px;
  background-color: white;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  font-size: 16px;
}

.cart-summary-row:not(:last-child) {
  border-bottom: 1px solid #f0f0f0;
}

.cart-summary-total {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 2px solid #e0e0e0;
  font-weight: 600;
  font-size: 18px;
}

.cart-summary-label {
  font-weight: 500;
}

.cart-total {
  color: #2c4783;
  font-size: 20px;
}

/* Actions du panier */
.cart-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.cart-btn {
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  font-size: 16px;
  border: none;
}

.cart-btn.continue {
  background-color: var(--secondary);
  color: white;
  flex: 1 1;
}

.cart-btn.checkout {
  background-color: #2c4783;
  color: white;
  flex: 2 1;
}

.cart-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.cart-btn.checkout:hover {
  box-shadow: 0 4px 8px rgba(44, 71, 131, 0.2);
}

/* Styles pour le code promo */
.cart-voucher {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.cart-voucher-input {
  flex: 1 1;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 15px;
}

.cart-btn.voucher {
  background-color: #f0f0f0;
  color: #333;
  padding: 10px 15px;
}

.cart-btn.voucher:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Classes responsive */
.mobile-only {
  display: none;
}

.desktop-only {
  display: flex;
}

/* Styles de responsive */
@media (max-width: 768px) {
  .cart-item {
    grid-template-columns: 60px 1fr auto;
    grid-template-areas: 
      "image info actions"
      "details details details";
    padding: 12px;
    gap: 10px;
  }

  .mobile-only {
    display: flex;
    margin-top: 8px;
  }

  .desktop-only {
    display: none;
  }

  .cart-item-img {
    width: 60px;
    height: 60px;
  }

  .cart-item-details {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .price-container {
    width: 100%;
    margin-left: 0;
  }

  .price-details {
    width: 100%;
  }

  .cart-summary-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .cart-voucher {
    flex-direction: column;
  }

  .cart-actions {
    flex-direction: column;
    justify-content: center;
  }

  .cart-btn {
    width: 100%;
  }
  .cart-btn.checkout {
    width: 100%;
  }
}

