/* =====================================================================
   TOPLOFT · комбо-наборы (компонент) — замеры toploft.shop/catalog/kombo:
   карточка белая, тень 1px 1px 12px / 15 %, радиус 32 (телефон 16), поля 16; фото квадрат радиус 16;
   название 20/700; цена 28/900 #e3211c на #fff48b, радиус 8; старая 22/500 зачёркнута «маркером»;
   состав: фон 3 %, рамка, радиус 8, поля 8, миниатюра, название 14/600, цены 14/800 #dc3545 и 14/500 зачёркнутая;
   кнопка тёмная на всю ширину, радиус 16. 4 колонки / 3 / 1.
   ===================================================================== */
.tl-combo { font-family: var(--tl-font, "Montserrat", sans-serif); color: #212529; }
.tl-combo *, .tl-combo *::before, .tl-combo *::after { box-sizing: border-box; }
.tl-combo :where(h3) { margin: 0; }
.tl-combo :where(a) { color: inherit; text-decoration: none; }
.tl-combo :where(a):focus { outline: none; }

.tl-combo__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.tl-combo--c3 .tl-combo__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tl-combo__card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 16px;
  border-radius: 32px;
  background: #fff;
  box-shadow: 1px 1px 12px rgb(0 0 0 / 15%);
}
.tl-combo__img { display: block; overflow: hidden; aspect-ratio: 1; margin-bottom: 16px; border-radius: 16px; background: #f1f1f1; }
.tl-combo__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tl-combo__name { margin-bottom: 8px; font-size: 20px; font-weight: 700; line-height: 1.2; }
.tl-combo__name a:hover { color: #555; }

.tl-combo__price { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 12px; }
.tl-combo__price b { padding: 2px 8px; border-radius: 8px; font-size: 28px; font-weight: 900; line-height: 1.2; color: #e3211c; background: #fff48b; }
/* старая цена зачёркнута косой линией поверх жёлтого «маркера» — как на старом сайте */
.tl-combo__price s { position: relative; padding: 2px 4px; font-size: 22px; font-weight: 500; text-decoration: none; color: #222; }
.tl-combo__price s::before { content: ""; position: absolute; left: 0; right: 0; bottom: 18%; z-index: -1; height: 38%; background: #fff48b; }
.tl-combo__price s::after { content: ""; position: absolute; left: -2px; right: -2px; top: 50%; height: 2px; background: #222; transform: rotate(-6deg); }
.tl-combo__price s { isolation: isolate; }

.tl-combo__items { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.tl-combo__item {
  display: grid;
  grid-template-columns: 56px 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  padding: 8px;
  border: 1px solid rgb(0 0 0 / 17.5%);
  border-radius: 8px;
  background: rgb(33 37 41 / 3%);
  box-shadow: 0 .125rem .25rem rgb(0 0 0 / 7.5%);
  transition: border-color .2s;
}
.tl-combo__item:hover { border-color: rgb(0 0 0 / 35%); }
.tl-combo__item img { grid-row: 1 / 3; width: 56px; height: 56px; border-radius: 6px; object-fit: cover; background: #fff; }
.tl-combo__iname { align-self: end; font-size: 14px; font-weight: 600; line-height: 1.25; }
.tl-combo__iprice { align-self: start; display: flex; flex-wrap: wrap; gap: 0 8px; margin-top: 4px; font-size: 14px; }
.tl-combo__iprice b { font-weight: 800; color: #dc3545; }
.tl-combo__iprice s { font-weight: 500; }

.tl-combo__btn {
  display: block;
  margin-top: auto;
  padding: 10px 12px;
  border-radius: 16px;
  font-size: 16px;
  text-align: center;
  color: #fff !important;
  background: #212529;
  transition: background-color .2s;
}
.tl-combo__btn:hover { background: #424649; }

@media (max-width: 1279.98px) { .tl-combo__grid, .tl-combo--c3 .tl-combo__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .tl-combo__price b { font-size: 24px; } .tl-combo__price s { font-size: 18px; } }
@media (max-width: 1023.98px) { .tl-combo__grid, .tl-combo--c3 .tl-combo__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767.98px) {
  .tl-combo__grid, .tl-combo--c3 .tl-combo__grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .tl-combo__card { border-radius: 16px; }
  .tl-combo__price b { padding: 1px 6px; font-size: 20px; }
  .tl-combo__price s { font-size: 16px; }
  .tl-combo__item { grid-template-columns: 71px 1fr; }
  .tl-combo__item img { width: 71px; height: 71px; }
  .tl-combo__iname { font-size: 12px; }
}
