/* Даташит на карточке: ПК — рядом с корзиной; мобиле — отдельная строка, без наезда */
.product-page__datasheet-wrap {
	margin-left: 15px;
	max-width: 100%;
}
.product-page__cart a.product-page__datasheet.btn-lg {
	max-width: 100%;
}
/* Тема красит a:focus/a:active в --a-c-hover (#ff9900). На btn-primary это текст в цвет фона. */
.product-page__cart a.product-page__datasheet.btn,
.product-page__cart a.product-page__datasheet.btn:visited,
.product-page__cart a.product-page__datasheet.btn:hover,
.product-page__cart a.product-page__datasheet.btn:focus,
.product-page__cart a.product-page__datasheet.btn:active {
	color: var(--btn-default-c, #777);
	background: var(--btn-default-bg, #eeeeee);
}
.product-page__cart a.product-page__datasheet.btn:hover,
.product-page__cart a.product-page__datasheet.btn:focus {
	color: var(--btn-default-c-hover, #777);
	background: var(--btn-default-bg-hover, #e5e5e5);
}
.efind-datasheet-tab p {
	margin: 0 0 8px;
}
.efind-datasheet-tab i {
	margin-right: 6px;
}

html.efind-live-on .live-search {
	display: none !important;
}
html.efind-live-on .header-search__input.form-control {
	border-color: rgba(50, 172, 249, 0.32);
	color: #333;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
html.efind-live-on .header-search__input.form-control:focus {
	border-color: #32acf9;
	box-shadow: 0 0 0 3px rgba(50, 172, 249, 0.16);
	color: #111;
}
html.efind-live-on .header-search__btn {
	color: #32acf9;
}
html.efind-live-on .header-search__btn:hover {
	color: #1e8ed6;
	background: rgba(50, 172, 249, 0.08);
}
html.efind-overlay-open,
html.efind-overlay-open body {
	overflow: hidden;
	overscroll-behavior: none;
}
html.efind-overlay-open #fly-menu,
html.efind-overlay-open .fly-menu__search-m.show .header-search,
html.efind-overlay-open .fly-menu-backdrop {
	display: none !important;
}
.efind-overlay {
	display: none;
	position: fixed;
	z-index: 10050;
	top: 0;
	left: 0;
	touch-action: manipulation;
}
.efind-overlay.is-open {
	display: block !important;
	top: var(--efind-vvt, 0px);
	left: var(--efind-vvl, 0px);
	width: var(--efind-vvw, 100%);
	height: var(--efind-vvh, 100%);
	max-height: var(--efind-vvh, 100%);
	right: auto;
	bottom: auto;
}
.efind-overlay__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(247, 251, 255, 0.9);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}
.efind-overlay__panel {
	position: relative;
	display: flex;
	flex-direction: column;
	max-height: var(--efind-vvh, 100%);
	height: var(--efind-vvh, 100%);
	background: #fff;
	box-shadow: 0 18px 44px rgba(18, 48, 80, 0.16);
}
.efind-overlay__body {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}
.efind-overlay__bar {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	gap: 12px;
	width: 100%;
	max-width: 1320px;
	margin: 0 auto;
	padding: 18px 28px 14px;
	border-bottom: 2px solid #32acf9;
}
.efind-overlay__icon {
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
	color: rgba(0, 0, 0, 0.28);
	font-size: 18px;
	line-height: 22px;
	text-align: center;
}
.efind-overlay__input {
	flex: 1 1 auto;
	min-width: 0;
	height: 42px;
	padding: 0;
	border: 0 !important;
	background: transparent;
	box-shadow: none !important;
	outline: none;
	font-size: 22px;
	font-weight: 600;
	line-height: 42px;
	color: #1d1d1d;
	letter-spacing: -0.01em;
}
.efind-overlay__input:focus {
	outline: none;
	box-shadow: none !important;
}
.efind-overlay__close {
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: #f5f7fa;
	color: #666;
	font-size: 28px;
	line-height: 36px;
	cursor: pointer;
}
.efind-overlay__close:hover {
	background: #eceff5;
	color: #111;
}
.efind-overlay__hint,
.efind-overlay__empty {
	flex: 0 0 auto;
	max-width: 1320px;
	margin: 0 auto;
	padding: 18px 28px 22px;
	color: #888;
	font-size: 14px;
}
.efind-overlay__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 6px 10px;
	flex: 0 0 auto;
	max-width: 1320px;
	width: 100%;
	margin: 0 auto;
	padding: 16px 20px 8px;
}
.efind-overlay__card {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	min-height: 108px;
	padding: 12px 12px 12px 10px;
	border-radius: 12px;
	text-decoration: none !important;
	color: #222 !important;
	transition: background 0.15s ease, box-shadow 0.15s ease;
}
.efind-overlay__card:hover,
.efind-overlay__card.is-active {
	background: #f3f9ff;
	box-shadow: inset 3px 0 0 #32acf9;
	text-decoration: none !important;
}
.efind-overlay__thumb {
	flex: 0 0 80px;
	width: 80px;
	height: 80px;
	border: 1px solid rgba(0, 0, 0, 0.06);
	border-radius: 10px;
	background: #fff;
	overflow: hidden;
}
.efind-overlay__thumb img {
	display: block;
	width: 80px !important;
	height: 80px !important;
	max-width: 80px !important;
	max-height: 80px !important;
	object-fit: contain;
}
.efind-overlay__meta {
	min-width: 0;
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}
.efind-overlay__name {
	display: block;
	margin: 0 0 6px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.35;
	color: #222;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.efind-overlay__name mark,
.efind-overlay__sku mark {
	background: rgba(50, 172, 249, 0.22);
	color: inherit;
	font-weight: 700;
	padding: 0;
}
.efind-overlay__sku {
	display: block;
	margin: 0 0 8px;
	font-size: 12px;
	line-height: 1.35;
	color: #888;
}
.efind-overlay__price {
	display: block;
	margin-top: auto;
	font-size: 16px;
	font-weight: 700;
	color: #32acf9;
	letter-spacing: -0.02em;
}
.efind-overlay__more {
	display: block;
	flex: 0 0 auto;
	max-width: 1320px;
	margin: 0 auto;
	padding: 8px 28px 20px;
	text-align: center;
	font-weight: 600;
	color: #32acf9 !important;
}
.efind-overlay__more:hover {
	text-decoration: underline !important;
}
.efind-overlay__skel {
	height: 108px;
	border-radius: 12px;
	background: linear-gradient(90deg, #f4f4f4 25%, #ececec 37%, #f4f4f4 63%);
	background-size: 400% 100%;
	animation: efind-skel 1.1s ease infinite;
}
@keyframes efind-skel {
	0% { background-position: 100% 0; }
	100% { background-position: 0 0; }
}

@media (max-width: 1100px) {
	.efind-overlay__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.efind-overlay__input {
		font-size: 18px;
	}
	.efind-overlay__bar {
		padding: 14px 16px 12px;
	}
}
@media (max-width: 640px) {
	.efind-overlay__panel {
		min-height: 0;
		height: var(--efind-vvh, 100%);
		max-height: var(--efind-vvh, 100%);
	}
	.efind-overlay__body {
		padding-bottom: max(8px, env(safe-area-inset-bottom));
	}
	.efind-overlay__bar {
		padding: 10px 12px 10px;
		gap: 8px;
		padding-top: max(10px, env(safe-area-inset-top));
	}
	.efind-overlay__input {
		font-size: 16px;
		height: 40px;
		line-height: 40px;
	}
	.efind-overlay__close {
		width: 44px;
		height: 44px;
		flex-basis: 44px;
	}
	.efind-overlay__grid {
		grid-template-columns: 1fr;
		padding: 8px 8px 4px;
		padding-bottom: max(8px, env(safe-area-inset-bottom));
	}
	.efind-overlay__card {
		min-height: 88px;
		padding: 10px;
	}
	.efind-overlay__more {
		padding: 10px 12px max(14px, env(safe-area-inset-bottom));
	}
}

.live-search__image {
	flex: 0 0 50px;
	width: 50px;
	max-width: 50px;
	overflow: hidden;
	box-sizing: content-box;
}
.live-search__image img {
	display: block;
	width: 50px !important;
	height: 50px !important;
	max-width: 50px !important;
	max-height: 50px !important;
	object-fit: contain;
}
/* Карточка листинга: LCSC 900x900 и HTML width=220 не должны раздувать 2 колонки на мобиле.
   UniShop .product-thumb__image {flex:1 0 auto} + min-width:auto иначе не сжимается ниже картинки. */
.product-layout.grid-view,
.product-layout.list-view,
.product-layout.compact-view {
	min-width: 0;
}
.product-thumb {
	min-width: 0;
	max-width: 100%;
	overflow: hidden;
}
.product-thumb__image {
	min-width: 0;
	max-width: 100%;
	overflow: hidden;
}
.product-thumb img,
.product-thumb__image img {
	max-width: 100% !important;
	max-height: 230px !important;
	width: auto !important;
	height: auto !important;
	object-fit: contain;
	display: block;
	margin: 0 auto;
}
@media (max-width: 767px) {
	.grid-view .product-thumb__image {
		width: 100%;
		aspect-ratio: 1 / 1;
		display: flex;
		align-items: center;
		justify-content: center;
	}
	.grid-view .product-thumb__image > a {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		height: 100%;
		max-width: 100%;
		overflow: hidden;
	}
	.grid-view .product-thumb img,
	.grid-view .product-thumb__image img {
		max-width: 100% !important;
		max-height: 100% !important;
		width: auto !important;
		height: auto !important;
	}
}
img[data-efind-fail] {
	display: none !important;
}
.header-cart__image img,
.checkout-cart__image-img {
	max-width: 80px !important;
	max-height: 80px !important;
	width: auto !important;
	height: auto !important;
	object-fit: contain;
}
.product-page__image-main-img {
	max-width: 100%;
	height: auto;
	object-fit: contain;
}

@media (max-width: 992px) {
	.product-page__datasheet-wrap {
		flex: 1 1 100%;
		width: 100%;
		max-width: 100%;
		margin: 12px 0 0;
		clear: both;
	}
	.product-page__cart a.product-page__datasheet.btn.btn-lg {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		margin: 0;
		height: auto;
		min-height: 34px;
		line-height: 1.3;
		white-space: normal;
		text-align: center;
		padding: 8px 12px;
		box-sizing: border-box;
	}
	.product-page__cart a.product-page__datasheet.btn.btn-lg i {
		flex-shrink: 0;
		margin-right: 6px;
	}
}

/* Пагинация: пятизначные номера не влезают в width:34px и «плывут» */
.pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin: 16px 0 8px;
	padding: 0;
	width: 100%;
	max-width: 100%;
	list-style: none;
}
.pagination > li {
	display: flex;
	float: none;
	margin: 0;
}
.pagination li + li {
	margin: 0;
}
.pagination li a,
.pagination li span {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	float: none;
	min-width: 36px;
	width: auto;
	height: 32px;
	margin: 0;
	padding: 0 8px;
	border-radius: 4px;
	text-align: center;
	white-space: nowrap;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}
.pagination-text {
	word-break: normal;
	overflow-wrap: anywhere;
}
@media (max-width: 767px) {
	.pagination {
		gap: 6px;
		margin: 12px 0 6px;
	}
	.pagination li a,
	.pagination li span {
		min-width: 32px;
		height: 30px;
		padding: 0 6px;
		font-size: .92em;
	}
}
