/* ═══════════════════════════════════════════════════
   CART PAGE  ·  Maximus 3D Printing
   Page-specific styles — loaded after style.css
   ═══════════════════════════════════════════════════ */

.cp-header {
  background: var(--off);
  padding: clamp(36px, 6vw, 56px) 0 36px;
}
.cp-crumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--fb);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--blue);
  margin-bottom: 20px;
  transition: gap 0.2s;
}
.cp-crumb:hover { gap: 12px; }
.cp-header h1 { margin-bottom: 8px; }
.cp-header-desc { font-size: 0.95rem; font-weight: 600; color: var(--muted-text); }

.cp-main { background: var(--white); padding: 48px 0 64px; }

.cp-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}

/* ── Item list ────────────────────────────────────── */
.cp-items { display: flex; flex-direction: column; gap: 16px; }

.cp-item {
  display: flex;
  gap: 18px;
  padding: 18px;
  background: var(--off);
  border-radius: var(--r24);
  border: 1.5px solid rgba(var(--navy-rgb),0.06);
}
.cp-item img {
  width: 96px; height: 96px;
  border-radius: 16px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--white);
}
.cp-item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.cp-item-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.cp-item-top h3 {
  font-family: var(--fd);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 3px;
}
.cp-item-meta {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted-text);
}
.cp-remove {
  background: none; border: none; cursor: pointer;
  color: var(--muted-text);
  padding: 4px;
  flex-shrink: 0;
  transition: color 0.2s;
}
.cp-remove:hover { color: #d64545; }

.cp-item-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.cp-qty {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border-radius: var(--pill);
  padding: 4px;
  border: 1.5px solid rgba(var(--navy-rgb),0.08);
}
.cp-qty button {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: none;
  background: var(--off);
  color: var(--navy);
  font-weight: 800;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.cp-qty button:hover { background: var(--navy); color: var(--yellow); }
.cp-qty span { min-width: 22px; text-align: center; font-family: var(--fd); font-weight: 800; color: var(--navy); font-size: 0.9rem; }

.cp-item-price { display: flex; align-items: baseline; gap: 8px; }
.cp-item-unit { font-size: 0.75rem; color: var(--muted-text); }
.cp-item-price strong { font-family: var(--fd); font-weight: 800; font-size: 1.15rem; color: var(--navy); }

/* ── Summary sidebar ──────────────────────────────── */
.cp-summary {
  position: sticky;
  top: 100px;
  background: var(--off);
  border-radius: var(--r24);
  padding: 28px 26px;
}
.cp-summary h2 {
  font-family: var(--fd);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 18px;
}
.cp-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted-text);
  padding: 8px 0;
}
.cp-summary-total {
  border-top: 1.5px solid rgba(var(--navy-rgb),0.1);
  margin-top: 6px;
  padding-top: 14px;
}
.cp-summary-total strong { font-family: var(--fd); font-weight: 800; font-size: 1.4rem; color: var(--navy); }
.cp-summary-note {
  font-size: 0.76rem;
  color: var(--muted-text);
  line-height: 1.55;
  margin: 12px 0 18px;
}
.cp-checkout-btn { width: 100%; margin-bottom: 12px; }
.cp-continue {
  display: block;
  text-align: center;
  font-family: var(--fb);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--blue);
  padding: 8px 0;
}
.cp-continue:hover { text-decoration: underline; }
.cp-summary-trust {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1.5px solid rgba(var(--navy-rgb),0.1);
}
.cp-summary-trust span { font-size: 0.76rem; font-weight: 600; color: var(--muted-text); }

/* ── Empty state ──────────────────────────────────── */
.cp-empty {
  text-align: center;
  padding: 64px 24px;
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.cp-empty svg { color: rgba(var(--navy-rgb),0.15); margin-bottom: 6px; }
.cp-empty h2 { font-family: var(--fd); font-weight: 800; font-size: 1.5rem; color: var(--navy); }
.cp-empty p { font-size: 0.95rem; color: var(--muted-text); line-height: 1.6; margin-bottom: 6px; }

/* ── Suggestions ──────────────────────────────────── */
.cp-suggest { background: var(--off); padding: 64px 0 80px; border-top: 1px solid rgba(var(--navy-rgb),0.07); }
.cp-suggest-header { margin-bottom: 30px; }

/* ════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .cp-layout { grid-template-columns: 1fr; }
  .cp-summary { position: static; }
}
@media (max-width: 560px) {
  .cp-item { flex-direction: column; }
  .cp-item img { width: 100%; height: 160px; }
}
