/* ═══ CART PAGE — assets/css/cart.css ═══ */

.cart-page { padding: 48px 0 80px; }

/* Empty state */
.empty-cart-state { text-align: center; padding: 80px 20px; }
.empty-cart-state svg { width: 64px; height: 64px; color: var(--border); margin-bottom: 20px; }
.empty-cart-state h2 { font-family: var(--serif); font-size: 1.8rem; font-weight: 400; margin-bottom: 10px; }
.empty-cart-state p { font-size: 14px; color: var(--mid); margin-bottom: 28px; }

/* Grid */
.cart-grid { display: grid; grid-template-columns: 1fr 400px; gap: 40px; align-items: start; }

/* Items wrapper */
.cart-items-wrap { background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); }
.cart-items-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; border-bottom: 1px solid var(--border); }
.cart-items-title { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mid); }

/* Single item */
.cart-item { display: flex; gap: 20px; padding: 24px; border-bottom: 1px solid var(--border); transition: background .2s; }
.cart-item:last-child { border-bottom: none; }
.cart-item:hover { background: var(--light-bg); }
.cart-item-img { width: 100px; flex-shrink: 0; }
.cart-item-img img { width: 100%; aspect-ratio: 3/4; object-fit: cover; background: var(--light-bg); }
.cart-item-info { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.cart-item-brand { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.cart-item-name { font-size: 15px; font-weight: 500; color: var(--black); margin-bottom: 6px; line-height: 1.3; }
.cart-item-name a:hover { color: var(--accent); }
.cart-item-meta { display: flex; gap: 12px; font-size: 12px; color: var(--mid); margin-bottom: auto; padding-bottom: 12px; }
.cart-item-meta span { background: var(--light-bg); padding: 3px 10px; border-radius: 4px; font-weight: 500; }
.cart-item-bottom { display: flex; align-items: center; gap: 16px; margin-top: 8px; }

/* Quantity control */
.qty-ctrl { display: flex; align-items: center; border: 1.5px solid var(--border); border-radius: var(--r-sm); overflow: hidden; flex-shrink: 0; }
.qty-ctrl button { width: 36px; height: 38px; border: none; background: none; font-size: 16px; cursor: pointer; color: var(--dark); transition: background .2s; display: flex; align-items: center; justify-content: center; font-family: var(--sans); }
.qty-ctrl button:hover:not(:disabled) { background: var(--light-bg); }
.qty-ctrl button:disabled { opacity: .3; cursor: not-allowed; }
.qty-ctrl input { width: 40px; height: 38px; border: none; border-left: 1px solid var(--border); border-right: 1px solid var(--border); text-align: center; font-size: 14px; font-weight: 700; font-family: var(--sans); -moz-appearance: textfield; }
.qty-ctrl input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* Price in item */
.cart-item-price { margin-left: auto; text-align: right; }
.cart-item-price .price-old { font-size: 12px; color: var(--light-mid); text-decoration: line-through; }
.cart-item-price .price { font-size: 16px; font-weight: 700; color: var(--black); font-family: var(--serif); }

/* Remove button */
.cart-item-remove { width: 36px; height: 36px; border-radius: 50%; border: none; background: none; cursor: pointer; color: var(--light-mid); display: flex; align-items: center; justify-content: center; transition: all .2s; flex-shrink: 0; }
.cart-item-remove svg { width: 18px; height: 18px; }
.cart-item-remove:hover { background: #fdecea; color: var(--danger); }

/* Summary column */
.cart-summary-col { position: sticky; top: 88px; }
.cart-summary { background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); padding: 28px; }
.cart-summary-title { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mid); margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }

/* Coupon */
.cart-coupon { margin-bottom: 20px; }
.cart-coupon label { font-size: 12px; font-weight: 600; color: var(--dark); display: block; margin-bottom: 8px; }
.cart-coupon-row { display: flex; gap: 0; }
.cart-coupon-row input { flex: 1; padding: 10px 14px; border: 1.5px solid var(--border); border-right: none; border-radius: var(--r-sm) 0 0 var(--r-sm); font-size: 13px; font-family: var(--sans); }
.cart-coupon-row input:focus { outline: none; border-color: var(--black); }
.cart-coupon-row button { padding: 0 20px; background: var(--black); color: #fff; border: none; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; border-radius: 0 var(--r-sm) var(--r-sm) 0; transition: background .2s; font-family: var(--sans); white-space: nowrap; }
.cart-coupon-row button:hover { background: var(--off-black); }
.coupon-msg { font-size: 12px; margin-top: 8px; font-weight: 600; }
.coupon-msg.ok { color: #2e7d32; }
.coupon-msg.err { color: var(--danger); }

/* Free shipping bar */
.free-ship-bar { margin-bottom: 20px; padding: 14px 16px; background: linear-gradient(135deg, #fff8e1, #fff3e0); border-radius: var(--r-sm); border: 1px solid #ffe082; }
.free-ship-text { font-size: 12.5px; font-weight: 600; color: #6d4c00; margin-bottom: 8px; }
.free-ship-progress { height: 6px; background: rgba(0,0,0,.08); border-radius: 3px; overflow: hidden; }
.free-ship-fill { height: 100%; background: linear-gradient(90deg, var(--accent), #e65100); border-radius: 3px; transition: width .6s ease; }

/* Price rows */
.price-rows { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; border-top: 1px solid var(--border); margin-bottom: 20px; }
.price-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--dark); }
.price-row.discount { color: #2e7d32; }
.price-row.total { padding-top: 14px; border-top: 2px solid var(--black); font-size: 18px; font-weight: 700; color: var(--black); font-family: var(--serif); }

/* Checkout button */
.cart-checkout-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 54px; background: var(--black); color: #fff; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; transition: all .3s; border-radius: var(--r-sm); font-family: var(--sans); }
.cart-checkout-btn:hover { background: var(--off-black); gap: 14px; }
.cart-checkout-btn svg { width: 18px; height: 18px; transition: transform .3s; }
.cart-checkout-btn:hover svg { transform: translateX(3px); }

/* Security row */
.security-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.security-row span { display: flex; align-items: center; gap: 5px; font-size: 10.5px; color: var(--mid); font-weight: 500; }
.security-row svg { width: 13px; height: 13px; }

/* Responsive */
@media (max-width: 900px) {
  .cart-grid { grid-template-columns: 1fr; gap: 24px; }
  .cart-summary-col { position: static; }
}
@media (max-width: 600px) {
  .cart-item { gap: 14px; padding: 16px; }
  .cart-item-img { width: 80px; }
  .cart-item-bottom { flex-wrap: wrap; gap: 10px; }
  .cart-item-name { font-size: 14px; }
}
