/* Shared by the public catalog and both catalog editors. */
.catalog-editor-grid-wrap {
  max-height: min(64vh, 760px);
  overflow: auto;
  padding: 3px;
}

.catalog-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 132px);
  gap: 10px;
  align-items: start;
  justify-content: start;
}

.catalog-card.catalog-card {
  box-sizing: border-box;
  display: grid;
  grid-template-rows: 110px 50px 28px;
  width: 132px;
  height: 200px;
  min-height: 200px;
  padding: 5px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #ecf2f8);
  box-shadow: inset 0 1px 0 #ffffff, 0 12px 26px rgba(15, 23, 42, 0.08);
  color: #0f172a;
  font: 13px/18px Arial, sans-serif;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  appearance: none;
}

.catalog-card:hover {
  border-color: #7b93ac;
}

.catalog-card:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 2px;
}

.catalog-card.active {
  border-color: #2563eb;
  outline: 2px solid #2563eb;
  outline-offset: 1px;
}

.catalog-card__art {
  display: grid;
  place-items: center;
  width: 100%;
  height: 110px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: radial-gradient(circle at 50% 20%, #ffffff, #f1f5f9 54%, #e2e8f0);
}

.catalog-card__art img {
  display: block;
  width: 86px;
  height: 86px;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.catalog-card__name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  align-self: center;
  max-height: 36px;
  padding: 0 3px;
  overflow: hidden;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 18px;
  font-weight: 400;
}

.catalog-card__cost {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3px;
  font-size: 14px;
}

.catalog-card__cost > span {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4b5563;
}
