/**
 * Hello Elementor Child — 커스텀 스타일
 */

/* =============================================================================
   /my-account/ 카카오 로그인 카드 (tosspay-kakao-login-card 내부)
   ============================================================================= */
.tosspay-kakao-login-card .hello-child-myaccount-kakao-btn {
	margin-top: 16px;
}
.hello-child-myaccount-kakao-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 14px 20px;
	background-color: #FEE500;
	color: #000000;
	font-size: 16px;
	font-weight: 600;
	border-radius: 8px;
	text-decoration: none;
	transition: background-color 0.2s;
	box-sizing: border-box;
}
.hello-child-myaccount-kakao-btn:hover {
	background-color: #F0D800;
	color: #000000;
}

/* =============================================================================
   Header — 우측 영역 가로 정렬 (메뉴 + CTA 버튼)
   ============================================================================= */
/*
 * NOTE: PC 헤더의 컬럼 정렬, 메뉴 패딩, 버튼 vertical alignment 등은
 * wp-admin → Elementor → Theme Builder 에서 직접 편집.
 * 강제 CSS는 모두 제거 — Elementor 편집 결과가 그대로 반영되도록 함.
 *
 * dynamic-header.php fallback (Elementor 미설치 케이스)만 유지.
 */
.hello-child-header-nav a {
	display: inline-flex;
	align-items: center;
}

/* #147: Elementor 헤더 nav-menu + login 위젯이 같은 컬럼에 있음.
   nav 위젯이 width:100% 로 stretch 되어 login 을 다음 줄로 밀어냄 → wrap 이 2줄로 쌓임 →
   상단으로 치우쳐 보임. nav 를 fit-content 로 줄여 한 줄에 배치 + 컬럼 vertical center. */
body .elementor-element-hdr_d_cta_col > .elementor-widget-wrap {
	align-items: center;
	flex-wrap: nowrap;
}
body .elementor-element-hdr_d_cta_col > .elementor-widget-wrap > .elementor-element-hdr_d_nav {
	width: auto;
	flex: 0 0 auto;
	align-self: center;
}
body .elementor-element-hdr_d_cta_col > .elementor-widget-wrap > .elementor-element-hdr_d_nav .elementor-nav-menu--main ul.elementor-nav-menu {
	flex-wrap: nowrap;
	white-space: nowrap;
}
/* hc-cta-my-account 버튼 색상/아이콘은 Elementor에서 직접 편집 */

/* =============================================================================
   글로벌 — 부모 테마 컨테이너 너비 해제 (single post full-width 레이아웃)
   ============================================================================= */

body:not(.hc-legal-page):not(.page-template-pg-shop):not(.post-type-archive-product):not(.tax-product_cat):not(.tax-product_tag) .site-main,
body:not(.hc-legal-page):not(.page-template-pg-shop):not(.post-type-archive-product):not(.tax-product_cat):not(.tax-product_tag) .page-content,
body:not(.hc-legal-page):not(.page-template-pg-shop):not(.post-type-archive-product):not(.tax-product_cat):not(.tax-product_tag) .page-header {
	max-width: 100%;
	width: 100%;
	padding: 0;
	margin: 0 auto;
}

/* =============================================================================
   Header
   ============================================================================= */
.hello-child-header {
	background: #FFFFFF;
	border-bottom: 1px solid #E5E8EB;
	position: sticky;
	top: 0;
	z-index: 1000;
}

.hello-child-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	max-width: 1131px;
	margin: 0 auto;
	padding: 14px 40px;
	box-sizing: border-box;
}

.hello-child-header-right {
	display: flex;
	align-items: center;
	gap: 32px;
}

.hello-child-site-title {
	font-size: 20px;
	font-weight: 800;
	color: #191F28;
	text-decoration: none;
	letter-spacing: -0.5px;
}

.hello-child-site-title:hover {
	color: #0064FF;
}

.hello-child-header-nav ul {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 32px;
}

.hello-child-header-nav a {
	font-size: 15px;
	font-weight: 600;
	color: #333D4B;
	text-decoration: none;
	transition: color 0.2s;
}

.hello-child-header-nav a:hover,
.hello-child-header-nav .current-menu-item > a {
	color: #0064FF;
}

.hello-child-header-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

.hello-child-header-cta {
	display: inline-flex;
	align-items: center;
	padding: 9px 22px;
	font-size: 14px;
	font-weight: 600;
	color: #FFFFFF;
	background: #0064FF;
	border-radius: 8px;
	text-decoration: none;
	transition: all 0.2s;
}

.hello-child-header-cta:hover {
	background: #0050CC;
	color: #FFFFFF;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0, 100, 255, 0.3);
}

.hello-child-header-user {
	display: none;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	color: #191F28;
	text-decoration: none;
	transition: color 0.2s;
}
.hello-child-header-user:hover {
	color: #0064FF;
}

.hello-child-menu-toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 4px;
}

.hello-child-menu-toggle span {
	display: block;
	width: 22px;
	height: 2px;
	background: #333D4B;
	border-radius: 2px;
	transition: all 0.3s;
}

.hello-child-mobile-nav {
	display: none;
	background: #FFFFFF;
	border-top: 1px solid #E5E8EB;
	padding: 16px 24px 20px;
}

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

.hello-child-mobile-nav li {
	border-bottom: 1px solid #F2F4F6;
}

.hello-child-mobile-nav a {
	display: block;
	padding: 12px 0;
	font-size: 15px;
	font-weight: 600;
	color: #333D4B;
	text-decoration: none;
}

.hello-child-mobile-nav a:hover {
	color: #0064FF;
}

.hello-child-mobile-cta {
	display: block;
	text-align: center;
	margin-top: 16px;
	padding: 12px;
	font-size: 15px;
	font-weight: 600;
	color: #FFFFFF;
	background: #0064FF;
	border-radius: 8px;
	text-decoration: none;
}

@media (max-width: 768px) {
	.hello-child-header-nav {
		display: none;
	}

	.hello-child-header-cta {
		display: none;
	}

	.hello-child-header-user {
		display: inline-flex;
	}

	.hello-child-menu-toggle {
		display: flex;
	}

	.hello-child-mobile-nav.is-open {
		display: block;
	}

	.hello-child-header-inner {
		padding: 12px 16px;
	}

	.hello-child-header-right {
		gap: 8px;
	}
}

/* =============================================================================
   PG Shop
   ============================================================================= */
.page-template-pg-shop {
	background: #F7F8FA;
}

.hc-pg-shop-main {
	max-width: 1200px;
	margin: 0 auto;
	padding: 100px 24px;
}

.page-template-pg-shop ul.products {
	grid-template-columns: repeat(3, 1fr) !important;
	gap: 24px;
}

/* =============================================================================
   Footer
   ============================================================================= */
.hello-child-footer-main {
	background: #F8F9FA;
	padding: 56px 40px;
	border-top: 1px solid #E5E8EB;
}

.hello-child-footer-inner {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 40px;
	width: 100%;
	max-width: 1131px;
	margin: 0 auto;
	padding: 0 16px;
	box-sizing: border-box;
}

.hello-child-footer-left {
	min-width: 180px;
}

.hello-child-footer-brand {
	font-size: 28px;
	font-weight: 700;
	color: #191F28;
	margin: 0;
}

.hello-child-footer-links {
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	text-align: left;
}

.hello-child-footer-links li {
	display: inline;
	margin: 0;
}

html body .hello-child-footer-links a,
html body .hello-child-footer-links .menu-item a,
html body footer .hello-child-footer-links a {
	font-size: 14px;
	color: #8B95A1;
	text-decoration: none;
	transition: color 0.2s;
}

html body .hello-child-footer-links a:hover,
html body .hello-child-footer-links .menu-item a:hover,
html body footer .hello-child-footer-links a:hover {
	color: #0064FF;
}

.hello-child-footer-biz {
	font-size: 13px;
	color: #8B95A1;
	line-height: 1.7;
	margin: 0 0 4px;
}

.hello-child-footer-biz span {
	display: inline;
}

.hello-child-footer-biz span + span::before {
	content: " | ";
	color: #B1B1B1;
}

.hello-child-footer-copyright {
	font-size: 13px;
	color: #8B95A1;
	margin: 8px 0 0;
}

@media (max-width: 768px) {
	.hello-child-footer-inner {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.hello-child-footer-main {
		padding: 36px 20px;
	}

	.hello-child-footer-brand {
		font-size: 20px;
		text-align: center;
	}

	.hello-child-footer-links {
		justify-content: center;
	}

	.hello-child-footer-biz {
		text-align: center;
	}

	.hello-child-footer-biz span {
		display: block;
	}

	.hello-child-footer-biz span + span::before {
		content: none;
	}

	.hello-child-footer-copyright {
		text-align: center;
	}
}

/* === 카카오 로그인 페이지 === */
.hello-child-login-wrap {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 60vh;
	padding: 40px 20px;
}

.hello-child-login-box {
	width: 100%;
	max-width: 400px;
	text-align: center;
}

.hello-child-login-title {
	font-size: 24px;
	font-weight: 700;
	margin-bottom: 32px;
	color: #191919;
}

.hello-child-kakao-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 14px 20px;
	background-color: #FEE500;
	color: #000000;
	font-size: 16px;
	font-weight: 600;
	border-radius: 8px;
	text-decoration: none;
	transition: background-color 0.2s;
}

.hello-child-kakao-btn:hover {
	background-color: #F0D800;
	color: #000000;
}

.hello-child-login-greeting p {
	font-size: 18px;
	margin-bottom: 20px;
	color: #333;
}

.hello-child-login-actions {
	display: flex;
	gap: 12px;
	justify-content: center;
}

.hello-child-btn {
	display: inline-block;
	padding: 10px 20px;
	font-size: 14px;
	font-weight: 500;
	border-radius: 6px;
	text-decoration: none;
	transition: all 0.2s;
}

.hello-child-btn-outline {
	border: 1px solid #ddd;
	color: #555;
	background: #fff;
}

.hello-child-btn-outline:hover {
	border-color: #999;
	color: #333;
}

.hello-child-login-notice {
	padding: 24px;
	background: #f8f8f8;
	border-radius: 8px;
	color: #666;
	font-size: 14px;
	line-height: 1.6;
}

/* =============================================================================
   이용약관 / 개인정보 처리방침 — 본문 너비 제한 (single post와 동일)
   ============================================================================= */

.hc-legal-page .site-main {
	max-width: 800px !important;
	margin: 0 auto !important;
	padding: 40px 20px 80px !important;
}

.hc-legal-page .page-header {
	max-width: 800px !important;
	margin: 0 auto !important;
}

.hc-legal-page .page-content,
.hc-legal-page .entry-content {
	max-width: 800px !important;
	margin: 0 auto !important;
}

/* =============================================================================
   헤더 — 로그인/마이페이지 표시 조건 (logged-in body 클래스 기반)
   ============================================================================= */

/* 비회원: 데스크톱 마이페이지 버튼 숨김 */
body:not(.logged-in) [data-id="hdr_d_mypage"],
body:not(.logged-in) [data-id="c6389c2"] {
	display: none !important;
}

/* 회원: 데스크톱 로그인 버튼 숨김 */
body.logged-in [data-id="hdr_d_login"] {
	display: none !important;
}

/*
 * NOTE: 모바일 헤더의 사람 아이콘 표시/크기/패딩, 햄버거 패딩/마진,
 * 컬럼 너비 등은 wp-admin → Elementor → Theme Builder 에서 직접 편집.
 *
 * 강제 CSS는 모두 제거 — Elementor 편집 결과가 그대로 반영되도록 함.
 *
 * 사용자가 Elementor에서 편집 후 lock 활성화하고 export 하면
 * includes/templates/header.php 에 영구 반영됨.
 */

/* =============================================================================
   /my-account/ 우측 콘텐츠 영역 좌우 패딩 150
   ============================================================================= */
.woocommerce-MyAccount-content {
	padding-left: 150px !important;
	padding-right: 150px !important;
}
@media (max-width: 1024px) {
	.woocommerce-MyAccount-content {
		padding-left: 40px !important;
		padding-right: 40px !important;
	}
}
@media (max-width: 768px) {
	.woocommerce-MyAccount-content {
		padding-left: 16px !important;
		padding-right: 16px !important;
	}
}

/* =============================================================================
   모바일 햄버거 메뉴 펼침 — 화면 전체너비
   ============================================================================= */
@media (max-width: 768px) {
	/* Elementor nav-menu dropdown — 헤더 아래 풀스크린 */
	.elementor-element[data-widget_type="nav-menu.default"] .elementor-nav-menu--dropdown,
	[data-id="hdr_m_nav"] .elementor-nav-menu--dropdown,
	nav.elementor-nav-menu--dropdown {
		position: fixed !important;
		left: 0 !important;
		right: 0 !important;
		top: 56px !important;
		width: 100vw !important;
		max-width: 100vw !important;
		max-height: calc(100vh - 56px) !important;
		overflow-y: auto !important;
		margin: 0 !important;
		border-radius: 0 !important;
		background: #FFFFFF !important;
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
		z-index: 9999 !important;
	}
	nav.elementor-nav-menu--dropdown ul.elementor-nav-menu {
		display: block !important;
		width: 100% !important;
		padding: 0 !important;
		margin: 0 !important;
	}
	nav.elementor-nav-menu--dropdown ul.elementor-nav-menu li {
		display: block !important;
		width: 100% !important;
		border-bottom: 1px solid #F2F4F6 !important;
	}
	nav.elementor-nav-menu--dropdown ul.elementor-nav-menu a {
		display: block !important;
		width: 100% !important;
		padding: 16px 24px !important;
		font-size: 16px !important;
		font-weight: 600 !important;
		color: #191F28 !important;
		text-decoration: none !important;
	}

	/* dynamic-header.php fallback의 모바일 nav */
	.hello-child-mobile-nav {
		width: 100vw !important;
		max-width: 100vw !important;
		left: 0 !important;
		right: 0 !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		padding-left: 24px !important;
		padding-right: 24px !important;
		box-sizing: border-box !important;
	}
}

/* =============================================================================
   헤더/푸터 — 전체너비 (부모 테마 컨테이너 제한 해제)
   ============================================================================= */
.hello-child-header {
	width: 100%;
	max-width: 100%;
	margin-left: 0;
	margin-right: 0;
}

.hello-child-footer-main {
	width: 100%;
	max-width: 100%;
	margin-left: 0;
	margin-right: 0;
}

.hello-child-footer-bottom {
	width: 100%;
	max-width: 100%;
	margin-left: 0;
	margin-right: 0;
}

