/**
 * J Martin Skincare — Header styles
 */

.jmartin-site-header {
	position: relative;
	z-index: 100;
	width: 100%;
}

.jmartin-site-header--solid {
	background: var(--jmartin-olive-header);
}

.jmartin-site-header--transparent {
	position: absolute;
	top: 0;
	left: 0;
	background: transparent;
}

.jmartin-site-header.is-sticky {
	position: fixed;
	top: 0;
	left: 0;
	background: var(--jmartin-olive-header);
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.jmartin-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 1.25rem;
	max-width: var(--jmartin-wide);
	margin-inline: auto;
}

.jmartin-site-logo {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	text-decoration: none;
}

.jmartin-site-logo__img {
	height: 48px;
	width: auto;
	max-width: 160px;
}

.jmartin-site-logo__text {
	font-family: var(--jmartin-font-heading);
	font-size: 1.25rem;
	color: var(--jmartin-white);
	line-height: 1.1;
}

.jmartin-site-logo__text small {
	display: block;
	font-family: var(--jmartin-font-body);
	font-size: 0.55rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
}

.jmartin-primary-nav {
	display: none;
}

.jmartin-primary-nav ul {
	display: flex;
	align-items: center;
	gap: 2rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.jmartin-primary-nav a {
	color: var(--jmartin-white);
	font-size: 0.9rem;
	font-weight: 500;
	text-decoration: none;
}

.jmartin-primary-nav a:hover,
.jmartin-primary-nav .current-menu-item a {
	opacity: 1;
	text-decoration: underline;
	text-underline-offset: 4px;
}

.jmartin-header-actions {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.jmartin-header-action {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	color: var(--jmartin-white);
	cursor: pointer;
	padding: 0.25rem;
	text-decoration: none;
}

.jmartin-header-action:hover {
	opacity: 0.85;
}

.jmartin-header-action--menu {
	display: flex;
}

.jmartin-cart-count {
	position: absolute;
	top: -4px;
	right: -6px;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	background: #e53935;
	color: var(--jmartin-white);
	font-size: 0.65rem;
	font-weight: 700;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

@media (min-width: 1024px) {
	.jmartin-primary-nav {
		display: block;
	}

	.jmartin-header-action--menu {
		display: none;
	}

	.jmartin-header-inner {
		padding: 1.25rem 2rem;
	}
}
