@charset "utf-8";

/*-----------------------------------------------------------------------------------------------> ▼ .smart_menu <--*/

.wrap_smart_menu {
	display: none;
	position: fixed;
	top: 0;
	width: 100%;
	height: 100vh;
	background: rgba(255, 255, 255, 0.95);
	z-index: 900;

	-ms-overflow-style: none;
	scrollbar-width: none;
}

.wrap_smart_menu::-webkit-scrollbar {
	display: none;
}

.smart_menu {
	width: 400px;
	display: flex;
	flex-wrap: wrap;
	height: fit-content;
	border-top: 0px solid #f0f0f0;
	opacity: 0.7;
}

.smart_menu_category {
	display: none;
	width: 100%;
	text-align: center;
}

.smart_menu a {
	position: relative;
	width: 100%;
	border-bottom: 0px solid #f0f0f0;
	background-repeat: no-repeat;
	background-size: auto 50%;
	font-family: Notosans-M;
}

.smart_menu a::before {
	content: '';
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
}

@media (501px <= width) {
	.smart_menu a {
		line-height: 80px;
		padding-left: 180px;
		background-position: 100px 25px;
		font-size: 19px;
	}
}

@media (width <= 500px) {
	.smart_menu a {
		line-height: 60px;
		padding-left: 150px;
		background-position: 90px 15px;
		font-size: 18px;
	}
}

@media (width <= 400px) {
	.smart_menu {
		width: 100%;
	}
	
	.smart_menu a {
		line-height: 60px;
		padding-left: 80px;
		background-position: 30px 15px;
		font-size: 18px;
	}
}

@media (hover: hover) and (pointer: fine) {
	.smart_menu a,
	.smart_menu a::before {
		transition: var(--transition);
	}

	.smart_menu a:hover {
		color: var(--theme);
	}
	
	.smart_menu a:hover::before {
		background: #f0f0f0;
	}
}

/*-----------------------------------------------------------------------------------------------> ▼ .category_menu <--*/

.category_menu div:not(.active), .category_menu form:not(.active) {
	display: none;
}

.category_menu div.active, .category_menu form.active {
	display: flex;
	flex-wrap: wrap;
}

.category_menu a {
	display: flex;
	position: relative;
	padding: 15px 15px 15px 30px;
	background: #fff;

	line-height: 1em;
	text-align: left;

	text-overflow: ellipsis;
	white-space: nowrap;
	overflow: hidden;
}

.category_menu a::before {
	content: '';
	position: absolute;
	top: 15px;
	left: 15px;
	width: 5px;
	height: 1em;
	background: var(--theme);
}

/*
.category_menu button {
	margin: 0 15px 15px 0;
}
*/

@media (1601px <= width) {
	.category_menu a {
		width: calc((100% - 75px) / 6);
	}
	
	body.close_side_menu .category_menu a {
		width: calc((100% - 90px) / 7);
	}
	
	body:not(.close_side_menu) .category_menu a:not(:nth-child(6n)),
	body.close_side_menu .category_menu a:not(:nth-child(7n)) {
		margin-right: 15px;
	}
}

@media (1367px <= width <= 1600px) {
	.category_menu a {
		width: calc((100% - 60px) / 5);
	}
	
	body.close_side_menu .category_menu a {
		width: calc((100% - 75px) / 6);
	}
	
	body:not(.close_side_menu) .category_menu a:not(:nth-child(5n)),
	body.close_side_menu .category_menu a:not(:nth-child(6n)) {
		margin-right: 15px;
	}	
}

@media (1250px <= width <= 1366px) {
	.category_menu a {
		width: calc((100% - 45px) / 4);
	}
	
	body.close_side_menu .category_menu a {
		width: calc((100% - 60px) / 5);
	}
	
	body:not(.close_side_menu) .category_menu a:not(:nth-child(4n)),
	body.close_side_menu .category_menu a:not(:nth-child(5n)) {
		margin-right: 15px;
	}	
}

@media (1250px <= width) {
	.category_menu a {
		margin-top: 15px;
		border: var(--border);
		border-radius: var(--border_radius);
	}
}

@media (width <= 1249px) {
	.category_menu {
		position: relative;
		margin: 0 -15px;
		background: #fff;
	}

	.category_menu::after {
		content: '';
		position: absolute;
		bottom: 0;
		left: 0;
		width: 100%;
		height: 1px;
		background: #ddd;
	}

	.category_menu a {
		border-bottom: 1px solid #ddd;
		z-index: 1;
	}
}

@media (769px <= width <= 1249px) {
	.category_menu a {
		width: calc(100% / 3);
	}

	.category_menu a:not(:nth-child(3n)) {
		border-right: 1px solid #ddd;
	}
}

@media (width <= 768px) {
	.category_menu a {
		width: calc(100% / 2);		
	}

	.category_menu a:nth-child(odd) {
		border-right: 1px solid #ddd;
	}
}

@media (hover: hover) and (pointer: fine) and (1280px <= width) {
	.category_menu a:not(.disabled) {
		transition: var(--transition);
	}

	.category_menu a:not(.disabled):hover {
		border: 1px solid var(--theme);
	}
}

/*-----------------------------------------------------------------------------------------------> ▼ .flat_menu <--*/

.flat_menu {
	display: flex;
	flex-wrap: wrap;
}

.flat_menu div:not(.active), .flat_menu form:not(.active) {
	display: none;
}

.flat_menu div.active, .flat_menu form.active {
	display: flex;
	flex-wrap: wrap;
	width: 100%;
}

.flat_menu a {
	display: flex;
	align-items: ;
	position: relative;
	padding: 15px 15px 15px 30px;
	border: 1px solid #ddd;
	border-radius: var(--border_radius);
	background: #fff;
	line-height: 1em;
}

.flat_menu a::before {
	content: '';
	position: absolute;
	top: 15px;
	left: 15px;
	width: 5px;
	height: 1em;
	background: var(--theme);
}

.flat_menu a.disabled {
	border: 1px dashed #ddd;
	color: #aaa;
}

.flat_menu a.disabled::before {
	background: #ccc;
}

@media (1024px <= width) {
	.flat_menu a {
		height: 120px;
		margin-top: 15px;			
	}
}

@media (1601px <= width) {
	.flat_menu a {
		width: calc((100% - 60px) / 5);
	}
	
	body.close_side_menu .flat_menu a {
		width: calc((100% - 75px) / 6);
	}
	
	body:not(.close_side_menu) .flat_menu a:not(:nth-child(5n)),
	body.close_side_menu .flat_menu a:not(:nth-child(6n)) {
		margin-right: 15px;
	}
}

@media (1367px <= width <= 1600px) {
	.flat_menu a {
		width: calc((100% - 45px) / 4);
	}
	
	body.close_side_menu .flat_menu a {
		width: calc((100% - 60px) / 5);
	}
	
	body:not(.close_side_menu) .flat_menu a:not(:nth-child(4n)),
	body.close_side_menu .flat_menu a:not(:nth-child(5n)) {
		margin-right: 15px;
	}	
}

@media (1024px <= width <= 1366px) {
	.flat_menu a {
		width: calc((100% - 30px) / 3);
	}
	
	body.close_side_menu .flat_menu a {
		width: calc((100% - 45px) / 4);
	}
	
	body:not(.close_side_menu) .flat_menu a:not(:nth-child(3n)),
	body.close_side_menu .flat_menu a:not(:nth-child(4n)) {
		margin-right: 15px;
	}	
}

@media (width <= 1023px) {
	.flat_menu {
		margin-top: 10px;
	}
	
	.flat_menu a {
		width: 100%;
		margin-top: 5px;
	}
}

@media (hover: hover) and (pointer: fine) {
	.flat_menu a:not(.disabled) {
		transition: var(--transition);
	}

	.flat_menu a:not(.disabled):hover {
		border: 1px solid var(--theme);
	}
}

/*-----------------------------------------------------------------------------------------------> ▼ .inline_menu <--*/

.inline_menu {
	display: flex;
}

.inline_menu a,
.inline_menu button,
.inline_menu input[type="submit"] {
	min-width: 65px !important;
	width: auto !important;
	line-height: 16.5px;
	padding: 1px 10px 0.5px;
	border: 1px solid #ccc;
	border-radius: var(--border_radius_light);
	background: #fff;
	text-align: center;
	font-size: 12px;
}

.inline_menu button:nth-of-type(n + 2),
.inline_menu input[type="submit"]:nth-of-type(n + 2),
.inline_menu a:nth-of-type(n + 2) {
	margin-left: 5px;
}
