/*
  Jopic cart woo - langage visuel coherent avec checkout / mon compte.
*/

body.woocommerce-cart{
  --jopic-cart-shell: #6b452b;
  --jopic-cart-shell-deep: #3a2516;
  --jopic-cart-panel: linear-gradient(180deg, #fffdf9 0%, #f8f4ee 36%, #ebe2d8 100%);
  --jopic-cart-panel-soft: linear-gradient(180deg, #fffefb 0%, #f6f1ea 50%, #eae2d8 100%);
  --jopic-cart-line: rgba(67, 69, 73, 0.16);
  --jopic-cart-line-strong: rgba(232, 108, 0, 0.22);
  --jopic-cart-ink: #1c1c1c;
  --jopic-cart-muted: #5b5148;
  --jopic-cart-accent: #e86c00;
  --jopic-cart-accent-strong: #ff9a28;
  --jopic-cart-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    inset 0 -1px 0 rgba(67, 69, 73, 0.10),
    0 10px 24px rgba(24, 18, 12, 0.12);
  --jopic-cart-shell-shadow:
    0 18px 36px rgba(30, 18, 10, 0.18),
    0 28px 56px rgba(30, 18, 10, 0.22);
}

body.woocommerce-cart #content,
body.woocommerce-cart #main,
body.woocommerce-cart .post,
body.woocommerce-cart .post-content{
  background: transparent !important;
  box-shadow: none !important;
}

body.woocommerce-cart #main .post-content{
  color: var(--jopic-cart-ink);
  max-width: none;
}

body.woocommerce-cart .woocommerce-notices-wrapper,
body.woocommerce-cart .woocommerce-message,
body.woocommerce-cart .woocommerce-info,
body.woocommerce-cart .woocommerce-error{
  display: none !important;
}

body.woocommerce-cart .woocommerce{
  width: 100%;
  padding: 10px 5px;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.50) 0%, rgba(0, 0, 0, 0.18) 12%, rgba(0, 0, 0, 0) 24%) top / 100% 92px no-repeat,
    linear-gradient(0deg, rgba(0, 0, 0, 0.46) 0%, rgba(0, 0, 0, 0.18) 16%, rgba(0, 0, 0, 0) 28%) bottom / 100% 104px no-repeat,
    linear-gradient(180deg, var(--jopic-cart-shell) 0%, #8d5a36 52%, var(--jopic-cart-shell-deep) 100%);
  box-shadow: var(--jopic-cart-shell-shadow);
}

body.woocommerce-cart.jopic-cart-empty .woocommerce{
  max-width: 820px;
  margin: 24px auto 0;
  padding: 26px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.12) 12%, rgba(0, 0, 0, 0) 22%) top / 100% 84px no-repeat,
    linear-gradient(180deg, #fffdf9 0%, #f6f1ea 48%, #e8dfd4 100%);
  box-shadow:
    0 18px 36px rgba(30, 18, 10, 0.18),
    0 28px 56px rgba(30, 18, 10, 0.22);
  color: var(--jopic-cart-ink);
}

body.woocommerce-cart .woocommerce-cart-form,
body.woocommerce-cart .cart-collaterals{
  padding: 18px;
  border: 1px solid var(--jopic-cart-line-strong);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.38) 0%, rgba(255, 255, 255, 0) 18%) top / 100% 78px no-repeat,
    var(--jopic-cart-panel);
  box-shadow: var(--jopic-cart-shadow);
}

body.woocommerce-cart .woocommerce-cart-form{
  margin-bottom: 18px;
}

body.woocommerce-cart .shop_table{
  width: 100%;
  border-collapse: collapse;
  border: 0;
  background: transparent;
}

body.woocommerce-cart .shop_table thead th{
  padding: 0 0 14px;
  border: 0;
  border-bottom: 1px solid var(--jopic-cart-line-strong);
  color: var(--jopic-cart-ink);
  font-size: 17px;
  font-weight: 900;
  text-transform: uppercase;
}

body.woocommerce-cart .shop_table thead th.product-remove{
  color: transparent !important;
}

body.woocommerce-cart .shop_table tbody td{
  padding: 18px 0;
  border: 0;
  border-top: 1px solid rgba(232, 108, 0, 0.18);
  background: transparent;
  color: var(--jopic-cart-ink);
  vertical-align: middle;
}

body.woocommerce-cart .shop_table tbody tr:first-child td{
  border-top: 0;
}

body.woocommerce-cart .shop_table .product-thumbnail{
  width: 116px;
  padding-right: 18px;
}

body.woocommerce-cart .shop_table .product-thumbnail img{
  width: 106px;
  height: 106px;
  object-fit: contain;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(232, 108, 0, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

body.woocommerce-cart .shop_table .product-name a{
  color: var(--jopic-cart-ink);
  font-size: 22px;
  font-weight: 800;
  text-decoration: none;
}

body.woocommerce-cart .shop_table .product-name .jopic-cart-sku{
  display: inline-block;
  margin-left: 8px;
  color: var(--jopic-cart-accent);
  font-size: 17px;
  font-weight: 900;
  vertical-align: baseline;
}

body.woocommerce-cart .shop_table .product-name .variation,
body.woocommerce-cart .shop_table .product-name .wc-item-meta,
body.woocommerce-cart .shop_table .product-name .jpf-cart-fitment-summary__line{
  color: var(--jopic-cart-accent) !important;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

body.woocommerce-cart .shop_table .product-price,
body.woocommerce-cart .shop_table .product-subtotal{
  color: var(--jopic-cart-accent);
  font-size: 22px;
  font-weight: 900;
  white-space: nowrap;
}

body.woocommerce-cart .shop_table .product-remove a{
  color: var(--jopic-cart-ink) !important;
  font-size: 29px;
  font-weight: 400;
}

body.woocommerce-cart .shop_table .product-remove a:hover{
  color: var(--jopic-cart-accent) !important;
  background: transparent !important;
}

body.woocommerce-cart .quantity{
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0.32rem;
  border: 1px solid rgba(223, 145, 42, 0.34);
  border-radius: 16px;
  overflow: visible;
  background: linear-gradient(180deg, rgba(45, 34, 26, 0.96) 0%, rgba(24, 18, 13, 0.98) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 -1px 0 rgba(0, 0, 0, 0.28);
}

body.woocommerce-cart .quantity > *{
  align-items: center;
}

body.woocommerce-cart .quantity .qty{
  appearance: textfield;
  -moz-appearance: textfield;
  width: 2.8rem;
  min-width: 2.8rem;
  min-height: 2rem;
  margin: 0;
  padding: 0.15rem 0.2rem !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #fff8ef !important;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 800;
  outline: none !important;
}

body.woocommerce-cart .quantity .minus,
body.woocommerce-cart .quantity .plus{
  appearance: none;
  align-items: center;
  display: inline-flex !important;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  min-height: 2rem;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 14px !important;
  background: linear-gradient(180deg, #ff9a1f 0%, #d96a00 100%) !important;
  box-shadow: 0 10px 20px rgba(217, 106, 0, 0.22) !important;
  color: #f8efe5 !important;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1;
  transition: background-color 160ms ease, color 160ms ease, opacity 160ms ease;
}

body.woocommerce-cart .quantity .minus:hover,
body.woocommerce-cart .quantity .plus:hover{
  background: linear-gradient(180deg, #ffab43 0%, #e47600 100%) !important;
  color: #ffffff !important;
}

body.woocommerce-cart .quantity .minus[disabled],
body.woocommerce-cart .quantity .plus[disabled]{
  opacity: 0.35;
  cursor: default;
}

body.woocommerce-cart .quantity .qty::-webkit-inner-spin-button,
body.woocommerce-cart .quantity .qty::-webkit-outer-spin-button{
  margin: 0;
  -webkit-appearance: none;
}

body.woocommerce-cart .actions{
  padding-top: 18px !important;
}

body.woocommerce-cart .jopic-cart-actions{
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

body.woocommerce-cart .jopic-cart-actions__shop{
  background: linear-gradient(180deg, #f7f1ea 0%, #dfd0c0 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.68),
    0 10px 20px rgba(67, 69, 73, 0.12) !important;
  color: var(--jopic-cart-ink) !important;
  font-size: 19px !important;
}

body.woocommerce-cart .jopic-cart-actions__shop:hover{
  background: linear-gradient(180deg, #fff8f0 0%, #e8d8c8 100%) !important;
  color: #111111 !important;
}

body.woocommerce-cart .jopic-cart-actions__checkout{
  min-width: 160px;
  font-size: 23px !important;
}

body.woocommerce-cart .coupon,
body.woocommerce-cart .cart-collaterals{
  display: none !important;
}

body.woocommerce-cart .coupon{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

body.woocommerce-cart .coupon #coupon_code{
  min-width: min(100%, 260px);
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid rgba(67, 69, 73, 0.16);
  border-radius: 12px;
  background: var(--jopic-cart-panel-soft);
  color: var(--jopic-cart-ink);
}

body.woocommerce-cart .button,
body.woocommerce-cart a.button,
body.woocommerce-cart button,
body.woocommerce-cart input[type="submit"]{
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 0 !important;
  border-radius: 10px !important;
  background: linear-gradient(180deg, var(--jopic-cart-accent-strong) 0%, var(--jopic-cart-accent) 55%, #8c3a00 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 10px 20px rgba(104, 47, 6, 0.22) !important;
  color: #fff !important;
  font-size: 21px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none !important;
  outline: none !important;
  -webkit-tap-highlight-color: transparent;
  background-clip: padding-box;
}

body.woocommerce-cart .button::before,
body.woocommerce-cart .button::after,
body.woocommerce-cart a.button::before,
body.woocommerce-cart a.button::after,
body.woocommerce-cart button::before,
body.woocommerce-cart button::after,
body.woocommerce-cart input[type="submit"]::before,
body.woocommerce-cart input[type="submit"]::after{
  content: none !important;
  display: none !important;
}

body.woocommerce-cart .button:focus,
body.woocommerce-cart a.button:focus,
body.woocommerce-cart button:focus,
body.woocommerce-cart input[type="submit"]:focus,
body.woocommerce-cart .button:focus-visible,
body.woocommerce-cart a.button:focus-visible,
body.woocommerce-cart button:focus-visible,
body.woocommerce-cart input[type="submit"]:focus-visible{
  outline: none !important;
}

body.woocommerce-cart .fusion-page-title-captions h1,
body.woocommerce-cart .entry-title,
body.woocommerce-cart .post-title{
  font-size: 2.4rem;
  line-height: 1.1;
}

body.woocommerce-cart #main .post-content .woocommerce .woocommerce-content-box.full-width.clearfix > h2,
body.woocommerce-cart .woocommerce .woocommerce-content-box.full-width.clearfix > h2{
  font-size: 2.4rem !important;
  line-height: 1.1 !important;
}

body.woocommerce-cart .button:hover,
body.woocommerce-cart a.button:hover,
body.woocommerce-cart button:hover,
body.woocommerce-cart input[type="submit"]:hover{
  background: linear-gradient(180deg, #ffaf4b 0%, #f07a12 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 14px 26px rgba(104, 47, 6, 0.26) !important;
  color: #fffdf9 !important;
  transform: translateY(-1px);
}

body.woocommerce-cart.jopic-cart-empty .wc-empty-cart-message{
  width: 100%;
  max-width: 720px;
  margin: 0 auto 12px;
}

body.woocommerce-cart .cart-empty{
  max-width: none;
  margin: 0 auto !important;
  padding: 18px 20px !important;
  border-top: 0 !important;
  border-bottom: 0 !important;
  border: 1px solid rgba(232, 108, 0, 0.24) !important;
  border-radius: 18px !important;
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.98) 0%, rgba(241, 230, 216, 0.96) 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88) !important;
  color: var(--jopic-cart-ink) !important;
  font-size: 24px !important;
  font-weight: 900 !important;
  line-height: 1.25 !important;
  text-align: center;
}

body.woocommerce-cart.jopic-cart-empty .return-to-shop{
  margin: 0 auto !important;
  width: auto;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-align: center;
}

body.woocommerce-cart.jopic-cart-empty .return-to-shop .wc-backward{
  min-width: 220px;
  min-height: 52px;
  padding: 14px 26px;
  border: 1px solid rgba(176, 88, 6, 0.22) !important;
  border-radius: 14px !important;
  background: linear-gradient(180deg, #ff9a28 0%, #e86c00 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 8px 18px rgba(114, 54, 6, 0.18) !important;
  color: #fff8ef !important;
  font-size: 21px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none !important;
}

body.woocommerce-cart.jopic-cart-empty .return-to-shop .wc-backward:hover,
body.woocommerce-cart.jopic-cart-empty .return-to-shop .wc-backward:focus-visible{
  background: linear-gradient(180deg, #ffaf4b 0%, #f07a12 100%) !important;
  color: #fffdf9 !important;
  text-decoration: none !important;
  transform: none;
}

body.woocommerce-cart .cart-collaterals .cart_totals h2{
  margin: 0 0 16px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--jopic-cart-line-strong);
  color: var(--jopic-cart-ink);
}

body.woocommerce-cart .cart-collaterals .shop_table td,
body.woocommerce-cart .cart-collaterals .shop_table th{
  padding: 14px 0;
  border-top: 1px solid rgba(232, 108, 0, 0.16);
}

body.woocommerce-cart .cart-collaterals .shop_table tr:first-child th,
body.woocommerce-cart .cart-collaterals .shop_table tr:first-child td{
  border-top: 0;
}

body.woocommerce-cart .cart-collaterals .checkout-button{
  width: 100%;
  margin-top: 14px;
}

@media (max-width: 980px){
  body.woocommerce-cart .woocommerce{
    padding: 10px 5px;
  }

  body.woocommerce-cart .woocommerce-cart-form,
  body.woocommerce-cart .cart-collaterals{
    padding: 14px;
    border-radius: 20px;
  }

  body.woocommerce-cart .jopic-cart-actions{
    justify-content: stretch;
  }

  body.woocommerce-cart .jopic-cart-actions > *{
    flex: 1 1 100%;
  }

  body.woocommerce-cart .shop_table thead{
    display: none;
  }

  body.woocommerce-cart .shop_table,
  body.woocommerce-cart .shop_table tbody,
  body.woocommerce-cart .shop_table tr,
  body.woocommerce-cart .shop_table td{
    display: block;
    width: 100%;
  }

  body.woocommerce-cart .shop_table tbody tr{
    padding: 14px 0;
    border-top: 1px solid rgba(232, 108, 0, 0.18);
  }

  body.woocommerce-cart .shop_table tbody tr:first-child{
    border-top: 0;
  }

  body.woocommerce-cart .shop_table tbody td{
    padding: 8px 0;
    border-top: 0;
  }

  body.woocommerce-cart .shop_table .product-thumbnail{
    width: auto;
    padding-right: 0;
  }

  body.woocommerce-cart .shop_table .product-price,
  body.woocommerce-cart .shop_table .product-quantity,
  body.woocommerce-cart .shop_table .product-subtotal,
  body.woocommerce-cart .shop_table .product-remove{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  body.woocommerce-cart .shop_table .product-price::before{
    content: "Prix";
  }

  body.woocommerce-cart .shop_table .product-quantity::before{
    content: "Quantite";
  }

  body.woocommerce-cart .shop_table .product-subtotal::before{
    content: "Total";
  }

  body.woocommerce-cart .coupon{
    margin-bottom: 12px;
  }
}
