.ds-rest {
  --ds-pink: #FD7CC4;
  --ds-light: #fff5fc;
  --ds-ink: #0a0a0a;
  --ds-title: 40px;
  --ds-price: 25px;
}

@media (min-width: 768px) and (max-width: 1199px) {
  .ds-rest {
    --ds-title: 26px;
    --ds-price: 20px;
  }
}

@media (max-width: 767px) {
  .ds-rest {
    --ds-title: 20px;
    --ds-price: 18px;
  }
}

/* 1. Хлебные крошки */
.ds-rest :is(.t-catalog__product-snippet,.t-store__product-snippet) :is(.t-catalog__breadcrumbs,.t-store__breadcrumbs) {
  font: 600 12px/1.3 Inter, sans-serif !important;
  text-transform: uppercase;
}

/* 2. Заголовок товара */
.ds-rest :is(.t-catalog__product-snippet,.t-store__product-snippet) :is(.t-catalog__prod-popup__name,.t-store__prod-popup__name) {
  font-family: Inter, sans-serif !important;
  font-size: var(--ds-title) !important;
  font-weight: 600 !important;
}

/* 3. Скрываем только артикул */
.ds-rest :is(.t-catalog__product-snippet,.t-store__product-snippet) :is(.t-catalog__prod-popup__sku,.t-store__prod-popup__sku) {
  display: none !important;
}

/* 4. Стоимость */
.ds-rest :is(.t-catalog__product-snippet,.t-store__product-snippet) :is(.t-catalog__prod-popup__price,.t-store__prod-popup__price) {
  font-family: Inter, sans-serif !important;
  font-size: var(--ds-price) !important;
}

/* 5–6. Плашки форматов и выбора карточки */
.ds-rest :is(.t-catalog__product-snippet,.t-store__product-snippet) .t-product__option-variants_radio {
  display: flex !important;
  flex-flow: row wrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.ds-rest :is(.t-catalog__product-snippet,.t-store__product-snippet) .t-product__option-item_radio {
  display: inline-flex !important;
  align-items: center;
  flex: 0 0 auto !important;
  width: auto !important;
  margin: 0 !important;
  padding: 5px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--ds-light) !important;
  color: var(--ds-pink) !important;
  cursor: pointer;
}

.ds-rest :is(.t-catalog__product-snippet,.t-store__product-snippet) .t-product__option-checkmark_radio {
  display: none !important;
}

.ds-rest :is(.t-catalog__product-snippet,.t-store__product-snippet) .t-product__option-title_radio {
  font: 600 12px/1.5 Inter, sans-serif !important;
  text-transform: uppercase;
  color: inherit !important;
  margin: 0 !important;
  padding: 0 !important;
}

.ds-rest :is(.t-catalog__product-snippet,.t-store__product-snippet)
.t-product__option-item_radio.t-product__option-item_active {
  background: var(--ds-pink) !important;
  color: var(--ds-light) !important;
}

.ds-rest .t-product__option-item_radio:has(input:focus-visible),
.ds-rest .ds-card-tabs button:focus-visible {
  outline: 2px solid var(--ds-light);
  outline-offset: 3px;
}

/* Заголовки и отступы опций */
.ds-rest :is(.t-catalog__product-snippet,.t-store__product-snippet)
.t-product__option > .t-product__option-title {
  font: 600 14px/1.4 Inter, sans-serif !important;
  text-transform: uppercase;
  margin-bottom: 10px !important;
}

.ds-rest :is(.t-catalog__product-snippet,.t-store__product-snippet) .t-product__option {
  margin-top: 40px !important;
  margin-bottom: 40px !important;
}

/* 7. Поле «Текст карточки» */
.ds-rest .ds-card-text .t-product__option-variants {
  width: 100% !important;
  max-width: 100% !important;
}

.ds-rest .ds-card-text select {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 42px;
  box-sizing: border-box;
  padding: 10px 32px 10px 12px !important;
  border: 1px solid var(--ds-pink) !important;
  border-radius: 0 !important;
  background: var(--ds-light) !important;
  color: var(--ds-ink) !important;
  font: 400 14px/1.4 Inter, sans-serif !important;
}

.ds-rest .ds-card-text .t-product__option-variants::after {
  border-top-color: var(--ds-pink) !important;
}

.ds-rest .ds-card-native {
  display: none !important;
}

.ds-rest .ds-card-tabs button:disabled {
  opacity: .35;
  cursor: default;
}

/* Убираем стрелки у опции, преобразованной в табы */
.ds-rest .js-product-option:has(.ds-card-tabs)
.t-product__option-variants::after,
.ds-rest .ds-card-tabs::before,
.ds-rest .ds-card-tabs::after {
  content: none !important;
  display: none !important;
}

/* 8. Стрелки галереи */
.ds-rest :is(.t-catalog__product-snippet,.t-store__product-snippet) .t-slds__arrow {
  width: 30px !important;
  height: 30px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--ds-pink) !important;
  transition: background-color .2s ease;
}

.ds-rest :is(.t-catalog__product-snippet,.t-store__product-snippet) .t-slds__arrow_body {
  width: 9px !important;
}

.ds-rest :is(.t-catalog__product-snippet,.t-store__product-snippet) .t-slds__arrow polyline {
  stroke: var(--ds-light) !important;
  transition: stroke .2s ease;
}

@media (hover: hover) {
  .ds-rest :is(.t-catalog__product-snippet,.t-store__product-snippet)
  .t-slds__arrow_wrapper:hover .t-slds__arrow {
    background-color: var(--uc-color-color-oPCGHe, #FD7CC4) !important;
  }

  .ds-rest :is(.t-catalog__product-snippet,.t-store__product-snippet)
  .t-slds__arrow_wrapper:hover polyline {
    stroke: var(--uc-color-color-X7bt9Boh, #FFF5FC) !important;
  }
}

/* 9. Аккордеон */
.ds-rest :is(.t-catalog__prod-popup__info,.t-store__prod-popup__info) :is(.t-catalog__tabs,.t-store__tabs) {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  float: none !important;
  box-sizing: border-box;
  margin: 40px 0 0 !important;
  padding: 0 !important;
}

.ds-rest :is(.t-catalog__tabs__item-button,.t-store__tabs__item-button) {
  min-height: 57px;
  box-sizing: border-box;
  padding: 10px 5px !important;
  border-top: 2px solid var(--ds-pink) !important;
  border-bottom: 0 !important;
  margin: 0 !important;
}

.ds-rest :is(.t-catalog__tabs__item,.t-store__tabs__item):last-child {
  border-bottom: 2px solid var(--ds-pink);
}

.ds-rest :is(.t-catalog__tabs__item-title,.t-store__tabs__item-title) {
  font: 600 14px/1.1 Inter, sans-serif !important;
  text-transform: uppercase;
  white-space: normal !important;
}

.ds-rest :is(.t-catalog__tabs__close,.t-store__tabs__close) {
  width: 35px;
  height: 35px;
  justify-content: center;
  background: var(--ds-pink);
  transform: none !important;
}

.ds-rest :is(.t-catalog__tabs__close,.t-store__tabs__close)::after {
  display: none !important;
}

.ds-rest :is(.t-catalog__tabs__close-icon,.t-store__tabs__close-icon) g {
  stroke: var(--ds-light) !important;
}

.ds-rest :is(.t-catalog__tabs__close-icon,.t-store__tabs__close-icon) path {
  stroke-width: 3px !important;
}

.ds-rest :is(.t-catalog__tabs__close-icon,.t-store__tabs__close-icon) {
  transition: transform .2s;
}

.ds-rest :is(.t-catalog__tabs__item_active,.t-store__tabs__item_active) :is(.t-catalog__tabs__close-icon,.t-store__tabs__close-icon) {
  transform: rotate(45deg);
}

.ds-rest :is(.t-catalog__tabs__content,.t-store__tabs__content) {
  font: 400 14px/1.4 Inter, sans-serif !important;
}

/* 10. Рекомендации: вся ширина, отступы 20 px */
.ds-rest :is(.t-catalog__relevants__container,.t-store__relevants__container) > .t-container {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 20px !important;
  box-sizing: border-box;
}

.ds-rest :is(.t-catalog__relevants__container,.t-store__relevants__container) > .t-container > .t-col,
.ds-rest :is(.t-catalog__relevants-grid-cont,.t-store__relevants-grid-cont) {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

@media (min-width: 961px) {
  .ds-rest :is(.t-catalog__relevants-grid-cont,.t-store__relevants-grid-cont) :is(.t-catalog__card-list,.t-store__card-list) {
    display: flex !important;
    flex-wrap: wrap;
    gap: 20px;
  }

  .ds-rest :is(.t-catalog__relevants-grid-cont,.t-store__relevants-grid-cont) :is(.t-catalog__card,.t-store__card) {
    width: calc((100% - 60px) / 4) !important;
    max-width: none !important;
    flex: 0 0 auto;
    margin: 0 !important;
  }

  .ds-rest :is(.t-catalog__relevants-grid-cont,.t-store__relevants-grid-cont) .t-clear {
    display: none !important;
  }
}

/* Заголовок рекомендаций */
.ds-rest :is(.t-catalog__relevants__title,.t-store__relevants__title) {
  margin: 196px 0 40px;
  font-family: Inter, sans-serif !important;
  font-size: var(--ds-title) !important;
  font-weight: 600 !important;
  line-height: 1.1 !important;
  text-transform: uppercase !important;
  text-align: center !important;
}

/* Описания рекомендованных товаров */
.ds-rest :is(.t-catalog__relevants-grid-cont,.t-store__relevants-grid-cont) :is(.t-catalog__card__descr,.t-store__card__descr) {
  display: block !important;
  margin: 5px 0 12px !important;
  padding: 0 !important;
  font: 400 14px/1.3 Inter, sans-serif !important;
  color: var(--ds-ink) !important;
  text-transform: none !important;
}

/* 11. Технический маркер и Alias до переноса из шапки.
   ID маркера — служебный, он не привязан к номеру блока Тильды. */
html.ds-product-view .t-rec:has(#ds-product-extra-marker) {
  display: none !important;
}

html.ds-product-view
#t-header .t-rec:has(#ds-product-extra-marker) + .t-rec {
  visibility: hidden;
}

/* Иконки подсказок */
.ds-rest .ds-option-help {
  display: inline-flex;
  width: 14px;
  height: 14px;
  margin-left: 8px;
  padding: 0;
  vertical-align: middle;
  line-height: 0;
  cursor: pointer;
}

.ds-rest .ds-option-help svg {
  display: block;
  width: 100%;
  height: 100%;
}

.ds-rest .ds-option-help:focus-visible {
  outline: 2px solid var(--ds-light);
  outline-offset: 3px;
}

/* Названия характеристик */
.ds-rest .ds-char-label {
  font-weight: 600;
  text-transform: uppercase;
}

/* Между текстами характеристик — 10 px */
:is(.t-catalog__product-snippet,.t-store__product-snippet)
:is(.js-catalog-prod-all-charcs,.js-store-prod-all-charcs) > :not(:empty) ~ :not(:empty) {
  margin-top: 10px !important;
}


/* Новая разметка рекомендаций и межстрочные интервалы */
.ds-rest .t-store__relevants-grid-cont {display:flex!important;flex-wrap:wrap;gap:20px;}
.ds-rest .t-store__product-snippet .js-store-prod-charcs {line-height:1.4!important;}
.ds-rest .t-store__product-snippet .js-store-prod-charcs + .js-store-prod-charcs {margin-top:10px!important;}
@media(max-width:640px){
 .ds-rest .t-store__relevants-grid-cont {gap:10px!important;}
 .ds-rest .t-store__relevants-grid-cont > .t-store__card {margin-left:0!important;margin-right:0!important;}
}

/* ОСНОВНОЙ КАТАЛОГ ЛЮБЛЮТИКОВ: только блок 4294632401 */
#rec4294632401 {--lb-pink:#FD7CC4;--lb-light:#FFF5FC;--lb-ink:#0A0A0A;}
#allrecords #rec4294632401 :is(.t-store__card__title,.t-store__card__descr,.t-store__card__price,.t-store__parts-switch-btn,.t-store__filter,.t-store__filter input,.t-store__filter button,.t-store__filter label) {font-family:Inter,Arial,sans-serif!important;}
#allrecords #rec4294632401 .t951__sidebar {align-self:flex-start!important;height:auto!important;min-height:0!important;background:var(--lb-pink)!important;}
#allrecords #rec4294632401 .t-store__filter__chosen-bar {display:none!important;}
#allrecords #rec4294632401 .t-store__filter__item-title {font-family:Inter,Arial,sans-serif!important;font-weight:600!important;text-transform:uppercase!important;}
#allrecords #rec4294632401 .t-checkbox__indicator {border-radius:0!important;}
/* Плашки на фотографиях */
#allrecords #rec4294632401 .t-store__card__mark-wrapper {top:auto!important;bottom:0!important;right:0!important;left:auto!important;}
#allrecords #rec4294632401 .t-store__card__mark {width:auto!important;height:auto!important;min-width:0!important;border:0!important;border-radius:0!important;background:var(--lb-pink)!important;color:var(--lb-ink)!important;padding:8px 12px!important;font:600 12px/1.4 Inter,Arial,sans-serif!important;}
#rec4294632401 .ds-price-from .t-store__card__price-value::before {content:'от ';}
/* Подпись формата у связанной фотографии на странице товара */
.ds-format-photo {position:relative;}
.ds-format-photo .ds-format-badge {position:absolute;bottom:0;left:0;z-index:2;padding:8px 12px;background:#FD7CC4;color:#0A0A0A;font:600 12px/1.4 Inter,Arial,sans-serif;text-transform:uppercase;pointer-events:none;}

/* Одна шкала цены с двумя штатными бегунками */
#allrecords #rec4294632401 .t951__sidebar .t-store__filter__item_price > .t-store__filter__item-price-slider {
 display:block!important;position:relative!important;left:0!important;right:auto!important;top:auto!important;transform:none!important;
 width:100%!important;min-width:0!important;height:34px!important;box-sizing:border-box!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;isolation:isolate;
}
#allrecords #rec4294632401 .t951__sidebar input.t-store__filter__range {
 appearance:none!important;-webkit-appearance:none!important;position:absolute!important;top:0!important;left:0!important;width:100%!important;height:30px!important;margin:0!important;padding:0!important;box-sizing:border-box!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;pointer-events:none!important;z-index:2;
}
#allrecords #rec4294632401 .t-store__filter__range::-webkit-slider-runnable-track {height:30px!important;background:transparent!important;border:0!important;box-shadow:none!important;}
#allrecords #rec4294632401 .t-store__filter__range::-moz-range-track {height:30px!important;background:transparent!important;border:0!important;box-shadow:none!important;}
#allrecords #rec4294632401 .t-store__filter__range::-moz-range-progress {background:transparent!important;}
#allrecords #rec4294632401 .t-store__filter__range::-webkit-slider-thumb {appearance:none!important;-webkit-appearance:none!important;width:22px!important;height:22px!important;margin:4px 0 0!important;border:0!important;border-radius:0!important;background:var(--lb-light)!important;box-shadow:none!important;pointer-events:auto!important;cursor:pointer;}
#allrecords #rec4294632401 .t-store__filter__range::-moz-range-thumb {width:22px!important;height:22px!important;border:0!important;border-radius:0!important;background:var(--lb-light)!important;box-shadow:none!important;pointer-events:auto!important;cursor:pointer;}
#allrecords #rec4294632401 .t-store__filter__range_bg {display:block!important;position:absolute!important;left:0!important;top:14px!important;width:100%!important;height:2px!important;background:var(--lb-light)!important;border-radius:0!important;z-index:0!important;}
#allrecords #rec4294632401 .t-store__filter__price-outer {position:absolute!important;top:14px!important;height:2px!important;background:var(--lb-light)!important;border-radius:0!important;z-index:1!important;}
#allrecords #rec4294632401 .t-store__filter__price-outer_start {left:0!important;}
#allrecords #rec4294632401 .t-store__filter__price-outer_end {right:0!important;}
#allrecords #rec4294632401 .t951__sidebar .t-store__filter__item-price-box {display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:8px 12px;position:static!important;width:100%!important;min-width:0!important;margin:0!important;padding:0!important;box-sizing:border-box!important;border:0!important;background:transparent!important;box-shadow:none!important;}
#allrecords #rec4294632401 .t-store__filter__item-price-box .t-store__filter__input {width:100%!important;min-width:0!important;height:auto!important;box-sizing:border-box!important;margin:0!important;padding:0!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;font:400 14px/1.4 Inter,Arial,sans-serif!important;color:var(--lb-light)!important;}
#allrecords #rec4294632401 .js-store-filter-pricemin {grid-column:1;grid-row:1;text-align:left!important;}
#allrecords #rec4294632401 .js-store-filter-pricemax {grid-column:2;grid-row:1;text-align:right!important;}
#allrecords #rec4294632401 .t-store__filter__item-price-box :is(.t-store__filter__delimeter,.js-store-filter-price-btn) {display:none!important;}
#allrecords #rec4294632401 .t-store__filter__item_price > .t-store__filter__item-title {pointer-events:none!important;cursor:default!important;opacity:1!important;}
#allrecords #rec4294632401 .t-store__filter__item_price > .t-store__filter__item-title::after {display:none!important;}

/* Независимые фильтры на десктопе. Цена всегда открыта. */
@media(min-width:961px){
 #allrecords #rec4294632401 .t-store__filter__options {gap:0!important;}
 #allrecords #rec4294632401 .t951__sidebar .t-store__filter__item {margin-top:0!important;margin-bottom:0!important;padding-top:0!important;padding-bottom:0!important;min-height:0!important;}
 #allrecords #rec4294632401 .t951__sidebar .t-store__filter__item-title {display:flex!important;align-items:center;justify-content:space-between;gap:12px;width:100%!important;max-width:none!important;box-sizing:border-box;margin:0!important;padding:10px 0!important;line-height:1.4!important;white-space:normal;cursor:pointer;opacity:1!important;}
 #allrecords #rec4294632401 .t951__sidebar .t-store__filter__item-title::after {content:'';display:block;position:static!important;flex:0 0 6px;width:6px!important;height:9px!important;margin:0 7px!important;border:0!important;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 9'%3E%3Cpath d='M.35 .35L4.35 4.35 .35 8.35' fill='none' stroke='black'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 9'%3E%3Cpath d='M.35 .35L4.35 4.35 .35 8.35' fill='none' stroke='black'/%3E%3C/svg%3E") center/contain no-repeat;transform:rotate(0)!important;transition:transform .2s;pointer-events:none;}
 #allrecords #rec4294632401 .t951__sidebar .lb-filter-open > .t-store__filter__item-title::after {transform:rotate(90deg)!important;}
 #allrecords #rec4294632401 .t951__sidebar .t-store__filter__item:not(.t-store__filter__item_price):not(.lb-filter-open) > .t-store__filter__item-controls-wrap {display:none!important;}
 #allrecords #rec4294632401 .t951__sidebar .lb-filter-open > .t-store__filter__item-controls-wrap {display:block!important;position:relative!important;left:0!important;top:auto!important;transform:none!important;width:100%!important;min-width:0!important;box-sizing:border-box;margin:0!important;padding-top:0!important;padding-bottom:10px!important;background:transparent!important;box-shadow:none!important;}
 #allrecords #rec4294632401 .t951__sidebar .t-store__filter__item_price {margin-bottom:12px!important;}
}

/* Мобильные табы разделов */
#rec4294632401 .ds-mobile-parts {display:none;}
@media(max-width:640px){
 #rec4294632401 .ds-mobile-parts {display:block;margin:0 0 25px;width:100%;box-sizing:border-box;font-family:Inter,Arial,sans-serif;}
 #rec4294632401 .ds-mobile-parts__row {display:flex;gap:10px;overflow-x:auto;padding:0 0 8px;scrollbar-width:thin;scrollbar-color:#FD7CC4 transparent;}
 #rec4294632401 .ds-mobile-parts__tab {display:flex;flex:0 0 auto;border:1px solid #FD7CC4;}
 #rec4294632401 .ds-mobile-parts button {appearance:none;border:0;border-radius:0;margin:0;background:transparent;color:#0A0A0A;font:600 12px/1.4 Inter,Arial,sans-serif;cursor:pointer;}
 #rec4294632401 .ds-mobile-parts__label {padding:12px 16px;text-transform:uppercase;white-space:nowrap;}
 #rec4294632401 .ds-mobile-parts__arrow {padding:12px;}
 #rec4294632401 .ds-mobile-parts__tab.is-active {background:#FD7CC4;}
 #rec4294632401 .ds-mobile-parts__tab.is-active button {color:#FFF5FC;}
 #rec4294632401 .ds-mobile-parts__panel {margin-top:8px;padding:10px;background:#FD7CC4;max-height:50vh;overflow:auto;}
 #rec4294632401 .ds-mobile-parts [hidden] {display:none!important;}
 #rec4294632401 .ds-mobile-parts__panel button {display:block;width:100%;padding:10px;text-align:left;color:#FFF5FC;}
 #rec4294632401 .ds-mobile-parts__panel button.is-active {background:#FFF5FC;color:#0A0A0A;}
 #rec4294632401 .ds-mobile-parts button:focus-visible {outline:2px solid #0A0A0A;outline-offset:-3px;}
 #rec4294632401 .ds-mobile-parts__children {padding-left:12px;}
 #rec4294632401.ds-mobile-parts-ready .t-store__parts-switch-wrapper_mobile,
 #rec4294632401.ds-mobile-parts-ready .t-store__parts-tree-root-wrapper {display:none!important;}
 #allrecords #rec4294632401 .t951__sidebar {padding:0!important;margin-top:20px!important;}
 #allrecords #rec4294632401 .t951__sidebar :is(.t-store__filter,.t-store__filter__controls-wrapper) {width:100%;margin:0!important;}
 #allrecords #rec4294632401 .js-store-filter-mob-btn {display:flex!important;align-items:center;width:100%!important;box-sizing:border-box;padding:20px!important;margin:0!important;background:#FD7CC4;color:#FFF5FC;border:0!important;border-radius:0!important;font:600 14px/1.4 Inter,Arial,sans-serif!important;cursor:pointer;}
 #allrecords #rec4294632401 .t-store__filter__opts-mob-btn-icon {flex-shrink:0;}
 #allrecords #rec4294632401 .t951__sidebar .t-store__filter__options {box-sizing:border-box;padding:0 20px 20px!important;}
}
