/*
  cart.css — cart page, slide-out mini-cart drawer, checkout layout.
  WP PORTING NOTE: #mini-cart-drawer mirrors the structure WooCommerce
  blocks (Cart Panel) use, so the drawer markup can become a template part.
*/

/* ── Mini-cart drawer (all pages) ── */
.cart-drawer-overlay { position: fixed; inset: 0; background: rgba(10,20,10,.45); z-index: 2100; opacity: 0; pointer-events: none; transition: opacity var(--dur-mid) var(--ease); }
.cart-drawer-overlay.open { opacity: 1; pointer-events: auto; }
.cart-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); background: var(--white); z-index: 2200; transform: translateX(100%); transition: transform var(--dur-mid) var(--ease); display: flex; flex-direction: column; box-shadow: -20px 0 60px rgba(0,0,0,.15); }
.cart-drawer.open { transform: translateX(0); }
.cart-drawer-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.cart-drawer-header h3 { font-family: var(--font-head); font-size: 20px; text-transform: uppercase; }
.cart-drawer-close { width: 36px; height: 36px; border-radius: 8px; border: none; background: var(--soft); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.cart-drawer-items { flex: 1; overflow-y: auto; padding: 16px 24px; display: flex; flex-direction: column; gap: 16px; }
.cart-drawer-footer { padding: 20px 24px; border-top: 1px solid var(--border); }
.cart-drawer-subtotal { display: flex; justify-content: space-between; font-size: 15px; font-weight: 700; margin-bottom: 16px; }

.cart-line-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; }
.cart-line-thumb { width: 64px; height: 64px; border-radius: 8px; background: var(--charcoal); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cart-line-info { min-width: 0; }
.cart-line-name { font-size: 14px; font-weight: 600; margin-bottom: 4px; display: block; text-decoration: none; color: var(--ink); }
.cart-line-price { font-size: 13px; color: var(--green); font-weight: 700; }
.cart-line-remove { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 12px; text-decoration: underline; margin-top: 4px; }
.cart-line-remove:hover { color: var(--danger); }

/* Theo yêu cầu client: bỏ hết CSS riêng cho Giỏ hàng/Thanh toán ở đây —
   phần dưới đây trước giờ dùng class tự đặt (.cart-table, .order-summary-
   card...) không khớp với class thật WooCommerce xuất ra
   ([woocommerce_cart]/[woocommerce_checkout] dùng .shop_table/#order_review),
   nên chưa từng thật sự chạy trên trang — dọn bỏ cho gọn code, không mất gì
   đang hoạt động. Khay giỏ hàng trượt (mini-cart, phần trên) vẫn giữ nguyên,
   không liên quan tới trang Giỏ hàng/Thanh toán.
*/
