/* HangdiPlay header — black bar matching redesign mockup */

:root {
	--hdp-orange: #ff6a00;
	--hdp-orange-deep: #e85d00;
	--hdp-ink: #111111;
	--hdp-header-bg: #1a1a1a;
	--hdp-white: #ffffff;
	--hdp-max: 1280px;
	--hdp-display: 'Bebas Neue', 'Anton', Impact, sans-serif;
	--hdp-sans: 'Barlow', 'Segoe UI', sans-serif;
}

.hdp-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: var(--hdp-header-bg);
	color: var(--hdp-white);
	font-family: var(--hdp-sans);
	border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.hdp-header__inner {
	width: min(100% - 1.5rem, var(--hdp-max));
	margin: 0 auto;
	min-height: 84px;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: .85rem 1rem;
}

.hdp-logo {
	font-family: var(--hdp-display);
	font-size: clamp(1.9rem, 3vw, 2.45rem);
	letter-spacing: .04em;
	line-height: 1;
	color: var(--hdp-white) !important;
	text-decoration: none !important;
	text-transform: none;
	white-space: nowrap;
	flex-shrink: 0;
}

.hdp-logo span {
	color: var(--hdp-orange);
}

.hdp-nav {
	display: flex;
	justify-content: center;
	min-width: 0;
}

.hdp-nav__list {
	display: flex;
	flex-wrap: nowrap;
	justify-content: center;
	gap: clamp(.55rem, 1.4vw, 1.45rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.hdp-nav__list a {
	position: relative;
	display: inline-block;
	padding: .4rem 0;
	color: rgba(255, 255, 255, .92) !important;
	font-size: clamp(.95rem, 1.2vw, 1.08rem);
	font-weight: 600;
	letter-spacing: .04em;
	text-decoration: none !important;
	text-transform: none;
	white-space: nowrap;
}

.hdp-nav__list a::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	background: var(--hdp-orange);
	transform: scaleX(0);
	transform-origin: center;
	transition: transform .22s ease;
}

.hdp-nav__list a:hover::after,
.hdp-nav__list a.is-active::after {
	transform: scaleX(1);
}

.hdp-nav__list a.is-active {
	color: var(--hdp-white) !important;
}

.hdp-header__actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: .65rem;
	justify-self: end;
	min-width: 0;
	flex-shrink: 0;
}

.hdp-switchers {
	display: flex;
	align-items: center;
	gap: .45rem;
	flex-shrink: 1;
	min-width: 0;
	max-width: 240px;
}

.hdp-switcher {
	position: relative;
	display: flex;
	align-items: center;
	min-width: 0;
	flex: 1 1 auto;
	z-index: 1;
}

.hdp-switcher .gtranslate_wrapper,
.hdp-switcher #alg_currency_selector,
.hdp-switcher .woocommerce-currency-switcher-form,
.hdp-switcher form {
	display: flex !important;
	align-items: center;
	width: 100%;
	margin: 0 !important;
	max-width: 110px;
}

.hdp-switcher select,
.hdp-switcher .gt_selector,
.hdp-header select.alg-currency-select,
.hdp-header #alg_currency_select,
.hdp-header select[name="alg_currency_select"],
.hdp-header .woocommerce-currency-switcher {
	appearance: none;
	-webkit-appearance: none;
	box-sizing: border-box;
	width: 100%;
	max-width: 110px;
	background: #101010 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23fff' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") right .45rem center / 9px no-repeat;
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: .35rem;
	color: #fff !important;
	font-family: var(--hdp-sans);
	font-size: .72rem;
	font-weight: 600;
	line-height: 1;
	min-height: 2rem;
	padding: .4rem 1.35rem .4rem .55rem;
	cursor: pointer;
}

.hdp-switcher option {
	color: #111;
	background: #fff;
}

/* Keep GTranslate popup from covering tools */
.hdp-switcher--lang .gtranslate_wrapper,
.hdp-switcher--lang .gt_container {
	position: relative;
	z-index: 1;
	overflow: visible;
}

.hdp-switcher--lang .gtranslate_wrapper a,
.hdp-switcher--lang .gt_container a,
.hdp-switcher--lang .glink {
	color: #fff !important;
	text-decoration: none !important;
}

.hdp-switcher--lang img {
	width: 18px !important;
	height: 18px !important;
	vertical-align: middle;
	border-radius: 2px;
}

.hdp-header__tools {
	display: flex;
	align-items: center;
	gap: .15rem;
	flex-shrink: 0;
	position: relative;
	z-index: 5;
	padding-left: .35rem;
	border-left: 1px solid rgba(255, 255, 255, .12);
}

.hdp-mobile-switchers {
	display: none;
	flex-direction: column;
	gap: .75rem;
	padding-top: .85rem;
	margin-top: .35rem;
	border-top: 1px solid rgba(255, 255, 255, .08);
}

.hdp-mobile-switchers .hdp-switcher,
.hdp-mobile-switchers .hdp-switcher .gtranslate_wrapper,
.hdp-mobile-switchers .hdp-switcher form,
.hdp-mobile-switchers select,
.hdp-mobile-switchers .gt_selector {
	max-width: none;
	width: 100%;
}

.hdp-icon-btn {
	appearance: none;
	border: 0;
	background: transparent;
	color: var(--hdp-white);
	width: 2.55rem;
	height: 2.55rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	position: relative;
	cursor: pointer;
	padding: 0;
	text-decoration: none !important;
	border-radius: 999px;
	transition: background .2s ease, color .2s ease;
	flex-shrink: 0;
}

.hdp-icon-btn:hover {
	background: rgba(255, 255, 255, .08);
	color: var(--hdp-white);
}

.hdp-icon-btn svg {
	width: 1.3rem;
	height: 1.3rem;
}

.hdp-cart__count {
	position: absolute;
	top: .15rem;
	right: .1rem;
	min-width: 1rem;
	height: 1rem;
	padding: 0 .25rem;
	border-radius: 999px;
	background: var(--hdp-orange);
	color: #fff;
	font-size: .65rem;
	font-weight: 700;
	line-height: 1rem;
	text-align: center;
}

.hdp-menu-toggle {
	display: none;
	flex-direction: column;
	gap: .28rem;
}

.hdp-menu-toggle span {
	display: block;
	width: 1.15rem;
	height: 2px;
	background: currentColor;
	transition: transform .2s ease, opacity .2s ease;
}

.hdp-menu-toggle[aria-expanded='true'] span:nth-child(1) {
	transform: translateY(5.5px) rotate(45deg);
}

.hdp-menu-toggle[aria-expanded='true'] span:nth-child(2) {
	opacity: 0;
}

.hdp-menu-toggle[aria-expanded='true'] span:nth-child(3) {
	transform: translateY(-5.5px) rotate(-45deg);
}

.hdp-search-panel {
	border-top: 1px solid rgba(255, 255, 255, .08);
	background: #141414;
	padding: .85rem 1rem 1rem;
}

.hdp-search-panel[hidden],
.hdp-mobile-nav[hidden] {
	display: none !important;
}

.hdp-search-form {
	width: min(100%, var(--hdp-max));
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: .55rem;
}

.hdp-search-form input {
	width: 100%;
	border: 1px solid rgba(255, 255, 255, .14);
	background: #0f0f0f;
	color: #fff;
	padding: .8rem 1rem;
	border-radius: .4rem;
	font: inherit;
}

.hdp-search-form button {
	border: 0;
	border-radius: .4rem;
	background: var(--hdp-orange);
	color: #fff;
	font-weight: 700;
	padding: 0 1.1rem;
	cursor: pointer;
}

.hdp-mobile-nav {
	border-top: 1px solid rgba(255, 255, 255, .08);
	background: #141414;
	padding: .5rem 1rem 1rem;
}

.hdp-mobile-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.hdp-mobile-nav a {
	display: block;
	padding: .85rem .2rem;
	border-bottom: 1px solid rgba(255, 255, 255, .06);
	color: #fff !important;
	text-decoration: none !important;
	font-weight: 600;
}

.hdp-mobile-nav a.is-active {
	color: var(--hdp-orange) !important;
}

/* Hide leftover Woodmart header chrome when custom header is active */
body.hdp-has-custom-header .whb-header,
body.hdp-has-custom-header .whb-main-header,
body.hdp-has-custom-header .wd-header-nav,
body.hdp-has-custom-header header.whb-header {
	display: none !important;
}

@media (max-width: 1100px) {
	.hdp-switchers {
		display: none;
	}

	.hdp-mobile-switchers {
		display: flex;
	}

	.hdp-header__tools {
		border-left: 0;
		padding-left: 0;
	}
}

@media (max-width: 900px) {
	.hdp-nav {
		display: none;
	}

	.hdp-menu-toggle {
		display: inline-flex;
	}

	.hdp-header__inner {
		grid-template-columns: auto 1fr;
		min-height: 74px;
	}
}
