/* ==========================================================================
   Daytona ANIMA - PANIER (#cart)
   daytona-cart-v1.1.0.css
   Cible les VRAIES classes du markup (product-line / product-line__content
   -left / -right / __actions). Corrige la ligne produit qui tombait en
   colonne. CSS pur, aucun template modifie.
   ========================================================================== */

/* === Conteneur 2 colonnes === */
#cart .columns-container.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 30px;
}
#cart .cart-grid.row {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin: 0;
}
#cart .cart-grid__content.col-lg-8 {
  flex: 1 1 62%;
  max-width: calc(62% - 15px);
}
#cart .cart-grid__aside.col-lg-4 {
  flex: 1 1 34%;
  max-width: 360px;
}
@media (max-width: 991px) {
  #cart .cart-grid__content.col-lg-8,
  #cart .cart-grid__aside.col-lg-4 {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

/* === Titre PANIER === */
#cart .page-title-section,
#cart h1.page-title-section {
  font-family: 'Khand', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 34px;
  letter-spacing: 0.02em;
  color: #000;
  margin: 10px 0 6px;
  position: relative;
  padding-bottom: 14px;
}
#cart .page-title-section::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 140px;
  height: 4px;
  background: #eb6100;
}

/* === Carte contenant la liste produits === */
#cart .cart-grid__products-details {
  border: 1px solid #ececec;
  border-radius: 4px;
  padding: 4px 26px;
  margin-top: 22px;
  background: #fff;
}
#cart .cart__overview hr,
#cart .cart-overview hr {
  border: none;
  border-top: 1px solid #ececec;
  margin: 0;
}

/* ==========================================================================
   LIGNE PRODUIT — structure flex (image | infos | quantite/prix | retirer)
   ========================================================================== */
#cart .product-line {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 22px 0;
  flex-wrap: nowrap;
}

/* --- Image --- */
#cart .product-line__image {
  flex: 0 0 90px;
  width: 90px;
}
#cart .product-line__image a {
  display: block;
  width: 90px;
  height: 90px;
  border: 1px solid #ececec;
  border-radius: 4px;
  overflow: hidden;
  background: #f7f7f7;
}
#cart .product-line__image picture {
  display: block;
  width: 100%;
  height: 100%;
}
#cart .product-line__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* Image vide/cassee (srcset vide dans le markup hummingbird) : placeholder propre */
#cart .product-line__img[srcset=","],
#cart .product-line__img:not([src]),
#cart .product-line__img[src=""] {
  position: relative;
}
/* On masque l'alt-texte disgracieux en rendant l'image transparente si pas de src valide.
   Le cadre gris + l'icone restent comme placeholder neutre. */
#cart .product-line__image a::before {
  content: "image";
  font-family: 'Material Icons';
  font-size: 34px;
  color: #c4c4c4;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
}
#cart .product-line__image a { position: relative; }
#cart .product-line__img { position: relative; z-index: 1; background: #f7f7f7; }

/* --- Contenu (centre + droite) --- */
#cart .product-line__content {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: nowrap;
}
#cart .product-line__content-left {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
#cart .product-line__content-right {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 26px;
}

/* Nom produit */
#cart a.product-line__title:not(.product-line__item) {
  font-family: 'Khand', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 17px;
  letter-spacing: 0.02em;
  color: #000;
  text-decoration: none;
  line-height: 1.25;
}
#cart a.product-line__title:hover { color: #eb6100; }

/* Prix unitaire (sous le nom) */
#cart .product-line__item--prices .product-line__item-price {
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  color: #555;
}

/* Bloc quantite */
#cart .quantity-button__group {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d8d8d8;
  border-radius: 3px;
  overflow: hidden;
}
#cart .quantity-button__group .btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f4f4f4;
  border: none;
  color: #000;
  padding: 0;
  cursor: pointer;
}
#cart .quantity-button__group .btn:hover { background: #eb6100; color: #fff; }
#cart .quantity-button__group .btn .material-icons { font-size: 18px; }
#cart .quantity-button__group input {
  width: 48px;
  height: 38px;
  text-align: center;
  border: none;
  border-left: 1px solid #d8d8d8;
  border-right: 1px solid #d8d8d8;
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  background: #fff;
  -moz-appearance: textfield;
}

/* Prix total ligne */
#cart .product-line__price {
  font-family: 'Khand', sans-serif;
  font-weight: 700;
  font-size: 19px;
  color: #000;
  min-width: 80px;
  text-align: right;
}

/* Actions (Retirer) */
#cart .product-line__actions {
  flex: 0 0 auto;
  margin-left: 8px;
}
#cart .js-remove-from-cart {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Roboto', sans-serif;
  font-size: 13px;
  color: #999;
  text-decoration: none;
  transition: color 0.2s;
}
#cart .js-remove-from-cart:hover { color: #eb6100; }

/* === Continuer mes achats === */
#cart .cart__continue-shopping {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 6px;
  font-family: 'Khand', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: #000;
  background: #fff;
  border: 1px solid #cfcfcf;
  border-radius: 3px;
  padding: 11px 22px;
  text-decoration: none;
  transition: all 0.2s;
}
#cart .cart__continue-shopping:hover {
  border-color: #eb6100;
  color: #eb6100;
}

/* ==========================================================================
   ASIDE — Recapitulatif
   ========================================================================== */
#cart .cart-grid__aside-wrapper {
  border: 1px solid #ececec;
  border-radius: 4px;
  padding: 22px 24px;
  background: #fff;
  position: sticky;
  top: 100px;
}
#cart .cart-grid__aside-wrapper > h2 {
  font-family: 'Khand', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 19px;
  letter-spacing: 0.02em;
  color: #000;
  margin: 0 0 16px;
}
#cart .cart-summary__line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 9px 0;
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  color: #333;
}
#cart .cart-summary__line--bold {
  border-top: 1px solid #ececec;
  margin-top: 8px;
  padding-top: 14px;
}
#cart .cart-summary__line--bold .cart-summary__label,
#cart .cart-summary__line--bold .cart-summary__value {
  font-family: 'Khand', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 19px;
  color: #000;
}

/* Bouton COMMANDER */
#cart .cart-summary__actions .d-grid { margin-top: 16px; }
#cart .cart-summary__actions .btn-primary,
#cart .cart-detailed-actions .btn-primary,
#cart a.btn.btn-primary.btn-lg {
  display: block;
  width: 100%;
  font-family: 'Khand', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 17px;
  color: #fff !important;
  background: #eb6100 !important;
  border: none !important;
  border-radius: 3px;
  padding: 15px 20px;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s;
}
#cart .cart-summary__actions .btn-primary:hover,
#cart a.btn.btn-primary.btn-lg:hover { background: #c85200 !important; }

#cart .cart-grid__aside-wrapper hr {
  border: none;
  border-top: 1px solid #ececec;
  margin: 20px 0;
}

/* === Reassurance discrete === */
#cart .blockreassurance--cart .reassurance {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
}
#cart .blockreassurance--cart .reassurance__image img {
  width: 30px; height: 30px;
}
#cart .blockreassurance--cart .reassurance__title {
  font-family: 'Khand', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 14px;
  color: #000;
}
#cart .blockreassurance--cart .reassurance__desc {
  font-family: 'Roboto', sans-serif;
  font-size: 12px;
  color: #999;
}

/* ==========================================================================
   Notifications "produit plus disponible" — ne pas plaquer en haut
   ========================================================================== */
#cart #notifications {
  position: static !important;
  top: auto !important;
}
#cart #notifications .container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 30px;
}
#cart #notifications .alert,
#cart #notifications .notification {
  margin: 12px auto;
  border-radius: 4px;
}

/* === Securite : neutraliser tout <header> interne (piege position:fixed) === */
#cart .cart-grid header:not(#header):not(.daytona-header),
#cart .product-line header {
  position: static !important;
  top: auto; left: auto; right: auto;
  width: auto;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

/* Responsive : la ligne passe en colonne proprement sur mobile */
@media (max-width: 575px) {
  #cart .product-line { flex-wrap: wrap; }
  #cart .product-line__content { flex-wrap: wrap; gap: 14px; }
  #cart .product-line__content-right { width: 100%; justify-content: space-between; }
}
