/* ══════════════════════════════════════════
   CART DRAWER
   ══════════════════════════════════════════ */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  backdrop-filter: blur(4px);
}

.cart-overlay.open { opacity: 1; pointer-events: all; }

.cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 400px;
  max-width: 100vw;
  background: var(--bg-card);
  border-left: 1px solid var(--border-bright);
  z-index: 210;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
}

.cart-drawer.open { transform: translateX(0); }

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
}

.cart-title { font-size: 0.9375rem; font-weight: 600; color: var(--fg); letter-spacing: -0.01em; }

:root[data-theme="dark"] .cart-title { color: var(--white); }

.cart-close {
  width: 30px;
  height: 30px;
  border: 1px solid var(--border-bright);
  background: var(--bg-elevated);
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-muted);
  transition: all 0.15s;
}

.cart-close:hover { border-color: var(--accent); color: var(--accent-bright); }
.cart-close svg { width: 13px; height: 13px; }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--fg-subtle);
  font-size: 0.875rem;
  gap: 10px;
}

.cart-empty svg { width: 36px; height: 36px; opacity: 0.25; }

.cart-item {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: var(--bg-elevated);
  border-radius: 10px;
  border: 1px solid var(--border);
}

.cart-item-img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent-bright);
}

.cart-item-img svg { width: 20px; height: 20px; }
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 0.875rem; font-weight: 600; color: var(--fg); margin-bottom: 2px; }

:root[data-theme="dark"] .cart-item-name { color: var(--white); }

.cart-item-price { font-size: 0.8rem; color: var(--fg-muted); }

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.qty-btn {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  border: 1px solid var(--border-bright);
  background: var(--bg-card);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  color: var(--fg-muted);
  transition: all 0.15s;
}

.qty-btn:hover { border-color: var(--accent); color: var(--accent-bright); }

.qty-val {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fg);
  min-width: 20px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

:root[data-theme="dark"] .qty-val { color: var(--white); }

.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.cart-total-label { font-size: 0.8125rem; color: var(--fg-muted); }

.cart-total-value {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}

:root[data-theme="dark"] .cart-total-value { color: var(--white); }
