/* Dunk Basketball — Header & Footer (v1.0.0) */

:root {
	--dunk-navy: #0f1e33;
	--dunk-orange: #f26b21;
	--dunk-text: #1a1a1a;
	--dunk-border: #e8e8e8;
}

.dunk-hf-header *,
.dunk-hf-footer * {
	box-sizing: border-box;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal;
}

/* ---------------- Header ---------------- */

.dunk-hf-header {
	background: #fff;
	border-bottom: 1px solid var(--dunk-border);
	position: sticky;
	top: 0;
	z-index: 200;
}

.dunk-hf-header-inner {
	max-width: 1320px;
	margin: 0 auto;
	padding: 0 24px;
	height: 76px;
	display: flex;
	align-items: center;
	gap: 32px;
}

.dunk-hf-logo {
	flex-shrink: 0;
	line-height: 0;
}

.dunk-hf-logo img {
	height: 56px;
	width: auto;
	max-width: 240px;
	object-fit: contain;
}

/* Primary nav */
.dunk-hf-nav {
	flex: 1;
}

.dunk-hf-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 2px;
}

.dunk-hf-menu-item {
	position: relative;
}

.dunk-hf-menu-item > a {
	display: block;
	padding: 10px 13px;
	color: var(--dunk-navy);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	border-bottom: 3px solid transparent;
	white-space: nowrap;
}

.dunk-hf-menu-item > a:hover,
.dunk-hf-menu-item > a:focus-visible {
	color: var(--dunk-orange);
}

.dunk-hf-menu-item.dunk-hf-current > a {
	color: var(--dunk-orange);
	border-bottom-color: var(--dunk-orange);
}

/* Dropdowns (desktop: hover / keyboard focus) */
.dunk-hf-submenu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 230px;
	background: #fff;
	border: 1px solid var(--dunk-border);
	border-radius: 10px;
	box-shadow: 0 12px 32px rgba(15, 30, 51, .14);
	padding: 8px;
	display: none;
	flex-direction: column;
	z-index: 210;
}

.dunk-hf-menu-item:hover > .dunk-hf-submenu,
.dunk-hf-menu-item:focus-within > .dunk-hf-submenu {
	display: flex;
}

.dunk-hf-submenu .dunk-hf-menu-item > a {
	padding: 10px 14px;
	border-bottom: 0;
	font-weight: 500;
	white-space: normal;
}

.dunk-hf-submenu .dunk-hf-menu-item > a:hover {
	background: #f7f5f3;
	border-radius: 6px;
}

.dunk-hf-submenu .dunk-hf-submenu {
	top: -8px;
	left: 100%;
}

.dunk-hf-sub-toggle {
	display: none;
}

/* Header actions */
.dunk-hf-actions {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 16px;
	flex-shrink: 0;
}

.dunk-hf-search-form {
	display: flex;
	align-items: center;
	border: 1px solid #ddd;
	border-radius: 999px;
	overflow: hidden;
	background: #fff;
}

.dunk-hf-search-form input[type="search"] {
	border: 0;
	outline: none;
	height: 40px;
	width: 170px;
	padding: 0 4px 0 16px;
	font-size: 14px;
	background: transparent;
}

.dunk-hf-search-form input[type="search"]:focus {
	width: 220px;
}

.dunk-hf-search-form button {
	border: 0;
	background: var(--dunk-navy);
	color: #fff;
	height: 40px;
	width: 44px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.dunk-hf-search-form button:hover {
	background: var(--dunk-orange);
}

.dunk-hf-cart {
	position: relative;
	color: var(--dunk-navy);
	line-height: 0;
	padding: 6px;
}

.dunk-hf-cart:hover {
	color: var(--dunk-orange);
}

.dunk-hf-cart-count {
	position: absolute;
	top: -4px;
	right: -8px;
	background: var(--dunk-orange);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 18px;
	min-width: 18px;
	height: 18px;
	border-radius: 999px;
	text-align: center;
	padding: 0 4px;
}

/* Hamburger */
.dunk-hf-burger {
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	background: none;
	border: 0;
	cursor: pointer;
	padding: 0;
}

.dunk-hf-burger span {
	display: block;
	width: 24px;
	height: 2px;
	background: var(--dunk-navy);
	border-radius: 2px;
	transition: transform .2s ease, opacity .2s ease;
}

.dunk-hf-burger.is-open span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.dunk-hf-burger.is-open span:nth-child(2) {
	opacity: 0;
}

.dunk-hf-burger.is-open span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* Mobile panel */
.dunk-hf-mobile-panel {
	border-top: 1px solid var(--dunk-border);
	padding: 16px 24px 24px;
	background: #fff;
}

.dunk-hf-mobile-panel[hidden] {
	display: none;
}

.dunk-hf-search-mobile {
	margin-bottom: 8px;
}

.dunk-hf-search-mobile .dunk-hf-search-form input[type="search"] {
	width: 100%;
	flex: 1;
}

.dunk-hf-nav-mobile .dunk-hf-menu {
	flex-direction: column;
	gap: 0;
}

.dunk-hf-nav-mobile .dunk-hf-menu-item > a {
	padding: 12px 0;
	border-bottom: 1px solid #f0f0f0;
	font-size: 16px;
}

.dunk-hf-nav-mobile .dunk-hf-menu-item {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}

.dunk-hf-nav-mobile .dunk-hf-menu-item > a {
	flex: 1;
}

.dunk-hf-nav-mobile .dunk-hf-sub-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: none;
	border: 0;
	cursor: pointer;
	color: var(--dunk-navy);
}

.dunk-hf-nav-mobile .dunk-hf-menu-item.dunk-hf-open > .dunk-hf-sub-toggle svg {
	transform: rotate(180deg);
}

.dunk-hf-nav-mobile .dunk-hf-submenu {
	position: static;
	display: none;
	box-shadow: none;
	border: 0;
	border-radius: 0;
	padding: 0 0 0 16px;
	min-width: 0;
	flex-basis: 100%;
}

.dunk-hf-nav-mobile .dunk-hf-menu-item.dunk-hf-open > .dunk-hf-submenu {
	display: flex;
}

.dunk-hf-nav-mobile .dunk-hf-submenu .dunk-hf-menu-item > a {
	font-size: 15px;
	color: #444;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
	outline: 2px solid var(--dunk-orange);
	outline-offset: 2px;
}

/* ---------------- Footer ---------------- */

.dunk-hf-footer {
	background: var(--dunk-navy);
	color: #fff;
}

.dunk-hf-trust {
	border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.dunk-hf-trust-inner {
	max-width: 1320px;
	margin: 0 auto;
	padding: 20px 24px;
	display: flex;
	flex-wrap: wrap;
	gap: 16px 40px;
	justify-content: space-between;
}

.dunk-hf-trust-item {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 600;
	color: #fff;
}

.dunk-hf-trust-item svg {
	color: var(--dunk-orange);
	flex-shrink: 0;
}

.dunk-hf-footer-inner {
	max-width: 1320px;
	margin: 0 auto;
	padding: 48px 24px;
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
	gap: 40px;
}

.dunk-hf-footer-logo {
	display: inline-block;
	line-height: 0;
	margin-bottom: 16px;
}

.dunk-hf-footer-logo img {
	width: 170px;
	height: auto;
}

.dunk-hf-footer-col p {
	color: rgba(255, 255, 255, .72);
	font-size: 14px;
	line-height: 1.7;
	margin: 0 0 16px;
}

.dunk-hf-footer-col h3 {
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	margin: 0 0 16px;
}

.dunk-hf-footer-col ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.dunk-hf-footer-col ul li {
	margin-bottom: 4px;
}

.dunk-hf-footer-col ul li a {
	color: rgba(255, 255, 255, .72);
	font-size: 14px;
	line-height: 2;
	text-decoration: none;
}

.dunk-hf-footer-col ul li a:hover {
	color: #fff;
}

.dunk-hf-social {
	display: flex;
	gap: 10px;
}

.dunk-hf-social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border: 1px solid rgba(255, 255, 255, .25);
	border-radius: 50%;
	color: #fff;
	text-decoration: none;
}

.dunk-hf-social a:hover {
	background: var(--dunk-orange);
	border-color: var(--dunk-orange);
}

.dunk-hf-bottom {
	border-top: 1px solid rgba(255, 255, 255, .12);
}

.dunk-hf-bottom-inner {
	max-width: 1320px;
	margin: 0 auto;
	padding: 18px 24px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 24px;
	justify-content: space-between;
	font-size: 13px;
	color: rgba(255, 255, 255, .6);
}

/* ---------------- Responsive ---------------- */

@media (max-width: 1024px) {
	.dunk-hf-nav,
	.dunk-hf-search-desktop {
		display: none;
	}

	.dunk-hf-burger {
		display: flex;
	}

	.dunk-hf-footer-inner {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 640px) {
	.dunk-hf-header-inner {
		padding: 0 16px;
		height: 68px;
		gap: 16px;
	}

	.dunk-hf-logo img {
		height: 44px;
	}

	.dunk-hf-mobile-panel {
		padding: 16px 16px 24px;
	}

	.dunk-hf-footer-inner {
		grid-template-columns: 1fr;
		padding: 40px 16px;
		gap: 32px;
	}

	.dunk-hf-trust-inner,
	.dunk-hf-bottom-inner {
		padding-left: 16px;
		padding-right: 16px;
	}

	.dunk-hf-bottom-inner {
		flex-direction: column;
	}
}

/* Keep logo sizes on WooCommerce pages (theme sets .woocommerce img { height:auto }). */
.dunk-hf-header .dunk-hf-logo img {
	height: 56px !important;
	width: auto !important;
	max-width: 240px !important;
}
.dunk-hf-footer .dunk-hf-footer-logo img {
	width: 170px !important;
	height: auto !important;
}
@media (max-width: 640px) {
	.dunk-hf-header .dunk-hf-logo img {
		height: 44px !important;
	}
}
