/* ── Reset & base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #f8f7f4;
  --surface:    #ffffff;
  --border:     #e7e5e4;
  --accent:     #ea580c;
  --accent-hov: #c2410c;
  --text:       #1c1917;
  --muted:      #78716c;
  --easy:       #16a34a;
  --risky:      #d97706;
  --impossible: #dc2626;
  --unknown:    #78716c;
  --radius:     12px;
  --shadow:     0 4px 24px rgba(0,0,0,.13);
  --hero-bg:    #1c1917;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* ── Navbar ───────────────────────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  height: 56px;
  display: flex;
  align-items: center;
}

.nav-inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--text);
}

.nav-logo-accent { color: var(--accent); }

.nav-cart {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--text);
  font-size: .9rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background .15s;
}
.nav-cart:hover { background: var(--border); }
.nav-cart svg { flex-shrink: 0; }

.nav-cart-badge {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  line-height: 1;
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  background: var(--hero-bg);
  background-image: radial-gradient(ellipse at 50% 0%, #2d1710 0%, var(--hero-bg) 65%);
  padding: 72px 16px 96px;
}

.hero-inner {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 24px;
}

.hero-text { text-align: center; }

.hero-title {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #fafaf9;
}

.hero-title span { color: var(--accent); }

.hero-sub {
  margin-top: 14px;
  font-size: 1.05rem;
  color: #a8a29e;
  line-height: 1.6;
}

/* ── Cards ────────────────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hidden { display: none !important; }

/* ── Upload card ──────────────────────────────────────────────────────────── */
.upload-card {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ── Drop zone ────────────────────────────────────────────────────────────── */
.drop-zone {
  border: 2px dashed var(--border);
  border-radius: 8px;
  padding: 36px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.drop-zone:hover,
.drop-zone.drag-over {
  border-color: var(--accent);
  background: #fff7ed;
}

.upload-icon {
  width: 40px;
  height: 40px;
  color: var(--accent);
  margin-bottom: 4px;
}

.drop-text  { font-weight: 600; }
.drop-sub   { font-size: .85rem; color: var(--muted); }

.upload-error {
  font-size: .85rem;
  color: var(--impossible);
  text-align: center;
  padding: 6px 0 0;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 13px 20px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, opacity .15s;
  white-space: nowrap;
}
.btn-primary:hover:not(:disabled) { background: var(--accent-hov); }
.btn-primary:disabled { opacity: .4; cursor: not-allowed; }

.btn-outline {
  background: none;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  border-radius: 8px;
  padding: 9px 18px;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.btn-outline:hover { background: #fff7ed; }

.btn-ghost {
  background: none;
  border: none;
  color: var(--muted);
  font-size: .9rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 4px;
}
.btn-ghost:hover { color: var(--text); }

/* ── Risk badges ──────────────────────────────────────────────────────────── */
.risk-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 700;
  font-size: .75rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  background: #f3f4f6;
  color: var(--unknown);
}
.risk-badge.easy       { background: #dcfce7; color: var(--easy); }
.risk-badge.risky      { background: #fef3c7; color: var(--risky); }
.risk-badge.impossible { background: #fee2e2; color: var(--impossible); }

/* ── Cart ─────────────────────────────────────────────────────────────────── */
.cart-section {
  padding: 0;
  overflow: hidden;
}

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

.cart-title {
  font-size: .95rem;
  font-weight: 700;
}

.cart-count {
  font-size: .82rem;
  color: var(--muted);
}

.cart-items {
  padding: 0 20px;
}

/* ── Cart item ────────────────────────────────────────────────────────────── */
.cart-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item:last-child { border-bottom: none; }

.cart-thumb {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--bg);
  display: block;
}

.cart-thumb--spin,
.cart-thumb--err {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.cart-thumb--spin { background: var(--bg); }
.cart-thumb--err  { background: #fee2e2; font-size: 1.4rem; }

/* small spinner for cart rows */
.spinner-sm {
  width: 22px;
  height: 22px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.cart-info {
  flex: 1;
  min-width: 0;
}

.cart-name {
  font-size: .88rem;
  font-weight: 600;
  word-break: break-all;
  line-height: 1.3;
}

.cart-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
  flex-wrap: wrap;
}

.cart-dims {
  font-size: .78rem;
  color: var(--muted);
}

.cart-status-text {
  font-size: .82rem;
  color: var(--muted);
  margin-top: 4px;
}
.cart-status-text--err { color: var(--impossible); }

.cart-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* quantity control */
.qty-wrap {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.qty-btn {
  background: none;
  border: none;
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-size: 1rem;
  color: var(--text);
  transition: background .1s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qty-btn:hover { background: var(--bg); }

.qty-val {
  font-size: .88rem;
  font-weight: 600;
  min-width: 26px;
  text-align: center;
  padding: 0 2px;
}

.cart-price {
  font-weight: 700;
  font-size: .95rem;
  min-width: 56px;
  text-align: right;
}

.cart-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: .85rem;
  padding: 4px 6px;
  border-radius: 4px;
  transition: background .1s, color .1s;
  line-height: 1;
}
.cart-remove:hover { color: var(--impossible); background: #fee2e2; }

/* ── Cart footer ──────────────────────────────────────────────────────────── */
.cart-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.cart-total-col {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.cart-total-label {
  font-size: .75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 500;
}

.cart-total-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
}

.btn-checkout {
  font-size: .95rem;
  padding: 12px 22px;
}

/* ── About / Features ─────────────────────────────────────────────────────── */
.about {
  background: var(--bg);
  padding: 96px 16px;
}

.about-inner {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.about-title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.about-title .accent { color: var(--accent); }

.about-sub {
  color: var(--muted);
  font-size: 1.05rem;
  margin-top: 10px;
  margin-bottom: 56px;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  text-align: left;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: 0 1px 6px rgba(0,0,0,.05);
  transition: box-shadow .2s, transform .2s;
}

.feature:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.09);
  transform: translateY(-2px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: #fff7ed;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
}

.feature h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature p {
  font-size: .92rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ── Shared section headings ─────────────────────────────────────────────── */
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-sub {
  color: var(--muted);
  font-size: 1.05rem;
  margin-top: 10px;
  margin-bottom: 56px;
}

/* ── How it works ─────────────────────────────────────────────────────────── */
.how-it-works {
  background: var(--surface);
  padding: 96px 16px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.how-inner {
  max-width: 960px;
  margin: 0 auto;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 56px;
  text-align: left;
}

.step-num {
  width: 42px;
  height: 42px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 18px;
  flex-shrink: 0;
}

.step h3 {
  font-size: .98rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step p {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ── Materials & Specs ───────────────────────────────────────────────────── */
.specs {
  background: var(--hero-bg);
  padding: 96px 16px;
  text-align: center;
}

.specs-inner {
  max-width: 640px;
  margin: 0 auto;
}

.specs-title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fafaf9;
  margin-bottom: 10px;
}

.specs-sub {
  color: #a8a29e;
  font-size: 1.05rem;
  margin-bottom: 48px;
}

.specs-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #292524;
  text-align: left;
}

.spec-label,
.spec-value {
  padding: 14px 20px;
  font-size: .92rem;
  border-bottom: 1px solid #292524;
}

.spec-label:last-of-type,
.spec-value:last-of-type {
  border-bottom: none;
}

.spec-label {
  color: #a8a29e;
  font-weight: 500;
  background: #221e1b;
}

.spec-value {
  color: #fafaf9;
  font-weight: 600;
  background: #1e1a17;
}

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.faq {
  background: var(--bg);
  padding: 96px 16px;
  border-top: 1px solid var(--border);
}

.faq-inner {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  font-family: inherit;
}

.faq-q:hover { background: var(--bg); }

.faq-chevron {
  flex-shrink: 0;
  color: var(--muted);
  transition: transform .2s;
}

.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.75;
  transition: max-height .25s ease, padding .25s;
}

.faq-item.open .faq-a {
  max-height: 300px;
  padding: 0 20px 18px;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
.footer {
  background: var(--hero-bg);
  border-top: 1px solid #292524;
  padding: 32px 24px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-logo {
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fafaf9;
}

.footer-copy {
  font-size: .85rem;
  color: #57534e;
}

.footer-email {
  font-size: .88rem;
  color: #a8a29e;
  text-decoration: none;
  transition: color .15s;
}
.footer-email:hover { color: var(--accent); }

.footer-made-in-us {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  font-weight: 600;
  color: #a8a29e;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .features {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .hero         { padding: 40px 16px 56px; }
  .about        { padding: 64px 16px; }
  .how-it-works { padding: 64px 16px; }
  .specs        { padding: 64px 16px; }
  .faq          { padding: 64px 16px; }

  .cart-footer { flex-wrap: wrap; }
  .btn-checkout { width: 100%; text-align: center; }
  .footer-inner { justify-content: center; text-align: center; }
  .footer       { padding: 24px 16px; }
}

@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
  .upload-card { padding: 20px 16px; }
  .hero-title  { font-size: 1.75rem; }
  .hero        { padding: 28px 16px 44px; }
  .cart-right  { flex-wrap: wrap; justify-content: flex-end; }
  .cart-price  { min-width: auto; }

  /* Specs table: stack label above value on very small screens */
  .specs-table {
    grid-template-columns: 1fr;
  }
  .spec-label {
    padding-bottom: 2px;
    border-bottom: none;
  }
  .spec-value {
    padding-top: 2px;
    border-bottom: 1px solid #292524;
  }

  /* Make qty buttons easier to tap */
  .qty-btn {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
  .qty-val { min-width: 32px; }
}

/* ── Upload loading state (home page) ────────────────────────────────────── */
.upload-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 36px 20px;
  text-align: center;
}

/* ── Cart page ────────────────────────────────────────────────────────────── */
.cart-page {
  background: var(--bg);
  min-height: calc(100vh - 56px);
  padding: 48px 24px 80px;
}

.cart-page-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.cart-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.cart-page-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.cart-page-subtitle {
  color: var(--muted);
  margin-top: 4px;
  font-size: .9rem;
}

.cart-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ── Cart 2-column layout ─────────────────────────────────────────────────── */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}

.cart-items-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── Cart item card ───────────────────────────────────────────────────────── */
.cart-item-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.cart-item-thumb {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  display: block;
  flex-shrink: 0;
}

.cart-item-thumb--spin,
.cart-item-thumb--err {
  width: 160px;
  height: 160px;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cart-item-thumb--spin { background: var(--bg); }
.cart-item-thumb--err  { background: #fee2e2; font-size: 2.5rem; }

.spinner-lg {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

.cart-item-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.cart-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.cart-item-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.cart-item-name {
  font-size: 1rem;
  font-weight: 700;
  word-break: break-all;
}

.cart-remove-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: .82rem;
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color .1s, background .1s;
}
.cart-remove-btn:hover { color: var(--impossible); background: #fee2e2; }

.cart-item-specs {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.cart-item-specs .sep { color: var(--border); }

.color-swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1px solid rgba(255,255,255,.15);
  flex-shrink: 0;
  align-self: center;
}

.cart-item-status-msg {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.5;
}
.cart-item-status-msg--err { color: var(--impossible); }

/* Cost breakdown table */
.cart-item-breakdown-wrap {
  margin-top: 2px;
}

.cart-item-breakdown-toggle {
  font-size: .8rem;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
  padding: 4px 0;
  user-select: none;
}
.cart-item-breakdown-toggle::-webkit-details-marker { display: none; }
.cart-item-breakdown-toggle::before { content: '+ '; }
details[open] .cart-item-breakdown-toggle::before { content: '− '; }

.cart-item-breakdown {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 14px;
  margin-top: 6px;
  background: var(--bg);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  font-size: .85rem;
}

.breakdown-row span:first-child { color: var(--muted); }
.breakdown-row span:last-child  { font-weight: 600; }

/* Qty + subtotal row */
.cart-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 4px;
  border-top: 1px solid var(--border);
}

.cart-item-subtotal {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent);
}

/* ── Order summary sidebar ────────────────────────────────────────────────── */
.cart-summary {
  position: sticky;
  top: 76px;
}

.summary-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.summary-title {
  font-size: 1rem;
  font-weight: 700;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.summary-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 32px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: .88rem;
}

.summary-line-name {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-line span:last-child { font-weight: 600; flex-shrink: 0; }

.summary-line--muted span { color: var(--muted); font-style: italic; font-weight: 400 !important; }

.summary-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 14px;
  font-weight: 700;
  font-size: .95rem;
}

.summary-total-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.btn-checkout-full {
  width: 100%;
  text-align: center;
  padding: 14px;
  font-size: 1rem;
}

.cart-back-link {
  text-align: center;
  display: block;
}

.cart-print-disclaimer {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 12px;
  text-align: center;
}

/* ── Empty cart ───────────────────────────────────────────────────────────── */
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 80px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--muted);
}

.cart-empty h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

/* ── Cart page responsive ─────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }

  .cart-summary { position: static; }
}

@media (max-width: 600px) {
  .cart-page { padding: 24px 16px 64px; }

  .cart-item-card {
    grid-template-columns: 100px 1fr;
    gap: 14px;
    padding: 14px;
  }

  .cart-item-thumb,
  .cart-item-thumb--spin,
  .cart-item-thumb--err {
    width: 100px;
    height: 100px;
  }

  .cart-page-title { font-size: 1.4rem; }
}

@media (max-width: 420px) {
  .cart-item-card { grid-template-columns: 1fr; }

  .cart-item-thumb,
  .cart-item-thumb--spin,
  .cart-item-thumb--err {
    width: 100%;
    height: 140px;
  }
}
