/* Svitlo UX — stage 5.8d: classic cart in the site style (cart page only). */
.woocommerce-cart .woocommerce { --sux-cart-img: 88px; }
.woocommerce-cart .woocommerce-cart-form { margin-bottom: 24px; }
.woocommerce-cart table.shop_table.cart { border: 1px solid #e5e9ee; border-radius: var(--sux-radius); border-collapse: separate; overflow: hidden; background: #fff; margin: 0; }
.woocommerce-cart table.shop_table.cart thead th { background: var(--sux-soft); color: #4b5563; font-size: 13px; font-weight: 600; text-transform: none; padding: 12px; border: 0; }
.woocommerce-cart table.shop_table.cart td { border-top: 1px solid #eef1f4; border-left: 0; border-right: 0; padding: 14px 12px; vertical-align: middle; }
.woocommerce-cart table.cart td.product-thumbnail { width: var(--sux-cart-img); }
.woocommerce-cart table.cart td.product-thumbnail img { width: var(--sux-cart-img) !important; height: var(--sux-cart-img); object-fit: contain; display: block; border-radius: 6px; background: #fff; }
.woocommerce-cart table.cart td.product-name a { color: #1f2937; font-weight: 600; font-size: 15px; line-height: 1.35; text-decoration: none; }
.woocommerce-cart table.cart td.product-name a:hover { color: var(--sux-brand); text-decoration: underline; }
.woocommerce-cart table.cart td.product-name .backorder_notification { font-size: 13px; color: #6b7280; margin: 4px 0 0; }
.woocommerce-cart table.cart td.product-price { color: #4b5563; white-space: nowrap; }
.woocommerce-cart table.cart td.product-subtotal { font-weight: 700; color: #1f2937; white-space: nowrap; }
.woocommerce-cart table.cart td.product-remove { width: 44px; text-align: center; }
.woocommerce-cart table.cart a.remove { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font-size: 22px; line-height: 1; color: #6b7280 !important; background: #f4f7fa; text-decoration: none; }
.woocommerce-cart table.cart a.remove:hover { color: #fff !important; background: var(--sux-err); }

/* quantity with − / + (buttons added by svitlo-cart.js; the number field works without them) */
.woocommerce-cart .sux-qty { display: inline-flex; align-items: stretch; border: 1px solid var(--sux-line); border-radius: var(--sux-radius); overflow: hidden; background: #fff; }
.woocommerce-cart .sux-qty button { width: 40px; min-height: 42px; border: 0; background: var(--sux-soft); color: #1f2937; font-size: 20px; line-height: 1; cursor: pointer; padding: 0; }
.woocommerce-cart .sux-qty button:hover { background: #e8f0f8; color: var(--sux-brand); }
.woocommerce-cart .sux-qty button:disabled { opacity: .4; cursor: default; }
.woocommerce-cart .sux-qty .quantity { margin: 0 !important; }
.woocommerce-cart .sux-qty input.qty { width: 52px !important; min-height: 42px; border: 0 !important; border-radius: 0; text-align: center; font-size: 16px; -moz-appearance: textfield; padding: 0 2px; box-shadow: none; }
.woocommerce-cart .sux-qty input.qty::-webkit-outer-spin-button,
.woocommerce-cart .sux-qty input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.woocommerce-cart table.cart td.actions { background: #fff; padding: 12px; text-align: right; }
.woocommerce-cart table.cart td.actions button[name=update_cart] { min-height: 42px; border-radius: var(--sux-radius); background: #fff !important; color: var(--sux-brand) !important; border: 1px solid var(--sux-brand) !important; text-transform: none; font-size: 14px; }
.woocommerce-cart .sux-cart-auto table.cart tr:has(td.actions) { display: none; }
.woocommerce-cart .sux-cart-busy { opacity: .6; pointer-events: none; transition: opacity .15s; }

/* totals */
.woocommerce-cart .cart-collaterals .cart_totals { float: right; width: 420px; max-width: 100%; border: 1px solid #e5e9ee; border-radius: var(--sux-radius); padding: 18px; background: #fff; box-sizing: border-box; }
.woocommerce-cart .cart_totals h2 { font-size: 20px; margin: 0 0 12px; }
.woocommerce-cart .cart_totals table.shop_table { border: 0; margin: 0 0 14px; }
.woocommerce-cart .cart_totals table.shop_table th, .woocommerce-cart .cart_totals table.shop_table td { border: 0; border-top: 1px solid #eef1f4; padding: 10px 0; background: none; font-weight: 400; color: #4b5563; }
.woocommerce-cart .cart_totals table.shop_table tr:first-child th, .woocommerce-cart .cart_totals table.shop_table tr:first-child td { border-top: 0; }
.woocommerce-cart .cart_totals table.shop_table td { text-align: right; }
.woocommerce-cart .cart_totals tr.fee td { color: var(--sux-ok); font-weight: 600; }
.woocommerce-cart .cart_totals tr.order-total th, .woocommerce-cart .cart_totals tr.order-total td { color: #1f2937; font-size: 18px; font-weight: 700; }
.woocommerce-cart .wc-proceed-to-checkout { padding: 0; }
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button { display: flex; align-items: center; justify-content: center; min-height: 52px; margin: 0; border-radius: var(--sux-radius); background: var(--sux-brand) !important; color: #fff !important; font-size: 17px; font-weight: 700; text-transform: none; letter-spacing: 0; }
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover { background: var(--sux-brand-dark) !important; }
.woocommerce-cart .sux-cart-note { margin: 10px 0 0; font-size: 13px; color: #6b7280; text-align: center; }
.woocommerce-cart .cross-sells { float: left; width: calc(100% - 450px); }
.woocommerce-cart .cross-sells h2 { font-size: 20px; }

/* empty cart */
.woocommerce-cart .cart-empty.woocommerce-info { border-radius: var(--sux-radius); }
.woocommerce-cart .return-to-shop a.button { min-height: 46px; display: inline-flex; align-items: center; border-radius: var(--sux-radius); background: var(--sux-brand) !important; color: #fff !important; text-transform: none; font-size: 15px; }

/* phones / small tablets: one card per product (photo left, details right) */
@media (max-width: 768px) {
  .woocommerce-cart table.shop_table.cart { border: 0; border-radius: 0; background: none; }
  .woocommerce-cart table.shop_table_responsive.cart tbody tr.cart_item {
    display: grid !important; grid-template-columns: var(--sux-cart-img) 1fr; grid-template-areas: "thumb name" "thumb price" "qty subtotal";
    column-gap: 12px; row-gap: 6px; position: relative; padding: 12px 44px 12px 12px; margin: 0 0 12px; border: 1px solid #e5e9ee; border-radius: var(--sux-radius); background: #fff;
  }
  .woocommerce-cart table.shop_table_responsive.cart tr.cart_item td { display: block !important; border: 0 !important; padding: 0 !important; text-align: left !important; background: none !important; }
  .woocommerce-cart table.shop_table_responsive.cart tr.cart_item td::before { display: none !important; }
  .woocommerce-cart table.cart tr.cart_item td.product-thumbnail { grid-area: thumb; display: block !important; width: auto; }
  .woocommerce-cart table.cart tr.cart_item td.product-name { grid-area: name; }
  .woocommerce-cart table.cart tr.cart_item td.product-price { grid-area: price; font-size: 14px; }
  .woocommerce-cart table.cart tr.cart_item td.product-quantity { grid-area: qty; align-self: center; }
  .woocommerce-cart table.cart tr.cart_item td.product-subtotal { grid-area: subtotal; align-self: center; text-align: right !important; font-size: 16px; }
  .woocommerce-cart table.cart tr.cart_item td.product-remove { position: absolute; top: 8px; right: 6px; width: auto; }
  .woocommerce-cart table.cart tr.cart_item td.product-price::after { content: " / шт."; color: #6b7280; }
  .woocommerce-cart table.cart td.actions { padding: 0 !important; border: 0 !important; }
  .woocommerce-cart table.cart td.actions button[name=update_cart] { width: 100%; }
  .woocommerce-cart .cart-collaterals .cart_totals, .woocommerce-cart .cross-sells { float: none; width: 100%; }
}
@media (max-width: 360px) {
  .woocommerce-cart table.shop_table_responsive.cart tbody tr.cart_item { grid-template-areas: "thumb name" "thumb price" "qty qty" "subtotal subtotal"; }
  .woocommerce-cart table.cart tr.cart_item td.product-subtotal { text-align: left !important; }
}
.woocommerce-cart .cart_totals table.shop_table th { white-space: nowrap; padding-right: 12px; }
@media (max-width: 768px) {
  .woocommerce-cart .cart_totals table.shop_table, .woocommerce-cart .cart_totals table.shop_table tr, .woocommerce-cart .cart_totals table.shop_table td { border: 0 !important; background: none !important; }
  .woocommerce-cart .cart_totals table.shop_table tr td { border-top: 1px solid #eef1f4 !important; padding: 10px 0 !important; }
  .woocommerce-cart .cart_totals table.shop_table tr:first-child td { border-top: 0 !important; }
  .woocommerce-cart .cart_totals table.shop_table td::before { font-weight: 400; color: #4b5563; }
  .woocommerce-cart .cart_totals tr.order-total td::before { color: #1f2937; font-weight: 700; }
  .woocommerce-cart .sux-cart-note { line-height: 1.4; }
}
