/**
 * simple.offers: выравнивание панели и сетки под дизайн каталога.
 */

#middleSlider {
	margin-bottom: 24px;
}

.panel-click.selected {
	pointer-events: none;
}

.removeFromWishlist {
	display: none;
}

#catalogLine {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	background: #fff;
	border-radius: 8px;
	padding: 12px 16px;
	margin-bottom: 20px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
	gap: 20px;
}

#catalogLine .column {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
}

#catalogLine .column:last-child {
	margin-left: auto;
}

#catalogLine .label {
	font-size: 14px;
	color: #6c757d;
	white-space: nowrap;
	margin-right: 0;
}

#catalogLine .dropDownList {
	position: relative;
	min-width: 160px;
	cursor: pointer;
	user-select: none;
}

#catalogLine .dropDownSelected {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 12px;
	border: 1px solid #dee2e6;
	border-radius: 6px;
	background-color: #fff;
	font-size: 14px;
	color: #212529;
	transition: all 0.2s;
	position: relative;
}

#catalogLine .dropDownSelected::after {
	content: "";
	display: inline-block;
	width: 8px;
	height: 8px;
	border-right: 2px solid #adb5bd;
	border-bottom: 2px solid #adb5bd;
	transform: rotate(45deg);
	margin-left: 8px;
	position: relative;
	top: -2px;
}

#catalogLine .dropDownSelected:hover {
	border-color: #adb5bd;
}

#catalogLine .dropDownItems {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 99;
	margin-top: 0;
	padding-top: 6px;
	background-color: #fff;
	border: 1px solid #dee2e6;
	border-radius: 6px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	max-height: 300px;
	overflow-x: hidden;
	overflow-y: auto;
	display: none;
}

#catalogLine .dropDownItems::before {
	content: "";
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 10px;
}

#catalogLine .dropDownList:hover .dropDownItems {
	display: block;
}

#catalogLine .dropDownItem {
	padding: 8px 12px;
	font-size: 14px;
	color: #495057;
	transition: background-color 0.2s;
}

#catalogLine .dropDownItem:hover {
	background-color: #f8f9fa;
}

#catalogLine .dropDownItem.selected {
	background-color: #e9ecef;
	color: #212529;
	font-weight: 500;
}

#catalogLine .viewList {
	display: flex;
	align-items: center;
	gap: 8px;
}

#catalogLine .viewList .element {
	margin: 0;
}

#catalogLine .viewList .element a {
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #f8f9fa;
	border: 1px solid #dee2e6;
	border-radius: 6px;
	transition: all 0.2s;
	background-image: url(images/catalogView.png);
	background-repeat: no-repeat;
}

#catalogLine .viewList .element .squares {
	background-position: 3px 3px;
}

#catalogLine .viewList .element .line {
	background-position: 3px -52px;
}

#catalogLine .viewList .element .table {
	background-position: 3px -107px;
}

#catalogLine .viewList .element a:hover {
	background-color: #e9ecef;
	border-color: #ced4da;
}

#catalogLine .viewList .element a.selected {
	background-color: #e9ecef;
	border-color: #adb5bd;
}

#left .heading .arrow {
	background-position: -27px 50%;
	transition: all 0.5s;
}

#left .heading.opened .arrow {
	transform: rotate(90deg);
}

#nextSection {
	border-right: 1px solid #e7e8ea;
	border-left: 1px solid #e7e8ea;
	border-top: 1px solid #e7e8ea;
	margin-bottom: 24px;
	border-radius: 4px;
	margin-top: 24px;
}

#nextSection .title {
	background-color: #f3f3f3;
	text-transform: uppercase;
	text-align: center;
	padding: 12px 0;
	cursor: pointer;
	font-size: 14px;
	display: block;
}

#nextSection ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

#nextSection li,
#nextSection .title {
	border-bottom: 1px solid #e7e8ea;
}

#nextSection li a {
	transition: all 0.2s ease-in-out;
	text-decoration: none;
	display: inline-block;
	padding: 12px 24px;
	font-size: 13px;
	color: #1a1a1a;
}

#nextSection li a:hover,
#nextSection li .selected {
	color: #ffa800;
}

#nextSection li .cnt {
	color: #888888;
	float: right;
}

#catalogColumn .rightColumn .items.productList,
.items.productList {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	width: 100%;
	margin: 0 0 24px;
	max-width: none;
	box-sizing: border-box;
}

#catalogColumn .rightColumn .items.productList .product-card,
#catalogColumn .rightColumn .items.productList .tsk-product-card,
.items.productList .product-card,
.items.productList .tsk-product-card {
	box-sizing: border-box;
	width: auto !important;
	min-width: 0;
	max-width: none !important;
	flex: none !important;
}

.product-card,
.tsk-product-card {
	min-width: 0;
	background-color: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	padding: 10px;
	position: relative;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	display: flex;
	flex-direction: column;
	height: 100%;
	box-sizing: border-box;
	overflow: hidden !important;
	justify-content: space-between;
}

@media (max-width: 1100px) {
	#catalogColumn .rightColumn .items.productList,
	.items.productList {
		grid-template-columns: repeat(3, 1fr);
		gap: 18px;
	}
}

@media (max-width: 768px) {
	#catalogLine {
		flex-direction: column;
		align-items: flex-start;
	}

	#catalogLine .column {
		width: 100%;
	}

	#catalogLine .column:last-child {
		margin-left: 0;
	}

	#catalogLine .dropDownList {
		width: 100%;
	}
}

@media (max-width: 700px) {
	#catalogColumn .rightColumn .items.productList,
	.items.productList {
		grid-template-columns: repeat(2, 1fr);
		gap: 15px;
	}
}

@media (max-width: 450px) {
	#catalogColumn .rightColumn .items.productList,
	.items.productList {
		grid-template-columns: 1fr;
		gap: 10px;
	}
}
