@font-face {
  font-family: "SFProText";
  src: url("../fonts/SFProText-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "SFProText";
  src: url("../fonts/SFProText-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: "SFProText";
  src: url("../fonts/SFProText-Semibold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
}
@font-face {
  font-family: "SFProText";
  src: url("../fonts/SFProText-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: "SFProText";
  src: url("../fonts/SFProText-Heavy.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "SFProText";
  font-weight: 400;
  color: #3d3d3d;
}

a {
  text-decoration: none;
}

button {
  border: none;
  background: transparent;
  cursor: pointer;
  margin: 0;
  padding: 0;
}

input {
  outline: none;
}

.container {
  max-width: 490px;
  padding: 0 20px;
  margin: 0 auto;
}

.wrapper {
  overflow: hidden;
  padding-top: 8px;
}

.products .filter-box {
  margin-bottom: 16px;
  gap: 13px;
  display: flex;
  align-items: center;
}
.products .filter-box .search-input {
  flex: 1;
  height: 44px;
  border: 1px solid #d9d9d9;
  outline: none;
  padding: 15px 16px;
  font-size: 14px;
  line-height: 100%;
  color: #b3b3b3;
  border-radius: 8px;
}
.products .filter-box .search-input::-moz-placeholder {
  color: #b3b3b3;
}
.products .filter-box .search-input::placeholder {
  color: #b3b3b3;
}
.products .filter-box .filter-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  background: transparent;
}
.products .selected-filter {
  margin-bottom: 12px;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.products .selected-filter__item {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #f5f5f5;
  padding: 4px 13px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 12px;
  line-height: 20px;
  letter-spacing: 0.1px;
  color: #3d3d3d;
}
.products .selected-filter__item .remove-select {
  background: transparent;
  margin: 0;
  padding: 0;
  border: none;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.products .product-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 15px 0;
  width: 100%;
  box-sizing: border-box;
}
.products .container {
  max-width: 490px;
  padding: 0 15px;
  margin: 0 auto;
  width: 100%;
}

.products .search-product {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  width: 100%;
  margin-top: 15px;
}

.products .product-card {
  padding: 15px 12px;
  border-radius: 10px;
  background-color: #f5f5f5;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  break-inside: avoid;
}
.products .product-card.hidden {
  display: none;
}
.products .product-card .trainer-content {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
}
.products .product-card .trainer-content .trainer-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}
.products .product-card .trainer-content .trainer-job {
  font-weight: 600;
  font-size: 12px;
  line-height: 20px;
  letter-spacing: -0.4px;
  color: rgba(0, 0, 0, 0.8);
}
.products .product-card .trainer-content .trainer-name {
  font-weight: 400;
  font-size: 10px;
  line-height: 20px;
  letter-spacing: -0.4px;
  color: #b8b8b8;
  display: block;
  margin-top: -3px;
}
.products .product-card .badge-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: auto;
}
.products .product-card .badges {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  align-items: center;
}
.products .product-card .badge {
  width: fit-content;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  height: 20px;
  border-radius: 6px;
  background-color: #efefef;
  font-weight: 500;
  font-size: 10px;
  line-height: 20px;
  letter-spacing: 0.1px;
  color: #707579;
}
.products .product-card .badge.badge-info {
  background-color: #f6e2cc;
  color: #88755f;
}
.products .product-card .badge.badge-primary {
  background-color: #d8f2ff;
  color: #59a9ff;
}
.products .product-card .badge.badge-pink {
  background-color: rgba(255, 103, 222, 0.2);
  color: #ff67de;
}
.products .product-card .card-bottom {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  width: 100%;
}
.products .product-card .see-more {
  flex: 1;
  height: 28px;
  background: #8f9179;
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 600;
  font-size: 10px;
  line-height: 22px;
  letter-spacing: -0.4px;
  text-align: center;
  border-radius: 6px;
}
.products .product-card .like-btn {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.products .product-card .like-btn.active svg path {
  stroke: #fb7a93;
  fill: #fb7a93;
}

/* Гарантия отображения в 2 колонки */
@media (min-width: 400px) {
  .products .search-product {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Фикс для внутренних элементов */
.products .product-card .badges {
  display: flex !important;
  gap: 4px;
  flex-wrap: wrap;
}

.products .product-card .card-bottom {
  margin-top: auto;
}

.modal {
  position: fixed;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  z-index: 999;
  padding: 14px 20px;
  bottom: -110%;
  transition: all 0.2s linear;
  max-width: 500px;
  margin: 0 auto;
  left: 50%;
  transform: translateX(-50%);
}
.modal.show {
  bottom: 0;
}
.modal .filter-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-height: calc(100vh - 119px);
  overflow-y: auto;
}
.modal .filter-wrapper::-webkit-scrollbar {
  display: none;
}
.modal .filter-title {
  font-weight: 600;
  font-size: 17px;
  line-height: 22px;
  letter-spacing: -0.4px;
  margin-bottom: 12px;
  color: rgba(0, 0, 0, 0.8);
}
.modal .filter-items {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.modal .filter-items .filter-item {
  padding: 4px 12px;
  border: 1px solid rgba(0, 0, 0, 0.0509803922);
  border-radius: 10px;
  font-weight: 500;
  font-size: 12px;
  line-height: 20px;
  letter-spacing: 0.1px;
  color: #3d3d3d;
}
.modal .filter-items .filter-item.active {
  background: #8f9179;
  border-color: #787a64;
  color: #ffffff;
}
.modal-bottom {
  padding: 20px 0 49px 0;
  display: flex;
  gap: 12px;
}
.modal-bottom button {
  flex: 1;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 15px;
  line-height: 20px;
  letter-spacing: -0.23px;
  cursor: pointer;
  border: none;
  text-align: center;
  background-color: #8f9179;
  color: #fff;
  border-radius: 10px;
  border: 1px solid #8f9179;
}
.modal-bottom button.clear-btn {
  background-color: transparent;
  color: #8f9179;
}

.go-back-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-block: 15px;
}
.go-back-box .go-back {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
}

.close-modal {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}