/* pages/cart.css — /cart page only. Split out of the old single style.css
   (2026-09-26). */

/* ---- Cart ---- */
.cart-items{ display:flex; flex-direction:column; gap:1px; background:var(--line); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow-xs); }
.cart-row{ display:grid; grid-template-columns:64px 1fr auto auto auto; align-items:center; gap:14px; background:var(--surface); padding:12px 16px; }
.cart-thumb{ width:56px; height:56px; border-radius:6px; overflow:hidden; background:var(--paper); flex-shrink:0; }
.cart-thumb img{ width:100%; height:100%; object-fit:cover; }
.cart-info{ display:flex; flex-direction:column; gap:3px; min-width:0; }
.cart-title{ font-weight:600; font-size:14px; }
.cart-unit-price{ font-size:12px; color:var(--muted); }
.cart-qty{ display:flex; align-items:center; gap:8px; }
.qty-btn{ width:26px; height:26px; border-radius:6px; border:1px solid var(--line-strong); background:var(--surface); cursor:pointer; font-size:15px; line-height:1; display:flex; align-items:center; justify-content:center; }
.qty-btn:hover{ border-color:var(--brand); color:var(--brand-ink); }
.qty-val{ min-width:18px; text-align:center; font-weight:600; font-size:13.5px; }
.cart-line-total{ font-weight:700; color:var(--brand-ink); font-size:14px; white-space:nowrap; }
.cart-remove{ background:none; border:none; color:var(--muted); cursor:pointer; font-size:14px; padding:4px; }
.cart-remove:hover{ color:var(--danger); }
.cart-summary{ background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:20px; box-shadow:var(--shadow); }
.cart-summary-row{ display:flex; justify-content:space-between; font-size:13.5px; padding:6px 0; }
.cart-summary-total{ font-weight:700; font-size:16px; border-top:1px solid var(--line); margin-top:4px; padding-top:12px; }
@media (max-width:640px){
  .cart-row{ grid-template-columns:48px 1fr; grid-template-areas:"thumb info" "qty qty" "total remove"; row-gap:8px; }
  .cart-thumb{ grid-area:thumb; width:48px; height:48px; }
  .cart-info{ grid-area:info; }
  .cart-qty{ grid-area:qty; }
  .cart-line-total{ grid-area:total; }
  .cart-remove{ grid-area:remove; justify-self:end; }
}

