/* ==========================================================================
   TujjarCo Cart — styles the native WooCommerce cart. Place at:
   your-child-theme/assets/css/tujjarco-cart.css
   Scoped to body.tjc-cart-styled so it only touches the cart page.
   ========================================================================== */
body.tjc-cart-styled{
  --brand:#17A56B;--brand-deep:#0B6B4A;--brand-tint:#E7F6EF;--ink:#0C1613;--mist:#F4F7F5;
  --line:#E2E8E4;--text:#1A2420;--text-soft:#5C6B64;--amber:#B97A16;--amber-tint:#FBF1DE;--danger:#C23B3B;
  --fd:'Sora',sans-serif;--fb:'IBM Plex Sans',sans-serif;
}
.tjc-cart{font-family:var(--fb);color:var(--text)}
.tjc-cart *{box-sizing:border-box}
.tjc-cart-wrap{max-width:1240px;margin:0 auto;padding:0 24px}
.tjc-cart h2,.tjc-cart h3{font-family:var(--fd);color:var(--ink);font-weight:600}

/* WooCommerce prints notices above; give them a little room */
.tjc-cart-styled .woocommerce-notices-wrapper,
.tjc-cart-styled .woocommerce-message,
.tjc-cart-styled .woocommerce-info,
.tjc-cart-styled .woocommerce-error{margin-bottom:18px}

/* layout */
.tjc-cart-grid{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:30px;align-items:start;padding-bottom:70px}

/* ============================ ITEMS ============================ */
.tjc-cart-main{min-width:0}
.tjc-cart-table{width:100%;border-collapse:collapse;margin:0;background:none;border:0}
.tjc-cart-table thead th{font-family:var(--fd);font-size:11px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;
  color:var(--text-soft);text-align:start;padding:0 14px 12px;border-bottom:1px solid var(--line)}
.tjc-cart-table thead .product-price,.tjc-cart-table thead .product-quantity,.tjc-cart-table thead .product-subtotal{text-align:center}

.tjc-cart-table tbody td{padding:18px 14px;border-bottom:1px solid var(--line);vertical-align:middle;background:none}
.tjc-cart-table .cart_item:hover td{background:var(--mist)}

/* vendor group header row */
.tjc-cart-vendor-row td{padding:20px 14px 8px !important;border:0 !important;background:none !important}
.tjc-cart-vendor{display:inline-flex;align-items:center;gap:8px;font-size:13px;color:var(--text-soft)}
.tjc-cart-vendor svg{color:var(--brand)}
.tjc-cart-vendor a,.tjc-cart-vendor b{color:var(--brand-deep);font-weight:600}
.tjc-cart-vendor a:hover{text-decoration:underline}

/* thumbnail */
.tjc-cart-table .product-thumbnail{width:92px}
.tjc-cart-table .product-thumbnail img{width:82px;height:82px;object-fit:cover;border-radius:12px;border:1px solid var(--line);display:block}

/* name */
.tjc-cart-table .product-name{font-size:15px;font-weight:500}
.tjc-cart-table .product-name a{color:var(--ink);text-decoration:none;font-weight:600;font-family:var(--fd)}
.tjc-cart-table .product-name a:hover{color:var(--brand-deep)}
.tjc-cart-table .product-name .variation{margin:6px 0 0;font-size:12.5px;color:var(--text-soft)}
.tjc-cart-table .product-name .variation dt,.tjc-cart-table .product-name .variation dd{display:inline;margin:0}
.tjc-cart-table .backorder_notification{font-size:12px;color:var(--amber);margin:6px 0 0}

/* price / subtotal */
.tjc-cart-table .product-price,.tjc-cart-table .product-subtotal{text-align:center;font-size:14.5px;color:var(--text)}
.tjc-cart-table .product-subtotal{font-family:var(--fd);font-weight:700;color:var(--ink)}
.tjc-cart-table .product-price del,.tjc-cart-table .product-subtotal del{color:#9AAAA2;font-weight:400;font-size:12.5px}
.tjc-cart-table .product-price ins,.tjc-cart-table .product-subtotal ins{text-decoration:none}

/* quantity */
.tjc-cart-table .product-quantity{text-align:center}
.tjc-cart-table .quantity{display:inline-flex;align-items:stretch;border:1px solid var(--line);border-radius:10px;overflow:hidden}
.tjc-cart-table .quantity input.qty{width:50px;height:44px;border:0;text-align:center;font:inherit;font-size:14px;font-weight:600;-moz-appearance:textfield;background:#fff}
.tjc-cart-table .quantity input.qty::-webkit-outer-spin-button,
.tjc-cart-table .quantity input.qty::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.tjc-qty-btn{width:38px;border:0;background:var(--mist);color:var(--ink);font-size:18px;cursor:pointer;line-height:1;display:flex;align-items:center;justify-content:center;transition:background .15s}
.tjc-qty-btn:hover{background:var(--brand-tint);color:var(--brand-deep)}

/* remove */
.tjc-cart-table .product-remove{width:44px;text-align:center}
.tjc-cart-table .product-remove .remove{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;
  color:var(--text-soft);background:none;font-size:0;transition:all .15s}
.tjc-cart-table .product-remove .remove:hover{background:#FBE9E9;color:var(--danger)}
.tjc-cart-table .product-remove .remove svg{display:block}

/* actions row (coupon + update) */
.tjc-cart-table td.actions{padding:20px 0 0;border:0 !important;background:none !important}
.tjc-cart-table td.actions:hover{background:none !important}
.tjc-coupon{display:inline-flex;gap:8px;vertical-align:middle}
.tjc-coupon .input-text{height:46px;border:1px solid var(--line);border-radius:10px;padding:0 14px;font:inherit;font-size:14px;background:var(--mist);width:180px}
.tjc-coupon .input-text:focus{outline:none;border-color:var(--brand);background:#fff}
.tjc-cart .actions .button,
.tjc-cart .tjc-coupon .button{height:46px;border-radius:10px;padding:0 20px;font-family:var(--fb);font-weight:600;font-size:14px;cursor:pointer;border:1px solid var(--line);background:#fff;color:var(--ink);transition:all .15s}
.tjc-cart .tjc-coupon .button{background:var(--ink);border-color:var(--ink);color:#fff}
.tjc-cart .tjc-coupon .button:hover{background:#000}
.tjc-cart .tjc-update-cart{float:right;background:#fff}
.tjc-cart .tjc-update-cart:hover{border-color:var(--brand);color:var(--brand-deep);background:var(--brand-tint)}
.tjc-cart .tjc-update-cart[disabled]{opacity:.5;cursor:not-allowed}

/* cross-sells */
.tjc-cart .cross-sells{margin-top:40px}
.tjc-cart .cross-sells>h2{font-size:20px;margin:0 0 18px}

/* ============================ SUMMARY ============================ */
.tjc-cart-side{position:sticky;top:24px}
.tjc-cart-totals,.tjc-summary{background:#fff;border:1px solid var(--line);border-radius:16px;padding:22px}
.tjc-summary-title{font-size:18px;margin:0 0 16px}
.tjc-summary-table{width:100%;border-collapse:collapse;margin:0 0 6px;font-size:14px}
.tjc-summary-table th{text-align:start;font-weight:500;color:var(--text-soft);padding:11px 0;font-size:14px}
.tjc-summary-table td{text-align:end;padding:11px 0;font-weight:600;color:var(--ink)}
.tjc-summary-table tr{border-bottom:1px solid var(--line)}
.tjc-summary-table .order-total th{font-family:var(--fd);font-size:16px;color:var(--ink);font-weight:600}
.tjc-summary-table .order-total td{font-family:var(--fd);font-size:22px;color:var(--ink);font-weight:700}
.tjc-summary-table .order-total{border-bottom:0}
.tjc-summary-table .cart-discount td{color:var(--brand-deep)}
.tjc-summary-table .woocommerce-shipping-destination{font-size:12px;color:var(--text-soft);font-weight:400}
.tjc-summary-table .shipping-calculator-button{color:var(--brand-deep)}
.tjc-summary-table .shipping ul{margin:0;padding:0;list-style:none;text-align:end}
.tjc-summary-table .shipping ul li{margin:4px 0;font-weight:500}

/* checkout + B2BKing quote buttons */
.tjc-checkout-actions{margin-top:18px;display:flex;flex-direction:column;gap:10px}
.tjc-cart .tjc-checkout-actions .checkout-button,
.tjc-cart .tjc-checkout-actions .button{display:flex;align-items:center;justify-content:center;width:100%;height:52px;border-radius:12px;
  font-family:var(--fb);font-weight:600;font-size:15px;text-decoration:none;transition:background .15s;border:1px solid transparent}
.tjc-cart .tjc-checkout-actions .checkout-button{background:var(--brand-deep);color:#fff;border-color:var(--brand-deep)}
.tjc-cart .tjc-checkout-actions .checkout-button:hover{background:#0A5C40}
/* any secondary button B2BKing adds (e.g. Request a quote) */
.tjc-cart .tjc-checkout-actions .button:not(.checkout-button){background:#fff;color:var(--ink);border-color:var(--line)}
.tjc-cart .tjc-checkout-actions .button:not(.checkout-button):hover{border-color:var(--brand);color:var(--brand-deep);background:var(--brand-tint)}

/* trust list */
.tjc-cart-trust{list-style:none;margin:18px 0 0;padding:0;display:flex;flex-direction:column;gap:10px}
.tjc-cart-trust li{display:flex;align-items:center;gap:9px;font-size:12.5px;color:var(--text-soft)}
.tjc-cart-trust svg{color:var(--brand);flex:none}

/* ============================ EMPTY ============================ */
.tjc-cart-empty{max-width:520px;margin:40px auto 70px;text-align:center;padding:0 24px}
.tjc-cart-empty svg{color:#C6D2CB;margin-bottom:18px}
.tjc-cart-empty h2{font-size:24px;margin:0 0 8px}
.tjc-cart-empty p{color:var(--text-soft);font-size:15px;line-height:1.6;margin:0 0 22px}
.tjc-cart-empty-btn{display:inline-flex;align-items:center;justify-content:center;height:50px;padding:0 26px;border-radius:12px;
  background:var(--brand-deep);color:#fff;font-family:var(--fb);font-weight:600;font-size:15px;text-decoration:none;transition:background .15s}
.tjc-cart-empty-btn:hover{background:#0A5C40;color:#fff}

/* ============================ RESPONSIVE ============================ */
@media(max-width:980px){
  .tjc-cart-grid{grid-template-columns:1fr;gap:24px}
  .tjc-cart-side{position:static}
}
@media(max-width:600px){
  .tjc-cart-wrap{padding:0 16px}
  /* stack each cart row into a card (uses WooCommerce responsive markup) */
  .tjc-cart-table thead{display:none}
  .tjc-cart-table,.tjc-cart-table tbody,.tjc-cart-table tr,.tjc-cart-table td{display:block;width:100%}
  .tjc-cart-table .cart_item{position:relative;border:1px solid var(--line);border-radius:14px;padding:14px;margin-bottom:12px}
  .tjc-cart-table .cart_item td{border:0;padding:6px 0;text-align:start !important}
  .tjc-cart-table .cart_item .product-thumbnail{width:auto}
  .tjc-cart-table .cart_item .product-thumbnail img{width:120px;height:120px}
  .tjc-cart-table .cart_item td::before{content:attr(data-title);font-size:11px;letter-spacing:.04em;text-transform:uppercase;color:var(--text-soft);font-weight:600;display:block;margin-bottom:3px}
  .tjc-cart-table .cart_item .product-thumbnail::before{display:none}
  .tjc-cart-table .product-remove{position:absolute;top:12px;inset-inline-end:12px;width:auto}
  .tjc-cart-table .product-remove::before{display:none}
  .tjc-cart-table td.actions{padding-top:8px}
  .tjc-cart .tjc-update-cart{float:none;width:100%;margin-top:10px}
  .tjc-coupon{width:100%}
  .tjc-coupon .input-text{flex:1;width:auto}
}
@media(prefers-reduced-motion:reduce){.tjc-cart *{transition:none !important}}
