/* Cart styling is scoped. Calculations, validation and submission remain WooCommerce's. */
.ts-cart { width: min(88%, 1450px); margin-inline: auto; padding-block: 24px 0; direction: rtl; font-family: "Yekan Bakh FaNum", Tahoma, sans-serif; color: #292929; }
.ts-cart__breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 13px; color: #777; margin-block-end: 28px; }
.ts-cart__breadcrumb a { color: #292929; text-decoration: none; }
.ts-cart__header { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-block-end: 30px; }
.ts-cart__eyebrow { margin: 0 0 8px; color: #d81022; font-size: 13px; font-weight: 600; }
.ts-cart h1 { margin: 0 0 10px; font-size: clamp(28px, 3vw, 42px); font-weight: 900; line-height: 1.5; }
.ts-cart__description { margin: 0; font-size: 14px; line-height: 1.9; color: #777; }
.ts-cart__continue { display: inline-flex; align-items: center; justify-content: center; gap: 12px; flex-shrink: 0; min-height: 44px; padding: 10px 18px; border: 1px solid #e0e0e0; border-radius: 12px; background: #fff; color: #292929; text-decoration: none; font-size: 13px; font-weight: 600; }
.ts-cart__continue svg { width: 18px; height: 18px; }
.ts-cart__steps { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 20px 44px; list-style: none; padding: 22px; margin: 0 0 28px; border-radius: 18px; background: #fff; }
.ts-cart__steps li { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: #888; }
.ts-cart__steps span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #f1f1f1; color: #777; font-size: 13px; font-weight: 700; }
.ts-cart__steps [aria-current] { color: #292929; font-weight: 700; }
.ts-cart__steps [aria-current] span { background: #ed1024; color: #fff; }
.ts-cart__content { min-width: 0; }
.ts-cart__content > .woocommerce { display: flow-root; }
.ts-cart .woocommerce .woocommerce-cart-form { float: right; width: calc(100% - 360px); min-width: 0; padding: 24px; border-radius: 22px; background: #fff; }
.ts-cart .woocommerce .cart-collaterals { clear: none; float: left; width: 332px; margin: 0; }
.ts-cart .woocommerce .cart-collaterals .cart_totals { float: none; width: 100%; min-width: 0; padding: 26px; border-radius: 22px; background: #fff; margin: 0; }
.ts-cart .cart_totals h2 { margin: 0 0 24px; font-size: 22px; font-weight: 800; line-height: 1.6; }
.ts-cart .woocommerce table.shop_table { display: table; width: 100%; max-width: 100%; margin: 0; border: 0; border-collapse: collapse; border-spacing: 0; overflow: visible; border-radius: 0; font-size: 13px; }
.ts-cart .woocommerce table.shop_table th { font-weight: 600; background: transparent; }
.ts-cart .woocommerce table.shop_table th, .ts-cart .woocommerce table.shop_table td { padding: 16px 8px; border: 0; border-block-end: 1px solid #efefef; vertical-align: middle; text-align: right; }
.ts-cart .woocommerce table.cart th { padding-block-start: 0; color: #888; font-size: 12px; }
.ts-cart .woocommerce table.cart td.product-remove { width: 30px; padding-inline: 0; }
.ts-cart .woocommerce a.remove { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: #fff2f3; color: #d81022 !important; font-size: 21px; line-height: 1; text-decoration: none; font-weight: 400; }
.ts-cart .woocommerce a.remove:hover { color: #fff !important; background: #ed1024; }
.ts-cart .woocommerce table.cart td.product-thumbnail { width: 80px; }
.ts-cart .woocommerce table.cart td.product-thumbnail img { display: block; width: 70px; height: 70px; margin: 0; object-fit: contain; border: 1px solid #f0f0f0; border-radius: 12px; padding: 6px; }
.ts-cart .woocommerce table.cart .product-name { min-width: 120px; max-width: 280px; overflow-wrap: anywhere; line-height: 1.9; }
.ts-cart .woocommerce table.cart .product-name a { color: #292929; text-decoration: none; font-weight: 700; }
.ts-cart .woocommerce table.cart dl.variation { font-size: 11px; margin-block: 6px 0; color: #777; }
.ts-cart .woocommerce .product-price, .ts-cart .woocommerce .product-subtotal { font-size: 13px; font-weight: 700; overflow-wrap: anywhere; }
.ts-cart .woocommerce .quantity { display: inline-flex; align-items: center; justify-content: center; border: 1px solid #e5e5e5; border-radius: 10px; overflow: hidden; background: #fafafa; }
.ts-cart .woocommerce .quantity input.qty { width: 44px; min-width: 0; height: 40px; border: 0; border-radius: 0; padding: 4px; background: transparent; text-align: center; font: inherit; font-size: 13px; appearance: textfield; }
.ts-cart .woocommerce .quantity input.qty::-webkit-inner-spin-button, .ts-cart .woocommerce .quantity input.qty::-webkit-outer-spin-button { appearance: none; margin: 0; }
.ts-cart-quantity-step { display: grid; place-items: center; flex-shrink: 0; width: 28px; height: 40px; padding: 0; border: 0; background: transparent; color: #292929; font: inherit; font-size: 18px; cursor: pointer; }
.ts-cart-quantity-step:disabled { opacity: .35; cursor: default; }
.ts-cart .woocommerce table.cart td.actions { padding: 22px 0 0; border: 0; }
.ts-cart .woocommerce table.cart td.actions .coupon { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; float: right; max-width: 100%; }
.ts-cart .woocommerce table.cart td.actions .coupon .input-text { float: none; width: 150px; max-width: 100%; min-height: 44px; margin: 0; padding: 10px 12px; border: 1px solid #e2e2e2; border-radius: 10px; background: #fafafa; font: inherit; font-size: 12px; }
.ts-cart .woocommerce button.button, .ts-cart .woocommerce a.button { min-height: 44px; border: 0; border-radius: 10px; padding: 12px 16px; font: inherit; font-size: 13px; font-weight: 600; line-height: 1.5; background: #292929; color: #fff; text-decoration: none; }
.ts-cart .woocommerce button[name="update_cart"] { float: left; }
.ts-cart .woocommerce button.button:disabled { opacity: .45; cursor: default; }
.ts-cart .woocommerce button.button:hover:not(:disabled) { background: #111; }
.ts-cart .woocommerce .cart_totals .order-total td { color: #d81022; font-size: 20px; font-weight: 900; }
.ts-cart .woocommerce .cart_totals .order-total th { font-weight: 800; font-size: 15px; }
.ts-cart .woocommerce .cart_totals table.shop_table td { text-align: left; }
.ts-cart .woocommerce .cart_totals .woocommerce-shipping-totals td { text-align: right; font-size: 12px; }
.ts-cart .woocommerce .cart_totals ul#shipping_method { margin: 0; padding: 0; }
.ts-cart .woocommerce .cart_totals .shipping-calculator-button { color: #d81022; font-size: 12px; }
.ts-cart .woocommerce .wc-proceed-to-checkout { padding: 22px 0 0; }
.ts-cart .woocommerce .wc-proceed-to-checkout a.checkout-button { display: block; width: 100%; margin: 0; border-radius: 12px; padding: 16px; min-height: 52px; background: #ed1024; color: #fff; font-size: 16px; font-weight: 700; text-align: center; }
.ts-cart .woocommerce .wc-proceed-to-checkout a.checkout-button:hover { background: #cb0c1e; }
.ts-cart-help { padding: 20px 0 0; margin-block-start: 22px; border-block-start: 1px solid #eee; }
.ts-cart-help h3 { font-size: 14px; margin: 0 0 8px; line-height: 1.8; }
.ts-cart-help p { margin: 0; font-size: 12px; line-height: 1.9; color: #777; }
.ts-cart-help a { display: inline-flex; align-items: center; gap: 8px; margin-block-start: 12px; font-size: 12px; color: #d81022; text-decoration: none; }
.ts-cart-help svg { width: 16px; height: 16px; }
.ts-cart .woocommerce-error, .ts-cart .woocommerce-info, .ts-cart .woocommerce-message { clear: both; margin: 0 0 20px; border-radius: 12px; background: #fff; font: inherit; font-size: 13px; line-height: 1.9; }
.ts-cart .woocommerce-message { border-block-start-color: #2dc653; }
.ts-cart .woocommerce-error { border-block-start-color: #ed1024; }
.ts-cart .woocommerce .cart-collaterals .cross-sells { float: none; width: 100%; margin-block-start: 24px; }
.ts-cart .cross-sells h2 { font-size: 20px; font-weight: 800; }
.ts-cart .cross-sells ul.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ts-cart .cross-sells ul.products::before, .ts-cart .cross-sells ul.products::after { display: none; }
.ts-cart .cross-sells ul.products li.product { float: none; width: 100%; margin: 0; padding: 12px; border-radius: 14px; background: #fff; }
.ts-cart-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: clamp(40px, 7vw, 90px) 24px; border-radius: 26px; background: #fff; }
.ts-cart-empty__icon { display: grid; place-items: center; width: 130px; height: 130px; margin-block-end: 26px; border-radius: 36px; background: #fff1f2; color: #ed1024; }
.ts-cart .ts-cart-empty .cart-empty { border: 0; margin: 0 0 12px; padding: 0; background: transparent; font-size: clamp(20px, 2vw, 28px); font-weight: 800; line-height: 1.7; color: #292929; }
.ts-cart .ts-cart-empty .cart-empty::before { display: none; }
.ts-cart-empty__description { max-width: 550px; margin: 0 0 24px; color: #777; font-size: 14px; line-height: 2; }
.ts-cart .ts-cart-empty .return-to-shop { margin: 0; }
.ts-cart .woocommerce .ts-cart-empty a.button { background: #ed1024; padding: 14px 24px; }
/* WooCommerce block cart keeps its own Store API and React state. */
.ts-cart .wp-block-woocommerce-cart { font-family: inherit; }
.ts-cart .wc-block-cart__main { min-width: 0; padding: 24px; border-radius: 22px; background: #fff; }
.ts-cart .wc-block-cart__sidebar { padding: 24px; border-radius: 22px; background: #fff; }
.ts-cart .wc-block-components-sidebar-layout { gap: 24px; flex-wrap: nowrap; align-items: flex-start; }
.ts-cart .wc-block-components-sidebar-layout .wc-block-components-main { width: calc(100% - 356px); }
.ts-cart .wc-block-components-sidebar-layout .wc-block-components-sidebar { width: 332px; }
.ts-cart .wc-block-cart-items { display: table; overflow: visible; }
.ts-cart .wc-block-cart-items__row { border-color: #eee; }
.ts-cart .wc-block-cart-item__image img { border: 1px solid #eee; border-radius: 12px; object-fit: contain; }
.ts-cart .wc-block-components-product-name { color: #292929; font-size: 15px; font-weight: 700; text-decoration: none; }
.ts-cart .wc-block-components-quantity-selector { border-radius: 10px; border-color: #e2e2e2; background: #fafafa; }
.ts-cart .wc-block-cart-item__remove-link { color: #d81022; font-size: 12px; }
.ts-cart .wc-block-components-totals-wrapper { border-color: #eee; }
.ts-cart .wc-block-cart__submit-button, .ts-cart .wc-block-components-button:not(.is-link) { min-height: 50px; background: #ed1024; color: #fff; border-radius: 12px; text-decoration: none; }
.ts-cart .wc-block-components-totals-footer-item { font-size: 18px; font-weight: 800; }
.ts-cart .wp-block-woocommerce-empty-cart-block { padding: clamp(30px, 5vw, 60px); border-radius: 24px; background: #fff; }
.ts-cart a:focus-visible, .ts-cart button:focus-visible, .ts-cart input:focus-visible, .ts-cart select:focus-visible { outline: 3px solid #ed1024; outline-offset: 3px; }
@media (max-width: 1100px) {
 .ts-cart .woocommerce .woocommerce-cart-form, .ts-cart .woocommerce .cart-collaterals { float: none; width: 100%; }
 .ts-cart .woocommerce .cart-collaterals { margin-block-start: 24px; }
 .ts-cart .wc-block-components-sidebar-layout { flex-wrap: wrap; }
 .ts-cart .wc-block-components-sidebar-layout .wc-block-components-main, .ts-cart .wc-block-components-sidebar-layout .wc-block-components-sidebar { width: 100%; }
}
@media (max-width: 900px) {
 .ts-cart .woocommerce table.cart, .ts-cart .woocommerce table.cart tbody { display: block; }
 .ts-cart .woocommerce table.cart thead { display: none; }
 .ts-cart .woocommerce table.cart tr.cart_item { position: relative; display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 10px 16px; padding-block: 22px; border-block-end: 1px solid #eee; background: transparent; }
 .ts-cart .woocommerce table.cart tr.cart_item td { display: block; width: auto; max-width: none; min-width: 0; padding: 0; border: 0; background: transparent; text-align: right !important; }
 .ts-cart .woocommerce table.cart tr.cart_item td.product-remove { position: absolute; left: 0; top: 22px; }
 .ts-cart .woocommerce table.cart tr.cart_item td.product-thumbnail { display: block; grid-column: 1; grid-row: 1 / 4; }
 .ts-cart .woocommerce table.cart tr.cart_item td.product-thumbnail img { width: 88px; height: 88px; }
 .ts-cart .woocommerce table.cart tr.cart_item td.product-name { grid-column: 2; padding-inline-end: 30px; }
 .ts-cart .woocommerce table.cart tr.cart_item td.product-price, .ts-cart .woocommerce table.cart tr.cart_item td.product-quantity { grid-column: 2; }
 .ts-cart .woocommerce table.cart tr.cart_item td.product-subtotal { display: flex; justify-content: space-between; grid-column: 1 / -1; border-block-start: 1px dashed #eee; padding-block-start: 12px; }
 .ts-cart .woocommerce table.cart td::before { float: none; }
 .ts-cart .woocommerce table.cart td.product-name::before, .ts-cart .woocommerce table.cart td.product-thumbnail::before, .ts-cart .woocommerce table.cart td.product-remove::before { display: none; }
 .ts-cart .woocommerce table.cart td.product-price::before, .ts-cart .woocommerce table.cart td.product-subtotal::before { content: attr(data-title); margin-inline-end: 10px; color: #777; font-weight: 400; }
 .ts-cart .woocommerce table.cart td.product-quantity::before { display: none; }
 .ts-cart .woocommerce table.cart tbody > tr:not(.cart_item) { display: block; }
 .ts-cart .woocommerce table.cart td.actions { display: flow-root; }
}
@media (max-width: 600px) {
 .ts-cart { width: calc(100% - 32px); padding-block-start: 18px; }
 .ts-cart__header { flex-direction: column; align-items: flex-start; gap: 18px; }
 .ts-cart__steps { gap: 14px; padding: 18px 12px; justify-content: space-between; }
 .ts-cart__steps li { font-size: 11px; gap: 6px; }
 .ts-cart__steps span { width: 24px; height: 24px; font-size: 11px; }
 .ts-cart .woocommerce .woocommerce-cart-form, .ts-cart .woocommerce .cart-collaterals .cart_totals { padding: 20px 16px; border-radius: 18px; }
 .ts-cart .woocommerce table.cart td.actions .coupon { float: none; display: grid; grid-template-columns: minmax(0, 1fr) auto; width: 100%; margin-block-end: 12px; }
 .ts-cart .woocommerce table.cart td.actions .coupon .input-text { width: 100%; min-width: 0; }
 .ts-cart .woocommerce button[name="update_cart"] { float: none; width: 100%; }
 .ts-cart .woocommerce .cart_totals table.shop_table_responsive tr { display: table-row; }
 .ts-cart .woocommerce .cart_totals table.shop_table_responsive th, .ts-cart .woocommerce .cart_totals table.shop_table_responsive td { display: table-cell; background: none; }
 .ts-cart .woocommerce .cart_totals table.shop_table_responsive td::before { display: none; }
 .ts-cart .wc-block-cart__main, .ts-cart .wc-block-cart__sidebar { padding: 18px 14px; }
 .ts-cart .wc-block-components-product-name { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .ts-cart *, .ts-cart *::before, .ts-cart *::after { scroll-behavior: auto !important; transition: none !important; } }

.ts-cart .woocommerce table.cart td.actions .coupon button.button { width: auto; float: none; margin: 0; }
