/* Общие для главной и страницы товара: карточка коллекции (catalog_block_template из макета),
   лента карточек со стрелками, шрифт Inter для заголовков. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/tm/fonts/inter-cyr.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/tm/fonts/inter-lat.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+20BD;
}

.tmk,
.tmh-rail,
.tmh-arrows {
  --ink: #333;
  --muted: #777;
  --hair: #e5e5e5;
  --well: #f2f2f2;
  --accent: #ff7e29;
  --green: #7cb342;
  --head-font: "Inter", "Montserrat", Arial, sans-serif;
}

/* стрелки лент */
.tmh-arrows {
  display: flex;
  gap: 8px;
}
.tmh-arrows button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--hair);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition:
    border-color 0.2s,
    color 0.2s,
    opacity 0.2s;
}
.tmh-arrows button:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}
.tmh-arrows button:disabled {
  opacity: 0.35;
  cursor: default;
}

.tmh-rail {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  padding: 2px 0 8px;
}
.tmh-rail::-webkit-scrollbar {
  display: none;
}
.tmh-rail > .tmk {
  flex: 0 0 calc((100% - 60px) / 4);
  scroll-snap-align: start;
}

/* карточка комплекта — фото 3:4, название, наличие, цена и кнопка в одну строку */
.tmk .catalog-block__item {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 20px;
  background: #fff;
}
.tmk__img {
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 4px;
  overflow: hidden;
  background: var(--well);
}
.tmk__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.tmk:hover .tmk__img img {
  transform: scale(1.03);
}
.tmk__stickers {
  position: absolute;
  top: 30px;
  left: 30px;
}
.tmk__info {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding-top: 22px;
}
.tmk__name {
  font: 600 16px/1.35 var(--head-font);
  color: var(--ink);
}
.tmk__status {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1;
  color: var(--green) !important;
}
.tmk__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 20px;
}
.tmk__price {
  font: 500 16px/1 var(--head-font);
  color: var(--ink);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.tmk .btn {
  width: auto !important;
  min-width: 90px;
  padding: 12px 16px !important;
  font-size: 14px !important;
}

.tmk__name,
.tmk__price {
  font-family: var(--head-font) !important;
}

@media (max-width: 1199px) {
  .tmh-rail > .tmk {
    flex-basis: calc((100% - 40px) / 3);
  }
}
@media (max-width: 991px) {
  .tmh-rail > .tmk {
    flex-basis: calc((100% - 20px) / 2);
  }
}
@media (max-width: 767px) {
  .tmh-arrows button {
    width: 38px;
    height: 38px;
  }
  .tmh-rail {
    gap: 12px;
  }
  .tmh-rail > .tmk {
    flex-basis: 72%;
  }
  .tmk .catalog-block__item {
    padding: 12px;
  }
  .tmk__info {
    padding-top: 14px;
  }
  .tmk__bottom {
    padding-top: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tmk__img img {
    transition: none;
  }
}

/* скидка на карточке (плитки товаров на страницах товара) */
.tmk__off {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  height: 24px;
  margin: auto 0 8px;
  padding: 0 10px;
  border: 1px solid #ff7e28;
  border-radius: 999px;
  font: 500 13px/1 "Montserrat", Arial, sans-serif;
  font-style: normal;
  color: #ff7e28;
}
.tmk__off + .tmk__bottom {
  margin-top: 0;
  padding-top: 0;
}
