/* ============================================
   ARSENAL — хедер
   ============================================ */
.header { position: relative; z-index: 100; background: #fff; box-shadow: 0 1px 0 var(--c-line-soft); }
.header__top { display: flex; align-items: center; gap: 28px; min-height: 74px; }
.header__logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header__logo img { height: 27px; width: 92px; object-fit: contain; }
.header__logo-text { font-family: var(--ff-display); font-size: var(--fs-20); line-height: 1; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a { font-size: var(--fs-16); color: var(--c-ink); }
.nav a:hover, .nav .current-menu-item a { color: var(--c-accent); }

.header__right { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.header__schedule { line-height: 1.25; }
.header__schedule .sub { font-size: var(--fs-14); color: var(--c-body); }
.header__schedule .val { font-size: var(--fs-18); font-weight: 500; }

.header__phone {
	display: inline-flex;
	align-items: center;
	padding: 10px 18px;
	border: 1px solid var(--c-accent-ghost);
	border-radius: var(--r-pill);
	font-weight: 500;
}
.header__phone .ico {
	width: 36px; height: 36px;
	display: grid; place-items: center;
	border: 1px solid var(--c-accent-soft);
	border-radius: 50%;
}
.header__phone:hover { border-color: var(--c-accent); color: var(--c-ink); }

.header__cart { position: relative; display: grid; place-items: center; width: 43px; height: 43px; border-radius: 50%; }
.header__cart > img { display: block; width: 43px; height: 43px; }
.header__cart:hover { background: var(--c-bg-soft); }
.header__cart .count {
	position: absolute;
	top: -2px; right: -4px;
	min-width: 18px; height: 18px;
	padding: 0 5px;
	display: grid; place-items: center;
	background: var(--c-accent);
	border-radius: var(--r-pill);
	color: #fff;
	font-size: var(--fs-10);
	font-weight: 600;
}
.header__cart .count:empty { display: none; }

.header__mid { display: flex; align-items: center; gap: 16px; padding: 14px 0; }
.header__search { order: 1; }
.header__address { order: 2; }
.header__address {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 43px;
	padding: 8px 20px;
	border: 0;
	background: var(--c-accent);
	border-radius: var(--r-m);
	color: #fff;
	font: inherit;
	font-weight: 500;
	cursor: pointer;
	white-space: nowrap;
}
.header__address:hover { background: var(--c-accent-dark); color: #fff; }
.header__address > img { display: block; width: 14px; height: 14px; flex: 0 0 auto; }
.header__search { position: relative; flex: 1; }
.header__search .input { padding-left: 44px; border-radius: var(--r-m); }
.header__search .ico {
	position: absolute;
	left: 14px; top: 50%;
	transform: translateY(-50%);
	color: var(--c-body);
	display: grid; place-items: center;
}

/* Живой поиск: выпадающий список под строкой */
.ars-search-drop {
	position: absolute;
	z-index: 950;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	max-height: 420px;
	overflow: auto;
	padding: 8px;
	background: #fff;
	border: 1px solid var(--c-line-soft);
	border-radius: var(--r-m);
	box-shadow: 0 18px 40px rgba(17, 17, 17, .12);
}
.ars-search-drop[hidden] { display: none; }
.drop-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 10px;
	border-radius: 10px;
	transition: background var(--t-fast);
}
.drop-item:hover { background: var(--c-bg-soft); }
.drop-item img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex: 0 0 auto; }
.drop-item .drop-name { flex: 1; min-width: 0; font-size: var(--fs-14); }
.drop-item .drop-price { font-weight: 600; font-size: var(--fs-14); white-space: nowrap; }

.header__cats { border-top: 1px solid var(--c-line-soft); }
.header__cats-row {
	display: flex;
	gap: 10px;
	align-items: center;
	min-height: 49px;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior-x: contain;
}
.header__cats-row::-webkit-scrollbar { display: none; }
.header__cats .chip { border: 0; min-height: auto; padding: 8px 0; border-radius: 0; background: none; }
.header__cats .chip:hover { color: var(--c-accent); }
.header__cats .chip.is-active { color: var(--c-accent); background: none; }

.header__burger { display: none; }

@media (max-width: 1199px) {
	.header__top { flex-wrap: wrap; gap: 14px; min-height: 64px; padding-block: 10px; }
	.nav, .header__schedule { display: none; }
	.header__burger {
		display: grid; place-items: center;
		width: 43px; height: 43px;
		border: 1px solid var(--c-line-soft);
		border-radius: var(--r-m);
		background: none;
		cursor: pointer;
	}
	.header__right { gap: 12px; }
	.header__phone span.tel { display: none; }
	.header__mid { flex-wrap: wrap; }
	.header__search { flex: 1 1 100%; order: 3; }
}

/* Телефон: бургер справа у корзины, без номера, поиска и адреса */
@media (max-width: 767px) {
	.header__top { flex-wrap: nowrap; gap: 10px; }
	.header__burger { order: 10; margin-left: auto; }
	.header__right { order: 11; margin-left: 0; gap: 8px; }
	.header__phone,
	.header__schedule,
	.header__mid { display: none; }
	.header__logo img { height: 24px; width: 82px; }
}
