/* ========================================
   PAGE PANIER AGLAÉ CRÉE
   ======================================== */

.aglae-cart-page {
  background: var(--bg-body, #f0f2f0);
  min-height: 100vh;
  padding: 2rem 0;
}

.aglae-cart-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ========================================
   HEADER DU PANIER
   ======================================== */

.aglae-cart-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem;
  background: white;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(107, 91, 77, 0.1);
}

.aglae-cart-title {
  font-family: "Capitolium", serif;
  font-size: 2.5rem;
  color: var(--bg-marron, #6b5b4d);
  margin: 0 0 0.5rem 0;
  font-weight: normal;
}

.aglae-cart-subtitle {
  color: #8a7a6b;
  font-size: 1.1rem;
  margin: 0;
}

/* ========================================
   PANIER VIDE
   ======================================== */

.aglae-cart-empty {
  text-align: center;
  padding: 4rem 2rem;
  background: white;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(107, 91, 77, 0.1);
}

.empty-cart-icon {
  color: var(--bg-marron, #6b5b4d);
  margin-bottom: 1.5rem;
  opacity: 0.6;
}

.aglae-cart-empty h2 {
  font-family: "Capitolium", serif;
  font-size: 1.75rem;
  color: var(--bg-marron, #6b5b4d);
  margin: 0 0 1rem 0;
  font-weight: normal;
}

.aglae-cart-empty p {
  color: #8a7a6b;
  font-size: 1.1rem;
  margin: 0 0 2rem 0;
}
.return-to-shop {
  display: none !important;
}

/* ========================================
   ARTICLES DU PANIER
   ======================================== */

.aglae-cart-items {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(107, 91, 77, 0.1);
}

.aglae-cart-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid #e8e3dd;
  position: relative;
}

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

/* Image produit */
.aglae-cart-item-image {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--bg-decli2, #e8e3dd);
}

.aglae-cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.aglae-cart-item-image:hover img {
  transform: scale(1.05);
}

/* Détails produit */
.aglae-cart-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.aglae-cart-item-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: var(--bg-marron, #6b5b4d);
}

.aglae-cart-item-name a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.aglae-cart-item-name a:hover {
  color: var(--bg-btn, #4a90e2);
}

.aglae-cart-item-price {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

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

.price-value {
  font-weight: 600;
  color: var(--bg-btn, #4a90e2);
  font-size: 1.1rem;
}

/* Actions et quantité */
.aglae-cart-item-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.aglae-cart-item-quantity {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.aglae-cart-item-quantity label {
  font-weight: 500;
  color: var(--bg-marron, #6b5b4d);
  font-size: 0.9rem;
}

.aglae-cart-item-quantity input[type="number"] {
  width: 80px;
  padding: 0.5rem;
  border: 2px solid #e8e3dd;
  border-radius: 0.5rem;
  text-align: center;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.aglae-cart-item-quantity input[type="number"]:focus {
  border-color: var(--bg-btn, #4a90e2);
  outline: none;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

/* Bouton supprimer */
.aglae-remove-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fee;
  color: #dc3545;
  text-decoration: none;
  transition: all 0.3s ease;
}

.aglae-remove-item:hover {
  background: #dc3545;
  color: white;
  transform: scale(1.1);
}

/* Sous-total */
.aglae-cart-item-subtotal {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1.1rem;
}

.subtotal-label {
  color: #8a7a6b;
  font-weight: normal;
  font-size: 0.9rem;
}

.subtotal-value {
  color: var(--bg-marron, #6b5b4d);
}

/* ========================================
   ACTIONS DU PANIER
   ======================================== */

.aglae-cart-actions {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(107, 91, 77, 0.1);
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

/* Section code promo */
.aglae-coupon-section {
  flex: 1;
  min-width: 300px;
}

.aglae-coupon-section h3 {
  font-family: "Capitolium", serif;
  font-size: 1.25rem;
  color: var(--bg-marron, #6b5b4d);
  margin: 0 0 1rem 0;
  font-weight: normal;
}

.aglae-coupon-form {
  display: flex;
  gap: 0.75rem;
}

.aglae-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 2px solid #e8e3dd;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.aglae-input:focus {
  border-color: var(--bg-btn, #4a90e2);
  outline: none;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

/* Bouton mise à jour */
.aglae-cart-update {
  flex-shrink: 0;
}

/* ========================================
   BOUTONS AGLAÉ
   ======================================== */

.aglae-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  justify-content: center;
}

.aglae-btn-primary {
  background: linear-gradient(135deg, var(--bg-btn, #4a90e2), #357abd);
  color: white;
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.aglae-btn-primary:hover {
  background: linear-gradient(135deg, #357abd, #2a5f8f);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(74, 144, 226, 0.4);
  color: white;
  text-decoration: none;
}

.aglae-btn-secondary {
  background: var(--bg-marron, #6b5b4d);
  color: white;
}

.aglae-btn-secondary:hover {
  background: #5a4a3d;
  transform: translateY(-1px);
}

.aglae-btn-outline {
  background: transparent;
  color: var(--bg-marron, #6b5b4d);
  border: 2px solid var(--bg-marron, #6b5b4d);
}

.aglae-btn-outline:hover {
  background: var(--bg-marron, #6b5b4d);
  color: white;
}

/* ========================================
   TOTAUX DU PANIER
   ======================================== */

.aglae-cart-collaterals {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(107, 91, 77, 0.1);
}

.aglae-cart-collaterals .cart_totals {
  width: 100%;
}

.aglae-cart-collaterals .cart_totals h2 {
  font-family: "Capitolium", serif;
  font-size: 1.5rem;
  color: var(--bg-marron, #6b5b4d);
  margin: 0 0 1.5rem 0;
  font-weight: normal;
  text-align: center;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
  .aglae-cart-container {
    padding: 0 1rem;
  }

  .aglae-cart-header {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }

  .aglae-cart-title {
    font-size: 2rem;
  }

  .aglae-cart-item {
    flex-direction: column;
    gap: 1rem;
  }

  .aglae-cart-item-image {
    width: 100px;
    height: 100px;
    align-self: center;
  }

  .aglae-cart-item-actions {
    justify-content: space-between;
  }

  .aglae-cart-actions {
    flex-direction: column;
    gap: 1.5rem;
  }

  .aglae-coupon-form {
    flex-direction: column;
  }

  .aglae-cart-items,
  .aglae-cart-actions,
  .aglae-cart-collaterals {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .aglae-cart-title {
    font-size: 1.75rem;
  }

  .aglae-cart-subtitle {
    font-size: 1rem;
  }

  .aglae-cart-item {
    padding: 1rem 0;
  }

  .aglae-cart-item-image {
    width: 80px;
    height: 80px;
  }

  .aglae-btn {
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
  }
}

/* ========================================
   ANIMATIONS
   ======================================== */

.aglae-cart-item {
  animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* États de chargement */
.aglae-btn.loading {
  opacity: 0.7;
  cursor: not-allowed;
}

.aglae-btn.loading::after {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 0.5rem;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
