/* =========================================================
   JOYLINK CART — Base
========================================================= */

.woocommerce-cart .site-content,
.woocommerce-cart main {
  background: #fbf8f5;
}

/* =========================================================
   Jauge livraison offerte
========================================================= */

.jl-cart-shipping-bar {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 24px;
  padding: 22px 24px;
  border-radius: 26px;
  background: #ffffff;
  border: 1px solid rgba(17, 17, 17, 0.08);
  box-shadow: 0 16px 42px rgba(17, 17, 17, 0.06);
}

.jl-cart-shipping-bar__head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: baseline;
  margin-bottom: 14px;
}

.jl-cart-shipping-bar__head p {
  margin: 0 !important;
  color: #111111;
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 600;
  line-height: 1.45;
}

.jl-cart-shipping-bar__head strong {
  font-weight: 850;
}

.jl-cart-shipping-bar__head span {
  flex: 0 0 auto;
  color: rgba(17, 17, 17, 0.52);
  font-size: 13px;
  font-weight: 700;
}

.jl-cart-shipping-bar__track {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: #f1ebe7;
}

.jl-cart-shipping-bar__track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #111111 0%, #ea9d82 100%);
  transition: width 0.35s ease;
}

/* =========================================================
   Widget Cart Elementor
========================================================= */

.woocommerce-cart .elementor-widget-woocommerce-cart {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.woocommerce-cart .e-cart__container {
  gap: 28px;
}

.woocommerce-cart .e-cart__column-start,
.woocommerce-cart .e-cart__column-end {
  border-radius: 28px;
}

.woocommerce-cart .woocommerce-cart-form,
.woocommerce-cart .cart_totals {
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid rgba(17, 17, 17, 0.08);
  box-shadow: 0 16px 42px rgba(17, 17, 17, 0.05);
}

.woocommerce-cart table.shop_table {
  border: 0 !important;
}

.woocommerce-cart table.shop_table th {
  color: rgba(17, 17, 17, 0.52);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.woocommerce-cart table.shop_table td {
  border-color: rgba(17, 17, 17, 0.08) !important;
}

.woocommerce-cart .product-name a {
  color: #111111;
  font-weight: 850;
  text-decoration: none;
}

.woocommerce-cart .product-price,
.woocommerce-cart .product-subtotal,
.woocommerce-cart .cart_totals .amount {
  color: #111111;
  font-weight: 800;
}

.woocommerce-cart .coupon,
.woocommerce-cart .e-cart-section {
  border-radius: 22px;
}

.woocommerce-cart .checkout-button,
.woocommerce-cart .button[name="update_cart"],
.woocommerce-cart .coupon .button {
  border-radius: 999px !important;
  font-weight: 850 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.woocommerce-cart .checkout-button {
  background: #111111 !important;
  color: #ffffff !important;
}

.woocommerce-cart .checkout-button:hover {
  background: #ea9d82 !important;
}

/* =========================================================
   Mobile
========================================================= */

@media (max-width: 767px) {
  .jl-cart-shipping-bar {
    width: calc(100% - 28px);
    margin: 22px auto 20px;
    padding: 20px 18px;
    border-radius: 24px;
  }

  .jl-cart-shipping-bar__head {
    display: grid;
    gap: 8px;
  }

  .jl-cart-shipping-bar__head span {
    font-size: 12px;
  }

  .woocommerce-cart .elementor-widget-woocommerce-cart {
    width: calc(100% - 28px);
  }

  .woocommerce-cart .woocommerce-cart-form,
  .woocommerce-cart .cart_totals {
    border-radius: 24px;
  }
}

/* =========================================================
   Affichage métas produit / champs personnalisés panier
========================================================= */

.woocommerce-cart .product-name .variation,
.woocommerce-cart .product-name .wc-item-meta,
.woocommerce-cart .product-name dl.variation,
.woocommerce-cart .product-name .wapf-cart-item-data {
  display: grid !important;
  gap: 6px;
  margin: 10px 0 0 !important;
  padding: 10px 0 0 !important;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
  color: rgba(17, 17, 17, 0.62);
  font-size: 13px;
  line-height: 1.45;
}

.woocommerce-cart .product-name .variation dt,
.woocommerce-cart .product-name .wc-item-meta-label {
  color: #111111;
  font-weight: 800;
}

.woocommerce-cart .product-name .variation dd,
.woocommerce-cart .product-name .wc-item-meta li {
  margin: 0 !important;
}

.woocommerce-cart .product-name .variation p {
  margin: 0 !important;
}

/* =========================================================
   JOYLINK CART — Shortcode WooCommerce natif
========================================================= */

.woocommerce-cart .woocommerce {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.woocommerce-cart form.woocommerce-cart-form {
  overflow: hidden;
  padding: clamp(20px, 3vw, 32px);
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid rgba(17, 17, 17, 0.08);
  box-shadow: 0 16px 42px rgba(17, 17, 17, 0.05);
}

.woocommerce-cart table.shop_table {
  width: 100%;
  border: 0 !important;
  border-collapse: collapse;
}

.woocommerce-cart table.shop_table th {
  padding: 14px 12px;
  border: 0 !important;
  color: rgba(17, 17, 17, 0.52);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.woocommerce-cart table.shop_table td {
  padding: 20px 12px;
  border-top: 1px solid rgba(17, 17, 17, 0.08) !important;
  vertical-align: middle;
}

.woocommerce-cart .product-thumbnail img {
  width: 86px;
  height: 86px;
  border-radius: 18px;
  object-fit: cover;
}

.woocommerce-cart .product-name a {
  color: #111111;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.25;
  text-decoration: none;
}

.woocommerce-cart .product-name a:hover {
  color: #ea9d82;
}

.woocommerce-cart .product-price,
.woocommerce-cart .product-subtotal,
.woocommerce-cart .amount {
  color: #111111;
  font-weight: 800;
}

.woocommerce-cart .quantity input.qty {
  width: 72px;
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(17, 17, 17, 0.14);
  text-align: center;
}

.woocommerce-cart .product-remove a.remove {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #f8f1ee;
  color: #111111 !important;
  font-size: 22px;
  text-decoration: none;
}

.woocommerce-cart .product-remove a.remove:hover {
  background: #111111;
  color: #ffffff !important;
}

/* Métas produit : variations + champs APF */
.woocommerce-cart .product-name .variation,
.woocommerce-cart .product-name .wc-item-meta,
.woocommerce-cart .product-name dl.variation,
.woocommerce-cart .product-name .wapf-cart-item-data {
  display: grid !important;
  gap: 5px;
  margin: 10px 0 0 !important;
  padding: 10px 0 0 !important;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
  color: rgba(17, 17, 17, 0.62);
  font-size: 13px;
  line-height: 1.45;
}

.woocommerce-cart .product-name .variation dt,
.woocommerce-cart .product-name .wc-item-meta-label {
  color: #111111;
  font-weight: 800;
}

.woocommerce-cart .product-name .variation dd,
.woocommerce-cart .product-name .wc-item-meta li {
  margin: 0 !important;
}

.woocommerce-cart .product-name .variation p {
  margin: 0 !important;
}

/* Coupon + update */
.woocommerce-cart .actions {
  padding-top: 24px !important;
}

.woocommerce-cart .coupon {
  display: flex;
  gap: 10px;
}

.woocommerce-cart .coupon input.input-text {
  min-height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(17, 17, 17, 0.14);
  padding: 0 18px;
}

.woocommerce-cart button.button,
.woocommerce-cart .button {
  min-height: 46px;
  border-radius: 999px !important;
  background: #111111 !important;
  color: #ffffff !important;
  font-weight: 850 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.woocommerce-cart button.button:hover,
.woocommerce-cart .button:hover {
  background: #ea9d82 !important;
  color: #ffffff !important;
}

/* Totaux panier */
.woocommerce-cart .cart-collaterals {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
}

.woocommerce-cart .cart_totals {
  float: none !important;
  width: min(460px, 100%) !important;
  margin-left: auto;
  padding: 28px;
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid rgba(17, 17, 17, 0.08);
  box-shadow: 0 16px 42px rgba(17, 17, 17, 0.05);
}

.woocommerce-cart .cart_totals h2 {
  margin: 0 0 18px !important;
  color: #111111 !important;
  font-size: 24px !important;
  font-weight: 900 !important;
  letter-spacing: -0.04em;
}

.woocommerce-cart .cart_totals table {
  border: 0 !important;
}

.woocommerce-cart .cart_totals th,
.woocommerce-cart .cart_totals td {
  border-color: rgba(17, 17, 17, 0.08) !important;
}

.woocommerce-cart .wc-proceed-to-checkout {
  padding-bottom: 0 !important;
}

.woocommerce-cart .checkout-button {
  width: 100%;
  min-height: 54px;
  display: flex !important;
  justify-content: center;
  align-items: center;
  border-radius: 999px !important;
  background: #111111 !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.woocommerce-cart .checkout-button:hover {
  background: #ea9d82 !important;
}

/* =========================================================
   JOYLINK CART — Mobile
========================================================= */

@media (max-width: 767px) {
  .woocommerce-cart .woocommerce,
  .woocommerce-cart .cart-collaterals {
    width: calc(100% - 28px);
  }

  .woocommerce-cart form.woocommerce-cart-form {
    padding: 18px;
    border-radius: 24px;
  }

  .woocommerce-cart table.shop_table_responsive tr {
    display: block;
    margin-bottom: 18px;
    padding: 18px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid rgba(17, 17, 17, 0.08);
    box-shadow: 0 10px 26px rgba(17, 17, 17, 0.04);
  }

  .woocommerce-cart table.shop_table_responsive tr.cart_item {
    position: relative;
  }

  .woocommerce-cart table.shop_table_responsive tr td {
    display: block !important;
    width: 100% !important;
    padding: 8px 0 !important;
    border: 0 !important;
    text-align: left !important;
  }

  .woocommerce-cart table.shop_table_responsive tr td::before {
    color: rgba(17, 17, 17, 0.5);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .woocommerce-cart .product-remove {
    position: absolute;
    top: 14px;
    right: 14px;
    width: auto !important;
  }

  .woocommerce-cart .product-thumbnail {
    margin-bottom: 10px;
  }

  .woocommerce-cart .product-thumbnail::before {
    display: none;
  }

  .woocommerce-cart .product-thumbnail img {
    width: 100%;
    height: auto;
    max-height: 220px;
    border-radius: 18px;
    object-fit: cover;
  }

  .woocommerce-cart .product-name a {
    display: block;
    max-width: calc(100% - 40px);
    font-size: 17px;
  }

  .woocommerce-cart .coupon {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .woocommerce-cart .coupon input.input-text,
  .woocommerce-cart .coupon .button,
  .woocommerce-cart .actions > .button {
    width: 100% !important;
  }

  .woocommerce-cart .cart_totals {
    width: 100% !important;
    padding: 24px 20px;
    border-radius: 24px;
  }
}

/* =========================================================
   JOYLINK CUSTOM CART
========================================================= */

.woocommerce-cart .jl-cart-layout {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 70px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
  gap: 28px;
  align-items: start;
}

.jl-cart-items,
.jl-cart-summary {
  border-radius: 30px;
  background: #ffffff;
  border: 1px solid rgba(17, 17, 17, 0.08);
  box-shadow: 0 16px 42px rgba(17, 17, 17, 0.05);
}

.jl-cart-items {
  padding: clamp(22px, 3vw, 32px);
}

.jl-cart-items__head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: baseline;
  margin-bottom: 22px;
}

.jl-cart-items__head p {
  margin: 0 !important;
  color: #111111;
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.06em;
}

.jl-cart-items__head span {
  color: rgba(17, 17, 17, 0.52);
  font-size: 13px;
  font-weight: 800;
}

.jl-cart-item {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
}

.jl-cart-item:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.jl-cart-item__media img {
  width: 118px;
  height: 118px;
  object-fit: cover;
  border-radius: 22px;
  background: #f7f3ef;
}

.jl-cart-item__top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.jl-cart-item__top h2 {
  margin: 0 !important;
  color: #111111 !important;
  font-size: 20px !important;
  font-weight: 850 !important;
  line-height: 1.18 !important;
  letter-spacing: -0.04em !important;
}

.jl-cart-item__top h2 a {
  color: inherit;
  text-decoration: none;
}

.jl-cart-item__remove {
  flex: 0 0 auto;
  color: rgba(17, 17, 17, 0.52);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  text-decoration: underline;
}

.jl-cart-item__meta {
  margin-top: 14px;
  padding: 14px 0 0;
  border-top: 1px dashed rgba(17, 17, 17, 0.14);
  color: rgba(17, 17, 17, 0.62);
  font-size: 13.5px;
  line-height: 1.45;
}

.jl-cart-item__meta dl,
.jl-cart-item__meta .variation {
  display: grid;
  grid-template-columns: minmax(120px, 0.75fr) 1fr;
  gap: 8px 14px;
  margin: 0 !important;
}

.jl-cart-item__meta dt {
  margin: 0 !important;
  color: #111111;
  font-weight: 800;
}

.jl-cart-item__meta dd {
  margin: 0 !important;
  color: rgba(17, 17, 17, 0.58);
}

.jl-cart-item__meta p {
  margin: 0 !important;
}

.jl-cart-item__bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-top: 20px;
}

.jl-cart-item__qty,
.jl-cart-item__price {
  display: grid;
  gap: 8px;
}

.jl-cart-item__qty span,
.jl-cart-item__price span {
  color: rgba(17, 17, 17, 0.46);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.jl-cart-item__price strong {
  color: #111111;
  font-size: 20px;
  font-weight: 900;
}

.jl-cart-item__qty .quantity input.qty {
  width: 82px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(17, 17, 17, 0.14);
  text-align: center;
  font-weight: 800;
}

.jl-cart-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
}

.jl-cart-coupon {
  display: flex;
  gap: 10px;
  flex: 1 1 360px;
}

.jl-cart-coupon input {
  width: 100%;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(17, 17, 17, 0.14);
}

.jl-cart-actions .button {
  min-height: 48px;
  padding: 0 20px !important;
  border-radius: 999px !important;
  background: #111111 !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 850 !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.jl-cart-summary {
  padding: 28px;
  position: sticky;
  top: 120px;
}

.jl-cart-summary .cart_totals {
  float: none !important;
  width: 100% !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.jl-cart-summary .cart_totals h2 {
  margin: 0 0 22px !important;
  color: #111111 !important;
  font-size: 30px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: -0.06em !important;
}

.jl-cart-summary .shop_table {
  border: 0 !important;
}

.jl-cart-summary .shop_table th,
.jl-cart-summary .shop_table td {
  padding: 16px 0 !important;
  border-color: rgba(17, 17, 17, 0.08) !important;
}

.jl-cart-summary .wc-proceed-to-checkout .checkout-button {
  min-height: 56px;
  display: flex !important;
  justify-content: center;
  align-items: center;
  border-radius: 999px !important;
  background: #111111 !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* On neutralise les cross-sells Woo/XStore sur la page panier */
.woocommerce-cart .cross-sells {
  display: none !important;
}

/* =========================================================
   JOYLINK CUSTOM CART — Mobile
========================================================= */

@media (max-width: 767px) {
  .woocommerce-cart .jl-cart-layout {
    width: calc(100% - 28px);
    margin: 26px auto 54px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .jl-cart-items,
  .jl-cart-summary {
    border-radius: 26px;
  }

  .jl-cart-items {
    padding: 20px;
  }

  .jl-cart-items__head {
    display: grid;
    gap: 6px;
    margin-bottom: 18px;
  }

  .jl-cart-items__head p {
    font-size: 34px;
  }

  .jl-cart-item {
    grid-template-columns: 92px 1fr;
    gap: 14px;
    padding: 20px 0;
  }

  .jl-cart-item__media img {
    width: 92px;
    height: 92px;
    border-radius: 18px;
  }

  .jl-cart-item__top {
    display: grid;
    gap: 8px;
  }

  .jl-cart-item__top h2 {
    font-size: 18px !important;
  }

  .jl-cart-item__remove {
    width: fit-content;
  }

  .jl-cart-item__meta {
    grid-column: 1 / -1;
    margin-top: 12px;
    font-size: 13px;
  }

  .jl-cart-item__meta dl,
  .jl-cart-item__meta .variation {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .jl-cart-item__meta dt {
    margin-top: 8px !important;
  }

  .jl-cart-item__bottom {
    grid-column: 1 / -1;
    align-items: center;
  }

  .jl-cart-coupon {
    flex-basis: 100%;
    display: grid;
  }

  .jl-cart-update,
  .jl-cart-actions .button {
    width: 100%;
  }

  .jl-cart-summary {
    position: static;
    padding: 24px 20px;
  }

  .jl-cart-summary .cart_totals h2 {
    font-size: 28px !important;
  }

  .jl-cart-summary .shop_table th,
  .jl-cart-summary .shop_table td {
    display: block;
    width: 100%;
    text-align: left !important;
  }

  .jl-cart-summary .shop_table td {
    padding-top: 4px !important;
  }

  .jl-cart-summary .woocommerce-shipping-methods li {
    margin-bottom: 12px !important;
  }

  .jl-cart-summary .woocommerce-shipping-methods label {
    font-size: 15px !important;
    line-height: 1.45 !important;
  }
}

/* =========================================================
   État AJAX panier
========================================================= */

.jl-cart-wrapper.is-updating {
  position: relative;
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.jl-cart-wrapper.is-updating::after {
  content: "Mise à jour du panier...";
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 9999;
  transform: translateX(-50%);
  padding: 12px 18px;
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 14px 34px rgba(17, 17, 17, 0.22);
}

/* =========================================================
   Quantité custom Joylink
========================================================= */

.jl-cart-qty-control {
  display: inline-grid;
  grid-template-columns: 38px 54px 38px;
  align-items: center;
  overflow: hidden;
  width: max-content;
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: 999px;
  background: #ffffff;
}

.jl-cart-qty-control__btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #111111;
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
}

.jl-cart-qty-control__btn:hover {
  background: #f8f1ee;
}

.jl-cart-qty-control .qty,
.jl-cart-qty-control__input {
  width: 54px !important;
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 !important;
  border: 0 !important;
  border-left: 1px solid rgba(17, 17, 17, 0.08) !important;
  border-right: 1px solid rgba(17, 17, 17, 0.08) !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  color: #111111 !important;
  text-align: center !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  box-shadow: none !important;
  appearance: textfield;
}

.jl-cart-qty-control .qty::-webkit-outer-spin-button,
.jl-cart-qty-control .qty::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

@media (max-width: 767px) {
  .jl-cart-qty-control {
    grid-template-columns: 36px 50px 36px;
  }

  .jl-cart-qty-control__btn {
    width: 36px;
    height: 40px;
  }

  .jl-cart-qty-control .qty,
  .jl-cart-qty-control__input {
    width: 50px !important;
    height: 40px !important;
    min-height: 40px !important;
  }
}

/* =========================================================
   FIX FINAL — Quantité panier sans AJAX
========================================================= */

.jl-cart-qty-control {
  display: inline-grid !important;
  grid-template-columns: 42px 58px 42px !important;
  align-items: center !important;
  width: max-content !important;
  overflow: hidden !important;
  border: 1px solid rgba(17, 17, 17, 0.14) !important;
  border-radius: 999px !important;
  background: #ffffff !important;
}

.jl-cart-qty-control__btn {
  display: grid !important;
  place-items: center !important;
  width: 42px !important;
  height: 46px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #111111 !important;
  font-size: 24px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  appearance: none !important;
}

.jl-cart-qty-control__btn:hover {
  background: #f8f1ee !important;
}

.jl-cart-qty-control__input {
  width: 58px !important;
  height: 46px !important;
  min-height: 46px !important;
  padding: 0 !important;
  border: 0 !important;
  border-left: 1px solid rgba(17, 17, 17, 0.08) !important;
  border-right: 1px solid rgba(17, 17, 17, 0.08) !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  color: #111111 !important;
  text-align: center !important;
  font-size: 16px !important;
  font-weight: 850 !important;
  box-shadow: none !important;
  appearance: textfield !important;
}

.jl-cart-qty-control__input::-webkit-outer-spin-button,
.jl-cart-qty-control__input::-webkit-inner-spin-button {
  margin: 0 !important;
  appearance: none !important;
}

.jl-cart-update.is-needed {
  opacity: 1 !important;
}

@media (max-width: 767px) {
  .jl-cart-qty-control {
    grid-template-columns: 40px 54px 40px !important;
  }

  .jl-cart-qty-control__btn {
    width: 40px !important;
    height: 44px !important;
  }

  .jl-cart-qty-control__input {
    width: 54px !important;
    height: 44px !important;
    min-height: 44px !important;
  }
}

/* =========================================================
   FIX FINAL MOBILE — Panier custom Joylink centré / non serré
   À placer tout à la fin de joylink-cart.css
========================================================= */

@media (max-width: 767px) {

  html,
  body {
    overflow-x: hidden !important;
  }

  .woocommerce-cart .elementor-widget-container,
  .woocommerce-cart .elementor-shortcode,
  .woocommerce-cart .jl-cart-wrapper,
  .woocommerce-cart .jl-cart-form {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .woocommerce-cart .jl-cart-layout {
    width: 100% !important;
    max-width: 100% !important;
    margin: 22px 0 54px !important;
    padding: 0 14px !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 22px !important;
    box-sizing: border-box !important;
  }

  .woocommerce-cart .jl-cart-items,
  .woocommerce-cart .jl-cart-summary {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 20px 14px !important;
    border-radius: 24px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .woocommerce-cart .jl-cart-items__head {
    display: grid !important;
    gap: 4px !important;
    margin-bottom: 18px !important;
  }

  .woocommerce-cart .jl-cart-items__head p {
    font-size: 30px !important;
    line-height: 1 !important;
    letter-spacing: -0.055em !important;
  }

  .woocommerce-cart .jl-cart-item {
    position: relative !important;
    display: grid !important;
    grid-template-columns: 74px minmax(0, 1fr) !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 18px 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .woocommerce-cart .jl-cart-item__media,
  .woocommerce-cart .jl-cart-item__media a {
    width: 74px !important;
    max-width: 74px !important;
    min-width: 0 !important;
    display: block !important;
  }

  .woocommerce-cart .jl-cart-item__media img {
    width: 74px !important;
    height: 74px !important;
    border-radius: 16px !important;
    object-fit: cover !important;
  }

  .woocommerce-cart .jl-cart-item__content,
  .woocommerce-cart .jl-cart-item__top,
  .woocommerce-cart .jl-cart-item__top h2,
  .woocommerce-cart .jl-cart-item__meta,
  .woocommerce-cart .jl-cart-item__bottom {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .woocommerce-cart .jl-cart-item__top {
    display: block !important;
    padding-right: 28px !important;
  }

  .woocommerce-cart .jl-cart-item__top h2 {
    margin: 0 !important;
    font-size: 15px !important;
    line-height: 1.22 !important;
    letter-spacing: -0.035em !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
  }

  .woocommerce-cart .jl-cart-item__top h2 a {
    display: block !important;
    color: #111111 !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
  }

  .woocommerce-cart .jl-cart-item__remove {
    position: absolute !important;
    top: 18px !important;
    right: 0 !important;
    width: auto !important;
    font-size: 11px !important;
    line-height: 1 !important;
    z-index: 2 !important;
  }

  .woocommerce-cart .jl-cart-item__meta {
    margin-top: 10px !important;
    padding-top: 10px !important;
    font-size: 12.5px !important;
    line-height: 1.35 !important;
  }

  .woocommerce-cart .jl-cart-item__meta dl,
  .woocommerce-cart .jl-cart-item__meta .variation {
    display: grid !important;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr) !important;
    gap: 6px 10px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .woocommerce-cart .jl-cart-item__meta dt,
  .woocommerce-cart .jl-cart-item__meta dd,
  .woocommerce-cart .jl-cart-item__meta p {
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
  }

  .woocommerce-cart .jl-cart-item__bottom {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 12px !important;
    align-items: end !important;
    margin-top: 16px !important;
  }

  .woocommerce-cart .jl-cart-item__price strong {
    font-size: 16px !important;
    white-space: nowrap !important;
  }

  .woocommerce-cart .jl-cart-qty-control {
    grid-template-columns: 34px 46px 34px !important;
  }

  .woocommerce-cart .jl-cart-qty-control__btn {
    width: 34px !important;
    height: 40px !important;
    font-size: 21px !important;
  }

  .woocommerce-cart .jl-cart-qty-control__input {
    width: 46px !important;
    height: 40px !important;
    min-height: 40px !important;
    font-size: 15px !important;
  }

  .woocommerce-cart .jl-cart-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    padding-top: 20px !important;
  }

  .woocommerce-cart .jl-cart-coupon {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    width: 100% !important;
  }

  .woocommerce-cart .jl-cart-coupon input,
  .woocommerce-cart .jl-cart-actions .button {
    width: 100% !important;
  }
}

/* =========================================================
   JOYLINK CART — Panier vide
========================================================= */

body.woocommerce-cart {
  background: #f7f4f1 !important;
  overflow-x: hidden !important;
}

body.woocommerce-cart .woocommerce {
  width: min(100%, 1180px) !important;
  max-width: 1180px !important;
  margin: 0 auto !important;
  padding: 34px 16px 70px !important;
  box-sizing: border-box !important;
}

/* Notices WooCommerce */
body.woocommerce-cart .woocommerce-notices-wrapper {
  margin: 0 0 24px !important;
}

body.woocommerce-cart .woocommerce-message,
body.woocommerce-cart .woocommerce-info,
body.woocommerce-cart .woocommerce-error {
  margin: 0 0 16px !important;
  padding: 18px 22px 18px 58px !important;
  border-radius: 22px !important;
  border: 1px solid rgba(17,17,17,0.08) !important;
  border-top: 0 !important;
  background: #ffffff !important;
  box-shadow: 0 14px 38px rgba(17,17,17,0.05) !important;
  color: rgba(17,17,17,0.72) !important;
  font-size: 15px !important;
  line-height: 1.5 !important;
}

/* =========================================================
   JOYLINK CART — Panier vide custom [joylink_cart]
========================================================= */

body.woocommerce-cart .jl-cart-wrapper {
  width: min(100%, 1180px) !important;
  max-width: 1180px !important;
  margin: 0 auto !important;
  padding: 0 16px 70px !important;
  box-sizing: border-box !important;
}

body.woocommerce-cart .jl-cart-empty {
  position: relative !important;
  width: min(100%, 760px) !important;
  margin: 34px auto 42px !important;
  padding: 44px 34px !important;
  border-radius: 32px !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(234, 157, 130, 0.12), transparent 34%),
    #ffffff !important;
  border: 1px solid rgba(17, 17, 17, 0.08) !important;
  box-shadow: 0 24px 68px rgba(17, 17, 17, 0.065) !important;
  text-align: center !important;
  overflow: hidden !important;
}

body.woocommerce-cart .jl-cart-empty::before {
  content: "♡" !important;
  width: 62px !important;
  height: 62px !important;
  margin: 0 auto 20px !important;
  border-radius: 999px !important;
  background: #050505 !important;
  color: #ffffff !important;
  display: grid !important;
  place-items: center !important;
  font-size: 28px !important;
  line-height: 1 !important;
}

body.woocommerce-cart .jl-cart-empty h1 {
  margin: 0 0 16px !important;
  color: #111111 !important;
  font-size: clamp(34px, 6vw, 54px) !important;
  line-height: 1.02 !important;
  font-weight: 950 !important;
  letter-spacing: -0.055em !important;
}

body.woocommerce-cart .jl-cart-empty p {
  max-width: 560px !important;
  margin: 0 auto 26px !important;
  color: rgba(17, 17, 17, 0.68) !important;
  font-size: 16px !important;
  line-height: 1.65 !important;
}

body.woocommerce-cart .jl-cart-empty__button {
  min-height: 56px !important;
  padding: 0 28px !important;
  border-radius: 999px !important;
  background: #050505 !important;
  color: #ffffff !important;
  border: 1px solid #050505 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 13.5px !important;
  font-weight: 900 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
}

body.woocommerce-cart .jl-cart-empty__button:hover {
  background: #ffffff !important;
  color: #050505 !important;
}

/* Mobile */
@media (max-width: 767px) {
  body.woocommerce-cart .jl-cart-wrapper {
    padding: 0 16px 60px !important;
  }

  body.woocommerce-cart .jl-cart-empty {
    margin: 28px auto 36px !important;
    padding: 34px 22px !important;
    border-radius: 28px !important;
  }

  body.woocommerce-cart .jl-cart-empty::before {
    width: 54px !important;
    height: 54px !important;
    font-size: 24px !important;
  }

  body.woocommerce-cart .jl-cart-empty h1 {
    font-size: 38px !important;
  }

  body.woocommerce-cart .jl-cart-empty p {
    font-size: 15.5px !important;
  }

  body.woocommerce-cart .jl-cart-empty__button {
    width: 100% !important;
    min-height: 56px !important;
  }
}