/* HF68 — Accessories Shop : panier et récapitulatif mobile.
 * Couleurs/espacements uniquement. N'intercepte jamais les requêtes AJAX, Cathedis ou le paiement.
 */
body#cart, body#order, body#checkout {
  --as-hf68-rose: #b65d7a;
  --as-hf68-rose-dark: #91435f;
  --as-hf68-rose-light: #fff2f6;
  --as-hf68-line: #eadce2;
  --as-hf68-ink: #332932;
  --bs-primary: #b65d7a;
  --bs-primary-rgb: 182, 93, 122;
  --bs-link-color: #91435f;
  --bs-link-hover-color: #78354e;
  --bs-focus-ring-color: rgba(182,93,122,.24);
}
body#cart .cart-grid__products-details,
body#cart .cart-grid__aside-wrapper {
  border: 1px solid var(--as-hf68-line) !important;
  border-radius: 19px !important;
  box-shadow: 0 9px 28px rgba(65,30,45,.047) !important;
  background:#fff !important;
}
body#cart .cart__list .cart__item + .cart__item {border-top:1px solid #f0e5e9;}
body#cart .cart__list .product-line {border-bottom:0 !important;}
body#cart .cart__list .product-line__title {color:var(--as-hf68-ink);text-decoration:none;}
body#cart .cart__list .product-line__title:hover {color:var(--as-hf68-rose-dark);}
body#cart .cart__list .product-line__price,
body#cart .cart__list .product-line__item-price,
body#cart .cart-grid__aside-wrapper .cart-summary__value {color:var(--as-hf68-ink);font-weight:700;}
/* Link "Retirer" was blue on the cart. */
body#cart :where(.js-remove-from-cart, .product-line__actions a, .cart__continue-shopping),
body#cart :where(.js-remove-from-cart, .product-line__actions a, .cart__continue-shopping):visited {color:var(--as-hf68-rose-dark) !important;}
body#cart .js-remove-from-cart {display:inline-flex;gap:5px;align-items:center;font-weight:650;text-decoration:underline;text-decoration-color:#dcb1c0;text-underline-offset:4px;}
body#cart .js-remove-from-cart:is(:hover,:focus-visible) {color:#6b3047 !important;text-decoration-color:currentColor;}
/* Reserve the brand accent for buttons, active controls and progress states. */
body:is(#cart,#order,#checkout) :where(.btn-primary,.bg-primary,.badge.bg-primary) {background-color:var(--as-hf68-rose-dark) !important;border-color:var(--as-hf68-rose-dark) !important;color:#fff !important;}
body:is(#cart,#order,#checkout) .btn-primary:is(:hover,:focus-visible):not(:disabled){background-color:#77344d!important;border-color:#77344d!important;}
body:is(#cart,#order,#checkout) :where(.btn-outline-primary) {color:var(--as-hf68-rose-dark)!important;border-color:#dbb8c6!important;}
body:is(#cart,#order,#checkout) .btn-outline-primary:hover {background:var(--as-hf68-rose-light)!important;border-color:var(--as-hf68-rose)!important;color:var(--as-hf68-rose-dark)!important;}
body:is(#cart,#order,#checkout) :where(.form-control,.form-select):focus {border-color:#bc7790!important;box-shadow:0 0 0 .18rem rgba(182,93,122,.14)!important;}
body:is(#cart,#order,#checkout) :where(.form-check-input):checked {background-color:var(--as-hf68-rose-dark)!important;border-color:var(--as-hf68-rose-dark)!important;}
body:is(#cart,#order,#checkout) :where(.spinner-border,.spinner-grow) {color:var(--as-hf68-rose-dark)!important;border-top-color:currentColor;}
body:is(#cart,#order,#checkout) :where(.progress-bar,.loader-bar,.loading-bar,.pace-progress) {background-color:var(--as-hf68-rose) !important;}
body:is(#cart,#order,#checkout) :where(.text-primary,.link-primary) {color:var(--as-hf68-rose-dark)!important;}
body:is(#cart,#order,#checkout) :where(.border-primary) {border-color:var(--as-hf68-rose)!important;}
/* Native quantity widgets, cart/checkout spinner states. Keep animation/visibility unchanged. */
body#cart .cart-grid :where(.quantity-button,.input-group) .btn:is(:hover,:focus-visible) {border-color:#dcb2c2!important;color:var(--as-hf68-rose-dark)!important;}
body:is(#cart,#order,#checkout) :where(.js-cart,.js-cart-summary,.js-checkout-summary,.as-opc-shell) .spinner-border {--bs-spinner-border-width:.17em;}
/* Cross-sell hook appears after the full cart grid, not inside the totals panel. */
body#cart .cart-grid__footer.as-hf68-cart-recommendations {display:block;width:100%;margin:34px 0 0;padding:0;}
body#cart .as-hf68-recs {margin:0;min-width:0;}
body#cart .as-hf68-recs__header {display:flex;justify-content:space-between;align-items:end;gap:16px;margin-bottom:18px;}
body#cart .as-hf68-recs__eyebrow {display:block;color:var(--as-hf68-rose-dark);font-size:11px;letter-spacing:.12em;font-weight:750;text-transform:uppercase;margin-bottom:4px;}
body#cart .as-hf68-recs__header h2 {margin:0;color:var(--as-hf68-ink);font-size:clamp(21px,2.2vw,29px);line-height:1.2;letter-spacing:-.025em;}
body#cart .as-hf68-recs__header p {margin:0;color:#7c6a73;font-size:13px;}
body#cart .as-hf68-recs__grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;}
body#cart .as-hf68-rec {min-width:0;background:#fff;border:1px solid var(--as-hf68-line);border-radius:17px;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 7px 25px rgba(75,42,55,.04);}
body#cart .as-hf68-rec__media {display:grid;place-items:center;aspect-ratio:1.06;background:#faf7f8;overflow:hidden;}
body#cart .as-hf68-rec__media img {width:100%;height:100%;object-fit:contain;transition:transform .2s ease;}
body#cart .as-hf68-rec__media:hover img {transform:scale(1.045);}
body#cart .as-hf68-rec__content {display:flex;flex-direction:column;flex:1;gap:8px;padding:13px 15px 15px;}
body#cart .as-hf68-rec__title {display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;min-height:40px;font-size:13px;font-weight:700;line-height:1.5;text-decoration:none;color:var(--as-hf68-ink);}
body#cart .as-hf68-rec__title:hover {color:var(--as-hf68-rose-dark);}
body#cart .as-hf68-rec__price {font-size:15px;font-weight:800;color:var(--as-hf68-rose-dark);}
body#cart .as-hf68-rec__action {margin-top:auto;width:100%;display:flex;justify-content:center;align-items:center;text-align:center;min-height:39px;padding:8px 12px;border:1px solid #d2a2b5;border-radius:10px;background:#fff9fb;color:var(--as-hf68-rose-dark);font-size:12px;font-weight:750;text-decoration:none;transition:background .15s ease;}
body#cart .as-hf68-rec__action:hover {background:#faeaf0;color:#76374f;}
/* Center both versions of the back-to-cart control on mobile. */
@media (max-width:991.98px) {
  body:is(#order,#checkout) .as-opc-shell .checkout-grid,
  body:is(#order,#checkout) .checkout-grid {display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:15px!important;}
  body:is(#order,#checkout) .as-opc-shell .checkout-grid__aside,
  body:is(#order,#checkout) .checkout-grid__aside {order:1!important;flex:0 0 auto!important;width:100%!important;max-width:100%!important;}
  body:is(#order,#checkout) .as-opc-shell .checkout-grid__content,
  body:is(#order,#checkout) .checkout-grid__content {order:2!important;flex:0 0 auto!important;width:100%!important;max-width:100%!important;}
  body#cart .as-hf68-recs__grid {grid-template-columns:repeat(3,minmax(0,1fr));}
}
@media (max-width:767.98px) {
  body#cart .as-cart-intro {margin-bottom:10px;}
  body#cart .cart-grid {display:flex!important;flex-direction:column!important;gap:15px!important;}
  body#cart .cart-grid__content,body#cart .cart-grid__aside {width:100%!important;max-width:100%!important;flex:0 0 100%!important;}
  body#cart .cart-grid__content {order:1!important;}
  body#cart .cart-grid__aside {order:2!important;}
  body#cart .cart-grid__products-details,body#cart .cart-grid__aside-wrapper {padding:15px!important;border-radius:15px!important;}
  body#cart .cart__list .product-line {display:grid;grid-template-columns:84px minmax(0,1fr);gap:12px;padding:13px 0!important;}
  body#cart .cart__list .product-line__image {grid-column:1;grid-row:1;max-width:84px;width:84px;}
  body#cart .cart__list .product-line__image img {max-width:84px;width:100%;height:auto;border-radius:10px;object-fit:contain;}
  body#cart .cart__list .product-line__content {grid-column:2;grid-row:1;min-width:0;}
  body#cart .cart__list .product-line__title {font-size:13px;line-height:1.42;overflow-wrap:anywhere;}
  body#cart .cart__list .product-line__content-right {display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:8px;}
  body#cart .cart__list .product-line__actions {margin-top:7px;}
  body#cart .cart__continue-shopping {width:100%;justify-content:center;margin-top:8px;}
  body:is(#order,#checkout) .as-opc-shell .as-opc-intro {display:flex!important;flex-direction:column!important;align-items:center!important;gap:11px!important;}
  body:is(#order,#checkout) .as-opc-shell .as-opc-intro__copy {align-self:stretch;}
  body:is(#order,#checkout) .as-opc-shell .as-opc-intro__back,
  body:is(#order,#checkout) .asu-checkout-hero__cart-link {display:inline-flex!important;align-items:center!important;justify-content:center!important;align-self:center!important;margin:4px auto 0!important;text-align:center!important;}
  body:is(#order,#checkout) .asu-checkout-hero {display:flex!important;flex-direction:column!important;align-items:center!important;gap:13px!important;}
  body:is(#order,#checkout) .asu-checkout-hero__copy {align-self:stretch!important;}
  body:is(#order,#checkout) .checkout-grid__aside-wrapper {margin-bottom:0!important;}
  body#cart .as-hf68-recs__header {align-items:start;flex-direction:column;gap:5px;}
  body#cart .as-hf68-recs__grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;}
  body#cart .as-hf68-rec__content {padding:11px 10px 12px;}
  body#cart .as-hf68-rec__title {font-size:12px;}
  body#cart .cart-grid__footer.as-hf68-cart-recommendations {margin-top:24px;}
}
@media(max-width:359.98px) {
  body#cart .as-hf68-recs__grid {gap:8px;}
  body#cart .as-hf68-rec__content {padding:9px;}
  body#cart .cart__list .product-line {grid-template-columns:70px minmax(0,1fr);gap:9px;}
  body#cart .cart__list .product-line__image {width:70px;}
}
@media(prefers-reduced-motion:reduce){body#cart .as-hf68-rec__media img {transition:none;}}
