/*NOTE: This file is intended for programmers. Aspro technical support is not advised to work with him.*/

/* ==========================================================================
   Яндекс Баллы и Плюс (Десктоп)
   ========================================================================== */
.yandex-balls {
	display: inline-flex;
	align-items: center;
	font-family: "YS Text", var(--theme-font-family), Arial, sans-serif;
	font-size: 20px;
	line-height: 1;
	font-variant-numeric: lining-nums proportional-nums;
}

.yandex-balls .balls,
.yandex-balls .split {
	display: inline-flex;
	align-items: center;
	height: 24px;
	padding: 0 3px 0 24px;
	border-radius: 12px 2px 2px 12px;
	color: rgba(255, 255, 255, 0.98);
}

.yandex-balls .balls {
	background:
		url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M18 9C18 13.9706 13.9706 18 9 18C4.02944 18 0 13.9706 0 9C0 4.02944 4.02944 0 9 0C9.97115 0 10.9064 0.153817 11.7826 0.438417L9.73137 6.75H3.74101L3.00901 9H9.00012L7.24512 14.4H9.72012L11.4751 9H18ZM17.7165 6.75H12.2064L13.9239 1.46519C15.7737 2.67647 17.1504 4.55054 17.7165 6.75Z' fill='white' fill-opacity='0.98'/%3E%3C/svg%3E%0A") 3px 3px no-repeat,
		linear-gradient(90deg, #FF5C4D 0%, #EB469F 40%, #8341EF 100%);
}

.yandex-balls .split {
	background:
		url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11.5946 6.94607L11.5106 6.83175C15.7942 3.37346 15.3183 2.85901 15.3183 2.85901C14.8983 2.40171 14.4504 2.00158 13.9744 1.65861C13.3025 1.17274 12.5745 0.772603 11.7906 0.515375C8.54287 -0.685022 4.6792 0.258147 2.3554 2.85901C-0.752329 6.26013 -0.808324 11.6619 2.32741 15.1202C5.63112 18.75 11.2586 18.9786 14.8143 15.6347L14.8703 15.5775L14.9263 15.5203L14.9543 15.4918C15.0103 15.4346 15.0663 15.3774 15.0943 15.3203C16.1022 14.0055 14.5903 10.4329 11.5946 6.94607ZM14.3384 14.6629C14.1144 14.8916 13.1625 14.9201 11.6226 14.0913C10.1947 13.3196 8.59886 12.0049 7.08699 10.4044C6.83502 10.6044 11.0347 7.23188 10.8387 7.40336C12.1546 8.94673 13.2745 10.633 13.8624 12.0335C14.5623 13.6626 14.5344 14.4628 14.3384 14.6629Z' fill='white' fill-opacity='0.98'/%3E%3C/svg%3E%0A") 3px 3px no-repeat,
		#121214;
}

.yandex-balls .text {
	display: inline-flex;
	align-items: center;
	height: 24px;
	padding: 0 2px 0 5px;
	color: rgba(0, 0, 0, 0.86);
}

/* ==========================================================================
   Яндекс Сплит (Десктоп)
   ========================================================================== */
.yandex-split {
	display: flex;
	align-items: center;
	gap: 2px;
	font-family: "YS Text", var(--theme-font-family), Arial, sans-serif;
	font-variant-numeric: lining-nums proportional-nums;
	font-size: 14px;
	line-height: 18px;
	color: #262633;
}

.yandex-split .item {
	width: 74px;
	display: flex;
	flex-direction: column;
	gap: 0;
}

.yandex-split .item:before {
	content: "";
	width: 100%;
	height: 6px;
	border-radius: 3px;
	background: #E1E3E8;
	margin-bottom: 8px;
}

.yandex-split .item:first-child:before {
	background: #4AC2A8;
}

.yandex-split .item-value {
	font-weight: 500;
}

.catalog-detail__cart+[data-ya-split-block] {
	margin-top: 19px;
}

[data-ya-split-block]:empty {
	display: none;
}

[data-ya-split-block] .ya-pay-widget .ya-pay-widget__container {
	display: none !important;
}

/* ==========================================================================
   Фильтр каталога
   ========================================================================== */
.section-content-wrapper.with-leftblock+.left_block {
	display: none;
}

#mobilefilter.scrollbar-filter {
	background: none !important;
	box-shadow: none;
	width: 400px;
	max-width: 100%;
}

#mobilefilter .bx_filter .bx_filter_parameters_box .svg-close {
	display: block;
	top: 50%;
	transform: translate(0, -50%);
}

.scrollbar-filter .bx_filter .bx_filter_parameters_box.title.visible-991 {
	display: block !important;
}

.scrollbar-filter .bx_filter .filter_title {
	justify-content: flex-start;
	align-items: center;
	gap: 6px;
	width: 100%;
}

#mobilefilter .filter_title.active-filter::after {
	position: static;
}

/* ==========================================================================
   Кнопка «Фильтр» (Десктоп)
   Разметка: .filter-panel__filter > .bx-filter-title.filter_title
             > svg + span.dotted + .controls-hr
   Цвет берётся из переменной темы Аспро --theme-base-color.
   Блик сделан анимацией фона, без ::before/::after, чтобы не конфликтовать
   с псевдоэлементами темы. Заголовок панели #mobilefilter не затрагивается:
   он не лежит внутри .filter-panel__filter.
   ========================================================================== */
@media (min-width: 992px) {
	.filter-panel .filter-panel__filter .filter_title {
		--filter-btn-color: var(--theme-base-color, #fd9c12);
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 7px;
		box-sizing: border-box;
		height: 34px;
		padding: 0 15px;
		border: 0;
		border-radius: 6px;
		background-color: var(--filter-btn-color);
		/* запасной вариант для браузеров без color-mix */
		background-image: linear-gradient(135deg, #ffaa2b 0%, #f38b00 100%);
		color: #fff;
		cursor: pointer;
		user-select: none;
		text-decoration: none;
		box-shadow: 0 2px 6px rgba(253, 156, 18, 0.35);
		transition: transform 0.15s ease, filter 0.15s ease;
	}

	@supports (background: color-mix(in srgb, red 50%, white)) {
		.filter-panel .filter-panel__filter .filter_title {
			background-image:
				linear-gradient(100deg, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0.55) 50%, rgba(255, 255, 255, 0) 60%),
				linear-gradient(135deg, var(--filter-btn-color) 0%, color-mix(in srgb, var(--filter-btn-color) 65%, #fff) 100%);
			background-size: 250% 100%, 100% 100%;
			background-repeat: no-repeat;
			background-position: 100% 0, 0 0;
			box-shadow: 0 2px 8px color-mix(in srgb, var(--filter-btn-color) 45%, transparent);
			animation:
				filter-btn-shine 2.8s ease-in-out infinite,
				filter-btn-pulse 2.4s ease-out infinite;
		}
	}

	.filter-panel .filter-panel__filter .filter_title:hover {
		transform: translateY(-1px);
		filter: brightness(1.05);
	}

	.filter-panel .filter-panel__filter .filter_title:active {
		transform: translateY(1px);
	}

	/* Текст: белый, без пунктирного подчёркивания темы */
	.filter-panel .filter-panel__filter .filter_title .dotted {
		color: #fff;
		font-size: 14px;
		font-weight: 600;
		line-height: 1;
		border-bottom: 0;
		background: none;
		text-decoration: none;
	}

	/* Иконка: атрибут fill="#222222" перекрывается обычным CSS */
	.filter-panel .filter-panel__filter .filter_title svg {
		display: block;
		flex-shrink: 0;
		width: 18px;
		height: 16px;
	}

	.filter-panel .filter-panel__filter .filter_title svg path {
		fill: #fff;
	}

	.filter-panel .filter-panel__filter .filter_title svg circle {
		stroke: #fff;
	}

	/* Пустая линия под кнопкой */
	.filter-panel .filter-panel__filter .controls-hr {
		display: none !important;
	}
}

@keyframes filter-btn-shine {
	0%   { background-position: 100% 0, 0 0; }
	60%  { background-position: 0% 0, 0 0; }
	100% { background-position: 0% 0, 0 0; }
}

@keyframes filter-btn-pulse {
	0% {
		box-shadow: 0 2px 8px color-mix(in srgb, var(--theme-base-color, #fd9c12) 45%, transparent),
			0 0 0 0 color-mix(in srgb, var(--theme-base-color, #fd9c12) 50%, transparent);
	}
	70%, 100% {
		box-shadow: 0 2px 8px color-mix(in srgb, var(--theme-base-color, #fd9c12) 45%, transparent),
			0 0 0 10px color-mix(in srgb, var(--theme-base-color, #fd9c12) 0%, transparent);
	}
}

@media (prefers-reduced-motion: reduce) {
	.filter-panel .filter-panel__filter .filter_title {
		animation: none !important;
	}
}

/* ==========================================================================
   Блок «Вы смотрели»: убраны остатки заглушек загрузки (серые прямоугольники)
   Контейнер выбран по части имени класса; при необходимости замените
   [class*="viewed"] на точный класс из DevTools
   ========================================================================== */
[class*="viewed"] [class*="item"]::before,
[class*="viewed"] [class*="item"]::after,
[class*="viewed"] [class*="skeleton"]::before,
[class*="viewed"] [class*="skeleton"]::after {
	content: none;
	display: none;
	animation: none;
}

[class*="viewed"] [class*="skeleton"],
[class*="viewed"] [class*="placeholder"],
[class*="viewed"] [class*="loading"] {
	background: none;
	animation: none;
}

/* ==========================================================================
   Блок «Вы смотрели»: фото больше не перекрывает цену и название
   Обёртка картинки растёт по содержимому, сама картинка имеет фиксированную
   высоту и вписывается целиком (object-fit: contain), в том числе высокие
   фонари и торшеры.
   ========================================================================== */
[class*="viewed"] :is(a, div, span, picture):has(> img) {
	display: block !important;
	width: 100% !important;
	height: auto !important;
	min-height: 0 !important;
	aspect-ratio: auto !important;
	margin: 0 0 12px !important;
	overflow: hidden;
}

[class*="viewed"] img {
	position: static !important;
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	height: 110px !important;
	margin: 0 auto !important;
	object-fit: contain !important;
	object-position: center;
	transform: none !important;
}

/* ==========================================================================
   Картинка в края (страховка к настройке Аспро)
   Картинка заполняет всю ширину карточки без внутренних полей
   ========================================================================== */
.catalog-block .section-gallery-wrapper {
	margin: 0;
	padding: 0;
}

.catalog-block .section-gallery-wrapper__item {
	padding: 0;
}

.catalog-block .section-gallery-wrapper__item img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* ==========================================================================
   Блок тегов «С этими товарами ищут»
   ========================================================================== */
.landings-list,
.landing-tags,
.landing-links {
	margin: 40px 0;
}

:is(.landings-list, .landing-tags, .landing-links) :is(h2, h3, h4, .h3, [class*="title"]) {
	margin: 0 0 16px;
}

/* ==========================================================================
   Авторизация по телефону BXmaker
   ========================================================================== */
body .bxmaker-authuserphone-button:focus {
	outline: none;
}

body .bxmaker-authuserphone-button .bxmaker-authuserphone-button__inner {
	background-color: #fd9c12;
}

body .bxmaker-authuserphone-button:hover .bxmaker-authuserphone-button__inner {
	background-color: #fd9c12;
}

body .bxmaker-authuserphone-input-phone--focus .bxmaker-authuserphone-input-phone__field,
body .bxmaker-authuserphone-input-phone--hover .bxmaker-authuserphone-input-phone__field,
body .bxmaker-authuserphone-input-phone:hover .bxmaker-authuserphone-input-phone__field {
	border-color: #fd9c12;
}

body .bxmaker-authuserphone-input--focus .bxmaker-authuserphone-input__field,
body .bxmaker-authuserphone-input--hover .bxmaker-authuserphone-input__field,
body .bxmaker-authuserphone-input:hover .bxmaker-authuserphone-input__field {
	border-color: #fd9c12;
}

body .bxmaker-authuserphone-input-password--focus .bxmaker-authuserphone-input-password__field,
body .bxmaker-authuserphone-input-password--hover .bxmaker-authuserphone-input-password__field,
body .bxmaker-authuserphone-input-password:hover .bxmaker-authuserphone-input-password__field {
	border-color: #fd9c12;
}

body .bxmaker-authuserphone-input-code--focus .bxmaker-authuserphone-input-code__field,
body .bxmaker-authuserphone-input-code--hover .bxmaker-authuserphone-input-code__field,
body .bxmaker-authuserphone-input-code:hover .bxmaker-authuserphone-input-code__field {
	border-color: #fd9c12;
}

body a.bxmaker-authuserphone-link,
body a.bxmaker-authuserphone-link:visited {
	color: #fd9c12;
}

body a.bxmaker-authuserphone-link:active,
body a.bxmaker-authuserphone-link:hover {
	color: #fd9c12;
}

body .bxmaker-authuserphone-input-phone__validation,
body .bxmaker-authuserphone-message--error {
	color: #ff0000;
}

/* ==========================================================================
   Быстрый просмотр
   ========================================================================== */
.btn[data-name="fast_view"]:before {
	content: "Быстрый просмотр";
}

.btn[data-name="fast_view"] {
	white-space: nowrap;
}

/* ==========================================================================
   Dubovoi SKU interactive Aspro adapter
   ========================================================================== */
[data-dsku-fragment-zone][data-dsku-interactive-mode="DETAIL"] {
	width: 100%;
	min-width: 0;
}

[data-dsku-fragment-zone][data-dsku-interactive-mode="LISTING"] {
	height: 100%;
	min-width: 0;
}

[data-dsku-fragment-zone][data-dsku-interactive-mode="LISTING"] .dub_sku_list,
[data-dsku-fragment-zone][data-dsku-interactive-mode="LISTING"] .grid-list__item.catalog-detail__offers,
[data-dsku-fragment-zone][data-dsku-interactive-mode="LISTING"] .sku-props.sku-props--detail,
[data-dsku-fragment-zone][data-dsku-interactive-mode="LISTING"] .buy_block.offer-props-wrapper,
[data-dsku-fragment-zone][data-dsku-interactive-mode="LISTING"] .sku_props.inner_content,
[data-dsku-fragment-zone][data-dsku-interactive-mode="LISTING"] .bx_catalog_item_scu.wrapper_sku {
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	margin-inline: 0;
	padding-inline: 0;
}

[data-dsku-fragment-zone] .custom-select-sku__option {
	color: #333 !important;
}

/* ==========================================================================
   SEO-блок и FAQ (Десктоп)
   ========================================================================== */
.catalog-faq-section,
.catalog-faq,
.catalog-section-description {
	margin-top: 45px;
	margin-bottom: 45px;
	clear: both;
}

.catalog-faq-section__title,
.catalog-faq__title,
.catalog-section-description__title {
	font-size: 24px;
	line-height: 1.3;
	font-weight: 700;
	margin-bottom: 24px;
	color: #222;
}

.catalog-faq__item {
	border-bottom: 1px solid #e5e5e5;
	padding: 18px 0;
}

.catalog-faq__item:first-child {
	border-top: 1px solid #e5e5e5;
}

.catalog-faq__question {
	font-size: 16px;
	font-weight: 600;
	color: #222;
	margin-bottom: 8px;
}

.catalog-faq__answer {
	font-size: 14px;
	line-height: 1.6;
	color: #555;
}

.catalog-faq__answer p:last-child {
	margin-bottom: 0;
}

/* ==========================================================================
   Подчёркивание ссылок в контенте (Lighthouse SEO)
   ========================================================================== */
.content-text a:not(.btn),
.seo-text a,
.catalog-section-description a,
.detail-text a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ==========================================================================
   Контрастность второстепенного текста (WCAG AA)
   ========================================================================== */
.color_999,
.color_888,
.muted,
.breadcrumbs__item,
.breadcrumbs__link,
.form-checkbox__label {
	color: #595959;
}

/* ==========================================================================
   TopSvet: логотип шапки с фиксированными размерами (против CLS)
   ========================================================================== */
.headers-container .logo,
.headers-container .logo a {
	display: inline-block;
	width: 143px;
	height: 50px;
	min-width: 143px;
	min-height: 50px;
}

.headers-container .logo img {
	display: block;
	width: 143px;
	height: 50px;
	aspect-ratio: 143 / 50;
	object-fit: contain;
}
