/* ==========================================================================
   Cart (v5): clean card rows, stepper quantity, sticky light summary. Fully responsive.
   Header cart icon + "Voir le panier" link + cart page (classic shortcode and block).
   Desktop: item cards left, summary panel right (scrolls with the page).
   Tablet/mobile: stacked, compact item cards.
   ========================================================================== */

/* ---- Header cart: badge sits on the icon, never on top of the amount ---- */
.header .icon-btn .badge { right: auto; left: 28px; top: 4px; }
.header .icon-btn .cart-total { margin-left: 2px; }

/* "Voir le panier" link WooCommerce adds after an AJAX add-to-cart */
.card__foot a.added_to_cart,
.bp-cat .card__foot a.added_to_cart,
ul.products li.product a.added_to_cart {
  display: block; margin-top: 8px; text-align: center; font-size: .85rem; font-weight: 800;
  color: var(--color-primary-blue, #0a5cff); text-decoration: underline;
}
.card__foot .btn.loading { opacity: .6; pointer-events: none; }
.card__foot .btn.added::after { content: ' ✓'; }

/* ---- Tokens (MyPneus cart design) ---- */
body.bizpro-cart-page {
  --c-ink: #17243d; --c-muted: #788296; --c-line: #e4e8ef; --c-soft: #f6f8fb; --c-card: #fff;
  --c-navy: #122b69; --c-blue: #1645b5; --c-yellow: #ffbd17; --c-yellow-h: #ffcb49;
  --c-green: #238164; --c-red: #b42318; --c-radius: 13px; --c-radius-sm: 8px;
}

/* ---- Page shell ---- */
body.bizpro-cart-page .site-main-inner { background: var(--c-soft); padding-bottom: 40px; }
body.bizpro-cart-page .entry-header { display: none; }
body.bizpro-cart-page .entry-content { margin: 0; }
/* Same width + side padding as the header/topbar container (1320px, 20/24/16/12px), so the cart lines up with the header edges */
body.bizpro-cart-page .site-main-inner > .container {
  width: 100%; max-width: 1320px; margin-inline: auto;
  padding: 32px 20px 56px !important; /* beats the inline padding set in page.php */
  box-sizing: border-box;
}
body.bizpro-cart-page .site-main-inner > .container > article,
body.bizpro-cart-page .site-main-inner .entry-content { margin: 0; padding: 0; max-width: none; width: 100%; }
body.bizpro-cart-page .woocommerce { max-width: none; width: 100%; margin: 0; padding: 0; display: block; color: var(--c-ink); }
@media (max-width: 1199px) { body.bizpro-cart-page .site-main-inner > .container { padding-inline: 24px !important; } }
@media (max-width: 767px)  { body.bizpro-cart-page .site-main-inner > .container { padding: 20px 16px 40px !important; } }
@media (max-width: 359px)  { body.bizpro-cart-page .site-main-inner > .container { padding-inline: 12px !important; } }
body.bizpro-cart-page .bp-cart { font-size: 14px; }

/* Breadcrumb, title */
body.bizpro-cart-page .bp-crumb { display: flex; gap: 10px; font-size: 12px; color: var(--c-muted); margin: 0 0 14px; }
body.bizpro-cart-page .bp-crumb a { color: inherit; text-decoration: none; }
body.bizpro-cart-page .bp-crumb a:hover { color: var(--c-blue); }
body.bizpro-cart-page .bp-cart__titlebar { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin: 0 0 25px; flex-wrap: wrap; }
body.bizpro-cart-page .bp-cart__title { margin: 0 0 8px; font-size: 2.2rem; line-height: 1.15; letter-spacing: -.035em; font-weight: 750; color: var(--c-ink); }
body.bizpro-cart-page .bp-cart__count { font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--c-muted); margin-left: 10px; vertical-align: middle; }
body.bizpro-cart-page .bp-cart__sub { margin: 0; font-size: 14px; color: var(--c-muted); }

/* Two-column layout */
body.bizpro-cart-page .bp-cart__layout { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 27px; align-items: start; }
body.bizpro-cart-page .bp-cart__main { min-width: 0; padding: 0; } /* beats global `section { padding: 70px 0 }` */
body.bizpro-cart-page .bp-cart__aside { padding: 0; }
body.bizpro-cart-page .bp-cart__aside { min-width: 0; position: sticky; top: 20px; }
body.bizpro-cart-page .bp-cart__aside .cart-collaterals { display: block; float: none; width: 100%; margin: 0; }
body.bizpro-cart-page .woocommerce-cart-form { margin: 0; padding: 0; }

/* Inline SVG icons (replace unicode glyphs) */
body.bizpro-cart-page .bp-ico { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Delivery banner */
body.bizpro-cart-page .bp-cart__main .bp-delivery { display: flex; gap: 15px; align-items: flex-start; padding: 20px 23px; margin-bottom: 18px; background: #eef5ff; border: 1px solid #dce7fa; border-radius: 11px; }
body.bizpro-cart-page .bp-delivery__icon { font-size: 26px; display: grid; place-items: center; line-height: 1; color: var(--c-blue); }
body.bizpro-cart-page .bp-delivery__body { flex: 1; min-width: 0; }
body.bizpro-cart-page .bp-delivery strong { font-size: 14px; font-weight: 700; }
body.bizpro-cart-page .bp-delivery p { margin: 6px 0 12px; font-size: 13px; color: #687d9d; }
body.bizpro-cart-page .bp-progress { height: 4px; border-radius: 8px; background: #d6e2f6; overflow: hidden; }
body.bizpro-cart-page .bp-progress span { display: block; height: 100%; background: var(--c-blue); transition: width .2s; }

/* Card + item rows */
body.bizpro-cart-page .bp-card { padding: 0; background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--c-radius); }
body.bizpro-cart-page .bp-card__head { display: flex; justify-content: space-between; align-items: center; padding: 19px 23px; border-bottom: 1px solid var(--c-line); }
body.bizpro-cart-page .bp-card__head strong { font-size: 14px; }
body.bizpro-cart-page .bp-eyebrow { font-size: 11px; letter-spacing: 1.4px; font-weight: 700; color: var(--c-muted); }

body.bizpro-cart-page .bp-item {
  display: grid; grid-template-columns: 88px minmax(0, 1fr) 124px 150px; gap: 20px; align-items: center;
  padding: 24px 23px; border-bottom: 1px solid var(--c-line);
}
body.bizpro-cart-page .bp-item:last-child { border-bottom: 0; }
body.bizpro-cart-page .bp-item__thumb img { display: block; width: 88px; height: 118px; object-fit: contain; mix-blend-mode: multiply; }
body.bizpro-cart-page .bp-item__brand { font-size: 11px; font-weight: 800; letter-spacing: 1.3px; text-transform: uppercase; margin-bottom: 7px; color: var(--c-ink); }
body.bizpro-cart-page .bp-item__name { margin: 0 0 7px; font-size: 16px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
body.bizpro-cart-page .bp-item__name a { color: var(--c-ink); text-decoration: none; }
body.bizpro-cart-page .bp-item__name a:hover { color: var(--c-blue); }
body.bizpro-cart-page .bp-item__spec { font-size: 13px; color: var(--c-muted); }
body.bizpro-cart-page .bp-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0; }
body.bizpro-cart-page .bp-tag { font-size: 11px; border-radius: 4px; background: #f2f5fa; padding: 4px 7px; color: #62718a; }
body.bizpro-cart-page .bp-stock { font-size: 12px; color: var(--c-green); }
body.bizpro-cart-page .bp-stock:before { content: '●'; font-size: 7px; margin-right: 5px; }
body.bizpro-cart-page .bp-stock.is-out { color: var(--c-red); }
body.bizpro-cart-page .bp-item__side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }
body.bizpro-cart-page .bp-remove { font-size: 12px; color: #8b95a7; text-decoration: underline; }
body.bizpro-cart-page .bp-remove:hover { color: var(--c-red); }
body.bizpro-cart-page .bp-amount { font-size: 19px; font-weight: 750; white-space: nowrap; }
body.bizpro-cart-page .bp-unit { font-size: 12px; color: var(--c-muted); white-space: nowrap; }

/* Quantity stepper (buttons added by cart.js; the plain input still works without JS) */
body.bizpro-cart-page .bp-item__qty .quantity { display: inline-flex; align-items: center; border: 1px solid var(--c-line); border-radius: 6px; height: 32px; background: #fff; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
body.bizpro-cart-page .quantity:focus-within { border-color: var(--c-blue); box-shadow: 0 0 0 3px rgba(22,84,201,.18); }
body.bizpro-cart-page .quantity input.qty { width: 36px; height: 32px; margin: 0; padding: 0; text-align: center; font: inherit; font-size: 12px; font-weight: 700; color: var(--c-ink); border: 0; background: transparent; -moz-appearance: textfield; appearance: textfield; }
body.bizpro-cart-page .quantity input.qty:focus { outline: 0; }
body.bizpro-cart-page .quantity input.qty::-webkit-outer-spin-button,
body.bizpro-cart-page .quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
body.bizpro-cart-page .quantity:not(.has-stepper) input.qty { width: 64px; }
/* Only the theme's own +/- pair: hide any extra controls added by other plugins. */
body.bizpro-cart-page .bp-item__qty button:not(.bp-step),
body.bizpro-cart-page .bp-item__qty input[type="button"],
body.bizpro-cart-page .bp-item__qty .plus,
body.bizpro-cart-page .bp-item__qty .minus,
body.bizpro-cart-page .bp-item__qty [class*="qty-btn"],
body.bizpro-cart-page .bp-item__qty [class*="quantity-button"] { display: none !important; }
body.bizpro-cart-page .bp-item__qty .quantity::before,
body.bizpro-cart-page .bp-item__qty .quantity::after { content: none !important; display: none !important; }
body.bizpro-cart-page .bp-step { width: 30px; height: 32px; padding: 0; border: 0; background: #fff; color: var(--c-ink); font-size: 17px; font-weight: 700; line-height: 1; cursor: pointer; transition: background .15s, color .15s; }
body.bizpro-cart-page .bp-step:hover { background: #eff3fa; color: var(--c-blue); }
body.bizpro-cart-page .bp-step:focus-visible { outline: 2px solid var(--c-blue); outline-offset: -2px; }

/* Coupon */
body.bizpro-cart-page .bp-coupon { margin-top: 16px; padding: 17px 22px; }
body.bizpro-cart-page .bp-coupon summary { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; font-weight: 650; list-style: none; }
body.bizpro-cart-page .bp-coupon summary::-webkit-details-marker { display: none; }
body.bizpro-cart-page .bp-coupon__form { display: flex; gap: 8px; margin-top: 15px; }
body.bizpro-cart-page .bp-coupon input.input-text { flex: 1; min-width: 0; height: 40px; padding: 0 11px; font: inherit; font-size: 12px; text-transform: uppercase; border: 1px solid var(--c-line); border-radius: 6px; background: #fff; }
body.bizpro-cart-page .bp-coupon input.input-text:focus { outline: 0; border-color: var(--c-blue); box-shadow: 0 0 0 3px rgba(22,84,201,.18); }
body.bizpro-cart-page .woocommerce .bp-coupon button.button { min-height: 40px; padding: 0 16px; border: 0; border-radius: 6px; background: var(--c-navy); color: #fff; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
body.bizpro-cart-page .woocommerce .bp-coupon button.button:hover { background: var(--c-blue); }
body.bizpro-cart-page .bp-hidden, body.bizpro-cart-page .bp-cart [hidden] { display: none !important; }

/* Trust row */
body.bizpro-cart-page .bp-assurances { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-top: 25px; }
body.bizpro-cart-page .bp-assurance { display: flex; gap: 10px; font-size: 12px; line-height: 1.6; color: #60708b; }
body.bizpro-cart-page .bp-assurance__ico { display: grid; place-items: center; font-size: 24px; line-height: 1; color: #7c8ba3; }
body.bizpro-cart-page .bp-assurance b { display: block; font-size: 12px; color: #35445e; }

/* Summary card */
body.bizpro-cart-page .bp-summary {
  float: none !important; width: 100% !important; max-width: none !important; margin: 0; padding: 28px;
  background: var(--c-card); border: 1px solid var(--c-line);
  border-radius: 16px; box-shadow: 0 10px 38px #102d6312; color: var(--c-ink);
}
body.bizpro-cart-page .bp-summary__title { margin: 0 0 6px; font-size: 22px; font-weight: 800; letter-spacing: -.025em; line-height: 1.2; color: var(--c-ink); }
body.bizpro-cart-page .bp-summary__sub { margin: 0 0 20px; font-size: 13px; color: var(--c-muted); }
body.bizpro-cart-page .bp-summary table.shop_table { width: 100%; margin: 0; border: 0; background: transparent; border-collapse: separate; border-spacing: 0; }
body.bizpro-cart-page .bp-summary table.shop_table th,
body.bizpro-cart-page .bp-summary table.shop_table td { padding: 9px 0; border: 0; background: transparent; font-size: 15px; vertical-align: baseline; }
body.bizpro-cart-page .bp-summary table.shop_table th { text-align: left; width: auto; font-weight: 400; color: #5f6c84; text-transform: none; letter-spacing: 0; }
body.bizpro-cart-page .bp-summary table.shop_table td { text-align: right; font-weight: 700; color: var(--c-ink); white-space: nowrap; }
body.bizpro-cart-page .bp-ht-tag { margin-left: 4px; font-size: 12px; font-weight: 400; color: var(--c-muted); }

/* Shipping / discounts */
body.bizpro-cart-page .bp-summary tr.shipping td,
body.bizpro-cart-page .bp-summary tr.bp-ship td { color: var(--c-green); }
body.bizpro-cart-page .bp-summary tr.cart-discount th,
body.bizpro-cart-page .bp-summary tr.cart-discount td { color: var(--c-green); }
body.bizpro-cart-page .bp-summary tr.cart-discount a.woocommerce-remove-coupon { margin-left: 8px; font-size: 12px; font-weight: 700; color: var(--c-red); text-decoration: underline; }
body.bizpro-cart-page .bp-summary ul#shipping_method { list-style: none; margin: 0; padding: 0; text-align: right; }

/* Tax group: separated from the first group by a divider */
body.bizpro-cart-page .bp-summary tr.bp-ht th,
body.bizpro-cart-page .bp-summary tr.bp-ht td { padding-top: 18px; border-top: 1px solid var(--c-line); }
body.bizpro-cart-page .bp-summary tr.bp-ht { position: relative; }
body.bizpro-cart-page .bp-summary tr.tax-total td { font-weight: 700; }

/* Grand total */
body.bizpro-cart-page .bp-summary tr.order-total th { padding-top: 22px; font-size: 19px; font-weight: 800; color: var(--c-ink); }
body.bizpro-cart-page .bp-summary tr.order-total td { padding-top: 22px; color: var(--c-ink); }
body.bizpro-cart-page .bp-total-amount { display: block; font-size: 32px; font-weight: 800; letter-spacing: -.035em; line-height: 1.1; }
body.bizpro-cart-page .bp-total-note { display: block; margin-top: 6px; font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--c-muted); }
body.bizpro-cart-page .bp-summary tr.order-total small,
body.bizpro-cart-page .bp-summary tr.order-total .includes_tax { display: none; }

/* Checkout button */
body.bizpro-cart-page .bp-summary .wc-proceed-to-checkout { margin-top: 22px; padding: 0; }
body.bizpro-cart-page .bp-summary .wc-proceed-to-checkout a.checkout-button {
  display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 56px; margin: 0; padding: 14px 10px;
  border: 0; border-radius: 9px; background: var(--c-yellow); color: #182950; font-size: 17px; font-weight: 800; text-decoration: none;
  transition: background .2s, transform .2s, box-shadow .2s;
}
body.bizpro-cart-page .bp-summary .wc-proceed-to-checkout a.checkout-button .bp-ico { font-size: 20px; stroke-width: 2.2; }
body.bizpro-cart-page .bp-summary .wc-proceed-to-checkout a.checkout-button:hover { background: var(--c-yellow-h); color: #182950; box-shadow: 0 6px 16px rgba(255,176,0,.32); transform: translateY(-1px); }
body.bizpro-cart-page .bp-secure { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 16px 0 0; font-size: 13px; color: var(--c-muted); }

/* Payment badges */
body.bizpro-cart-page .bp-pay { display: flex; justify-content: center; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
body.bizpro-cart-page .bp-pay li { display: grid; place-items: center; width: 56px; height: 36px; margin: 0; background: #fff; border: 1px solid var(--c-line); border-radius: 6px; }
body.bizpro-cart-page .bp-pay li span { font-size: 15px; font-weight: 900; font-style: italic; letter-spacing: -.02em; line-height: 1; color: #1b3a8c; }
body.bizpro-cart-page .bp-pay__visa span { font-size: 16px; color: #1434cb; }
body.bizpro-cart-page .bp-pay__mc svg { width: 34px; height: 22px; display: block; }

/* Small print */
body.bizpro-cart-page .bp-summary__note { display: none !important; margin: 20px 0 0; font-size: 12px; line-height: 1.65; color: var(--c-muted); }

/* Continue shopping + related */
body.bizpro-cart-page .bp-continue { display: block; margin-top: 19px; text-align: center; font-size: 16px !important; font-weight: 650; color: var(--c-blue); text-decoration: none; }
body.bizpro-cart-page .bp-continue:hover { text-decoration: underline; }
body.bizpro-cart-page .bp-related { margin: 49px 0 48px; }
body.bizpro-cart-page .bp-related__title { font-size: 23px; letter-spacing: -.02em; margin: 0 0 7px; }
body.bizpro-cart-page .bp-related__sub { font-size: 11px; color: var(--c-muted); margin: 0 0 20px; }
body.bizpro-cart-page .bp-related .products--results { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

/* Empty-cart message (WooCommerce's cart-empty template) */
body.bizpro-cart-page .cart-empty { text-align: center; padding: 45px 20px; color: var(--c-muted); }

/* ---- Tablet ---- */
@media (max-width: 1000px) {
  body.bizpro-cart-page .bp-cart__layout { grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; }
  body.bizpro-cart-page .bp-item { grid-template-columns: 88px minmax(0, 1fr) 118px 120px; gap: 14px; padding: 20px 16px; }
  body.bizpro-cart-page .bp-summary { padding: 22px; }
  body.bizpro-cart-page .bp-assurances { grid-template-columns: 1fr; gap: 12px; }
  body.bizpro-cart-page .bp-related .products--results { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Mobile ---- */
@media (max-width: 760px) {
  body.bizpro-cart-page .bp-cart__title { font-size: 1.75rem; }
  body.bizpro-cart-page .bp-cart__titlebar { margin-bottom: 18px; }
  body.bizpro-cart-page .bp-summary .wc-proceed-to-checkout a.checkout-button { min-height: 52px; font-size: 16px; }
  body.bizpro-cart-page .bp-cart__layout { grid-template-columns: 1fr; }
  body.bizpro-cart-page .bp-cart__aside { position: static; }
  body.bizpro-cart-page .bp-delivery { padding: 17px; }
  body.bizpro-cart-page .bp-item {
    grid-template-columns: 70px minmax(0, 1fr) auto;
    grid-template-areas: "thumb info info" "thumb qty side";
    gap: 10px 12px; padding: 18px 14px; align-items: start;
  }
  body.bizpro-cart-page .bp-item__thumb { grid-area: thumb; }
  body.bizpro-cart-page .bp-item__thumb img { width: 70px; height: 96px; }
  body.bizpro-cart-page .bp-item__info { grid-area: info; }
  body.bizpro-cart-page .bp-item__qty { grid-area: qty; align-self: end; }
  body.bizpro-cart-page .bp-item__side { grid-area: side; align-items: flex-end; gap: 4px; }
  body.bizpro-cart-page .bp-item__name { font-size: 13px; }
  body.bizpro-cart-page .bp-amount { font-size: 16px; }
  body.bizpro-cart-page .bp-tag { font-size: 11px; padding: 3px 6px; }
  body.bizpro-cart-page .bp-related { margin: 35px 0; }
  body.bizpro-cart-page .bp-related__title { font-size: 21px; }
  body.bizpro-cart-page .bp-related .products--results { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  body.bizpro-cart-page .bp-summary { padding: 22px; }
  body.bizpro-cart-page .bp-total-amount { font-size: 28px; }
}

@media (max-width: 480px) {
  body.bizpro-cart-page .bp-card { padding: 0; }
  body.bizpro-cart-page .bp-coupon { padding: 16px 16px; }
}

/* ---- Elementor cart widgets: each widget stands alone (no .bp-cart__layout / __aside around it) ---- */
body.bizpro-cart-page .bp-cart--items, body.bizpro-cart-page .bp-cart--summary { min-width: 0; }
body.bizpro-cart-page .bp-cart--summary .cart-collaterals { display: block; float: none; width: 100%; margin: 0; }
body.bizpro-cart-page .bp-cart--items .bp-cart__main { padding: 0; }
body.bizpro-cart-page .bp-cart__preview { margin: 0; padding: 0; }
body.bizpro-cart-page .bp-cart__empty { padding: 32px 24px; text-align: center; }
body.bizpro-cart-page .bp-cart__empty .woocommerce-info { margin: 0 0 16px; padding: 0; border: 0; background: transparent; color: var(--c-muted); }
body.bizpro-cart-page .bp-cart__empty .woocommerce-info::before { display: none; }
body.bizpro-cart-page .bp-cart__empty .return-to-shop { margin: 0; }
body.bizpro-cart-page .bp-cart__empty .button { display: inline-block; padding: 12px 22px; border: 0; border-radius: 6px; background: var(--c-navy); color: #fff; font-weight: 700; text-decoration: none; }
body.bizpro-cart-page .bp-cart__empty .button:hover { background: var(--c-blue); }

/* Payment badges (CB / Mastercard / Visa) removed */
body.bizpro-cart-page .bp-pay { display: none !important; }
