/**
 * Нижняя часть шапки header9 — как в React (Header.module.css + SaleNewButtons.module.css).
 * Логотип 200×100, кнопки «Новинки» (жёлтая) и «Хиты продаж» (тёмная) вертикально.
 */

/* headerLine — строка нижней шапки, как в React (.headerLine: padding 6px 16px, gap 12px) */
.newhead-general .tsk-obl-bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	max-width: 1366px;
	min-width: 320px;
	margin: 0 auto;
	padding: 8px 20px;
	gap: 16px;
	box-sizing: border-box;
	font-family: "Montserrat", sans-serif;
}

/* Отступы блока поиска + меню (upper / lower line) */
.newhead-general .header-full-cont {
	padding: 0 4px;
}

.newhead-general .upper-line-header {
	padding: 0;
	margin: 0;
}

.newhead-general .lower-line-header {
	margin-top: 8px;
	padding: 0;
}

/* logoSection — логотип + кнопки в одной группе, gap 10px */
.newhead-general .tsk-obl-bottom .tsk-logoSection {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
}

.newhead-general .tsk-obl-bottom .logo-mobile-style {
	margin: 0;
	flex-shrink: 0;
}

.newhead-general .tsk-obl-bottom .logo-cont {
	margin: 0;
}

/* logo — 200×80, object-fit contain, hover opacity; без боковых границ */
.newhead-general .tsk-obl-bottom #logo {
	display: flex;
	align-items: center;
	transition: transform 0.3s ease;
	width: 200px;
	height: 80px;
	position: relative;
	border-left: none;
	border-right: none;
}

.newhead-general .tsk-obl-bottom #logo a,
.newhead-general .tsk-obl-bottom #logo span {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 200px;
	height: 80px;
	transition: opacity 0.3s ease;
}

.newhead-general .tsk-obl-bottom #logo a:hover,
.newhead-general .tsk-obl-bottom #logo span:hover {
	opacity: 0.9;
}

.newhead-general .tsk-obl-bottom #logo img {
	width: 100%;
	height: 100%;
	transition: opacity 0.3s ease;
	object-fit: contain;
	display: block;
}

/* Контейнер кнопок */
.tsk-saleNewContainer {
	display: flex;
	flex-direction: column;
	gap: 3px;
	margin-top: 0;
	width: 120px;
	flex-shrink: 0;
}

/* Общий стиль кнопок */
.tsk-header-btn--new,
.tsk-header-btn--sale {
	display: inline-block;
	width: 100%;

	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	text-decoration: none;
	border-radius: 6px;
	font-weight: 700;
	text-align: center;
	font-size: 10px;
	margin-top: 0;
	margin-bottom: 0;
	position: relative;
	overflow: hidden;
	letter-spacing: 0.2px;
	font-family: "Montserrat", sans-serif;
}

/* Хиты продаж — тёмный фон, белый текст */
.tsk-header-btn--sale {
	color: white;
	background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
	border: 1px solid rgba(0, 0, 0, 0.1);
	box-shadow:
		0 2px 6px rgba(0, 0, 0, 0.12),
		inset 0 1px 2px rgba(255, 255, 255, 0.1);
}

.tsk-header-btn--sale:hover {
	transform: translateY(-1px);
	box-shadow:
		0 4px 12px rgba(0, 0, 0, 0.25),
		inset 0 1px 2px rgba(255, 255, 255, 0.15);
	color: white;
}

/* Новинки — жёлтый фон, чёрный текст */
.tsk-header-btn--new {
	color: #1a1a1a;
	background: linear-gradient(135deg, #ffcc33, #ffd700 50%, #ffcc33);
	background-size: 200% 200%;
	border: 1px solid rgba(255, 204, 51, 0.3);
	box-shadow:
		0 2px 6px rgba(255, 204, 51, 0.25),
		inset 0 1px 2px rgba(255, 255, 255, 0.5);
}

.tsk-header-btn--new:hover {
	transform: translateY(-1px);
	background-position: 100% 0;
	box-shadow:
		0 4px 12px rgba(255, 204, 51, 0.4),
		inset 0 1px 2px rgba(255, 255, 255, 0.6);
	color: #1a1a1a;
}

/* Корзину в нижней части можно скрыть на узких экранах при необходимости */
/* .header-full-cont (поиск, меню) и .cart_cont — отображаются */

/* ========== 960px — корзина справа от блока Новинки/Хиты, каталог скрыт в tsk_header_catalog_menu ========== */
@media (max-width: 960px) {
	.newhead-general .tsk-obl-bottom {
		padding: 6px 16px;
		gap: 12px;
		flex-wrap: wrap;
	}

	/* Корзина рядом с блоком Новинки/Хиты справа (order: лого — 1, корзина — 2, поиск — 3) */
	.newhead-general .tsk-obl-bottom .tsk-logoSection {
		order: 1;
	}

	.newhead-general .tsk-obl-bottom .cart_cont {
		order: 2;
		flex-shrink: 0;
	}

	.newhead-general .tsk-obl-bottom .header-full-cont {
		order: 3;
		min-width: 0;
		flex: 1 1 auto;
	}

	.newhead-general .lower-line-header {
		margin-top: 6px;
	}

	.newhead-general .lower-line-header .tsk-menuList_main {
		flex-wrap: wrap;
		gap: 4px;
	}

	.newhead-general .lower-line-header .tsk-navLink {
		font-size: 12px;
		padding: 4px 8px;
	}
}

/* ========== 768px — мобильная версия (корзина в нижней панели через tsk_header_cart.css) ========== */
@media (max-width: 768px) {
	.newhead-general .tsk-obl-bottom {
		padding: 6px 12px;
		gap: 10px;
		flex-wrap: wrap;
	}

	.newhead-general .tsk-obl-bottom #logo,
	.newhead-general .tsk-obl-bottom #logo a,
	.newhead-general .tsk-obl-bottom #logo span {
		width: 140px;
		height: 70px;
	}

	.newhead-general .tsk-obl-bottom .tsk-logoSection {
		gap: 8px;
	}

	.tsk-saleNewContainer {
		width: 110px;
	}

	.tsk-header-btn--new,
	.tsk-header-btn--sale {
		font-size: 9px;
	}

	.newhead-general .lower-line-header {
		margin-top: 4px;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.newhead-general .lower-line-header .tsk-menuList_main {
		flex-wrap: nowrap;
		min-width: min-content;
	}

	.newhead-general .lower-line-header .tsk-navLink {
		font-size: 11px;
		padding: 3px 0;
		white-space: nowrap;
	}
}
