
/* 헤더 */
.site-header {
	position: relative;
	border-bottom: 1px solid var(--line);
	background: #fff;
	transition: all .3s;
}

.site-header.fixed {
	position: fixed;
	left: 0;
	right: 0;
	z-index: 1000;
}

.top-aside {
	border-bottom: 1px solid var(--line);
}

.top-links {
	display: flex;
	justify-content: flex-end;
	gap: 14px;
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 14px 0;
	font-size: 12px;
	color: var(--text-sub);
}

.top-links a {
	text-decoration: none;
	color: inherit;
}

.top-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	position: relative;
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 18px 0px;
	background: #fff;
}
.logout {
	display: none;
}

.logo {
	font-weight: 700;
	letter-spacing: -0.5px;
	color: #2e9c5e;
}

.nav {
	display: flex;
	gap: 80px;
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	font-size: 20px;
	font-weight: 700;
}

.nav a {
	overflow: hidden;
	position: relative;
	padding-bottom: 5px;
	font-weight: 500;
	text-decoration: none;
	color: var(--text-main);
}

.nav a:after {
	display: block;
	position: absolute;
	bottom: 0;
	left: -100%;
	width: 100%;
	height: 2px;
	background-color: var(--text-main);
	transition: all 0.3s;
	content: "";
}

.nav a.sale:after {
	background-color: var(--accent);
}

.nav a:hover:after {
	left: 0;
}

.nav .sale {
	font-weight: 700;
	color: var(--accent);
}

.header-icons {
	display: flex;
	gap: 18px;
	font-size: 12px;
	color: var(--text-sub);
}

.header-icons a {
	text-decoration: none;
	color: inherit;
}

.icon-link {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 500;
}

/* 모바일 aside */
.m-menu-btn {
	display: none;
	width: 19px;
	height: 14px;
	padding-top: 27px;
}
.m-menu-btn span {
	display: block;
	position: relative;
	z-index: 1200;
	width: 100%;
	height: 2px;
	border-radius: 1px;
	background-color: #000;
	transition: all .3s;
}
.m-menu-btn span + span {
	margin-top: 4px;
}
.m-menu-btn.active span:nth-child(2) {
		opacity: 0;
}
.m-menu-btn.active span:nth-child(1) {
		transform: translate(0px, 6px) rotate(45deg);
}
.m-menu-btn.active span:nth-child(3) {
		transform: translate(0px, -6px) rotate(-45deg);
}
.m-menu-top {
		position: fixed;
		right: -100%;
		top: 0;
		z-index: 1001;
		width: 75%;
		height: 100vh;
		padding: 70px 30px 30px 30px;
		background-color: #fff;
		transition: all .3s;
}
.mobile-menu.active .m-menu-top {
	right: 0;
}
.m-menu-top-txt p {
	font-size: 18px;
}
.m-menu-top-txt p span {
	font-weight: 700;
}
.m-menu-top-txt {
		margin-bottom: 30px;
}

.m-menu-bg {
	position: fixed;
	right: 0;
	top: 0;
	z-index: 1000;
	width: 100vw;
	height: 100vh;
	background-color: rgba(0, 0, 0, 0.45);
	transition: all .3s;
}

/* 모바일 하단 바 */

.mobile-header {
	display: none;
	position: fixed;
	left: 0;
	bottom: 0;
	z-index: 1100;
	width: 100%;
	background-color: #fff;
}
.mobile-header nav {
	display: flex;
	justify-content: space-between;
	padding: 20px;
}
.m-h-icon-wrap {
		position: relative;
}
.m-h-icon-wrap figure:last-child {
		position: absolute;
		left: 0;
		top: 0;
		opacity: 0;
		transition: all .3s;
}
.mobile-header nav a {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 4px;
}
.mobile-header nav a.is-active .m-h-icon-wrap figure:last-child,
.mobile-header nav a:hover .m-h-icon-wrap figure:last-child {
	opacity: 1;
}
.mobile-header nav a span {
		font-size: 13px;
}

/* 푸터 */
.site-footer {
	padding: 16px 0 34px 0;
	border-top: 1px solid var(--line);
	background: var(--bg);
	font-size: 12px;
	color: #777;
}

.footer-top .f-inner,
.footer-bottom {
	max-width: var(--max-width);
	margin: 0 auto;
}

.footer-top {
	border-bottom: 1px solid var(--line);
}
.footer-top .f-inner {
	display: flex;
	gap: 16px;
	padding-bottom: 14px;
}

.footer-top button,
.footer-top .footer-link {
	padding: 0;
	border: none;
	background: transparent;
	font-size: 12px;
	text-decoration: none;
	color: #666;
	cursor: pointer;
}

.footer-bottom {
	display: flex;
	align-items: flex-start;
	gap: 28px;
	padding-top: 30px;
}

.footer-bottom .logo img {
	height: 26px;
}

.footer-info {
	display: flex;
	flex-direction: column;
	flex: 1;
	line-height: 1.6;
}

.company-info {
	display: flex;
	flex-wrap: wrap;
	margin-bottom: 15px;
}

.company-info span {
	display: inline-block;
}

.safety {
	margin: 0;
	line-height: 1.5;
}

.f-copy {
	margin: 0;
	color: #9a9a9a;
}

/* 모달 */
.modal {
	display: none;
	align-items: center;
	justify-content: center;
	position: fixed;
	inset: 0;
	z-index: 100;
}

.modal.active {
	display: flex;
}

.modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
}

.modal-dialog {
	position: relative;
	width: min(560px, 92vw);
	padding: 18px 20px;
	border-radius: 8px;
	background: #fff;
	z-index: 1;
}

.modal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--line);
}

.modal-close {
	padding: 6px 10px;
	border: none;
	border-radius: 4px;
	background: #efefef;
	font-size: 12px;
	cursor: pointer;
}

.modal-body {
	font-size: 13px;
	color: #555;
	line-height: 1.6;
}

/* 인증 페이지 */
.auth-page {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: calc(100vh - 120px);
	padding: 40px 16px;
	background: #fafafa;
}

.auth-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: min(360px, 90vw);
	padding: 24px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: #fff;
}

.auth-card h1 {
	margin: 0;
	font-size: 18px;
}

.auth-card label {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 13px;
	color: #555;
}

.auth-card input {
	padding: 8px 10px;
	border: 1px solid var(--line);
	border-radius: 4px;
	font-size: 13px;
}

.auth-button {
	padding: 10px 0;
	border: none;
	border-radius: 4px;
	background: #2e9c5e;
	font-weight: 600;
	color: #fff;
	cursor: pointer;
}

.auth-link {
	font-size: 12px;
	text-align: center;
	text-decoration: none;
	color: #2e9c5e;
}


@media screen and (max-width: 1440px) {
	.top-bar {
		max-width: 100%;
		padding: 18px 20px;
	}
	.top-links {
		max-width: 100%;
		padding: 18px 20px 0 20px;
	}

	/* footer */
	.footer-top .f-inner {
		width: 100%;
		padding: 0 20px 15px 20px;
	}
	.footer-bottom {
		padding: 30px 20px;
	}
}

@media screen and (max-width: 900px) {
	.logo {
		width: 80px;
	}
	.logo img {
		width: 100%;
	}
	.nav {
		gap: 30px;
	}
	.nav a {
		font-size: 16px;
	}
	.header-icons .icon-figure {
		width: 20px;
		height: 20px;
	}
	.header-icons .icon-figure img {
		display: block;
		width: 100%;
	}
	.header-icons a span {
		font-size: 14px;
	}
}

@media screen and (max-width: 768px) {
	.site-header {
		display: flex;
		justify-content: space-between;
		padding: 0 20px;
	}
	.top-bar {
		margin: unset;
		padding: 18px 0;
	}
	.nav {
		flex-direction: column;
		position: static;
		transform: translate(0);
	}
	.mobile-header {
		display: block;
	}
	.top-links {
		justify-content: start;
		margin-bottom: 30px;
		padding: 0 0 30px 0;
		border-bottom: 1px solid #e6e6e6;
		font-size: 16px;
	}
	.header-icons {
		display: none;
	}
	.m-menu-btn {
		display: block;
	}
	.top-aside {
		border: none;
	}
	.nav a {
		font-size: 20px;
	}
	.nav a:after {
		display: none;
	}

	/* footer */
	.footer-bottom {
		flex-direction: column;
	}
}