/* =========================================================
   header.css
   ---------------------------------------------------------
   목적:
   - 피그마 수치 고정 방식 제외
   - 현재 마크업 유지
   - 시안 스크린샷 기준으로 헤더를 자연스럽게 보정
   - PC: 좌측 로고 / 우측 메뉴+검색
   - Mobile: 햄버거 / 중앙 로고 / 검색
   ========================================================= */

/* =========================================================
   공통
   ========================================================= */
body{background: #f5f5f5 !important; }
.site-header,
.site-header *,
.site-header *::before,
.site-header *::after {
	box-sizing: border-box;
}

.site-header {
	position: relative;
	z-index: 50;
	background: transparent !important;
}

.site-header__inner {
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding: 22px 28px;
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	column-gap: 24px;
}

/* =========================================================
   로고
   ========================================================= */
.site-header__branding {
	display: flex;
	align-items: center;
	min-width: 0;
}

.site-header__branding a,
.site-header__brand-link,
.site-header__branding .custom-logo-link {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	color: #111111;
	line-height: 0;
}

.site-header__brand-text {
	font-size: 42px;
	line-height: 1;
	font-weight: 900;
	letter-spacing: -0.05em;
	color: #111111;
}

.site-header__logo,
.custom-logo-link img {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 34px;
}

/* =========================================================
   PC 메뉴
   ========================================================= */
.site-header__nav {
	display: flex;
	align-items: center;
	justify-self: end;
}

.site-header__menu {
	display: flex;
	align-items: center;
	gap: 52px;
	padding: 0;
	margin: 0;
	list-style: none;
}

.site-header__menu li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-header__menu a {
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	padding: 0;
	font-size: 1em;
	line-height: 1;
	font-weight: 500;
	letter-spacing: -0.02em;
	color: #111111;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.site-header__menu a:hover,
.site-header__menu a:focus {
	opacity: 0.72;
}

/* =========================================================
   검색 / 모바일 토글
   ========================================================= */
.site-header__actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
}

.site-header__search-toggle,
.site-header__mobile-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	color: #111111;
}
.site-header__search-toggle:hover,.site-header__search-toggle:focus{background:none !important;}

.site-header__search-toggle svg,
.site-header__mobile-toggle svg {
	width: 22px;
	height: 22px;
	color: #111111;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
}

.site-header__mobile-toggle {
	display: none;
	flex-direction: column;
	gap: 4px;
}

.site-header__mobile-toggle span {
	display: block;
	width: 18px;
	height: 2px;
	border-radius: 999px;
	background: #111111;
}

/* =========================================================
   검색 아이콘 색상 보정
   ---------------------------------------------------------
   - 검색 아이콘 흰색으로 보이는 문제 방지
   ========================================================= */
.site-header button[aria-label*="검색"],
.site-header a[aria-label*="검색"],
.site-header button[title*="검색"],
.site-header a[title*="검색"],
.site-header .search-toggle,
.site-header .header-search-toggle,
.site-header .sc-header__search,
.site-header .sc-header__search-toggle {
	color: #111111 !important;
}

.site-header button[aria-label*="검색"] svg,
.site-header a[aria-label*="검색"] svg,
.site-header button[title*="검색"] svg,
.site-header a[title*="검색"] svg,
.site-header .search-toggle svg,
.site-header .header-search-toggle svg,
.site-header .sc-header__search svg,
.site-header .sc-header__search-toggle svg {
	stroke: #111111 !important;
	fill: none !important;
	color: #111111 !important;
}

.site-header button[aria-label*="검색"] svg path,
.site-header a[aria-label*="검색"] svg path,
.site-header button[title*="검색"] svg path,
.site-header a[title*="검색"] svg path,
.site-header .search-toggle svg path,
.site-header .header-search-toggle svg path,
.site-header .sc-header__search svg path,
.site-header .sc-header__search-toggle svg path {
	stroke: #111111 !important;
	fill: none !important;
}

/* =========================================================
   검색 패널 / 모바일 메뉴
   ========================================================= */
.header-search-panel {
	border: none;
}

.header-search-panel__inner,
.mobile-drawer__inner {
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding: 16px 28px;
}

.mobile-drawer {
	border-top: 1px solid #ececec;
	background: #ffffff;
}

.mobile-drawer__menu {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
	padding: 0;
	margin: 0;
	list-style: none;
}

.mobile-drawer__menu li {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mobile-drawer__menu a {
	display: block;
	padding: 14px 0;
	font-size: 16px;
	line-height: 1.35;
	font-weight: 700;
	color: #111111;
	text-decoration: none;
	border-bottom: 1px solid #f0f0f0;
}

/* =========================================================
   태블릿
   ========================================================= */
@media (max-width: 1024px) {
	.site-header__inner {
		padding: 18px 20px;
	}

	.site-header__menu {
		gap: 34px;
	}

	.site-header__logo,
	.custom-logo-link img {
		max-height: 34px;
	}

	.header-search-panel__inner,
	.mobile-drawer__inner {
		padding-left: 20px;
		padding-right: 20px;
	}
}

/* =========================================================
   모바일
   ========================================================= */
@media (max-width: 767px) {
	.site-header__inner {
		padding: 14px 16px;
		grid-template-columns: 28px 1fr 28px;
		column-gap: 10px;
	}

	.site-header__branding {
		justify-content: center;
	}

	.site-header__nav {
		display: none;
	}

	.site-header__mobile-toggle {
		display: inline-flex;
		justify-self: start;
	}

	.site-header__actions {
		justify-self: end;
		gap: 0;
	}

	.site-header__logo,
	.custom-logo-link img {
		max-height: 20px;
	}

	.site-header__brand-text {
		font-size: 20px;
	}

	.site-header__search-toggle {
		width: 28px;
		height: 28px;
	}

	.site-header__search-toggle svg {
		width: 19px;
		height: 19px;
	}

	.header-search-panel__inner,
	.mobile-drawer__inner {
		padding-left: 16px;
		padding-right: 16px;
	}
}

/* =========================================================
   모바일 헤더 중앙 정렬 보정
   ---------------------------------------------------------
   목적:
   - 모바일에서 로고/메뉴/검색이 중앙 기준으로 안정적으로 보이게 정리
   - 좌우 여백을 메인 콘텐츠와 동일한 기준으로 맞춤
   ========================================================= */
@media (max-width: 767px) {

	.site-header {
		width: 100%;
	}

	.site-header__inner,
	.site-header .sc-container,
	.site-header .inside-header,
	.site-header .grid-container {
		width: 100%;
		max-width: none;
		padding-left: 16px !important;
		padding-right: 16px !important;
		box-sizing: border-box;
	}

	.site-header__inner {
		min-height: 56px !important;
		display: grid;
		grid-template-columns: 24px 1fr 24px;
		align-items: center;
		column-gap: 12px;
	}

	.site-header__branding {
		display: flex;
		justify-content: center;
		align-items: center;
		min-width: 0;
	}

	.site-header__brand-text,
	.site-header__brand-link,
	.site-header__logo,
	.custom-logo-link,
	.custom-logo-link img {
		display: block;
		margin: 0 auto;
	}

	.site-header__brand-text {
		font-size: 18px !important;
		line-height: 1 !important;
		font-weight: 900;
		letter-spacing: -0.03em;
		text-align: center;
	}

	.site-header__logo,
	.custom-logo-link img {
		max-height: 24px !important;
		width: auto;
	}

	.site-header__nav {
		display: none !important;
	}

	.site-header__mobile-toggle {
		display: inline-flex !important;
		width: 24px;
		height: 24px;
		align-items: center;
		justify-content: center;
	}

	.site-header__mobile-toggle span {
		width: 16px;
		height: 2px;
	}

	.site-header__search-toggle {
		width: 24px;
		height: 24px;
		justify-self: end;
	}

	.site-header__search-toggle svg {
		width: 18px;
		height: 18px;
	}
}

.site-header__search-icon {
	display: block;
	width: 18px;
	height: auto;
	object-fit: contain;
}

@media (max-width: 767px) {
	.site-header__search-icon {
		width: 18px;
		height: 18px;
	}
}