/* Cart (WooCommerce cart structure; filled state inferred, empty state from template) */
.cart { padding: 60px 0 80px; }
.cart__layout { display: grid; gap: 40px; }
@media (min-width: 1024px) { .cart__layout { grid-template-columns: 1fr 380px; align-items: start; } }
.cart-table { width: 100%; }
.cart-table th { padding: 0 10px 16px; border-bottom: 1px solid var(--color-line); font-size: 0.8125rem; font-weight: 600; text-align: left; color: var(--color-heading); }
.cart-table td { padding: 20px 10px; border-bottom: 1px solid var(--color-line); vertical-align: middle; }
.cart-item__book { display: flex; align-items: center; gap: 16px; }
.cart-item__cover { width: 70px; flex: none; border-radius: var(--radius-sm); }
.cart-item__title { font-size: 0.875rem; letter-spacing: 0; }
.cart-item__author { font-size: var(--fs-small); color: var(--color-muted); }
.cart-item__remove { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--color-soft); color: var(--color-heading); }
.cart-item__remove .icon { width: 14px; height: 14px; }
.cart-item__price, .cart-item__subtotal { font-weight: 600; color: var(--color-heading); }
@media (hover: hover) { .cart-item__remove:hover { background: var(--color-primary); color: #fff; } }
@media (max-width: 767px) {
  .cart-table thead { display: none; }
  .cart-table tr { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 20px 0; border-bottom: 1px solid var(--color-line); }
  .cart-table td { padding: 0; border: 0; }
  .cart-table td[data-label]::before { content: attr(data-label) ": "; font-size: var(--fs-small); color: var(--color-muted); }
  .cart-table .cart-item__cell-book { grid-column: 1 / -1; }
}
.cart__actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; margin-top: 24px; }
.coupon { display: flex; gap: 10px; flex-wrap: wrap; }
.coupon .field__input { width: 220px; }
.totals { padding: 30px; border-radius: var(--radius-lg); background: var(--color-soft); }
.totals__title { margin-bottom: 16px; font-size: 1.25rem; }
.totals__row { display: flex; justify-content: space-between; gap: 10px; padding: 14px 0; border-bottom: 1px solid #dcdde3; font-size: 0.8125rem; }
.totals__row strong { font-weight: 600; color: var(--color-heading); }
.totals__row--total strong { font-size: 1.25rem; color: var(--color-primary); }
.totals .btn { margin-top: 24px; }
.cart-empty { display: grid; justify-items: center; gap: 20px; padding: 40px 0; text-align: center; }
.cart-empty .icon { width: 110px; height: 110px; color: #999; stroke-width: 1; }
.cart-empty[hidden], .cart__layout[hidden] { display: none; }
.checkout__note { font-size: var(--fs-small); color: var(--color-muted); }
.checkout__note--spaced { margin-top: 14px; }
.totals__row[hidden] { display: none; }
