/* ═══════════════════════════════════════════════════
   CART DRAWER
═══════════════════════════════════════════════════ */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,36,25,0.5);
  z-index: 350;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
  backdrop-filter: blur(2px);
}
.cart-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(440px, 100vw);
  background: var(--warm-white);
  z-index: 360;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
  box-shadow: -8px 0 40px rgba(15,36,25,0.2);
}
.cart-drawer.open {
  transform: translateX(0);
}
.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-5) var(--sp-6);
  border-bottom: 1px solid var(--border);
  background: white;
}
.cart-header h2 {
  font-family: var(--display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--forest);
}
.cart-drawer-close {
  width: 36px; height: 36px;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--ink-light);
  transition: all var(--dur);
}
.cart-drawer-close:hover {
  background: var(--forest);
  color: white;
  border-color: var(--forest);
}
.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--sp-4) var(--sp-6);
}
.cart-empty {
  text-align: center;
  padding: var(--sp-12) var(--sp-4);
}
.cart-empty-icon { font-size: 3rem; margin-bottom: var(--sp-4); }
.cart-empty p {
  font-size: var(--text-sm);
  color: var(--ink-light);
  line-height: 1.7;
  margin-bottom: var(--sp-5);
}
.cart-items {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.cart-item {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-4);
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  position: relative;
}
.cart-item-img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--r-sm);
  background: var(--cream);
  flex-shrink: 0;
}
.cart-item-img-placeholder {
  width: 80px;
  height: 60px;
  background: var(--cream);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-type {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 2px;
}
.cart-item-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--forest);
  margin-bottom: var(--sp-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-item-specs {
  font-size: var(--text-xs);
  color: var(--ink-light);
  margin-bottom: var(--sp-2);
}
.cart-item-price {
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--forest);
}
.cart-item-remove {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-3);
  color: var(--ink-light);
  font-size: 1rem;
  transition: color var(--dur);
  padding: 2px 6px;
}
.cart-item-remove:hover { color: #c0392b; }
.cart-footer {
  border-top: 1px solid var(--border);
  padding: var(--sp-5) var(--sp-6);
  background: white;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--forest);
}
#cartTotal {
  font-family: var(--display);
  font-size: var(--text-xl);
}
.cart-note {
  font-size: var(--text-xs);
  color: var(--ink-light);
  line-height: 1.6;
  font-style: italic;
}
