/* Карточки и страница товара Tronos в духе IKEA: без рамок и теней, фото на светло-сером фоне,
   жирная типографика, крупная цена, кнопки-«таблетки». Оранжевый бренда с тёмным текстом — как жёлтые кнопки IKEA,
   так контраст проходит AA. */
.tmc,
.tmp,
.tmc-grid {
  --ink: #111;
  --text: #484848;
  --muted: #767676;
  --hair: #dfdfdf;
  --well: #f5f5f5;
  --accent: #ff7e29;
  --accent-press: #f26b12;
  --sale: #cc0008;
  font-family: "Montserrat", Arial, sans-serif;
  color: var(--text);
}
.tmc *,
.tmp *,
.tmc *::before,
.tmp *::before,
.tmc *::after,
.tmp *::after {
  box-sizing: border-box;
}
.tmc a,
.tmp a {
  color: inherit;
  text-decoration: none;
}
.tmc :focus-visible,
.tmp :focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* ── карточка ──────────────────────────────────────────────── */
.tmc {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.tmc__media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  background: var(--well);
  overflow: hidden;
}
.tmc__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.tmc__alt {
  opacity: 0;
  transition: opacity 0.2s ease;
}
.tmc:hover .tmc__alt {
  opacity: 1;
}
.tmc__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 12px;
  flex: 1;
}
.tmc__flag {
  color: #c4480a;
  font-size: 13px;
  font-weight: 700;
}
.tmc__name {
  color: var(--ink) !important;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tmc__name:hover {
  text-decoration: underline !important;
  text-underline-offset: 3px;
}
.tmc__desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}
.tmc__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
}
.tmc-price {
  display: inline-flex;
  align-items: flex-start;
  gap: 3px;
  color: var(--ink);
  line-height: 1;
}
.tmc-price b {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.tmc-price span {
  font-size: 13px;
  font-weight: 700;
  margin-top: 2px;
}
.tmc-was {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}
.tmc__cart {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--accent);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.tmc__cart:hover {
  background: var(--accent-press);
}
.tmc__cart:active {
  transform: scale(0.94);
}
.tmc__cart[aria-busy="true"] {
  opacity: 0.6;
}
.tmc__cart.is-added {
  background: var(--ink);
  color: #fff;
}

/* сетка каталога */
.tmc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px 16px;
  margin-top: 8px;
}
.tmc-grid > .catalog-block__wrapper {
  min-width: 0;
  display: flex;
}
.tmc-grid .tmc {
  width: 100%;
}
@media (max-width: 1199px) {
  .tmc-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 767px) {
  .tmc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 12px;
  }
}
