body.woocommerce-cart, body.woocommerce-checkout, body.woocommerce-order-received {
  --shux-calm-ink: #171b19;
  --shux-calm-line: #e7ebe9;
  --shux-calm-soft: #f4f8f6;
  --shux-calm-orange: #ff4b22;
}
body.woocommerce-cart .shux-checkout-steps,
body.woocommerce-checkout .shux-checkout-steps,
body.woocommerce-order-received .shux-checkout-steps {
  max-width: none;
  gap: 12px;
  margin: 0 0 25px;
}
body.woocommerce-cart .shux-checkout-steps .shux-step,
body.woocommerce-checkout .shux-checkout-steps .shux-step,
body.woocommerce-order-received .shux-checkout-steps .shux-step {
  border-bottom-width: 2px;
  padding-bottom: 12px;
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
}
/* Native Woo product metadata accordion across cart, checkout and order receipt. */
body.woocommerce-cart .shux-item-options,
body.woocommerce-checkout .shux-item-options,
body.woocommerce-order-received .shux-item-options {
  display: block;
  max-width: 360px;
  margin: 10px 0 0;
  border: 1px solid var(--shux-calm-line);
  border-radius: 11px;
  overflow: hidden;
  background: #f8faf9;
  color: #444;
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 12px;
  line-height: 1.5;
}
body.woocommerce-cart .shux-item-options > summary,
body.woocommerce-checkout .shux-item-options > summary,
body.woocommerce-order-received .shux-item-options > summary {
  display: list-item;
  padding: 11px 13px;
  cursor: pointer;
  color: #1b1b1b;
  font-weight: 650;
  font-size: 12px;
  list-style-position: inside;
}
body.woocommerce-cart .shux-item-options[open] > summary,
body.woocommerce-checkout .shux-item-options[open] > summary,
body.woocommerce-order-received .shux-item-options[open] > summary { border-bottom: 1px solid var(--shux-calm-line); }
body.woocommerce-cart .shux-item-options > dl,
body.woocommerce-checkout .shux-item-options > dl,
body.woocommerce-order-received .shux-item-options > dl,
body.woocommerce-cart .shux-item-options > ul,
body.woocommerce-checkout .shux-item-options > ul,
body.woocommerce-order-received .shux-item-options > ul {
  margin: 0 !important;
  padding: 12px 13px !important;
  border: 0 !important;
  background: transparent !important;
  font-weight: 400;
}
body.woocommerce-cart .shux-item-options dt,
body.woocommerce-checkout .shux-item-options dt,
body.woocommerce-order-received .shux-item-options dt { font-weight: 650 !important; }
body.woocommerce-cart .shux-item-options dd,
body.woocommerce-checkout .shux-item-options dd,
body.woocommerce-order-received .shux-item-options dd { margin-bottom: 5px !important; }
/* Cart table remains the canonical Woo form. Only visual row layout changes. */
body.woocommerce-cart .woocommerce-cart-form table.shop_table,
body.woocommerce-cart .woocommerce-cart-form table.shop_table tbody {
  display: block !important;
  width: 100% !important;
  border: 0 !important;
}
body.woocommerce-cart .woocommerce-cart-form table.shop_table thead { display: none !important; }
body.woocommerce-cart .woocommerce-cart-form table.shop_table tbody > tr.cart_item {
  display: grid !important;
  grid-template-columns: 30px 100px minmax(0,1fr) 128px 95px;
  grid-template-areas: 'remove image name quantity total' 'remove image price quantity total';
  gap: 4px 16px;
  align-items: center;
  margin: 0 0 14px !important;
  padding: 18px !important;
  border: 1px solid var(--shux-calm-line) !important;
  border-radius: 22px !important;
  background: #fff !important;
  box-shadow: 0 5px 18px rgba(16,48,37,.04);
  box-sizing: border-box;
}
body.woocommerce-cart .woocommerce-cart-form .shop_table tbody > tr.cart_item > td {
  border: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  min-width: 0 !important;
  box-sizing: border-box;
}
body.woocommerce-cart .woocommerce-cart-form .shop_table td.product-remove { grid-area: remove; }
body.woocommerce-cart .woocommerce-cart-form .shop_table td.product-thumbnail { grid-area: image; }
body.woocommerce-cart .woocommerce-cart-form .shop_table td.product-name { grid-area: name; align-self:end; font-family:system-ui,-apple-system,'Segoe UI',sans-serif; }
body.woocommerce-cart .woocommerce-cart-form .shop_table td.product-price { grid-area: price; align-self:start; font-family:system-ui,-apple-system,'Segoe UI',sans-serif; font-size:13px; color:#6b6b6b !important; }
body.woocommerce-cart .woocommerce-cart-form .shop_table td.product-quantity { grid-area: quantity; }
body.woocommerce-cart .woocommerce-cart-form .shop_table td.product-subtotal { grid-area: total; text-align:right; font-size:17px; font-weight:800; }
body.woocommerce-cart .woocommerce-cart-form .shop_table td.product-thumbnail img {
  width: 100px !important; max-width:100px !important; max-height: 108px;
  object-fit: contain !important; padding: 8px;
  border-radius: 15px; background: #f4f7f6;
}
body.woocommerce-cart .woocommerce-cart-form .shop_table td.product-name > a {
  display: inline-block; font-family:system-ui,-apple-system,'Segoe UI',sans-serif;
  font-size: 17px !important; font-weight: 750 !important;
  line-height: 1.3;
}
body.woocommerce-cart .woocommerce-cart-form .shop_table .product-remove a.remove {
  background: #f5f5f5 !important; border-radius:999px !important;
  font-size: 20px; width:30px; height:30px;
}
body.woocommerce-cart .woocommerce-cart-form .shop_table .shux-cart-quantity {
  border: none !important; border-radius: 999px !important;
  background: #f4f4f4 !important; height: 40px !important;
}
body.woocommerce-cart .woocommerce-cart-form .shop_table .shux-cart-quantity .shux-cart-qty-btn {
  min-width: 33px; height: 39px; background: #fff !important;
  border-radius: 50% !important;
}
body.woocommerce-cart .woocommerce-cart-form .shop_table .shux-cart-quantity input.qty { width: 42px !important; min-height:39px !important; }
body.woocommerce-cart .elementor-widget-woocommerce-cart .woocommerce-cart-form,
body.woocommerce-cart .elementor-widget-woocommerce-cart .cart_totals,
body.woocommerce-cart .elementor-widget-woocommerce-cart .e-cart-totals {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}
body.woocommerce-cart .elementor-widget-woocommerce-cart .e-cart-totals,
body.woocommerce-cart .elementor-widget-woocommerce-cart .cart_totals {
  padding: 22px !important;
  background: #fff !important;
  border: 1px solid var(--shux-calm-line) !important;
  border-radius: 22px !important;
}
body.woocommerce-cart .cart_totals h2,
body.woocommerce-cart .e-cart-totals h2,
body.woocommerce-cart .e-cart-totals .e-cart-totals__title {
  font-family:system-ui,-apple-system,'Segoe UI',sans-serif !important;
  font-size: 21px !important;
  font-weight: 750 !important;
  letter-spacing: -.035em !important;
}
/* Checkout: fewer nested borders, non-condensed section titles, light field styling. */
body.woocommerce-checkout:not(.woocommerce-order-received) .elementor-widget-woocommerce-checkout-page .e-checkout__container { gap: 20px !important; }
body.woocommerce-checkout:not(.woocommerce-order-received) .elementor-widget-woocommerce-checkout-page .e-checkout__column-start > div,
body.woocommerce-checkout:not(.woocommerce-order-received) .elementor-widget-woocommerce-checkout-page .e-checkout__column-end > div,
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce form.checkout > #customer_details,
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce form.checkout > #order_review {
  border-radius: 22px !important;
  border: 1px solid var(--shux-calm-line) !important;
  box-shadow: 0 5px 18px rgba(16,48,37,.04) !important;
  padding: clamp(18px,2.3vw,28px) !important;
}
body.woocommerce-checkout:not(.woocommerce-order-received) .elementor-widget-woocommerce-checkout-page .e-checkout__order_review,
body.woocommerce-checkout:not(.woocommerce-order-received) .elementor-widget-woocommerce-checkout-page .e-checkout__order_review-2,
body.woocommerce-checkout:not(.woocommerce-order-received) .elementor-widget-woocommerce-checkout-page .e-checkout__payment {
  border: 0 !important;
  box-shadow: none !important;
}
body.woocommerce-checkout:not(.woocommerce-order-received) .elementor-widget-woocommerce-checkout-page h2,
body.woocommerce-checkout:not(.woocommerce-order-received) .elementor-widget-woocommerce-checkout-page h3,
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce form.checkout h3 {
  font-family:system-ui,-apple-system,'Segoe UI',sans-serif !important;
  font-size: clamp(19px,2vw,24px) !important;
  font-weight: 750 !important;
  letter-spacing: -.035em !important;
  line-height: 1.3 !important;
}
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce form.checkout input.input-text,
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce form.checkout select,
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce form.checkout textarea {
  border-radius: 11px !important;
  background: #fafafa !important;
}
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-checkout-review-order table.shop_table td,
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-checkout-review-order table.shop_table th {
  font-size: 13px !important;
  line-height: 1.55;
}
/* Purchase Summary styling lives exclusively in purchase-summary.css. */
@media (max-width: 1100px) {
  body.woocommerce-cart .woocommerce-cart-form table.shop_table tbody > tr.cart_item {
    grid-template-columns: 28px 84px minmax(0, 1fr) 100px;
    grid-template-areas: 'remove image name total' 'remove image price total' 'remove image quantity quantity';
    gap: 5px 12px;
  }
  body.woocommerce-cart .woocommerce-cart-form .shop_table td.product-thumbnail img { width:84px !important; max-width:84px !important; }
}
@media (max-width: 650px) {
  body.woocommerce-cart .woocommerce-cart-form table.shop_table tbody > tr.cart_item {
    grid-template-columns: 82px minmax(0, 1fr) 26px;
    grid-template-areas: 'image name remove' 'image price remove' 'image quantity total';
    gap: 7px 10px;
    padding: 13px !important;
    border-radius: 20px !important;
  }
  body.woocommerce-cart .woocommerce-cart-form .shop_table td.product-thumbnail img { width:82px !important; max-width:82px !important; }
  body.woocommerce-cart .woocommerce-cart-form .shop_table td.product-name > a { font-size:15px !important; }
  body.woocommerce-cart .woocommerce-cart-form .shop_table td.product-subtotal { font-size:15px; align-self:end; }
  body.woocommerce-cart .woocommerce-cart-form .shop_table td.product-name { align-self:end; }
  body.woocommerce-cart .woocommerce-cart-form .shop_table td.product-price { font-size:12px; }
  body.woocommerce-cart .woocommerce-cart-form .shop_table .shux-cart-quantity .shux-cart-qty-btn { min-width:30px; }
  body.woocommerce-cart .woocommerce-cart-form .shop_table .shux-cart-quantity input.qty { width:36px !important; }
  body.woocommerce-cart .elementor-widget-woocommerce-cart .e-cart-totals,
  body.woocommerce-cart .elementor-widget-woocommerce-cart .cart_totals { padding:17px !important; }
  body.woocommerce-checkout:not(.woocommerce-order-received) .elementor-widget-woocommerce-checkout-page .e-checkout__column-start > div,
  body.woocommerce-checkout:not(.woocommerce-order-received) .elementor-widget-woocommerce-checkout-page .e-checkout__column-end > div { padding: 17px !important; border-radius: 18px !important; }
}
@media (max-width: 374px) {
  body.woocommerce-cart .woocommerce-cart-form table.shop_table tbody > tr.cart_item {
    grid-template-columns:68px minmax(0,1fr) 24px;
  }
  body.woocommerce-cart .woocommerce-cart-form .shop_table td.product-thumbnail img { width:68px !important; max-width:68px !important; }
}

/* Woo mobile table fallbacks hide the thumbnail and add pseudo labels. The row
   is already explicitly laid out as a product card. */
body.woocommerce-cart .woocommerce-cart-form .shop_table tbody > tr.cart_item > td.product-thumbnail { display:block !important; }
body.woocommerce-cart .woocommerce-cart-form .shop_table tbody > tr.cart_item > td::before { display:none !important; }
body.woocommerce-cart .elementor-widget-woocommerce-cart .e-cart__column-start {
  border: 0 !important; box-shadow: none !important; background: transparent !important; padding: 0 !important;
}


/* SHUX 1.3.1: do not nest an extra boxed preview inside the cart thumbnail. */
body.woocommerce-cart .woocommerce-cart-form .shop_table td.product-thumbnail .shc-thumb-wrap {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  max-width: 132px !important;
  height: 100% !important;
  max-height: 108px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
body.woocommerce-cart .woocommerce-cart-form .shop_table td.product-thumbnail .shc-thumb-wrap img.shc-thumb {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  width: 100% !important;
  max-width: 100% !important;
  object-fit: contain !important;
}

body.woocommerce-cart .woocommerce-cart-form td.product-price .shux-unit-price {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 7px;
}
body.woocommerce-cart .woocommerce-cart-form td.product-price .shux-unit-price-before,
body .shux-unit-price-before {
  text-decoration: line-through;
  font-weight: 450;
  color: #898989;
}
body.woocommerce-cart .woocommerce-cart-form td.product-price .shux-unit-price-after,
body .shux-unit-price-after {
  color: #ff4b22;
  font-weight: 800;
  text-decoration: none;
}
body .shux-unit-price-after { display: inline-block; }
