/* Карточка в каталоге: конфигурации ноутбука (память / накопитель) — чипы под названием.
   Блок одной высоты у всех карточек (у ноутбуков без конфигураций в нём память и накопитель),
   поэтому ряд не растягивается. Переключение цены — штатный скрипт dresscode (.skuPropertyLink).
   Проверено на nout.kg и ultra.kg: десктоп, наведение (ULTRA), телефон 375 px. */
.item.product .productColImage { position: relative; }
.item.product .ulUpgradeBadge {
	position: absolute;
	right: 6px;
	bottom: 6px;
	z-index: 3;
	padding: 3px 8px;
	border-radius: 6px;
	background: #e7f6ec;
	color: #12703a;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.3;
	pointer-events: none;
}
.item.product .ulSkuBox {
	box-sizing: border-box;
	height: 90px;
	margin: 8px 0 6px;
	overflow: hidden;
	text-align: left;
}
/* В шаблонах dresscode выбор в карточках скрыт на телефоне и скрыты недоступные сочетания — у чипов показываем */
.item.product .ulSkuBox .skuProperty.ulSkuChips { display: block !important; margin: 0 0 6px; padding: 0; border: 0; }
.item.product .ulSkuBox .skuPropertyName {
	display: block;
	margin: 0 0 2px;
	padding: 0;
	color: #7a8794;
	font-size: 11px;
	line-height: 14px;
	text-transform: none;
}
.item.product .ulSkuBox .ulChipRow { display: flex; align-items: center; gap: 4px; min-width: 0; }
.item.product .ulSkuBox .skuPropertyList {
	display: flex !important;
	flex-wrap: nowrap;
	gap: 4px;
	min-width: 0;
	margin: 0;
	padding: 0;
	overflow: hidden;
	list-style: none;
}
.item.product .ulSkuBox .skuPropertyValue {
	display: block !important;
	flex: 0 0 auto;
	float: none !important;
	width: auto !important;
	height: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
	list-style: none;
}
.item.product .ulSkuBox .skuPropertyValue.ulChipHidden { display: none !important; }
.item.product .ulSkuBox .skuPropertyLink,
.item.product .ulSkuBox .ulChipMore {
	display: block !important;
	box-sizing: border-box;
	min-width: 0 !important;
	width: auto !important;
	height: 24px !important;
	padding: 0 8px !important;
	border: 1px solid #d5dde5 !important;
	border-radius: 6px !important;
	background: #fff !important;
	color: #26313d !important;
	font-size: 12px !important;
	line-height: 22px !important;
	white-space: nowrap;
	text-decoration: none !important;
	transition: border-color .15s, background .15s;
}
.item.product .ulSkuBox .skuPropertyLink:hover { border-color: #0b74de !important; }
.item.product .ulSkuBox .skuPropertyValue.selected .skuPropertyLink {
	border-color: #0b74de !important;
	background: #eaf3fd !important;
	color: #0b5fb5 !important;
	font-weight: 600;
}
.item.product .ulSkuBox .skuPropertyValue.disabled .skuPropertyLink {
	border-style: dashed !important;
	color: #a3adb8 !important;
}
.item.product .ulSkuBox .skuPropertyValue.loading .skuPropertyLink { opacity: .6; }
.item.product .ulSkuBox .ulChipMore {
	flex: 0 0 auto;
	border-style: dashed !important;
	border-color: #b9c4cf !important;
	color: #0b74de !important;
}
.item.product .ulSkuBox .ulMoreM,
.item.product .ulSkuBox .ulMoreMobileOnly { display: none !important; }
.item.product .ulSkuBoxSpecs .ulSpecRow {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	padding: 5px 0;
	border-bottom: 1px dashed #e3e9ef;
	font-size: 12px;
	line-height: 1.3;
}
.item.product .ulSkuBoxSpecs .ulSpecLabel { flex: 0 0 auto; color: #7a8794; }
.item.product .ulSkuBoxSpecs .ulSpecValue {
	overflow: hidden;
	color: #26313d;
	font-weight: 600;
	text-align: right;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* ULTRA (шаблон dresscode), каталог: вместо таблицы с раскрытием карточки при наведении —
   отдельные карточки с рамкой в сетке, кнопка «В корзину» видна всегда, при наведении карточка
   приподнимается с тенью. Ряды одной высоты, цена и кнопка прижаты к низу. */
body:not(.site-s2) #catalogSection .items.productList {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(205px, 1fr));
	gap: 14px;
	padding: 14px 0 0;
	border: 0 !important;
	background: none !important;
}
body:not(.site-s2) #catalogSection .items.productList::before,
body:not(.site-s2) #catalogSection .items.productList::after,
body:not(.site-s2) #catalogSection .items.productList > .clear { display: none !important; }
body:not(.site-s2) #catalogSection .item.product {
	float: none !important;
	width: auto !important;
	height: auto !important;
	margin: 0 !important;
	border: 1px solid #e4e8ee !important;
	border-radius: 10px;
	background: #fff;
	overflow: hidden;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
body:not(.site-s2) #catalogSection .item.product:hover {
	transform: translateY(-3px);
	border-color: #d3d9e1 !important;
	box-shadow: 0 12px 28px rgba(17, 24, 39, .10);
}
body:not(.site-s2) #catalogSection .item.product .tabloid,
body:not(.site-s2) #catalogSection .item.product:hover .tabloid {
	position: relative !important;
	top: auto !important;
	left: auto !important;
	z-index: auto !important;
	display: flex !important;
	flex-direction: column;
	width: auto !important;
	height: 100% !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 12px !important;
	overflow: visible !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}
body:not(.site-s2) #catalogSection .item.product .productTable { display: flex !important; flex-direction: column; flex: 1 1 auto; height: auto !important; }
body:not(.site-s2) #catalogSection .item.product .productColImage { display: block; width: auto !important; float: none !important; }
body:not(.site-s2) #catalogSection .item.product .productColText { display: flex !important; flex-direction: column; flex: 1 1 auto; width: auto !important; float: none !important; }
body:not(.site-s2) #catalogSection .item.product .name { min-height: 38px; }
body:not(.site-s2) #catalogSection .item.product .ulSkuBox { margin: 6px 0 4px; }
body:not(.site-s2) #catalogSection .item.product .price { margin: 4px 0 10px !important; }
body:not(.site-s2) #catalogSection .item.product .addCartContainer {
	position: static !important;
	display: block !important;
	margin-top: auto !important;
	opacity: 1 !important;
	visibility: visible !important;
}
body:not(.site-s2) #catalogSection .item.product .addCart {
	display: flex !important;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100% !important;
	height: 40px !important;
	line-height: 40px !important;
	border-radius: 8px !important;
	transition: filter .15s;
}
body:not(.site-s2) #catalogSection .item.product .addCart:hover { filter: brightness(.94); }
body:not(.site-s2) #catalogSection .item.product .quantityContainer,
body:not(.site-s2) #catalogSection .item.product .optional,
body:not(.site-s2) #catalogSection .item.product .btn-simple { display: none !important; }
@media (max-width: 700px) {
	body:not(.site-s2) #catalogSection .items.productList { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 8px 0 0; }
	body:not(.site-s2) #catalogSection .item.product .tabloid,
	body:not(.site-s2) #catalogSection .item.product:hover .tabloid { padding: 8px !important; }
	body:not(.site-s2) #catalogSection .item.product .addCart { height: 36px !important; line-height: 36px !important; font-size: 13px !important; white-space: nowrap; }
	body:not(.site-s2) #catalogSection .item.product:hover { transform: none; }
}
/* Чипы ULTRA — в фирменном красном */
body:not(.site-s2) .item.product .ulSkuBox .skuPropertyValue.selected .skuPropertyLink {
	border-color: #ed1c24 !important;
	background: #fdeeee !important;
	color: #c4161d !important;
}
body:not(.site-s2) .item.product .ulSkuBox .skuPropertyLink:hover { border-color: #ed1c24 !important; }
body:not(.site-s2) .item.product .ulSkuBox .ulChipMore { color: #c4161d !important; }

@media (max-width: 700px) {
	.item.product .ulSkuBox .skuPropertyLink,
	.item.product .ulSkuBox .ulChipMore { padding: 0 6px !important; font-size: 11px !important; }
	.item.product .ulSkuBox .skuPropertyValue.ulChipLast { display: none !important; }
	.item.product .ulSkuBox .ulMoreD { display: none !important; }
	.item.product .ulSkuBox .ulMoreM { display: inline !important; }
	.item.product .ulSkuBox .ulMoreMobileOnly { display: block !important; }
	.item.product .ulUpgradeBadge { padding: 2px 6px; font-size: 10px; }
	/* NOUT.KG: «В корзину» в одну строку на узкой карточке */
	body.site-s2 .productList .item.product .addCart { white-space: nowrap !important; font-size: 13px !important; }
	body.site-s2 .productList .item.product .addCart img { margin-right: 4px !important; }
}
