/* Pagina de cos WooCommerce: suprafete curate si accente din identitatea Emanelcor. */
body.woocommerce-cart {
  --ema-cart-brand: #0a202c;
  --ema-cart-accent: var(--wd-alternative-color, #ee6d14);
  --ema-cart-line: #e5eaec;
  --ema-cart-muted: #69767c;
}

body.woocommerce-cart .woocommerce {
  color: var(--ema-cart-brand);
}

body.woocommerce-cart .woocommerce-cart-form,
body.woocommerce-cart .cart-collaterals .cart_totals {
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid rgb(10 32 44 / 8%);
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 14px 34px rgb(10 32 44 / 5%);
}

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

body.woocommerce-cart table.shop_table {
  margin: 0;
  border: 0;
  border-collapse: collapse;
  color: var(--ema-cart-brand);
}

body.woocommerce-cart table.shop_table thead th {
  padding: 0 12px 16px;
  border: 0;
  border-bottom: 1px solid var(--ema-cart-line);
  color: var(--ema-cart-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body.woocommerce-cart table.shop_table td {
  padding: 18px 12px;
  border: 0;
  border-bottom: 1px solid var(--ema-cart-line);
  vertical-align: middle;
}

body.woocommerce-cart table.shop_table .product-thumbnail img {
  width: 76px;
  border-radius: 5px;
}

body.woocommerce-cart table.shop_table .product-name > a:first-child {
  color: var(--ema-cart-brand);
  font-weight: 650;
  text-decoration: none;
}

body.woocommerce-cart table.shop_table .product-name > a:first-child:hover {
  color: var(--ema-cart-accent);
}

body.woocommerce-cart table.shop_table .product-price,
body.woocommerce-cart table.shop_table .product-subtotal {
  color: var(--ema-cart-brand);
  font-weight: 650;
}

body.woocommerce-cart table.shop_table .product-remove a {
  color: #879399 !important;
  transition: color .2s ease, background-color .2s ease;
}

body.woocommerce-cart table.shop_table .product-remove a:hover {
  color: #b83227 !important;
  background: #fff1ef;
}

body.woocommerce-cart .woocommerce-cart-form .quantity {
  display: inline-flex;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid #d6dfe3;
  border-radius: 5px;
  background: #fff;
}

body.woocommerce-cart .woocommerce-cart-form .quantity :is(.minus, .plus, .btn) {
  box-sizing: border-box;
  width: 38px;
  min-width: 38px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #f4f6f6;
  color: var(--ema-cart-brand);
  box-shadow: none;
}

body.woocommerce-cart .woocommerce-cart-form .quantity :is(.minus, .plus, .btn):hover {
  background: #eaf0f1;
  color: var(--ema-cart-brand);
}

body.woocommerce-cart .woocommerce-cart-form .quantity input.qty {
  box-sizing: border-box;
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  border: 0;
  border-inline: 1px solid #d6dfe3;
  border-radius: 0;
  background: #fff;
  color: var(--ema-cart-brand);
  box-shadow: none;
  text-align: center;
}

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

body.woocommerce-cart .coupon input.input-text {
  min-height: 44px;
  padding-inline: 14px;
  border: 1px solid #d6dfe3;
  border-radius: 5px;
  background: #fff;
}

body.woocommerce-cart :is(.coupon, .actions) .button,
body.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
  min-height: 44px;
  padding: 12px 20px;
  border: 0;
  border-radius: 5px;
  background: var(--ema-cart-brand);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .035em;
  text-transform: uppercase;
  transition: background-color .2s ease, transform .2s ease;
}

body.woocommerce-cart :is(.coupon, .actions) .button:hover,
body.woocommerce-cart .wc-proceed-to-checkout .checkout-button:hover {
  background: var(--ema-cart-accent);
  color: #fff;
  transform: translateY(-1px);
}

body.woocommerce-cart .cart-collaterals .cart_totals {
  float: none;
  width: 100%;
}

body.woocommerce-cart .cart_totals > h2 {
  margin: 0 0 22px;
  color: var(--ema-cart-brand);
  font-family: var(--wd-title-font, "Mulish", Arial, sans-serif);
  font-size: clamp(22px, 2.3vw, 30px);
  font-weight: 700;
}

body.woocommerce-cart .cart_totals table.shop_table th,
body.woocommerce-cart .cart_totals table.shop_table td {
  padding: 14px 0;
  border-bottom: 1px solid var(--ema-cart-line);
  font-size: 14px;
}

body.woocommerce-cart .cart_totals table.shop_table th {
  color: var(--ema-cart-muted);
  font-weight: 500;
}

body.woocommerce-cart .cart_totals table.shop_table .order-total th,
body.woocommerce-cart .cart_totals table.shop_table .order-total td {
  color: var(--ema-cart-brand);
  font-size: 17px;
  font-weight: 700;
}

body.woocommerce-cart .wc-proceed-to-checkout {
  padding: 20px 0 0;
}

body.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  background: var(--ema-cart-accent);
}

body.woocommerce-cart .wc-proceed-to-checkout .checkout-button:hover {
  background: var(--ema-cart-brand);
}

@media (max-width: 767px) {
  body.woocommerce-cart .woocommerce-cart-form,
  body.woocommerce-cart .cart-collaterals .cart_totals {
    padding: 18px 14px;
    border-radius: 5px;
  }

  body.woocommerce-cart table.shop_table td {
    padding: 12px 8px;
  }

  body.woocommerce-cart table.shop_table .product-thumbnail img {
    width: 64px;
    border-radius: 5px;
  }

  body.woocommerce-cart .woocommerce-cart-form .quantity :is(.minus, .plus, .btn) {
    width: 34px;
    min-width: 34px;
    height: 40px;
    min-height: 40px;
  }

  body.woocommerce-cart .woocommerce-cart-form .quantity input.qty {
    width: 38px;
    min-width: 38px;
    height: 40px;
    min-height: 40px;
  }

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

  body.woocommerce-cart .coupon input.input-text {
    flex: 1 1 140px;
    min-width: 0;
  }

  body.woocommerce-cart .coupon .button {
    flex: 1 0 100%;
  }

  body.woocommerce-cart .actions > .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.woocommerce-cart :is(.coupon, .actions) .button,
  body.woocommerce-cart .wc-proceed-to-checkout .checkout-button,
  body.woocommerce-cart table.shop_table .product-remove a {
    transition: none;
  }
}
