body {
	margin: 0;
	font-family: sans-serif;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

.visually-hidden {
	position: absolute;
	left: 0;
	top: 0;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: none;
	overflow: hidden;
	white-space: nowrap;
	clip: rect(0, 0, 0, 0);
	-webkit-clip-path: inset(100%);
	clip-path: inset(100%);
}

.scrollOff {
	overflow: hidden;
}

.hidden {
	display: none !important;
}

.addedToCart::before {
	content: "";
	position: fixed;
	left: 0;
	top: 0;
	z-index: 1;
	background-color: rgba(0, 0, 0, 0.5);
	font-size: 18px;
	width: 100%;
	height: 100%;
}

.addedToCart::after {
	content: "Добавлено в корзину";
	position: fixed;
	left: 50%;
	top: 50%;
	z-index: 2;
	transform: translate(-50%, -50%);
	background-color: #000;
	padding: 10px;
	text-align: center;
	color: #fff;
	font-size: 18px;
}

.container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 15px;
}

.container--modal {
	max-width: 720px;
}

button {
	cursor: pointer;
	transition: .6s;
}

button:hover {
	opacity: 0.5;
}

.catalog {
	padding: 10px 0;
}

.catalog__getInfo {
	display: block;
	margin-top: 10px;
	padding: 10px;
	width: 100%;
	text-align: center;
	background: none;
	border: 1px solid #ccc;
}

.catalog__info {
	display: none;
	position: fixed;
	left: 0;
	top: 0;
	width: 100vw;
	height: 100vh;
	overflow-y: auto;
	padding: 60px 0;
	background-color: #fff;
	z-index: 100;
}

.catalog__info--view {
	display: block;
}

.catalog__info ul {
	padding: 0 0 0 20px;
	margin: 20px 0;
}

.catalog__info a {
	color: #000
}

.catalog__info a:hover {
	text-decoration: none;
}

.catalog__infoHeading {
	margin-top: 20px;
}

.catalog__infoClose {
	position: absolute;
	right: 20px;
	top: 20px;
	width: 40px;
	height: 40px;
	border: none;
	padding: 0;
	background-color: transparent;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M16 4C9.384 4 4 9.384 4 16s5.384 12 12 12 12-5.384 12-12S22.616 4 16 4zm0 2c5.535 0 10 4.465 10 10s-4.465 10-10 10S6 21.535 6 16 10.465 6 16 6zm-3.293 5.293-1.414 1.414L14.586 16l-3.293 3.293 1.414 1.414L16 17.414l3.293 3.293 1.414-1.414L17.414 16l3.293-3.293-1.414-1.414L16 14.586l-3.293-3.293z'/%3E%3C/svg%3E");
}

.waiting>* {
	pointer-events: none;
	opacity: 0.1;
	position: relative;
}

.waiting::before {
	content: 'Загрузка';
	font-size: 24px;
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
}

.filter__search {
	display: block;
	padding: 10px;
	width: 100%;
	margin-bottom: 20px;
	border: 1px solid #ccc;
	font-size: 20px;
}

.filter__blockHeading {
	margin: 0 0 10px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.filter__reset {
	border: none;
	padding: 0;
	background: none;
}

.filter__block+.filter__block {
	margin-top: 20px;
}

.filter__list {
	max-height: 150px;
	overflow-y: auto;
	border: 1px solid #ccc;
}

.filter__item {
	display: block;
	width: 100%;
	padding: 10px;
	border: none;
	background: none;
	text-align: left;
}

.filter__item--selectedCategory,
.filter__item--selectedStore {
	background-color: #ccc;
}

.catalog__list {
	margin: 40px 0 0;
	padding: 0;
	list-style: none;
}

.catalog__item+.catalog__item {
	margin-top: 20px;
}

.catalog__item--hiddenByCategory,
.catalog__item--hiddenByStore,
.catalog__item--hiddenBySearch {
	display: none;
}

.product {
	border: 1px solid #ccc;
	max-width: 100%;
	overflow: hidden;
	padding: 5px;
	position: relative;
}

.product__labels {
	display: flex;
	gap: 10px;
	position: absolute;
	left: 5px;
	top: 5px;
}

.product__label {
	padding: 4px;
	border-radius: 8px;
	background-color: #005def;
	color: #fff;
}

.product__name {
	font-size: 14px;
	margin: 0 0 10px;
}

.product__info {
	font-size: 14px;
}

.product__info+.product__info {
	margin-top: 10px;
}

.product__img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0 0 20px;
	object-fit: contain;
	object-position: center;
}

.product__counterWrapper {
	display: flex;
	align-items: center;
	margin-top: 20px;
}

.product__changeCount {
	border: 1px solid #ccc;
	width: 50px;
	height: 50px;
	font-size: 18px;
	background-color: transparent;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}

.product__count {
	width: 50px;
	height: 50px;
	font-size: 18px;
	flex-grow: 1;
	text-align: center;
	padding: 10px;
	border: 1px solid #ccc;
	border-left: none;
	border-right: none;
	-moz-appearance: textfield;
}

.product__count::-webkit-outer-spin-button,
.product__count::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.product__addBtn,
.product__deleteBtn {
	display: block;
	width: 100%;
	font-size: 18px;
	margin-top: 10px;
	text-align: center;
	background-color: #000;
	color: #fff;
	padding: 10px;
	border: 1px solid #ccc;
	position: relative;
}

.product__deleteBtn {
	background-color: red;
}

.product__addBtn {
	background-color: #005def;
	border-color: #005def;
}

.product__addBtn span {
	display: none;
	font-size: 12px;
}

.product__addBtn--added {
	background-color: #242c38;
}

.product__addBtn--added span {
	display: block;
	margin: 2px auto 0;
	text-align: center;
}

@supports selector(:has(*)) {
	.cart {
		display: none;
	}

	.cart:has(.product) {
		display: block;
	}
}

.cart__button {
	position: fixed;
	right: 20px;
	bottom: 20px;
	border: 1px solid #000;
	border-radius: 100%;
	width: 60px;
	height: 60px;
	background-color: #000;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='enable-background:new 0 0 122.9 107.5' viewBox='0 0 122.9 107.5'%3E%3Cpath fill='%23fff' d='M3.9 7.9C1.8 7.9 0 6.1 0 3.9 0 1.8 1.8 0 3.9 0h10.6c3.6.1 6.8.8 9.5 2.5 3 1.9 5.2 4.8 6.4 9.1 0 .1 0 .2.1.3l1 4H119c2.2 0 3.9 1.8 3.9 3.9 0 .4-.1.8-.2 1.2l-10.2 41.1c-.4 1.8-2 3-3.8 3h-64c1.4 5.2 2.8 8 4.7 9.3 2.3 1.5 6.3 1.6 13 1.5H107.7c2.2 0 3.9 1.8 3.9 3.9 0 2.2-1.8 3.9-3.9 3.9H62.5c-8.3.1-13.4-.1-17.5-2.8-4.2-2.8-6.4-7.6-8.6-16.3L23 13.9c0-.1 0-.1-.1-.2-.6-2.2-1.6-3.7-3-4.5-1.4-.9-3.3-1.3-5.5-1.3H3.9zM96 88.3c5.3 0 9.6 4.3 9.6 9.6s-4.3 9.6-9.6 9.6-9.6-4.3-9.6-9.6 4.3-9.6 9.6-9.6zm-42.1 0c5.3 0 9.6 4.3 9.6 9.6s-4.3 9.6-9.6 9.6-9.6-4.3-9.6-9.6 4.3-9.6 9.6-9.6zM33.7 23.7l8.9 33.5h63.1l8.3-33.5H33.7z'/%3E%3C/svg%3E");
	background-size: 50% auto;
	background-position: center center;
	background-repeat: no-repeat;
}

.cart__body {
	position: fixed;
	left: 0;
	top: 0;
	width: 100vw;
	height: 100vh;
	overflow-y: auto;
	background-color: #fff;
	z-index: 100;
	padding: 20px;
}

@media (max-width: 1023px) {
	.cart__body {
		padding-bottom: 80px;
	}
}

.cart__body {
	display: none;
}

.cart__body--view {
	display: block;
}

.cart__close {
	position: fixed;
	right: 20px;
	top: 20px;
	border: none;
	padding: 0;
	border-radius: 100%;
	width: 30px;
	height: 30px;
	background-color: #fff;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M16 4C9.384 4 4 9.384 4 16s5.384 12 12 12 12-5.384 12-12S22.616 4 16 4zm0 2c5.535 0 10 4.465 10 10s-4.465 10-10 10S6 21.535 6 16 10.465 6 16 6zm-3.293 5.293-1.414 1.414L14.586 16l-3.293 3.293 1.414 1.414L16 17.414l3.293 3.293 1.414-1.414L17.414 16l3.293-3.293-1.414-1.414L16 14.586l-3.293-3.293z'/%3E%3C/svg%3E");
	background-size: 100% 100%;
}

.cart__wrapper {
	max-width: 960px;
	margin-left: auto;
	margin-right: auto;
}

.cart__submit {
	margin: 20px 0 0 auto;
	display: block;
	width: 200px;
	text-align: center;
	border: 1px solid green;
	background-color: green;
	color: #fff;
	padding: 10px;
	font-size: 16px;
}

@media (max-width: 1023px) {
	.cart__submit {
		position: fixed;
		left: 0;
		bottom: 0;
		width: 100%;
		z-index: 10;
		padding-top: 20px;
		padding-bottom: 20px;
	}
}

.cart__form {
	margin-top: 40px;
}

.cart__input {
	border: 1px solid #ccc;
	padding: 10px;
	display: block;
	width: 100%;
	font-size: 16px;
}

.cart__input+.cart__input {
	margin-top: 10px;
}

.filter__radio:checked+label:not(.filter__reset),
.filter__radio+label:not(.filter__reset):hover {
	background-color: #ccc;
}

.filter__reset {
	font-weight: normal;
	font-size: 14px;
}

.pagination {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 20px;
	padding: 20px 0;
}

.pagination__item {
	width: 50px;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.pagination__item--active {
	background-color: #ccc;
}

.pagination__link {
	font-size: 24px;
	text-decoration: none;
	color: #000;
	display: flex;
	align-items: center;
	justify-content: center;
}

.catalog__list,
.cart__list {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px 10px;
}

.catalog__item+.catalog__item {
	margin-top: 0;
}

.product__img {
	aspect-ratio: 1/1;
	padding: 10px;
}

@media(min-width: 720px) {
	.catalog__heading {
		display: flex;
		align-items: center;
		justify-content: space-between;
	}

	.catalog__getInfo {
		width: 200px;
		margin-top: 0;
	}

	.catalog__list,
	.cart__list {
		grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	}

	.cart__list {
		padding: 60px 0 0;
	}

	.cart__form {
		display: grid;
		grid-template-columns: 1fr 1fr 1fr;
		gap: 30px;
	}

	.cart__input,
	.cart__submit {
		width: 100%;
	}

	.cart__submit,
	.cart__input+.cart__input {
		margin: 0;
	}
}

@media(min-width: 1024px) {
	.catalog {
		padding: 40px 0;
	}

	.catalog__container {
		display: grid;
		align-items: start;
		grid-template-columns: 300px 1fr;
		gap: 40px;
	}

	.catalog__filter {
		position: sticky;
		top: 20px;
		overflow: hidden;
	}

	.pagination {
		grid-column: 2/3;
		justify-self: end;
	}

	.filter__list {
		max-height: 400px;
	}

	.catalog__list,
	.cart__list {
		margin-top: 0;
		display: grid;
		/* grid-template-columns: 1fr 1fr 1fr; */
		gap: 20px
	}

	.catalog__item+.catalog__item,
	.cart .product+.product {
		margin-top: 0;
	}

	.product {
		/* display: grid; */
		gap: 0 20px;
		grid-template-columns: 100px 1fr 200px;
		padding: 10px;
	}

	.product__labels {
		left: 10px;
		top: 10px;
	}

	.product__img {
		grid-column: 1/2;
		grid-row: 1/8;
		margin-bottom: 0;
	}

	.product__info {
		grid-column: 2/3
	}

	.product__info--buy {
		grid-column: 3/4;
		grid-row: 1/8;
		margin-top: 0 !important;
	}
}

@media(max-width: 1023px) {
	body {
		padding-bottom: 60px;
	}

	.cart__button {
		left: 0;
		bottom: 0;
		width: 100%;
		border-radius: 0;
		background: #005def;
		height: 50px;
		border-left: none;
		border-right: none;
		border-top: none;
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 10px;
		color: #fff;
		font-size: 16px;
		z-index: 1;
	}
}

@media(min-width: 1024px) {

	.cart__button span,
	.cart__button svg {
		display: none;
	}
}

.magnific {
	position: fixed;
	left: 50%;
	top: 50%;
	max-width: 90vw;
	max-height: 90vh;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background-color: #fff;
	display: none;
	transform: translate(-50%, -50%);
	border: 1px solid #ccc;
}

.magnific__close {
	position: absolute;
	right: 8px;
	top: 0;
	background-color: transparent;
	border: none;
	padding: 0;
	font-size: 30px;
}

.magnific--visible {
	display: flex;
}