.obi-header {
	--obi-accent: #7C3AED;

	position: relative;
	padding: 0 5%;
	font-family: 'Poppins', sans-serif;
	border-bottom-style: solid;
	border-bottom-width: 0;
}

.obi-header-sticky-yes .obi-header {
	position: sticky;
	top: 0;
	z-index: 999;
}

.obi-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
}

.obi-header__logo {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
}

.obi-header__logo-icon {
	display: inline-flex;
	color: #7C3AED;
}

.obi-header__logo-text {
	font-size: 20px;
	font-weight: 700;
	color: #1E1B4B;
}

.obi-header__logo-image {
	width: 140px;
	height: auto;
	display: block;
}

.obi-header__desktop-row {
	display: flex;
	align-items: center;
	flex: 1 1 auto;
	position: relative;
}

/**
 * Nav is centered independently of the actions width by taking it
 * out of flex flow — space-between would only balance nav/actions
 * against each other, not center nav in the header as a whole.
 */
.obi-header__nav {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	justify-content: center;
	gap: 28px;
}

.obi-header__nav-link {
	position: relative;
	padding-bottom: 4px;
	color: #3F3F46;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	border-bottom: 2px solid transparent;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.obi-header__nav-link:hover,
.obi-header__nav-link.is-active {
	color: #7C3AED;
	border-bottom-color: #7C3AED;
}

.obi-header__actions {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-left: auto;
}

.obi-header__country {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #3F3F46;
	font-size: 13px;
	font-weight: 500;
	white-space: nowrap;
}

.obi-header__icon-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #3F3F46;
	text-decoration: none;
	transition: color 0.2s ease;
}

.obi-header__icon-btn:hover {
	color: var(--obi-accent);
}

.obi-header__cart {
	padding-right: 4px;
}

.obi-header__cart-count {
	position: absolute;
	top: -8px;
	right: -10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border-radius: 999px;
	background-color: #7C3AED;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	line-height: 1;
}

/**
 * Mobile menu toggle — hidden on desktop, shown only under the
 * responsive breakpoint where the desktop row moves off-canvas.
 */
.obi-header__toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #3F3F46;
	cursor: pointer;
	flex-shrink: 0;
}

/**
 * Off-canvas menu — fixed panel sliding in from the right, plus a
 * click-to-close overlay. Always in the DOM; visibility is purely
 * transform/opacity driven so it can transition smoothly.
 */
.obi-header__overlay {
	position: fixed;
	inset: 0;
	background-color: rgba(15, 15, 30, 0.45);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease;
	z-index: 999;
}

.obi-header__overlay.is-open {
	opacity: 1;
	pointer-events: auto;
}

.obi-header__offcanvas {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(320px, 85vw);
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding: 20px;
	background-color: #fff;
	box-shadow: -12px 0 32px rgba(15, 15, 30, 0.18);
	transform: translateX(100%);
	transition: transform 0.3s ease;
	overflow-y: auto;
	z-index: 1000;
}

.obi-header__offcanvas.is-open {
	transform: translateX(0);
}

.obi-header__offcanvas-head {
	display: flex;
	justify-content: flex-end;
}

.obi-header__offcanvas-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #3F3F46;
	cursor: pointer;
}

.obi-header__offcanvas .obi-header__nav {
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
}

.obi-header__offcanvas .obi-header__nav-link {
	width: 100%;
	padding: 10px 0;
}

.obi-header__offcanvas .obi-header__actions {
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	padding-top: 16px;
	border-top: 1px solid #EDEDF2;
}

body.obi-header-lock-scroll {
	overflow: hidden;
}

@media (max-width: 900px) {
	.obi-header__desktop-row {
		display: none;
	}

	.obi-header__toggle {
		display: inline-flex;
	}
}

@media (max-width: 600px) {
	.obi-header {
		padding: 0 6%;
	}
}
