/* KA sale prices: red current + smaller strikethrough old beside it */
.b-product-item__price .ka-price-wrap {
  display: block;
  white-space: nowrap;
  line-height: 1.2;
}
.b-product-item__price .ka-price-wrap .ka-price-current,
.b-product-item__price .ka-price-wrap .ka-price-old {
  display: inline !important;
  width: auto !important;
  vertical-align: baseline;
}
.b-product-item__price .ka-price-wrap .ka-price-current {
  font-size: inherit; /* inherits 1.25rem from span:nth-child(2) */
}
.b-product-item__price .ka-price-wrap .ka-price-current strong {
  font-size: 1em;
  font-weight: 700;
}
.b-product-item__price:has(.ka-price-old del:not([style*="display: none"])) .ka-price-current strong {
  color: #e53935 !important;
}
.b-product-item__price .ka-price-wrap .ka-price-old {
  color: #888 !important;
  font-size: 0.85em !important;
  font-weight: 400 !important;
  margin-left: 6px;
}
.b-product-item__price .ka-price-wrap .ka-price-old del {
  color: #888 !important;
  font-size: inherit !important;
  text-decoration: line-through !important;
  text-decoration-color: #888 !important;
  text-decoration-thickness: 2px !important;
  text-decoration-skip-ink: none !important;
}
/* detail page */
.b-price:has(.ka-price-old:not([style*="display: none"])) .ka-price-current {
  color: #e53935 !important;
}
.b-price .ka-price-old {
  color: #888 !important;
  font-size: 0.85em !important;
  font-weight: 400 !important;
  vertical-align: baseline;
  margin-left: 8px;
}
.b-price .ka-price-old del {
  text-decoration: line-through !important;
  text-decoration-color: #888 !important;
  text-decoration-thickness: 2px !important;
  text-decoration-skip-ink: none !important;
  color: #888 !important;
}


/* Left filter: Распродажа */
.ka-sale-filter{margin:0 0 14px;padding:12px 14px;background:#fff5f5;border:1px solid #ffc9c9;border-radius:6px}
.ka-sale-filter__label{display:flex;align-items:center;gap:8px;cursor:pointer;margin:0;font-size:14px;font-weight:600;color:#333}
.ka-sale-filter__cb{width:16px;height:16px;flex:0 0 auto}
.ka-sale-filter__count{margin-left:auto;background:#e53935;color:#fff;border-radius:10px;padding:1px 8px;font-size:12px;font-weight:700}

/* Left filter: категории на /sale/ */
.ka-sale-cats{margin:0 0 16px;padding:0 0 12px;border-bottom:1px solid #e8e8e8}
.ka-sale-cats__title{margin:0 0 10px;font-size:14px;font-weight:700;color:#222}
.ka-sale-cats__list{list-style:none;margin:0;padding:0}
.ka-sale-cats__item{margin:0}
.ka-sale-cats__link{display:flex;align-items:center;gap:8px;padding:6px 0;font-size:13px;line-height:1.35;color:#333;text-decoration:none}
.ka-sale-cats__link:hover{color:#e53935}
.ka-sale-cats__item.is-active .ka-sale-cats__link{color:#e53935;font-weight:600}
.ka-sale-cats__name{flex:1 1 auto;min-width:0}
.ka-sale-cats__count{flex:0 0 auto;margin-left:auto;color:#888;font-size:12px;font-weight:600}
.ka-sale-cats__item.is-active .ka-sale-cats__count{color:#e53935}

/* Percent chip next to prices */
.ka-price-percent{display:inline-block;margin-left:6px;padding:1px 6px;background:#e53935;color:#fff!important;font-size:12px!important;font-weight:700;border-radius:3px;line-height:1.4;vertical-align:middle;white-space:nowrap}

/* Cart: list — badge after title; cards — bottom-right on image @ 50% */
.ka-sale-badge--list{display:none}
.ka-sale-badge--card{opacity:.5}
#basket-items-list-container.ka-cart-list .b-product-item__note,
#basket-items-list-container.ka-cart-list .ka-sale-badge--card{display:none!important}
#basket-items-list-container.ka-cart-list .ka-sale-badge--list{
  display:inline-block!important;
  margin-left:8px;
  padding:2px 6px;
  background:#e53935;
  color:#fff;
  font-size:11px;
  font-weight:700;
  border-radius:3px;
  line-height:1.3;
  white-space:nowrap;
  vertical-align:middle;
  position:static!important;
  opacity:1!important;
}
#basket-items-list-container:not(.ka-cart-list) .b-product-item__img{position:relative}
#basket-items-list-container:not(.ka-cart-list) .ka-sale-badge--card,
#basket-items-list-container:not(.ka-cart-list) .b-product-item__note.ka-sale-badge--card{
  position:absolute!important;
  left:auto!important;
  top:auto!important;
  right:6px!important;
  bottom:6px!important;
  opacity:.5!important;
  z-index:2;
  max-width:calc(100% - 12px);
}

.b-product-item__price .ka-price-wrap .ka-price-percent{
  display:inline!important;
  width:auto!important;
  vertical-align:middle;
}


/* Cart badges — force layout */
#basket-items-list-container.ka-cart-list .b-product-item__note{display:none!important;opacity:0!important;width:0!important;height:0!important;overflow:hidden!important;position:absolute!important}
#basket-items-list-container.ka-cart-list .ka-sale-badge--list{display:inline-block!important;margin-left:8px;padding:2px 6px;background:#e53935;color:#fff!important;font-size:11px!important;font-weight:700;border-radius:3px;line-height:1.3;white-space:nowrap;vertical-align:middle;position:static!important;opacity:1!important}
#basket-items-list-container:not(.ka-cart-list) .b-product-item__img{position:relative!important}
#basket-items-list-container:not(.ka-cart-list) .b-product-item__note,
#basket-items-list-container:not(.ka-cart-list) .ka-sale-badge--card{
  position:absolute!important;left:auto!important;top:auto!important;right:6px!important;bottom:6px!important;
  opacity:.5!important;z-index:3;max-width:70%;font-size:11px!important;line-height:1.2;padding:4px 6px;
}
#basket-items-list-container:not(.ka-cart-list) .ka-sale-badge--list{display:none!important}

#basket-items-list-container.ka-cart-list .ka-bi > *:nth-child(2) .b-product-item__title{
  display:inline!important;
  max-width:calc(100% - 64px);
  vertical-align:middle;
}
#basket-items-list-container.ka-cart-list .ka-bi > *:nth-child(2) .ka-sale-badge--list{
  display:inline-block!important;
  margin-left:8px;
  vertical-align:middle;
}

#basket-items-list-container.ka-cart-list .ka-sale-badge--list{
  display:inline-block!important;width:auto!important;max-width:max-content!important;
  align-self:flex-start!important;flex:0 0 auto!important;
}

#basket-items-list-container.ka-cart-list .ka-bi__name-line{display:flex!important;flex-direction:row!important;align-items:center;gap:8px;width:100%;min-width:0}
#basket-items-list-container.ka-cart-list .ka-bi__name-line .b-product-item__title{flex:1 1 auto;min-width:0;display:block!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#basket-items-list-container.ka-cart-list .ka-bi__name-line .ka-sale-badge--list{flex:0 0 auto;width:auto!important;max-width:none!important;display:inline-block!important}
#basket-items-list-container:not(.ka-cart-list) .ka-bi__name-line{display:contents}

/* KA: цена в карточке компактно, без принудительного column от .b-product-item__price span */
.b-product-item__price .ka-price-wrap,
.b-product-item__price .flex-price.ka-price-current,
.b-product-item__price .ka-price-old,
.b-product-item__price .ka-price-percent {
	display: inline-block !important;
	vertical-align: middle;
	margin-right: 6px;
}
.b-product-item__price .ka-price-old {
	margin-right: 4px;
}

/* KA: старая/новая цена в одну строку под «Опт.» */
.b-product-item__price > span:first-child {
  display: block !important;
}
.b-product-item__price .flex-price.ka-price-current,
.b-product-item__price .ka-price-current,
.b-product-item__price .ka-price-old,
.b-product-item__price .ka-price-percent {
  display: inline !important;
  width: auto !important;
  vertical-align: middle;
}
/* НЕ форсировать display на пустой <del> — иначе скрытие без скидки ломается */
.b-product-item__price .ka-price-old del {
  width: auto !important;
  vertical-align: middle;
  text-decoration: line-through !important;
  text-decoration-color: #888 !important;
  text-decoration-thickness: 2px !important;
  text-decoration-skip-ink: none !important;
  color: #888 !important;
}
.b-product-item__price .ka-price-old {
  margin-left: 6px;
}
.b-product-item__price .ka-price-percent {
  margin-left: 4px;
}

/* KA 08.08: без скидки старая цена скрыта (PHP ставит display:none на <del>) */
.b-product-item__price .ka-price-old:has(del[style*="display: none"]),
.b-product-item__price .ka-price-old del[style*="display: none"],
.b-product-item__price .ka-price-wrap .ka-price-old:has(del[style*="display: none"]),
.b-price .ka-price-old:has(del[style*="display: none"]),
.b-price .ka-price-old del[style*="display: none"] {
  display: none !important;
}
/* KA 01.09: при видимом MAX SALE del с текстом не прячем, даже если JS/PHP оставил display:none */
.b-product-item:has(.b-product-item__note:not([style*="display: none"])) .ka-price-old:has(del:not(:empty)) {
  display: block !important;
}
.b-product-item:has(.b-product-item__note:not([style*="display: none"])) .ka-price-old del:not(:empty) {
  display: inline !important;
}


/* KA: long product titles wrap inside card
   (XTOOL/AUTEL/... without spaces must not overflow card bounds) */
.b-product-item,
.b-product-grid__item,
.b-product-slider__item {
	min-width: 0;
}
.b-product-item__title,
a.b-product-item__title {
	display: block;
	max-width: 100%;
	min-width: 0;
	overflow-wrap: anywhere;
	word-break: break-word;
	hyphens: auto;
}

/* KA LOCK 28.08: ЕДИНАЯ карточка catalog.item/catalog везде:
   каталог, /sale/, рекомендации, слайдер «Акции» в корзине.
   Акционная отличается ТОЛЬКО бейджем и перечёркнутой ценой.
   Не плодить отдельные карточки и не переопределять эти размеры в slider/style.css. */
.b-product-grid:not(.ka-list-view) .b-product-grid__item > .b-product-item,
.b-product-slider__item > .b-product-item {
	box-sizing: border-box !important;
	min-width: 0 !important;
	height: 580px !important;
	min-height: 580px !important;
	max-height: 580px !important;
	overflow: hidden !important;
	border: 1px solid #d2d2d2 !important; /* как живая /sale/ */
	background: #fff !important;
}
/* KA 31.08: .slick-list overflow:hidden срезает 1px рамку.
   1px padding даёт воздух; карточка 221×580 и зазоры не меняются. */
.b-product-slider .slick-list {
	padding: 1px !important;
}
/* Сетка каталога/распродажи: карточка заполняет колонку (~221 px). */
/* KA 31.08: gutter 4px, карточка строго 221×580, без растягивания. */
@media (min-width: 1200px) {
	.b-product-grid:not(.ka-list-view) {
		display: flex !important;
		flex-wrap: wrap;
		gap: 4px !important;
		row-gap: 4px !important;
		column-gap: 4px !important;
		justify-content: flex-start !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
	}
	.b-product-grid:not(.ka-list-view) .b-block-grid__item,
	.b-product-grid:not(.ka-list-view) > .b-product-grid__item,
	.b-product-grid:not(.ka-list-view) .b-product-grid__item {
		padding-left: 0 !important;
		padding-right: 0 !important;
		padding-bottom: 0 !important;
		width: 221px !important;
		max-width: 221px !important;
		flex: 0 0 221px !important;
		box-sizing: border-box !important;
	}
	.b-product-grid:not(.ka-list-view) .b-product-grid__item > .b-product-item {
		width: 221px !important;
		max-width: 221px !important;
	}
}

.b-product-grid__item > .b-product-item {
	width: 100% !important;
	max-width: 100% !important;
	flex: 1 1 100%;
}
/* KA 01.09.2026: шаг слайда задаёт ka-carousel.js через --ka-slide.
   Раньше здесь стояло жёсткое 225px, а slick считает свою ширину слайда сам:
   slideWidth = ceil(listWidth / slidesToShow) — например 232px при 1440.
   Отрисовка давала 225px, разница 7px на слайд умножалась на число клонов
   (slidesToShow при infinite:true) и уезжала в смещение .slick-track:
   по левому и правому краю торчали обрезанные карточки, а при смене
   масштаба браузера картина «прыгала».
   Скрипт делает ширину списка точным кратным шага, поэтому slick получает
   slideWidth ровно равный отрисованному — обрезки больше нет.
   Карточка внутри слайда остаётся 221x580 и здесь не меняется. */
.b-product-slider {
	--ka-slide: 225px;
	--ka-card: 221px;
}
.b-product-slider .slick-slide,
.b-product-slider .slick-slide.b-product-slider__item {
	width: var(--ka-slide) !important;
	max-width: var(--ka-slide) !important;
	flex: 0 0 var(--ka-slide) !important;
	box-sizing: border-box !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}
.b-product-slider .slick-slide > div {
	width: var(--ka-card) !important;
	max-width: var(--ka-card) !important;
	margin: 0 !important;
	box-sizing: border-box !important;
}
.b-product-slider .slick-slide > .b-product-item,
.b-product-slider .b-product-slider__item > .b-product-item {
	width: var(--ka-card) !important;
	max-width: var(--ka-card) !important;
	flex: 0 0 var(--ka-card) !important;
	box-sizing: border-box !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}
.b-product-grid__item > .b-product-item > [data-entity="item"],
.b-product-slider__item > .b-product-item > [data-entity="item"] {
	display: flex !important;
	flex-direction: column !important;
	width: 100%;
	height: 100%;
	min-height: 0;
}
.b-product-grid__item > .b-product-item .b-product-item__content1,
.b-product-slider__item > .b-product-item .b-product-item__content1 {
	display: flex !important;
	flex-direction: column !important;
	min-height: 0;
}
.b-product-grid__item > .b-product-item .b-product-item__img,
.b-product-slider__item > .b-product-item .b-product-item__img {
	position: relative !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	height: 200px !important;
	min-height: 200px !important;
	max-height: 200px !important;
	overflow: hidden !important;
	box-sizing: border-box !important;
	background: #fff !important;
	flex: 0 0 200px !important;
	isolation: isolate;
}
.b-product-grid__item > .b-product-item .b-product-item__img > img,
.b-product-slider__item > .b-product-item .b-product-item__img > img,
.b-product-grid__item > .b-product-item .b-product-item__img > img.main,
.b-product-slider__item > .b-product-item .b-product-item__img > img.main {
	position: relative !important;
	width: auto !important;
	height: auto !important;
	max-width: 100% !important;
	max-height: 100% !important;
	min-width: 0 !important;
	min-height: 0 !important;
	object-fit: contain !important;
	object-position: center center !important;
	background: transparent !important;
	flex: 0 1 auto;
}
/* Второе фото — оверлей, не сосед в flex-ряду (иначе вылезает из рамки). */
.b-product-grid__item > .b-product-item .b-product-item__img > img.hover,
.b-product-slider__item > .b-product-item .b-product-item__img > img.hover {
	position: absolute !important;
	left: 50% !important;
	top: 50% !important;
	transform: translate(-50%, -50%) !important;
	display: none !important;
	width: auto !important;
	height: auto !important;
	max-width: 100% !important;
	max-height: 100% !important;
	min-width: 0 !important;
	min-height: 0 !important;
	object-fit: contain !important;
	object-position: center center !important;
	background: #fff !important;
	pointer-events: none !important;
	z-index: 1;
}
.b-product-grid__item > .b-product-item:hover .b-product-item__img > img.hover,
.b-product-slider__item > .b-product-item:hover .b-product-item__img > img.hover {
	display: block !important;
}
.b-product-grid__item > .b-product-item .b-product-item__img > .b-product-item__note-box,
.b-product-slider__item > .b-product-item .b-product-item__img > .b-product-item__note-box {
	z-index: 2;
}
.b-product-grid__item > .b-product-item .b-product-item__art,
.b-product-slider__item > .b-product-item .b-product-item__art {
	height: 16px !important;
	min-height: 16px !important;
	max-height: 16px !important;
	overflow: hidden;
	flex: 0 0 16px;
}
/* Слот 76px — высота ряда не зависит от 1/2/3 строк названия (Safari -webkit-box схлопывался). */
.b-product-grid__item > .b-product-item .b-product-item__title-slot,
.b-product-slider__item > .b-product-item .b-product-item__title-slot {
	display: block !important;
	box-sizing: border-box !important;
	height: 76px !important;
	min-height: 76px !important;
	max-height: 76px !important;
	flex: 0 0 76px !important;
	overflow: hidden !important;
	margin: 0 !important;
	padding: 0 !important;
}
.b-product-grid__item > .b-product-item .b-product-item__title,
.b-product-grid__item > .b-product-item a.b-product-item__title,
.b-product-grid__item > .b-product-item a.b-product-item__title:link,
.b-product-grid__item > .b-product-item a.b-product-item__title:visited,
.b-product-grid__item > .b-product-item a.b-product-item__title:hover,
.b-product-grid__item > .b-product-item a.b-product-item__title:focus,
.b-product-grid__item > .b-product-item a.b-product-item__title:active,
.b-product-slider__item > .b-product-item .b-product-item__title,
.b-product-slider__item > .b-product-item a.b-product-item__title,
.b-product-slider__item > .b-product-item a.b-product-item__title:link,
.b-product-slider__item > .b-product-item a.b-product-item__title:visited,
.b-product-slider__item > .b-product-item a.b-product-item__title:hover,
.b-product-slider__item > .b-product-item a.b-product-item__title:focus,
.b-product-slider__item > .b-product-item a.b-product-item__title:active {
	color: #4f5358 !important;
	text-decoration: none !important;
	display: block !important;
	box-sizing: border-box !important;
	height: 76px !important;
	min-height: 76px !important;
	max-height: 76px !important;
	margin: 0 !important;
	padding: 0 !important;
	line-height: 19px !important;
	overflow: hidden !important;
	flex: 0 0 76px !important;
}
/* Список корзины: слот не должен появиться, но если кэш смешает — не раздувать строки. */
#basket-items-list-container.ka-cart-list .b-product-item__title-slot {
	display: contents;
	height: auto !important;
	min-height: 0 !important;
	max-height: none !important;
	flex: none !important;
	overflow: visible !important;
}
.b-product-grid__item > .b-product-item .b-product-item__bottom,
.b-product-slider__item > .b-product-item .b-product-item__bottom {
	margin-top: auto !important;
	height: 151px !important;
	min-height: 151px !important;
	max-height: 151px !important;
	overflow: hidden;
	flex: 0 0 151px;
}
.b-product-grid__item > .b-product-item .b-product-item__bottom form.b-row,
.b-product-slider__item > .b-product-item .b-product-item__bottom form.b-row {
	display: flex !important;
	justify-content: center;
	align-items: center;
	flex-wrap: nowrap;
}
.b-product-grid__item > .b-product-item .b-product-item__bottom form.b-row > .b-col_small_6,
.b-product-slider__item > .b-product-item .b-product-item__bottom form.b-row > .b-col_small_6 {
	flex: 0 1 50%;
	max-width: 94.5px;
	overflow: hidden;
}
.b-product-grid__item > .b-product-item .b-product-item__price,
.b-product-slider__item > .b-product-item .b-product-item__price {
	box-sizing: border-box;
	height: 59px !important;
	min-height: 59px !important;
	max-height: 59px !important;
	overflow: hidden;
	padding-bottom: 16px;
}
.b-product-grid__item > .b-product-item .b-product-item__bottom .b-number,
.b-product-grid__item > .b-product-item .b-product-item__bottom .b-product-item__btn,
.b-product-grid__item > .b-product-item .b-product-item__bottom .b-product-item__btn.inbasket,
.b-product-slider__item > .b-product-item .b-product-item__bottom .b-number,
.b-product-slider__item > .b-product-item .b-product-item__bottom .b-product-item__btn,
.b-product-slider__item > .b-product-item .b-product-item__bottom .b-product-item__btn.inbasket {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	max-width: 100% !important;
	height: 40px !important;
	min-height: 40px !important;
	max-height: 40px !important;
	box-sizing: border-box !important;
	white-space: nowrap !important;
	overflow: hidden !important;
}

/* В корзине стрелки количества должны быть видимы и кликабельны. */
#basket-root [data-entity="basket-item-quantity-block"] {
	position: relative !important;
	overflow: visible !important;
}
#basket-root [data-entity="basket-item-quantity-block"] .b-number__btn {
	display: flex !important;
	visibility: visible !important;
	opacity: 1 !important;
	pointer-events: auto !important;
}
#basket-root [data-entity="basket-item-quantity-field"] {
	pointer-events: auto !important;
}

@media (max-width: 767px) {
	.b-product-item__price .ka-price-wrap .ka-price-current strong {
		font-size: 16px !important;
	}
	.b-product-item__price .ka-price-wrap .ka-price-old {
		margin-left: 3px !important;
		font-size: 13px !important;
	}
}

@media (max-width: 360px) {
	.b-product-item__price .ka-price-wrap .ka-price-current strong {
		font-size: 14px !important;
	}
	.b-product-item__price .ka-price-wrap .ka-price-old {
		margin-left: 2px !important;
		font-size: 11px !important;
	}
}

/* KA GUTTER 20260831: меньше воздух между карточками, ширина 221 как /sale/.
   Внутренняя геометрия 580/200/76/151 не меняется. Не вешать 580 на .ka-bi.
   Плашку Xhorse / .ka-partners не трогаем. */
@media (min-width: 1200px) {
	.b-block-grid.b-block-grid_large_4,
	.b-block-grid.b-block-grid_xlarge_4 {
		display: flex !important;
		flex-wrap: wrap;
		justify-content: flex-start !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		column-gap: 4px !important;
		row-gap: 4px !important;
	}
	.b-block-grid.b-block-grid_large_4 > .b-block-grid__item:not(:has(.ka-partners)),
	.b-block-grid.b-block-grid_xlarge_4 > .b-block-grid__item:not(:has(.ka-partners)) {
		width: 221px !important;
		max-width: 221px !important;
		flex: 0 0 221px !important;
		float: none !important;
		clear: none !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
		box-sizing: border-box !important;
	}
	.b-product-grid .b-block-grid__item {
		padding-left: 0 !important;
		padding-right: 0 !important;
	}
}

/* KA 31.08: названия плиток категорий не вылезают из рамки.
   Плитки 221px не увеличиваем. Плашку партнёра Xhorse / .ka-partners не трогаем. */
.b-block-grid__item > a.b-category-item {
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
}
.b-category-item__title {
	max-width: 100%;
	min-width: 0;
	min-height: 3.6em; /* 3 строки line-height 1.2 — счётчик и фото на одной линии */
	overflow: hidden;
	overflow-wrap: break-word;
	word-break: break-word;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
}
@media only screen and (min-width: 1200px) {
	/* 1.875rem (30px) не влезает в плитку 221px; оставляем кегль как на планшете. */
	.b-category-item__title {
		font-size: 1.125rem;
	}
}

/* KA 01.09: перечёркнутая розница читаема.
   Колонка цены 84.5px + nowrap срезала <del> до ~2px. Геометрия 580/200/76/151 не меняется.
   Плашку партнёров / .ka-partners не трогаем. */
.b-product-item__price .ka-price-old,
.b-product-item__price .ka-price-wrap .ka-price-old,
.b-product-item__price .ka-price-old del,
.b-product-item__price .ka-price-wrap .ka-price-old del {
	color: #888 !important;
	text-decoration-color: #888 !important;
	text-decoration-thickness: 2px !important;
	text-decoration-skip-ink: none !important;
}
.b-product-grid__item > .b-product-item .b-product-item__price:has(.ka-price-old),
.b-product-slider__item > .b-product-item .b-product-item__price:has(.ka-price-old) {
	padding-bottom: 0 !important;
	overflow: visible;
}
.b-product-grid__item > .b-product-item .b-product-item__price:has(.ka-price-old) > span:first-child,
.b-product-slider__item > .b-product-item .b-product-item__price:has(.ka-price-old) > span:first-child {
	line-height: 1.1;
	font-size: 12px;
	margin: 0;
	padding: 0;
}
.b-product-grid__item > .b-product-item .b-product-item__price:has(.ka-price-old) .price-per-1,
.b-product-slider__item > .b-product-item .b-product-item__price:has(.ka-price-old) .price-per-1 {
	display: none !important;
}
.b-product-grid__item > .b-product-item .b-product-item__price:has(.ka-price-old) .ka-price-wrap,
.b-product-slider__item > .b-product-item .b-product-item__price:has(.ka-price-old) .ka-price-wrap {
	white-space: normal !important;
	max-width: 100%;
	line-height: 1.05;
	display: block !important;
}
.b-product-grid__item > .b-product-item .b-product-item__price:has(.ka-price-old) .ka-price-current strong,
.b-product-slider__item > .b-product-item .b-product-item__price:has(.ka-price-old) .ka-price-current strong {
	line-height: 1.05;
}
.b-product-grid__item > .b-product-item .b-product-item__price:has(.ka-price-old) .ka-price-old,
.b-product-slider__item > .b-product-item .b-product-item__price:has(.ka-price-old) .ka-price-old {
	display: block !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	line-height: 1;
	font-size: 0.85em !important;
	font-weight: 400 !important;
}
.b-product-grid__item > .b-product-item .b-product-item__price:has(.ka-price-old) .ka-price-old del,
.b-product-slider__item > .b-product-item .b-product-item__price:has(.ka-price-old) .ka-price-old del {
	display: inline !important;
	text-decoration: line-through !important;
	text-decoration-color: #888 !important;
	text-decoration-thickness: 2px !important;
	text-decoration-skip-ink: none !important;
	color: #888 !important;
}

/* KA 2026-09-03: ruble not clipped
   Колонка цены была 50% (~84px): «189 000 ₽» шире, overflow:hidden режет ₽ в палку.
   Правая половина ряда пустая — отдаём цене всю ширину низа. Высота 59/151 и карточка 221×580 без изменений. */
.b-product-item__bottom > .b-row:not(form) > .b-col_small_6:has(.b-product-item__price) {
	flex: 1 1 100%;
	max-width: 100% !important;
	width: 100% !important;
}

/* KA 2026-09-03: низ карточки в слайдере «Акции» на мобилке.
   Причина: колонки form.b-row с flex-grow:0 и max-width:84px не заполняют широкую
   карточку; overflow:hidden + flex-shrink схлопывают qty в оранжевую палку.
   Селектор `slider__item > item` не всегда срабатывает (обёртка slick).
   Десктоп 221×580: 50% от низа ≈ 94.5px — как было. ₽ не трогаем. */

.b-product-grid__item .b-product-item .b-product-item__bottom form.b-row,
.b-product-slider .b-product-item .b-product-item__bottom form.b-row,
.b-product-slider__item .b-product-item .b-product-item__bottom form.b-row {
	display: flex !important;
	justify-content: flex-start;
	align-items: center;
	flex-wrap: nowrap !important;
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
}

.b-product-grid__item .b-product-item .b-product-item__bottom form.b-row > .b-col_small_6,
.b-product-slider .b-product-item .b-product-item__bottom form.b-row > .b-col_small_6,
.b-product-slider__item .b-product-item .b-product-item__bottom form.b-row > .b-col_small_6 {
	flex: 1 1 50% !important;
	max-width: 50% !important;
	min-width: 72px !important;
	overflow: hidden;
	box-sizing: border-box !important;
}

.b-product-grid__item .b-product-item .b-product-item__bottom .b-number,
.b-product-grid__item .b-product-item .b-product-item__bottom .b-product-item__btn,
.b-product-grid__item .b-product-item .b-product-item__bottom .b-product-item__btn.inbasket,
.b-product-slider .b-product-item .b-product-item__bottom .b-number,
.b-product-slider .b-product-item .b-product-item__bottom .b-product-item__btn,
.b-product-slider .b-product-item .b-product-item__bottom .b-product-item__btn.inbasket,
.b-product-slider__item .b-product-item .b-product-item__bottom .b-number,
.b-product-slider__item .b-product-item .b-product-item__bottom .b-product-item__btn,
.b-product-slider__item .b-product-item .b-product-item__bottom .b-product-item__btn.inbasket {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 62px !important;
	height: 40px !important;
	min-height: 40px !important;
	max-height: 40px !important;
	box-sizing: border-box !important;
	white-space: nowrap !important;
	overflow: hidden !important;
}

/* Цена на 100% только у ряда цены, не у form.b-row с qty/кнопкой. */
.b-product-item__bottom > .b-row:not(form) > .b-col_small_6:has(.b-product-item__price) {
	flex: 1 1 100%;
	max-width: 100% !important;
	width: 100% !important;
}

/* KA 2026-09-08: каталог «список» = горизонтальные ряды как в корзине (.ka-cart-list).
   НЕ карточки 221×580. Слайдер «Акции» и сетка не затрагиваются — только .ka-list-view. */

.b-product-grid.ka-list-view {
	display: flex !important;
	flex-direction: column !important;
	flex-wrap: nowrap !important;
	gap: 0 !important;
	row-gap: 0 !important;
	column-gap: 0 !important;
	margin: 0 !important;
	width: 100% !important;
	max-width: 100% !important;
}

.b-product-grid.ka-list-view > .b-block-grid__item,
.b-product-grid.ka-list-view .b-block-grid__item,
.b-product-grid.ka-list-view > .b-product-grid__item,
.b-product-grid.ka-list-view .b-product-grid__item,
.b-product-grid.ka-list-view .col-xs-12,
.b-product-grid.ka-list-view .col-xs-6,
.b-product-grid.ka-list-view .col-sm-6,
.b-product-grid.ka-list-view .col-md-3,
.b-product-grid.ka-list-view .col-md-12,
.b-product-grid.ka-list-view .row,
.b-product-grid.ka-list-view .product-item-small-card,
.b-product-grid.ka-list-view .product-item-big-card {
	float: none !important;
	clear: none !important;
	width: 100% !important;
	max-width: 100% !important;
	flex: 0 0 auto !important;
	padding: 0 !important;
	margin: 0 !important;
	box-sizing: border-box !important;
}

.b-product-grid.ka-list-view .b-product-grid__item > .b-product-item {
	position: relative !important;
	display: block !important;
	box-sizing: border-box !important;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	height: auto !important;
	min-height: 0 !important;
	max-height: none !important;
	overflow: visible !important;
	padding: 8px 8px 8px 4px !important;
	margin: 0 !important;
	border: 0 !important;
	border-bottom: 1px solid #ededed !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	background: #fff !important;
}

.b-product-grid.ka-list-view .b-product-grid__item > .b-product-item > [data-entity="item"] {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	gap: 14px;
	width: 100%;
	min-height: 52px;
	height: auto !important;
	min-width: 0;
}

.b-product-grid.ka-list-view .favorite-button {
	display: none !important;
}

.b-product-grid.ka-list-view .b-product-item__content1 {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	gap: 14px;
	flex: 1 1 auto !important;
	min-width: 0 !important;
	min-height: 0 !important;
}

.b-product-grid.ka-list-view .b-product-grid__item > .b-product-item .b-product-item__img {
	position: relative !important;
	left: auto !important;
	top: auto !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	flex: 0 0 56px !important;
	width: 56px !important;
	min-width: 56px !important;
	max-width: 56px !important;
	height: 48px !important;
	min-height: 48px !important;
	max-height: 48px !important;
	margin: 0 !important;
	overflow: hidden !important;
	background: #fff !important;
}

.b-product-grid.ka-list-view .b-product-grid__item > .b-product-item .b-product-item__img > img,
.b-product-grid.ka-list-view .b-product-grid__item > .b-product-item .b-product-item__img > img.main {
	position: relative !important;
	width: auto !important;
	height: auto !important;
	max-width: 100% !important;
	max-height: 48px !important;
	object-fit: contain !important;
}

.b-product-grid.ka-list-view .b-product-grid__item > .b-product-item .b-product-item__img > img.hover,
.b-product-grid.ka-list-view .b-product-grid__item > .b-product-item:hover .b-product-item__img > img.hover {
	display: none !important;
}

.b-product-grid.ka-list-view .b-product-item__note-box,
.b-product-grid.ka-list-view .b-product-item__note {
	position: absolute !important;
	left: 0 !important;
	top: 0 !important;
	padding: 1px 4px !important;
	font-size: 9px !important;
	line-height: 1.2 !important;
}

.b-product-grid.ka-list-view .ka-list-meta {
	display: flex !important;
	flex-direction: column !important;
	justify-content: center !important;
	align-items: flex-start !important;
	min-width: 0 !important;
	flex: 1 1 auto !important;
	gap: 2px;
}

/* art + title + stock: группируем через contents + порядок, без правки PHP */
.b-product-grid.ka-list-view .ka-card-stock {
	order: 3;
	flex: 0 0 auto !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	font-size: 12px !important;
	line-height: 1.3 !important;
	font-weight: 700;
	white-space: nowrap !important;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 140px;
}

.b-product-grid.ka-list-view .b-product-item__art,
.b-product-grid.ka-list-view .b-product-grid__item > .b-product-item .b-product-item__art {
	order: 2;
	height: auto !important;
	min-height: 0 !important;
	max-height: none !important;
	flex: 0 0 auto !important;
	margin: 0 !important;
	font-size: 11px !important;
	line-height: 1.3 !important;
	color: #9a9a9a;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
}

.b-product-grid.ka-list-view .b-product-item__title-slot {
	order: 2;
	display: flex !important;
	flex-direction: column !important;
	min-width: 0 !important;
	flex: 1 1 auto !important;
	gap: 2px;
}

.b-product-grid.ka-list-view .b-product-grid__item > .b-product-item .b-product-item__title,
.b-product-grid.ka-list-view .b-product-grid__item > .b-product-item a.b-product-item__title,
.b-product-grid.ka-list-view .b-product-grid__item > .b-product-item a.b-product-item__title:link,
.b-product-grid.ka-list-view .b-product-grid__item > .b-product-item a.b-product-item__title:visited,
.b-product-grid.ka-list-view .b-product-grid__item > .b-product-item a.b-product-item__title:hover {
	display: block !important;
	height: auto !important;
	min-height: 0 !important;
	max-height: none !important;
	flex: 0 0 auto !important;
	margin: 0 !important;
	padding: 0 !important;
	font-size: 13px !important;
	line-height: 1.3 !important;
	color: #4f5358 !important;
	text-decoration: none !important;
	white-space: nowrap !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	-webkit-line-clamp: unset !important;
	line-clamp: unset;
	-webkit-box-orient: unset !important;
	overflow-wrap: normal !important;
	word-break: normal !important;
	hyphens: none !important;
}

.b-product-grid.ka-list-view .b-product-grid__item > .b-product-item .b-product-item__bottom {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	justify-content: flex-end !important;
	gap: 12px;
	flex: 0 0 auto !important;
	width: auto !important;
	max-width: none !important;
	height: auto !important;
	min-height: 0 !important;
	max-height: none !important;
	margin: 0 !important;
	overflow: visible !important;
}

.b-product-grid.ka-list-view .b-product-item__bottom > .b-row:not(form) {
	display: flex !important;
	align-items: center !important;
	margin: 0 !important;
	padding: 0 !important;
	width: auto !important;
	flex: 0 0 auto !important;
}

.b-product-grid.ka-list-view .b-product-item__bottom > .b-row:not(form) > .b-col_small_6,
.b-product-grid.ka-list-view .b-product-item__bottom > .b-row:not(form) > .b-col_small_6:has(.b-product-item__price) {
	flex: 0 0 auto !important;
	width: auto !important;
	max-width: none !important;
	min-width: 0 !important;
}

.b-product-grid.ka-list-view .b-product-grid__item > .b-product-item .b-product-item__price {
	height: auto !important;
	min-height: 0 !important;
	max-height: none !important;
	padding: 0 !important;
	margin: 0 !important;
	overflow: visible !important;
	white-space: nowrap;
}

.b-product-grid.ka-list-view .b-product-item__price > span:first-child {
	display: none !important; /* «Опт.» + тултип — в ряду корзины их нет */
}

.b-product-grid.ka-list-view .fz30,
.b-product-grid.ka-list-view .b-product-item__price .ka-price-current,
.b-product-grid.ka-list-view .b-product-item__price .ka-price-current strong,
.b-product-grid.ka-list-view .b-product-item__price strong {
	font-size: 15px !important;
	margin: 0 !important;
	white-space: nowrap !important;
}

.b-product-grid.ka-list-view .b-product-item__info,
.b-product-grid.ka-list-view .split-button,
.b-product-grid.ka-list-view .credit-button,
.b-product-grid.ka-list-view yandex-pay-badge,
.b-product-grid.ka-list-view .b-space_xs,
.b-product-grid.ka-list-view .b-space_sm {
	display: none !important;
}

.b-product-grid.ka-list-view .b-product-item__bottom form.b-row {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	justify-content: flex-end !important;
	gap: 8px;
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.b-product-grid.ka-list-view .b-product-grid__item .b-product-item .b-product-item__bottom form.b-row > .b-col_small_6 {
	flex: 0 0 104px !important;
	width: 104px !important;
	max-width: 104px !important;
	min-width: 104px !important;
	overflow: visible !important;
	padding: 0 !important;
	margin: 0 !important;
}

.b-product-grid.ka-list-view .b-product-grid__item .b-product-item .b-product-item__bottom .b-number,
.b-product-grid.ka-list-view .b-product-grid__item .b-product-item .b-product-item__bottom .b-product-item__btn,
.b-product-grid.ka-list-view .b-product-grid__item .b-product-item .b-product-item__bottom .b-product-item__btn.inbasket {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 104px !important;
	max-width: 104px !important;
	min-width: 104px !important;
	height: 40px !important;
	min-height: 40px !important;
	max-height: 40px !important;
	box-sizing: border-box !important;
	white-space: nowrap !important;
	overflow: hidden !important;
}

.b-product-grid.ka-list-view .ka-buy-link {
	display: block !important;
	width: 104px !important;
}

/* Арт и название столбиком: content1 — сетка, не ряд из пяти сирот */
.b-product-grid.ka-list-view .b-product-item__content1 {
	display: grid !important;
	grid-template-columns: 56px minmax(0, 1fr) auto;
	grid-template-rows: auto auto;
	column-gap: 14px;
	row-gap: 2px;
	align-items: center;
	flex: 1 1 auto !important;
	min-width: 0 !important;
}

.b-product-grid.ka-list-view .b-product-item__img {
	grid-column: 1;
	grid-row: 1 / span 2;
}

.b-product-grid.ka-list-view .b-product-item__art {
	grid-column: 2;
	grid-row: 1;
	order: unset;
}

.b-product-grid.ka-list-view .b-product-item__title-slot {
	grid-column: 2;
	grid-row: 2;
	order: unset;
}

.b-product-grid.ka-list-view .ka-card-stock {
	grid-column: 3;
	grid-row: 1 / span 2;
	order: unset;
	max-width: 130px;
	padding: 0 !important;
}

@media (max-width: 767px) {
	.b-product-grid.ka-list-view .b-product-grid__item > .b-product-item {
		padding: 10px 4px !important;
	}
	.b-product-grid.ka-list-view .b-product-grid__item > .b-product-item > [data-entity="item"] {
		flex-wrap: wrap !important;
		gap: 8px;
		align-items: flex-start !important;
	}
	.b-product-grid.ka-list-view .b-product-item__content1 {
		flex: 1 1 100% !important;
		width: 100% !important;
		grid-template-columns: 48px minmax(0, 1fr);
		column-gap: 10px;
	}
	.b-product-grid.ka-list-view .b-product-grid__item > .b-product-item .b-product-item__img {
		flex-basis: 48px !important;
		width: 48px !important;
		min-width: 48px !important;
		max-width: 48px !important;
		height: 40px !important;
		min-height: 40px !important;
		max-height: 40px !important;
	}
	.b-product-grid.ka-list-view .b-product-grid__item > .b-product-item .b-product-item__img > img,
	.b-product-grid.ka-list-view .b-product-grid__item > .b-product-item .b-product-item__img > img.main {
		max-height: 40px !important;
	}
	.b-product-grid.ka-list-view .ka-card-stock {
		grid-column: 2;
		grid-row: 3;
		max-width: 100%;
		font-size: 11px !important;
	}
	.b-product-grid.ka-list-view .b-product-grid__item > .b-product-item .b-product-item__title,
	.b-product-grid.ka-list-view .b-product-grid__item > .b-product-item a.b-product-item__title {
		font-size: 12px !important;
		white-space: nowrap !important;
	}
	.b-product-grid.ka-list-view .b-product-grid__item > .b-product-item .b-product-item__bottom {
		flex: 1 1 100% !important;
		width: 100% !important;
		justify-content: flex-start !important;
		gap: 8px;
	}
	.b-product-grid.ka-list-view .b-product-item__price .ka-price-current strong,
	.b-product-grid.ka-list-view .b-product-item__price strong {
		font-size: 14px !important;
	}
	.b-product-grid.ka-list-view .b-product-grid__item .b-product-item .b-product-item__bottom form.b-row > .b-col_small_6 {
		flex: 0 0 84px !important;
		width: 84px !important;
		max-width: 84px !important;
		min-width: 84px !important;
	}
	.b-product-grid.ka-list-view .b-product-grid__item .b-product-item .b-product-item__bottom .b-number,
	.b-product-grid.ka-list-view .b-product-grid__item .b-product-item .b-product-item__bottom .b-product-item__btn,
	.b-product-grid.ka-list-view .b-product-grid__item .b-product-item .b-product-item__bottom .b-product-item__btn.inbasket,
	.b-product-grid.ka-list-view .ka-buy-link {
		width: 84px !important;
		max-width: 84px !important;
		min-width: 84px !important;
	}
}

/* KA 2026-09-14: фото адаптеров в слоте 200px.
   Kit/portrait-снимки (PR1202/PR1204) и Bitrix-слои MORE_PHOTO
   (img.hover, .product-item-image-alternative, slide-container)
   не должны вставать в flex-ряд и вылезать из рамки.
   Геометрия карточки 580 / фото 200 / title 76 / низ 151 — не меняется.
   Селектор без обязательного `>` — обёртка slick. Список (ka-list-view) не трогаем. */

.b-product-grid:not(.ka-list-view) .b-product-item .b-product-item__img,
.b-product-slider .b-product-item .b-product-item__img,
.b-product-slider__item .b-product-item .b-product-item__img {
	overflow: hidden !important;
	flex-wrap: nowrap !important;
}

.b-product-grid:not(.ka-list-view) .b-product-item .b-product-item__img > img,
.b-product-slider .b-product-item .b-product-item__img > img,
.b-product-slider__item .b-product-item .b-product-item__img > img,
.b-product-grid:not(.ka-list-view) .b-product-item .b-product-item__img > img.main,
.b-product-slider .b-product-item .b-product-item__img > img.main,
.b-product-slider__item .b-product-item .b-product-item__img > img.main {
	position: relative !important;
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	max-height: 100% !important;
	min-width: 0 !important;
	min-height: 0 !important;
	object-fit: contain !important;
	object-position: center center !important;
	flex: 0 1 auto !important;
	background: transparent !important;
}

.b-product-grid:not(.ka-list-view) .b-product-item .b-product-item__img > img.hover,
.b-product-slider .b-product-item .b-product-item__img > img.hover,
.b-product-slider__item .b-product-item .b-product-item__img > img.hover {
	position: absolute !important;
	left: 0 !important;
	top: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	transform: none !important;
	display: none !important;
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	max-height: 100% !important;
	object-fit: contain !important;
	object-position: center center !important;
	background: #fff !important;
	pointer-events: none !important;
	z-index: 1;
}

.b-product-grid:not(.ka-list-view) .b-product-item:hover .b-product-item__img > img.hover,
.b-product-slider .b-product-item:hover .b-product-item__img > img.hover,
.b-product-slider__item .b-product-item:hover .b-product-item__img > img.hover {
	display: block !important;
}

.b-product-item .b-product-item__img > .product-item-image-slider-slide-container,
.b-product-item .b-product-item__img > .product-item-image-alternative {
	display: none !important;
	width: 0 !important;
	height: 0 !important;
	overflow: hidden !important;
	pointer-events: none !important;
	opacity: 0 !important;
}

/* KA 17.09.2026: подпись менеджера рядом с телефоном в футере. */
.b-footer__phone-name{
	color:#c9c9c9;
	font-size:.85em;
	font-weight:400;
	white-space:nowrap;
}
