:root {
  --ink: #f7f8ff;
  --soft: #aeb8d2;
  --coin: #ffcf66;
  --mint: #61e8b8;
  --ruby: #ff6685;
  --glass: rgba(255, 255, 255, .075);
}

.account-note {
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .18);
}

.products {
  align-items: stretch;
}

.card {
  isolation: isolate;
  border-radius: 20px;
  box-shadow: inset 0 1px rgba(255, 255, 255, .06), 0 18px 44px rgba(0, 0, 0, .18);
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), transparent 46%);
  pointer-events: none;
}

.card-top,
.desc,
.stock,
.card-bottom,
.card-badges {
  position: relative;
  z-index: 1;
}

.emoji {
  overflow: hidden;
  max-width: 44px;
  font-size: 20px;
}

.emoji.is-fallback {
  color: var(--coin);
}

.card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.catalog-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 999px;
  color: #dce3f7;
  background: rgba(255, 255, 255, .055);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.catalog-badge.fast {
  border-color: rgba(97, 232, 184, .25);
  color: var(--mint);
  background: rgba(97, 232, 184, .08);
}

.catalog-badge.low {
  border-color: rgba(255, 207, 102, .28);
  color: var(--coin);
  background: rgba(255, 207, 102, .08);
}

.buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 104px;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 14px;
  background: linear-gradient(135deg, #ffe07d, #ffbd50);
  box-shadow: 0 12px 28px rgba(255, 190, 80, .18);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.buy:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(255, 190, 80, .26);
  filter: saturate(1.08);
}

.buy:active {
  transform: translateY(0);
}

.buy.api {
  color: #d9e0f3;
  background: linear-gradient(135deg, #303956, #22283c);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .2);
}

.buy-icon {
  display: inline-grid;
  place-items: center;
  width: 19px;
  height: 19px;
}

.buy-icon svg {
  width: 19px;
  height: 19px;
  display: block;
}

.favorite-toggle {
  position: absolute;
  top: 13px;
  right: 13px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 11px;
  color: #bfc8de;
  background: rgba(8, 11, 20, .48);
  backdrop-filter: blur(10px);
  transition: transform .18s ease, color .18s ease, border-color .18s ease;
}

.favorite-toggle:hover,
.favorite-toggle.is-active {
  color: var(--ruby);
  border-color: rgba(255, 102, 133, .35);
  transform: translateY(-1px);
}

.card.has-favorite {
  border-color: rgba(255, 102, 133, .28);
}

@media (max-width: 470px) {
  .card {
    min-height: 0;
  }

  .card-top {
    padding-right: 34px;
  }

  .desc {
    font-size: 12px;
  }

  .buy {
    min-width: 112px;
  }
}
