
/* TOOTED */

#filter-form {
	display: flex;
	gap: 1rem;
	position: relative;
}

aside {
	flex: 1;
	background-color: #fff;
	padding: 1rem;
	height: 100%;
}

aside label {
	font-size: 12px;
}

aside input {
	line-height: 1rem;
	font-size: 14px;
	padding: .35rem;
}

.price-filter {
	text-align: right;
}

.input-wrapper {
	display: flex;
	align-items: center;
	gap: .25rem;
}

.main-content {
	flex: 5;
}

.products-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: .5rem;
	margin-top: 2rem;
}

.product-block {
	display: grid;
	margin-bottom: 2rem;
}

.product-block .name-price {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-top: .5rem;
}

.product-block .name-price * {
	padding: .1rem;
	margin: 0;
	text-align: center;
}

.product-block picture {
	display: flex;
	align-items: center;
	max-height: 200px;
}

.product-block * {
	font-size: 1rem;
	font-weight: 600;
}

.pagination {
	display: flex;
	justify-content: space-between;
	align-items: center;
	position: relative;
}

.pagination>div {
	display: flex;
	align-items: center;
	gap: .25rem;
	justify-content: center;
}

.pagination label {
	min-width: fit-content;
}

.pagination select {
	background-color: white;
	border: 1px solid #ddd;
	line-height: 1.25em;
	border-radius: .5rem;
	padding: .25rem;
	font-size: 12px;
}

.moving-pages {
	display: flex;
	gap:.5rem;
	align-items: center;
}

.button-small {
	background-color: #fff;
	border: 1px solid #c4c4c4;
	box-shadow: none;
	padding: 0;
	height: 20px;
	cursor: pointer;
}

.button-small:disabled {
	background-color: #e8e8e8;
}

.button-small svg {
	height: 100%;
}

.button-filter {
	padding: .5rem;
	height: fit-content;
}

.filter-toggle {
	display: none;
	height: 20px;
	width: 20px;
	border: none;
	background-color: #fff;
	margin: 0;
	padding: 0;
}

.filter-toggle svg {
	clip-rule: evenodd;
	fill-rule: evenodd;
	stroke-linejoin: round;
	stroke-miterlimit: 2;
	height: 100%;
	width: 100%;
	margin: 0;
	padding: 0;
}

@media only screen and (max-width: 850px) {
	.products-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media only screen and (max-width: 700px) {
	.products-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	aside {
		display: none;
		position: absolute;
		z-index: 5;
		top: 30px;
	}

	.pagination {
		padding-left: 2rem;
	}

	.pagination:first-child .filter-toggle:first-child {
		display: flex;
		position: absolute;
		left: 0;
	}

}

@media only screen and (max-width: 490px) {
	.products-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.pagination {
		flex-direction: column;
	}

	.pagination>div {
		display: flex;
		justify-content: center;
		margin-bottom: .25rem;
	}

	.pagination select {
		max-width: fit-content;
	}

	
}