@charset "utf-8";

/* ============================== 토큰 */
:root {
	--ct-navy: #123a63;
	--ct-navy-deep: #0f2d4d;
	--ct-text: #1f2937;
	--ct-muted: #6b7280;
	--ct-light: #9aa4b2;
	--ct-line: #e5e9ef;
	--ct-bg: #f5f7fa;
	--ct-max: 1280px;
	--ct-pad: 24px;
}

.content-wrapper {
	margin-bottom: 0 !important;
}

/* ============================== 레이아웃 */
.ct-page {
	padding-bottom: 100px;
	font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
	color: var(--ct-text);
	background: var(--ct-bg);
}

.ct-inner {
	max-width: var(--ct-max);
	margin: 0 auto;
	padding: 40px var(--ct-pad) 0;
}

.ct-head {
	padding: 36px 0;
	text-align: center;
	background: #ffffff;
}

.ct-head__title {
	margin: 0;
	font-size: 32px;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.25;
	color: #111827;
	font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
}

/* ============================== 단계 표시 (장바구니·주문서·완료 공통 디자인, 시안 픽셀 값 기준) */
.ct-steps {
	padding: 16px 0;
	background: #ffffff;
	border-top: 1px solid #ececec;
	border-bottom: 1px solid #e1e1e1;
}

.ct-steps__list {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	margin: 0;
	padding: 0 var(--ct-pad);
	list-style: none;
	flex-wrap: wrap;
}

.ct-step {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 15px;
	font-weight: 500;
	color: #898989;
}

.ct-step__num {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	font-size: 12px;
	font-weight: 700;
	color: #898989;
	background: #e5e7eb;
	border-radius: 50%;
}

.ct-step.is-on {
	font-weight: 700;
	color: #04264e;
}

.ct-step.is-on .ct-step__num {
	color: #ffffff;
	background: #04264e;
}

.ct-step__sep {
	font-size: 15px;
	color: #898989;
}

/* ============================== 본문 그리드 */
.ct-body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 24px;
	align-items: start;
}

.ct-list,
.ct-empty,
.ct-summary {
	background: #ffffff;
	border: 1px solid var(--ct-line);
	border-radius: 10px;
}

/* ============================== 목록 */
.ct-list__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 24px;
	border-bottom: 1px solid var(--ct-line);
}

.ct-check {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	color: var(--ct-text);
	cursor: pointer;
}

.ct-check input {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--ct-navy);
	cursor: pointer;
}

.ct-btn-line {
	padding: 7px 14px;
	font-size: 14px;
	color: var(--ct-muted);
	background: #ffffff;
	border: 1px solid #d7dfe9;
	border-radius: 6px;
	cursor: pointer;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.ct-btn-line:hover {
	color: var(--ct-navy);
	border-color: var(--ct-navy);
}

/* 카테고리 그룹 */
.ct-group__head {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 16px 24px;
	border-bottom: 1px solid var(--ct-line);
}

.ct-group__head input {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--ct-navy);
	cursor: pointer;
}

.ct-group__name {
	font-size: 16px;
	font-weight: 700;
	color: var(--ct-text);
}

/* 제품 행 */
.ct-item {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 20px 24px;
	border-bottom: 1px solid var(--ct-line);
}

.ct-item:last-child {
	border-bottom: 0;
}

.ct-item__check {
	flex: none;
	width: 18px;
	height: 18px;
	margin: 26px 0 0;
	accent-color: var(--ct-navy);
	cursor: pointer;
}

.ct-item__thumb {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 84px;
	height: 72px;
	padding: 6px;
	background: #f7f9fc;
	border-radius: 8px;
	overflow: hidden;
}

.ct-item__thumb img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	mix-blend-mode: multiply;
}

.ct-item__info {
	flex: 1;
	min-width: 0;
	padding-right: 28px;
}

.ct-item__name {
	display: block;
	margin-bottom: 8px;
	font-size: 15px;
	line-height: 1.6;
	color: var(--ct-muted);
	text-decoration: none !important;
	word-break: keep-all;
}

.ct-item__name:hover {
	color: var(--ct-navy);
}

.ct-item__price {
	margin: 0 0 12px;
	font-size: 17px;
	font-weight: 700;
	color: #111827;
}

.ct-item__price.is-quote {
	color: var(--ct-navy);
}

.ct-item__option {
	max-width: 260px;
	margin-bottom: 12px;
	padding: 7px 10px;
	font-size: 14px;
	color: var(--ct-text);
	border: 1px solid #d7dfe9;
	border-radius: 6px;
}

/* 수량 */
.ct-qty {
	display: inline-flex;
	align-items: center;
	border: 1px solid #d7dfe9;
	border-radius: 6px;
	overflow: hidden;
}

.ct-qty button {
	width: 28px;
	height: 28px;
	font-size: 16px;
	line-height: 1;
	color: var(--ct-muted);
	background: #ffffff;
	border: 0;
	cursor: pointer;
}

.ct-qty button:hover {
	color: var(--ct-navy);
	background: #f2f5f9;
}

.ct-qty input {
	width: 38px;
	height: 28px;
	padding: 0;
	font-size: 15px;
	text-align: center;
	color: var(--ct-text);
	border: 0;
	border-left: 1px solid #eef1f5;
	border-right: 1px solid #eef1f5;
	-moz-appearance: textfield;
}

.ct-qty input::-webkit-outer-spin-button,
.ct-qty input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.ct-item__remove {
	position: absolute;
	top: 18px;
	right: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	color: var(--ct-light);
	background: none;
	border: 0;
	cursor: pointer;
	transition: color 0.2s ease;
}

.ct-item__remove:hover {
	color: var(--ct-text);
}

/* 안내 */
.ct-notice {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 20px 24px 24px;
	padding: 14px 16px;
	font-size: 14px;
	line-height: 1.6;
	color: #3f5a7a;
	background: #eef4fb;
	border-radius: 8px;
	word-break: keep-all;
}

.ct-notice svg {
	flex: none;
	color: var(--ct-navy);
}

/* 비어 있을 때 */
.ct-empty {
	padding: 80px 24px;
	text-align: center;
}

.ct-empty__text {
	margin: 0 0 24px;
	font-size: 16px;
	color: var(--ct-light);
}

.ct-empty .ct-btn {
	display: inline-block;
	width: auto;
	padding: 12px 28px;
}

/* ============================== 주문 요약 */
.ct-summary {
	position: sticky;
	top: 24px;
	overflow: hidden;
}

.ct-summary__title {
	margin: 0;
	padding: 16px 20px;
	font-size: 17px;
	font-weight: 700;
	color: #ffffff;
	background: var(--ct-navy);
}

.ct-summary__body {
	padding: 20px;
}

.ct-summary__sec {
	padding-bottom: 18px;
	margin-bottom: 18px;
	border-bottom: 1px solid var(--ct-line);
}

.ct-summary__label {
	margin: 0 0 12px;
	font-size: 15px;
	font-weight: 700;
	color: var(--ct-text);
}

.ct-summary__items {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ct-summary__items li {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: var(--ct-muted);
}

.ct-summary__items .name {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ct-summary__items .name::before {
	content: "• ";
	color: var(--ct-light);
}

.ct-summary__items .price {
	flex: none;
	font-weight: 600;
	color: var(--ct-text);
}

.ct-summary__items .tag {
	flex: none;
	padding: 4px 8px;
	font-size: 13px;
	color: var(--ct-muted);
	background: #f2f5f9;
	border-radius: 4px;
}

.ct-summary__total {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--ct-line);
}

.ct-summary__total-label {
	font-size: 14px;
	color: var(--ct-muted);
}

.ct-summary__total-label em {
	font-style: normal;
	color: var(--ct-light);
}

.ct-summary__total-value {
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: #111827;
}

.ct-summary__extra {
	margin: 16px 0 22px;
}

.ct-summary__extra div {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 8px;
}

.ct-summary__extra dt,
.ct-summary__extra dd {
	margin: 0;
	font-size: 14px;
	font-weight: 400;
	color: var(--ct-light);
}

/* 버튼 */
.ct-btn {
	display: block;
	width: 100%;
	padding: 14px 16px;
	font-size: 16px;
	font-weight: 700;
	text-align: center;
	border-radius: 8px;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
	text-decoration: none !important;
}

.ct-btn--primary {
	margin-bottom: 10px;
	color: #ffffff;
	background: var(--ct-navy);
	border: 1px solid var(--ct-navy);
}

.ct-btn--primary:hover {
	background: var(--ct-navy-deep);
}

.ct-btn--primary:disabled {
	color: #ffffff;
	background: #b6bec9;
	border-color: #b6bec9;
	cursor: default;
}

.ct-btn--line {
	color: var(--ct-navy);
	background: #ffffff;
	border: 1px solid #d7dfe9;
}

.ct-btn--line:hover {
	border-color: var(--ct-navy);
}

/* ============================== 반응형 */
@media (max-width: 900px) {
	:root {
		--ct-pad: 16px;
	}

	.ct-inner {
		padding-top: 24px;
	}

	.ct-body {
		grid-template-columns: 1fr;
	}

	.ct-summary {
		position: static;
	}

	.ct-head {
		padding: 26px 0;
	}

	.ct-head__title {
		font-size: 24px;
	}

	.ct-steps__list {
		gap: 8px;
	}

	.ct-step {
		font-size: 14px;
	}

	.ct-item {
		gap: 12px;
		padding: 16px;
	}

	.ct-item__thumb {
		width: 68px;
		height: 60px;
	}

	.ct-list__head,
	.ct-group__head {
		padding: 14px 16px;
	}

	.ct-notice {
		margin: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ct-btn,
	.ct-btn-line,
	.ct-item__remove {
		transition: none;
	}
}

/* ============================== 장비 더 담기 — 카테고리 목록 */
.ct-more {
	position: relative;
}

.ct-more > .ct-btn {
	width: 100%;
}

.ct-more__list {
	position: absolute;
	left: 0;
	right: 0;
	bottom: calc(100% + 8px);
	z-index: 20;
	margin: 0;
	padding: 8px 0;
	list-style: none;
	background: #ffffff;
	border: 1px solid #e5e5e5;
	border-radius: 10px;
	box-shadow: 0 12px 32px rgba(15, 30, 50, 0.12);
}

.ct-more__list[hidden] {
	display: none;
}

.ct-more__list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 9px 16px;
	font-size: 15px;
	color: #282828;
	text-decoration: none !important;
}

.ct-more__list a:hover,
.ct-more__list a:focus-visible {
	background: #f4f6f9;
	color: #04264e;
	outline: none;
}

.ct-more__count {
	min-width: 22px;
	padding: 1px 7px;
	font-size: 12px;
	font-weight: 700;
	color: #04264e;
	text-align: center;
	background: #eef1f6;
	border-radius: 999px;
}
