/* Quote cart sidebar — shared by shop + configurators */
:root {
  --bg-secondary: #111111;
  --bg-tertiary: #1a1a1a;
  --accent-primary: #ff4500;
  --accent-secondary: #ff6b35;
  --text-primary: #ffffff;
  --text-muted: #888888;
  --border: #2a2a2a;
  --radius-sm: 6px;
  --transition: 0.3s ease;
}
#cart-sidebar {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 400px;
  z-index: 1100;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -8px 0 40px rgba(0,0,0,0.5);
  color: var(--text-primary);
  font-family: 'DM Sans', system-ui, sans-serif;
}
#cart-sidebar.open { transform: translateX(0); }
.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 1090;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.cart-overlay.open { opacity: 1; pointer-events: all; }
.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.cart-header h3 { font-size: 1rem; margin: 0; }
.cart-close {
  background: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
}
.cart-close:hover { color: var(--text-primary); background: var(--bg-tertiary); }
.cart-items { flex: 1; overflow-y: auto; padding: 16px 24px; }
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  height: 200px;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
}
.cart-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item-img {
  width: 70px; height: 70px;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
  overflow: hidden;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 0.9rem; font-weight: 600; margin-bottom: 4px; }
.cart-item-desc { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 8px; word-break: break-word; }
.cart-item-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.cart-item-remove { background: none; color: var(--text-muted); font-size: 0.8rem; border: none; cursor: pointer; }
.cart-item-remove:hover { color: #ef4444; }
.qty-control { display: flex; align-items: center; gap: 8px; }
.qty-btn {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.qty-count { font-size: 0.85rem; font-weight: 600; min-width: 20px; text-align: center; }
.cart-footer { padding: 20px 24px; border-top: 1px solid var(--border); }
.cart-design-thumbs { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 8px; }
.cart-design-thumbs img {
  width: 40px; height: 40px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
}
.cart-design-more {
  width: 40px; height: 40px;
  border-radius: 6px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 700; color: var(--text-muted);
}
.cart-item-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-secondary);
  text-transform: uppercase;
}
.cart-quote-note { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 12px; line-height: 1.45; text-align: center; }
#cart-sidebar .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  text-decoration: none;
  border: none;
}
#cart-sidebar .btn-primary {
  background: linear-gradient(135deg, #ff4500, #ff6b35);
  color: #fff;
}
#cart-sidebar .btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.nav-cart-link[data-cart-count]::after {
  content: attr(data-cart-count);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  margin-left: 4px;
  border-radius: 999px;
  background: #ff4500;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
}
@media (max-width: 480px) { #cart-sidebar { width: 100%; } }
