/*
Theme Name: Geopile
Theme URI: http://www.thefoxwp.com
Description: TheFox Child Theme
Version: 1.0
Author: VerStal
Author URI: https://verstal.dp.ua
License: Themeforest Split Licence
License URI: -
Template: TheFox
*/


:root {
	--primary-green: #7FB35F;
	--text-black: #000;
	--top-height: 60px;
}

.vs-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 1000;
	display: none;
}

.vs-overlay.active {
	display: block;
}

/* Кнопка открытия (три полоски) */
.vs-main-nav-trigger {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0;
	float: right;
	width: 50px;
	cursor: pointer;
	margin-top: 5px;
}

.vs-main-nav-trigger span {
	height: unset;
}

#closeBtn {
	display: none;
}

.vs-icon {
	font-size: 24px;
}

/* Контейнер меню справа */
.vs-menu-right {
	position: fixed;
	top: var(--top-height);
	right: 0;
	width: 350px;
	height: calc(100vh - var(--top-height));
	background: #fff;
	border: 1px solid #eee;
	z-index: 1001;
	overflow: hidden auto;

	opacity: 0;
	visibility: hidden;
}

.vs-menu-right #mobile_menu_search #search input[type=text] {
	background: none !important;
}

.vs-menu-right.visible {
	opacity: 1;
	visibility: visible;
}

/* Элементы аккордеона */
.vs-acc-trigger {
	display: block;
	width: 100%;
	padding: 15px 25px;
	background: none;
	border: none;
	font-family: inherit;
	font-size: 18px;
	font-weight: 900;
	cursor: pointer;
	text-transform: uppercase;
	text-decoration: none;
	color: inherit;
}

button.vs-acc-trigger {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.vs-menu-item.active>.vs-acc-trigger {
	color: var(--primary-green);
}

/* ПЛАВНЫЙ АККОРДЕОН */
.vs-submenu {
	max-height: 0;
	/* Схлопнуто */
	overflow: hidden;
	transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	background: #fff;
}

.vs-menu-item.active .vs-submenu {
	max-height: 500px;
	/* Достаточное значение для раскрытия */
}

.vs-submenu-inner {
	display: flex;
	flex-direction: column;
	padding-left: 25px;
	padding-bottom: 10px;
}

.vs-submenu-inner a {
	text-decoration: none;
	color: var(--text-black);
	padding: 8px 0;
	font-size: 17px;
	font-weight: 600;
	text-transform: capitalize !important;
}

/* Стрелочки */
.vs-chevron {
	width: 10px;
	height: 10px;
	border-right: 2px solid #000;
	border-bottom: 2px solid #000;
	transform: rotate(45deg);
	transition: transform 0.3s;
}

.vs-menu-item.active .vs-chevron {
	transform: rotate(-135deg);
	border-color: var(--primary-green);
}

.vs-mobile-menu {
	padding: 5px 0;
}

/*.vs-menu-search {
	position: relative;
	padding: 15px 25px;
	font-size: 20px;
}

.vs-menu-search input {
	width: 100%;
	height: 50px;
	border: 2px solid #eee;
	border-radius: 3px;
	padding-left: 50px;
	color: #999;
	font-size: inherit;
}

.vs-menu-search button {
	top: 15px;
	left: 25px;
	position: absolute;
	width: 50px;
	height: 50px;
	background-color: transparent;
	border: none;
	font-size: inherit;
}*/

@media (min-width: 1036px) {
	.vs-menu-right {
		display: none;
	}
}

@media only screen and (max-width: 1035px) {

	body:has(#wpadminbar) {
		--top-height: 92px;
	}

	#header_container {
		pointer-events: none;
		max-height: 50px !important;
		min-height: 50px !important;
	}

	#header_container header {
		display: none;
	}

	.menu_slide {
		z-index: 1000 !important;
	}
}


@media only screen and (max-width: 767px) {
	body:has(#wpadminbar) {
		--top-height: 106px;
	}

	#logo_img {
		padding-top: 2px;
	}
}
