/*
 * Шапка — значения с боевого сайта (storefront/css/style.css:
 * .header-top, .header, .phone-email-block, .search-block, .select-region,
 * .rigt-block-header-center, #site-mini-cart, .munu-block).
 */

/* ---------- Верхняя полоса ---------- */

.pos-header-top { background: #e6e6e6; min-height: 30px; }
.pos-header-top .pos-container { gap: 0; min-height: 30px; }

/* 60px отступа + пробел между ссылками, как на боевом */
.pos-header-top__links { gap: 64px; }
.pos-header-top__links a {
	color: #2f2620;
	font-family: "Roboto", sans-serif;
	font-weight: 400;
	font-size: 16px;
	line-height: 30px;
}
.pos-header-top__links a:hover { color: #4eab10; }
.pos-header-top__links .pos-header-top__sale { color: #f00 !important; font-weight: 700; }

.pos-header-top__right {
	display: flex;
	align-items: center;
	gap: 4px;
	margin-left: auto;
}
.pos-header-top__right a {
	display: inline-block; /* не flex: иначе пропадает пробел между иконкой и «Садовый блог» */
	color: #4fad10;
	font-family: "Roboto", sans-serif;
	font-weight: 700;
	font-size: 16px;
	line-height: 31px;
	text-decoration: none;
}
.pos-header-top__right a:hover { color: #4fad10; }
.pos-header-top__right img { width: 24px; max-height: 24px; margin: -3px 5px 0 0; vertical-align: middle; }
.pos-header-top__youtube img {
	width: 32px;
	max-height: 36px;
	filter: invert(51%) sepia(98%) saturate(399%) hue-rotate(52deg) brightness(91%) contrast(99%);
}

/* на компьютере телефон — в шапке, а не в полосе */
@media (min-width: 901px) {
	.pos-header-top__phone { display: none; }
}

/* ---------- Основная шапка: раскладка один в один ---------- */

@media (min-width: 1300px) {
	.pos-header__inner {
		display: flex;
		flex-wrap: nowrap;
		align-items: flex-start;
		gap: 0;
		min-height: 100px;
	}

	.pos-header__logo { flex: 0 0 auto; margin-top: 15px; }
	.pos-header__logo img { width: 195px; height: 50px; }

	/* телефон и почта */
	.pos-header__contacts {
		flex: 0 0 auto;
		display: block;
		margin: 20px 0 0 70px;
	}
	.pos-header__phone,
	.pos-header__email {
		position: relative;
		display: block;
		padding-left: 31px;
		color: #2f2620;
		font-family: "Roboto", sans-serif;
		font-weight: 700;
		font-size: 18px;
		line-height: 1.42857;
		text-decoration: none;
	}
	.pos-header__phone { margin-bottom: 9px; }
	.pos-header__phone:hover,
	.pos-header__email:hover { color: #4eab10; }

	/* иконки — те же файлы, что на боевом */
	.pos-header__contacts .pos-ico {
		position: absolute;
		top: 1px;
		left: 0;
		width: 24px;
		height: 24px;
		flex: none;
		border-radius: 0;
		background: center / 24px no-repeat !important;
	}
	.pos-header__contacts .pos-ico::before { content: none; }
	.pos-header__contacts .pos-ico--phone { background-image: url("../images/header/phone.svg") !important; }
	.pos-header__contacts .pos-ico--mail  { background-image: url("../images/header/email.svg") !important; }

	/* поиск */
	.pos-header__search {
		flex: 0 0 400px;
		min-width: 400px;
		margin: 26px 0 0 52px;
	}
	.pos-header__search form { position: relative; display: block; }
	.pos-header__search input[type="search"] {
		width: 100%;
		height: 50px;
		padding: 10px 60px 10px 30px;
		background: #fff;
		border: 1px solid #d8d8d8;
		border-radius: 50px;
		color: #2f2620;
		font-family: "Roboto", sans-serif;
		font-weight: 400;
		font-size: 15px;
		line-height: 17px;
		box-shadow: none;
	}
	.pos-header__search input[type="search"]:focus { outline: none; border-color: #d8d8d8; }
	.pos-header__search button { right: 10px; }
	.pos-header__search button::before { background-size: 21px 21px; opacity: 1; }

	/* город */
	.pos-header__city {
		flex: 0 0 auto;
		margin: 38px 0 0 30px;
		color: #2f2620;
		font-family: "Roboto", sans-serif;
		font-weight: 500;
		font-size: 16px;
		line-height: 1.42857;
		white-space: nowrap;
	}
	.pos-header__city span { color: #ffb400; cursor: pointer; }

	/* кабинет, «?», корзина — в рамке справа */
	.pos-header__actions {
		position: relative;
		display: block;
		flex: 0 0 193px;
		width: 193px;
		height: 50px;
		margin: 25px 0 0 auto;
		border: 1px solid #e6e6e6;
		border-radius: 50px;
		box-sizing: border-box;
	}

	.pos-header__account,
	.pos-header__help {
		float: left;
		display: block;
		width: 24px;
		line-height: 43px;
		text-align: center;
	}
	.pos-header__account { margin-left: 23px; }
	.pos-header__help { margin-left: 39px; }
	.pos-header__account img { display: inline-block; width: 20px; height: auto; opacity: 1; vertical-align: middle; }
	.pos-header__help img { display: inline-block; width: 24px; height: auto; vertical-align: middle; }
	.pos-header__account:hover,
	.pos-header__help:hover { transform: scale(1.1); }

	.pos-header__cart {
		position: relative;
		float: right;
		display: block;
		width: 39px;
		height: 39px;
		margin: 4px 4px 0 0;
		background: #ffb400;
		border: 1px solid #ffb400;
		border-radius: 50px;
		text-align: center;
		line-height: 0;
		box-sizing: border-box;
		transition: .4s;
	}
	.pos-header__cart:hover { background: #fff; border-color: #4eab10; transform: scale(1.1); }
	.pos-header__cart img { display: inline-block; width: 22px; height: auto; margin-top: 8px; }

	.pos-header__cart-count {
		position: absolute;
		top: -4px;
		right: -7px;
		left: auto;
		width: 20px;
		min-width: 0;
		height: 20px;
		padding: 0;
		background: #4fad10;
		border: 0;
		border-radius: 50px;
		color: #fff;
		font-family: "PT Sans", sans-serif;
		font-weight: 400;
		font-size: 13px;
		line-height: 19px;
		text-align: center;
	}
}

/* На телефонах: «?» в мобильной шапке пока нет места (на боевом он есть),
   YouTube и блог скрыты — как на боевом (.top-right-block.hidden-menu-top). */
@media (max-width: 900px) {
	.pos-header__help { display: none; }
	.pos-header-top__right { display: none; }
}

/* ---------- Полоса меню ---------- */

@media (min-width: 1300px) {
	/* пункты подряд слева, ширина — по тексту */
	.pos-catmenu__inner {
		justify-content: flex-start;
		max-width: 1400px;
		margin: 0 auto;
		padding: 0;
	}
	.pos-catmenu__item { flex: 0 0 auto; width: auto; }

	.pos-catmenu__link {
		box-sizing: border-box; /* 130px вместе с отступами, как в Bootstrap на боевом */
		min-width: 130px;
		justify-content: center;
		padding: 0 25px;
		background: transparent;
		color: #fff;
		font-family: "Roboto", sans-serif;
		font-weight: 500;
		font-size: 18px;
		line-height: 50px;
		transition: none;
	}

	.pos-catmenu__item:hover > .pos-catmenu__link,
	.pos-catmenu__link:hover {
		background: #197b30;
		color: #fff;
		transform: scale(1.1);
	}

	/* стрелка — картинка с боевого */
	.pos-catmenu .pos-chev {
		flex: 0 0 18px;
		width: 18px;
		height: 10px;
		margin-left: -1px;
		border: 0;
		background: url("../images/header/arow.png") center / contain no-repeat;
		transform: none;
		transition: all .2s;
	}
	.pos-catmenu__item:hover .pos-chev { transform: rotate(180deg); }
}
