/* Site Header Styles */

/* Scoped CSS custom properties to avoid collision with theme-wide styles */
.announce,
header.site,
.search-panel,
.mobile-menu {
	--ink: #161513;
	--body: #5F5B55;
	--faint: #9B968E;
	--line: rgba(22, 21, 19, 0.14);
	--paper: #F5F3F0;
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Announcement Bar */
.announce {
	height: 32px;
	background: var(--ink);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	font-size: 9px;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

/* Site Header */
header.site {
	height: 112px;
	border: 0;
	position: absolute;
	left: 0;
	right: 0;
	top: 32px;
	z-index: 30;
	background: transparent;
	transition:
		height 0.42s var(--ease),
		background 0.42s var(--ease),
		box-shadow 0.42s var(--ease),
		backdrop-filter 0.42s var(--ease);
}

header.site.scrolled {
	height: 64px;
	position: fixed;
	top: 0;
	background: rgba(255, 255, 255, 0.96);
	box-shadow: 0 6px 24px rgba(22, 21, 19, 0.055);
	backdrop-filter: blur(14px);
}

header.site.search-open {
	background: #fff;
	backdrop-filter: blur(14px);
}

/* Header Inner Container */
.head-inner {
	max-width: 1800px;
	margin: 0 auto;
	padding: 0 clamp(24px, 4vw, 72px);
	height: 100%;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 28px;
}

/* Logo */
.logo {
	width: 170px;
	height: 100%;
	position: relative;
	text-decoration: none;
	display: block;
	justify-self: center;
	transition: width 0.42s var(--ease);
}

.logo-full {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 100px;
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
	transform-origin: center;
	transition:
		opacity 0.32s var(--ease),
		transform 0.42s var(--ease);
}

.logo-full .full-lockup {
	display: block;
	width: 100%;
	height: auto;
}

.logo-mark {
	position: absolute;
	left: 50%;
	top: 50%;
	display: block;
	width: auto;
	height: 43px !important;
	opacity: 0;
	transform: translate(-50%, -50%) scale(0.72);
	transform-origin: center;
	transition:
		opacity 0.32s var(--ease),
		transform 0.42s var(--ease);
}

header.site.scrolled .logo {
	width: 56px;
}

header.site.scrolled .logo-full {
	opacity: 0;
	transform: translate(-50%, -50%) scale(0.76);
}

header.site.scrolled .logo-mark {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
}

/* Main Navigation */
nav.main {
	display: flex;
	gap: 25px;
	align-items: center;
}

nav.main a {
	text-decoration: none;
	font-size: 12px;
	letter-spacing: 0.06em;
	color: var(--body);
	transition: color 0.2s;
	white-space: nowrap;
	position: relative;
	padding: 8px 0;
}

nav.main a:hover {
	color: var(--ink);
}

nav.main a::after {
	content: '';
	position: absolute;
	left: 0;
	right: 100%;
	bottom: 2px;
	height: 1px;
	background: var(--ink);
	transition: right 0.25s;
}

nav.main a:hover::after {
	right: 0;
}

/* Shop Menu Dropdown */
.shop-menu {
	position: relative;
}

.shop-menu::after {
	content: '';
	position: absolute;
	top: 100%;
	left: -50px;
	right: -50px;
	height: 22px;
	z-index: 10;
}

.shop-menu-trigger {
	border: 0 !important;
	background: transparent !important;
	padding: 8px 0 !important;
	color: var(--body) !important;
	font-family: "Poppins", Arial, sans-serif !important;
	font-size: 12px !important;
	font-weight: 400 !important;
	line-height: 1.4 !important;
	letter-spacing: 0.06em !important;
	text-transform: uppercase !important;
	display: flex !important;
	align-items: center !important;
	gap: 7px !important;
	cursor: pointer !important;
	-webkit-appearance: none !important;
	appearance: none !important;
	-webkit-tap-highlight-color: transparent !important;
	box-shadow: none !important;
	transition: color 0.2s !important;
}

.shop-menu-trigger:hover,
.shop-menu-trigger:focus {
	color: var(--ink) !important;
	background: transparent !important;
}

.shop-menu-trigger i {
	font-size: 12px;
	transition: transform 0.25s var(--ease);
}

.shop-menu:hover .shop-menu-trigger i,
.shop-menu:focus-within .shop-menu-trigger i {
	transform: rotate(180deg);
}

.shop-menu-panel {
	position: absolute;
	left: -24px;
	top: calc(100% + 22px);
	width: 290px;
	padding: 21px 24px;
	background: rgba(255, 255, 255, 0.98);
	box-shadow: 0 22px 60px rgba(22, 21, 19, 0.12);
	display: grid;
	gap: 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-8px);
	transition:
		opacity 0.25s ease,
		transform 0.35s var(--ease),
		visibility 0.25s;
}

.shop-menu:hover .shop-menu-panel,
.shop-menu:focus-within .shop-menu-panel {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.shop-menu-panel a {
	display: block;
	padding: 11px 0 !important;
	border-bottom: 1px solid var(--line);
	font-size: 11px !important;
	letter-spacing: 0.09em !important;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--body);
	transition: color 0.2s;
}

.shop-menu-panel a:hover {
	color: var(--ink);
}

.shop-menu-panel a:last-child {
	border-bottom: 0;
}

.shop-menu-panel a::after {
	display: none !important;
}

.shop-menu-panel .shop-all {
	color: #C27E81;
}

/* Mobile Menu Toggle */
.menu-toggle {
	display: none;
	width: 42px;
	height: 42px;
	border: 0;
	background: transparent;
	color: var(--ink);
	position: relative;
	z-index: 2;
	-webkit-appearance: none;
	appearance: none;
	-webkit-tap-highlight-color: transparent;
	cursor: pointer;
}

.menu-toggle span {
	position: absolute;
	left: 10px;
	width: 22px;
	height: 1px;
	background: currentColor;
	transition:
		transform 0.3s var(--ease),
		top 0.3s var(--ease),
		opacity 0.2s ease;
}

.menu-toggle span:first-child {
	top: 16px;
}

.menu-toggle span:last-child {
	top: 25px;
}

.menu-toggle[aria-expanded='true'] span:first-child {
	top: 21px;
	transform: rotate(45deg);
}

.menu-toggle[aria-expanded='true'] span:last-child {
	top: 21px;
	transform: rotate(-45deg);
}

/* Override theme button hover colors */
header.site .menu-toggle:hover,
header.site .menu-toggle:focus,
header.site .icon-btn:hover,
header.site .icon-btn:focus {
	background-color: transparent !important;
	color: var(--ink) !important;
}

.shop-menu-trigger:hover,
.shop-menu-trigger:focus,
nav.main a:hover {
	background-color: transparent !important;
}

/* Header Actions / Icon Buttons */
.head-actions {
	justify-self: end;
	display: flex;
	align-items: center;
	gap: 8px;
}

.icon-btn {
	width: 42px;
	height: 42px;
	border: 0;
	background: transparent;
	color: var(--ink);
	display: grid;
	place-items: center;
	cursor: pointer;
	position: relative;
	-webkit-appearance: none;
	appearance: none;
	-webkit-tap-highlight-color: transparent;
	text-decoration: none;
	transition: color 0.2s;
}

.icon-btn:hover {
	color: var(--body);
}

.icon-btn > i {
	font-size: 23px;
	line-height: 1;
}

.bag-count {
	position: absolute;
	right: 0;
	top: 0;
	min-width: 18px;
	height: 18px;
	border-radius: 999px;
	background: #9C7715;
	display: none;
	place-items: center;
	font-size: 9px;
	font-weight: 600;
	color: var(--ink);
}

.bag-count.on {
	display: grid;
}

/* Search Panel */
.search-panel {
	max-height: 0;
	overflow: hidden;
	opacity: 0;
	pointer-events: none;
	background: #fff;
	transition:
		max-height 0.4s var(--ease),
		top 0.42s var(--ease),
		opacity 0.24s ease;
	position: fixed;
	left: 0;
	right: 0;
	top: 144px;
	z-index: 29;
}

header.site.scrolled + .search-panel {
	top: 64px;
}

.search-panel.on {
	max-height: 148px;
	opacity: 1;
	pointer-events: auto;
	border-bottom: 1px solid var(--line);
	box-shadow: 0 18px 34px rgba(22, 21, 19, 0.045);
}

.search-panel .wrap {
	padding-top: 22px;
	padding-bottom: 26px;
	max-width: 1800px;
	margin: 0 auto;
	padding-left: clamp(24px, 4vw, 72px);
	padding-right: clamp(24px, 4vw, 72px);
}

.search-shell {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: end;
	gap: 32px;
}

.search-caption {
	display: block;
	margin-bottom: 10px;
	color: var(--faint);
	font-size: 9px;
	font-weight: 600;
	letter-spacing: 0.19em;
	text-transform: uppercase;
}

.search-field {
	display: grid;
	grid-template-columns: 22px minmax(0, 1fr);
	align-items: center;
	gap: 14px;
	border-bottom: 1px solid rgba(22, 21, 19, 0.42);
	padding-bottom: 10px;
	transition: border-color 0.2s ease;
}

.search-field:focus-within {
	border-color: var(--ink);
}

.search-field > i {
	font-size: 22px;
	line-height: 1;
}

.search-panel input {
	width: 100%;
	min-width: 0;
	border: 0;
	background: transparent;
	padding: 0;
	outline: none;
	color: var(--ink);
	font: 300 clamp(22px, 2vw, 29px) / 1.15 "Poppins", Arial, sans-serif;
	letter-spacing: -0.025em;
}

.search-panel input::placeholder {
	color: #A19A94;
	opacity: 1;
}

.search-close {
	align-self: end;
	min-height: 42px;
	border: 0;
	background: transparent;
	color: var(--body);
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 0 10px;
	cursor: pointer;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	-webkit-appearance: none;
	appearance: none;
	-webkit-tap-highlight-color: transparent;
	transition: color 0.2s ease;
}

.search-close:hover {
	color: var(--ink);
}

.search-close > i {
	font-size: 18px;
	line-height: 1;
}

/* Mobile Menu */
.mobile-menu {
	display: none;
	position: fixed;
	z-index: 28;
	left: 0;
	right: 0;
	top: 144px;
	max-height: 0;
	overflow: auto;
	opacity: 0;
	pointer-events: none;
	background: rgba(255, 255, 255, 0.99);
	border-bottom: 1px solid transparent;
	transition:
		max-height 0.42s var(--ease),
		opacity 0.25s ease,
		top 0.42s var(--ease),
		border-color 0.25s ease;
}

header.site.scrolled ~ .mobile-menu {
	top: 60px;
}

.mobile-menu.on {
	max-height: calc(100svh - 144px);
	opacity: 1;
	pointer-events: auto;
	border-color: var(--line);
}

header.site.scrolled ~ .mobile-menu.on {
	max-height: calc(100svh - 60px);
}

.mobile-menu-panel {
	padding: 28px 22px max(34px, env(safe-area-inset-bottom));
}

.mobile-menu-eyebrow {
	font-size: 8px;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--faint);
}

.mobile-primary {
	margin-top: 8px;
}

.mobile-primary a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 15px 2px;
	border-bottom: 1px solid var(--line);
	font: 300 25px / 1.15 "Poppins", Arial, sans-serif;
	letter-spacing: -0.025em;
	text-decoration: none;
	color: var(--body);
	transition: color 0.2s;
}

.mobile-primary a:hover {
	color: var(--ink);
}

.mobile-primary a span {
	font-size: 17px;
	font-weight: 300;
	transition: transform 0.25s var(--ease);
}

.mobile-primary a:active span {
	transform: translateX(4px);
}

.mobile-primary .shop-all {
	color: #C27E81;
}

.mobile-secondary {
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid var(--line);
}

.mobile-secondary-links {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 28px;
	row-gap: 0;
	margin-top: 11px;
}

.mobile-secondary-links a {
	padding: 10px 0;
	color: var(--body);
	font-size: 11.5px;
	text-decoration: none;
	transition: color 0.2s;
}

.mobile-secondary-links a:hover {
	color: var(--ink);
}

.mobile-menu-service {
	margin-top: 28px;
	padding: 20px;
	background: var(--paper);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
}

.mobile-menu-service span {
	display: block;
	color: var(--faint);
	font-size: 8px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.mobile-menu-service a {
	font-size: 11px;
	font-weight: 500;
	text-decoration: none;
	color: var(--body);
	transition: color 0.2s;
}

.mobile-menu-service a:hover {
	color: var(--ink);
}

/* Mobile / Tablet — max-width 940px */
@media (max-width: 940px) {
	.announce {
		padding: 0 16px;
		justify-content: center;
		text-align: center;
		line-height: 1.35;
	}

	header.site {
		height: 112px;
	}

	header.site.menu-open {
		background: rgba(255, 255, 255, 0.98);
		backdrop-filter: blur(14px);
	}

	header.site.scrolled {
		height: 60px;
	}

	.head-inner {
		padding: 0 14px;
		grid-template-columns: 36px 36px 1fr 36px 36px;
		gap: 2px;
		position: relative;
	}

	.menu-toggle {
		display: block;
		grid-column: 1;
		width: 36px;
		height: 40px;
	}

	.menu-toggle span {
		left: 8px;
		width: 20px;
	}

	.logo {
		position: absolute;
		left: 50%;
		top: 0;
		width: 42px;
		height: 100%;
		opacity: 0;
		pointer-events: none;
		transform: translateX(-50%);
		transition: opacity 0.28s ease;
	}

	.logo-full {
		display: none;
	}

	.logo-mark {
		height: 30.4px;
	}

	header.site.scrolled .logo {
		width: 42px;
		opacity: 1;
		pointer-events: auto;
	}

	nav.main {
		display: none;
	}

	.head-actions {
		display: contents;
	}

	#search-toggle {
		grid-column: 2;
	}

	.head-actions .icon-btn:nth-child(2) {
		grid-column: 4;
	}

	.head-actions .icon-btn:nth-child(3) {
		grid-column: 5;
	}

	.icon-btn {
		width: 36px;
		height: 40px;
	}

	.search-panel {
		top: 144px;
	}

	header.site.scrolled + .search-panel {
		top: 60px;
	}

	.search-panel.on {
		max-height: 132px;
	}

	.search-panel .wrap {
		padding: 17px 18px 20px;
	}

	.search-shell {
		gap: 14px;
	}

	.search-caption {
		margin-bottom: 9px;
		font-size: 8px;
	}

	.search-field {
		grid-template-columns: 18px minmax(0, 1fr);
		gap: 10px;
		padding-bottom: 9px;
	}

	.search-panel input {
		font-size: 20px;
	}

	.search-close {
		width: 38px;
		height: 38px;
		min-height: 38px;
		justify-content: center;
		padding: 0 0 7px;
	}

	.search-close span {
		display: none;
	}

	.mobile-menu {
		display: block;
	}
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
	.announce,
	header.site,
	.search-panel,
	.mobile-menu,
	.announce *,
	header.site *,
	.search-panel *,
	.mobile-menu *,
	.announce *::before,
	header.site *::before,
	.search-panel *::before,
	.mobile-menu *::before,
	.announce *::after,
	header.site *::after,
	.search-panel *::after,
	.mobile-menu *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}
