/**
 * CreatorsServices — Site Header
 * header.css
 */

:root {
	--cs-header-bg: rgba(8, 6, 20, 0.78);
	--cs-header-line: rgba(148, 130, 255, 0.16);
	--cs-violet: #8b5cf6;
	--cs-violet-2: #a78bfa;
	--cs-text: #f4f1ff;
	--cs-text-soft: #b7b0d6;
	--cs-text-muted: #7d77a0;
}

html {
	background: #070714;
}

body {
	margin: 0;
	background: #070714;
	color: var(--cs-text);
}

.cs-site {
	min-height: 100%;
	min-width: 0;
	background: #070714;
}

html.cs-mobile-open,
body.cs-mobile-open {
	overflow: hidden;
}

.cs-skip-link:focus {
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 10000;
	padding: 10px 14px;
	border-radius: 10px;
	background: #8b5cf6;
	color: #fff;
}

.cs-header {
	position: sticky;
	top: 0;
	z-index: 80;
	backdrop-filter: blur(18px);
	background: var(--cs-header-bg);
	border-bottom: 1px solid var(--cs-header-line);
}

.cs-header.is-open,
.cs-header.is-search-open {
	z-index: 120;
}

.cs-header__inner {
	width: min(100% - 32px, 1240px);
	margin-inline: auto;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 24px;
	min-height: 78px;
}

.cs-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--cs-text);
	text-decoration: none;
}

.cs-brand__logo img,
.cs-brand__logo .custom-logo {
	display: block;
	max-height: 42px;
	width: auto;
}

.cs-brand__mark {
	display: grid;
	place-items: center;
	color: var(--cs-violet-2);
}

.cs-brand__name {
	display: block;
	font-size: 17px;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.1;
}

.cs-brand__name span {
	color: var(--cs-violet-2);
}

.cs-brand__tagline {
	display: block;
	margin-top: 3px;
	font-size: 11px;
	color: var(--cs-text-muted);
}

.cs-header__nav {
	display: flex;
	justify-content: center;
}

.cs-nav {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cs-nav a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 12px;
	border-radius: 999px;
	color: var(--cs-text-soft);
	font-size: 14px;
	font-weight: 650;
	text-decoration: none;
	transition: background 0.2s, color 0.2s;
}

.cs-nav a:hover,
.cs-nav .current-menu-item > a,
.cs-nav .current_page_item > a {
	background: rgba(139, 92, 246, 0.12);
	color: #fff;
}

.cs-nav__arrow {
	display: grid;
	place-items: center;
	opacity: 0.7;
}

.cs-header__actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.cs-header-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-width: 42px;
	height: 42px;
	padding: 0 11px;
	border: 1px solid var(--cs-header-line);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.03);
	color: var(--cs-text-soft);
	cursor: pointer;
	text-decoration: none;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.cs-header-action:hover,
.cs-header-action[aria-expanded="true"] {
	background: rgba(139, 92, 246, 0.14);
	border-color: rgba(167, 139, 250, 0.3);
	color: #fff;
}

.cs-header-action svg {
	display: block;
}

.cs-account-link__text {
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
}

.cs-header-cart {
	position: relative;
}

.cs-cart__count {
	position: absolute;
	top: -6px;
	right: -6px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 999px;
	background: linear-gradient(180deg, #a78bfa, #7c3aed);
	color: #fff;
	font-size: 10px;
	font-weight: 800;
	line-height: 18px;
	text-align: center;
}

.cs-header__cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 42px;
	padding: 0 16px;
	border-radius: 999px;
	background: linear-gradient(180deg, #a78bfa, #7c3aed);
	color: #fff;
	font-size: 13px;
	font-weight: 750;
	text-decoration: none;
	box-shadow: 0 10px 24px rgba(124, 58, 237, 0.28);
}

.cs-header__cta:hover {
	color: #fff;
}

.cs-mobile-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 42px;
	height: 42px;
	padding: 0 11px;
	border: 1px solid var(--cs-header-line);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.03);
	cursor: pointer;
}

.cs-mobile-toggle span {
	display: block;
	height: 2px;
	border-radius: 2px;
	background: #fff;
}

.cs-search-panel {
	border-top: 1px solid var(--cs-header-line);
	background: rgba(10, 8, 24, 0.96);
}

.cs-search-panel[hidden] {
	display: none;
}

.cs-search-panel__inner {
	width: min(100% - 32px, 1240px);
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 0 18px;
}

.cs-search-form {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 52px;
	min-width: 0;
	padding: 6px 6px 6px 16px;
	border-radius: 16px;
	background: #12102a;
	border: 1px solid var(--cs-header-line);
}

.cs-search-form input[type="search"] {
	flex: 1;
	min-width: 0;
	border: 0;
	background: transparent;
	color: #fff;
	font: inherit;
	outline: none;
}

.cs-search-form__icon {
	color: var(--cs-violet-2);
}

.cs-search-form__submit {
	min-height: 40px;
	padding: 0 16px;
	border: 0;
	border-radius: 12px;
	background: linear-gradient(180deg, #a78bfa, #7c3aed);
	color: #fff;
	font-weight: 750;
	cursor: pointer;
}

.cs-search-panel__close {
	width: 42px;
	height: 42px;
	border: 1px solid var(--cs-header-line);
	border-radius: 12px;
	background: transparent;
	color: #fff;
	font-size: 24px;
	cursor: pointer;
}

@media (max-width: 1100px) {
	.cs-header__nav,
	.cs-header__cta,
	.cs-account-link__text,
	.cs-language-toggle span {
		display: none;
	}

	.cs-header__inner {
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 12px;
		width: min(100% - 24px, 1240px);
		min-height: 64px;
	}

	.cs-header__actions {
		gap: 6px;
	}

	.cs-mobile-toggle {
		display: flex;
	}
}

@media (max-width: 720px) {
	.cs-brand__tagline {
		display: none;
	}

	.cs-header-action,
	.cs-mobile-toggle {
		min-width: 40px;
		width: 40px;
		height: 40px;
		padding: 0;
	}

	.cs-search-panel__inner {
		width: min(100% - 24px, 1240px);
		gap: 8px;
		padding: 12px 0 14px;
	}

	.cs-search-form {
		min-height: 46px;
		padding: 4px 4px 4px 12px;
	}
}

@media (max-width: 400px) {
	.cs-language-toggle,
	.cs-account-link {
		display: none;
	}
}
