.container {
	display: flex;
	flex-direction: column;
	gap: var(--spacing-5);
	padding: var(--spacing-3);
}

.group-box {
	display: flex;
	flex-direction: column;
	gap: calc(var(--spacing) * 5);
}

.box {
	display: flex;
	gap: calc(var(--spacing) * 5);
}

.tab-box {
	display: flex;
	flex-direction: column;
}

/*
	header: start
*/
.header {
	z-index: 10;
	position: fixed;
	top: 0;
	left: 0;
	display: flex;
	align-items: center;
	width: 100%;
	height: fit-content;
	background: var(--white);
}
.header::after {
	content: '';
	position: absolute;
	bottom: 0;
	width: 100%;
	height: 1px;
	background: var(--color-stroke);
}

/* header fixed on/off */
.header.fixed-on {
	transform: translateY(0);
	transition: all 0.2s ease-out;
	/*transition: all 0.3s ease-in-out 0.3s;*/
}
.header.fixed-off {
	transform: translateY(-100%);
	transition: all 0.2s ease-out 0.1s;
	/*transition: all 0.3s ease-in-out 0.3s;*/
}

.header:has(.title-only)::after, .header:has(.detailPage)::after {
	background: transparent;
}
.header-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: var(--spacing-5);
	width: 100%;
	max-width: var(--max-w);
	margin: 0 auto;
	padding: 0 var(--main-px);
}
.header-container.pc-only {
	display: flex;
}
.header-container.mobile-only {
	display: none;
}

.header-logo {
	flex-shrink: 0;
	display: inline-flex;
	width: 160px;
	aspect-ratio: 80/43;
}
.header-logo img {
	width: 100%;
	height: 100%;
}

/* header gnb */
.header-gnb {
	display: flex;
	align-items: center;
	gap: var(--spacing-9);
	margin: auto 0;
	/*padding: calc(var(--spacing) * 3) 0;*/
}

.gnb-item {
	position: relative;
	display: flex;
	width: fit-content;
	height: fit-content;
}
.gnb-item a {
	position: relative;
	display: block;
	padding: calc(var(--spacing)*12) calc(var(--spacing)*9) calc(var(--spacing)*14);
	font-size: var(--text-body-xl);
	font-weight: 600;
	line-height: 1.3333;  /* 24px */
	letter-spacing: calc(var(--text-body-xl) * var(--letter-spacing-ratio));
	transition: var(--transition);
}
.gnb-item > a::after {
	content: "";
	opacity: 0;
	position: absolute;
	left: 50%;
	bottom: 0;
	height: 2px;
	width: calc(100% - var(--spacing)*18);
	background: var(--secondary);
	transform: translateX(-50%);
	transition: var(--transition);
}

.gnb-item a:hover,
.gnb-item a:focus {
	color: var(--secondary); /* 예: 파란색 계열 */
}
.gnb-item.active > a {
	color: var(--secondary);
}
.gnb-item a:hover::after,
.gnb-item.active > a::after {
	opacity: 1;
}
/* header gnb sub nav */
.gnb-sub-nav {
	z-index: 1000;
	display: none;
	position: absolute;
	top: 100%;
	left: 50%;
	padding: var(--spacing-4);
	padding-top: calc(var(--spacing-4) + 3px);
	border-radius: var(--radius);
	background: var(--white);
	box-shadow: var(--shadow-option-list);
	transform: translateX(-50%);
	transition: var(--transition);
}
.gnb-sub-nav-item a {
	display: block;
	padding: var(--spacing-4) var(--spacing-5);
	border-radius: var(--radius);
	font-size: var(--text-body-md);
	font-weight: 400;
	line-height: 1.4285;  /* 20px */
	white-space: nowrap;
}
.gnb-sub-nav-item a:hover,
.gnb-sub-nav-item a:focus {
	background: var(--blue-100);
	color: var(--blue-900);
}
.gnb-sub-nav-item.active > a {
	color: var(--blue-900);
}


/* header icons */
.header-icons {
	display: flex;
	align-items: center;
}
.header-icon {
	position: relative;
	cursor: pointer;
}
.header-icon.home svg path {
	stroke: none;
}
.header-icon.home:hover svg path {
	stroke: none;
	fill: var(--secondary);
}
.header-icon.cart .badge {
	position: absolute;
	top: 0;
	right: 0;
	padding: var(--spacing) calc(var(--spacing)*3);
	border-radius: var(--radius-6);
	background: var(--secondary);
	font-size: var(--text-body-sm);
	font-weight: 400;
	line-height: 1.3333;  /* 16px */
	color: var(--white);
}
.header-icon.hamburger {
	display: unset;
	width: auto;
	height: auto;
	transition: var(--transition);
}

/* header title */
.header-title {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	font-size: var(--text-heading-sm);
	font-weight: 600;
	line-height: 1.2;  /* 24px */
}

/* pc에서 강제로 모바일 헤더 사용 */
.header-container.pc-only.force-mobile-header {
	display: none !important;
}
.header-container.mobile-only.force-mobile-header {
	display: flex !important;
}
/*
	header: end
*/

/*
	footer: start
*/
.footer {
	width: 100%;
	background: var(--gray-600);
}

.footer-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: var(--spacing-9);
	flex-wrap: wrap;
	max-width: var(--max-w);
	margin: 0 auto;
	padding: calc(var(--spacing-9)*2) 0;
}

.footer-info {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: var(--spacing-8);
}

.footer-logo {
	display: inline-flex;
	width: calc(var(--spacing-9)*4);  /* 160px */
	aspect-ratio: 80/27;
	margin-bottom: var(--spacing-5);
	filter: brightness(0) saturate(100%) invert(80%) sepia(59%) saturate(1%) hue-rotate(12deg) brightness(97%) contrast(90%);  /* #D7D7D7 */
}
.footer-logo img {
	width: 100%;
	height: 100%;
}

.footer-menu {
	display: flex;
	flex-wrap: wrap;
	gap: var(--spacing-3) var(--spacing-9);
}

.footer-menu a,
.footer-company,
.footer-row .value {
	font-size: var(--text-body-lg);
	font-weight: 400;
	line-height: 1.5;  /* 24px */
	color: var(--gray-100);
}

.footer-menu a {
	font-weight: 600;
}

.footer-company {
	display: flex;
	flex-direction: column;
	gap: var(--spacing-3);
}

.footer-row {
	display: flex;
	flex-wrap: wrap;
	gap: var(--spacing-3) var(--spacing-9);
}

.footer-company-item {
	display: flex;
	align-items: center;
	gap: var(--spacing-4);
}

.footer-row .label,
.copyright {
	font-size: var(--text-body-lg);
	font-weight: 400;
	line-height: 1.5;  /* 24px */
	color: var(--gray-400);
}

.footer-cs {
	display: flex;
	flex-direction: column;
	gap: var(--spacing-8);
	width: fit-content;
	height: fit-content;
	padding: 43px var(--spacing-8);
	border-radius: var(--radius-4);
	background-color: #F8F8F80A;  /* opacity 4% */
}
.footer-col {
	display: flex;
	flex-direction: column;
	gap: var(--spacing-3);
}

.footer-cs h4, .footer-cs p {
	font-size: var(--text-body-lg);
	font-weight: 400;
	line-height: 1.5;  /* 24px */
	color: var(--white);
}

.footer-cs p.footer-phone {
	font-size: var(--text-heading-xl);
	font-weight: 600;
	line-height: 1.1111;  /* 40px */
}

/*
	footer: end
*/


/*
	tab bar: start
*/
.tab-bar-container {
	display: none;
}
.tab-badge {
	padding: 2.5px 6px 1.5px;
	background-color: var(--gray-400);
	font-size: var(--text-body-sm);  /* 12px */
	font-weight: 400;
	line-height: 1.3333;  /* 16px */
	transition: var(--transition);
}
[role="tablist"] .nav-link:hover .tab-badge {
	background-color: var(--secondary);
}
[role="tablist"] .nav-link.active .tab-badge {
	background-color: var(--black);
}
/*
	tab bar: end
*/


/*
	menu sheet: start
*/
.sheet-overlay {
	z-index: 8;
	position: fixed;
	top: 0;
	left: 0;
	opacity: 0;
	visibility: hidden;
	display: block;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.3);
	transition: var(--transition);
}

/* 시트 메뉴 */
.menu-sheet {
	z-index: 9;
	position: fixed;
	top: 0;
	left: 0;
	width: 80%;
	max-width: 480px;
	height: calc(100% - var(--header-h) - var(--tab-bar-h));
	margin: var(--header-h) 0 var(--tab-bar-h);
	padding: 24px;
	background: white;
	box-shadow: -4px 0 10px rgba(0, 0, 0, 0.2);
	transform: translateX(-100%);
	transition: var(--transition);
	overflow-y: auto;
}

/* 보이게 만들기 */
.sheet-overlay.show {
	opacity: 1;
	visibility: visible;
}
.menu-sheet.show {
	transform: translateX(0);
}

/* 메뉴 토글 */
.menu-section {
	display: flex;
	flex-direction: column;
	gap: var(--spacing-4);
}
.menu-item {
	padding-bottom: var(--spacing-4);
	border-bottom: 1px solid var(--color-stroke);
}
.menu-item-box {
	display: flex;
	justify-content: space-between;
	gap: var(--spacing-3);
	width: 100%;
	height: 24px;
	background: transparent;
}
.menu-item-contents {
	display: flex;
	gap: var(--spacing-3);
}
.menu-item-label {
	font-size: var(--text-body-lg);
	font-weight: 600;
	line-height: 1.5;  /* 24px */
}

.sub-menu {
	display: flex;
	flex-direction: column;
	max-height: 0;
	transition: max-height 0.5s ease-in-out;
	overflow: hidden;
}
.sub-menu.show {
	max-height: 500px;
}
.sub-menu-item {
	display: flex;
	flex-direction: column;
	gap: var(--spacing-2);
}
.sub-menu-item:first-child {
	padding-top: var(--spacing-2);
}
.sub-menu-item-contents {
	padding: calc(var(--spacing)*3) var(--spacing-4);
	border-radius: var(--radius);
	font-size: var(--text-body-md);
	font-weight: 400;
	line-height: 1.4285;  /* 20px */
}
.sub-menu-item.active .sub-menu-item-contents {
	background: var(--blue-100);
	color: var(--blue-900);
}
/*
	menu sheet: end
*/

/*
	floating action button: start
*/
:root {
	--fab-go-up-icon-size: 86px;  /* 56px */
	--fab-go-up-icon-ratio: 0.651; /* 56/86 */
	--fab-go-up-shadow-margin: 0.134; /* (86-56)/86 */
	--fab-go-up-right-margin: calc((var(--fab-go-up-icon-size) * (1 - var(--fab-go-up-icon-ratio))) / 2);
	--section-margin: calc((100vw - var(--max-w)) / 2);
}
.floating-action-button {
	position: fixed;
	bottom: 60px;
	/*right: calc(var(--section-margin) - var(--fab-go-up-right-margin));*/
	right: calc(var(--fab-go-up-right-margin));
	z-index: 10;
	transition: var(--transition);
	opacity: 0;
	visibility: hidden;
	transform: translateY(20px);
}

.floating-action-button.visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.btn-fab {
	transition: var(--transition);
}
.btn-fab .fab-go-up-icon {
	width: var(--fab-go-up-icon-size);
	height: var(--fab-go-up-icon-size);
	transition: var(--transition);
}
.btn-fab .fill {
	fill: var(--secondary);
	transition: var(--transition);
}
.btn-fab .stroke {
	stroke: var(--secondary);
	transition: var(--transition);
}
.btn-fab:hover .fill {
	fill: var(--blue-700);
}
.btn-fab:hover .stroke {
	stroke: var(--blue-700);
}
body:has(.header-container.mobile-only.title-only) .floating-action-button {
	display: none;
}
/*
	floating action button: end
*/
.icon-home::before {
	content: unset;
}

/* =========================================================================
   no data   ========================================================================= */
.no-data {
	color: var(--text-disabled) !important;
}

/* =========================================================================
   page title, description  ========================================================================= */
.page-title-box {
	display: flex;
	flex-direction: column;
	gap: var(--spacing-3);
}

.page-title {
	margin-bottom: 0;
}

.page-description {
	color: var(--text-secondary);
}

/* =========================================================================
   bottom-fixed-btn-box  ========================================================================= */
main:has(.bottom-fixed-btn-box) {
	--tab-bar-h: 120px;
	padding-bottom: 120px;
}
.bottom-fixed-btn-box {
	position: fixed;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: var(--spacing-5);
	width: 100%;
	max-width: var(--max-w);
	margin: 0 auto;
	padding: var(--spacing-8) var(--spacing-3);
	background: var(--white);
	transition: all 0.2s ease-out 0.2s;
}
/* body:has(.header.fixed-off) .bottom-fixed-btn-box {
	top: 0;
} */

.bottom-fixed-btn-box .btn {
	padding-right: unset;
	padding-left: unset;
}

.bottom-fixed-btn-box .error-message {
	position: absolute;
	top: var(--spacing-3);
	left: 50%;
	transform: translateX(-50%);
	font-size: var(--text-body-sm);
	font-weight: 400;
	line-height: 1.3333; /* 16px */
	color: var(--red-text);
}

/* 그냥 submit button box */
.common-btn-box {
	display: flex;
	gap: var(--spacing-5);
	width: 100%;
	padding: var(--spacing-8) 0 0;
}

/*
	Breakpoints
*/
/* laptop */
@media (max-width: 1440px) {
	/* header */
	.header-container {
		padding: 0 var(--spacing-3) 0 var(--spacing-5);
	}
	/* footer */
	.footer {
		width: 100%;
	}
	.footer-container {
		padding: calc(var(--spacing-9) * 2) var(--spacing-5);
	}
	/* floating action button */
	.floating-action-button {
		right: calc(var(--spacing-5) - var(--fab-go-up-right-margin));
	}
}

/* tablet */
@media (max-width: 1023px) {
}

/* mobile */
@media (max-width: 767px) {
	/* header */
	.header:has(.header-container.mobile-only.force-mobile-header) {
		border-bottom: 1px solid transparent;
	}
	.header-container.pc-only {
		display: none;
	}
	.header-container.mobile-only {
		display: flex;
	}
	.header-container {
		position: relative;
		padding: var(--spacing-3) var(--spacing-3) var(--spacing-3) var(--spacing-5);
	}
	.header-logo {
		width: calc(var(--spacing-9)*2);
	}
	.icon-go-back {
		margin-left: calc(var(--spacing-5)*-1);
	}

	/* footer */
	.footer {
		padding-bottom: var(--tab-bar-h);
	}
	.footer-container {
		gap: var(--spacing-8);
		padding: var(--spacing-9) var(--spacing-5) var(--spacing-7);
	}
	.footer-logo {
		width: calc(var(--spacing-9)*2);
		margin-bottom: 0;
	}
	.footer-company,
	.footer-row .value {
		font-size: var(--text-body-sm);
		line-height: 1.3333;  /* 16px */
	}
	.footer-menu a {
		font-size: var(--text-body-md);
		line-height: 1.4285;  /* 20px */
	}
	.footer-menu {
		gap: var(--spacing-3) var(--spacing-5);
	}
	.footer-company {
		gap: var(--spacing-4);
	}
	.footer-row {
		gap: var(--spacing-4) var(--spacing-3);
	}
	.company-name {
		flex-basis: 100%;
	}
	.footer-row .label,
	.copyright {
		font-size: var(--text-body-sm);
		line-height: 1.3333;  /* 16px */
	}
	.footer-cs {
		gap: var(--spacing-7);
		width: 100%;
		padding: var(--spacing-7) var(--spacing-5);
	}
	.footer-col {
		gap: var(--spacing-2);
	}
	.footer-cs h4, .footer-cs p {
		font-size: var(--text-body-sm);
		line-height: 1.3333;  /* 16px */
	}

	.footer-cs p.footer-phone {
		margin-top: var(--spacing-2);
		font-size: var(--text-heading-sm);
		font-weight: 600;
		line-height: 1.2;  /* 24px */
	}

	/*
		tab bar: start
	*/
	body:has(.header-container.mobile-only.title-only) .tab-bar-container {
		display: none;
	}
	.tab-bar-container {
		position: fixed;
		bottom: 0;
		left: 0;
		z-index: 11;
		display: block;
		width: 100%;
		background: var(--white);
	}
	.tab-bar-list {
		display: flex;
		justify-content: space-evenly;
		align-items: center;
		gap: var(--spacing-6);
		width: 100%;
		padding: var(--spacing-3) var(--spacing-6);
	}
	.tab-bar-link {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: var(--spacing-2);
		width: 100%;
		min-width: var(--spacing-10);
		padding: var(--spacing) 0;
		transition: var(--transition);
	}

	.tab-label {
		font-size: var(--text-body-xs);
		font-weight: 500;
		line-height: var(--text-body-lg);
		transition: var(--transition);
	}

	/* tab hover, active */
	.tab-bar-item:hover .tab-icon svg path,
	.tab-bar-item.active .tab-icon svg path {
		stroke: var(--secondary);
	}
	/* 아이콘 fill에 컬러 있는 경우 */
	.tab-icon.icon-home svg path {
		stroke: none;
		fill: var(--gray-600);
	}
	.tab-icon.icon-home:hover svg path {
		stroke: none;
	}
	.tab-bar-item:hover .tab-icon.icon-home svg path,
	.tab-bar-item.active .tab-icon.icon-home svg path {
		stroke: none;
		fill: var(--secondary);
	}

	.tab-bar-item:hover .tab-label,
	.tab-bar-item.active .tab-label {
		color: var(--secondary);
	}
	/*
		tab bar: end
	*/

	/*
	floating action button: start
	*/
	:root {
		--fab-go-up-icon-size: 55.29px;  /* 36px */
	}
	body:has(.header-container.mobile-only.title-only) .floating-action-button {
		display: none;
	}
	.floating-action-button {
		bottom: 80px;
		right: calc(var(--spacing-5) - var(--fab-go-up-right-margin));
		opacity: 0;
		visibility: hidden;
		transform: translateY(20px);
	}

	.floating-action-button.visible {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
	}
	/*
		floating action button: end
	*/

	/* =========================================================================
   bottom-fixed-btn-box  ========================================================================= */
	.bottom-fixed-btn-box {
		padding: var(--spacing-8) var(--spacing-7);
	}
}


