/**
 * JT TypePro — global site header
 */

:root {
	--jt-tp-header-bg: #f3f3f3;
	--jt-tp-header-text: #111111;
	--jt-tp-header-muted: #5c5c5c;
	--jt-tp-header-border: rgba(0, 0, 0, 0.06);
	--jt-tp-header-h: 72px;
	--jt-tp-header-pad-x: clamp(20px, 4vw, 48px);
	--jt-tp-header-font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.jt-tp-header {
	position: sticky;
	top: var(--jt-header-offset, 0);
	z-index: 100001;
	width: 100%;
	max-width: 100%;
	background: var(--jt-tp-header-bg);
	border-bottom: 1px solid var(--jt-tp-header-border);
	color: var(--jt-tp-header-text);
	font-family: var(--jt-tp-header-font);
}

.jt-tp-header__shell {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	width: 100%;
	min-height: var(--jt-tp-header-h);
	margin: 0 auto;
	padding: 0 var(--jt-tp-header-pad-x);
}

.jt-tp-header__brand {
	flex: 0 1 auto;
	min-width: 0;
	margin: 0;
	font-size: clamp(1rem, 1.6vw, 1.125rem);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.02em;
}

.jt-tp-header__brand a {
	color: var(--jt-tp-header-text);
	text-decoration: none;
}

.jt-tp-header__brand a:hover,
.jt-tp-header__brand a:focus-visible {
	opacity: 0.72;
}

.jt-tp-header__brand--logo .custom-logo-link {
	display: inline-flex;
	align-items: center;
	line-height: 0;
}

.jt-tp-header__brand--logo img {
	display: block;
	width: auto;
	max-height: 48px;
	height: auto;
}

.jt-tp-header__nav {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	min-width: 0;
}

.jt-tp-header__menu {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: clamp(16px, 2.5vw, 36px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.jt-tp-header__menu a {
	display: inline-block;
	color: var(--jt-tp-header-text);
	font-size: clamp(0.8125rem, 1.1vw, 0.9375rem);
	font-weight: 700;
	letter-spacing: -0.01em;
	text-decoration: none;
	white-space: nowrap;
}

.jt-tp-header__menu a:hover,
.jt-tp-header__menu a:focus-visible,
.jt-tp-header__menu .current-menu-item > a,
.jt-tp-header__menu .current_page_item > a {
	opacity: 0.55;
}

.jt-tp-header__utils {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: clamp(12px, 2vw, 22px);
	margin-left: clamp(12px, 2vw, 28px);
}

.jt-tp-header__util-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 40px;
	min-height: 40px;
	padding: 0;
	border: none;
	border-radius: 8px;
	background: transparent;
	color: var(--jt-tp-header-text);
	font: inherit;
	font-size: 0.8125rem;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	transition: opacity 0.15s ease;
}

.jt-tp-header__util-btn:hover,
.jt-tp-header__util-btn:focus-visible {
	opacity: 0.6;
	outline: none;
}

.jt-tp-header__util-btn svg {
	display: block;
	width: 22px;
	height: 22px;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.75;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.jt-tp-header__util-btn--sign {
	padding: 0 4px;
}

.jt-tp-header__util-label {
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.jt-tp-header__cart-count,
.jt-tp-header__utils .jt-cart-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--jt-tp-header-text);
	color: var(--jt-tp-header-bg);
	font-size: 10px;
	font-weight: 800;
	line-height: 1;
}

.jt-tp-header__utils .jt-cart-fragment {
	display: inline-flex;
}

.jt-tp-header__utils .jt-cart-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	min-width: 40px;
	min-height: 40px;
	padding: 0;
	border: none;
	border-radius: 8px;
	background: transparent;
	color: var(--jt-tp-header-text);
	text-decoration: none;
	position: relative;
}

.jt-tp-header__utils .jt-cart-badge svg {
	display: block;
	width: 22px;
	height: 22px;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.75;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.jt-tp-header__utils .jt-cart-badge.is-empty .jt-cart-count {
	display: none;
}

body.jt-typepro-layout {
	padding-top: 0;
}

@media (max-width: 782px) {
	.jt-tp-header__shell {
		flex-wrap: wrap;
		row-gap: 12px;
		padding-top: 12px;
		padding-bottom: 12px;
		min-height: 0;
	}

	.jt-tp-header__brand {
		flex: 1 1 100%;
	}

	.jt-tp-header__nav {
		flex: 1 1 auto;
		justify-content: flex-start;
	}

	.jt-tp-header__utils {
		margin-left: 0;
	}
}
