/* === СТАБИЛЬНЫЙ ВЬЮПОРТ НА МОБИЛЬНЫХ === */

.navbar-brand {
	position: relative;
	z-index: 1050;
}

@supports (height: 100dvh) {
	html {
		height: 100dvh;
	}
	body {
		height: 100dvh;
		overflow-y: auto;
		margin: 0;
		padding-top: calc(70px + env(safe-area-inset-top, 0));
	}
}

body {
	min-height: 100vh;
	padding-top: 70px;
	margin: 0;
	overflow-y: auto;
}

/* === Sticky Header === */
.header_menu {
	position: fixed;
	top: env(safe-area-inset-top, 0);
	left: 0;
	width: 100%;
	z-index: 1500;
	height: 70px;
	transition: none;
}

/* Навбар — прозрачный по умолчанию */
.navbar {
	background: transparent;
	border: none;
	padding: 0;
	min-height: 70px;
	transition: none;
}

/* Только на десктопе — изменение при прокрутке */
@media (min-width: 992px) {
	.navbar.navbar-scrolled {
		background: #24A59E !important;
		padding: 5px 0;
		transition: background 0.3s ease, padding 0.3s ease;
	}
	.navbar-scrolled .logo-img {
		height: 40px;
	}
	.navbar-light .navbar-nav .nav-link {
		color: #FFF;
		transition: color 0.3s ease;
	}
	.navbar-light .navbar-nav .nav-link:hover {
		color: #1a1a1a;
	}
	.navbar-scrolled .navbar-nav .nav-link {
		color: #fff !important;
	}
	.navbar-scrolled .navbar-nav .nav-link:hover {
		color: #e0e0e0 !important;
	}
	
}

/* === Логотип === */
.navbar-brand {
	padding: 0;
	height: auto;
}
.navbar-brand .logo-img {
	height: 50px;
	width: auto;
	margin: 10px 0;
	max-height: 50px;
	transition: height 0.3s ease;
}

/* === Мобильная плашка (внутри nav) === */
/*@media (max-width: 991.98px) {
.navbar {
        position: relative;
        padding: 0;
    }
	 .navbar::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 56px;
        background: rgba(67, 67, 67, 0.37);
        border-radius: 32px;
       /* border: 0.2px solid;*/
     /*   border-image-source: linear-gradient(92.13deg, rgba(255, 255, 255, 0.62) 1.77%, rgba(153, 153, 153, 0) 97.84%);
        backdrop-filter: blur(22px);
        -webkit-backdrop-filter: blur(22px);
        z-index: -1;
    }
    .navbar .container {
        position: relative;
        z-index: 1;
    }
	.navbarbg
	{
		background: rgba(67, 67, 67, 0.37);
		border-radius: 32px;
		border: 0.2px solid;
		border-image-source: linear-gradient(92.13deg, rgba(255, 255, 255, 0.62) 1.77%, rgba(153, 153, 153, 0) 97.84%);
	/*	border-image-slice: 1;*/
		/*backdrop-filter: blur(22px);
		-webkit-backdrop-filter: blur(22px);
		width: 100%;
		
	
	}
	
	.navbar-collapse {
		background: #24A59E;
		
		overflow: visible;
		margin-top: 12px;
	}
	.navbar-toggler {
		border: none;
	}
	.navbar-toggler:focus, .navbar-toggler:active {
		outline: none;
		box-shadow: none;
	}
	.navbar-toggler-icon {
		background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
	}
}*/

/* === Стили для пунктов меню в мобильном виде === */
/*@media (max-width: 991.98px) {
	.navbar-nav .nav-link {
		color: #fff !important;
		font-size: 16px;
		padding: 14px 15px;
	}
	.navbar-nav .nav-link:hover {
		background: rgba(255, 255, 255, 0.1);
	}
}*/

/* === Wishlist кнопка === */
.btn-wishlist img {
	width: 24px;
	height: 24px;
	transition: transform 0.3s ease;
}
.btn-wishlist img:hover {
	transform: scale(1.1);
}

/* Убираем лишние внутренние отступы */
.header_menu .container-fluid {
	padding-right: 0;
	padding-left: 0;
}

/* Современные navbar-классы */
.navbar-nav {
	padding-top: 10px;
}
/*.navbar-nav .nav-item {
	float: none;
}*/
.header_menu .nav-link:first-child::after {
	background:none;
}





/* === Мобильное меню — исправлено === */
/*@media (max-width: 991.98px) {
	.navbar-collapse {
		position: fixed !important;
		top: calc(70px + env(safe-area-inset-top, 0)) !important;
		left: 5%;
		right: 5%;
		width: auto !important;
		transform: none !important;
		z-index: 1500;
		background: #24A59E;
		border-radius: 32px;
		overflow: hidden;
		box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
		backdrop-filter: blur(10px);
		-webkit-backdrop-filter: blur(10px);
		max-height: calc(100vh - 100px - env(safe-area-inset-top, 0));
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}

	.navbar-nav {
		flex-direction: column;
		padding: 10px 0;
	}

	.navbar-nav .nav-link {
		color: #fff !important;
		font-size: 16px;
		padding: 14px 20px;
		border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	}

	.navbar-nav .nav-link:last-child {
		border-bottom: none;
	}

	/* Убираем возможные остаточные стили */
	/*.navbar-collapse.collapse {
		display: none;
	}

	.navbar-collapse.show,
	.navbar-collapse.collapsing {
		display: block;
	}
}*/

/* === МОБИЛЬНОЕ МЕНЮ (Bootstrap 5 + iOS-safe) === */
@media (max-width: 991.98px) {
	
	
	
	
	
	
	
	
	
	/* Убираем любые лишние трансформы */
	.navbar-toggler {
		border: none;
	}

	.navbar-toggler:focus,
	.navbar-toggler:active,
	.navbar-toggler-icon:focus {
		outline: none;
		box-shadow: none;
	}

	/* Иконка гамбургера */
	.navbar-toggler-icon {
		background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
	}

	/* Фиксированная панель наверху */
	.header_menu {
		top: env(safe-area-inset-top, 0);
		padding-top: env(safe-area-inset-top, 0);
	}

	/* Основное меню — фиксированное, поверх контента */
	.navbar-collapse {
		position: fixed !important;
		top: calc(80px + env(safe-area-inset-top, 0));
		left: 5%;
		right: 5%;
		bottom: 5%;
		width: auto !important;
		max-height: calc(100vh - 100px - env(safe-area-inset-top, 0));
		z-index: 1500;

		/* Стили */
		background: #24A59E;
		border-radius: 32px;
		overflow: hidden;
		box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
		backdrop-filter: blur(10px);
		-webkit-backdrop-filter: blur(10px);

		/* Прокрутка */
		overflow-y: auto;
		-webkit-overflow-scrolling: touch; /* плавность на iOS */
	}

	/* Навигационные ссылки */
	.navbar-nav {
		flex-direction: column;
		padding: 0;
	}

	.navbar-nav .nav-link {
		color: #fff !important;
		font-size: 16px;
		font-weight: 500;
		padding: 16px 24px;
		border-bottom: 1px solid rgba(255, 255, 255, 0.1);
		transition: background 0.2s ease;
	}

	.navbar-nav .nav-link:hover,
	.navbar-nav .nav-link.active {
		background: rgba(255, 255, 255, 0.1);
	}

	.navbar-nav .nav-link:last-child {
		border-bottom: none;
	}

	/* Убедимся, что меню показывается при открытии */
	.navbar-collapse.collapsing {
		transition: none;
	}

	.navbar-collapse.show {
		display: block;
	}

	/* Wishlist в мобильном хедере */
	.d-lg-none .btn-wishlist img {
		width: 24px;
		height: 24px;
	}
}

@media (max-width: 991.98px) {
	/* УБИРАЕМ backdrop-filter, border-image с .header_menu */
	.header_menu {
		position: fixed;
		top: env(safe-area-inset-top, 0);
		left: 0;
		width: 100%;
		z-index: 1500;
		padding-top: env(safe-area-inset-top, 0);
	}

	/* Вместо этого — создаём отдельный слой фона внутри навбара */
	.navbar::before {
		content: '';
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		background: rgba(67, 67, 67, 0.37);
		border-radius: 32px;
		border: 0.2px solid transparent;
	/*	box-shadow: inset 0 0 0 1px transparent;*/
		backdrop-filter: blur(22px);
		-webkit-backdrop-filter: blur(22px);
		z-index: -1;
		pointer-events: none;
	}

	/* Градиентная обводка — через отдельный элемент или ::after */
	.navbar::after {
		content: '';
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		pointer-events: none;
		border-radius: 32px;
		border: 0.2px solid;
		/*border-image: linear-gradient(92.13deg, rgba(255, 255, 255, 0.62) 1.77%, rgba(153, 153, 153, 0) 97.84%) 1;*/
		z-index: -1;
	}
	#navbarNav{
		height:340px;
	}
}