/* Перенесено 1:1 из bot.yasash.lc (layouts/default.vue + app.vue style). Debug-оверлей исключён. */
/* === shell + theme (default.vue) === */
:root {
	/* КНОПКИ — PRIMARY */
	--site-primary-bg: #0079FF;                 /* btn_primary */
	--site-primary-hover-bg: #0069E0;           /* затемнение btn_primary */
	--site-primary-active-bg: #005ACB;          /* активное состояние */
	--site-primary-border-color: #0079FF;
	--site-primary-hover-border-color: #0069E0;
	--site-primary-active-border-color: #005ACB;

	--site-primary-text-color: #ffffff;         /* btn_text_primary */

	/* КНОПКИ — SECONDARY */
	--site-secondary-bg: #ffffff;               /* btn_secondary */
	--site-secondary-hover-bg: #e6e6e6;
	--site-secondary-active-bg: #cccccc;
	--site-secondary-border-color: #ffffff;
	--site-secondary-hover-border-color: #e6e6e6;
	--site-secondary-active-border-color: #cccccc;

	--site-secondary-text-color: #364a63;        /* btn_text_secondary */

	/* ТЕКСТ */
	--site-font-color: #364a63;                  /* text_primary */
	--site-secondary-font-color: #707579;        /* text_secondary */

	/* ФОНЫ */
	--site-bg: #f5f6fa;                          /* bg_primary */
	--site-bg-secondary: #ffffff;                /* bg_secondary */
	--site-card-bg: #ffffff;                     /* bg_card */
}

body {
	color: var(--site-font-color) !important;
	background-color: var(--site-bg) !important;
}

.btn-primary {
	--bs-btn-color: var(--site-primary-text-color) !important;
	--bs-btn-bg: var(--site-primary-bg);
	--bs-btn-border-color: var(--site-primary-border-color);
	--bs-btn-hover-color: #fff;
	--bs-btn-hover-bg: var(--site-primary-hover-bg);
	--bs-btn-hover-border-color: var(--site-primary-hover-border-color);
	--bs-btn-focus-shadow-rgb: 0, 121, 255;
	--bs-btn-active-color: #fff;
	--bs-btn-active-bg: var(--site-primary-active-bg);
	--bs-btn-active-border-color: var(--site-primary-active-border-color);
	--bs-btn-disabled-color: #fff;
	--bs-btn-disabled-bg: var(--site-primary-bg);
	--bs-btn-disabled-border-color: var(--site-primary-border-color);
}

.btn-secondary {
	--bs-btn-color: #fff;
	--bs-btn-bg: var(--site-secondary-bg);
	--bs-btn-border-color: var(--site-secondary-border-color);
	--bs-btn-hover-color: #fff;
	--bs-btn-hover-bg: var(--site-secondary-hover-bg);
	--bs-btn-hover-border-color: var(--site-secondary-hover-border-color);
	--bs-btn-focus-shadow-rgb: 84, 101, 122;
	--bs-btn-active-color: #fff;
	--bs-btn-active-bg: var(--site-secondary-active-bg);
	--bs-btn-active-border-color: var(--site-secondary-active-border-color);
	--bs-btn-disabled-color: #fff;
	--bs-btn-disabled-bg: var(--site-secondary-bg);
	--bs-btn-disabled-border-color: var(--site-secondary-border-color);
}

.nk-app-root {
	outline: none;
}

.nk-main {
	position: relative;
	overflow: hidden;
}

.nk-wrap {
	//height: 100vh;
}

.mobile-content {
	padding-left: 0;
	padding-right: 0;
}
.nk-content {
	padding: 24px 0;
	height: 100%;
}

.is-mobile .nk-block.nk-section-content {
	overflow: hidden auto;
}

.custom-container {
	width: 100%;
}

body {
	//overflow: hidden;
}

.my-auto {
	margin-top: auto;
	margin-bottom: auto;
}

* {
	user-select: none !important;
}

/* 1. Главный секрет: делаем саму панель прозрачной */
::-webkit-scrollbar {
	width: 10px; /* Увеличим ширину, чтобы было место для отступов */
	background-color: transparent;
}

/* 2. Трек тоже делаем полностью прозрачным */
::-webkit-scrollbar-track {
	background-color: transparent;
}

/* 3. Ползунок: имитируем "парение" через прозрачный border */
::-webkit-scrollbar-thumb {
	background-color: rgba(0, 0, 0, 0.2); /* Цвет скролла (сделай темнее, если нужно) */
	border-radius: 20px;

	/* Магия здесь: прозрачная рамка создает отступ от края экрана */
	border: 3px solid transparent;
	background-clip: padding-box;
}

/* При наведении делаем его заметнее */
::-webkit-scrollbar-thumb:hover {
	background-color: rgba(0, 0, 0, 0.4);
}

/* 4. Для современных браузеров (Chrome 121+) */
@supports (scrollbar-width: thin) {
	html {
		scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
		scrollbar-width: thin;
	}
}

/* Убираем прыжки контента */
html {
	overflow-y: auto; /* Важно: не overlay, а auto */
	scrollbar-gutter: stable both-edges; /* Резервирует невидимое место, чтобы скролл просто "проявился" сверху */
}

.nk-mobile .nk-wrap {
	min-height: 100dvh !important;
	overflow: hidden;
	z-index: 1;
	position: relative;
}

.nk-mobile .nk-header + .nk-content.nk-full-content {
	display: flex;
	flex-direction: column;
}

.nk-mobile .nk-header + .nk-content:not(.has-navbar-expanded) {
	height: 100svh !important;
	width: 100%;
	padding-top: calc(
		60px +
		var(--tg-safe-area-inset-top, 0px) +
		var(--tg-content-safe-area-inset-top, 0px)
	) !important;
	padding-bottom: calc(90px + var(--tg-safe-area-inset-bottom, 0px)) !important;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.nk-mobile .nk-content.nk-content-fluid {
	overflow: hidden auto;
	//border: 1px dashed green !important;
}

.nk-mobile .nk-content.nk-content-fluid.has-navbar-expanded {
	/* Контент занимает ВЕСЬ экран */
	height: 100svh !important;
	width: 100%;

	/* Верх: должен быть равен высоте лотка хедера */
	padding-top: calc(
		60px +
		var(--tg-safe-area-inset-top, 0px) +
		var(--tg-content-safe-area-inset-top, 0px)
	) !important;

	/* Низ: должен быть равен высоте лотка навбара */
	padding-bottom: calc(155px + var(--tg-safe-area-inset-bottom, 0px)) !important;

	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

/* Отступ контента под раскрытый навбар — content-driven (как высота навбара в
   :has(#navbar-controls > *)). Когда страница телепортирует кнопки в навбар, он
   раскрыт на 155px, и низ контента должен освободить эту высоту. Заменяет per-page
   класс has-navbar-expanded (в боте страницы одностраничные; в newbot навбар в
   layout + teleport, поэтому сигнал — наличие телепортированного контента).
   ID в :has() поднимает специфичность выше правила :not(.has-navbar-expanded). */
.nk-mobile .nk-wrap:has(#navbar-controls > *) .nk-content.nk-content-fluid:not(.no-header):not(.nk-full-content) {
	padding-bottom: calc(155px + var(--tg-safe-area-inset-bottom, 0px)) !important;
}

.nk-mobile .nk-content.nk-content-fluid.no-header {
	height: 100dvh;
	padding-bottom: calc(
		85px
		+ (var(--tg-safe-area-inset-bottom, 0px) + var(--tg-content-safe-area-inset-bottom, 0px))
	) !important;
}

/* 1. ГЛАВНЫЙ КОНТЕЙНЕР — НЕВИДИМЫЙ ЛОТОК С ГРАДИЕНТОМ */
.nk-navbar {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	z-index: 1050;
	pointer-events: none;

	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}

.nk-mobile .nk-navbar:not(:has(#navbar-controls > *)) {
	height: calc(100px + var(--tg-safe-area-inset-bottom, 0px));
	background: linear-gradient(to top,
	var(--site-bg) 0%,
	var(--site-bg) 40%,
	color-mix(in srgb, var(--site-bg), transparent 10%) 50%,
	color-mix(in srgb, var(--site-bg), transparent 30%) 65%,
	color-mix(in srgb, var(--site-bg), transparent 70%) 85%,
	transparent 100%
	);
}

.nk-navbar:has(#navbar-controls > *) {
	height: calc(155px + var(--tg-safe-area-inset-bottom, 0px));
	background: linear-gradient(to top,
	var(--site-bg) 0%,
	var(--site-bg) 20%, /* Увеличили плотную зону до 60%, чтобы новые кнопки были на чистом фоне */
	color-mix(in srgb, var(--site-bg), transparent 15%) 35%,
	color-mix(in srgb, var(--site-bg), transparent 40%) 60%,
	color-mix(in srgb, var(--site-bg), transparent 60%) 80%,
	transparent 90%
	);

	/* И не забудь про кликабельность, если там появятся кнопки */
	pointer-events: auto;
}

.nk-navbar-menu, .nk-navbar-controls {
	pointer-events: auto;
	margin: 0 10px; /* Боковые отступы */
	background-color: rgba(255, 255, 255, 0.75) !important;
	backdrop-filter: blur(15px) saturate(180%) !important;
	-webkit-backdrop-filter: blur(15px) saturate(180%) !important;
	border: 1px solid rgba(255, 255, 255, 0.4) !important;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
	transition: all 0.3s ease; /* Для плавной склейки */
	border-radius: 30px; /* По умолчанию круглые */
}

.nk-navbar-controls {
	height: 65px;
	margin-bottom: 0px; /* Прижимаем к меню */
	z-index: 3;
}

/* Пустой контейнер контролов layout'а (нет телепортированного контента) не
   показываем — заменяет прежний v-show. Условие :has(#navbar-controls) не даёт
   правилу задеть собственные контролы кабинета (у них нет #navbar-controls). */
.nk-navbar-controls:has(#navbar-controls):not(:has(#navbar-controls > *)) {
	display: none;
}

/* --- МАГИЯ СКЛЕЙКИ (навбар раскрыт = есть контент в #navbar-controls) --- */

.nk-navbar:has(#navbar-controls > *) .nk-navbar-controls {
	/* Убираем нижние углы и тень снизу */
	border-bottom-left-radius: 0 !important;
	border-bottom-right-radius: 0 !important;
	border-bottom: none !important; /* Убираем границу в месте стыка */
	box-shadow: 0 -4px 32px rgba(0, 0, 0, 0.05) !important; /* Оставляем тень только сверху */
	margin-bottom: 0 !important;
}

.nk-navbar:has(#navbar-controls > *) .nk-navbar-menu {
	/* Убираем верхние углы и верхнюю границу */
	border-top-left-radius: 0 !important;
	border-top-right-radius: 0 !important;
	border-top: none !important; /* Чтобы не было двойной линии в центре */
	/* Тень оставляем только снизу, чтобы не грязнить стык */
	box-shadow: 0 15px 32px rgba(0, 0, 0, 0.1) !important;
}

/* Добавляем тот самый разделитель на стыке, чтобы не было "слепого" пятна */
.nk-navbar:has(#navbar-controls > *) .nk-navbar-controls::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 10px;
	right: 10px;
	height: 1px;
	background-color: rgba(0, 0, 0, 0.06);
}

/* Темная тема для градиента */
[data-theme="dark"] .nk-navbar {
	background: linear-gradient(
		to bottom,
		rgba(30, 30, 30, 0) 0%,
		rgba(30, 30, 30, 0.9) 35%,
		rgba(30, 30, 30, 1) 100%
	);
}

/* 2. ЛЕТАЮЩИЕ ЛЕДЕНЦЫ (Lucky Glass) */
.nk-navbar-menu,
.nk-navbar-controls {
	pointer-events: auto; /* Возвращаем клики */
	margin: 0 17px 10px 17px; /* Те самые "отступы от краев" */

	/* Стеклянный эффект */
	background-color: rgba(255, 255, 255, 0.5) !important;
	backdrop-filter: blur(15px) saturate(180%) !important;
	-webkit-backdrop-filter: blur(15px) saturate(180%) !important;

	border-radius: 30px;
	border: 1px solid rgba(255, 255, 255, 0.4) !important;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;

	flex-shrink: 0;
	position: relative !important;
}

/* Темная тема для стекол */
[data-theme="dark"] .nk-navbar-menu,
[data-theme="dark"] .nk-navbar-controls {
	background-color: rgba(45, 45, 45, 0.75) !important;
	border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Специфические высоты */
.nk-navbar-menu {
	height: 65px;
	padding: 0 10px;
	display: flex;
	align-items: center;
	/* У меню отступ снизу больше для безопасной зоны */
	margin-bottom: calc(15px + var(--tg-safe-area-inset-bottom, 0px));
	z-index: 2;
}

.nk-navbar-controls {
	height: 65px;
	padding: 0 20px;
	display: flex;
	align-items: center;
	margin-bottom: 8px; /* Зазор между корзиной и меню */
}

/* 3. ВНУТРЕННИЕ СПИСКИ (Без изменений) */
.nk-navbar .nk-navbar-menu ul,
.nk-navbar .nk-navbar-controls ul {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Телепорт-обёртка #navbar-controls должна распирать ul на всю ширину бара
   (в оригинале ul лежит прямо в .nk-navbar-controls без обёртки). */
.nk-navbar-controls > #navbar-controls {
	width: 100%;
	display: flex;
	align-items: center;
}

@media (max-width: 767px) {
	.navbar-menu {
		max-width: 100%;
	}
}

.nk-navbar .nk-navbar-menu ul {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	-webkit-box-pack: justify;
	-ms-flex-pack: justify;
	justify-content: space-between;
	line-height: 1.25;
}

.nk-navbar .nk-navbar-menu ul li {
	position: relative;
	color: rgba(var(--light-text), 1);
	text-align: center;
	width: 95px;
}

.nk-navbar .nk-navbar-menu ul li:not(.inactive) a.router-link-active {
	color: var(--site-primary-bg);
}

.nk-navbar .nk-navbar-menu ul li a .icon {
	width: 20px;
	font-size: 26px;
	margin-left: auto;
	margin-right: auto;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
}

.nk-navbar .nk-navbar-menu ul li a .icon .active {
	display: none;
}

.nk-navbar .nk-navbar-menu ul li a .icon .unactive {
	display: block;
}

.nk-navbar .nk-navbar-menu ul li a span {
	font-size: 14px;
	font-weight: 500;
}

.nk-navbar .nk-navbar-menu ul li.active::after {
	content: "";
	position: absolute;
	top: -17px;
	left: 10px;
	width: 30px;
	height: 4px;
	background: rgba(var(--theme-color), 1);
	-webkit-transform: translate(-50%);
	transform: translate(-50%);
	border-radius: 10px;
}

.nk-navbar .nk-navbar-menu ul li.active .icon {
	color: var(--tg-theme-text-color);
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
}

.nk-navbar .nk-navbar-menu ul li.active .icon .active {
	display: block;
}

.nk-navbar .nk-navbar-menu ul li.active .icon .unactive {
	display: none;
}

.nk-navbar .nk-navbar-menu ul li.active span {
	color: var(--tg-theme-text-color);
	font-weight: 500;
}

/* В темной теме разделитель должен быть светлым */
[data-theme="dark"] .nk-navbar .nk-navbar-controls::after {
	background-color: rgba(255, 255, 255, 0.1);
}

.nk-navbar .nk-navbar-controls ul {
	line-height: 1.2;
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
}

.nk-navbar-menu ul {
	height: 45px;
}

.nk-navbar .nk-navbar-menu ul li a:not(.btn) {
	color: var(--tg-theme-hint-color);
}

.social {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	margin: -0.5rem;
}

.social li {
	display: inline-flex;
	padding: 0.5rem;
}

.social li .icon {
	font-size: 1.25rem;
}

.social li a {
	display: inline-flex;
	color: #8094ae;
}

.social li a:hover {
	color: #6576ff;
}

.horizontal-product-list {
	gap: 10px !important;
}

h6, .h6, h5, .h5, h4, .h4, h3, .h3, h2, .h2, h1, .h1 {
	color: var(--site-font-color);
}

.text-muted {
	color: var(--site-secondary-font-color) !important;
}

a {
	color: var(--site-font-color);
}

.product-box .product-box-detail .price {
	color: var(--site-font-color);
}

.product-box .product-box-detail h4 {
	color: var(--site-font-color);
}

.nk-navbar .nk-navbar-menu ul li a:not(.btn) {
	color: var(--site-secondary-text-color);
}

.card {
	color: var(--site-font-color);
	background-color: var(--site-card-bg);
}

.text-soft {
	color: var(--site-secondary-font-color) !important;
}

.text-base {
	color: var(--site-font-color) !important;
}

.btn, .actions ul li a, .dual-listbox .dual-listbox__button {
	--bs-btn-color: var(--site-font-color);
}

.product-cart-box .plus-minus-button.add {
	background-color: var(--site-primary-bg) !important;
	color: var(--site-primary-text-color) !important;
}

.product-cart-box .plus-minus-button.sub {
	background-color: var(--site-secondary-bg) !important;
	color: var(--site-secondary-text-color) !important;
}

.cart-product-box {
	background: var(--site-card-bg);
	color: var(--site-font-color);
}

.cart-product-box .horizontal-product-details .plus-minus .plus-minus-button.add {
	background-color: var(--site-primary-bg) !important;
	color: var(--site-primary-text-color) !important;
}

.cart-product-box .horizontal-product-details .plus-minus .plus-minus-button.sub {
	background-color: var(--site-secondary-bg) !important;
	color: var(--site-secondary-text-color) !important;
}

.debug-values {
	position: fixed;
	top: 10px;
	right: 10px;
	background: rgba(0,0,0,0.8);
	color: white;
	padding: 8px;
	border-radius: 4px;
	font-size: 12px;
	z-index: 9999;
}





.el-drawer__body .modal-footer {
	height: 90px;
	padding: 0.75rem 1.5rem !important;
}
.el-dialog__body .modal-footer {
	border-bottom-left-radius: 30px;
	border-bottom-right-radius: 30px;
}

.modal-footer.nk-modal-footer {
	align-items: flex-start;
	justify-content: center;
	background-color: #e5e9f2;
}

.nk-mobile .el-drawer__body {
	min-height: 100dvh !important;
	overflow: hidden;
	z-index: 1;
	position: relative;
}

.nk-mobile .el-drawer__body .modal-header {
	position: fixed !important;
	top: 0 !important;
	left: 0;
	width: 100%;
	z-index: 1060;
	height: calc(
		60px +
		var(--tg-safe-area-inset-top, 0px) +
		var(--tg-content-safe-area-inset-top, 0px)
	);
	background: var(--site-bg);
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	margin: 0 !important;
	padding-top: 10px;
	padding-bottom: 10px;
	border-radius: 0 !important;
}

.nk-mobile .el-drawer__body .modal-body {
	height: 100svh !important;
	width: 100%;
	padding-top: calc(60px + var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px)) !important;
	padding-bottom: calc(90px + var(--tg-safe-area-inset-bottom, 0px)) !important;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	flex-grow: 1;
	background: var(--site-bg);
}

.nk-mobile .el-drawer__body .modal-footer {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	z-index: 1050;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;

	height: calc(100px + var(--tg-safe-area-inset-bottom, 0px));
	background: var(--site-bg);
	border-radius: 0 !important;
}

.nk-mobile .el-drawer__body .modal-footer .nk-block-tools {
	height: 65px;
	display: flex;
	align-items: center;
	margin-bottom: calc(15px + var(--tg-safe-area-inset-bottom, 0px));
	z-index: 2;
}


.el-drawer.rtl {
	border-top-left-radius: 30px !important;
	border-bottom-left-radius: 30px;
}

.el-drawer__body .modal-body {
	height: calc(
		100svh
		- 150px
		- var(--tg-safe-area-inset-top, 0px)
		- var(--tg-content-safe-area-inset-top, 0px)
		- var(--keyboard-height, 0px)
	);
	padding: 1rem 1.15rem;
	overflow-x: hidden;
	overflow-y: auto;
}

.el-dialog__body .modal-header {
	border-top-left-radius: 30px;
	border-top-right-radius: 30px;
}

.el-drawer__body .modal-footer {
	height: 90px;
	padding: 0.75rem 1.5rem !important;
}
.el-dialog__body .modal-footer {
	border-bottom-left-radius: 30px;
	border-bottom-right-radius: 30px;
}

.modal-footer.nk-modal-footer {
	align-items: flex-start;
	justify-content: center;
	background-color: #e5e9f2;
}

.btn-xl.btn-pill,
.btn-lg.btn-pill {
	border-radius: 100px;
}

.btn-icon.btn-pill {
	border-radius: 14px;
}

.cart-count {
	position: absolute;
	top: -8px;
	left: 48%;
	width: 23px;
	height: 23px;
	background: linear-gradient(135deg, #ff6b6b, #ee5253);
	color: white;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px !important;
	font-weight: bold !important;
	border: 2px solid var(--tg-theme-bg-color);
}

.nk-mobile .nk-header {
	position: fixed !important;
	top: 0 !important;
	left: 0;
	width: 100%;
	z-index: 1060;
	pointer-events: none;
	height: calc(
		60px +
		var(--tg-safe-area-inset-top, 0px) +
		var(--tg-content-safe-area-inset-top, 0px)
	);
	background: var(--site-bg);
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	margin: 0 !important;
	padding-top: 10px;
	padding-bottom: 10px;
}

.nk-header-wrap {
	pointer-events: auto !important;
}

.nk-header-main {
	pointer-events: auto;
	height: 60px;
	display: flex;
	align-items: center;
	padding: 0 15px;
}

.custom-radio-pill .custom-control-label {
	border-radius: 100px !important;
	border-width: 1px !important;
}

.custom-radio-pill .custom-control-label.address-details {
	border-radius: 32px !important;
}

.fs-26px {
	font-size: 26px !important;
}

.nk-mobile .container,
.nk-mobile .container-fluid,
.nk-mobile .container-xxl,
.nk-mobile .container-xl,
.nk-mobile .container-lg,
.nk-mobile .container-md,
.nk-mobile .container-sm {
	--bs-gutter-x: 17px;
	--bs-gutter-y: 0;
	width: 100%;
	padding-right: calc(var(--bs-gutter-x) * 1);
	padding-left: calc(var(--bs-gutter-x) * 1);
	margin-right: auto;
	margin-left: auto;
}

.btn-circle {
	width: 42px !important;
	height: 42px !important;
	min-width: 42px !important;

	/* Сбрасываем внутренние отступы, чтобы центрировать содержимое */
	padding: 0 !important;

	/* Идеальный круг */
	border-radius: 100px !important;

	/* Центрируем иконку внутри кнопки */
	display: inline-flex !important;
	align-items: center;
	justify-content: center;

	/* Убираем лишние эффекты, если нужно */
	flex-shrink: 0;
}

.btn-circle {
	width: 42px !important;
	height: 42px !important;
	min-width: 42px !important;
	padding: 0 !important;
	border-radius: 100px !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	border: none !important;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 0 1px rgba(0, 0, 0, 0.1) !important;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease !important;
}

/* Эффект нажатия в стиле iOS (кнопка слегка уменьшается и тень становится меньше) */
.btn-circle:active {
	transform: scale(0.92);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important;
}

/* Если внутри иконка, задаем ей правильный размер */
.btn-circle .icon,
.btn-circle em {
	font-size: 1.25rem; /* Примерно 20px */
	line-height: 1;
}

.el-dialog {
	border-radius: 20px !important;
	padding: 0 !important;
	--bs-bg-opacity: 1;
	background-color: #f5f6fa !important;
}

.el-select--large .el-select__wrapper {
	font-size: initial !important;
}

.el-select__wrapper {
	min-height: 2.75rem;
	font-size: 13px !important;
}

.el-input__wrapper:not(.el-input-number .el-input__wrapper) {
	min-height: 2.75rem !important;
	font-size: 13px !important;
}

.el-select__wrapper:not(.el-input-number .el-input__wrapper),
.el-input__wrapper:not(.el-input-number .el-input__wrapper) {
	border-radius: 100px !important;
}

.el-select__wrapper::placeholder,
.el-input__wrapper::placeholder {
	color: #8094ae !important;
}

.el-input-group--append > .el-input__wrapper:not(.el-input-number .el-input__wrapper) {
	border-bottom-right-radius: 0 !important;
	border-top-right-radius: 0 !important;
}

.el-input-group--prepend > .el-input__wrapper:not(.el-input-number .el-input__wrapper),
.el-input-group__append:not(.el-input-number .el-input__wrapper) {
	border-radius: 0 15px 15px 0 !important;
}

.el-input-group--prepend.el-input-group--append > .el-input__wrapper:not(.el-input-number .el-input__wrapper),
.el-input-group--prepend.el-input-group--append .el-input-group__append:not(.el-input-number .el-input__wrapper) {
	border-radius: 0 !important;
}

.el-textarea__inner {
	border-radius: 15px !important;
}

.el-dialog__header {
	display: none !important;
}

.el-drawer__header {
	display: none !important;
}

.nk-header-title .el-input.search-input-ios .el-input__wrapper {
	height: 42px !important;
	min-height: 42px !important;
	border-radius: 100px !important;
	background-color: #fff !important;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 0 1px rgba(0, 0, 0, 0.1) !important;
	border: none !important;
}

/* Исправляем положение иконки (prefix) */
.nk-header-title .el-input.search-input-ios .el-input__prefix-inner {
	display: flex;
	align-items: center;
	justify-content: center;
}

.nk-header-title .el-input.search-input-ios .el-input__inner {
	--el-input-inner-height: 40px;
	height: 40px !important;
	font-size: 16px !important;
}

.search-input-ios .el-input__prefix-inner .icon {
	font-size: 16px !important;
	color: var(--site-font-color) !important;
	margin-right: 8px;
}

.search-input-ios .el-input__prefix-inner .el-input__clear {
	font-size: 16px !important;
	color: var(--site-font-color) !important;
}

/* Центрируем иконку, чтобы она не прижималась к верху */
.search-input-ios .el-input__prefix-inner {
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Если иконка всё равно кажется мелкой, можно немного увеличить вес (если шрифт поддерживает) */
.search-input-ios .el-input__prefix-inner .ni-search {
	font-weight: bold;
}

/* 1. Иконка поиска (слева) */
.search-input-ios .el-input__prefix-inner .icon {
	font-size: 18px !important; /* Увеличил до 18px для лучшего вида */
	color: var(--site-font-color) !important;
	margin-right: 8px;
	display: flex;
	align-items: center;
}

/* 2. Иконка очистки (clear/крестик справа) */
.search-input-ios .el-input__clear {
	font-size: 20px !important; /* Увеличиваем размер контейнера иконки */
	line-height: 1 !important;
	cursor: pointer;
	color: #8094ae !important; /* Делаем крестик чуть мягче по цвету */
	transition: color 0.2s;
}

/* Увеличиваем непосредственно SVG внутри крестика */
.search-input-ios .el-input__clear svg {
	width: 20px !important;
	height: 20px !important;
}

/* 3. Центрируем префикс и суффикс, чтобы всё было строго по линии */
.search-input-ios .el-input__prefix,
.search-input-ios .el-input__suffix {
	display: flex;
	align-items: center;
	height: 100%;
}

.search-input-ios .el-input__clear:hover {
	color: #fa5252 !important;
}

.apply-coupon .coupon-code {
	border-radius: 100px;
}

.card-pill-xl {
	border-radius: 28px !important;
}

.form-control.form-control-pill {
	border-radius: 100px !important;
}

.el-select--large .el-select__wrapper {
	min-height: 2.75rem !important;
}

.card.card-pills {
	border-radius: 26px !important;
}
/* === product/gallery/category (app.vue) === */
.product-box-detail .product-box-meta {
	height: 35px;
	min-height: 35px;
	max-height: 35px;
}

.dark-mode .apply-coupon .coupon-code {
	background-color: #182533 !important;
}

/* ---------- Базовая карточка — квадратная по умолчанию ---------- */
.product-box {
	width: 100%;
	display: block;
}

/* Контейнер изображения с закруглёнными краями */
.product-box .product-box-img {
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: var(--site-radius, 20px);
	background: #fff;
	display: block;
}

/* Картинка внутри контейнера */
.product-box .product-box-img .img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: var(--site-image-fit, cover);
	object-position: center;
	box-shadow: none !important;
	border-radius: inherit;
}

/* ---------- Вертикальная карточка ---------- */
.product-box .product-box-img.is-vertical {
	aspect-ratio: 23 / 30;  /* вытянутая пропорция */
}

.product-box .product-box-img.is-vertical .img {
	object-fit: var(--site-image-fit, cover);      /* картинка полностью заполняет вертикальный контейнер */
}

/* ---------- Баннер ---------- */
.banner-wapper .banner-bg .img-bg {
	width: 100%;
	height: auto;
	object-fit: cover;
	border-radius: 28px;
	max-height: clamp(200px, 32vw, 400px);
}

@media (min-width: 576px) {
	.nk-wrap-nosidebar .nk-content-fluid {
		padding-left: 24px !important;
		padding-right: 24px !important;
	}
}

/* ---------- Планшеты ---------- */
@media (min-width: 768px) {
	.product-box .product-box-img .img {
		object-fit: var(--site-image-fit, cover);
	}
}

/* ---------- Ноутбуки ---------- */
@media (min-width: 992px) {
	.nk-wrap-nosidebar .nk-content-fluid {
		padding-left: 24px !important;
		padding-right: 24px !important;
	}
}

/* ---------- Большие экраны ---------- */
@media (min-width: 1200px) {
	.product-box .product-box-img:not(.is-vertical) .img {
		object-fit: var(--site-image-fit, cover);
		background: #fff;
	}

	.product-box .product-box-img.is-vertical .img {
		object-fit: var(--site-image-fit, cover);     /* вертикальные — полностью заполняем контейнер */
	}
}

.swiper-category .swiper-wrapper {
	display: flex;
	align-items: center !important;
}




/* Обёртка галереи */
.product-gallery {
	width: 100%;
}

/* Контейнер Swiper */
.product-gallery-swiper,
.product-gallery .swiper {
	width: 100% !important;
	height: 100% !important;
}

/* Слайд (основная карточка) */
.product-slider-item {
	width: 100% !important;
	height: clamp(325px, 40vw, 550px) !important; /* макс 550 */
	display: flex !important;
	justify-content: center !important;
	align-items: center !important;
	overflow: hidden !important;
	border-radius: 20px !important;
	background: #fff !important;
	box-sizing: border-box !important;
}

/* Вертикальное фото — чуть выше */
.product-slider-item.is-vertical {
	height: clamp(400px, 48vw, 450px) !important; /* тоже максимум 550 */
}

/* Картинка */
.product-slider-item .product-img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	object-position: center !important;
	border-radius: inherit !important;
	display: block !important;
}

/* Мобилки — квадратная галерея */
@media (max-width: 767px) {
	.product-slider-item,
	.product-slider-item.is-vertical {
		height: 350px !important;
	}
}


.product-page {
	display: flex;
	align-items: flex-start;
	gap: 40px;
	width: 100%;
}

/* Левая колонка: ограничиваем max-width */
.product-gallery-wrapper {
	flex: 0 1 100%; /* растёт, но не больше 600 */
	width: 100%;
}

/* Правая колонка: занимает оставшееся */
.product-info-wrapper {
	flex: 1;
}

/* Мобилка: колонки становятся в столбец */
@media (min-width: 992px) {
	.product-gallery-wrapper {
		flex: 0 1 450px; /* растёт, но не больше 600 */
		width: 100%;
	}
}
@media (max-width: 992px) {
	.product-page {
		flex-direction: column;
		gap: 25px;
	}

	.product-gallery-wrapper,
	.product-info-wrapper {
		width: 100%;
		max-width: none;
	}
}

.h-min-100 {
	min-height: 100% !important;
}

.not-mobile .nk-content-page {
	min-height: calc(100vh - 150px);
}

.not-mobile .nk-content-page .container-xl {
	height: calc(100vh - 150px);
}

.not-mobile .nk-content-page .nk-content-body,
.not-mobile .nk-content-page .nk-block,
.not-mobile .nk-content-page .card-aside-wrap {
	height: 100%;
}

.fs-24px {
	font-size: 24px !important;
}

/* Ширина задана БЕЗ media-гейта: colClass вешает .col-5-cols по JS-ширине (windowWidth>=1200),
   а SSR-ширина захардкожена 1280 — на реальном десктоп-окне 992–1199px класс уже стоит, но
   правило внутри @media(min-width:1200) не срабатывает → сетка схлопывается до гидрации.
   Безусловная ширина убирает этот развал (5 колонок вместо коллапса на первом кадре). */
.col-5-cols {
	flex: 0 0 auto;
	width: calc(100% / var(--site-columns, 5)) !important;
	max-width: calc(100% / var(--site-columns, 5));
	padding-right: 10px;
	padding-left: 10px;
}

.el-drawer {
	border-top-left-radius: 35px;
	border-bottom-left-radius: 35px;
}

.el-drawer.btt.open {
	width: 100%;
	margin: 0 auto;
	border-radius: 0 !important;
}







.categories-item {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	text-align: left;
	color: var(--site-secondary-text-color);
	background-color: var(--site-secondary-bg);
	padding: 2px 10px;
	border-radius: 16px;

	height: 50px !important;
	max-height: 50px;
	box-sizing: border-box;

	overflow: hidden;
	white-space: normal;
}

.categories-icon {
	width: 36px;
	height: 36px;
	object-fit: contain;
	flex-shrink: 0;
	display: block;
	margin: 0;
	border-radius: 13px;
}

.categories-text {
	font-size: 13px;
	font-weight: 500;

	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	vertical-align: middle;

	overflow: hidden;
	text-overflow: ellipsis;
	word-break: break-word;
	line-height: 1.15;
}

.categories-text.text-center {
	width: 100%;
	margin-left: 0;
}

.categories-item.active {
	background-color: var(--site-primary-color);
	color: #fff;
}










.product-box-img {
	position: relative;
	overflow: hidden;
	border-radius: 12px;
}

.discount-badge-top {
	position: absolute;
	top: 8px;
	left: 8px;
	background: linear-gradient(45deg, #ff5f6d, #ffc371);
	color: #ffffff;
	font-size: 12px;
	font-weight: 700;
	padding: 4px 7px;
	border-radius: 10px;
	z-index: 2;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
	line-height: normal;
}

.badges-footer {
	position: absolute;
	bottom: 8px;
	left: 8px;
	right: 8px;
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	z-index: 3;
}

.footer-badge-item {
	font-size: 10px;
	text-transform: uppercase;
	font-weight: 500;
	padding: 3px 7px;
	border-radius: 10px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
	line-height: normal;
}

.badge-default {
	background-color: #f0f0f0;
	color: #555;
}

.product-gallery-container .swiper-slide {
	display: flex;
	justify-content: center;
	align-items: center;
	background: #f8f9fa;
	border-radius: 8px;
	overflow: hidden;
}

.product-gallery-container .swiper-slide .product-img {
	width: 100%;
	height: 100%;
	object-fit: contain; /* Сохраняем пропорции фото */
}

@media (min-width: 768px) {
	.product-gallery-container {
		display: flex;
		flex-direction: row;
		height: 500px; /* Базовая высота для горизонтальных/квадратных */
		transition: height 0.3s ease;
	}

	/* Если товар вертикальный, увеличиваем высоту галереи на десктопе */
	.product-gallery-container.is-vertical-product {
		height: 650px;
	}

	.product-thumbnails {
		width: 80px;
		flex-shrink: 0;
		margin-right: 12px;
		height: 100%;
	}

	.thumbs-swiper {
		height: 100%;
	}

	.thumb-item {
		cursor: pointer;
		border: 2px solid transparent;
		border-radius: 6px;
		overflow: hidden;
		transition: all 0.3s ease;
		opacity: 0.5;
		aspect-ratio: 1 / 1;
	}

	.thumb-item img {
		width: 100%;
		height: 100%;
		object-fit: cover;
	}

	.swiper-slide-thumb-active .thumb-item {
		border-color: #798bff;
		opacity: 1;
	}

	.product-gallery-swiper {
		width: 100%;
		height: 100%;
	}

	.product-gallery-container .swiper-pagination {
		display: none !important;
	}
}

@media (max-width: 767px) {
	.product-gallery-container {
		display: block;
		height: auto !important;
	}

	.product-thumbnails {
		display: none;
	}

	.product-gallery-swiper {
		position: relative;
		width: 100%;
		min-height: 350px;
		height: auto;
	}

	/* Если вертикальный, задаем более вытянутый минимальный аспект */
	.is-vertical-product .product-gallery-swiper {
		aspect-ratio: 3 / 4; /* Пропорция портрета */
		max-height: 80vh;
	}

	.product-gallery-container .swiper-wrapper {
		align-items: center;
	}

	.product-gallery-container .swiper-slide {
		height: auto;
		aspect-ratio: auto;
	}

	/* Пагинация */
	.product-gallery-container .swiper-pagination {
		display: flex !important;
		position: absolute !important;
		bottom: 12px !important;
		left: 0;
		right: 0;
		justify-content: center;
		align-items: center;
		z-index: 10;
		line-height: 0;
	}

	.product-gallery-container .swiper-pagination-bullet {
		width: 7px;
		height: 7px;
		background: #ffffff !important;
		opacity: 0.6;
		margin: 0 4px !important;
		border-radius: 50%;
		box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
		transition: all 0.3s ease;
	}

	.product-gallery-container .swiper-pagination-bullet-active {
		width: 20px;
		border-radius: 4px;
		opacity: 1;
	}
}

.product-info-header {
	display: flex;
	flex-direction: column;
}

@media (max-width: 767px) {
	.product-info-header {
		flex-direction: column-reverse;
	}

	/* Дополнительно убираем нижний отступ у цены в мобилке,
	   так как она теперь сверху */
	.product-price-container {
		margin-bottom: 8px !important;
	}
}

/* === Адаптив: десктоп использует DesktopHeader, мобильные фикс-хедеры страниц скрыты === */
.not-mobile .nk-header.nk-header-fixed {
	display: none !important;
}
/* Десктоп: вертикальные отступы контента 1:1 с оригиналом (default.vue: .nk-content { padding: 24px 0 }) */
.not-mobile .nk-content {
	padding: 24px 0;
}

/* Бейдж количества в корзине — градиент 1:1 с оригиналом (default.vue). */
.cart-count {
	position: absolute;
	top: -8px;
	left: 48%;
	width: 23px;
	height: 23px;
	border-radius: 50%;
	background: linear-gradient(135deg, #ff6b6b, #ee5253) !important;
	color: #fff;
	font-size: 11px !important;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px solid #fff;
}

/* Логотип бренда: фиксируем пропорции, чтобы картинка не растягивалась (max-height из .logo-img дашлайта = 36px). */
.logo-link .logo-img {
	width: auto;
	height: auto;
	display: block;
	object-fit: contain;
}

/* === Мобильный поиск (el-input.search-input-ios) — 1:1 из default.vue оригинала === */
.nk-header-title .el-input.search-input-ios .el-input__wrapper {
	height: 42px !important;
	min-height: 42px !important;
	border-radius: 100px !important;
	background-color: #fff !important;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 0 1px rgba(0, 0, 0, 0.1) !important;
	border: none !important;
}
.nk-header-title .el-input.search-input-ios .el-input__inner {
	--el-input-inner-height: 40px;
	height: 40px !important;
	font-size: 16px !important;
}
.search-input-ios .el-input__prefix,
.search-input-ios .el-input__suffix {
	display: flex;
	align-items: center;
	height: 100%;
}
.search-input-ios .el-input__prefix-inner {
	display: flex;
	align-items: center;
	justify-content: center;
}
.search-input-ios .el-input__prefix-inner .icon {
	font-size: 18px !important;
	color: var(--site-font-color) !important;
	margin-right: 8px;
	display: flex;
	align-items: center;
}
.search-input-ios .el-input__clear {
	font-size: 20px !important;
	line-height: 1 !important;
	cursor: pointer;
	color: #8094ae !important;
	transition: color 0.2s;
}
.search-input-ios .el-input__clear:hover {
	color: #fa5252 !important;
}
