/* ==========================================================================
   Двери Центр — мобильное меню (боковая панель Woodmart .mobile-nav)
   ========================================================================== */
.mobile-nav {
	--mm-pad: 18px;
	width: min(88vw, 360px) !important;
	background: #fff !important;
	border-radius: 0 24px 24px 0 !important;
	box-shadow: 24px 0 60px rgba(16, 16, 15, .28);
	font-family: var(--dc-font, Manrope, sans-serif);
	display: flex;
	flex-direction: column;
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	padding-bottom: env(safe-area-inset-bottom);
}
/* Woodmart прячет панель сдвигом на свою ширину — учитываем новую ширину */
.mobile-nav.slide-from-left { transform: translate3d(-110%, 0, 0); }
.mobile-nav.slide-from-left.act-mobile-menu { transform: none; }
.mobile-nav.slide-from-right { transform: translate3d(110%, 0, 0); border-radius: 24px 0 0 24px !important; }
.mobile-nav.slide-from-right.act-mobile-menu { transform: none; }
.mobile-nav { transition: transform .38s cubic-bezier(.2, .7, .2, 1) !important; }

/* Затемнение страницы */
.woodmart-close-side {
	background: rgba(16, 16, 15, .55) !important;
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
}

/* ---------- Шапка панели (добавляется скриптом) ---------- */
.dc-mm-head {
	order: -2;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px var(--mm-pad) 8px;
}
.dc-mm-head .dc-mm-logo img { display: block; height: 40px; width: auto; }
.dc-mm-close {
	display: grid !important;
	place-items: center;
	flex: none;
	width: 40px !important;
	height: 40px !important;
	min-height: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: #F3F2EF !important;
	color: #10100F !important;
	cursor: pointer;
	transition: background .2s, color .2s, transform .2s;
}
.dc-mm-close:active { transform: scale(.94); }
.dc-mm-close:hover { background: #DF1921 !important; color: #fff !important; }
.dc-mm-close svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2.4; fill: none; stroke-linecap: round; }

/* ---------- Поиск ---------- */
.mobile-nav .woodmart-search-form {
	order: -1;
	padding: 8px var(--mm-pad) 4px !important;
	border: 0 !important;
}
.mobile-nav .searchform { position: relative; }
.mobile-nav .searchform input.s,
.mobile-nav .searchform input[type="text"] {
	height: 48px !important;
	padding: 0 56px 0 44px !important;
	border: 1.5px solid #ECEAE6 !important;
	border-radius: 999px !important;
	background: #F6F5F2 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236E6E69' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") no-repeat 16px 50% / 18px !important;
	font: 600 15px/1 var(--dc-font) !important;
	color: #10100F !important;
	box-shadow: none !important;
	transition: border-color .2s, background-color .2s;
}
.mobile-nav .searchform input.s:not(:focus) { box-shadow: none !important; }
.mobile-nav .searchform input.s:focus { border-color: #DF1921 !important; background-color: #fff !important; }
.mobile-nav .searchform .searchsubmit {
	position: absolute !important;
	top: 5px !important;
	right: 5px !important;
	width: 38px !important;
	height: 38px !important;
	min-height: 0 !important;
	padding: 0 !important;
	border-radius: 50% !important;
	background: #DF1921 !important;
	color: transparent !important;
	font-size: 0 !important;
	box-shadow: 0 6px 14px rgba(223, 25, 33, .35) !important;
}
.mobile-nav .searchform .searchsubmit:after,
.mobile-nav .searchform .searchsubmit:before { display: none !important; }
.mobile-nav .searchform .searchsubmit {
	background: #DF1921 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") no-repeat 50% 50% / 18px !important;
}

/* ---------- Переключатель «Каталог / Меню» ---------- */
.mobile-nav .mobile-nav-tabs { padding: 12px var(--mm-pad) 6px; border: 0 !important; background: transparent !important; }
.mobile-nav .mobile-nav-tabs ul {
	display: flex !important;
	gap: 4px;
	margin: 0 !important;
	padding: 4px !important;
	border-radius: 999px;
	background: #F3F2EF;
}
.mobile-nav .mobile-nav-tabs li {
	flex: 1 1 0;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 999px;
	background: transparent !important;
	color: #6E6E69 !important;
	text-align: center;
	cursor: pointer;
	transition: background .25s, color .25s, box-shadow .25s;
}
.mobile-nav .mobile-nav-tabs li:after,
.mobile-nav .mobile-nav-tabs li:before { display: none !important; }
.mobile-nav .mobile-nav-tabs li span {
	display: block;
	padding: 11px 8px !important;
	font: 800 14px/1 var(--dc-font) !important;
	letter-spacing: .02em;
	text-transform: none !important;
	color: inherit !important;
}
.mobile-nav .mobile-nav-tabs li.active {
	background: #DF1921 !important;
	color: #fff !important;
	box-shadow: 0 6px 16px rgba(223, 25, 33, .32);
}
.mobile-nav .mobile-categories-title { order: -1; } /* «Каталог» — первым */

/* ---------- Списки ---------- */
.mobile-nav .mobile-menu-tab,
.mobile-nav .mobile-menu-tab.active { background: transparent !important; padding: 4px 10px 8px; }
.mobile-nav .site-mobile-menu { margin: 0 !important; padding: 0 !important; }
.mobile-nav .site-mobile-menu li { border: 0 !important; background: transparent !important; position: relative; }
.mobile-nav .site-mobile-menu > li { margin: 2px 0 !important; border-radius: 14px; transition: background .2s; }
.mobile-nav .site-mobile-menu > li > a {
	display: flex !important;
	align-items: center;
	gap: 12px;
	min-height: 52px;
	padding: 8px 52px 8px 10px !important;
	border: 0 !important;
	font: 700 15px/1.25 var(--dc-font) !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	color: #10100F !important;
}
.mobile-nav .site-mobile-menu > li > a:before {
	content: "";
	flex: none;
	width: 36px;
	height: 36px;
	border-radius: 11px;
	background: #FDECEC var(--dc-mm-ico, none) no-repeat 50% 50% / 20px;
	transition: background-color .2s;
}
.mobile-nav .site-mobile-menu > li:active,
.mobile-nav .site-mobile-menu > li.dc-mm-open { background: #F6F5F2 !important; }
.mobile-nav .site-mobile-menu > li.current-menu-item > a,
.mobile-nav .site-mobile-menu > li > a:hover { color: #DF1921 !important; }

/* Иконки пунктов (дверь по умолчанию) */
.mobile-nav .site-mobile-menu > li { --dc-mm-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23DF1921' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 21V4a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v17M4 21h16'/%3E%3Ccircle cx='14.5' cy='12.5' r='.9' fill='%23DF1921'/%3E%3C/svg%3E"); }
.mobile-nav .mobile-pages-menu .site-mobile-menu > li { --dc-mm-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23DF1921' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E"); }
.mobile-nav .site-mobile-menu > li[class*="oplata"],
.mobile-nav .site-mobile-menu > li.dc-ico-pay { --dc-mm-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23DF1921' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7h11v9H3zM14 10h4l3 3v3h-7'/%3E%3Ccircle cx='7' cy='18' r='1.8'/%3E%3Ccircle cx='17' cy='18' r='1.8'/%3E%3C/svg%3E"); }
.mobile-nav .site-mobile-menu > li.dc-ico-guarantee { --dc-mm-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23DF1921' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 3v5c0 5-3.5 8.5-7 10-3.5-1.5-7-5-7-10V6z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E"); }
.mobile-nav .site-mobile-menu > li.dc-ico-service { --dc-mm-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23DF1921' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a4 4 0 0 0 5 5L12 19a2.1 2.1 0 0 1-3-3z'/%3E%3Cpath d='M9 16l-5 5'/%3E%3C/svg%3E"); }
.mobile-nav .site-mobile-menu > li.dc-ico-opt { --dc-mm-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23DF1921' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8l9-5 9 5v8l-9 5-9-5z'/%3E%3Cpath d='M3 8l9 5 9-5M12 13v8'/%3E%3C/svg%3E"); }
.mobile-nav .site-mobile-menu > li.menu-item-register { --dc-mm-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23DF1921' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c1.5-4 4.5-6 8-6s6.5 2 8 6'/%3E%3C/svg%3E"); }
.mobile-nav .site-mobile-menu > li.dc-ico-arch { --dc-mm-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23DF1921' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 21V11a7 7 0 0 1 14 0v10M3 21h18'/%3E%3C/svg%3E"); }
.mobile-nav .site-mobile-menu > li.dc-ico-sauna { --dc-mm-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23DF1921' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 3c-1 2 1 3 0 5M12 3c-1 2 1 3 0 5M16 3c-1 2 1 3 0 5M4 21h16M6 21v-9h12v9'/%3E%3C/svg%3E"); }
.mobile-nav .site-mobile-menu > li.dc-ico-thermo { --dc-mm-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23DF1921' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2v20M4.9 7l14.2 10M4.9 17L19.1 7M9 4l3 2 3-2M9 20l3-2 3 2'/%3E%3C/svg%3E"); }
.mobile-nav .site-mobile-menu > li.dc-ico-hidden { --dc-mm-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23DF1921' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 21V3h12v18M4 21h16' stroke-dasharray='3 2.5'/%3E%3C/svg%3E"); }
.mobile-nav .site-mobile-menu > li.dc-ico-shield { --dc-mm-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23DF1921' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='10' width='14' height='11' rx='2'/%3E%3Cpath d='M8 10V7a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E"); }
.mobile-nav .site-mobile-menu > li.dc-ico-trim { --dc-mm-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23DF1921' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20L20 4M8 20L20 8M4 16L16 4'/%3E%3C/svg%3E"); }
.mobile-nav .site-mobile-menu > li.dc-ico-entry { --dc-mm-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23DF1921' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='3' width='12' height='18' rx='1'/%3E%3Cpath d='M4 21h16M15 11v2'/%3E%3Crect x='8.5' y='6' width='7' height='3.5' rx='.5'/%3E%3C/svg%3E"); }

/* Кнопка раскрытия подменю */
.mobile-nav .site-mobile-menu .icon-sub-menu {
	position: absolute !important;
	top: 8px !important;
	right: 6px !important;
	width: 36px !important;
	height: 36px !important;
	line-height: 36px !important;
	border: 0 !important;
	border-radius: 50%;
	background: #fff;
	box-shadow: inset 0 0 0 1.5px #ECEAE6;
	cursor: pointer;
	transition: transform .3s, background .2s, box-shadow .2s;
}
.mobile-nav .site-mobile-menu .icon-sub-menu:after {
	content: "" !important;
	position: absolute;
	inset: 0;
	margin: auto;
	width: 8px;
	height: 8px;
	border-right: 2.2px solid #10100F;
	border-bottom: 2.2px solid #10100F;
	transform: translate(0, -2px) rotate(45deg);
	font-size: 0 !important;
	transition: border-color .2s;
}
.mobile-nav .site-mobile-menu .icon-sub-menu.up-icon {
	transform: rotate(180deg);
	background: #DF1921;
	box-shadow: none;
}
.mobile-nav .site-mobile-menu .icon-sub-menu.up-icon:after { border-color: #fff; }

/* Подменю */
.mobile-nav .site-mobile-menu .sub-menu-dropdown,
.mobile-nav .site-mobile-menu .sub-menu { background: transparent !important; box-shadow: none !important; padding: 0 !important; margin: 0 !important; }
.mobile-nav .site-mobile-menu .sub-menu-dropdown { border: 0 !important; border-radius: 0 !important; }
.mobile-nav .site-mobile-menu .sub-menu-dropdown .container { padding: 0 !important; width: auto !important; }
.mobile-nav .site-mobile-menu .sub-menu {
	margin: 0 10px 10px 27px !important;
	padding: 2px 0 2px 14px !important;
	border-left: 2px solid #F3C5C7 !important;
}
.mobile-nav .site-mobile-menu .sub-menu li a {
	display: block;
	padding: 10px 8px !important;
	border: 0 !important;
	border-radius: 10px;
	font: 600 14px/1.25 var(--dc-font) !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	color: #3A3A37 !important;
}
.mobile-nav .site-mobile-menu .sub-menu li a:active,
.mobile-nav .site-mobile-menu .sub-menu li a:hover { background: #fff; color: #DF1921 !important; }

/* ---------- Низ панели (добавляется скриптом) ---------- */
.dc-mm-foot {
	order: 99;
	margin-top: auto;
	padding: 16px var(--mm-pad) 92px; /* место под плавающий виджет чата */
	border-top: 1px solid #F0EEEA;
	background: linear-gradient(180deg, #fff 0%, #FAF9F7 100%);
}
.dc-mm-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.dc-mm-chips a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 14px;
	border-radius: 999px;
	background: #fff;
	box-shadow: inset 0 0 0 1.5px #ECEAE6;
	font: 700 13px/1 var(--dc-font);
	color: #10100F !important;
	text-decoration: none !important;
}
.dc-mm-chips a.is-dark { background: var(--dc-dark-ui); color: #fff !important; box-shadow: none; }
.dc-mm-chips a.is-dark i { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: #DF1921; font: 800 10px/1 var(--dc-font); font-style: normal; }
.dc-mm-call {
	display: flex !important;
	align-items: center;
	gap: 12px;
	padding: 12px 14px !important;
	border-radius: 18px;
	background: #DF1921;
	color: #fff !important;
	text-decoration: none !important;
	box-shadow: 0 12px 26px rgba(223, 25, 33, .35);
}
.dc-mm-call .ico { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.dc-mm-call .ico svg { width: 20px; height: 20px; fill: #fff; }
.dc-mm-call small { display: block; font: 600 12px/1.2 var(--dc-font); opacity: .85; }
.dc-mm-call b { display: block; font: 800 19px/1.2 var(--dc-font); letter-spacing: .01em; white-space: nowrap; }

@media (min-width: 1025px) { .dc-mm-head, .dc-mm-foot { display: none; } }
@media (prefers-reduced-motion: reduce) { .mobile-nav { transition: none !important; } }

.mobile-nav .site-mobile-menu > li.menu-item-register > a { padding-left: 10px !important; }
.mobile-nav .site-mobile-menu > li.menu-item-register > a > *:not(.nav-link-text) { display: none; }
