.tm-store {
  font-family: inherit;
  color: #28639e;
}
.tm-store__categories {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0 0 28px;
}
.tm-store__category,
.tm-store__subcategory {
  display: inline-block;
  border: 1px solid #398de1;
  border-radius: 28px;
  background: #fff;
  color: #287fd2;
  padding: 13px 28px;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
}
.tm-store__category.is-active,
.tm-store__subcategory.is-active {
  background: #398de1;
  color: #fff;
}
.tm-store__subcategories {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: -14px 0 26px;
}
.tm-store__subcategory {
  font-size: 14px;
  padding: 9px 18px;
}
.tm-store__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.tm-store__card {
  min-width: 0;
  border: 1px solid #edf1f5;
  border-radius: 8px;
  padding: 14px 12px 22px;
  text-align: center;
  box-shadow: 0 1px 5px rgba(30, 70, 110, 0.06);
}
.tm-store__card img {
  width: 100%;
  height: 245px;
  object-fit: contain;
}
.tm-store__card h3 {
  font-size: 16px;
  font-weight: 500;
  margin: 18px 0 8px;
}
.tm-store__price {
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 18px;
}
.tm-store__button {
  display: inline-block;
  border: 1px solid #398de1;
  border-radius: 24px;
  padding: 10px 28px;
  color: #287fd2;
  text-decoration: none;
}
.tm-store__empty {
  margin: 32px 0;
  text-align: center;
}
.tm-store__pagination {
  margin-top: 36px;
}
.tm-store__pagination ul {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tm-store__pagination a,
.tm-store__pagination span {
  display: grid;
  min-width: 42px;
  height: 42px;
  place-items: center;
  padding: 0 10px;
  border: 1px solid #398de1;
  border-radius: 21px;
  color: #287fd2;
  text-decoration: none;
}
.tm-store__pagination .current {
  background: #398de1;
  color: #fff;
}
@media (max-width: 980px) {
  .tm-store__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .tm-store__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .tm-store__card img {
    height: 170px;
  }
  .tm-store__card h3 {
    font-size: 14px;
  }
  .tm-store__button {
    padding: 9px 16px;
    font-size: 13px;
  }
}
