/* M6 (2026-11-19): мобільна шапка до 760px. Рядок 1 (липкий, 56px): лого, пошук, кабінет, кошик.
   Рядок 2 лишається як було: темна смуга «Меню» + UA/RU; у ній додано червону кнопку виклику.
   JS старої шапки (бургер .nav-toggle, пошук .masearch, кошик #cart_informer) не змінювався. */
.m6_call { display: none; }
/* номери в шапці й підвалі стали посиланнями tel: — вигляд лишається як раніше */
.phone a, .footer .phone a { color: inherit; text-decoration: none; }
@media all and (max-width: 760px) {
	.header {
		position: sticky; top: 0; z-index: 900;
		display: flex; align-items: center; flex-wrap: nowrap;
		height: 64px; padding: 0 8px; box-sizing: border-box;
		background: #fff; box-shadow: 0 1px 5px rgba(0,0,0,.25);
	}
	/* обгортки зникають, їхні діти стають елементами рядка */
	.header .top_nav_wrapper, .header .auth_and_cart, .header .auth_block { display: contents; }
	.header .clear { display: none; }

	/* без анімацій: старий CSS мав transition .7s на пошуку й кошику, через що поле «стрибало» */
	.header #search, .header #search *, .header .auth_and_cart, .header #cart_informer { transition: none !important; }

	/* порядок: лого | пошук | кабінет | кошик */
	.header .logo { order: 1; flex: 1 1 auto; width: auto; margin: 0 6px 0 0; float: none; min-width: 0; }
	.header .logo a, .header .logo img.logo_mob { display: block; }
	.header .logo img.logo_mob { height: 56px; width: auto; max-width: 100%; object-fit: contain; object-position: left center; }
	.header .logo, .header .logo a, .header .logo img { position: relative; z-index: 0 !important; }
	.header:has(#search.masearch) .logo { visibility: hidden; }
	.header #search { order: 2; flex: 0 0 42px; width: 42px; min-width: 42px; margin: 0 2px; height: 42px; position: relative; }
	.header #search form { height: 42px; margin: 0; }
	/* згорнуто: лише іконка-лупа; дотик розкриває поле (JS старої шапки додає .masearch) */
	.header #search:not(.masearch) .input_search { width: 42px; height: 42px; padding: 0; margin: 0; background: transparent; border: 0; border-radius: 0; color: transparent; font-size: 16px; cursor: pointer; }
	.header #search:not(.masearch) .input_search::placeholder { color: transparent; }
	.header #search .search_button { left: 7px; top: 0; margin: 10px 0 0 0; right: auto; filter: invert(1); transform: scale(1.3); }
	.header #search.masearch .input_search { height: 40px; box-sizing: border-box; margin: 0; padding: 0 12px 0 40px; font-size: 14px; background-color: #f2f2f2; border: 1px solid #ccc; border-radius: 20px; }
	.header #search.masearch .search_button { left: 16px; margin-top: 20px; }
	/* згорнутий пошук: дотик по іконці розкриває поле, а не надсилає порожній запит */
	.header #search:not(.masearch) .search_button { pointer-events: none; }
	/* кабінет і кошик не можуть бути сховані inline-стилем зі старого JS */
	.header #cart_informer, .header .auth_link_min { display: flex !important; }
	.header .auth_link_min { order: 3; flex: 0 0 40px; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin: 0; }
	.header .auth_link_min img { width: 28px; height: auto; }
	.header #cart_informer { order: 4; flex: 0 0 44px; position: relative; margin: 0 2px 0 0; width: 44px; height: 40px; display: flex; align-items: center; justify-content: center; }
	.header #cart_informer a { display: flex; align-items: center; }
	.header #cart_informer img { max-width: 34px; height: auto; display: block; }
	.header .basket_preview { margin-left: 0; margin-top: 0; float: none; }
	.header .basket_preview span { margin-left: 14px; margin-top: -26px; width: 22px; height: 22px; line-height: 20px; font-size: 13px; border-width: 1px; }

	/* розгорнутий пошук (JS додає .masearch після дотику по полю) */
	.header #search.masearch { position: absolute; left: 0; right: 0; top: 0; height: 64px; margin: 0; padding: 11px 8px 0;
		background: #fff; z-index: 50 !important; box-sizing: border-box; width: auto !important; }
	.header #search.masearch .input_search { width: 100%; }

	/* темна смуга меню: кнопка виклику між «Меню» і UA/RU */
	/* темна смуга меню теж липка (під верхнім рядком); при скролі стискається: лишається лише «Меню» */
	.mob_cat_nav { position: sticky !important; top: 64px; z-index: 890; }
	html.m6_scrolled .mob_cat_nav { height: 28px; padding: 4px 10px; }
	html.m6_scrolled .mob_cat_nav .m6_call, html.m6_scrolled .mob_cat_lang, html.m6_scrolled .language-tooltip__block { display: none !important; }
	/* компактний стан: менша іконка меню й шрифт, по центру смуги 36 px */
	html.m6_scrolled .mob_cat_nav .nav-toggle { height: 28px !important; width: 140px !important; padding: 0 !important; margin: 0; float: left; }
	html.m6_scrolled .mob_cat_nav .nav-toggle span, html.m6_scrolled .mob_cat_nav .nav-toggle span:before, html.m6_scrolled .mob_cat_nav .nav-toggle span:after { width: 20px; height: 2px; }
	html.m6_scrolled .mob_cat_nav .nav-toggle span { left: 6px; top: 13px; }
	html.m6_scrolled .mob_cat_nav .nav-toggle span:before { top: -6px; }
	html.m6_scrolled .mob_cat_nav .nav-toggle span:after { bottom: -6px; }
	html.m6_scrolled .mob_cat_nav .mob_cat_nav_text { float: none; margin: 0 0 0 38px; padding: 0; font-size: 15px; line-height: 28px; }
	.mob_cat_nav .m6_call { display: flex; align-items: center; justify-content: center; position: absolute; top: 10px; right: 110px;
		width: 34px; height: 34px; border-radius: 50%; background: #c11718; z-index: 3; }
	.mob_cat_nav .m6_call svg { width: 19px; height: 19px; fill: #fff; }

	/* ===== Меню категорій на телефоні: висувна панель поверх сторінки (M6, 2026-11-19) =====
	   Раніше сторінка з'їжджала вправо на 80% і прокручувалась на початок. Тепер сторінка стоїть,
	   панель виїжджає зліва поверх неї, позаду затемнення. Закрити: хрестик, дотик по затемненню. */
	.page_active { transform: none !important; }
	nav { position: fixed !important; top: 0; bottom: 0; left: 0; height: auto !important; width: 84%; max-width: 340px;
		overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; z-index: 2000; background: #fff;
		transform: translateX(-105%); transition: transform .25s ease !important; box-shadow: none; }
	nav.nav_active { transform: translateX(0); box-shadow: 4px 0 18px rgba(0,0,0,.35); }
	.m6_backdrop { display: none; position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1999;
		background: rgba(0,0,0,.45); touch-action: none; }
	html.m6_menu_open .m6_backdrop { display: block; }
	html.m6_menu_open, html.m6_menu_open body { overflow: hidden; }
	.m6_nav_head { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 2;
		height: 48px; padding: 0 6px 0 16px; background: #3c3c3c; color: #fff; font-size: 17px; font-weight: 500; text-transform: uppercase; }
	.m6_nav_close { width: 44px; height: 44px; line-height: 44px; text-align: center; font-size: 30px; color: #fff; cursor: pointer; }
}
