.shop_wrapper .single_product {
	position: relative;
	margin-bottom: 0;
}

.line-card__quantity {
	width: 100%;
	display: flex;
	margin-top: 0;
	overflow: hidden;
	border-radius: 4px;
}

.action_links.line-card__price {
	width: 100%;
}

.action-basket._not-favorite {
	display: flex;
	flex-direction: row;
	gap: 12px;
	width: 100%;
}

._not-favorite .add_to_cart {
	flex: 0 0 auto;
}

.action-basket._not-favorite .product-item-info-container {
	margin-top: 0;
}

._not-favorite .line-card__quantity {
	height: 100%;
}

._not-favorite .button {
	height: 35px;
	padding: 0 10px;
}

.card-check .card-check__wrap {
	width: 100%;
	bottom: unset;
	top: 0;
	transform: translateY(-100%);
}

.card-check .card-check__wrap table {
	width: 100%;
}

.favorite-btn._absolute {
	position: absolute;
	top: 0;
	right: 10px;
	z-index: 2;
	width: 35px;
	height: 35px;
	padding: 0;
	display: flex;
	justify-content: center;
	align-items: center;
}

.favorite-btn._absolute i {
	color: #fff;
}

.products-grid-wrap {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	grid-gap: 24px;
}

@media (max-width: 1350px) {
	.products-grid-wrap {
		grid-template-columns: repeat(4, 1fr);
	}
}

@media (max-width: 1120px) {
	.products-grid-wrap {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 850px) {
	.products-grid-wrap {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.action-basket._not-favorite {
		flex-direction: column;
	}
}

@media (max-width: 470px) {
	.products-grid-wrap {
		grid-template-columns: 1fr;
	}
}

.sale-filter .nice-select {
	appearance: auto;
}



.sale-filter {
	display: flex;
	flex-wrap: nowrap;
	align-items: flex-end;
	gap: 12px;
	padding: 16px 20px;
	background: #f8f9fa;
	border-radius: 12px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Общие стили для полей и кнопок */
.sale-filter .form-control,
.sale-filter .button {
	height: 42px;
	padding: 0 16px;
	font-size: 14px;
	font-family: inherit;
	border: 1px solid #e0e3e7;
	background: #fff;
	transition: all 0.2s ease;
	box-sizing: border-box;
}

/* Поле ввода */
.sale-filter .form-control[data-type="name"] {
	flex: 2;
	min-width: 200px;
}

/* Селекты */
.sale-filter select.form-control {
	flex: 1;
	min-width: 160px;
	cursor: pointer;
	appearance: none;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236c757d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 16px;
}

.sale-filter select.form-control:hover {
	border-color: #222;
}

.sale-filter select.form-control:focus {
	border-color: #222;
	outline: none;
	box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* Кнопки */
.sale-filter .button {
	background: #fff;
	font-weight: 500;
	cursor: pointer;
	border: 1px solid #e0e3e7;
	padding: 0 20px;
	white-space: nowrap;
}

.sale-filter .button:first-of-type {
	background: #3e457c;
	border-color: #3e457c;
	color: white;
}

.sale-filter .button:first-of-type:hover {
	background: #222;
	transform: translateY(-1px);
	box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
}

.sale-filter .button:last-of-type {
	background: #fff;
	color: #6c757d;
}

.sale-filter .button:last-of-type:hover {
	background: #f1f3f5;
	border-color: #d4d8dd;
	color: #212529;
}

/* Адаптив: если не влезает, переводим на перенос */
@media (max-width: 900px) {
	.sale-filter {
		flex-wrap: wrap;
	}

	.sale-filter .form-control[data-type="name"] {
		flex-basis: 100%;
	}

	.sale-filter select.form-control {
		flex: 1 1 auto;
	}
}