/* ============================================================
   DeMa — Gang Sheet Studio (premium refresh)
   Editorial · paper-warm · vermillion accents · refined depth
   ============================================================ */

/* ---------- Tool header ---------- */
.tool-header { padding-top: 56px; padding-bottom: 0; }
.tool-header__grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s-7);
  align-items: end;
}
.tool-header__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin-top: var(--s-3);
  color: var(--ink);
}
.tool-header__title em {
  font-style: italic;
  color: var(--accent);
}
.tool-header__lede {
  margin-top: var(--s-4);
  max-width: 60ch;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.55;
}
.tool-header__steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  font-family: var(--font-body);
}
.tool-header__steps li {
  display: flex; align-items: center; gap: 10px;
}
.tool-header__steps li span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  font-family: var(--font-display); font-size: 13px; font-style: italic;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 50%;
}
@media (max-width: 800px) {
  .tool-header__grid { grid-template-columns: 1fr; gap: var(--s-5); }
  .tool-header__steps { flex-direction: row; flex-wrap: wrap; gap: 14px; }
}

/* ---------- Tool grid ---------- */
.tool-section { padding-top: var(--s-6); padding-bottom: var(--s-9); }
.tool {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: var(--s-5);
  align-items: start;
}
@media (max-width: 1100px) { .tool { grid-template-columns: 1fr; } }

/* ---------- Left panel ---------- */
.tool__panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-4);
  height: fit-content;
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 1100px) {
  .tool__panel { position: static; max-height: none; }
}
.tool__panel::-webkit-scrollbar { width: 6px; }
.tool__panel::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 6px; }
.tool__panel::-webkit-scrollbar-track { background: transparent; }

/* ---------- HERO UPLOAD ZONE (the headline element) ---------- */
.upload-hero {
  margin-bottom: var(--s-4);
}
.upload {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--s-3);
  padding: 18px 18px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, #FFFFFF 0%, #FBF8F0 100%);
  border: 1.5px dashed var(--line-strong);
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
  text-align: left;
  overflow: hidden;
}
.upload::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 0% 0%, var(--accent-soft) 0%, transparent 45%);
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
.upload:hover,
.upload:focus-visible,
.upload.is-drag {
  border-color: var(--accent);
  border-style: solid;
  background: #FFFFFF;
  box-shadow: 0 12px 32px -12px rgba(220,76,44,0.28);
  transform: translateY(-1px);
  outline: none;
}
.upload:hover::before,
.upload:focus-visible::before,
.upload.is-drag::before { opacity: 1; }

.upload__art {
  width: 48px; height: 48px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 12px;
  position: relative;
  z-index: 1;
}
.upload__art svg { width: 30px; height: 30px; }

.upload__body { min-width: 0; position: relative; z-index: 1; }
.upload__eyebrow {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}
.upload__title {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 3px;
}
.upload__hint {
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.upload__cta {
  flex-shrink: 0;
  align-self: center;
  position: relative;
  z-index: 1;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: background .15s ease;
}
.upload:hover .upload__cta { background: var(--accent); }

/* Compact upload (after first design is added) */
.upload-hero.is-compact .upload {
  padding: 12px 14px;
  background: var(--bg-alt);
  border-style: solid;
  border-color: var(--line);
}
.upload-hero.is-compact .upload__art { width: 36px; height: 36px; }
.upload-hero.is-compact .upload__art svg { width: 22px; height: 22px; }
.upload-hero.is-compact .upload__title { font-size: 16px; }
.upload-hero.is-compact .upload__hint { display: none; }
.upload-hero.is-compact .upload__eyebrow { display: none; }

/* Hidden file input */
.upload input[type="file"] {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Full-page drop overlay */
.drop-overlay {
  position: fixed; inset: 0;
  background: rgba(15, 15, 15, 0.72);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s ease;
}
.drop-overlay.is-active {
  display: flex;
  opacity: 1;
}
.drop-overlay__inner {
  background: var(--bg);
  border: 2.5px dashed var(--accent);
  border-radius: var(--r-lg);
  padding: 60px 80px;
  text-align: center;
  color: var(--accent);
  max-width: 90vw;
}
.drop-overlay__title {
  font-family: var(--font-display);
  font-size: 38px;
  margin-top: var(--s-4);
  color: var(--ink);
}
.drop-overlay__sub {
  font-size: 13px;
  color: var(--muted);
  margin-top: var(--s-2);
  letter-spacing: 0.04em;
}

/* ---------- Panel sections ---------- */
.panel-section {
  padding: 18px 4px;
  border-top: 1px solid var(--line);
}
.panel-section:first-of-type { border-top: none; padding-top: 8px; }
.panel-section--summary {
  margin: var(--s-3) -4px -4px;
  padding: var(--s-4) var(--s-3) var(--s-3);
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-md);
  border-top: none;
}
.panel-section--summary .panel-section__title .step-num,
.panel-section--summary .panel-section__title .step-label {
  color: #fff;
}
.panel-section--summary .panel-section__title .step-num { color: rgba(255,255,255,0.5); }

.panel-section__title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: var(--s-3);
  background: none;
  border: none;
  padding: 0;
  width: 100%;
}
.step-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: -0.01em;
  line-height: 1;
}
.step-label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}
.step-hint {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
  font-style: italic;
  font-family: var(--font-display);
}
.step-count {
  margin-left: auto;
  font-size: 11px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 9px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Collapsible section */
.panel-section--collapsible .panel-section__title--toggle {
  cursor: pointer;
  user-select: none;
}
.caret {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
  transition: transform .2s ease;
}
.panel-section--collapsible[aria-expanded="false"] .caret { transform: rotate(-90deg); }
.panel-section--collapsible[aria-expanded="false"] .panel-section__body { display: none; }

/* ---------- Sheet width selector ---------- */
.width-options {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: var(--s-3);
}
.width-option {
  padding: 11px 0;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 8px;
  font-size: 14px; font-weight: 500;
  transition: all .15s ease;
  text-align: center;
  cursor: pointer;
  font-family: var(--font-body);
  color: var(--ink-soft);
}
.width-option:hover {
  border-color: var(--ink);
  color: var(--ink);
  transform: translateY(-1px);
}
.width-option.is-active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  box-shadow: 0 4px 12px -4px rgba(0,0,0,0.18);
}
.width-custom {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px;
  padding-top: 4px;
}
.width-custom input {
  width: 90px;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  font-size: 14px;
  text-align: center;
  font-family: var(--font-body);
  transition: border-color .15s ease;
}
.width-custom input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* ---------- Designs list ---------- */
.designs { display: flex; flex-direction: column; gap: var(--s-2); }
.design-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: var(--s-3);
  align-items: center;
  padding: 10px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
  animation: design-in .35s ease-out;
}
.design-item:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px -6px rgba(0,0,0,0.08);
}
.design-item.is-error { border-color: var(--danger); background: #FBE9E6; }
@keyframes design-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.design-thumb {
  width: 56px; height: 56px;
  border-radius: 6px;
  background: #fff;
  background-image:
    linear-gradient(45deg, #f0ece0 25%, transparent 25%),
    linear-gradient(-45deg, #f0ece0 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #f0ece0 75%),
    linear-gradient(-45deg, transparent 75%, #f0ece0 75%);
  background-size: 10px 10px;
  background-position: 0 0, 0 5px, 5px -5px, -5px 0;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.design-thumb img { max-width: 100%; max-height: 100%; }
.design-body { min-width: 0; }
.design-name {
  font-size: 13px; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 4px;
  color: var(--ink);
}
.design-controls { display: flex; gap: 6px; align-items: center; }
.design-controls input {
  width: 58px; padding: 6px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font-size: 12px; text-align: center;
  font-family: var(--font-body);
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.design-controls input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.design-controls label { font-size: 10px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; }
.design-remove {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all .15s ease;
}
.design-remove:hover { background: var(--danger); color: #fff; transform: rotate(90deg); }

/* ---------- Settings ---------- */
.settings-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
}
.settings-row label {
  font-size: 11px; color: var(--muted);
  margin-bottom: 6px; display: block;
  letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500;
}
.settings-row input {
  width: 100%; padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font-size: 13px;
  font-family: var(--font-body);
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.settings-row input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.toggle {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; padding: 4px 0;
  color: var(--ink-soft);
}
.toggle__switch {
  width: 38px; height: 22px;
  background: var(--line-strong); border-radius: 999px;
  position: relative; cursor: pointer; transition: background .2s;
}
.toggle__switch::after {
  content: ""; position: absolute;
  top: 2px; left: 2px; width: 18px; height: 18px;
  background: #fff; border-radius: 50%;
  transition: left .2s;
  box-shadow: 0 1px 2px rgba(0,0,0,.2);
}
.toggle__input { display: none; }
.toggle__input:checked + .toggle__switch { background: var(--accent); }
.toggle__input:checked + .toggle__switch::after { left: 18px; }

/* ---------- Summary (dark card) ---------- */
.summary { padding: 0; }
.summary__row {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 13px;
  padding: 7px 0;
  color: rgba(255,255,255,0.7);
}
.summary__row .label { color: rgba(255,255,255,0.7); }
.summary__row .value { color: #fff; font-weight: 500; }
.summary__row--placeholder {
  text-align: center;
  justify-content: center;
  padding: var(--s-3) 0;
  font-style: italic;
  color: rgba(255,255,255,0.45);
}
.summary__row.is-total {
  border-top: 1px solid rgba(255,255,255,0.18);
  margin-top: 10px; padding-top: 14px;
  align-items: baseline;
}
.summary__row.is-total .label {
  font-family: var(--font-display);
  font-size: 20px;
  color: rgba(255,255,255,0.9);
  font-weight: 400;
}
.summary__row.is-total .value {
  color: #fff;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* ---------- Preview area (right) ---------- */
.preview {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  display: flex; flex-direction: column;
  min-height: 600px;
  box-shadow: var(--shadow-sm);
}
.preview__head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: var(--s-4);
}
.eyebrow--small {
  font-size: 10px;
  letter-spacing: 0.14em;
}
.preview__title {
  font-family: var(--font-display);
  font-size: 28px;
  margin-top: 2px;
  line-height: 1;
}
.preview__stats {
  display: flex; gap: var(--s-4); align-items: baseline;
  font-size: 12px; color: var(--muted);
  letter-spacing: 0.02em;
}
.preview__stat {
  display: flex; flex-direction: column; align-items: flex-end;
}
.preview__stat .preview__stat-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.preview__stat strong {
  color: var(--ink); font-weight: 500;
  font-family: var(--font-display);
  font-size: 18px;
}

.preview__viewport {
  flex: 1;
  background:
    radial-gradient(circle at center, var(--bg-alt) 0%, var(--bg) 80%);
  border-radius: var(--r-md);
  overflow: hidden;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  padding: var(--s-5);
  min-height: 520px;
}
.preview__empty {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: var(--muted); text-align: center;
  padding: var(--s-5);
  animation: empty-in .6s ease-out;
}
@keyframes empty-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.preview__empty-art {
  width: 100px; height: 100px;
  margin-bottom: var(--s-4);
  color: var(--accent);
  opacity: 0.85;
}
.preview__empty-art svg { width: 100%; height: 100%; }
.preview__empty h4 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.preview__empty p {
  font-size: 14px;
  max-width: 38ch;
  margin: 0;
  line-height: 1.5;
}

.preview__canvas-wrap {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  animation: canvas-in .4s ease-out;
}
@keyframes canvas-in {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}
.preview__canvas {
  display: block;
  background: #fff;
  background-image:
    linear-gradient(45deg, #f5f1e8 25%, transparent 25%),
    linear-gradient(-45deg, #f5f1e8 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #f5f1e8 75%),
    linear-gradient(-45deg, transparent 75%, #f5f1e8 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
  border: 1px solid var(--line-strong);
  box-shadow: 0 18px 48px -14px rgba(0,0,0,0.18);
  max-width: 100%; height: auto;
  border-radius: 4px;
}
.preview__rulers {
  position: absolute; pointer-events: none;
  font-size: 10px; color: var(--muted);
  font-family: var(--font-body); font-weight: 500;
}
.preview__warning {
  background: #FFF3E0;
  border: 1px solid #F0C892;
  color: #7A4F1A;
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  font-size: 13px;
  margin-top: var(--s-3);
  display: flex; align-items: center; gap: var(--s-2);
}

/* ---------- Action bar (bottom of preview) ---------- */
.actions {
  margin-top: var(--s-4);
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: var(--s-3);
}
@media (max-width: 600px) { .actions { grid-template-columns: 1fr; } }
.actions .btn {
  width: 100%;
  justify-content: center;
  padding: 16px 24px;
  font-size: 15px;
  letter-spacing: 0.005em;
}

/* Refined primary button with lift */
.btn--lift {
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  border: 1px solid transparent;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.15) inset,
    0 8px 22px -8px rgba(220,76,44,0.5);
  transition: all .18s ease;
  font-weight: 500;
}
.btn--lift:hover:not([disabled]) {
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.2) inset,
    0 14px 32px -10px rgba(220,76,44,0.55);
}
.btn--lift:active:not([disabled]) { transform: translateY(0); }
.btn--lift[disabled] {
  background: var(--line-strong);
  color: var(--muted);
  box-shadow: none;
  cursor: not-allowed;
}
.btn--lift .arrow { transition: transform .2s ease; }
.btn--lift:hover:not([disabled]) .arrow { transform: translateX(4px); }

/* Refined ghost button */
.actions .btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  font-weight: 500;
  display: inline-flex; align-items: center;
}
.actions .btn--ghost:hover:not([disabled]) {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  transform: translateY(-1px);
}
.actions .btn--ghost[disabled] {
  color: var(--muted);
  border-color: var(--line);
  background: transparent;
}

/* ---------- Upsell strip ---------- */
.upsell {
  margin-top: var(--s-5);
  background: linear-gradient(110deg, var(--ink) 0%, #1a1a1a 100%);
  color: #fff;
  border-radius: var(--r-lg);
  padding: var(--s-5);
  display: grid; grid-template-columns: 1fr auto;
  align-items: center; gap: var(--s-5);
  position: relative; overflow: hidden;
}
@media (max-width: 700px) { .upsell { grid-template-columns: 1fr; } }
.upsell::before {
  content: ""; position: absolute;
  top: -40%; right: -10%;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(220,76,44,.3) 0%, transparent 70%);
}
.upsell h4 {
  font-family: var(--font-display); font-size: 28px;
  color: #fff; margin-bottom: 6px;
}
.upsell p { color: rgba(255,255,255,.65); margin: 0; font-size: 14px; }
.upsell .btn { position: relative; z-index: 1; }

/* ---------- Empty state for designs list ---------- */
.designs-empty {
  text-align: center;
  padding: var(--s-4) var(--s-3);
  color: var(--muted);
  font-size: 13px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: rgba(255,255,255,0.4);
  font-style: italic;
}
.designs-empty__arrow {
  display: inline-block;
  margin-right: 6px;
  color: var(--accent);
  font-weight: 700;
  font-style: normal;
  animation: nudge-up 1.8s ease-in-out infinite;
}
@keyframes nudge-up {
  0%, 60% { transform: translateY(0); }
  30% { transform: translateY(-4px); }
}

/* ---------- Mobile sticky action bar ---------- */
.mobile-action-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  z-index: 80;
  box-shadow: 0 -8px 24px -10px rgba(0,0,0,0.1);
  animation: bar-up .3s ease;
}
@keyframes bar-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.mobile-action-bar__info {
  display: flex; flex-direction: column;
  gap: 2px;
}
.mobile-action-bar__count {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.mobile-action-bar__total {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--ink);
  line-height: 1;
}
.mobile-action-bar .btn { padding: 12px 18px; font-size: 13px; }
@media (min-width: 1101px) { .mobile-action-bar { display: none !important; } }

/* ---------- Help section ---------- */
.tool-help {
  background: var(--bg-alt);
  margin-top: var(--s-9);
}
.tool-help__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 400;
  margin-top: var(--s-3);
  margin-bottom: var(--s-6);
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* ---------- Cart preview (used elsewhere too, keep) ---------- */
.cart-line {
  display: grid; grid-template-columns: 60px 1fr auto;
  gap: var(--s-4); align-items: center;
  padding: var(--s-4) 0; border-bottom: 1px solid var(--line);
}
.cart-line:last-child { border-bottom: none; }
.cart-line__thumb {
  width: 60px; height: 60px;
  background: var(--bg-alt); border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 24px; color: var(--accent);
}
.cart-line__title { font-weight: 500; font-size: 15px; margin-bottom: 2px; }
.cart-line__meta { font-size: 13px; color: var(--muted); }
.cart-line__price { font-family: var(--font-display); font-size: 22px; }

/* ---------- Loading ---------- */
.spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .8s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
