html,
body {
  margin: 0;
  padding: 0;
  background: #ffffff;
}

:root {
  --snm-safe-top: env(safe-area-inset-top, 0px);
  --snm-header-h: 63px;
  --snm-top: calc(var(--snm-safe-top) + var(--snm-header-h));
}

@media screen and (max-width: 1199px) {
  :root { --snm-header-h: 54px; }
}

@media screen and (max-width: 639px) {
  :root { --snm-header-h: 50px; }
}

@media screen and (max-width: 479px) {
  :root { --snm-header-h: 48px; }
}

/* Планшет 500–980: мобильная версия по центру, поля по бокам */
@media (min-width: 500px) and (max-width: 1200px) {
  html.snm-force-mobile {
    background: #ffffff;
  }

  html.snm-force-mobile body {
    background: #ffffff;
  }

  html.snm-force-mobile #allrecords {
    max-width: 393px;
    margin-left: auto !important;
    margin-right: auto !important;
    overflow-x: hidden;
  }

  /* убираем горизонтальный скролл */
  html.snm-force-mobile,
  html.snm-force-mobile body {
    overflow-x: hidden;
  }
}

/* HEADER WRAPPER */
#rec999721551 {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 99999;
  background: transparent !important;
  overflow: visible !important;
}

/* ЕДИНЫЙ GLASS СЛОЙ: safe area + header */
#rec999721551::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--snm-top);
  z-index: 99998;
  pointer-events: none;

  background: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
}

/* УБРАТЬ rectangle из ZB (если не удалил в редакторе) */
#rec999721551 .tn-elem[data-elem-id="1779706643883000001"] {
  display: none !important;
}

/* УБРАТЬ стандартные Tilda BG слои */
#rec999721551 .t396__carrier,
#rec999721551 .t396__filter {
  display: none !important;
}

/* ARTBOARD = только контейнер иконок/логотипа (без blur/background) */
#rec999721551 .t396__artboard {
  position: fixed !important;
  top: var(--snm-safe-top) !important;
  left: 0 !important;
  width: 100% !important;
  height: var(--snm-header-h) !important;
  padding-top: 0 !important;
  box-sizing: border-box !important;
  z-index: 99999 !important;

  background: transparent !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  border: none !important;
  box-shadow: none !important;
  overflow: visible !important;
}

/* Контент ниже safe area + header */
body {
  padding-top: var(--snm-top) !important;
}

/* Слайдер под стеклом от самого верха */
#rec528868282nlm {
  margin-top: calc(-1 * var(--snm-top)) !important;
}

/* Убираем серый/цветной tap highlight на мобильных */
html,
body,
a,
button,
[role="button"],
.tn-atom,
.t-menu__link-item,
.t-btn,
.t-submit,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent !important;
  tap-highlight-color: transparent;
}

/* Убираем вспышку/маску в момент нажатия */
a:active,
button:active,
[role="button"]:active,
.tn-atom:active,
.t-menu__link-item:active,
.t-btn:active,
.t-submit:active {
  background-color: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Чтобы не было синей обводки на мобильном таче */
a:focus,
button:focus,
[role="button"]:focus,
.tn-atom:focus,
.t-menu__link-item:focus,
.t-btn:focus,
.t-submit:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* ==== Render optimization (без потери качества) ==== */
/* Safe performance tweaks (без поломки popups) */
.t396__artboard,
.t-store__card,
.t-slds__item {
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* Важно для popup-окон Tilda */
.t1002__wishlistwin,
.t706__cartwin,
.t-popup,
.t-store__userbar,
.t-store__search-wrapper {
  content-visibility: visible !important;
  contain: none !important;
}

/* Меньше перерисовок при скролле */
.t396__artboard,
.t-store__card,
.t-slds__item {
  backface-visibility: hidden;
  transform: translateZ(0);
}

.js-product .js-product-img,
.js-product .t-catalog__card__bgimg,
.js-product .t-store__card__bgimg {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.snm-slide-layer {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* Всегда 3 точки */
.snm-prod-dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 8;
  pointer-events: none;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
  backdrop-filter: blur(6px) saturate(120%);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.snm-prod-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9a9a9a;
}

.snm-prod-dot.is-active {
  background: #111111;
}

/* =========================================================
   ST340 GLOBAL (все блоки каталога / record-type 1291)
   ========================================================= */

/* =========================
   1) Бейдж NEW/SALE
   ========================= */
#allrecords .t-rec[data-record-type="1291"] .t-catalog__card__mark,
#allrecords .t-rec[data-record-type="1291"] .t-store__card__mark {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;

  height: 18px !important;
  min-height: 18px !important;
  padding: 0 7px !important;
  border-radius: 8px !important;

  font-size: 9px !important;
  line-height: 1 !important;
  font-weight: 0 !important;
  letter-spacing: 0.01em !important;
  text-transform: uppercase !important;
  color: #111 !important;

  background: rgba(255, 255, 255, 0.24) !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.14) !important;
}

#allrecords .t-rec[data-record-type="1291"] .t-catalog__card__mark-wrapper,
#allrecords .t-rec[data-record-type="1291"] .t-store__card__mark-wrapper {
  width: auto !important;
}

/* =========================
   2) Строка Фильтры / Сортировка
   ========================= */
#allrecords .t-rec[data-record-type="1291"] .t-catalog__filter__controls-wrapper {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

#allrecords .t-rec[data-record-type="1291"] .t-catalog__filter__opts-mob-btn {
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1.1 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin-left: 0 !important;
}

#allrecords .t-rec[data-record-type="1291"] .t-catalog__filter__sort-mob-btn {
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1.1 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  width: auto !important;
  margin-right: 0 !important;
}

#allrecords .t-rec[data-record-type="1291"] .t-catalog__filter__sort-mob-btn::before {
  content: "Сортировка";
  font-size: 12px;
  font-weight: 500;
  line-height: 1.1;
  color: inherit;
}

#allrecords .t-rec[data-record-type="1291"] .t-catalog__filter__opts-mob-btn-icon,
#allrecords .t-rec[data-record-type="1291"] .t-catalog__filter__opts-mob-btn svg,
#allrecords .t-rec[data-record-type="1291"] .t-catalog__filter__sort-mob-btn-icon,
#allrecords .t-rec[data-record-type="1291"] .t-catalog__filter__sort-mob-btn svg {
  width: 16px !important;
  height: 16px !important;
}

/* =========================
   3) Текст внутри попапов
   ========================= */
#allrecords .t-rec[data-record-type="1291"] .t-catalog__filter__options .t-catalog__filter__item-title {
  font-size: 14px !important;
  font-weight: 500 !important;
}

#allrecords .t-rec[data-record-type="1291"] .t-catalog__filter__options .t-catalog__filter__title,
#allrecords .t-rec[data-record-type="1291"] .t-catalog__filter__options .t-catalog__sort-select,
#allrecords .t-rec[data-record-type="1291"] .t-catalog__filter__options .t-catalog__filter__input,
#allrecords .t-rec[data-record-type="1291"] .t-catalog__filter__options .t-catalog__filter__reset,
#allrecords .t-rec[data-record-type="1291"] .t-catalog__filter__options .t-catalog__filter__prods-number {
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
}

#allrecords .t-rec[data-record-type="1291"] .t-catalog__filter__item_sort-mobile .t-catalog__filter__item-title,
#allrecords .t-rec[data-record-type="1291"] .t-catalog__filter__item_sort-mobile .t-catalog__filter__custom-sel,
#allrecords .t-rec[data-record-type="1291"] .t-catalog__filter__item_sort-mobile .t-catalog__filter__title {
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
}

#allrecords .t-rec[data-record-type="1291"] .t-catalog__filter__item_sort-mobile .t-catalog__sort-select,
#allrecords .t-rec[data-record-type="1291"] .t-catalog__filter__item_sort-mobile .t-catalog__sort-select option {
  font-size: 14px !important;
  font-weight: 500 !important;
}

/* =========================
   4) КЛЮЧЕВОЙ фикс зазора (только st340, mobile)
   Убирает 40px пустоты в начале .t1291
   ========================= */
@media (max-width: 980px) {
  #allrecords .t-rec[data-record-type="1291"] > .t1291 {
    margin-top: -40px !important;
  }
}

#allrecords .t-rec[data-record-type="1291"] .t-catalog__filter-wrapper,
#allrecords .t-rec[data-record-type="1291"] .t-catalog__filter,
#allrecords .t-rec[data-record-type="1291"] .t-catalog__filter__controls-wrapper {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

#allrecords .t-rec[data-record-type="1291"] .t-catalog__filter {
  padding-bottom: 8px !important;
}

/* =========================
   5) Кнопка «Выбрать размер»
   ========================= */
#allrecords .t-rec[data-record-type="1291"] .t-btnflex.t-btnflex_type_button.js-catalog-prod-btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;

  color: #111 !important;
  border-radius: 8px !important;
  border: 1px solid rgba(198, 198, 202, 0.9) !important;

  background: rgba(255, 255, 255, 0.32) !important;
  -webkit-backdrop-filter: blur(8px) saturate(120%) !important;
  backdrop-filter: blur(8px) saturate(120%) !important;

  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.55),
    0 2px 8px rgba(0, 0, 0, 0.08) !important;

  filter: none !important;
}

#allrecords .t-rec[data-record-type="1291"] .t-btnflex.t-btnflex_type_button.js-catalog-prod-btn::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 1px;
  height: 36%;
  border-radius: 8px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0));
  pointer-events: none;
}

#allrecords .t-rec[data-record-type="1291"] .t-btnflex.t-btnflex_type_button.js-catalog-prod-btn:hover,
#allrecords .t-rec[data-record-type="1291"] .t-btnflex.t-btnflex_type_button.js-catalog-prod-btn:focus-visible,
#allrecords .t-rec[data-record-type="1291"] .t-btnflex.t-btnflex_type_button.js-catalog-prod-btn:active {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.6),
    0 3px 10px rgba(0, 0, 0, 0.09) !important;
}

/* =========================================================
   ST340: сетка карточек (mobile, 2 колонки)
   Подкрутка: --st340-side-pad / --st340-col-gap / --st340-img-radius
   ========================================================= */
@media (max-width: 980px) {
  #allrecords .t-rec[data-record-type="1291"] {
    --st340-side-pad: 13px;   /* слева/справа от экрана */
    --st340-col-gap: 14px;    /* между карточками */
    --st340-row-gap: 10px;
    --st340-img-radius: 5px;
  }
}
  /* Общий контейнер: фильтры + каталог в одной сетке */
  #allrecords .t-rec[data-record-type="1291"] .t-catalog__cont-w-filter {
    padding-left: var(--st340-side-pad) !important;
    padding-right: var(--st340-side-pad) !important;
  }

  /* Сетка карточек */
  #allrecords .t-rec[data-record-type="1291"] .t-catalog__card-list {
    --t-catalog-col-gap: var(--st340-col-gap) !important;
    --t-catalog-row-gap: var(--st340-row-gap) !important;
    column-gap: var(--st340-col-gap) !important;
    row-gap: var(--st340-row-gap) !important;
    gap: var(--st340-row-gap) var(--st340-col-gap) !important;
  }

  /* Ширина карточки: 2 колонки */
  #allrecords .t-rec[data-record-type="1291"] .t-catalog__card,
  #allrecords .t-rec[data-record-type="1291"] .t-store__card {
    width: calc((100% - var(--st340-col-gap)) / 2) !important;
    max-width: calc((100% - var(--st340-col-gap)) / 2) !important;
    flex: 0 0 calc((100% - var(--st340-col-gap)) / 2) !important;
  }

  /* Скругление фото */
  #allrecords .t-rec[data-record-type="1291"] .t-catalog__card__imgwrapper,
  #allrecords .t-rec[data-record-type="1291"] .t-catalog__card__bgimg,
  #allrecords .t-rec[data-record-type="1291"] .t-catalog__card__img {
    border-radius: var(--st340-img-radius) !important;
    overflow: hidden;
  }
}

@media (max-width: 980px) {
  /* Пропорция фото как в Figma: 177 × 241 */
  #allrecords .t-rec[data-record-type="1291"] .t-catalog__card__imgwrapper {
    padding-bottom: 0 !important;      /* убираем трюк Tilda 3:4 */
    height: auto !important;
    aspect-ratio: 177 / 241 !important;
  }

  #allrecords .t-rec[data-record-type="1291"] .t-catalog__card__bgimg {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
  }
}

/* =========================================================
   ST340: отступы внутри карточки
   ========================================================= */
@media (max-width: 980px) {
  #allrecords .t-rec[data-record-type="1291"] {
    --st340-gap-img-title: 9px;   /* фото → название (было 12) */
    --st340-gap-title-price: 5px;  /* название → цена (было 12) */
    --st340-gap-text-btn: 12px;   /* блок название+цена → кнопка (было 20) */
  }

  /* Фото → название */
  #allrecords .t-rec[data-record-type="1291"] .t-catalog__card__wrap_txt-and-btns {
    padding-top: var(--st340-gap-img-title) !important;
  }

  /* Название → цена */
  #allrecords .t-rec[data-record-type="1291"] .t-catalog__card__price-wrapper,
  #allrecords .t-rec[data-record-type="1291"] .t-catalog__card__price-wrapper_below-title {
    margin-top: var(--st340-gap-title-price) !important;
  }

  /* Название+цена → кнопка */
  #allrecords .t-rec[data-record-type="1291"] .t-catalog__card__wrap_txt-and-opts {
    margin-bottom: var(--st340-gap-text-btn) !important;
  }
}

/* =========================================================
   ST340: скрыть кнопку «Выбрать размер»
   Чтобы ВЕРНУТЬ — закомментируй или удали весь блок ниже
   ========================================================= */
#allrecords .t-rec[data-record-type="1291"] .t-catalog__card__btns-wrapper,
#allrecords .t-rec[data-record-type="1291"] .js-catalog-prod-btn.t-catalog__card__btn,
#allrecords .t-rec[data-record-type="1291"] .t-btnflex.t-btnflex_type_button.js-catalog-prod-btn {
  display: none !important;
}

/* Лишний отступ под текстом (был под кнопку) — убрать вместе с кнопкой */
#allrecords .t-rec[data-record-type="1291"] .t-catalog__card__wrap_txt-and-opts {
  margin-bottom: 0 !important;
}

/* =========================================================
   ST340: строка размеров под ценой (snm-card-sizes)
   ========================================================= */
#allrecords .t-rec[data-record-type="1291"] .snm-card-sizes {
  display: block !important;
  margin-top: 6px; /* отступ от цены — подстрой 3–6px */

  font-size: 12px !important;
  line-height: 1.2 !important;
  font-weight: 400 !important;
  letter-spacing: 0.06em;

  /* как у цены (не inherit — иначе красный цвет ссылки ) */
  color: #000000 !important;
  font-family: sfprodisplay, Arial, sans-serif !important;

  text-transform: none;
  text-decoration: none;
}

/* если блок внутри ссылки на товар */
#allrecords .t-rec[data-record-type="1291"] a .snm-card-sizes {
  color: #000000 !important;
  font-family: sfprodisplay, Arial, sans-serif !important;
}

/* SAY NO MORE product page 2.5 SAFE */

/* === EDIT: основные цвета === */
html body #allrecords[data-product-page="y"] #rec2141172011 {
  --snm2-text: #313131;
  --snm2-muted: #a2a2a2;
  --snm2-bar: rgba(0, 0, 0, 0.5);
  --snm2-button: rgba(0, 0, 0, 0.55);
  --snm2-size: rgba(255, 255, 255, 0.3);
  --snm2-dot-glass: rgba(255, 255, 255, 0.36);
}

/* === EDIT: общий layout товара === */
html body #allrecords[data-product-page="y"] #rec2141172011 .t-catalog__prod-snippet__container {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

html body #allrecords[data-product-page="y"] #rec2141172011 .t-catalog__prod-popup__close-txt-wr,
html body #allrecords[data-product-page="y"] #rec2141172011 .t-popup__close,
html body #allrecords[data-product-page="y"] #rec2141172011 .t-catalog__prod-popup__sku {
  display: none !important;
}

/* === EDIT: галерея === */
html body #allrecords[data-product-page="y"] #rec2141172011 .t-catalog__prod-popup__slider {
  width: 389px !important;
  max-width: 100% !important;
  height: 473px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 0 !important;
  overflow: hidden !important;
}

html body #allrecords[data-product-page="y"] #rec2141172011 .t-slds {
  position: relative !important;
  width: 389px !important;
  max-width: 100% !important;
  height: 473px !important;
  overflow: hidden !important;
}

html body #allrecords[data-product-page="y"] #rec2141172011 .t-slds__main,
html body #allrecords[data-product-page="y"] #rec2141172011 .t-slds__container,
html body #allrecords[data-product-page="y"] #rec2141172011 .t-slds__items-wrapper,
html body #allrecords[data-product-page="y"] #rec2141172011 .t-slds__item,
html body #allrecords[data-product-page="y"] #rec2141172011 .t-slds__wrapper,
html body #allrecords[data-product-page="y"] #rec2141172011 .t-slds__imgwrapper {
  height: 473px !important;
}

html body #allrecords[data-product-page="y"] #rec2141172011 .t-slds__imgwrapper {
  position: relative !important;
  overflow: hidden !important;
  background: transparent !important;
}

html body #allrecords[data-product-page="y"] #rec2141172011 .snm2-gallery-blur {
  display: none !important;
}

html body #allrecords[data-product-page="y"] #rec2141172011 .t-slds__bgimg {
  position: relative !important;
  z-index: 2 !important;
  height: 473px !important;
  padding-bottom: 0 !important;
  background-size: contain !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

html body #allrecords[data-product-page="y"] #rec2141172011 .t-slds__arrow_container,
html body #allrecords[data-product-page="y"] #rec2141172011 .t-slds__arrow_wrapper,
html body #allrecords[data-product-page="y"] #rec2141172011 .t-slds__arrow {
  opacity: 0 !important;
  pointer-events: none !important;
}

html body #allrecords[data-product-page="y"] #rec2141172011 .snm2-slider-dots {
  display: none !important;
}

html body #allrecords[data-product-page="y"] #rec2141172011 .t-slds__bullet_wrapper {
  position: absolute !important;
  left: 50% !important;
  bottom: 12px !important;
  z-index: 30 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  width: auto !important;
  height: 18px !important;
  min-height: 18px !important;
  padding: 0 9px !important;
  margin: 0 !important;
  border-radius: 999px !important;
  background: var(--snm2-dot-glass) !important;
  backdrop-filter: blur(7px) !important;
  transform: translateX(-50%) !important;
  pointer-events: auto !important;
}

html body #allrecords[data-product-page="y"] #rec2141172011 .t-slds__bullet {
  display: block !important;
  width: 5px !important;
  height: 5px !important;
  min-width: 5px !important;
  min-height: 5px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

html body #allrecords[data-product-page="y"] #rec2141172011 .t-slds__bullet_body {
  display: block !important;
  width: 5px !important;
  height: 5px !important;
  min-width: 5px !important;
  min-height: 5px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.78) !important;
}

html body #allrecords[data-product-page="y"] #rec2141172011 .t-slds__bullet_active .t-slds__bullet_body {
  background: rgba(49, 49, 49, 0.92) !important;
}

/* === EDIT: заголовок + сердечко === */
html body #allrecords[data-product-page="y"] #rec2141172011 .snm2-title-row {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 12px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

html body #allrecords[data-product-page="y"] #rec2141172011 .snm2-title-slot {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

html body #allrecords[data-product-page="y"] #rec2141172011 .snm2-fav-slot {
  flex: 0 0 28px !important;
  width: 28px !important;
  height: 22px !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
}

html body #allrecords[data-product-page="y"] #rec2141172011.snm2-desc-expanded .snm2-fav-slot {
  visibility: visible !important;
}

html body #allrecords[data-product-page="y"] #rec2141172011 .snm2-fav-slot .t1002__addBtn,
html body #allrecords[data-product-page="y"] #rec2141172011 .snm2-fav-slot a[href="#addtofavorites"],
html body #allrecords[data-product-page="y"] #rec2141172011 .snm2-heart-btn {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: center !important;
  width: 28px !important;
  min-width: 28px !important;
  height: 22px !important;
  min-height: 22px !important;
  line-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #000 !important;
}

html body #allrecords[data-product-page="y"] #rec2141172011 .snm2-heart-icon {
  width: 22px !important;
  height: 21px !important;
  display: block !important;
}

html body #allrecords[data-product-page="y"] #rec2141172011 .snm2-heart-icon path {
  transition: fill 160ms ease !important;
  fill: transparent !important;
  stroke: #000 !important;
}

html body #allrecords[data-product-page="y"] #rec2141172011 .snm2-heart-active .snm2-heart-icon path,
html body #allrecords[data-product-page="y"] #rec2141172011 .t1002__addBtn_active .snm2-heart-icon path,
html body #allrecords[data-product-page="y"] #rec2141172011 .t1002__addBtn_active svg path {
  fill: #000 !important;
  stroke: #000 !important;
}

html body #allrecords[data-product-page="y"] #rec2141172011 .t-catalog__prod-popup__title-wrapper {
  margin: 0 !important;
  padding: 0 !important;
}

html body #allrecords[data-product-page="y"] #rec2141172011 .t-catalog__prod-popup__name {
  font-family: "VelaSansGX", "Vela Sans GX", Manrope, Arial, sans-serif !important;
  font-size: 18px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
  text-transform: uppercase !important;
  color: var(--snm2-text) !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* === EDIT: цена === */
html body #allrecords[data-product-page="y"] #rec2141172011 .js-catalog-price-wrapper {
  display: inline-flex !important;
  align-items: baseline !important;
  gap: 3px !important;
  margin: 4px 0 0 !important;
  padding: 0 !important;
  transform: none !important;
}

html body #allrecords[data-product-page="y"] #rec2141172011 .t-catalog__prod-popup__price,
html body #allrecords[data-product-page="y"] #rec2141172011 .t-catalog__prod-popup__price-value,
html body #allrecords[data-product-page="y"] #rec2141172011 .t-catalog__prod-popup__price-currency {
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, Manrope, Arial, sans-serif !important;
  font-size: 17px !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
  color: var(--snm2-text) !important;
}

html body #allrecords[data-product-page="y"] #rec2141172011 .t-catalog__prod-popup__price_old {
  display: none !important;
}

/* === EDIT: описание === */
html body #allrecords[data-product-page="y"] #rec2141172011 .t-catalog__prod-popup__text {
  font-family: Manrope, Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
  letter-spacing: 0 !important;
  color: var(--snm2-text) !important;
  margin: 6px 0 0 !important;
  padding: 0 !important;
}

html body #allrecords[data-product-page="y"] #rec2141172011.snm2-desc-expanded .js-catalog-prod-text {
  position: relative !important;
  box-sizing: border-box !important;
  padding-right: 36px !important;
}

html body #allrecords[data-product-page="y"] #rec2141172011 .snm2-desc-line {
  display: block !important;
  font-family: Manrope, Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
  letter-spacing: 0 !important;
  color: var(--snm2-text) !important;
  margin: 0 !important;
  padding: 0 !important;
}

html body #allrecords[data-product-page="y"] #rec2141172011 .snm2-desc-hidden {
  display: none !important;
}

html body #allrecords[data-product-page="y"] #rec2141172011 .snm2-desc-expand {
  appearance: none !important;
  -webkit-appearance: none !important;
  display: inline !important;
  position: static !important;
  margin: 0 0 0 4px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--snm2-muted) !important;
  cursor: pointer !important;
  font-family: Manrope, Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
  letter-spacing: 0 !important;
  vertical-align: baseline !important;
}

html body #allrecords[data-product-page="y"] #rec2141172011 .snm2-desc-close {
  appearance: none !important;
  -webkit-appearance: none !important;
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  left: auto !important;
  z-index: 4 !important;
  width: 28px !important;
  height: 28px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  cursor: pointer !important;
}

html body #allrecords[data-product-page="y"] #rec2141172011 .snm2-desc-close span {
  position: absolute !important;
  left: 3px !important;
  top: 9px !important;
  display: block !important;
  width: 16px !important;
  height: 1.6px !important;
  background: #313131 !important;
  border-radius: 2px !important;
}

html body #allrecords[data-product-page="y"] #rec2141172011 .snm2-desc-close span:first-child {
  transform: rotate(45deg) !important;
}

html body #allrecords[data-product-page="y"] #rec2141172011 .snm2-desc-close span:last-child {
  transform: rotate(-45deg) !important;
}

/* === EDIT: бар размеров + корзина === */
html body #allrecords[data-product-page="y"] #rec2141172011 #snm2-actions {
  display: flex !important;
  align-items: center !important;
  box-sizing: border-box !important;
  width: 363px !important;
  max-width: 100% !important;
  height: 50px !important;
  min-height: 50px !important;
  margin: 14px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 9px !important;
  background: var(--snm2-bar) !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

html body #allrecords[data-product-page="y"] #rec2141172011 #snm2-actions .snm2-sizes {
  display: flex !important;
  align-items: center !important;
  flex: 0 1 auto !important;
  gap: 11px !important;
  height: 29px !important;
  margin: 0 20px 0 0 !important;
  padding: 0 0 0 16px !important;
  min-width: 0 !important;
}

html body #allrecords[data-product-page="y"] #rec2141172011 #snm2-actions .snm2-sizes:empty {
  display: none !important;
}

html body #allrecords[data-product-page="y"] #rec2141172011 #snm2-actions .js-product-controls-wrapper {
  display: block !important;
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

html body #allrecords[data-product-page="y"] #rec2141172011 #snm2-actions .js-product-edition-option,
html body #allrecords[data-product-page="y"] #rec2141172011 #snm2-actions .t-product__option-variants_custom,
html body #allrecords[data-product-page="y"] #rec2141172011 #snm2-actions .t-product__option-variants_buttons {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 11px !important;
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  min-width: 0 !important;
}

html body #allrecords[data-product-page="y"] #rec2141172011 #snm2-actions .js-product-edition-option-name,
html body #allrecords[data-product-page="y"] #rec2141172011 #snm2-actions .t-product__option-variants_regular,
html body #allrecords[data-product-page="y"] #rec2141172011 #snm2-actions select {
  display: none !important;
}

html body #allrecords[data-product-page="y"] #rec2141172011 #snm2-actions .t-product__option-item {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  flex: 0 0 29px !important;
  width: 29px !important;
  min-width: 29px !important;
  max-width: none !important;
  height: 29px !important;
  min-height: 29px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 9px !important;
  background: var(--snm2-size) !important;
  box-shadow: none !important;
  overflow: visible !important;
}

html body #allrecords[data-product-page="y"] #rec2141172011 #snm2-actions .t-product__option-item.snm2-size-wide {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 58px !important;
  max-width: none !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
}

html body #allrecords[data-product-page="y"] #rec2141172011 #snm2-actions .t-product__option-item_active {
  background: var(--snm2-button) !important;
}

html body #allrecords[data-product-page="y"] #rec2141172011 #snm2-actions .t-product__option-checkmark,
html body #allrecords[data-product-page="y"] #rec2141172011 #snm2-actions .t-product__option-input {
  display: none !important;
}

html body #allrecords[data-product-page="y"] #rec2141172011 #snm2-actions .t-product__option-title_buttons {
  display: block !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
  color: #fff !important;
  font-family: Manrope, Arial, sans-serif !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
}

html body #allrecords[data-product-page="y"] #rec2141172011 #snm2-actions .snm2-cart {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  width: 173px !important;
  height: 32px !important;
  margin: 0 11px 0 auto !important;
  padding: 0 !important;
}

html body #allrecords[data-product-page="y"] #rec2141172011 #snm2-actions .snm2-cart .t-catalog__prod-popup__btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  width: 173px !important;
  min-width: 173px !important;
  max-width: 173px !important;
  height: 32px !important;
  min-height: 32px !important;
  margin: 0 !important;
  padding: 0 12px !important;
  border: 0 !important;
  border-radius: 9px !important;
  background: var(--snm2-button) !important;
  background-color: var(--snm2-button) !important;
  color: #fff !important;
  box-shadow: none !important;
}

html body #allrecords[data-product-page="y"] #rec2141172011 #snm2-actions .snm2-cart table,
html body #allrecords[data-product-page="y"] #rec2141172011 #snm2-actions .snm2-cart tbody,
html body #allrecords[data-product-page="y"] #rec2141172011 #snm2-actions .snm2-cart tr {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

html body #allrecords[data-product-page="y"] #rec2141172011 #snm2-actions .snm2-cart td,
html body #allrecords[data-product-page="y"] #rec2141172011 #snm2-actions .js-catalog-prod-popup-buy-btn-txt {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 32px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  color: #fff !important;
  font-family: Manrope, Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
}

html body #allrecords[data-product-page="y"] #rec2141172011.snm2-ready .t-catalog__prod-popup__info > .js-product-controls-wrapper,
html body #allrecords[data-product-page="y"] #rec2141172011.snm2-ready .t-catalog__prod-popup__info > .t-catalog__prod-popup__btn-wrapper {
  display: none !important;
}

/* === EDIT: мобильная вёрстка === */
@media screen and (max-width: 960px) {
  html body #allrecords[data-product-page="y"] #rec2141172011 .t-container,
  html body #allrecords[data-product-page="y"] #rec2141172011 .t-container_fluid {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  html body #allrecords[data-product-page="y"] #rec2141172011 .t-container_fluid > .t-container_fluid {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  html body #allrecords[data-product-page="y"] #rec2141172011 .t-catalog__prod-popup__slider {
    order: 1 !important;
  }

  html body #allrecords[data-product-page="y"] #rec2141172011 .t-catalog__prod-popup__info {
    order: 2 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 12px 15px 24px !important;
  }

  html body #allrecords[data-product-page="y"] #rec2141172011 .t-catalog__prod-popup__col-left,
  html body #allrecords[data-product-page="y"] #rec2141172011 .t-catalog__prod-popup__col-right,
  html body #allrecords[data-product-page="y"] #rec2141172011 .t-col_6 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 auto !important;
  }
}

@media screen and (max-width: 374px) {
  html body #allrecords[data-product-page="y"] #rec2141172011 #snm2-actions {
    width: 100% !important;
  }

  html body #allrecords[data-product-page="y"] #rec2141172011 #snm2-actions .snm2-sizes {
    gap: 8px !important;
    margin-right: 12px !important;
    padding-left: 10px !important;
  }

  html body #allrecords[data-product-page="y"] #rec2141172011 #snm2-actions .snm2-cart {
    width: 158px !important;
    margin-right: 8px !important;
  }

  html body #allrecords[data-product-page="y"] #rec2141172011 #snm2-actions .snm2-cart .t-catalog__prod-popup__btn {
    width: 158px !important;
    min-width: 158px !important;
    max-width: 158px !important;
  }
}

/* =========================================================
   ST340 DESKTOP RESET v2 | saynomore.ru
   Вставь в САМЫЙ НИЗ «Дополнительный CSS».
   Десктоп от 981px (у вас мобилка ST340 до 980px).
   4 колонки + фото 3:4 как в оригинале Tilda (класс imgwrapper_3-4).
   ========================================================= */

@media screen and (min-width: 981px) {

  /* --- зазор категории → фильтры --- */
  #allrecords .t-rec[data-record-type="1291"] > .t1291 {
    margin-top: 0 !important;
  }

  /* --- сетка: 4 колонки, gap из настроек блока Tilda --- */
  #allrecords .t-rec[data-record-type="1291"] .t-catalog__cont-w-filter {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  #allrecords .t-rec[data-record-type="1291"] .t-catalog__card-list {
    display: flex !important;
    flex-wrap: wrap !important;
    /* не перетираем gap блока — только если моб. правила ломали */
    column-gap: var(--t-catalog-col-gap, 20px) !important;
    row-gap: var(--t-catalog-row-gap, 30px) !important;
    gap: var(--t-catalog-row-gap, 30px) var(--t-catalog-col-gap, 20px) !important;
  }

  /* 4 колонки: (100% − 3×gap) / 4 */
  #allrecords .t-rec[data-record-type="1291"] .t-catalog__card,
  #allrecords .t-rec[data-record-type="1291"] .t-store__card {
    width: calc((100% - 3 * var(--t-catalog-col-gap, 20px)) / 4) !important;
    max-width: calc((100% - 3 * var(--t-catalog-col-gap, 20px)) / 4) !important;
    flex: 0 0 calc((100% - 3 * var(--t-catalog-col-gap, 20px)) / 4) !important;
    box-sizing: border-box !important;
  }

  /* --- фото 3:4 (Tilda: padding-bottom = 4/3 от ширины) --- */
  #allrecords .t-rec[data-record-type="1291"] .t-catalog__card__imgwrapper,
  #allrecords .t-rec[data-record-type="1291"] .t-catalog__card__imgwrapper_3-4 {
    position: relative !important;
    width: 100% !important;
    height: 0 !important;
    padding-bottom: 133.3333% !important; /* 3:4 портрет */
    aspect-ratio: unset !important;
    overflow: hidden !important;
    border-radius: 3px !important; /* как в блоке rec2164564951 */
  }

  #allrecords .t-rec[data-record-type="1291"] .t-catalog__card__bgimg {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
  }

  #allrecords .t-rec[data-record-type="1291"] .t-catalog__card__img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  /* --- отступы внутри карточки: дефолт Tilda --- */
  #allrecords .t-rec[data-record-type="1291"] .t-catalog__card__wrap_txt-and-btns {
    padding-top: revert !important;
  }

  #allrecords .t-rec[data-record-type="1291"] .t-catalog__card__price-wrapper,
  #allrecords .t-rec[data-record-type="1291"] .t-catalog__card__price-wrapper_below-title {
    margin-top: revert !important;
  }

  #allrecords .t-rec[data-record-type="1291"] .t-catalog__card__wrap_txt-and-opts {
    margin-bottom: revert !important;
  }

  /* --- строка размеров из JS: только мобилка --- */
  #allrecords .t-rec[data-record-type="1291"] .snm-card-sizes {
    display: none !important;
  }

  /* --- кнопка «Выбрать размер» --- */
  #allrecords .t-rec[data-record-type="1291"] .t-catalog__card__btns-wrapper {
    display: block !important;
  }

  #allrecords .t-rec[data-record-type="1291"] .js-catalog-prod-btn.t-catalog__card__btn,
  #allrecords .t-rec[data-record-type="1291"] .t-btnflex.t-btnflex_type_button.js-catalog-prod-btn {
    display: inline-flex !important;
    position: static !important;
    overflow: visible !important;
    isolation: auto !important;
    color: revert !important;
    border-radius: revert !important;
    border: revert !important;
    background: revert !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    box-shadow: revert !important;
    filter: none !important;
  }

  #allrecords .t-rec[data-record-type="1291"] .t-btnflex.t-btnflex_type_button.js-catalog-prod-btn::before {
    display: none !important;
    content: none !important;
  }

  /* --- фильтры --- */
  #allrecords .t-rec[data-record-type="1291"] .t-catalog__filter-wrapper,
  #allrecords .t-rec[data-record-type="1291"] .t-catalog__filter,
  #allrecords .t-rec[data-record-type="1291"] .t-catalog__filter__controls-wrapper {
    margin-top: revert !important;
    padding-top: revert !important;
  }

  #allrecords .t-rec[data-record-type="1291"] .t-catalog__filter {
    padding-bottom: revert !important;
  }
}
