/* =========================================================================
   Wonderdoodle: Basket
   ========================================================================= */

.cart { max-width: 820px; }
.cart__loading { color: var(--muted); font-size: 0.94rem; margin: 0; }

.cart__count {
  margin: 0 0 14px;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.cart__row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.cart__row:last-of-type { border-bottom: 1px solid var(--line); }

.cart__cover {
  width: 58px;
  height: 74px;
  box-shadow: inset 0 0 0 1px var(--line);
}

.cart__body { min-width: 0; }
.cart__body h2 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  margin: 0 0 4px;
  overflow-wrap: anywhere;
}
.cart__meta { margin: 0; font-size: 0.86rem; color: var(--muted); }

.cart__price {
  font-family: var(--font-display);
  font-size: 1.15rem;
  white-space: nowrap;
}

.cart__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.cart__remove {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  font: 500 0.82rem/1 var(--font-body);
  color: var(--muted);
  text-decoration: underline;
}
.cart__remove:hover { color: #A6362C; }

.cart__foot { padding-top: 22px; }
.cart__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--font-display);
  font-size: 1.3rem;
}
.cart__note { margin: 8px 0 20px; font-size: 0.86rem; color: var(--muted); }

.cart__empty {
  border: 1px dashed var(--line-strong);
  padding: 40px 26px;
  text-align: center;
  color: var(--ink-soft);
}
.cart__empty p { margin: 0 0 10px; font-size: 0.94rem; line-height: 1.6; }
.cart__empty .btn { margin-top: 12px; }

@media (max-width: 620px) {
  /* Price moves under the title so the row keeps two columns, and the
     actions take their own full-width line. */
  .cart__row { grid-template-columns: 52px minmax(0, 1fr); row-gap: 12px; }
  .cart__cover { width: 52px; height: 66px; }
  .cart__price { grid-column: 2; font-size: 1.05rem; }
  .cart__actions {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
