/* Anahata v2 — order card. Figma: "Order Card" set. */

.order-card {
  display: flex;
  flex-direction: column;
  gap: var(--a-space-3);
  padding: var(--a-space-4);
  border-radius: var(--a-radius);
  background: var(--a-bg);
}

.order-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--a-space-3);
}

.order-card__no {
  font-family: var(--a-font-body);
  font-weight: 500;
  font-size: var(--a-fs-body-s);
  color: var(--a-ink);
}

.order-card__line {
  display: flex;
  gap: var(--a-space-3);
  padding-bottom: var(--a-space-3);
  border-bottom: 1px solid var(--a-border-soft);
}

.order-card__media {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: var(--a-radius);
  background: var(--a-photo-ground);
  overflow: hidden;
}

.order-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.order-card__info {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.order-card__row {
  display: flex;
  justify-content: space-between;
  gap: var(--a-space-3);
}

.order-card__title {
  font-family: var(--a-font-body);
  font-weight: 500;
  font-size: var(--a-fs-body-s);
  color: var(--a-ink);
}

.order-card__price {
  font-family: var(--a-font-body);
  font-weight: 700;
  font-size: var(--a-fs-body-s);
  color: var(--a-ink);
  white-space: nowrap;
}

.order-card__meta {
  font-family: var(--a-font-body);
  font-size: var(--a-fs-label);
  color: var(--a-text-muted);
}

.order-card__foot .disclosure {
  border-bottom: 0;
}

.order-card__timeline {
  display: flex;
  flex-direction: column;
  gap: var(--a-space-2);
  padding: var(--a-space-3);
  background: var(--a-surface);
  border-radius: var(--a-radius);
}

.order-card__actions {
  display: flex;
  gap: var(--a-space-3);
}

/* Outlined variant — Figma `Me (Completed).png`: white card inside a tan
   hairline, a larger thumbnail, and a teal status pill. The neutral variants
   above are unchanged. */
.order-card--outlined {
  background: var(--a-surface);
  border: 1px solid var(--a-tan);
}

.order-card--outlined .order-card__media {
  width: 77px;
  height: 80px;
  border-radius: var(--a-radius);
}

/* Figma: 16px image -> text */
.order-card--outlined .order-card__line {
  gap: var(--a-space-4);
}

.order-card--outlined .order-card__title,
.order-card--outlined .order-card__price {
  font-size: var(--a-fs-body-m);
}

.order-card--outlined .order-card__price {
  font-size: var(--a-fs-body-l);
}

.order-card__status {
  padding: var(--a-space-2) var(--a-space-4);
  background: var(--a-gradient-brand);
  border-radius: var(--a-radius-pill);
  font-family: var(--a-font-body);
  font-weight: 500;
  font-size: var(--a-fs-body-s);
  line-height: var(--a-lh-body-s);
  color: var(--a-on-dark);
  white-space: nowrap;
}

.order-card__actions .a-btn {
  flex: 1 1 0;
}

/* one colour per state so a list can be scanned (Figma 1525:9090) */
.order-card__status--shipping {
  background: var(--a-status-shipping);
}

.order-card__status--complete {
  background: var(--a-status-complete);
}

.order-card__status--processing {
  background: var(--a-status-processing);
}

.order-card__status--returned {
  background: var(--a-status-returned);
}

/* Figma "Button" in the order card: 46px tall, 17px Figtree Medium. The
   generic lg button (64px, 17px regular) read oversized here. */
.order-card__actions .order-card__btn {
  min-height: 46px;
  padding: var(--a-space-3);
  font-size: var(--a-fs-body-l);
  font-weight: 500;
}

.order-card__actions .order-card__btn--muted {
  background: var(--a-btn-muted);
  color: var(--a-ink-pure);
}

/* Figma 1525:9090 type: order no. 14 semibold, title 17 medium, details 14 */
.order-card--outlined .order-card__no {
  font-weight: 600;
}

.order-card--outlined .order-card__title {
  font-size: var(--a-fs-body-l);
  line-height: normal;
}

.order-card--outlined .order-card__info {
  gap: var(--a-space-2);
}

.order-card--outlined .order-card__meta {
  font-size: var(--a-fs-body-s);
}

/* no footer (only completed orders carry Return / Review): drop the rule
   under the line so the card doesn't end on a divider */
.order-card__line:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
