/* GI Site Header */

.gi-header__utility {
	background: #000000;
	color: rgba(255, 255, 255, 0.7);
	font-family: 'Archivo', sans-serif;
	font-size: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.gi-header__utility-inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 11px 32px;
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	align-items: center;
	justify-content: space-between;
}

.gi-header__utility-left {
	display: flex;
	align-items: center;
	gap: 20px;
}

.gi-header__utility-left a {
	color: inherit;
	text-decoration: none;
}

.gi-header__utility-left a:hover {
	color: #ffffff;
}

.gi-header__sep {
	opacity: 0.3;
}

.gi-header__utility-right {
	display: flex;
	align-items: center;
	gap: 16px;
}

.gi-header__social {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 15px;
	height: 15px;
	color: rgba(255, 255, 255, 0.7);
	text-decoration: none;
}

.gi-header__social:hover {
	color: #ffffff;
}

.gi-header__social-fallback {
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1;
}

.gi-header__main {
	position: sticky;
	top: 0;
	z-index: 60;
	background: #ffffff;
	border-bottom: 1px solid #e6e6e6;
}

.gi-header__main-inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 18px 32px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
}

.gi-header__logo {
	display: inline-flex;
	align-items: center;
}

.gi-header__logo img {
	height: 48px !important;
	width: auto !important;
	display: block;
}

.gi-header__nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	align-items: center;
	gap: 16px 30px;
	font-family: 'Archivo', sans-serif;
	font-size: 12.5px;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #000000;
}

.gi-header__link {
	color: inherit;
	text-decoration: none;
	padding: 6px 0;
	border-bottom: 1px solid transparent;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.gi-header__link:hover {
	border-bottom-color: #000000;
}

.gi-header__link--button {
	background: #000000;
	color: #ffffff;
	padding: 13px 26px;
	border-bottom: none;
}

.gi-header__link--button:hover {
	opacity: 0.75;
	border-bottom: none;
}

.gi-header__caret {
	font-size: 8px;
	display: inline-block;
	transition: transform 0.28s ease;
}

.gi-header__clothing-wrap {
	/* Intentionally not position:relative — .gi-header__mega needs to escape this
	   narrow inline wrapper and size against .gi-header__main (position:sticky,
	   full viewport width) so the dropdown spans the whole header, not just the
	   width of the "Clothing" link. */
}

.gi-header__clothing-wrap:hover .gi-header__caret,
.gi-header__clothing-wrap.is-open .gi-header__caret {
	transform: rotate(180deg);
}

.gi-header__mega {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	background: #ffffff;
	border-bottom: 1px solid #000000;
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	pointer-events: none;
	transition: max-height 0.38s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.28s ease;
}

.gi-header__clothing-wrap:hover .gi-header__mega,
.gi-header__clothing-wrap.is-open .gi-header__mega {
	max-height: 460px;
	opacity: 1;
	pointer-events: auto;
}

.gi-header__mega-inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 34px 32px;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px 30px;
}

.gi-header__mega-card {
	display: flex;
	gap: 16px;
	align-items: center;
	padding-bottom: 16px;
	border-bottom: 1px solid #e6e6e6;
	text-decoration: none;
	color: inherit;
}

.gi-header__mega-card:hover {
	border-bottom-color: #000000;
}

.gi-header__mega-icon {
	flex: 0 0 auto;
	width: 56px;
	height: 56px;
	background: #f2f2f2;
	display: block;
	overflow: hidden;
}

.gi-header__mega-icon img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.gi-header__mega-text {
	display: flex;
	flex-direction: column;
}

.gi-header__mega-name {
	font-family: 'Barlow Condensed', sans-serif;
	font-weight: 600;
	font-size: 20px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #000000;
}

.gi-header__mega-items {
	font-family: 'Archivo', sans-serif;
	font-size: 12.5px;
	color: #777777;
	margin-top: 2px;
}

.gi-header__burger {
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	flex: none;
}

.gi-header__burger span {
	display: block;
	width: 22px;
	height: 2px;
	background: #000000;
	transition: transform .25s ease, opacity .25s ease;
}

.gi-header.is-nav-open .gi-header__burger span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.gi-header.is-nav-open .gi-header__burger span:nth-child(2) {
	opacity: 0;
}

.gi-header.is-nav-open .gi-header__burger span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* ---------------------------------------------------------------------
   Mobile (<=900px): utility bar wraps/shrinks, nav collapses behind a
   hamburger into a full-width dropdown panel, and the mega menu becomes
   a plain single-column list inline in that panel instead of a floating
   3-column overlay.
--------------------------------------------------------------------- */
@media (max-width: 900px) {
	.gi-header__utility-inner {
		padding: 10px 20px;
		font-size: 11px;
		gap: 10px 16px;
	}

	.gi-header__location {
		display: none;
	}

	.gi-header__sep:nth-of-type(2) {
		display: none;
	}

	.gi-header__main-inner {
		padding: 14px 20px;
	}

	.gi-header__logo img {
		height: 38px !important;
	}

	.gi-header__burger {
		display: flex;
	}

	.gi-header__nav {
		display: none;
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		background: #ffffff;
		border-top: 1px solid #e6e6e6;
		border-bottom: 1px solid #e6e6e6;
		padding: 8px 20px 20px;
		max-height: calc(100vh - 100%);
		overflow-y: auto;
	}

	.gi-header.is-nav-open .gi-header__nav {
		display: flex;
	}

	.gi-header__nav .gi-header__link {
		width: 100%;
		padding: 14px 0;
		border-bottom: 1px solid #f0f0f0;
		justify-content: space-between;
	}

	.gi-header__nav .gi-header__link--button {
		justify-content: center;
		margin-top: 14px;
		border-bottom: none;
	}

	.gi-header__clothing-wrap {
		width: 100%;
	}

	.gi-header__mega {
		position: static;
		max-height: 0;
		background: none;
		border-bottom: none;
	}

	.gi-header__clothing-wrap:hover .gi-header__mega {
		/* Hover has no meaning with a touch nav panel open — only the explicit
		   .is-open click-toggle (handled in JS) should reveal the mega list here. */
		max-height: 0;
		opacity: 0;
		pointer-events: none;
	}

	.gi-header__clothing-wrap.is-open .gi-header__mega {
		max-height: 2000px;
		opacity: 1;
		pointer-events: auto;
	}

	.gi-header__mega-inner {
		grid-template-columns: 1fr;
		gap: 14px;
		padding: 6px 0 18px;
	}

	.gi-header__mega-icon {
		width: 44px;
		height: 44px;
	}
}
