.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(61,10,46,.45);
  z-index: 1100;
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
  backdrop-filter: blur(2px);
}
.cart-overlay.open { opacity: 1; pointer-events: all; }

.cart-sidebar {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: var(--cart-w);
  max-width: 95vw;
  background: var(--surface);
  z-index: 1101;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.cart-sidebar.open { transform: translateX(0); }

.cart-header {
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.cart-header h5 {
  font-family: var(--font); font-weight: 700; font-size: 1.05rem;
  display: flex; align-items: center; gap: 10px;
}
.cart-close {
  width: 34px; height: 34px;
  border: 1.5px solid var(--border); border-radius: 8px;
  background: none; cursor: pointer; color: var(--text);
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.cart-close:hover { border-color: var(--danger); color: var(--danger); }

.cart-body { flex: 1; overflow-y: auto; padding: 16px; }

.cart-empty {
  text-align: center; padding: 60px 20px; color: var(--muted);
}
.cart-empty i { font-size: 3rem; margin-bottom: 16px; opacity: .25; display: block; color: var(--brand); }

.cart-item {
  display: flex; gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item-img {
  width: 64px; height: 64px; min-width: 64px;
  background: linear-gradient(135deg,#FFF0F6,#FFE0EF);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-weight: 700; font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; }
.cart-item-cat { font-size: .75rem; color: var(--muted); margin-bottom: 8px; text-transform: capitalize; }

.cart-qty { display: flex; align-items: center; gap: 8px; }
.qty-btn {
  width: 26px; height: 26px;
  border: 1.5px solid var(--border); border-radius: 6px;
  background: none; cursor: pointer; color: var(--text);
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; transition: all .15s;
}
.qty-btn:hover { border-color: var(--brand); color: var(--brand); }
.qty-val { font-weight: 700; font-size: .9rem; min-width: 20px; text-align: center; }

.cart-item-right {
  display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between;
}
.cart-item-price { font-family: var(--font); font-weight: 700; font-size: .95rem; }
.btn-remove {
  background: none; border: none; color: var(--muted);
  cursor: pointer; font-size: .85rem; padding: 4px; transition: color .15s;
}
.btn-remove:hover { color: var(--danger); }

.cart-footer { padding: 16px 20px; border-top: 1px solid var(--border); }
.cart-subtotal { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.cart-subtotal span { color: var(--muted); font-size: .88rem; }
.cart-subtotal strong { font-family: var(--font); font-size: 1rem; }
.cart-total {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px; padding-top: 10px; border-top: 1px solid var(--border);
}
.cart-total span { font-family: var(--font); font-weight: 600; }
.cart-total strong { font-family: var(--font); font-weight: 800; font-size: 1.25rem; color: var(--brand); }

.btn-checkout {
  width: 100%; height: 48px;
  background: var(--brand); color: #fff;
  border: none; border-radius: 12px;
  font-family: var(--font-body); font-weight: 700; font-size: .95rem;
  cursor: pointer; transition: all .2s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-checkout:hover { background: var(--brand-dark); }
.btn-continue {
  width: 100%; height: 40px; margin-top: 8px;
  background: none; color: var(--muted);
  border: 1.5px solid var(--border); border-radius: 12px;
  font-size: .85rem; cursor: pointer; transition: all .15s;
}
.btn-continue:hover { border-color: var(--brand); color: var(--brand); }
