

/* Start:/local/templates/klv/components/bitrix/catalog.section/klv/style.css?17941197439554*/
/* KLV «Паспорт» catalog cards: one height per row, the price block always at the bottom. */
/* cards at least 216px wide (196px made 5 a row next to the filters, which looked busy): 4 a row beside the filters,
   3 on smaller laptops and tablets, 5 on full-width lists (search, brand page) — about the same card size everywhere */
.klv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(216px, 1fr)); gap: 12px; }
.klv-card { position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 10px; background: var(--klv-card); border: 1px solid var(--klv-line); border-radius: 4px; transition: border-color 120ms ease; }
.klv-card:hover { border-color: var(--klv-line-strong); }

/* photo plate: every product stands on the same baseline at the same height */
.klv-card__plate { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: 2px; background: var(--klv-plate); overflow: hidden; }
.klv-card__plate img { position: absolute; left: 50%; bottom: 9%; height: 74%; width: auto; max-width: 82%; object-fit: contain; transform: translateX(-50%); mix-blend-mode: multiply; transition: transform 220ms var(--klv-ease); }
.klv-card:hover .klv-card__plate img { transform: translateX(-50%) translateY(-2px); }
.klv-card__badge { position: absolute; left: 8px; top: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 6px; background: #15181D; color: #FFFFFF; font-size: 12px; letter-spacing: .08em; }
.klv-card__badge .klv-i { color: currentColor; }

.klv-card__spec { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12.5px; line-height: 1.4; color: var(--klv-muted); min-height: 16px; }
.klv-card__name { height: calc(3 * 1.35em); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; }
.klv-card__name:hover { color: var(--klv-link); }

.klv-card__sizes { display: flex; flex-wrap: nowrap; align-items: center; gap: 12px; min-height: 26px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.klv-card__sizes::-webkit-scrollbar { display: none; }
.klv-card__sizes > * { flex: 0 0 auto; }
.klv-card__sizes button { padding: 2px 0; border: 0; border-bottom: 1.5px solid transparent; background: none; color: var(--klv-muted); font: 400 14px var(--klv-mono); cursor: pointer; }
.klv-card__sizes button:hover { color: var(--klv-ink); }
.klv-card__sizes button[aria-pressed="true"] { color: var(--klv-ink); font-weight: 600; border-bottom-color: var(--klv-ink); }
.klv-card__sizes .klv-mono { font-size: 14px; }
.klv-card__more { font-size: 13px; color: var(--klv-link); }

.klv-card__buy { margin-top: auto; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 4px 8px; }
.klv-card__price { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; }
.klv-card__price-value { font-size: 22px; font-weight: 700; letter-spacing: -.4px; line-height: 1.15; }
.klv-card__price .klv-mono { min-height: 17px; font-size: 13px; }
.klv-card__price-value.is-request { font-size: 16px; font-weight: 600; letter-spacing: 0; line-height: 1.3; white-space: nowrap; }
.klv-card__add { flex: 0 0 auto; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--klv-line-strong); border-radius: 4px; background: var(--klv-card); cursor: pointer; transition: border-color 120ms ease, background-color 120ms ease, transform 120ms ease; }
.klv-card__add .klv-i { color: var(--klv-ink); }
.klv-card__add:hover { border-color: var(--klv-ink); }
.klv-card__add:active { transform: scale(.96); }
.klv-card__add:disabled { opacity: .6; cursor: progress; }
.klv-card__add.is-added { border-color: var(--klv-btn); background: var(--klv-btn); }
.klv-card__add.is-added .klv-i { color: #FFFFFF; }
.klv-card__add[hidden], .klv-card__ask[hidden] { display: none; }
.klv-card__ask { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; font-size: 14px; }

.klv-card__stock { display: flex; align-items: center; gap: 6px; min-width: 0; padding-top: 8px; border-top: 1px solid var(--klv-line); font-size: 13px; color: var(--klv-muted); white-space: nowrap; overflow: hidden; }
.klv-card__stock .klv-i { color: currentColor; }
.klv-card__stock span { overflow: hidden; text-overflow: ellipsis; }
.klv-card__stock.is-ok { color: var(--klv-ok); }

@media (max-width: 720px) {
  .klv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .klv-card { padding: 8px; gap: 8px; }
  .klv-card__price-value { font-size: 18px; }
  .klv-card__name { font-size: 14px; }
  .klv-card__add { width: 40px; height: 40px; }
}
/* touch screens: size chips big enough for a thumb (they were 25×24) */
@media (pointer: coarse) {
  .klv-card__sizes { gap: 4px; min-height: 40px; }
  .klv-card__sizes button { min-width: 40px; min-height: 40px; padding: 6px 6px; }
  .klv-card__more { display: inline-flex; align-items: center; min-height: 40px; }
}

/* phones (≤560px): one product per line — photo left, details right, the stock line under both.
   Two narrow columns cut names and size labels; this keeps everything readable at one size larger. */
@media (max-width: 560px) {
  .klv-grid, .klv-home .klv-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .klv-card {
    display: grid; grid-template-columns: 116px minmax(0, 1fr);
    grid-template-areas: "plate spec" "plate name" "plate sizes" "plate buy" "stock stock";
    grid-template-rows: auto auto auto 1fr auto; column-gap: 14px; row-gap: 4px; padding: 10px;
  }
  .klv-card__plate { grid-area: plate; align-self: start; }
  .klv-card__badge { left: 4px; top: 4px; padding: 2px 4px; font-size: 11px; letter-spacing: .04em; }
  .klv-card__spec { grid-area: spec; }
  .klv-card__name { grid-area: name; height: auto; font-size: 16px; }
  .klv-card__sizes { grid-area: sizes; }
  .klv-card__buy { grid-area: buy; align-self: end; margin-top: 4px; }
  .klv-card__price-value { font-size: 20px; }
  .klv-card__stock { grid-area: stock; margin-top: 6px; }
}

/* «Плитка / Список» (klvViewSwitch in klv_theme.php): text toggles like the sort links next to them */
.klv-view { display: inline-flex; align-items: center; gap: 18px; margin-left: auto; } /* stays right when the bar wraps */
.klv-view button { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0; border: 0; background: none; color: var(--klv-muted); font: inherit; cursor: pointer; }
.klv-view button:hover { color: var(--klv-ink); }
.klv-view button[aria-pressed="true"] { color: var(--klv-ink); font-weight: 600; }
.klv-view button[aria-pressed="true"] .klv-i { color: currentColor; }
@media (pointer: coarse) { .klv-view button { min-height: 40px; } }
@media (max-width: 560px) { .klv-view { display: none; } } /* phones already show one product per line */

/* «Список»: one product per line in the lists that carry [data-klv-views] (catalog, search, brand page).
   Narrow lists use the phone layout; from 700px the photo, name, sizes and price sit in one row. */
[data-klv-views] { container: klv-list / inline-size; }
html[data-klv-view="list"] [data-klv-views] .klv-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
html[data-klv-view="list"] [data-klv-views] .klv-card {
  display: grid; grid-template-columns: 116px minmax(0, 1fr);
  grid-template-areas: "plate spec" "plate name" "plate sizes" "plate buy" "stock stock";
  grid-template-rows: auto auto auto 1fr auto; column-gap: 14px; row-gap: 4px; padding: 10px;
}
html[data-klv-view="list"] [data-klv-views] .klv-card__plate { grid-area: plate; align-self: start; }
html[data-klv-view="list"] [data-klv-views] .klv-card__badge { left: 4px; top: 4px; padding: 2px 4px; font-size: 11px; letter-spacing: .04em; }
html[data-klv-view="list"] [data-klv-views] .klv-card__spec { grid-area: spec; }
html[data-klv-view="list"] [data-klv-views] .klv-card__name { grid-area: name; height: auto; font-size: 16px; }
html[data-klv-view="list"] [data-klv-views] .klv-card__sizes { grid-area: sizes; }
html[data-klv-view="list"] [data-klv-views] .klv-card__buy { grid-area: buy; align-self: end; margin-top: 4px; }
html[data-klv-view="list"] [data-klv-views] .klv-card__stock { grid-area: stock; margin-top: 6px; }
@container klv-list (min-width: 700px) {
  html[data-klv-view="list"] [data-klv-views] .klv-card {
    grid-template-columns: 104px minmax(0, 1fr) minmax(150px, 240px) 210px;
    grid-template-areas: "plate spec sizes buy" "plate name sizes buy" "plate stock sizes buy";
    grid-template-rows: 1fr auto 1fr; column-gap: 24px; row-gap: 4px; padding: 10px 18px 10px 10px;
  }
  html[data-klv-view="list"] [data-klv-views] .klv-card__spec { align-self: end; }
  html[data-klv-view="list"] [data-klv-views] .klv-card__name { -webkit-line-clamp: 2; }
  html[data-klv-view="list"] [data-klv-views] .klv-card__stock { align-self: start; margin-top: 2px; padding-top: 0; border-top: 0; }
  html[data-klv-view="list"] [data-klv-views] .klv-card__sizes { align-self: center; flex-wrap: wrap; row-gap: 2px; overflow: visible; white-space: normal; }
  html[data-klv-view="list"] [data-klv-views] .klv-card__buy { align-self: center; margin-top: 0; justify-content: flex-end; gap: 2px 14px; } /* «Цена по запросу» and «Узнать цену» stack */
  html[data-klv-view="list"] [data-klv-views] .klv-card__price { align-items: flex-end; text-align: right; }
}

/* End */
/* /local/templates/klv/components/bitrix/catalog.section/klv/style.css?17941197439554 */
