/*
 * Soda Palette Composer — panier personnalisé
 * v0.6.41
 * Aucun style CartFlows/WooCommerce natif n'est requis pour la structure.
 */

.spc-cart,
.spc-cart * {
  box-sizing: border-box;
}

/* Même composant que sur la fiche produit (single-product-1.0.20.css) et le
   composeur (composer-0.6.29.css) — mêmes classes, même rendu partout. */
/* Imbriqué DANS .spc-cart (qui centre déjà la largeur de page) — pas de
   width/margin:auto ici, sinon la largeur "min(1180px, calc(100% - 32px))"
   s'appliquerait une seconde fois par rapport au parent déjà réduit,
   décalant le fil d'Ariane par rapport au reste du contenu. */
.spc-breadcrumb {
  margin: 0 0 20px;
  font-size: 12px;
  font-weight: 400;
}

.spc-breadcrumb a {
  color: #6c727a;
  text-decoration: none;
}

.spc-breadcrumb a:hover {
  color: #c8102e;
}

.spc-breadcrumb__sep {
  margin: 0 4px;
  color: #c7ccd1;
}

.spc-breadcrumb__current {
  color: #20242a;
}

.spc-cart {
  width: calc(100% - 32px);
  margin: 32px auto 64px;
  color: #20242a;
  font-size: 16px;
  line-height: 1.45;
}

.spc-cart__header {
  margin-bottom: 24px;
}

.spc-cart__header h1,
.spc-cart__empty-box h1 {
  margin: 0 0 6px;
  font-size: 32px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.spc-cart__header p,
.spc-cart__empty-box p {
  margin: 0;
  color: #6f747c;
  font-size: 15px;
  font-weight: 400;
}

.spc-cart__items {
  border: 1px solid #e4e7eb;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.spc-cart__table-head,
.spc-cart-item {
  display: grid;
  grid-template-columns: minmax(260px, 1.9fr) minmax(100px, .75fr) minmax(110px, .75fr) minmax(120px, .85fr) 42px;
  align-items: center;
  column-gap: 20px;
}

.spc-cart__table-head {
  min-height: 48px;
  padding: 0 20px;
  background: #fafbfc;
  border-bottom: 1px solid #e4e7eb;
  color: #6c727a;
  font-size: 13px;
  font-weight: 500;
}

.spc-cart-item {
  min-height: 112px;
  padding: 18px 20px;
  border-bottom: 1px solid #e8eaed;
}

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

.spc-cart-item__product {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 14px;
}

.spc-cart-item__media {
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
}

.spc-cart-item__image,
.spc-cart-item__image img {
  display: block;
  width: 58px;
  height: 58px;
}

.spc-cart-item__image img {
  object-fit: contain;
}

.spc-cart-item__details {
  min-width: 0;
}

.spc-cart-item__name {
  font-size: 14px;
  line-height: 1.3;
  font-weight: 400;
}

.spc-cart-item__name a {
  color: inherit;
  text-decoration: none;
}

.spc-cart-item__name a:hover {
  text-decoration: underline;
}

.spc-cart-item__meta {
  margin-top: 6px;
  color: #777d85;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 400;
}

.spc-cart-item__meta dl {
  margin: 0;
}

.spc-cart-item__meta dt,
.spc-cart-item__meta dd {
  display: inline;
  margin: 0;
}

.spc-cart-item__meta dt {
  font-weight: 500;
}

.spc-cart-item__meta dt::after {
  content: ': ';
}

.spc-cart-item__meta dd::after {
  content: '  ';
}

.spc-cart-item__price,
.spc-cart-item__subtotal {
  font-size: 15px;
  font-weight: 400;
  white-space: nowrap;
}

.spc-cart-item__subtotal {
  font-weight: 500;
}

.spc-cart-item__quantity .quantity {
  display: inline-flex;
  margin: 0;
}

.spc-cart-item__quantity input.qty {
  width: 88px !important;
  min-height: 38px !important;
  padding: 6px 8px;
  border: 1px solid #d7dbe0;
  border-radius: 6px;
  background: #fff;
  color: #24282d;
  font-size: 15px;
  font-weight: 400;
  text-align: center;
}

.spc-cart-item__remove {
  text-align: right;
}

.spc-cart-item__remove-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: #6d737b;
  font-size: 22px;
  line-height: 1;
  text-decoration: none;
  border-radius: 50%;
}

.spc-cart-item__remove-link:hover {
  background: #f2f3f5;
  color: #b30f2f;
}

.spc-cart__actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 14px;
}

.spc-cart__secondary-btn,
.spc-cart__primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 7px;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: opacity .15s ease, transform .15s ease;
}

.spc-cart__secondary-btn {
  border: 1px solid #d8dce1;
  background: #fff;
  color: #343941;
}

.spc-cart__secondary-btn:hover {
  background: #f8f9fa;
}

.spc-cart__primary-btn {
  border: 1px solid #c8102e;
  background: #c8102e;
  color: #fff !important;
}

.spc-cart__primary-btn:hover {
  opacity: .92;
  color: #fff !important;
}

.spc-cart__quote-btn {
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin-top: 8px;
  padding: 11px 16px;
  border: 1px solid #c8102e;
  border-radius: 9px;
  background: #fff;
  color: #c8102e !important;
  font-family: "Archivo", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px !important;
  font-weight: 600 !important;
  text-align: center;
  text-decoration: none !important;
  transition: background .15s ease, color .15s ease;
}

.spc-cart__quote-btn:hover {
  background: #c8102e;
  color: #fff !important;
}

.spc-cart__bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
  gap: 24px;
  margin-top: 28px;
  align-items: start;
}

.spc-cart__coupon,
.spc-cart__totals {
  border: 1px solid #e4e7eb;
  border-radius: 10px;
  background: #fff;
  padding: 22px;
}

.spc-cart__coupon h2,
.spc-cart__totals h2 {
  margin: 0 0 16px;
  color: #24282d;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 600;
}

.spc-cart__coupon-form {
  display: flex;
  gap: 10px;
}

.spc-cart__coupon-form input {
  flex: 1 1 auto;
  min-width: 0;
  height: 44px;
  padding: 9px 12px;
  border: 1px solid #d7dbe0;
  border-radius: 7px;
  color: #24282d;
  font: inherit;
  font-size: 14px;
}

.spc-cart__total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 9px 0;
  color: #5f656d;
  font-size: 15px;
  font-weight: 400;
}

.spc-cart__total-row strong {
  color: #30353b;
  font-weight: 500;
  white-space: nowrap;
}

.spc-cart__total-row--discount,
.spc-cart__total-row--discount strong {
  color: #b30f2f;
}

.spc-cart__total-row--final {
  margin-top: 10px;
  padding-top: 17px;
  border-top: 1px solid #e3e6e9;
  color: #252a30;
  font-size: 18px;
  font-weight: 600;
}

.spc-cart__total-row--final strong {
  color: #252a30;
  font-size: 20px;
  font-weight: 600;
}

.spc-cart__checkout-btn {
  width: 100%;
  margin-top: 16px;
  min-height: 48px;
  font-size: 15px;
}

.spc-cart__continue {
  display: block;
  margin-top: 13px;
  color: #b30f2f;
  font-size: 14px;
  font-style: italic;
  font-weight: 400;
  text-align: center;
  text-decoration: none;
}

.spc-cart__continue-icon {
  width: 13px;
  height: 13px;
  margin-right: 5px;
  vertical-align: -2px;
}

.spc-cart__continue:hover {
  text-decoration: underline;
}

.spc-cart--empty {
  max-width: 760px;
}

.spc-cart__empty-box {
  padding: 42px 28px;
  border: 1px solid #e4e7eb;
  border-radius: 10px;
  background: #fff;
  text-align: center;
}

.spc-cart__empty-box .spc-cart__primary-btn {
  margin-top: 20px;
}

@media (max-width: 900px) {
  .spc-cart__table-head {
    display: none;
  }

  .spc-cart-item {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "product remove"
      "price price"
      "quantity subtotal";
    row-gap: 12px;
    column-gap: 12px;
    padding: 18px 16px;
  }

  .spc-cart-item__product { grid-area: product; }
  .spc-cart-item__remove { grid-area: remove; }
  .spc-cart-item__price { grid-area: price; }
  .spc-cart-item__quantity { grid-area: quantity; }
  .spc-cart-item__subtotal { grid-area: subtotal; text-align: right; }

  .spc-cart-item__price::before,
  .spc-cart-item__quantity::before,
  .spc-cart-item__subtotal::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 3px;
    color: #777d85;
    font-size: 12px;
    font-weight: 400;
  }

  .spc-cart__bottom {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .spc-cart {
    width: calc(100% - 24px);
    margin: 22px auto 42px;
    font-size: 15px;
  }

  .spc-cart__header h1,
  .spc-cart__empty-box h1 {
    font-size: 26px;
    font-weight: 600;
  }

  .spc-cart__items,
  .spc-cart__coupon,
  .spc-cart__totals,
  .spc-cart__empty-box {
    border-radius: 8px;
  }

  .spc-cart-item {
    padding: 16px 13px;
  }

  .spc-cart-item__media,
  .spc-cart-item__image,
  .spc-cart-item__image img {
    width: 48px;
    height: 48px;
  }

  .spc-cart-item__media {
    flex-basis: 48px;
  }

  .spc-cart-item__product {
    gap: 10px;
  }

  .spc-cart-item__name {
    font-size: 14px;
    font-weight: 400;
  }

  .spc-cart-item__meta {
    font-size: 12px;
  }

  .spc-cart-item__price,
  .spc-cart-item__subtotal {
    font-size: 14px;
  }

  .spc-cart-item__quantity input.qty {
    width: 80px !important;
    min-height: 36px !important;
  }

  .spc-cart__actions {
    padding-top: 10px;
  }

  .spc-cart__actions .spc-cart__secondary-btn {
    width: 100%;
  }

  .spc-cart__coupon,
  .spc-cart__totals {
    padding: 17px 15px;
  }

  .spc-cart__coupon h2,
  .spc-cart__totals h2 {
    font-size: 17px;
    font-weight: 600;
  }

  .spc-cart__coupon-form {
    display: grid;
    grid-template-columns: 1fr;
  }

  .spc-cart__coupon-form input,
  .spc-cart__coupon-form .spc-cart__secondary-btn {
    width: 100%;
  }

  .spc-cart__total-row {
    font-size: 14px;
  }

  .spc-cart__total-row--final {
    font-size: 17px;
  }

  .spc-cart__total-row--final strong {
    font-size: 18px;
    font-weight: 600;
  }
}


/* ---------------------------------------------------------------
 * v0.19.112 — Demander un devis : même modèle que « Composer ma palette »
 * de la fiche produit personnalisée.
 * --------------------------------------------------------------- */
.spc-cart .spc-cart__quote-btn,
.spc-cart .spc-cart__quote-btn:visited {
  display: block;
  box-sizing: border-box;
  width: 100%;
  padding: 11px 16px;
  border: 1px solid #c8102e;
  border-radius: 9px;
  background: #fff;
  color: #c8102e !important;
  font-family: "Archivo", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
  transition: background .15s ease, color .15s ease;
}

.spc-cart .spc-cart__quote-btn:hover,
.spc-cart .spc-cart__quote-btn:focus,
.spc-cart .spc-cart__quote-btn:active {
  background: #c8102e;
  color: #fff !important;
}

@media (max-width: 640px) {
  .spc-cart .spc-cart__quote-btn {
    font-weight: 500 !important;
  }
}

/* ---------------------------------------------------------------
 * v0.6.48 — retouches panier Sweet&Soda
 * --------------------------------------------------------------- */

/* Nom des produits : 14px / graisse 400. */
.spc-cart .spc-cart-item__name,
.spc-cart .spc-cart-item__name a {
  font-size: 15px !important;
  line-height: 1.3 !important;
  font-weight: 400 !important;
  color: #20242a !important;
}

/* Icône de fermeture : noir. */
.spc-cart .spc-cart-item__remove-link,
.spc-cart .spc-cart-item__remove-link:visited,
.spc-cart .spc-cart-item__remove-link:hover,
.spc-cart .spc-cart-item__remove-link:focus,
.spc-cart .spc-cart-item__remove-link:active {
  color: #20242a !important;
}

/* Continuer mes achats : noir. */
.spc-cart .spc-cart__continue,
.spc-cart .spc-cart__continue:visited,
.spc-cart .spc-cart__continue:hover,
.spc-cart .spc-cart__continue:focus,
.spc-cart .spc-cart__continue:active {
  color: #20242a !important;
}

/* ---------------------------------------------------------------
 * v0.6.49 — correction ciblée des boutons panier
 * --------------------------------------------------------------- */

/* Procéder au paiement : conserve le fond rouge et le texte blanc. */
.spc-cart .spc-cart__checkout-btn,
.spc-cart .spc-cart__checkout-btn:visited,
.spc-cart .spc-cart__checkout-btn:hover,
.spc-cart .spc-cart__checkout-btn:focus,
.spc-cart .spc-cart__checkout-btn:active {
  background: #c8102e !important;
  border-color: #c8102e !important;
  color: #fff !important;
  text-shadow: none !important;
}

/* Continuer mes achats : 14px / graisse 400 / italique. */
.spc-cart .spc-cart__continue,
.spc-cart .spc-cart__continue:visited,
.spc-cart .spc-cart__continue:hover,
.spc-cart .spc-cart__continue:focus,
.spc-cart .spc-cart__continue:active {
  color: #20242a !important;
  font-size: 14px !important;
  font-style: italic !important;
  line-height: 1.3 !important;
  font-weight: 400 !important;
}


/* ---------------------------------------------------------------
 * v0.6.50 — code promo en ligne sur mobile
 * --------------------------------------------------------------- */

/* Saisie = 60 %, bouton = 40 %, avec un espace fixe entre les deux. */
.spc-cart .spc-cart__coupon-form {
  display: grid !important;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr) !important;
  gap: 10px !important;
  align-items: stretch !important;
}

.spc-cart .spc-cart__coupon-form input {
  width: 100% !important;
  min-width: 0 !important;
}

.spc-cart .spc-cart__coupon-form .spc-cart__secondary-btn {
  width: 100% !important;
  min-width: 0 !important;
}

/* ---------------------------------------------------------------
 * v0.6.51 — bouton promo plus clair tant que le champ est vide
 * --------------------------------------------------------------- */

/* Champ vide : rouge plus clair, mais toujours dans la palette Sweet&Soda. */
.spc-cart .spc-cart__coupon-form:has(#spc-coupon-code:placeholder-shown) .spc-cart__secondary-btn,
.spc-cart .spc-cart__coupon-form:has(#spc-coupon-code:placeholder-shown) .spc-cart__secondary-btn:hover,
.spc-cart .spc-cart__coupon-form:has(#spc-coupon-code:placeholder-shown) .spc-cart__secondary-btn:focus,
.spc-cart .spc-cart__coupon-form:has(#spc-coupon-code:placeholder-shown) .spc-cart__secondary-btn:active {
  background: #e56a7d !important;
  border-color: #e56a7d !important;
  color: #fff !important;
  opacity: 1 !important;
}

/* Dès qu'un code est saisi : retour au rouge principal du projet. */
.spc-cart .spc-cart__coupon-form:has(#spc-coupon-code:not(:placeholder-shown)) .spc-cart__secondary-btn,
.spc-cart .spc-cart__coupon-form:has(#spc-coupon-code:not(:placeholder-shown)) .spc-cart__secondary-btn:hover,
.spc-cart .spc-cart__coupon-form:has(#spc-coupon-code:not(:placeholder-shown)) .spc-cart__secondary-btn:focus,
.spc-cart .spc-cart__coupon-form:has(#spc-coupon-code:not(:placeholder-shown)) .spc-cart__secondary-btn:active {
  background: #c8102e !important;
  border-color: #c8102e !important;
  color: #fff !important;
  opacity: 1 !important;
}


/* ---------------------------------------------------------------
 * v0.6.52 — inversion des tailles de texte des boutons
 * --------------------------------------------------------------- */

/* Bouton Appliquer : taille 13px, graisse 600. */
.spc-cart .spc-cart__coupon-form .spc-cart__secondary-btn {
  font-size: 13px !important;
  font-weight: 600 !important;
}

/* Procéder au paiement : taille 14px, graisse 800. */
.spc-cart a.spc-cart__checkout-btn,
.spc-cart a.spc-cart__checkout-btn:visited,
.spc-cart a.spc-cart__checkout-btn:hover,
.spc-cart a.spc-cart__checkout-btn:focus,
.spc-cart a.spc-cart__checkout-btn:active {
  font-size: 15px !important;
  font-weight: 800 !important;
}


/* ---------------------------------------------------------------
 * v0.6.59 — bordure de focus visible sur les champs (au lieu de la faire
 * disparaître). La v0.6.57 retirait outline + box-shadow sans rien pour les
 * remplacer : il ne restait que la bordure grise très claire (#d7dbe0) du
 * champ au repos, quasi invisible une fois le curseur dedans — d'où
 * l'impression que le cadre disparaissait pendant la saisie.
 * --------------------------------------------------------------- */

.spc-cart .spc-cart-item__quantity input.qty:focus,
.spc-cart .spc-cart__coupon-form input:focus {
  outline: none !important;
  border-color: #c8102e !important;
  box-shadow: 0 0 0 3px rgba(200, 16, 46, .12) !important;
}


/* ---------------------------------------------------------------
 * v0.6.58 — centrage forcé de la valeur de quantité
 * --------------------------------------------------------------- */

.spc-cart .spc-cart-item__quantity input.qty {
  text-align: center !important;
}
