.card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.card__img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
  background: #e8edf2;
}

.card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 18px 20px;
}

.card__tag {
  align-self: flex-start;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand);
  background: #eef2f7;
  border-radius: 6px;
  padding: 2px 8px;
  margin-bottom: 10px;
}

.card__specs {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  color: var(--ink-soft);
  font-size: 0.93rem;
}

.card__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.card__price b {
  font-size: 1.35rem;
}

.card__price small {
  color: var(--muted);
}

.card .btn {
  margin-top: 14px;
  width: 100%;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 28px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
}

.chip[aria-pressed="true"] {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.search {
  flex: 1 1 240px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
}

.empty {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 40px 24px;
  text-align: center;
  color: var(--muted);
  background: #fff;
  border-radius: var(--radius);
}

.empty p {
  margin: 0;
}

.card__deposit {
  margin-top: 6px;
  color: var(--muted);
}
@media (max-width: 820px) {
  .chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: 0 -16px;
    padding: 0 16px 4px;
    scrollbar-width: none;
  }

  .chips::-webkit-scrollbar {
    display: none;
  }

  .chip {
    flex: none;
  }

  .search {
    flex-basis: 100%;
  }
}

@media (max-width: 640px) {
  .section--popular .card:nth-child(n + 4) {
    display: none;
  }
}

@media (max-width: 820px) {
  .chips.has-more {
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
    mask-image: linear-gradient(90deg, #000 85%, transparent);
  }
}
