/* Cart (/shop/cart). Prefix: cart- */
.cart-container { max-width: var(--max-width); margin: 0 auto; padding: clamp(24px, 4vw, 48px) var(--gutter) clamp(56px, 8vw, 96px); overflow-x: clip; }

/* Step indicator (shared look with checkout) */
.cart-steps { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 0 auto clamp(24px, 4vw, 40px); flex-wrap: wrap; font-size: .9rem; font-weight: 600; color: var(--color-text-dim); }
.cart-steps li { display: inline-flex; align-items: center; gap: 8px; }
.cart-steps li + li::before { content: ''; width: clamp(20px, 6vw, 56px); height: 2px; background: var(--color-border); margin-right: 8px; }
.cart-steps span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--color-border); background: #fff; font-size: .8rem; }
.cart-stepOn { color: var(--color-ink); }
.cart-stepOn span { background: var(--color-brand); border-color: var(--color-brand); color: #fff; }

.cart-title { display: flex; align-items: center; justify-content: center; gap: 12px; text-align: center; font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin-bottom: 8px; }
.cart-title svg { color: var(--color-gold); flex: none; }
.cart-subtitle { text-align: center; max-width: 640px; margin: 0 auto clamp(24px, 4vw, 40px); }

.cart-emptyCart { max-width: 520px; margin: 0 auto; text-align: center; padding: 48px 24px; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.cart-emptyIcon { display: flex; justify-content: center; margin-bottom: 12px; color: var(--color-border-hover); }
.cart-emptyCart p { margin: 8px 0 22px; }
.cart-shopBtn, .cart-checkoutBtn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 28px; border-radius: 999px; background: var(--color-brand); color: #fff; font-weight: 600; text-align: center; box-shadow: var(--shadow-purple); line-height: 1.3; }
.cart-shopBtn:hover, .cart-checkoutBtn:hover { background: var(--color-brand-2); transform: translateY(-2px); }

.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.cart-itemsList { display: flex; flex-direction: column; gap: 14px; }
.cart-cartRow { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 16px 20px; align-items: center; padding: 16px; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.cart-itemImg { width: 96px; height: 96px; object-fit: cover; border-radius: var(--radius-sm); background: var(--color-bg-2); }
.cart-itemInfo { min-width: 0; }
.cart-itemTitle { font-family: var(--font-body); font-size: 1rem; font-weight: 600; line-height: 1.35; margin-bottom: 4px; overflow-wrap: anywhere; }
.cart-itemTitle a:hover { color: var(--color-gold-dark); }
.cart-itemSpec { font-size: .83rem; color: var(--color-text-muted); }
.cart-itemPrice { font-weight: 600; color: var(--color-ink); margin-top: 4px; }
.cart-cartRowControls { display: flex; align-items: center; gap: 14px; }
.cart-qtyControls { display: inline-flex; align-items: center; border: 1.5px solid var(--color-border); border-radius: 999px; overflow: hidden; background: #fff; }
.cart-qtyBtn { width: 44px; height: 44px; border: 0; background: transparent; font-size: 1.15rem; color: var(--color-ink); }
.cart-qtyBtn:hover { background: var(--color-bg-2); }
.cart-qtyNum { min-width: 28px; text-align: center; font-weight: 600; }
.cart-rowTotal { min-width: 84px; text-align: right; font-weight: 700; font-size: 1.05rem; color: var(--color-ink); }
.cart-removeBtn { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--color-danger); }
.cart-removeBtn:hover { background: rgba(192,57,43,.08); }

.cart-footerRow { position: sticky; top: calc(var(--header-offset) + 20px); display: flex; flex-direction: column; gap: 16px; padding: 24px; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.cart-subtotalText { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-weight: 600; color: var(--color-ink); padding-bottom: 16px; border-bottom: 1px solid var(--color-border); }
.cart-subtotalText strong { font-size: 1.5rem; }
.cart-footerActions { display: flex; flex-direction: column; gap: 6px; }
.cart-footerActions .cart-checkoutBtn { width: 100%; }
.cart-continueLink { display: flex; align-items: center; justify-content: center; min-height: 44px; font-weight: 600; color: var(--color-brand); }
.cart-continueLink:hover { color: var(--color-gold-dark); text-decoration: underline; }
.cart-trust { display: grid; gap: 8px; padding-top: 14px; border-top: 1px solid var(--color-border); font-size: .85rem; color: var(--color-text-muted); }
.cart-trust li { display: flex; align-items: center; gap: 8px; }
.cart-trust svg { flex: none; color: var(--color-success); }
.cart-noscript { text-align: center; }

@media (max-width: 960px) {
  .cart-layout { grid-template-columns: minmax(0, 1fr); }
  .cart-footerRow { position: static; }
}
@media (max-width: 600px) {
  .cart-cartRow { grid-template-columns: 76px minmax(0, 1fr); padding: 14px; gap: 12px; }
  .cart-itemImg { width: 76px; height: 76px; }
  .cart-cartRowControls { grid-column: 1 / -1; justify-content: space-between; padding-top: 12px; border-top: 1px dashed var(--color-border); }
  .cart-rowTotal { flex: 1; text-align: right; }
  .cart-steps { font-size: .82rem; }
}
@media (max-width: 520px) {
  .cart-steps { flex-wrap: nowrap; gap: 14px; justify-content: space-between; font-size: .78rem; }
  .cart-steps li { flex-direction: column; gap: 4px; text-align: center; flex: 1; }
  .cart-steps li + li::before { display: none; }
}
