/* Витрина «Ликвой» для Tilda (блок T123). Цвета и шрифт — переменные: их можно переопределить в блоке,
   чтобы витрина повторяла сайт, например:
   <style>.lkv-store, .lkv-modal { --lkv-accent: #e8442e; --lkv-font: 'TildaSans', Arial, sans-serif; }</style> */

.lkv-store,
.lkv-modal {
  --lkv-font: inherit;
  --lkv-text: #111111;
  --lkv-muted: #6b6b6b;
  --lkv-bg: #ffffff;
  --lkv-surface: #f4f4f2;
  --lkv-border: #e4e4e0;
  --lkv-accent: #111111;
  --lkv-accent-text: #ffffff;
  --lkv-accent-hover: #333333;
  --lkv-sold: #b3261e;
  --lkv-focus: #2f6fed;
  --lkv-radius: 14px;
  --lkv-radius-small: 10px;
  --lkv-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
  --lkv-gap: 24px;
  font-family: var(--lkv-font);
  color: var(--lkv-text);
  -webkit-text-size-adjust: 100%;
}

.lkv-store *,
.lkv-store *::before,
.lkv-store *::after,
.lkv-modal *,
.lkv-modal *::before,
.lkv-modal *::after {
  box-sizing: border-box;
}

.lkv-store [hidden],
.lkv-modal [hidden],
.lkv-modal[hidden] {
  display: none !important;
}

.lkv-store {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 40px;
  font-size: 16px;
  line-height: 1.45;
}

/* ---------------------------------------------------------------- фильтры */

.lkv-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 16px;
  margin: 0 0 16px;
  padding: 16px;
  background: var(--lkv-surface);
  border-radius: var(--lkv-radius);
}

.lkv-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 150px;
  flex: 1 1 160px;
  margin: 0;
}

.lkv-field--price {
  flex: 0 1 120px;
  min-width: 100px;
}

.lkv-field__label {
  font-size: 13px;
  color: var(--lkv-muted);
}

.lkv-select,
.lkv-input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  font: inherit;
  font-size: 15px;
  color: var(--lkv-text);
  background: var(--lkv-bg);
  border: 1px solid var(--lkv-border);
  border-radius: var(--lkv-radius-small);
  appearance: none;
  -webkit-appearance: none;
}

.lkv-select {
  padding-right: 34px;
  background-image: linear-gradient(45deg, transparent 50%, var(--lkv-muted) 50%),
    linear-gradient(135deg, var(--lkv-muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.lkv-reset,
.lkv-more {
  min-height: 44px;
  padding: 10px 18px;
  font: inherit;
  font-size: 15px;
  color: var(--lkv-text);
  background: transparent;
  border: 1px solid var(--lkv-border);
  border-radius: var(--lkv-radius-small);
  cursor: pointer;
}

.lkv-reset:hover,
.lkv-more:hover {
  border-color: var(--lkv-text);
}

.lkv-count {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--lkv-muted);
}

/* ---------------------------------------------------------------- сетка */

.lkv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--lkv-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.lkv-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: var(--lkv-bg);
  border: 1px solid var(--lkv-border);
  border-radius: var(--lkv-radius);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.lkv-card:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.lkv-card__media {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  overflow: hidden;
  background: var(--lkv-surface);
  border: 0;
  cursor: pointer;
}

.lkv-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.lkv-card:hover .lkv-card__media img {
  transform: scale(1.03);
}

.lkv-nophoto {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 120px;
  font-size: 14px;
  color: var(--lkv-muted);
}

.lkv-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px 16px;
}

.lkv-card__title {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
}

.lkv-card__link {
  color: inherit;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.lkv-card__link:hover {
  text-decoration: underline;
}

.lkv-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lkv-tag {
  padding: 3px 9px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--lkv-text);
  background: var(--lkv-surface);
  border-radius: 999px;
  overflow-wrap: anywhere;
}

.lkv-card__kit {
  margin: 0;
  font-size: 13px;
  color: var(--lkv-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lkv-card__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 4px;
}

.lkv-price {
  font-size: 20px;
  font-weight: 700;
  white-space: nowrap;
}
/* старая цена до скидки — зачёркнутая рядом с ценой (как priceold в каталоге Tilda) */
.lkv-prices,
.lkv-modal__prices {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
}
.lkv-price-old {
  font-size: 0.7em;
  font-weight: 400;
  color: var(--lkv-price-old, var(--lkv-muted));
  white-space: nowrap;
  text-decoration: line-through;
}
.lkv-modal__prices .lkv-price-old {
  font-size: 18px;
}

.lkv-buy {
  min-height: 44px;
  padding: 10px 20px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--lkv-accent-text);
  background: var(--lkv-accent);
  border: 0;
  border-radius: var(--lkv-radius-small);
  cursor: pointer;
  transition: background 0.15s ease;
}

.lkv-buy:hover:not(:disabled) {
  background: var(--lkv-accent-hover);
}

.lkv-buy:disabled {
  cursor: default;
  opacity: 0.6;
}

.lkv-buy--large {
  width: 100%;
  min-height: 52px;
  font-size: 17px;
}

.lkv-card--sold .lkv-card__media::after {
  content: 'Продано';
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  background: var(--lkv-sold);
  border-radius: 999px;
}

.lkv-card--sold .lkv-card__media img {
  filter: grayscale(0.7);
  opacity: 0.7;
}

.lkv-more {
  display: block;
  margin: 28px auto 0;
  min-width: 220px;
}

.lkv-status {
  margin: 16px 0 0;
  font-size: 15px;
  text-align: center;
}

.lkv-status:empty,
.lkv-modal__status:empty {
  display: none;
}

.lkv-store--error .lkv-status {
  color: var(--lkv-sold);
}

.lkv-hidden-link {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* ---------------------------------------------------------------- окно товара */

html.lkv-noscroll,
html.lkv-noscroll body {
  overflow: hidden;
}

.lkv-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lkv-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.6);
}

.lkv-modal__dialog {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 28px;
  width: 100%;
  max-width: 1040px;
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 28px;
  background: var(--lkv-bg);
  border-radius: var(--lkv-radius);
  box-shadow: var(--lkv-shadow);
  outline: none;
}

.lkv-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 44px;
  height: 44px;
  font-size: 28px;
  line-height: 1;
  color: var(--lkv-text);
  background: var(--lkv-bg);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.lkv-gallery {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.lkv-gallery__main {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--lkv-surface);
  border-radius: var(--lkv-radius-small);
  touch-action: pan-y;
}

.lkv-gallery__slot,
.lkv-gallery__slot img {
  display: block;
  width: 100%;
  height: 100%;
}

.lkv-gallery__slot img {
  object-fit: contain;
}

.lkv-gallery__nav {
  position: absolute;
  top: 50%;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  font-size: 30px;
  line-height: 1;
  color: var(--lkv-text);
  background: rgba(255, 255, 255, 0.85);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.lkv-gallery__nav--prev {
  left: 10px;
}

.lkv-gallery__nav--next {
  right: 10px;
}

.lkv-gallery__counter {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 2px 8px;
  font-size: 12px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 999px;
}

.lkv-gallery__counter:empty {
  display: none;
}

.lkv-gallery__thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.lkv-gallery__thumb {
  flex: 0 0 72px;
  height: 54px;
  padding: 0;
  overflow: hidden;
  background: var(--lkv-surface);
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
}

.lkv-gallery__thumb[aria-current='true'] {
  border-color: var(--lkv-accent);
}

.lkv-gallery__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lkv-modal__info {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding-top: 8px;
}

.lkv-modal__title {
  margin: 0;
  padding-right: 40px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.lkv-modal__price {
  margin: 0;
  font-size: 28px;
}

.lkv-specs {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  margin: 0;
  font-size: 15px;
}

.lkv-specs dt {
  color: var(--lkv-muted);
}

.lkv-specs dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.lkv-description {
  font-size: 15px;
  line-height: 1.55;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.lkv-modal__actions {
  display: flex;
  gap: 12px;
  margin: 4px 0 0;
}

.lkv-modal__status {
  margin: 0;
  font-size: 15px;
  color: var(--lkv-sold);
}

/* ---------------------------------------------------------------- доступность и адаптив */

.lkv-store :focus-visible,
.lkv-modal :focus-visible {
  outline: 3px solid var(--lkv-focus);
  outline-offset: 2px;
}

@media (max-width: 900px) {
  .lkv-modal {
    padding: 0;
  }

  .lkv-modal__dialog {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    max-height: 100%;
    height: 100%;
    padding: 56px 16px 24px;
    border-radius: 0;
  }

  .lkv-modal__title {
    font-size: 22px;
    padding-right: 0;
  }

  .lkv-modal__price {
    font-size: 24px;
  }
}

@media (max-width: 640px) {
  .lkv-store {
    --lkv-gap: 12px;
    padding: 0 12px 32px;
  }

  .lkv-toolbar {
    padding: 12px;
  }

  .lkv-field {
    flex: 1 1 140px;
  }

  .lkv-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lkv-card__body {
    gap: 8px;
    padding: 10px 10px 12px;
  }

  .lkv-card__title {
    font-size: 15px;
  }

  .lkv-card__kit {
    display: none;
  }

  .lkv-price {
    font-size: 17px;
  }

  .lkv-buy {
    width: 100%;
    padding: 10px 12px;
  }
}

@media (max-width: 340px) {
  .lkv-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lkv-card,
  .lkv-card__media img,
  .lkv-buy {
    transition: none;
  }

  .lkv-card:hover .lkv-card__media img {
    transform: none;
  }
}
/* ================================================================ раскладка «каталог» (data-layout="catalog")
   Повторяет штатный каталог Tilda ST320N: слева категории и фильтры (бренд, цена), сверху поиск и сортировка,
   карточки по три в ряд с сердечком «Избранное», на телефоне — категории «таблетками» и кнопка «Фильтры».
   Шрифты и цвета сайта задаются в блоке: --lkv-font, --lkv-font-accent (цены, категории), --lkv-part (цвет
   категорий на телефоне), --lkv-photo-radius. */
.lkv-store--catalog,
.lkv-modal--catalog {
  --lkv-font-accent: var(--lkv-font);
  --lkv-price-old: #770000;
  --lkv-part: var(--lkv-accent);
  --lkv-photo-radius: 30px;
  --lkv-control-bg: #f8f8f8;
  --lkv-control-border: rgba(0, 0, 0, 0.2);
}
.lkv-store.lkv-store--catalog {
  max-width: 1320px;
  padding: 0 20px 40px;
}
.lkv-store--catalog .lkv-catalog {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  grid-template-rows: auto auto 1fr auto auto;
  grid-template-areas:
    '. top'
    'parts grid'
    'filters grid'
    '. more'
    '. status';
  column-gap: 30px;
}
.lkv-store--catalog .lkv-parts {
  grid-area: parts;
}
.lkv-store--catalog .lkv-filters {
  grid-area: filters;
  align-self: start;
}
.lkv-store--catalog .lkv-topbar {
  grid-area: top;
}
.lkv-store--catalog .lkv-grid {
  grid-area: grid;
}
.lkv-store--catalog .lkv-more {
  grid-area: more;
}
.lkv-store--catalog .lkv-status {
  grid-area: status;
}
.lkv-store--catalog .lkv-bar {
  display: none;
}
.lkv-store--catalog .lkv-count {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
/* ---------------------------------------------------------------- категории */
.lkv-store--catalog .lkv-parts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 24px;
}
.lkv-store--catalog .lkv-part {
  padding: 0;
  font-family: var(--lkv-font-accent);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--lkv-text);
  text-align: left;
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
}
.lkv-store--catalog .lkv-part:hover {
  opacity: 0.7;
}
.lkv-store--catalog .lkv-part.is-active {
  opacity: 0.5;
  cursor: default;
}
/* ---------------------------------------------------------------- фильтры: бренд и цена */
.lkv-store--catalog .lkv-filters {
  margin: 0;
  padding: 0;
  background: none;
}
.lkv-store--catalog .lkv-filter {
  margin: 0 0 30px;
}
.lkv-store--catalog .lkv-filter__title {
  margin: 0 0 12px;
  font-family: var(--lkv-font-accent);
  font-size: 12px;
  font-weight: 500;
  color: var(--lkv-text);
}
.lkv-store--catalog .lkv-checks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.lkv-store--catalog .lkv-check__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  line-height: 1.3;
  cursor: pointer;
}
.lkv-store--catalog .lkv-check__input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--lkv-text);
  cursor: pointer;
}
.lkv-store--catalog .lkv-show-all {
  margin: 10px 0 0;
  padding: 0;
  font: inherit;
  font-size: 11px;
  color: var(--lkv-text);
  background: none;
  border: 0;
  border-bottom: 1px dashed currentColor;
  cursor: pointer;
}
.lkv-store--catalog .lkv-range {
  position: relative;
  height: 20px;
  margin: 0 7px 12px;
}
.lkv-store--catalog .lkv-range::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 2px;
  margin-top: -1px;
  background: rgba(0, 0, 0, 0.15);
}
.lkv-store--catalog .lkv-range__input {
  position: absolute;
  top: 0;
  left: -7px;
  width: calc(100% + 14px);
  height: 20px;
  margin: 0;
  padding: 0;
  background: none;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
}
.lkv-store--catalog .lkv-range__input::-webkit-slider-runnable-track {
  height: 20px;
  background: transparent;
}
.lkv-store--catalog .lkv-range__input::-moz-range-track {
  background: transparent;
}
.lkv-store--catalog .lkv-range__input::-webkit-slider-thumb {
  width: 14px;
  height: 14px;
  margin-top: 3px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.35);
  border-radius: 50%;
  pointer-events: auto;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.lkv-store--catalog .lkv-range__input::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.35);
  border-radius: 50%;
  pointer-events: auto;
  cursor: pointer;
}
.lkv-store--catalog .lkv-range__values {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lkv-store--catalog .lkv-range__value {
  width: 100%;
  min-height: 0;
  height: 30px;
  padding: 4px 8px;
  font-size: 12px;
  background: #ffffff;
  border: 1px solid var(--lkv-control-border);
  border-radius: 0;
}
.lkv-store--catalog .lkv-reset {
  min-height: 0;
  padding: 0;
  font-size: 11px;
  background: none;
  border: 0;
  border-bottom: 1px dashed currentColor;
  border-radius: 0;
}
/* ---------------------------------------------------------------- поиск и сортировка */
.lkv-store--catalog .lkv-topbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 30px;
  margin: 0 0 20px;
}
.lkv-store--catalog .lkv-search {
  display: block;
  margin: 0;
}
.lkv-store--catalog .lkv-search__input {
  width: 220px;
  height: 25px;
  padding: 2px 26px 2px 8px;
  font: inherit;
  font-size: 12px;
  color: var(--lkv-text);
  background: var(--lkv-control-bg)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 20'%3E%3Ccircle cx='9' cy='7' r='6' fill='none' stroke='black' stroke-width='1.5'/%3E%3Cpath d='M5 11.5 1 16.5' stroke='black' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E")
    right 7px center / 11px 14px no-repeat;
  border: 1px solid var(--lkv-control-border);
  border-radius: 3px;
  -webkit-appearance: none;
  appearance: none;
}
.lkv-store--catalog .lkv-sort {
  width: 200px;
  min-height: 0;
  height: 25px;
  padding: 2px 26px 2px 8px;
  font-size: 12px;
  background-color: var(--lkv-control-bg);
  border: 1px solid var(--lkv-control-border);
  border-radius: 3px;
}
/* ---------------------------------------------------------------- карточки */
.lkv-store--catalog .lkv-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 60px 0;
}
.lkv-store--catalog .lkv-card {
  padding: 0 5px;
  overflow: visible;
  background: none;
  border: 0;
  border-radius: 0;
}
.lkv-store--catalog .lkv-card:hover {
  box-shadow: none;
}
.lkv-store--catalog .lkv-card__imgwrap {
  position: relative;
}
.lkv-store--catalog .lkv-card__media {
  aspect-ratio: 1 / 1;
  background: none;
  border-radius: var(--lkv-photo-radius);
}
.lkv-store--catalog .lkv-card:hover .lkv-card__media img {
  transform: none;
}
.lkv-store--catalog .lkv-card__media .lkv-card__hover {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.2s ease;
}
@media (min-width: 961px) and (hover: hover) {
  .lkv-store--catalog .lkv-card:hover .lkv-card__hover {
    opacity: 1;
  }
}
/* на телефоне и сенсорных экранах второе фото не показывается — и не загружается (lazy + display: none) */
@media (max-width: 960px), (hover: none) {
  .lkv-store--catalog .lkv-card__media .lkv-card__hover {
    display: none;
  }
}
.lkv-store--catalog .lkv-fav {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 50px;
  height: 50px;
  padding: 0;
  background: #ffffff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='21' height='18' viewBox='0 0 21 18' fill='none'%3E%3Cpath d='M20 6.32647C20 11.4974 10.5 17 10.5 17C10.5 17 1 11.4974 1 6.32647C1 -0.694364 10.5 -0.599555 10.5 5.57947C10.5 -0.599555 20 -0.507124 20 6.32647Z' stroke='black' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 21px 18px no-repeat;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.lkv-store--catalog .lkv-fav.is-active {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='21' height='18' viewBox='0 0 21 18' fill='black'%3E%3Cpath d='M20 6.32647C20 11.4974 10.5 17 10.5 17C10.5 17 1 11.4974 1 6.32647C1 -0.694364 10.5 -0.599555 10.5 5.57947C10.5 -0.599555 20 -0.507124 20 6.32647Z' stroke='black' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.lkv-store--nofav .lkv-fav {
  display: none;
}
.lkv-store--catalog .lkv-card__body {
  align-items: center;
  gap: 10px;
  padding: 20px 0 0;
  text-align: center;
}
.lkv-store--catalog .lkv-card__title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
}
.lkv-store--catalog .lkv-card__link:hover {
  text-decoration: none;
  opacity: 0.7;
}
.lkv-store--catalog .lkv-card__footer {
  flex-direction: column;
  justify-content: center;
  margin-top: 0;
  padding-top: 0;
}
.lkv-store--catalog .lkv-price,
.lkv-modal--catalog .lkv-price,
.lkv-store--catalog .lkv-price-old,
.lkv-modal--catalog .lkv-price-old {
  font-family: var(--lkv-font-accent);
  font-weight: 400;
}
.lkv-store--catalog .lkv-price {
  font-size: 14px;
}
.lkv-store--catalog .lkv-more,
.lkv-modal--catalog .lkv-buy--large {
  justify-self: center;
  width: auto;
  min-height: 45px;
  margin-top: 40px;
  padding: 0 30px;
  font-size: 14px;
  font-weight: 600;
  color: var(--lkv-accent-text);
  background: var(--lkv-accent);
  border: 0;
  border-radius: 4px;
}
.lkv-modal--catalog .lkv-buy--large {
  margin-top: 10px;
}
/* ---------------------------------------------------------------- окно товара как у Tilda */
.lkv-modal--catalog {
  padding: 0;
}
.lkv-modal--catalog .lkv-modal__backdrop {
  background: #ffffff;
}
.lkv-modal--catalog .lkv-modal__dialog {
  max-width: 1240px;
  height: 100%;
  max-height: none;
  padding: 70px 20px 40px;
  border-radius: 0;
  box-shadow: none;
  align-content: start;
}
.lkv-modal--catalog .lkv-modal__close {
  position: fixed;
  top: 20px;
  left: 20px;
  width: auto;
  height: auto;
  padding: 0;
  font-size: 15px;
  opacity: 0.8;
  background: none;
  border-radius: 0;
}
.lkv-modal--catalog .lkv-modal__close::before {
  content: '←\00a0';
}
.lkv-modal--catalog .lkv-gallery__main {
  aspect-ratio: 1 / 1;
  background: none;
  border-radius: 0;
}
.lkv-modal--catalog .lkv-gallery__slot img {
  object-fit: cover;
}
.lkv-modal--catalog .lkv-gallery__nav {
  width: 40px;
  height: 40px;
  margin-top: -20px;
  font-size: 22px;
  background: #ffffff;
  border-radius: 50%;
}
.lkv-modal--catalog .lkv-gallery__nav:hover {
  color: #ffffff;
  background: var(--lkv-accent-hover);
}
.lkv-modal--catalog .lkv-gallery__thumb {
  border-radius: 0;
}
.lkv-modal--catalog .lkv-modal__title {
  padding-right: 0;
  font-size: 24px;
  font-weight: 600;
}
.lkv-modal--catalog .lkv-modal__price {
  font-size: 20px;
}
/* ---------------------------------------------------------------- телефон и планшет (как ST320N до 960px) */
@media (max-width: 960px) {
  .lkv-store.lkv-store--catalog {
    padding: 0 10px 32px;
  }
  .lkv-store--catalog .lkv-catalog {
    display: flex;
    flex-direction: column;
  }
  .lkv-store--catalog .lkv-parts {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    margin: 0 0 20px;
  }
  .lkv-store--catalog .lkv-part,
  .lkv-store--catalog .lkv-part.is-active {
    margin: 4px;
    padding: 7px 12px;
    line-height: 1.15;
    color: var(--lkv-part);
    border: 1px solid var(--lkv-part);
    border-radius: 999px;
    opacity: 1;
  }
  .lkv-store--catalog .lkv-part.is-active {
    color: #ffffff;
    background: var(--lkv-part);
  }
  .lkv-store--catalog .lkv-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 10px 30px;
  }
  .lkv-store--catalog .lkv-bar__filters {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    font-family: var(--lkv-font-accent);
    font-size: 10px;
    line-height: 24px;
    color: var(--lkv-text);
    background: none;
    border: 0;
    cursor: pointer;
  }
  .lkv-store--catalog .lkv-bar__filters::before {
    content: '';
    width: 11px;
    height: 17px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 17'%3E%3Cpath d='M2.5 0v17M8.5 0v17' stroke='%231d1d1b' stroke-width='1.2'/%3E%3Ccircle cx='2.5' cy='5' r='2' fill='white' stroke='%231d1d1b' stroke-width='1.2'/%3E%3Ccircle cx='8.5' cy='12' r='2' fill='white' stroke='%231d1d1b' stroke-width='1.2'/%3E%3C/svg%3E")
      center / contain no-repeat;
  }
  .lkv-store--catalog .lkv-bar__search {
    width: 20px;
    height: 20px;
    padding: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 20'%3E%3Ccircle cx='9' cy='7' r='6' fill='none' stroke='black' stroke-width='1.5'/%3E%3Cpath d='M5 11.5 1 16.5' stroke='black' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E")
      center / 16px 20px no-repeat;
    border: 0;
    cursor: pointer;
  }
  .lkv-store--catalog .lkv-filters,
  .lkv-store--catalog .lkv-topbar,
  .lkv-store--catalog .lkv-topbar .lkv-search,
  .lkv-store--catalog .lkv-topbar .lkv-sort {
    display: none;
  }
  .lkv-store--catalog .is-filters .lkv-filters {
    display: block;
    margin: 0 10px 20px;
  }
  .lkv-store--catalog .is-filters .lkv-topbar,
  .lkv-store--catalog .is-search .lkv-topbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: stretch;
    gap: 10px;
    margin: 0 10px 20px;
  }
  .lkv-store--catalog .is-filters .lkv-topbar .lkv-sort,
  .lkv-store--catalog .is-search .lkv-topbar .lkv-search {
    display: block;
    flex: 1 1 100%;
  }
  .lkv-store--catalog .lkv-search__input,
  .lkv-store--catalog .lkv-sort {
    width: 100%;
    height: 34px;
    font-size: 14px;
  }
  .lkv-store--catalog .lkv-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 60px 0;
  }
  .lkv-store--catalog .lkv-fav {
    transform: scale(0.68);
    transform-origin: top right;
  }
  .lkv-store--catalog .lkv-card__title {
    font-size: 14px;
  }
  .lkv-store--catalog .lkv-price {
    font-size: 10px;
  }
}
@media (max-width: 560px) {
  .lkv-modal--catalog .lkv-modal__dialog {
    padding: 70px 20px 30px;
  }
  .lkv-modal--catalog .lkv-modal__close {
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    height: 50px;
    padding: 0 20px;
    font-size: 0;
    color: #ffffff;
    text-align: right;
    background: #000000;
    opacity: 1;
  }
  .lkv-modal--catalog .lkv-modal__close::before {
    content: '×';
    font-size: 30px;
    line-height: 50px;
  }
}
@media (max-width: 340px) {
  .lkv-store--catalog .lkv-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
