/*Сортировка*/
.b-sort {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	flex-wrap: wrap;
}

/*список товаров*/
.b-items__list {
	margin-bottom: 20px;
	row-gap: 24px;
}

/*товар*/
.b-item {
    position: relative;
    -webkit-box-flex: 0;
    -ms-flex: 0 0 25%;
    flex: 0 0 25%;
    max-width: 25%;
    padding-right: 12px;
    padding-left: 12px;
	font-size: 13px;
	line-height: 1.4em;
}
.b-item__wrapper {
	display: flex;
	height: 100%;
	padding: 20px;
	flex-direction: column;
	justify-content: space-between;
	background-color: #fff;
}
.b-item__image {
	flex: 0 0 auto;
    display: flex;
	margin: 0 0 20px;
	width: 100%;
    height: 120px;
	padding: 0 10px;
    align-items: center;
    justify-content: center;
	overflow: hidden;
}
.b-item__image img {
    height: 100%;
    width: 100%;
    object-fit: contain;
	transition: transform 300ms;
}
.b-item:hover .b-item__image img {
	transform: scale(1.15);
}
.b-item__info {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	margin: 0 0 30px;
	width: 100%;
	gap: 14px;
}
.b-item__sale {
	flex: 0 0 auto;
	margin: 0 0 30px;
}
.b-item__actions {
	flex: 0 0 auto;
	display: flex;
	gap: 10px;
}
.b-item__name a,
.b-item__name a:hover {
	color: #333;
}
.b-item__artnumber {
	font-size: 12px;
	color: #999;
}
.b-item__available {
	color: #5BCF22;
}
.b-item__offers {
	margin-bottom: 10px;
}
.b-item__price {
	font-size: 14px;
	font-weight: 700;
}
.b-item__actions > * {
	flex: 1 0 90px;
}
.b-item__button {
	padding: 16px 14px;
	font-weight: 700;
	color: #fff;
	background: #102B52;
	text-align: center;
	cursor: pointer;
}

/*счетчик*/
.b-counter {
	position: relative;
}
.b-counter__minus,
.b-counter__plus {
	position: absolute;
	top: 1px;
	bottom: 1px;
	width: 32px;
	cursor: pointer;
}
.b-counter__minus {
	left: 1px;
}
.b-counter__plus {
	right: 1px;
}
.b-counter__minus::before,
.b-counter__plus::before {
	content: '';
	display: block;
	background: #333;
	width: 12px;
	height: 2px;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -1px;
    margin-left: -6px;
}
.b-counter__plus::after {
	content: '';
	display: block;
	background: #333;
	width: 2px;
	height: 12px;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -6px;
    margin-left: -1px;
}
.b-counter__input {
	width: 100%;
	height: 100%;
	border: 1px solid #DBE6FB;
	padding: 0 32px;
	text-align: center;
	font-weight: 700;
	color: #333;
	font-size: 15px;
}

/*выбор sku*/
.b-offers {
	
}
.b-offers__container {
	position: relative;
}
.b-offers__list {
	display: none;
	position: absolute;
	z-index: 1;
	top: 100%;
	left: 0;
	right: 0;
	background: #fff;
	border: solid #4A75B5;
	border-width: 0 1px 1px 1px;
}
.b-offers__option {
	padding: 6px 11px;
    color: #0F265C;
    font-size: 12px;
    font-weight: 600;
	cursor: pointer;
}
.b-offers__option:hover {
	background-color: #F4F8FE;
}
.b-offers__header {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    border: 1px solid #E2E2E2;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s;
}
.b-offers__header.open,
.b-offers__header:hover {
    border-color: #4A75B5;
}
.b-offers__header.required {
	border-color: #a01717;
}
.b-offers__title {
    flex-grow: 1;
    color: #0F265C;
    font-size: 12px;
    font-weight: 600;
	line-height: 20px;
}
.b-offers__arrow {
    display: block;
    border: solid #4A75B5;
    border-width: 0 2px 2px 0;
	margin: -4px 0 0 0;
    padding: 4px;
    transform: rotate(45deg);
    transition: transform 0.2s;
}
.b-offers__header.open .b-offers__arrow {
	transform: rotate(-135deg);
	margin: 0 0 -4px 0;
}
.b-offers__header.open + .b-offers__list {
	display: block;
}


/*Сортировка*/
.b-direction {
	display: flex;
    align-items: center;
	gap: 5px;
}
.b-direction__caption {
	display: none;
	margin-bottom: 30px;
	font-weight: 700;
	font-size: 20px;
	line-height: 1.4em;
}
.b-direction__legend {
	font-weight: 700;
}
.b-direction__container {
	position: relative;
}
.b-direction__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	min-width: 250px;
	font-weight: 500;
	cursor: pointer;
	border: solid #eef2f9;
	border-width: 1px 1px 0px 1px;
}
.b-direction__title {
	padding: 2px 5px;
}
.b-direction__arrow {
	display: block;
	width: 20px;
	height: 20px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='21' height='16' viewBox='0 0 21 16' fill='none'%3E%3Cpath d='M4.766-.05C4.865-.05 4.965-.027 5.056.019L5.139.068C5.165.087 5.19.109 5.214.132L5.226.144L9.298 4.133C9.546 4.376 9.546 4.769 9.298 5.012C9.051 5.254 8.65 5.254 8.403 5.012L5.398 2.067V15.429C5.398 15.773 5.113 16.05 4.764 16.05C4.415 16.05 4.131 15.773 4.131 15.429V2.073L1.131 5.012C.884 5.254.483 5.254.236 5.012C-.012 4.769-.012 4.376.236 4.133L4.283.169C4.399.035 4.571-.05 4.764-.05H4.766ZM15.27-.05C15.618-.05 15.903.227 15.903.571V13.926L18.903 10.988C19.15 10.746 19.551 10.746 19.798 10.988C20.046 11.231 20.046 11.625 19.798 11.867L15.751 15.831C15.635 15.965 15.463 16.05 15.27 16.05H15.268C15.193 16.05 15.118 16.038 15.047 16.012L14.978 15.981C14.921 15.953 14.867 15.915 14.82 15.868L14.808 15.856L10.736 11.867C10.488 11.624 10.488 11.231 10.736 10.988C10.983 10.746 11.384 10.746 11.631 10.988L14.636 13.932V.571C14.636.227 14.921-.05 15.27-.05Z' fill='%23333333' stroke='%23333333' stroke-width='.1'/%3E%3C/svg%3E");
	background-position: center center;
	background-repeat: no-repeat;
	background-size: contain;
}
.b-direction__window {
	display: none;
    position: absolute;
	z-index: 1;
	top: 100%;
	left: 0;
	right: 0;
}
.b-direction__list {
	background: #fff;
	border: solid #4A75B5;
	border-width: 0 1px 1px 1px;
}
.b-direction__header.open {
	border: solid #4A75B5;
	border-width: 1px 1px 0px 1px;
}
.b-direction__header.open + .b-direction__window {
	display: block;
}

.b-direction__option {
	padding: 2px 5px;
}
.b-direction__option a,
.b-direction__option a:hover {
	display: block;
	color: #333;
	text-decoration: none;
}

/*смена вида*/
.b-view {
	display: none;
	gap: 14px;
}
.b-view__card,
.b-view__list {
	display: flex;
	gap: 4px;
	width: 20px;
	height: 20px;
	flex-wrap: wrap;
	cursor: pointer;
}
.b-view__card > div,
.b-view__list > div {
	height: 8px;
	width: 8px;
	background: #D9D9D9;
	border-radius: 2px;
}
.b-view__list > div {
	width: 100%;
}
.b-view__card.active > div,
.b-view__list.active > div {
	background: #FE2026;
}

.b-buttons {
	margin: 30px 0 0;
}
.b-buttons__container {
	display: flex;
	justify-content: space-between;
	gap: 20px;
}
.b-buttons__button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 50%;
	padding: 20px;
	font-weight: 700;
	font-size: 14px;
	line-height: 100%;
	text-decoration: none;
	color: #fff;
	background: #000;
	cursor: pointer;
	text-align: center;
}
.b-buttons__button:hover {
	text-decoration: none;
	color: #fff;
}
.b-buttons__button--blue {
	background: #0F3CA5;
}
.b-buttons__button--red {
	background: #FE2026;
}

.b-news,
.b-description {
	margin: 60px 0 0;
}
.b-news__caption {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 30px;
}
.b-news__nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
}
.b-news__nav-prev,
.b-news__nav-next {
	width: 36px;
	height: 15px;
	background-repeat: no-repeat;
	background-size: contain;
	background-position: center;
	cursor: pointer;
}
.b-news__nav-prev {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='15' viewBox='0 0 36 15' fill='none'%3E%3Cpath d='M.296 8.22C-.099 7.822-.099 7.178.296 6.78L6.719.298C7.113-.099 7.752-.099 8.146.298C8.54.696 8.54 1.341 8.146 1.739L2.437 7.5L8.146 13.261C8.54 13.659 8.54 14.304 8.146 14.702C7.752 15.099 7.113 15.099 6.719 14.702L.296 8.22ZM36 8.518H1.009V6.482H36V8.518Z' fill='%23383838'/%3E%3C/svg%3E");

}
.b-news__nav-next {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='15' viewBox='0 0 36 15' fill='none'%3E%3Cpath d='M35.71 8.22C36.097 7.822 36.097 7.178 35.71 6.78L29.404.298C29.017-.099 28.39-.099 28.003.298C27.616.696 27.616 1.341 28.003 1.739L33.608 7.5L28.003 13.261C27.616 13.659 27.616 14.304 28.003 14.702C28.39 15.099 29.017 15.099 29.404 14.702L35.71 8.22ZM0 8.518H35.009V6.482H0L0 8.518Z' fill='%23383838'/%3E%3C/svg%3E");
}

.b-news__title {
	font-size: 26px;
	line-height: 1.4em;
	font-weight: 700;
}
.b-news__list {
	display: flex;
	overflow: hidden;
}

.b-newsitem {
	display: flex;
	/* max-width: 25%; */
	width: 25%;
}
.b-newsitem__wrapper {
    background: #fff;
    display: flex;
    height: 100%;
    flex-direction: column;
}
.b-newsitem__image {
	height: 140px;
}
.b-newsitem__image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}
.b-newsitem__container {
	padding: 20px;
	
}
.b-newsitem__title a {
	font-weight: 700;
	font-size: 16px;
	line-height: 20px;
	color: #333;
	text-decoration: none;
}
.b-newsitem__title a:hover {
	color: #333;
	text-decoration: none;
}
.b-newsitem__description {
	position: relative;
	margin-top: 18px;
	font-size: 13px;
	line-height: 20px;
}
.b-newsitem__text {
	overflow: hidden;
	height: 150px;
	position: relative;
}

.b-newsitem__text::after {
	content: '';
	display: block;
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 21px;
	background: linear-gradient(transparent, #fff);
}
.b-newsitem__date {
	margin-top: 18px;
	font-size: 12px;
	line-height: 1.4em;
	color: #999;
}

.b-tags {
	margin: 60px 0 0;
}

.b-tags__title {
	margin-bottom: 30px;
	font-size: 26px;
	line-height: 1.4em;
	font-weight: 700;
}
.b-tags__list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.b-tags__item {
    padding: 18px;
    background: #fff;
    color: #0F3CA5;
    text-decoration: none;
    font-weight: 700;
    border-bottom: 5px solid #DBE6FB;
}
.b-tags__item:hover {
    color: #0F3CA5;
    text-decoration: none;
}

/***********************************/
/***********************************/
.b-similar {
	margin: 60px 0 0;
}
.b-similar__caption {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 30px;
}
.b-similar__nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
}
.b-similar__nav-prev,
.b-similar__nav-next {
	width: 36px;
	height: 15px;
	background-repeat: no-repeat;
	background-size: contain;
	background-position: center;
	cursor: pointer;
}
.b-similar__nav-prev {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='15' viewBox='0 0 36 15' fill='none'%3E%3Cpath d='M.296 8.22C-.099 7.822-.099 7.178.296 6.78L6.719.298C7.113-.099 7.752-.099 8.146.298C8.54.696 8.54 1.341 8.146 1.739L2.437 7.5L8.146 13.261C8.54 13.659 8.54 14.304 8.146 14.702C7.752 15.099 7.113 15.099 6.719 14.702L.296 8.22ZM36 8.518H1.009V6.482H36V8.518Z' fill='%23383838'/%3E%3C/svg%3E");

}
.b-similar__nav-next {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='15' viewBox='0 0 36 15' fill='none'%3E%3Cpath d='M35.71 8.22C36.097 7.822 36.097 7.178 35.71 6.78L29.404.298C29.017-.099 28.39-.099 28.003.298C27.616.696 27.616 1.341 28.003 1.739L33.608 7.5L28.003 13.261C27.616 13.659 27.616 14.304 28.003 14.702C28.39 15.099 29.017 15.099 29.404 14.702L35.71 8.22ZM0 8.518H35.009V6.482H0L0 8.518Z' fill='%23383838'/%3E%3C/svg%3E");
}

.b-similar__title {
	font-size: 26px;
	line-height: 1.4em;
	font-weight: 700;
}
.b-similar__list {
	display: flex;
	
	
	flex-wrap: wrap;
}

.b-simitem {
	display: flex;
	
	/* max-width: 25%; */
	width: 25%;
}
.b-simitem__wrapper {
    background: #fff;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
	padding: 20px;
}
.b-simitem__image {
	padding: 0 10px;
	height: 100px;
}
.b-simitem__image img {
    height: 100%;
    width: 100%;
    object-fit: contain;
}
.b-simitem__container {
	margin-top: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    gap: 30px;
}
.b-simitem__title {
	font-size: 16px;
	line-height: 20px;
	color: #333;
}
.b-simitem__button {
	display: block;
	padding: 20px 10px;
	text-align: center;
	font-weight: 700;
	color: #fff;
	background: #102B52;
	text-decoration: none;
}
.b-simitem__button:hover {
	color: #fff;
	text-decoration: none;
}

/***********************************/
/***********************************/


@media (max-width: 1439px) {
	.b-item {
		flex: 0 0 33.33333333%;
		max-width: 33.33333333%;
	}
}

@media (max-width: 1199px) {
	.b-item {
		flex: 0 0 50%;
		max-width: 50%;
	}
}

@media (max-width: 991px) {
	.b-item {
		flex: 0 0 100%;
		max-width: 100%;
	}
}

/*вид списка только на больших разрешениях*/
@media (min-width: 1200px) {
	.b-items--list .b-item {
		flex: 0 0 100%;
		max-width: 100%;
	}

	.b-items--list .b-item__wrapper {
		flex-direction: row;
		align-items: center;
		gap: 24px;
	}
	.b-items--list .b-item__image {
		width: 190px;
		margin: 0;
	}
	.b-items--list .b-item__info {
		margin: 0;
	}
	.b-items--list .b-item__actions {
		width: 210px;
	}

	.b-items--list .b-item__sale {
		width: 190px;
		margin: 0;
	}

	.b-items--list .b-item__price {
		text-align: center;
	}
	
	.b-view {
		display: flex;
	}
	.b-sort {
		flex-wrap: no-wrap;
	}
	
}

@media (max-width: 767px) {
	.b-direction__legend {
		display: none;
	}
	.b-sort,
	.b-direction,
	.b-direction__container,
	.b-direction__header {
		width: 100%;
	}
	
	.b-direction__header.open {
		border: solid #eef2f9;
		border-width: 1px 1px 0px 1px;
	}
	.b-direction__header.open::after {
		content: '';
		display: block;
		position: fixed;
		background: rgba(51, 51, 51, 0.4);
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 1;
	}
	.b-direction__window {
		position: fixed;
		bottom: 0;
		top: auto;
		right: 0;
		left: 0;
		background: #fff;
	}
	.b-direction__inner {
		max-width: 540px;
        margin: 0 auto;
		padding: 30px 20px;
		
	}
	.b-direction__caption {
		display: block;
	}
	.b-direction__list {
		border: none;
	}
	.b-direction__option {
		padding: 0;
	}
	.b-direction__option a, 
	.b-direction__option a:hover {
		color: #A9A9A9;
	} 
	.b-direction__option.active a, 
	.b-direction__option.active a:hover {
		color: #050000;
	} 
	
	.b-direction__option + .b-direction__option {
		margin-top: 20px;
	}
	
	body.sort-open {
		overflow: hidden;
	}
	
}


@media (max-width: 991px) {
	.b-buttons__container {
		flex-wrap: wrap;
	}
	.b-buttons__button {
		width: 100%;
	}
}












