#products_container {
	display: flex;
	gap: 10px;
	flex-direction: row;
	align-items: flex-start;
	width: 100%;
	padding: 10px;
}

#products_groups_div {
	flex-basis: 30%;
	height: calc(100vh - 190px);
	overflow-y: scroll;
}

#products_groups #tree > ul {
	overflow: hidden;
}

#products_groups #tree > ul .not_active {
	color: #999999;
}


#products_div {
	flex-basis: 70%;
	height: calc(100vh - 190px);
	overflow-y: scroll;
}

#products_div #products {
	display: flex;
	gap: 5px;
	flex-direction: column;
}

#products_div #products .product_item {
	display: flex;
	gap: 10px;
	flex-direction: row;
	justify-content: space-between;
	background: #FFFFFF;
	border: 1px solid #DDD;
	padding: 5px;
	cursor: pointer;
}

#products_div #products .product_item:hover {
	background: #eceff1;
}

.product_item .product_image {
	flex-basis: 100px;
	display: flex;
	justify-content: center;
	align-items: center;
	text-align: center;
	width: 100px;
	height: 100px;
	overflow: hidden;
}

.product_item .product_image img {
	max-width: 100%;
}

.product_item .product_name_container {
	flex-basis: 100%;
	/*max-width: 500px;*/
}

.product_item .product_name {
	font-weight: bold;
}

.product_item .product_desc {
	font-size: 12px;
	height: 75px;
	overflow: hidden;
	text-overflow: ellipsis;
}

.product_item .product_price {
	flex-basis: 100px;
	white-space: nowrap;
	font-weight: bold;
}


#product_form #Products_name {
	width: 680px;
	max-width: 100%;
}

#product_form #delete_product_container {
	justify-content: end;
	color: #FF0000;
}

#product_form #delete_product {
	width: 20px;
	height: 20px;
	margin-left: 10px;
}

#product_form .product_field {
	margin: 10px 0;
}

#product_form .product_photos_container {
	display: flex;
	gap: 5px;
	flex-direction: row;
	align-items: center;
}

#product_form .product_photo {
	display: flex;
	gap: 5px;
	flex-direction: column;
	align-items: center;
	justify-content: end;
	border: 1px solid #cfd8dc;
	width: 110px;
	height: 145px;
	padding: 3px;
}

#product_form .product_photo > img {
	width: 100px;
	height: 100px;
}


.price_item {
	display: flex;
	align-items: center;
	border: 1px solid #DDD;
	margin: 5px 0;
	padding: 5px;
}

.price_item .data_price {
	width: 100px;
}


#products_group .items {
	display: flex;
	/*justify-content: center;*/
	flex-wrap: wrap;
}

#products_group_view #show_more {
	cursor: pointer;
}

.product_item_block {
	position: relative;
	width: 180px;
	margin: 10px 5px;
	padding: 5px;
	border: 1px solid var(--border);
}

.product_item_block a {
	text-decoration: none;
	color: #000000;
}

.product_item_block img {
	display: block;
	margin: 0 auto;
	max-width: 100%;
	aspect-ratio: 1;
	width: 100%;
	height: 100%;
}

.product_item_block .price_buy {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
}

.product_item_block .name {
	/*width: 120px;*/
	height: 75px;
	margin: 0 auto;
	text-align: center;
	overflow: hidden;
}

.product_item_block .price {
	font-size: 14px;
	font-weight: bold;
	color: var(--text);
	white-space: nowrap;
}

.product_item_block .buy {
	font-size: 12px;
	color: #1B75BC;
	margin: 0;
	padding: 2px 4px;
	border: #1B75BC 1px solid;
	border-radius: 3px;
	background: linear-gradient(bottom, #AFDFE5, #F2F2F2);
}


@media (max-width: 992px) {

}

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

	#products_groups_div {
		width: 100%;
	}

	#products_div {
		width: 100%;
		height: 100%;
	}

	.product_item_block .price_buy {
		flex-direction: column;
	}
}

@media (max-width: 480px) {
	.product_item_block {
		width: 100% !important;
		margin: 3px 3px;
		padding: 5px;
	}

	#products_group .items {
		flex-direction: column;
	}
}
