/* ---- Cart page: items on the left, a calm order summary on the right ---- */
body.woocommerce-cart .page-header { margin: 0; }
body.woocommerce-cart .page-header h1.entry-title { margin: 0 0 clamp(18px, 2.4vw, 30px); font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; color: #111; }
body.woocommerce-cart .page-content { padding-bottom: clamp(32px, 5vw, 72px); }
body.woocommerce-cart .woocommerce { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); gap: clamp(24px, 4vw, 64px); align-items: start; }
body.woocommerce-cart .woocommerce > .woocommerce-notices-wrapper, body.woocommerce-cart .woocommerce > .cart-empty, body.woocommerce-cart .woocommerce > .return-to-shop { grid-column: 1 / -1; }
body.woocommerce-cart .woocommerce-cart-form { min-width: 0; }

/* items: no table, just rows separated by thin lines */
body.woocommerce-cart table.shop_table.cart, body.woocommerce-cart table.shop_table.cart tbody, body.woocommerce-cart table.shop_table.cart tr, body.woocommerce-cart table.shop_table.cart td { display: block; border: 0 !important; background: transparent !important; padding: 0; margin: 0; width: auto; }
body.woocommerce-cart table.shop_table.cart { border-top: 1px solid #e6e6ea !important; }
body.woocommerce-cart table.shop_table.cart thead { display: none; }
body.woocommerce-cart table.shop_table.cart td::before { display: none !important; }
body.woocommerce-cart table.shop_table.cart tr.cart_item { position: relative; display: grid; grid-template-columns: 104px minmax(0, 1fr) auto 104px; grid-template-areas: "thumb name qty sub" "thumb price qty sub"; column-gap: clamp(14px, 2vw, 28px); row-gap: 4px; align-items: center; padding: 22px 36px 22px 0; border-bottom: 1px solid #e6e6ea !important; }
body.woocommerce-cart td.product-thumbnail { grid-area: thumb; }
body.woocommerce-cart td.product-thumbnail a { display: block; width: 104px; height: 104px; border-radius: 14px; overflow: hidden; background: linear-gradient(160deg, #f6f7f9, #eceef1); }
body.woocommerce-cart td.product-thumbnail img { display: block; width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; mix-blend-mode: multiply; }
body.woocommerce-cart td.product-name { grid-area: name; align-self: end; min-width: 0; }
body.woocommerce-cart td.product-name a { color: #111; font-size: 1.02rem; font-weight: 700; line-height: 1.35; text-decoration: none; }
body.woocommerce-cart td.product-name a:hover { text-decoration: underline; text-underline-offset: 3px; }
body.woocommerce-cart td.product-price { grid-area: price; align-self: start; font-size: .92rem; color: #6b6b75; }
body.woocommerce-cart td.product-price::after { content: " each"; }
body.woocommerce-cart td.product-quantity { grid-area: qty; }
body.woocommerce-cart td.product-subtotal { grid-area: sub; text-align: right; font-size: 1.05rem; font-weight: 800; color: #111; font-variant-numeric: tabular-nums; }
body.woocommerce-cart td.product-remove { position: absolute; top: 20px; right: 0; width: 28px; height: 28px; }
body.woocommerce-cart td.product-remove a.remove { display: inline-flex !important; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: transparent !important; color: #8a8a93 !important; font-size: 1.3rem; line-height: 1; font-weight: 400; text-decoration: none; transition: background .15s, color .15s; }
body.woocommerce-cart td.product-remove a.remove:hover { background: #f0f0f3 !important; color: #111 !important; }

/* quantity stepper */
body.woocommerce-cart .quantity.ws-qty { display: inline-flex; align-items: center; height: 40px; padding: 0 4px; border: 1px solid #dcdce1; border-radius: 999px; background: #fff; }
body.woocommerce-cart .quantity.ws-qty .qty { width: 34px; height: 36px; padding: 0; border: 0 !important; background: transparent !important; text-align: center; font-size: .98rem; font-weight: 700; color: #111; box-shadow: none !important; -moz-appearance: textfield; appearance: textfield; }
body.woocommerce-cart .quantity.ws-qty .qty::-webkit-outer-spin-button, body.woocommerce-cart .quantity.ws-qty .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
body.woocommerce-cart .quantity.ws-qty .ws-qty__btn { width: 32px; height: 32px; padding: 0; border: 0 !important; border-radius: 50% !important; background: transparent !important; color: #111 !important; font-size: 1.1rem; line-height: 1; cursor: pointer; box-shadow: none !important; }
body.woocommerce-cart .quantity.ws-qty .ws-qty__btn:hover { background: #f0f0f3 !important; }

/* discount code + update */
body.woocommerce-cart table.shop_table.cart tr:last-child td.actions { padding: 22px 0 0; }
body.woocommerce-cart td.actions { display: flex !important; flex-wrap: wrap; gap: 12px; align-items: center; }
body.woocommerce-cart td.actions .coupon { display: flex; flex: 1 1 320px; gap: 10px; margin: 0; float: none; }
body.woocommerce-cart td.actions .coupon label { display: none; }
body.woocommerce-cart td.actions .coupon input#coupon_code { flex: 1 1 auto; min-width: 0; width: auto; height: 46px; padding: 0 16px; border: 1px solid #dcdce1; border-radius: 12px; background: #fff; font-size: .96rem; box-shadow: none; }
body.woocommerce-cart td.actions .coupon input#coupon_code:focus { border-color: #111; outline: 0; }
body.woocommerce-cart td.actions button.button { height: 46px; padding: 0 22px; border-radius: 12px; font-size: .92rem; font-weight: 700; cursor: pointer; transition: opacity .15s, transform .12s; }
body.woocommerce-cart td.actions .coupon button.button { border: 0; background: #111 !important; color: #fff !important; }
body.woocommerce-cart td.actions > button[name="update_cart"] { margin-left: auto; border: 1px solid #dcdce1 !important; background: #fff !important; color: #111 !important; }
body.woocommerce-cart td.actions > button[name="update_cart"][disabled] { display: none; }
body.woocommerce-cart td.actions button.button:active { transform: scale(.97); }

/* order summary */
body.woocommerce-cart .cart-collaterals { width: 100% !important; float: none !important; position: sticky; top: calc(var(--ws-hdr-h, 72px) + 24px); }
body.woocommerce-cart .cart_totals { width: 100% !important; float: none !important; padding: clamp(22px, 2.4vw, 32px); border-radius: 20px; background: #f6f6f8; }
body.woocommerce-cart .cart_totals h2 { margin: 0 0 18px; font-size: 1.15rem; font-weight: 800; color: #111; }
body.woocommerce-cart .cart_totals table.shop_table, body.woocommerce-cart .cart_totals table.shop_table tbody, body.woocommerce-cart .cart_totals table.shop_table tr { display: block; border: 0 !important; background: transparent !important; }
body.woocommerce-cart .cart_totals table.shop_table tr { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 12px 0; border-top: 1px solid #e4e4e8 !important; }
body.woocommerce-cart .cart_totals table.shop_table tr:first-child { border-top: 0 !important; padding-top: 0; }
body.woocommerce-cart .cart_totals table.shop_table th, body.woocommerce-cart .cart_totals table.shop_table td { display: block; padding: 0 !important; border: 0 !important; background: transparent !important; font-size: .98rem; color: #3f3f46; text-align: right; }
body.woocommerce-cart .cart_totals table.shop_table th { text-align: left; font-weight: 600; color: #6b6b75; }
body.woocommerce-cart .cart_totals table.shop_table td::before { display: none !important; }
body.woocommerce-cart .cart_totals tr.order-total th, body.woocommerce-cart .cart_totals tr.order-total td { font-size: 1.15rem; font-weight: 800; color: #111; }
body.woocommerce-cart .cart_totals ul.woocommerce-shipping-methods { margin: 0; padding: 0; list-style: none; }
body.woocommerce-cart .cart_totals .woocommerce-shipping-destination { margin: 4px 0 0; font-size: .84rem; color: #7a7a84; }
body.woocommerce-cart .cart_totals .shipping-calculator-button { font-size: .84rem; color: #111; text-decoration: underline; text-underline-offset: 3px; }
body.woocommerce-cart .cart_totals .shipping-calculator-form { text-align: left; }
body.woocommerce-cart .wc-proceed-to-checkout { padding: 20px 0 0; }
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button { display: flex !important; align-items: center; justify-content: center; width: 100%; margin: 0 !important; padding: 0 20px !important; height: 56px; border-radius: 14px !important; background: #111 !important; color: #fff !important; font-size: 1.02rem !important; font-weight: 700 !important; text-decoration: none; letter-spacing: .01em; transition: transform .15s ease, opacity .15s ease; }
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover { opacity: .92; transform: translateY(-1px); }
.ws-cart__trust { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 7px; font-size: .84rem; color: #6b6b75; }
.ws-cart__trust li { position: relative; padding-left: 22px; }
.ws-cart__trust li::before { content: ""; position: absolute; left: 2px; top: .38em; width: 10px; height: 5px; border-left: 2px solid #111; border-bottom: 2px solid #111; transform: rotate(-45deg); }

/* empty cart */
body.woocommerce-cart .cart-empty { margin: 0; padding: clamp(40px, 8vw, 96px) 0 8px; text-align: center; border: 0 !important; background: transparent !important; font-size: 1.2rem; font-weight: 700; color: #111; }
body.woocommerce-cart .cart-empty::before { display: none !important; }
body.woocommerce-cart p.return-to-shop { margin: 0; padding-bottom: clamp(32px, 6vw, 72px); text-align: center; }
body.woocommerce-cart p.return-to-shop a.button { display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 32px; border-radius: 14px; background: #111 !important; color: #fff !important; font-weight: 700; text-decoration: none; }

/* tablet */
@media (max-width: 960px) {
  body.woocommerce-cart .woocommerce { grid-template-columns: 1fr; }
  body.woocommerce-cart .cart-collaterals { position: static; }
}
/* phone: each item is a compact card-less row */
@media (max-width: 767px) {
  body.woocommerce-cart table.shop_table.cart tr.cart_item { grid-template-columns: 84px minmax(0, 1fr) auto; grid-template-areas: "thumb name name" "thumb price price" "thumb qty sub"; row-gap: 6px; padding: 18px 30px 18px 0; }
  body.woocommerce-cart td.product-thumbnail a { width: 84px; height: 84px; border-radius: 12px; }
  body.woocommerce-cart td.product-name a { font-size: .96rem; }
  body.woocommerce-cart td.product-subtotal { align-self: center; font-size: 1rem; }
  body.woocommerce-cart td.product-remove { top: 16px; }
  body.woocommerce-cart td.actions { flex-direction: column; align-items: stretch; }
  body.woocommerce-cart td.actions .coupon { flex-basis: auto; }
  body.woocommerce-cart td.actions > button[name="update_cart"] { margin-left: 0; width: 100%; }
  body.woocommerce-cart .cart_totals { border-radius: 16px; padding: 20px; }
}
body.woocommerce-cart table.shop_table.cart tr:last-child td.actions { padding: 22px 0 0 !important; }
body.woocommerce-cart td.actions .coupon, body.woocommerce-cart td.actions .coupon input#coupon_code { margin-left: 0 !important; }
body.woocommerce-cart .cart_totals .shipping-calculator-button::before, body.woocommerce-cart .cart_totals .shipping-calculator-button::after { display: none !important; content: none !important; }
body.woocommerce-cart .page-header { padding: 0; }

/* ---- take over from the older cart rules in site.css ---- */
html body.woocommerce-cart table.cart tbody tr.cart_item { background: transparent !important; border: 0 !important; border-bottom: 1px solid #e6e6ea !important; border-radius: 0 !important; margin: 0 !important; box-shadow: none !important; }
html body.woocommerce-cart table.cart tr.cart_item td { padding: 0 !important; border: 0 !important; background: transparent !important; }
html body.woocommerce-cart table.cart tr.cart_item td::before { display: none !important; content: none !important; }
html body.woocommerce-cart table.cart tr.cart_item td.product-subtotal { display: block !important; margin: 0 !important; padding: 0 !important; border: 0 !important; text-align: right !important; justify-content: flex-end; }
html body.woocommerce-cart table.cart tr.cart_item td.product-name { padding-right: 0 !important; font-weight: 700; }
html body.woocommerce-cart table.cart tr.cart_item td.product-remove { position: absolute; top: 20px; right: 0; padding: 0 !important; }
html body.woocommerce-cart table.cart td.product-quantity .qty { width: 34px; height: 36px; border: 0 !important; text-align: center; }
html body.woocommerce-cart table.cart td.product-thumbnail img { width: 100% !important; height: 100% !important; border-radius: 0; }
html body.woocommerce-cart table.cart td.actions { display: flex !important; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: flex-start; background: transparent !important; border: 0 !important; border-radius: 0 !important; padding: 22px 0 0 !important; margin: 0 !important; float: none; }
html body.woocommerce-cart table.cart td.actions .coupon { display: flex !important; flex: 1 1 320px; width: auto !important; max-width: 460px; float: none !important; margin: 0 !important; }
html body.woocommerce-cart table.cart td.actions > button[name="update_cart"] { float: none !important; display: inline-flex !important; width: auto !important; margin: 0 0 0 auto !important; padding: 0 22px !important; background: #fff !important; color: #111 !important; border: 1px solid #dcdce1 !important; border-radius: 12px !important; height: 46px; align-items: center; justify-content: center; }
html body.woocommerce-cart table.cart td.actions > button[name="update_cart"][disabled] { display: none !important; }
html body.woocommerce-cart table.cart td.actions .coupon .button { border-radius: 12px !important; background: #111 !important; color: #fff !important; }
html body.woocommerce-cart table.cart td.actions .coupon .input-text { border-radius: 12px; height: 46px; }
html body.woocommerce-cart table.cart a.remove { color: #8a8a93 !important; font-size: 1.3rem; }
html body.woocommerce-cart .cart_totals { background: #f6f6f8; border-radius: 20px; }
@media (max-width: 767px) {
  html body.woocommerce-cart table.cart tbody tr.cart_item { grid-template-columns: 84px minmax(0, 1fr) auto !important; grid-template-areas: "thumb name name" "thumb price price" "thumb qty sub" !important; padding: 18px 30px 18px 0 !important; display: grid !important; }
  html body.woocommerce-cart table.cart tr.cart_item td.product-remove { top: 16px; }
  html body.woocommerce-cart table.cart tr.cart_item td.product-subtotal { align-self: center; }
  html body.woocommerce-cart table.cart td.actions { flex-direction: column; align-items: stretch; }
  html body.woocommerce-cart table.cart td.actions .coupon { flex: 0 0 auto; max-width: none; }
  html body.woocommerce-cart table.cart td.actions > button[name="update_cart"] { margin: 0 !important; width: 100% !important; }
}
html body.woocommerce-cart table.cart tbody tr.cart_item td.product-subtotal::before, html body.woocommerce-cart table.cart tr.cart_item td.product-subtotal::after { display: none !important; content: none !important; }
html body.woocommerce-cart table.cart td.actions .coupon { box-sizing: border-box; width: 100% !important; }
html body.woocommerce-cart table.cart td.actions .coupon .input-text, html body.woocommerce-cart table.cart td.actions .coupon input#coupon_code { flex: 1 1 0 !important; width: 0 !important; min-width: 0 !important; }
html body.woocommerce-cart table.cart td.actions .coupon .button { flex: 0 0 auto; width: auto !important; min-width: 0 !important; padding: 0 20px !important; font-size: .92rem !important; }
@media (min-width: 768px) { html body.woocommerce-cart table.cart td.actions .coupon { width: auto !important; flex: 1 1 320px; max-width: 460px; } }
body.woocommerce-cart .woocommerce-notices-wrapper:empty { display: none; }
body.woocommerce-cart .page-header h1.entry-title { margin-bottom: clamp(14px, 2vw, 24px); }
body.woocommerce-cart .woocommerce::before, body.woocommerce-cart .woocommerce::after { display: none !important; content: none !important; }
/* coupon row: the field takes the free width, the button keeps its size */
@media (min-width: 768px) { html body.woocommerce-cart table.cart td.actions .coupon { display: flex !important; flex: 1 1 360px; width: auto !important; min-width: 280px; max-width: 460px; } html body.woocommerce-cart table.cart td.actions .coupon .input-text, html body.woocommerce-cart table.cart td.actions .coupon input#coupon_code { flex: 1 1 auto !important; width: 100% !important; min-width: 120px !important; } }
/* explicit grid placement: notices on top (no gap when empty), then items | summary */
body.woocommerce-cart .woocommerce { row-gap: 0; column-gap: clamp(24px, 4vw, 64px); }
body.woocommerce-cart .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; grid-row: 1; }
body.woocommerce-cart .woocommerce > .woocommerce-notices-wrapper:not(:empty) { margin-bottom: 20px; }
body.woocommerce-cart .woocommerce > .woocommerce-cart-form { grid-column: 1; grid-row: 2; }
body.woocommerce-cart .woocommerce > .cart-collaterals { grid-column: 2; grid-row: 2; }
@media (max-width: 960px) {
  body.woocommerce-cart .woocommerce > .cart-collaterals { grid-column: 1; grid-row: 3; margin-top: 28px; }
}
html body.woocommerce-cart .quantity.ws-qty input.qty { width: 36px !important; height: 36px !important; min-height: 0 !important; padding: 0 !important; line-height: 36px !important; text-align: center; font-size: 1rem; font-weight: 700; color: #111; overflow: visible; }
html body.woocommerce-cart p.return-to-shop a.button, html body.woocommerce-cart a.button.wc-backward { border-radius: 10px !important; }

/* cart page quantity: the same dark pill */
html body.woocommerce-cart .quantity.ws-qty { height: 44px; padding: 4px; gap: 2px; border: 1px solid #2a2a2f !important; background: #09090b !important; border-radius: 999px; }
html body.woocommerce-cart .quantity.ws-qty .ws-qty__btn { position: relative; width: 34px !important; height: 34px !important; background: #2a2a2e !important; color: #b8b8c0 !important; font-size: 0 !important; line-height: 0; }
html body.woocommerce-cart .quantity.ws-qty .ws-qty__btn::before, html body.woocommerce-cart .quantity.ws-qty .ws-qty__btn::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 2px; margin: -1px 0 0 -5.5px; border-radius: 2px; background: currentColor; }
html body.woocommerce-cart .quantity.ws-qty .ws-qty__minus::after { display: none; }
html body.woocommerce-cart .quantity.ws-qty .ws-qty__plus::after { transform: rotate(90deg); }
html body.woocommerce-cart .quantity.ws-qty .ws-qty__btn:hover { background: #36363c !important; color: #fff !important; }
html body.woocommerce-cart .quantity.ws-qty input.qty { color: #fff !important; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-weight: 500; }

/* light version of the pill */
html body.woocommerce-cart .quantity.ws-qty { border: 1px solid #dcdce1 !important; background: #fff !important; }
html body.woocommerce-cart .quantity.ws-qty .ws-qty__btn { background: #f1f1f4 !important; color: #111 !important; }
html body.woocommerce-cart .quantity.ws-qty .ws-qty__btn:hover { background: #e6e6ea !important; color: #111 !important; }
html body.woocommerce-cart .quantity.ws-qty input.qty { color: #111 !important; font-family: inherit; font-weight: 700; }

/* ---- phone: a little cleaner and calmer ---- */
@media (max-width: 767px) {
  body.woocommerce-cart .page-header h1.entry-title { margin: 0 0 8px; font-size: 1.55rem; }
  html body.woocommerce-cart table.cart tbody tr.cart_item { grid-template-columns: 76px minmax(0, 1fr) auto !important; column-gap: 14px; row-gap: 4px; padding: 16px 26px 16px 0 !important; }
  body.woocommerce-cart td.product-thumbnail a { width: 76px; height: 76px; border-radius: 12px; }
  body.woocommerce-cart td.product-name a { font-size: .94rem; line-height: 1.3; font-weight: 700; }
  body.woocommerce-cart td.product-price { font-size: .84rem; }
  html body.woocommerce-cart .quantity.ws-qty { height: 40px; padding: 3px; }
  html body.woocommerce-cart .quantity.ws-qty .ws-qty__btn { width: 32px !important; height: 32px !important; }
  html body.woocommerce-cart .quantity.ws-qty input.qty { width: 32px !important; }
  html body.woocommerce-cart table.cart tr.cart_item td.product-subtotal { font-size: .98rem; }
  html body.woocommerce-cart table.cart tr.cart_item td.product-remove { top: 14px; }
  html body.woocommerce-cart table.cart td.actions { padding-top: 16px !important; gap: 10px; }
  html body.woocommerce-cart table.cart td.actions .coupon input#coupon_code, html body.woocommerce-cart table.cart td.actions .coupon .input-text { height: 44px; font-size: 16px; }
  html body.woocommerce-cart table.cart td.actions .coupon .button { height: 44px; }
  body.woocommerce-cart .woocommerce > .cart-collaterals { margin-top: 22px; }
  body.woocommerce-cart .cart_totals { padding: 18px 18px 20px; }
  body.woocommerce-cart .cart_totals h2 { margin-bottom: 12px; font-size: 1.05rem; }
  body.woocommerce-cart .cart_totals table.shop_table tr { padding: 10px 0; }
  body.woocommerce-cart .wc-proceed-to-checkout { padding-top: 16px; }
  body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button { height: 52px; font-size: 1rem !important; }
  .ws-cart__trust { margin-top: 14px; gap: 6px; font-size: .8rem; }
}
