.block--products,
.block__filters-top {
	padding: 20px !important;
	background: var(--color-bg-light) !important;
	border: unset !important;
}

.block--products-list {
	padding: 0;
	background: transparent;
}

.block__top--products {
	margin: 0 !important;
}

.view {
	display: none;
}

.view__button {
	width: 38px;
	height: 38px;
	border: 1px solid transparent;
	border-radius: 5px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.block__group-name {
	text-align: center;
	font-size: 1.75rem;
}

.products--wrapper {
	display: grid;
	gap: 18px;
	grid-template-columns: 300px calc(100% - 320px);
}

.view__button svg {
	width: 24px;
	height: 24px;
}

.view__button svg path {
	stroke: var(--color-text-gray);
}

.view__button--selected {
	border-color: var(--color-text-active);
}

.view__button--selected svg path {
	stroke: var(--color-text-active);
}

.sorter__text {
	display: none;
}

.sorter__select {
	color: var(--color-text-teritary);
	font-size: 1rem;
	padding: 0 13px;
	height: 38px;
	width: 175px;
	border-radius: 10px;
	border: unset;
}

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

.open-filters,
.open-sorter {
	color: #353840;
	font-size: 1rem;
	font-weight: 700;
	display: flex;
	gap: 12px;
	align-items: center;
}

.breadcrumbs {
	display: none;
}

@media(min-width: 530px) {
	.grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media(min-width: 768px) {
	.grid {
		grid-template-columns: 1fr 1fr 1fr;
	}
}

@media(min-width: 992px) {
	.grid {
		grid-template-columns: 1fr 1fr;
	}

	.view {
		display: flex;
	}

	.breadcrumbs {
		display: flex;
	}

	.open-filters,
	.open-sorter {
		display: none;
	}

	main .container-inner {
		padding-top: 20px;
	}

	.block__group-name {
		text-align: left;
		margin-left: 10px;
		font-size: 2rem;
	}
}

@media(min-width: 1080px) {
	.grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media(min-width: 1320px) {
	.grid {
		grid-template-columns: 1fr 1fr 1fr;
	}
}

@media(min-width: 1780px) {
	.grid {
		grid-template-columns: 1fr 1fr 1fr 1fr;
	}
}

/* @media(min-width: 1840px) {
	.grid {
		grid-template-columns: 1fr 1fr 1fr 1fr 1fr; 
	}
} */

@media(min-width: 2100px) {
	.grid {
		grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
	}
}

.input--filters {
	margin: 5px 0 10px;
	font-size: .9rem;
	height: 40px;
}

.block__filter-actions button {
	font-weight: 600;
	font-size: 13px;
	color: #fff;
	border-radius: 10px;
	background: var(--color-button);
	border: 2px solid transparent;
	height: 38px;
	padding: 0 18px;
}

.product-card--list {
	display: grid;
	grid-template-areas: "image info"
		"actions actions";
	grid-template-columns: auto 1fr;
	gap: 12px;
}

.product-card__image-block {
	grid-area: image;
	height: min-content;
}

.product-card__info-block {
	grid-area: info;
	height: min-content;
}

.product-card__actions-block {
	grid-area: actions;
	height: min-content;
}

.product-card__group--list {
	margin-bottom: 8px;
}

.product-card__image--list {
	width: 85px;
	margin: 0;
	border-radius: 10px;
}

.product-card__actions--list {
	display: flex;
	gap: 16px;
	margin-top: 16px;
	justify-content: flex-end;
}

.product-card__count {
	display: flex;
	border: 1.56px solid var(--color-border-input);
	border-radius: 10px;
	height: 35px;
	font-size: 1rem;
	font-weight: 600;
	width: fit-content;
}

.product-card__count-input {
	text-align: center;
	font-size: 1rem;
	font-weight: 600;
	width: 43px;
}

.product-card__count-button {
	width: 40px;
	text-align: center;
	font-size: 1.5rem;
	font-weight: 400;
	display: flex;
	align-items: center;
	justify-content: center;
}

.product-card__button {
	font-size: 1rem;
}

.product-card__price-rr {
	color: var(--color-price);
}

.product-card__price-wholesale {
	color: var(--color-price-old);
	display: none;
}

.product-card__price--list {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.product-card__information--list {
	text-decoration: underline;
	color: var(--color-text-teritary);
}

.product-card__button--list {
	margin-top: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	align-content: center;
	text-align: center;
	white-space: nowrap;
	width: fit-content;
	color: var(--color-text-active);
	font-weight: 600;
}

.product-card {
	transition: all 0.3s ease-in-out;
	position: relative;
}

/* Discount Badge */
.product-discount-wrapper {
	display: none;
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 5;
}

.product-card.has-discount .product-discount-wrapper {
	display: inline-flex;
}

.product-discount-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	padding: 6px 8px;
	border-radius: 999px;
	background: var(--discount-badge-bg, #e11d48);
	color: var(--discount-badge-color, #ffffff);
}

/* New Badge */
.product-new-wrapper {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 6;
	pointer-events: none;
	display: inline-flex;
}

.product-new-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	padding: 6px 8px;
	border-radius: 999px;
	background: var(--color-button);
	color: var(--color-text-white);
}

.product-card.chosen {
	background: var(--color-bg-light) !important;
	border-color: var(--color-text-active) !important;
}

.show-only-selected .product-card:not(.chosen) {
	display: none !important;
}

@media(min-width:500px) {
	.product-card__image--list {
		width: 130px;
	}
}

@media(min-width:768px) {
	.product-card--list {
		grid-template-areas: "image info"
			"image actions";
	}

	.product-card__info-block {
		display: grid;
		grid-template-columns: 1fr .5fr .5fr;
		gap: 16px;
	}

	.product-card__price--list {
		display: flex;
		flex-direction: column;
	}

	.product-card__actions-block {
		display: flex;
		justify-content: space-between;
		gap: 16px;
		margin-top: auto;
		height: min-content;
	}

	.product-card__actions--list {
		margin-top: 0;
	}

	.product-card__name--list,
	.product-card__group--list,
	.product-card__price--list {
		margin-bottom: 0;
	}

	.product-card__button--list {
		height: 50px;
	}

	.product-card__price-rr,
	.product-card__price-wholesale {
		text-align: end;
	}
}

@keyframes shimmer {
	0% {
		transform: translateX(-100%);
	}

	100% {
		transform: translateX(100%);
	}
}

.products.loading .product-card,
.product-card.loading {
	position: relative;
	overflow: hidden;
}

.products.loading .product-card::before,
.product-card.loading::before {
	content: "";
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
	animation: shimmer 1.5s infinite;
}

.product-card__code {
	font-size: .8rem;
	margin: 5px 0 0;
	color: grey;
}

.product-card__list-wrapper {
	grid-column: 3;
	grid-row: 1;
	text-align: end;
}

.list {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.list .product-card {
	display: grid;
	grid-template-columns: auto 1fr .5fr;
	grid-template-rows: auto auto auto;
	column-gap: 10px;
}

.list .product-card__image--wrapper {
	grid-row: 1 / span 2;
}

.list .product-card__name--wrapper {
	grid-column: 2;
}

.list .product-card__price-new {
	font-weight: 700;
}

.grid .product-card__information {
	display: none;
}

.grid .product-card__button--list {
	display: none;
}

.grid .product-card__group {
	display: none;
}

.grid .product-card__button--grid {
	display: inline-flex;
}

.list .product-card__button--grid {
	display: none;
}

.list .product-card__button--list {
	display: inline-flex;
}

.grid .product-card__actions--list {
	display: none;
}

.grid .archived-status {
	display: none;
}

.list .product-card__information {
	display: block;
	grid-row: 2;
	grid-column: 2;
}

.list .product-card__button,
.list .archived-status,
.list .product-card__actions {
	grid-row: 2;
	grid-column: 2 / span 3;
	text-align: end;
}

.list .product-card__image {
	width: 85px;
	margin: 0;
	border-radius: 10px;
}

.list .product-card__group {
	grid-column: 3;
}

.list a.product-card__button {
	margin-left: auto;
}

.list .product-card__price-wrapper {
	justify-content: flex-end;
	padding-top: 10px;
}

.list .product-card__name {
	margin-bottom: 0;
	font-size: 1rem;
	font-weight: 600;
}

@media (min-width: 320px) {
	.list .product-card__image {
		width: 100px;
	}

	.list .product-card__price--text {
		display: none;
	}
}

@media (min-width: 500px) {
	.list .product-card__image {
		width: 130px;
	}
}

@media (min-width: 768px) {
	.list .product-card__image {
		width: 160px;
	}
}

@media (min-width: 992px) {
	.list .product-card__image {
		width: 100px;
	}
}

@media (min-width: 1180px) {
	.list .product-card__image {
		width: 150px;
	}

	.list .product-card__price--text {
		display: inline;
	}
}

@media (min-width: 1400px) {
	.list .product-card__image {
		width: 200px;
	}

	.list .product-card {
		padding: 23px;
	}
}

@media (min-width: 1540px) {
	.list .product-card__image {
		width: 230px;
	}
}

@media (max-width: 768px) {
	.list .product-card {
		grid-template-columns: auto 1fr;
		grid-template-rows: auto auto auto auto;
		column-gap: 10px;
	}

	.list .product-card__image--wrapper {
		grid-row: 1 / span 3;
	}

	.list .product-card__name--wrapper {
		grid-column: 2;
		height: fit-content;
	}

	.list .product-card__group {
		grid-row: 2;
		grid-column: 2;
	}

	.list .product-card__price {
		grid-column: 2;
		grid-row: 3;
		text-align: start;
	}

	.list .product-card__price {
		grid-column: 2;
		grid-row: 3;
		text-align: start;
	}

	.list .product-card__information {
		display: block;
		grid-row: 4;
		grid-column: 1;
	}

	.list .product-card__button,
	.list .archived-status,
	.list .product-card__actions {
		grid-row: 5;
		grid-column: 1 / span 2;
		text-align: start;
	}

	.list a.product-card__button {
		margin-top: 16px;
	}
}

@media(max-width: 992px) {
	.products--wrapper {
		grid-template-columns: 100%;
	}

	.sidebar--products {
		position: fixed;
		inset: 0 auto 0 0;
		width: 320px;
		max-width: 100vw;
		background: var(--sb-bg);
		color: var(--sb-text);
		box-shadow: var(--sb-shadow);
		display: flex;
		flex-direction: column;
		transform: translateX(-100%);
		transition: transform var(--sb-speed) ease;
		z-index: 1000;
		padding-top: 80px;
		height: 100vh !important;
		border-radius: 0px !important;
	}

	.sidebar--products.opened {
		transform: translateX(0);
	}

	.sidebar--products.opened:before {
		top: 0;
		left: 320px;
		width: 100vh;
		height: 100%;
		background: rgb(0 0 0 / 37%);
		z-index: 1000;
		position: absolute;
		content: "";
	}

	.close-filter {
		height: 40px;
		width: 40px;
		position: absolute;
		top: 15px;
		right: 15px;
	}

	.sorter {
		position: fixed;
		bottom: 0;
		left: 0;
		z-index: 100;
		background: #fff;
		width: 100%;
		height: auto;
		transition: height 500ms;
		box-shadow: rgba(0, 0, 0, .5) 0 10px 130px;
	}

	.sorter.opened {
		display: block !important;
	}

	.sorter__form {
		flex-direction: column;
		padding: 40px;
		align-items: center;
		overflow: hidden;
		display: flex;
	}

	.sorter__close-btn {
		position: absolute;
		top: 10px;
		right: 10px;
		width: 40px;
		height: 40px;
		display: flex;
		align-items: center;
		justify-content: center;
		cursor: pointer;
	}

	.sorter__select {
		max-width: 300px;
		width: 100%;
		border: 1px solid #d9d9d9;
	}
}

.selected-bar {
	position: fixed;
	bottom: 0;
	width: 100%;
	min-height: 83px;
	display: none;
	z-index: 100;
	background: #fff;
	justify-content: flex-end;
	align-items: center;
	padding: 16px 64px;
	gap: 20px;
	border-top: 1px solid var(--color-border-input);
}

.has-selected-items .selected-bar {
	display: flex;
}

.selected-bar__view {
	font-weight: 600;
	font-size: 13px;
	color: var(--color-text-active);
}

.selected-bar__count-number {
	font-weight: 600;
}

.selected-bar__left {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
}

.product-card__description {
	margin-top: 15px;
	font-weight: 400;
	font-size: .8rem;
	color: var(--color-text-gray);
}

@media(max-width: 580px) {
	.has-selected-items .selected-bar {
		flex-direction: column;
	}
}

.product-card__colors {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 12px;
	margin-bottom: 12px;
}

.color-swatch {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	border: 1px solid rgba(0, 0, 0, 0.15);
	display: inline-block;
}

.load-more,
.load-prev {
	display: flex;
	justify-content: center;
	margin: 24px 0 16px;
	padding-top: 8px;
}

.btn--load-more,
.btn--load-prev {
	font-size: .9rem;
	padding: 12px 18px;
	border-radius: 6px;
	line-height: 1.1;
	background: #004A83;
}

.btn--load-more:hover,
.btn--load-prev:hover {
	border-color: #004A83;
	color: #004A83;
}

.btn--load-more:hover,
.btn--load-prev:hover {
	transform: translateY(-1px);
}

.btn--load-more:active,
.btn--load-prev:active {
	transform: translateY(0);
}

.btn--load-more:disabled,
.btn--load-prev:disabled {
	opacity: 0.7;
	cursor: not-allowed;
	transform: none;
}

.load-more__spinner {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 16px 0;
}

.btn__spinner {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.list.compact .product-card__image {
	width: 50px;
}

.list.compact .product-card {
	padding: 10px;
	border: unset;
	border-bottom: 1px solid var(--color-border-input);
	border-radius: 0;
	grid-template-columns: 50px 1fr 1fr 1fr .5fr .5fr;
	grid-template-rows: 1fr;
	column-gap: 20px;
	padding-bottom: 10px;
	align-items: center;
}

.list.compact {
	padding: 0;
	gap:0;
}

.list.compact .product-card__button, 
.list.compact .archived-status, 
.list.compact .product-card__actions {
	grid-row: unset;
	grid-column: unset;
}

.list.compact .product-card__button--quickview {
	height: fit-content;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
}

.list.compact .product-card__button--quickview svg {
	height: 21px;
    width: 21px;
}

.list.compact .product-card__price-wrapper {
	padding: 0;
	margin: 0;
}

.list.compact .product-card__price {
	font-size: .9rem;
	font-weight: 400;
}

.list.compact .product-card__price--novat .product-card__price--text, 
.list.compact .product-card__price--novat .product-card__price-new {
    font-size: .9rem;
    color: var(--color-price);
	font-weight: 400;
}

.list.compact .product-card__name {
	font-size: .9rem;
	font-weight: 400;
}

.list.compact .product-card__list-wrapper {
    grid-column: 4;
	min-width: 120px;
	grid-row: 1;
}

.list.compact .product-discount-wrapper,
.list.compact .product-new-wrapper {
	position: static;
}

.list.compact .product-card__name {
	margin-bottom: 5px;
}

.list.compact .product-card__button--list {
	height: fit-content;
}

.list.compact a.product-card__button {
	margin-top: 0;
	min-width: 126px;
}

.list.compact .product-card__price {
	text-align: end;
}

.list.compact .product-card__actions--list {
	margin-top: 0;
	min-width: 126px;
	grid-column: 3;
	grid-row: 1;
}

.list.compact .product-card__name--wrapper {
    grid-column: unset;
}

.list.compact .product-card__name--wrapper {
    min-width: 150px;
}

.catalog-compact__row {
	padding: 10px;
    border: unset;
    border-bottom: 1px solid var(--color-border-input);
    border-radius: 0;
	display: grid;
    grid-template-columns: 50px 1fr 1fr 1fr .5fr .5fr;
    grid-template-rows: 1fr;
    column-gap: 20px;
    padding-bottom: 10px;
    align-items: center;
}

.align--end {
	text-align: end;
}

.catalog-compact__row--head {
  font-weight: 600;
  border-bottom: 3px solid #eee;
}

.catalog-compact__cell { min-width: 0; }

/* accessible “visually hidden” helper */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.product-card__stock-wrapper {
	color: #a94442;
	text-align: end;
}

.product-card__stock-wrapper.in-stock {
	color: #3c763d;
}

.mw-100 {
	min-width: 100px;
}

.mw-150 {
	min-width: 150px;
}

.mw-126 {
	min-width: 126px;
}

.mw-120 {
	min-width: 120px;
}

.catalog-compact {
	overflow: auto;
}

.list.compact .product-card__count {
    display: flex;
    border: unset;
    border-radius: unset;
    height: 35px;
    font-size: 1rem;
    font-weight: 600;
    width: fit-content;
    gap: 5px;
}

.product-card__count-button {
    width: 32px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    order: 2;
    border: 1.56px solid var(--color-border-input);
	border-radius: 3px;
}

.product-card__count-input {
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    width: 50px;
    order: 1;
    border: 1.56px solid var(--color-border-input);
    background: #f4f4f4;
	border-radius: 3px;
}

@media(max-width: 1399px) {
	.mq-1400 {
		display: none;
	}
}


@media(min-width: 1400px) {
	.catalog-compact__row,
	.list.compact .product-card {
    	grid-template-columns: 50px 1fr 1fr 1fr 1fr .5fr .5fr;
	}

	.list.compact .product-card__actions--list {
		grid-column: 4;
	}

	.list.compact .product-card__list-wrapper {
		grid-column: 5;
	}

	.list.compact .product-card__name .product-card__code {
		display: none;
	}

	.list.compact .product-card__code {
		margin: 0;
	}
}

.block__filters-top .filters {
	padding: 0;
}

.block__filters-top .block__filter-title {
	width: 100%;
    justify-content: space-between;
	min-width: 200px;
}

.block__filters-top .filters {
	display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 20px;
}

.block__filters-top .block__filter.filter-section .block__filter-content {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 100%;
    width: 100%;
    height: auto;
    z-index: 1;
    background: #fff;
    border: 1px solid var(--color-border-input);
    padding: 10px;
    border-radius: 10px;
}

.block__filters-top .block__filter-title {
    width: 100%;
    justify-content: space-between;
    min-width: 210px;
    color: var(--color-text-teritary);
    font-size: 1rem;
    padding: 0 13px;
    border-radius: 10px;
    border: unset;
    background: #fff;
    font-weight: 400;
}

.block__filters-top .block__filter-title svg path {
	stroke: var(--color-text-teritary);
}

.block__filters-top .block__filter-title svg {
	width: 10px;
}

.block__filters-top .block__filter-title span {
    font-weight: 400;
}

.block__filters-top .block__filter-actions {
    justify-content: flex-end;
}

.sidebar__link-arrow {
    justify-content: flex-end;
}

.filter--active .block__filter-title {
    color: var(--color-text-secondary);
}

.filter--active .block__filter-title svg path {
    stroke: var(--color-text-secondary);
}