/* Orders page */

.section--top {
  padding-top: 56px;
}

.orders {
  max-width: 1180px;
  margin: 0 auto;
}

.orders__head {
  margin-bottom: 40px;
}
.orders__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.05;
  margin: 14px 0 16px;
  letter-spacing: -0.005em;
  color: var(--ink-1);
}
.orders__lede {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.7;
  margin: 0;
  max-width: 540px;
}

/* Filter chips */
.orders__filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.orders__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.orders__filter-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-3);
  font-family: var(--font-serif);
  font-size: 15px;
  background: rgba(255, 253, 247, 0.5);
  border: 1px dashed rgba(46, 42, 38, 0.12);
  border-radius: var(--radius-md);
}

/* Empty state */
.orders__empty {
  text-align: center;
  padding: 80px 24px 90px;
  background: rgba(255, 253, 247, 0.55);
  border: 1px dashed rgba(46, 42, 38, 0.15);
  border-radius: var(--radius-lg);
}
.orders__empty-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lilac);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}
.orders__empty p {
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--ink-1);
  margin: 0 0 6px;
}
.orders__empty small {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.7;
}

/* Order card */
.order-card {
  background: rgba(255, 253, 247, 0.7);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.order-card__head {
  width: 100%;
  background: transparent;
  border: none;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-family: var(--font-sans);
  color: var(--ink-1);
}
.order-card__head-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}
.order-card__id {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-1);
  letter-spacing: 0.05em;
}
.order-card__date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.1em;
}
.order-card__head-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.order-card__total {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 17px;
  color: var(--ink-1);
}
.order-card__total small {
  font-size: 11px;
  color: var(--ink-3);
  margin-right: 2px;
}
.order-card__chevron {
  color: var(--ink-3);
  transition: transform 0.25s ease;
}
.order-card--open .order-card__chevron { transform: rotate(180deg); }

.order-card__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.order-card--open .order-card__body { max-height: 700px; }

.order-card__items {
  padding: 4px 22px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.order-line {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px dashed rgba(46, 42, 38, 0.08);
}
.order-line__thumb {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  box-shadow: inset 0 -10px 20px rgba(255, 255, 255, 0.4);
}
.order-line__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.order-line__name {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 14.5px;
  color: var(--ink-1);
}
.order-line__link {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  text-decoration: none;
  transition: color 0.2s;
}
.order-line__link:hover { color: var(--ink-1); }
.order-line__variant {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
}
.order-line__price {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink-1);
}
.order-line__price small {
  font-size: 10px;
  color: var(--ink-3);
  margin-right: 2px;
}



/* Per-order progress (X of Y models uploaded) */
.order-progress {
  margin: 4px 22px 18px;
  padding: 14px 16px;
  background: rgba(201, 188, 224, 0.18);
  border-radius: 12px;
  border: 1px solid rgba(201, 188, 224, 0.3);
}
.order-progress__label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-2);
  margin-bottom: 10px;
}
.order-progress__label b {
  color: var(--ink-1);
  font-weight: 500;
  font-family: var(--font-mono);
}
.order-progress__bar {
  height: 5px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  overflow: hidden;
}
.order-progress__fill {
  height: 100%;
  background: linear-gradient(to right, var(--lilac), var(--rose-purple));
  border-radius: 999px;
  transition: width 0.4s ease;
}
.order-progress__fill--done {
  background: linear-gradient(to right, #6abf8b, #06C755);
}

/* Order line item right-column with status + price */
.order-line__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.order-line__status {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(201, 188, 224, 0.3);
  color: #5a4fa3;
  white-space: nowrap;
}
.order-line__status--done {
  background: rgba(6, 199, 85, 0.15);
  color: #1f8a5b;
}
.order-line--done .order-line__name { opacity: 0.85; }

.order-card__foot {
  padding: 0 22px 18px;
}
.order-card__foot-note {
  font-size: 12px;
  color: var(--ink-3);
}

/* Status badges */
.order-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  padding: 4px 11px;
  border-radius: 999px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.order-badge--success {
  background: rgba(6, 199, 85, 0.15);
  color: #1f8a5b;
}
.order-badge--lilac {
  background: rgba(201, 188, 224, 0.4);
  color: #5a4fa3;
}
.order-badge--info {
  background: rgba(184, 212, 232, 0.45);
  color: #2a6fdb;
}
.order-badge--warning {
  background: rgba(232, 217, 190, 0.55);
  color: #8b6a2e;
}
.order-badge--muted {
  background: rgba(46, 42, 38, 0.08);
  color: var(--ink-3);
}

@media (max-width: 640px) {
  .order-card__head { flex-direction: column; align-items: stretch; gap: 12px; }
  .order-card__head-right { justify-content: space-between; }
  .order-line { grid-template-columns: 48px 1fr auto; gap: 10px; }
  .order-line__thumb { width: 48px; height: 48px; }
}
@media (max-width: 400px) {
  .order-line { grid-template-columns: 44px 1fr auto; gap: 8px; }
  .order-line__thumb { width: 44px; height: 44px; }
  .order-card__head { padding: 14px 16px; }
  .order-card__items { padding: 4px 16px 0; }
  .order-card__foot { padding: 0 16px 14px; }
  .order-progress { margin: 4px 16px 16px; }
}
