html, body {
  margin: 0;
  padding: 0;
  font-family: 'Libre Baskerville', serif;
}

.cart-layout-wrapper {
  display: flex;
  flex-wrap: wrap;
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 40px;
  gap: 80px;
  font-size: 14px;
  line-height: 1.4;
}

.cart-title {
  font-size: 16px;
  font-weight: normal;
  letter-spacing: 2px;
  margin: 0 0 40px 0;
  text-align: center;
  color: #000;
}

.cart-products-column {
  flex: 2;
  min-width: 400px;
}

.cart-summary-column {
  flex: 1;
  min-width: 300px;
  position: sticky;
  top: 20px;
  align-self: flex-start;
}

.summary-box {
  background: #f8f8f8;
  padding: 30px;
  border: none;
}

.cart-product-row {
  display: flex;
  padding: 25px 0;
  border-bottom: 1px solid #e8e8e8;
  position: relative;
  align-items: flex-start;
}

.remove {
  position: absolute;
  top: 10px;
  right: 0;
}

.remove-product {
  color: #ccc;
  font-size: 18px;
  text-decoration: none;
  font-weight: 300;
  transition: color 0.3s ease;
}

.remove-product:hover {
  color: #000;
}

.product-content {
  display: flex;
  width: 100%;
  gap: 20px;
  align-items: center; /* Centrage vertical */
}

.thumb {
  flex-shrink: 0;
}

.thumb img {
  width: 120px;
  height: 120px; /* Hauteur fixe pour un carré */
  object-fit: cover;
  border-radius: 0;
}

.details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px; /* Espacement réduit */
  justify-content: center;
}

.name {
  font-size: 16px;
  font-weight: normal;
  color: #000;
  line-height: 1.3;
  margin-bottom: 5px;
}

.name a {
  color: #000;
  text-decoration: none;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 0;
}

.qty-btn {
  width: 35px;
  height: 35px;
  border: 1px solid #000 !important;
  background: #fff !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: normal;
  color: #000 !important;
  transition: all 0.3s ease;
  outline: none !important;
}

.qty-btn:hover,
.qty-btn:focus,
.qty-btn:active {
  background: #f0f0f0 !important;
  border-color: #000 !important;
  color: #000 !important;
  outline: none !important;
}

.qty-btn.minus {
  border-right: none !important;
  border-radius: 0;
}

.qty-btn.plus {
  border-left: none !important;
  border-radius: 0;
}

.quantity input.qty {
  width: 60px;
  height: 35px;
  text-align: center;
  border: 1px solid #000 !important;
  border-left: none !important;
  border-right: none !important;
  background: #fff !important;
  font-size: 14px;
  color: #000 !important;
  -webkit-appearance: none;
  -moz-appearance: textfield;
  margin: 0;
  padding: 0;
  outline: none !important;
}

.quantity input.qty::-webkit-outer-spin-button,
.quantity input.qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.quantity input.qty:focus {
  outline: none !important;
  border-color: #000 !important;
}

.price {
  font-size: 16px;
  font-weight: 500;
  color: #000;
  text-align: right;
  min-width: 100px;
  flex-shrink: 0;
}

.cart-totals {
  margin-bottom: 30px;
}

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

.subtotal-row {
  font-size: 14px;
  color: #666;
}

.order-total {
  font-size: 16px;
  font-weight: bold;
  color: #000;
  padding: 15px 0 20px 0;
  margin-top: 10px;
}

.shipping-notice {
  font-size: 12px;
  color: #999;
  margin-bottom: 30px;
  line-height: 1.4;
}

.checkout-button,
.checkout-button:visited,
.checkout-button:link {
  display: block !important;
  width: 100% !important;
  background: #000 !important;
  color: #fff !important;
  padding: 15px 20px !important;
  text-align: center !important;
  text-decoration: none !important;
  font-size: 12px !important;
  font-weight: normal !important;
  letter-spacing: 1px !important;
  border: none !important;
  cursor: pointer !important;
  margin-bottom: 20px !important;
  transition: background-color 0.3s ease !important;
}

.checkout-button:hover,
.checkout-button:focus,
.checkout-button:active {
  background: #333 !important;
  color: #fff !important;
  text-decoration: none !important;
}

.coupon-section {
  display: flex;
  gap: 10px;
}

.coupon-input {
  flex: 1;
  padding: 12px;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 11px;
  letter-spacing: 0.5px;
  color: #000;
}

.coupon-input::placeholder {
  color: #999 !important;
  font-size: 11px;
}

.coupon-apply-btn {
  background: #000;
  color: #fff !important;
  border: none;
  padding: 12px 20px;
  font-size: 11px;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.coupon-apply-btn:hover {
  background: #333;
  color: #fff !important;
}

.woocommerce-message,
.woocommerce-error {
  background: #f8f8f8;
  border-left: 3px solid #000;
  padding: 15px;
  margin-bottom: 20px;
  font-size: 14px;
}

.woocommerce .quantity input.qty,
.woocommerce-page .quantity input.qty {
  border: 1px solid #000 !important;
  border-left: none !important;
  border-right: none !important;
}

.woocommerce .quantity .qty-btn,
.woocommerce-page .quantity .qty-btn {
  border: 1px solid #000 !important;
}

body .woocommerce .checkout-button,
body .woocommerce-page .checkout-button {
  background: #000 !important;
  color: #fff !important;
}

body .woocommerce .checkout-button:hover,
body .woocommerce-page .checkout-button:hover {
  background: #333 !important;
  color: #fff !important;
}

.quantity-controls button,
.quantity-controls .qty-btn {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  border: 1px solid #000 !important;
  background: #fff !important;
  color: #000 !important;
  box-shadow: none !important;
}

.quantity-controls button:focus,
.quantity-controls .qty-btn:focus,
.quantity-controls button:active,
.quantity-controls .qty-btn:active {
  border-color: #000 !important;
  outline: none !important;
  box-shadow: none !important;
}

button {
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  outline: none;
}

button:focus {
  outline: none !important;
}

.woocommerce-cart-form input,
.woocommerce-cart-form button,
.woocommerce-cart-form a {
  color: inherit !important;
}

@media screen and (max-width: 768px) {
  .cart-layout-wrapper {
    flex-direction: column;
    padding: 30px 20px 100px 20px;
    gap: 40px;
  }
  
  .cart-products-column {
    min-width: auto;
  }
  
  .cart-summary-column {
    position: static;
  }
  
  .product-content {
    flex-direction: row; /* Garder horizontal même en mobile */
    gap: 15px;
    align-items: flex-start;
  }
  
  .thumb img {
    width: 80px;
    height: 80px;
  }
  
  .details {
    gap: 6px;
  }
  
  .name {
    font-size: 14px;
  }
  
  .qty-input {
    width: 45px !important;
    height: 30px !important;
    font-size: 13px !important;
  }
  
  .price {
    font-size: 15px;
    min-width: 80px;
    text-align: right;
  }

  /* Conteneur sticky pour le bouton */
  .wc-proceed-to-checkout {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 999 !important;
    background: #fff !important;
    padding: 15px 20px !important;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1) !important;
    border-top: 1px solid #eee !important;
  }

  /* Total au-dessus du bouton */
  .sticky-total {
    display: block !important;
    text-align: center !important;
    font-weight: bold !important;
    margin-bottom: 10px !important;
    color: #000 !important;
    font-size: 16px !important;
  }

  /* Bouton checkout en mobile */
  .checkout-button {
    display: block !important;
    width: 100% !important;
    background: #000 !important;
    color: #fff !important;
    padding: 18px 20px !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: bold !important;
    letter-spacing: 1px !important;
    border: none !important;
    margin: 0 !important;
    border-radius: 0 !important;
    text-align: center !important;
  }

  .checkout-button:hover,
  .checkout-button:focus,
  .checkout-button:active {
    background: #333 !important;
    color: #fff !important;
    text-decoration: none !important;
  }

  /* Masquer la section coupon en mobile */
  .coupon-section {
    display: none;
  }

  .summary-box {
    padding: 20px;
    margin-bottom: 20px;
  }

  /* Padding pour éviter que le contenu soit caché */
  body {
    padding-bottom: 100px;
  }
}

/* Style pour la quantité simple */
.quantity-simple {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.quantity-simple label {
  font-size: 13px;
  color: #666;
  margin: 0;
  min-width: 65px; /* Largeur fixe pour l'alignement */
}

.qty-input {
  width: 50px !important;
  height: 32px !important;
  text-align: center !important;
  border: 1px solid #ddd !important;
  background: #fff !important;
  font-size: 14px !important;
  color: #000 !important;
  padding: 5px !important;
  border-radius: 3px !important;
}

.qty-input:focus {
  border-color: #000 !important;
  outline: none !important;
}

/* Style du bouton mettre à jour */
.cart-actions {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eee;
  display: block !important;
}

.update-cart-button {
  background: #000;
  color: #fff;
  padding: 12px 24px;
  border: none;
  font-size: 12px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.update-cart-button:hover {
  background: #333;
}



/* Masquer le bouton update cart */
.cart-actions {
    display: none !important;
}

.update-cart-btn {
    display: none !important;
}

/* Quand le panier est vide, masquer la colonne summary */
/* Style pour le panier vide */
.cart-empty {
  text-align: center;
  padding: 120px 40px;
  color: #333;
}

.cart-empty p {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.5px;
  margin: 0 0 50px 0;
  color: #333;
  line-height: 1.4;
}

.cart-empty .continue-shopping {
  display: inline-block;
  background: transparent;
  color: #000 !important;
  padding: 15px 30px;
  text-decoration: none;
  font-size: 12px;
  font-weight: normal;
  letter-spacing: 1.5px;
  border: 1px solid #000;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 0;
  text-transform: uppercase;
}

.cart-empty .continue-shopping:hover {
  background: #000;
  color: #fff !important;
  text-decoration: none;
}

/* Masquer la colonne summary quand le panier est vide */
.cart-layout-wrapper:has(.cart-empty) .cart-summary-column {
  display: none;
}

/* Responsive pour mobile */
@media screen and (max-width: 768px) {
  .cart-empty {
    padding: 80px 20px;
  }
  
  .cart-empty p {
    font-size: 16px;
    margin-bottom: 40px;
  }
  
  .cart-empty .continue-shopping {
    padding: 18px 25px;
    font-size: 11px;
    width: auto;
    display: inline-block;
  }
}

.cart-empty-custom {
    text-align: center;
    padding: 120px 40px;
    color: #333;
}

.cart-empty-custom p {
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0.5px;
    margin: 0 0 50px 0;
    color: #333;
    line-height: 1.4;
}

.cart-empty-custom .continue-shopping-custom {
    display: inline-block;
    background: transparent;
    color: #000 !important;
    padding: 15px 30px;
    text-decoration: none;
    font-size: 12px;
    font-weight: normal;
    letter-spacing: 1.5px;
    border: 1px solid #000;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.cart-empty-custom .continue-shopping-custom:hover {
    background: #000;
    color: #fff !important;
    text-decoration: none;
}

.cart-empty {
    text-align: center;
    padding: 120px 40px;
    color: #333;
}

.cart-empty p {
    font-size: 18px;
    margin: 0 0 50px 0;
    color: #333;
}

.continue-shopping {
    display: inline-block;
    background: transparent;
    color: #000 !important;
    padding: 15px 30px;
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 1.5px;
    border: 1px solid #000;
    text-transform: uppercase;
}

.continue-shopping:hover {
    background: #000;
    color: #fff !important;
}

/* Masquer tous les messages de mise à jour du panier */
.woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-message,
.wc-block-cart__sidebar .woocommerce-message {
  display: none !important;
}