/* LINKS */
.link:hover {
	color: var(--secondary);
	cursor: pointer;
}
.link:active {
	color: var(--tertiary);
}
.link-blue {
	color: var(--primary);
	transition: color .25s linear;
}
.link-blue:hover {
	transition: color .25s linear;
}
.link-dark-blue {
	color: var(--secondary);
	transition: color .25s linear;
}
.link-dark-blue:hover {
	color: var(--primary);
	transition: color .25s linear;
}
.link-hover-blue-bg {
	transition: background .25s linear;
}
.link-hover-blue-bg:hover {
	background: var(--hover-main);
	transition: background .25s linear;
}

/* BUTTONS */
.btn-outlined {
	font-size: 16px;
	font-weight: 500;
	color: var(--primary);
	border: 1px solid var(--primary);
	background-color: #fff;
	border-radius: 12px;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 8px 2%;
	transition: color .25s ease-out;
}
.btn-outlined:hover {
	color: var(--secondary);
	border-color: var(--secondary);
}
.btn-outlined:active {
	color: var(--tertiary);
	border-color: var(--tertiary);
}
.btn-filled:hover {
	background: var(--secondary) !important;
	border-color: var(--secondary) !important;
	transition: background .25s ease-out;
}
.btn-filled:active {
	background: var(--tertiary) !important;
	border-color: var(--tertiary) !important;
}
.btn-filled {
	font-size: 16px;
	font-weight: 500;
	color: #fff;
	background: var(--primary) !important;
	border: 1px solid var(--primary) !important;
	border-radius: 12px;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 8px 2%;
	transition: background .25s ease-out;
}
.group-btn {
	display: flex;
	align-items: center;
	border: 1px solid #e0e0e6;
	border-radius: 10px;
	padding: 4px;
}
.group-btn button {
	font-weight: 500;
	font-size: 12px;
	line-height: 16px;
	border-radius: 8px;
	padding: 6px 6px;
}
.group-btn button.active {
	color: var(--tertiary);
	background: var(--hover-main);
}
/* BORDER */
.border-bottom {
	border-bottom: 1px solid #e0e0e5;
}
.border-top {
	border-top: 1px solid #e0e0e5;
}
.border-right {
	border-right: 1px solid #e0e0e6;
}
.border-left {
	border-left: 1px solid #e0e0e6;
}

.truncate-text {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.breadcrumbs {
	font-weight: 500;
	font-size: 14px;
	line-height: 22px;
	color: #9a9aa0;
}

/* RIBON */
.ribbon {
	width: 98px;
	height: 60px;
	overflow: hidden;
	position: absolute;
	top: 0px;
	left: 0px;
	z-index: 20;
}

.ribbon__content {
	right: 0;
	top: 0;
	transform: rotate(-45deg);
	position: absolute;
	display: block;
	width: 130px;
	padding-left: 30px;
	font-weight: 700;
	font-size: 16px;
	line-height: 19px;
	color: #fff;
	height: 23px;
	padding-top: 2px;
	background-color: #ff0000;
}

/* SELECT */
.m-select {
	display: flex;
	align-items: center;
	border-radius: 8px;
	padding: 10px;
	background: #fff;
	color: var(--primary);
	border: 1px solid #e0e0e5;
	width: 250px;
	background: url("./images/components/icons/arrow-down-select.svg") no-repeat
		95%;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}

.selector-wrapper {
	width: 250px;
}

.content {
	display: flex;
	width: 250px;
	padding: 12px 8px;
	margin-top: 4px;
	background: #fff;
	box-shadow: 0px 6px 20px rgb(0 0 0 / 8%);
    border-radius: 8px;
}

.content li {
	padding: 10px 12px;
}

.content li:hover {
	background: var(--hover-main);
	border-radius: 8px;
	cursor: pointer;
}

.options {
	width: 100%;
}

@media (max-width: 800px) {
	.m-select {
		padding: 8px;
	}
}
.m-select::-ms-expand {
	display: none;
}
.m-select:hover {
	border-color: var(--primary);
	cursor: pointer;
	box-shadow: 0 0 0 1px -moz-mac-focusring;
}

.m-select option {
	font-weight: normal;
}
*[dir="rtl"] .m-select,
:root:lang(ar) .m-select,
:root:lang(iw) .m-select {
	background-position: left 0.7em top 50%, 0 0;
	padding: 0.6em 0.8em 0.5em 1.4em;
}

/* CHECKBOX */

.m-checkbox {
	position: absolute;
	z-index: -1;
	opacity: 0;
	z-index: 20;
}

.m-checkbox + label {
	display: inline-flex;
	align-items: center;
	user-select: none;
}
.m-checkbox + label::before {
	content: "";
	display: inline-block;
	width: 1em;
	height: 1em;
	flex-shrink: 0;
	flex-grow: 0;
	border: 1px solid #adb5bd;
	border-radius: 0.25em;
	margin-right: 0.5em;
	background-repeat: no-repeat;
	background-position: center center;
	background-size: 50% 50%;
}

.m-checkbox:checked + label::before {
	border-color: var(--primary);
	background-color: var(--primary);
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3e%3c/svg%3e");
}

/* стили при наведении курсора на checkbox */
.m-checkbox:not(:disabled):not(:checked) + label:hover::before {
	border-color: #adb5bd;
	cursor: pointer;
}
/* стили для активного состояния чекбокса (при нажатии на него) */
.m-checkbox:not(:disabled):active + label::before {
	background-color: var(--hover-main);
	border-color: var(--hover-main);
}
/* стили для чекбокса, находящегося в фокусе */
.m-checkbox:focus + label::before {
	box-shadow: 0 0 0 0.1rem rgba(91, 28, 154, 0.25);
}
/* стили для чекбокса, находящегося в фокусе и не находящегося в состоянии checked */
.m-checkbox:focus:not(:checked) + label::before {
	border-color: var(--secondary);
}
/* стили для чекбокса, находящегося в состоянии disabled */
.m-checkbox:disabled + label::before {
	background-color: #e9ecef;
}

/* RADIO */

/* для элемента input c type="radio" */
.m-radio {
	position: absolute;
	z-index: -1;
	opacity: 0;
	z-index: 20;
}
/* для элемента label связанного с .custom-radio */
.m-radio + label {
	display: inline-flex;
	align-items: center;
	user-select: none;
}
/* создание в label псевдоэлемента  before со следующими стилями */
.m-radio + label::before {
	content: "";
	display: inline-block;
	width: 1em;
	height: 1em;
	flex-shrink: 0;
	flex-grow: 0;
	border: 1px solid #adb5bd;
	border-radius: 50%;
	margin-right: 0.5em;
	background-repeat: no-repeat;
	background-position: center center;
	background-size: 50% 50%;
}
/* стили при наведении курсора на радио */
.m-radio:not(:disabled):not(:checked) + label:hover::before {
	border-color: var(--hover-main);
}
/* стили для активной радиокнопки (при нажатии на неё) */
.m-radio:not(:disabled):active + label::before {
	background-color: var(--hover-main);
	border-color: var(--hover-main);
}
/* стили для радиокнопки, находящейся в фокусе */
.m-radio:focus + label::before {
	box-shadow: 0 0 0 0.1rem rgba(91, 28, 154, 0.25);
}
/* стили для радиокнопки, находящейся в фокусе и не находящейся в состоянии checked */
.m-radio:focus:not(:checked) + label::before {
	border-color: var(--secondary);
}
/* стили для радиокнопки, находящейся в состоянии checked */
.m-radio:checked + label::before {
	border-color: var(--secondary);
	background-color: var(--secondary);
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
}
/* стили для радиокнопки, находящейся в состоянии disabled */
.m-radio:disabled + label::before {
	background-color: #e9ecef;
}

/* SWITCH */
.m-switch[type="checkbox"] {
	position: relative;
	cursor: pointer;
	width: 46px;
	height: 24px;
	-webkit-appearance: none;
	outline: none;
	background: #f5f5f6;
	border-radius: 20px;
	transition: 0.3s;
}

.m-switch:checked[type="checkbox"] {
	background: var(--hover-main);
}

.m-switch[type="checkbox"]:before {
	content: "";
	position: absolute;
	width: 18px;
	height: 18px;
	border-radius: 20px;
	top: 3px;
	left: 3px;
	background: #9a9aa0;
	transition: 0.3s;
	transform: scale(1.1);
}

.m-switch:checked[type="checkbox"]:before {
	left: 24px;
	background: var(--primary);
}


/* MOBILE CATALOG SWITCHER */

.m-catalog-switch {
	width: 93vw;
    height: 40px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: var(--hover-main);
    border-radius: 8px;
	transform: translate(-50%, -50%);
	color: var(--black);
}

.tab {
	display: none;
}

.tab + label {
	display: flex;
	width: 44vw;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	cursor: pointer;
	position: relative;
}
  
.tab + label::before {
	content: '';
	position: absolute;
	width: 100%;
	height: 32px;
	transition: 0.3s;
	border-radius: 8px;
}
  
.tab:checked + label::before {
	background: #ffff;
	height: 32px;
}
  
.tab:checked + label > span {
	color: var(--tertiary);
	position: relative;
}

.tab + label:nth-of-type(1) {
	border-radius: 8px;
}
  
.tab + label:nth-of-type(2) {
	border-radius: 8px;
}

/* TEXTAREA */
.input-textarea {
	background: #f5f5f6;
	border-radius: 8px;
	padding-top: 15px;
	padding-left: 15px;
	padding-right: 5px;
	padding-bottom: 15px;
	height: 54px;
	font-size: 14px;
	font-weight: 500;
	font-feature-settings: "pnum" on, "lnum" on;
	width: 100%;
	resize: none;
}
.input-textarea.resize {
	resize: vertical;
}

/* INPUT TEXT */
.input-text {
	position: relative;
	background: #f5f5f6;
	border-radius: 4px;
	padding: 6px;
	font-size: 14px;
	font-weight: 500;
	font-feature-settings: "pnum" on, "lnum" on;
	width: 100%;
}
.input-text-prefix .input-text {
	outline: 0;
	outline-offset: 0;
}
.input-text-prefix > .input-text {
	padding: 0;
}
.input-wrapper .input-text.large {
	padding-top: 22px !important;
	padding-bottom: 10px !important;
}
.input-text ~ .label {
	color: #9a9aa0;
	font-size: 14px;
	font-weight: 500;
	position: absolute;
	transition: 0.2s ease all;
	top: 18px;
	left: 20px;
}
.input-text:focus ~ .label,
.input-text:not(:placeholder-shown) ~ .label {
	display: block;
	position: absolute;
	top: 8px;
	left: 15px;
	color: #9a9aa0;
	font-weight: 400;
	font-size: 12px;
	line-height: 16px;
}
.input-text[type="tel"]:placeholder-shown:hover ~ .label {
	display: none;
}

.input-wrapper .input-textarea {
	padding-top: 22px !important;
	padding-bottom: 10px !important;
}
.input-textarea ~ .label {
	color: #9a9aa0;
	font-size: 14px;
	font-weight: 500;
	position: absolute;
	transition: 0.2s ease all;
	top: 30%;
	left: 20px;
}
.input-textarea :focus ~ .label,
.input-textarea :not(:focus):valid ~ .label {
	display: block;
	position: absolute;
	top: 8px;
	left: 15px;
	color: #9a9aa0;
	font-weight: 400;
	font-size: 12px;
	line-height: 16px;
}
.input-text.error {
	background: #fff0f0;
	color: #ff0000 !important;
	outline: none !important;
}
.error-text {
	color: #9a9aa0;
	font-size: 12px;
	font-weight: 500;
}

.just-validate-error-label {
	color: #9a9aa0 !important;
	font-size: 12px !important;
	font-weight: 500 !important;
	margin-top: 4px;
	margin-left: 10px;
}
.input-text-prefix {
	display: flex;
	align-items: center;
	background: #f5f5f6;
	border-radius: 4px;
	padding: 6px;
	outline: 0;
	outline-offset: 0;
}
.input-text-prefix span {
	color: #9a9aa0;
	margin-right: 5px;
	margin-top: -1px;
}
.input-text.large {
	padding: 16px 18px;
	border-radius: 8px;
}

/* PAGINATION */
.pagination-item {
	border-radius: 100px;
	background: #f5f5f6;
	color: var(--subtitle);
	font-size: 12px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 6px 12px;
}

.pagination-item.active {
	background: var(--primary);
	color: #fff;
}
.pagination-item.more {
	background: none;
	font-size: 14px;
}

/* MODAL */
.m-modal {
	/* Скрываем окна  */
	opacity: 0;
	visibility: hidden;
	width: 100%;

	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 30; /* Должен быть выше чем у подложки*/

	box-shadow: 0 3px 10px -0.5px rgba(0, 0, 0, 0.2);
	padding: 40px;
	border-radius: 16px;
	background-color: #fff;
	transition: 0.3s all;
}
@media (max-width: 800px) {
	.m-modal {
		top: 45%;
		padding: 30px;
		width: 97%;
	}
}

/* Стили для кнопки закрытия */

.m-modal__cross {
	width: 10px;
	height: 10px;
	position: absolute;
	top: 20px;
	right: 20px;
	fill: #444;
	cursor: pointer;
}
.m-open-modal {
	cursor: pointer;
}

.m-modal.active,
.overlay.active {
	opacity: 1;
	visibility: visible;
}

.m-modal.catalog-dropdown {
	width: 98%;
	padding: 20px;
	top: 55%;

	position: fixed;
	height: calc(95% - 70px);
	transition: 0.4s all;
	max-width: 1500px;
}

@media (min-width: 1600px) {
	.m-modal.catalog-dropdown {
		top: 52%;
	}
}

.m-modal.catalog-dropdown.active ~ .overlay {
	top: 83px !important;
}

.m-modal.catalog-mobile {
	width: 100%;
	padding: 20px 15px !important;
	/* top: 70px !important; */
	top: 0;
	left: 0;
	box-shadow: none;
	transform: none;
	border-radius: 0;
	position: fixed;
	/* height: calc(100% - 30px); */
	height: 100vh;
}

.m-modal.catalog-mobile.active + .overlay {
	display: none;
}

.m-modal.search-mobile {
	padding: 10px !important;
	background: none;
	top: 15% !important;
	box-shadow: none !important;
}

.overlay {
	/* Скрываем подложку  */
	opacity: 0;
	visibility: hidden;

	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 20;
	transition: 0.3s all;
}

/* SLIDER MODAL MOBILE */
.slider-modal-mobile {
	width: 179px;
	height: 97px;
	background-color: white;
	z-index: 1;
	border-radius: 8px;
	box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.08);
}

/* PASSWORD */

.m-password {
	position: relative;
}
.m-password input {
	background: #f5f5f6;
	font-size: 14px;
	font-weight: 500;
	font-feature-settings: "pnum" on, "lnum" on;
	width: 100%;
	padding: 16px 18px;
	border-radius: 8px;
}
.m-password-control {
	position: absolute;
	top: 20px;
	right: 6px;
	display: inline-block;
	width: 20px;
	height: 20px;
	background: url("./images/icons/password-glass.svg") 0 0 no-repeat;
}
.m-password input.error {
	background: #fff0f0;
	color: #ff0000 !important;
	outline: none !important;
}
.m-password-control.view {
	background: url("./images/icons/password_glass_hide.svg") 0 0 no-repeat;
}

/* TABLE */

.table {
	border-collapse: separate;
	border-spacing: 0;
	width: 100%;
}

.table td {
	border: solid 1px #e0e0e5;
	border-style: none solid solid none;
	padding: 10px;
}

.table tr:first-child td:first-child {
	border-top-left-radius: 10px;
}
.table tr:first-child td:last-child {
	border-top-right-radius: 10px;
}

.table tr:last-child td:first-child {
	border-bottom-left-radius: 10px;
}
.table tr:last-child td:last-child {
	border-bottom-right-radius: 10px;
}

.table tr:first-child td {
	border-top-style: solid;
}
.table tr td:first-child {
	border-left-style: solid;
}

/* TABS */

/* Стили класса tab */
.m-tab {
	overflow: hidden;
	border-bottom: 1px solid #e0e0e5;
}

/* Стиль кнопок */
.m-tab button {
	background-color: inherit;
	float: left;
	border: none;
	outline: none;
	cursor: pointer;
	padding: 5px 10px;
	transition: 0.3s;
	font-weight: 600;
	font-size: 16px;
	line-height: 20px;
	font-feature-settings: "pnum" on, "lnum" on;
}

/* При наведении на кнопку, немного меняем background */
.m-tab button:hover {
	color: var(--tertiary);
}

/* Активная кнопка */
.m-tab button.active {
	color: var(--tertiary);
	border-bottom: 1px solid var(--tertiary);
}

@media (max-width: 640px) {
	.m-tab button {
		padding: 5px 8px;
	}
	.m-tab button:first-child {
		padding-left: 0;
	}
	.m-tab button:last-child {
		padding-right: 0;
	}
}

/* Стиль контента */
.m-tab_content {
	display: none;
	padding: 6px 12px;
	margin-top: 15px;
}
/* Анимация с эффектом появления */
.m-tab_content {
	animation: fadeEffect 1s;
}

@keyframes fadeEffect {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

/* RATING */

.half-stars .rating-group {
	display: inline-flex;
}
.half-stars input {
	position: absolute;
	left: -9999px;
}
.half-stars label {
	margin: 0;
	cursor: pointer;
}
.half-stars label svg {
	margin: 2px;
	height: 22px;
	width: 22px;
	fill: #ffe318;
	transition: fill 0.3s;
}
.half-stars .hsr {
	padding-right: 0;
	margin-right: -22px;
	width: 22px;
	overflow: hidden;
	z-index: 2;
}
.half-stars input:checked ~ label svg {
	fill: #e0e0e5;
}
.half-stars .rating-group:hover label svg {
	fill: #ffe318;
}
.half-stars .rating-group input:hover ~ label svg {
	fill: #e0e0e5;
}

.like {
	display: flex;
	align-items: center;
	cursor: pointer;
}
.like .icon {
	mask: url("./images/icons/like.svg") no-repeat center;
	-webkit-mask: url("./images/icons/like.svg") no-repeat center;
	width: 17px;
	height: 18px;
	background-color: var(--subtitle);
}
.like.active .icon {
	background-color: var(--primary);
}
.like.active .text {
	color: var(--primary);
}
.like .text {
	font-size: 14px;
	font-weight: 500;
	color: var(--subtitle);
	margin-left: 5px;
}

.dislike {
	display: flex;
	align-items: center;
	cursor: pointer;
}
.dislike .icon {
	mask: url("./images/icons/dislike.svg") no-repeat center;
	-webkit-mask: url("./images/icons/dislike.svg") no-repeat center;
	width: 17px;
	height: 18px;
	background-color: var(--subtitle);
}
.dislike.active .icon {
	background-color: var(--primary);
}
.dislike.active .text {
	color: var(--primary);
}
.dislike .text {
	font-size: 14px;
	font-weight: 500;
	color: var(--subtitle);
	margin-left: 5px;
}

.sort_item {
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
}
.sort_item.active {
	color: var(--primary);
}

.color-item {
	border-radius: 8px;
	width: 52px;
	height: 52px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #e0e0e5;
	padding: 5px;
}
.color-item img {
	object-fit: contain;
	max-height: 40px;
}
.color-item.middle img {
	max-height: 50px;
}
.color-item.middle {
	width: 60px;
	height: 60px;
}

.color-item.active {
	border: 2px solid var(--primary);
}

.favorite_btn {
	font-weight: 700;
	font-size: 16px;
}
@media (max-width: 1700px) {
	.favorite_btn {
		font-weight: 600;
		font-size: 14px;
	}
}
