﻿/* ─── Product layout overrides ─── */
.prod-layout .header {
	position: fixed;
	width: 100%;
	transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.prod-layout .header.scroll-hide {
	transform: translateY(-100%);
}

.prod-layout main {
	overflow: visible;
}

/* ─── Tab bar ─── */
.prod-tab-bar {
	position: fixed;
	left: 0;
	right: 0;
	z-index: 990;
	background: #fff;
	height: 100px;
	top: 100px;
	transition: top 0.28s cubic-bezier(0.4, 0, 0.2, 1);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 40px;
}

.prod-tab-inner {
	width: 100%;
	max-width: 1680px;
	height: 59px;
	background: #f8f8f8;
	border-radius: 600px;
	position: relative;
	display: flex;
	align-items: center;
	padding: 7px;
	box-sizing: border-box;
}

.prod-tab-indicator {
	position: absolute;
	top: 7px;
	left: 7px;
	height: 45px;
	border-radius: 600px;
	background: #d60057;
	pointer-events: none;
	z-index: 0;
	width: 0;
	transition:
		transform 0.38s cubic-bezier(0.4, 0, 0.2, 1),
		width 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

.prod-tab {
	flex: 1;
	height: 45px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 16px;
	font-family: 'Pretendard Variable', 'Pretendard', sans-serif;
	font-size: 20px;
	font-weight: 500;
	color: #2c2c2c;
	background: none;
	border: none;
	border-radius: 600px;
	cursor: pointer;
	white-space: nowrap;
	transition: color 0.25s;
	position: relative;
	z-index: 1;
	min-width: 0;
}

.prod-tab.active {
	color: #fff;
	font-weight: 700;
}

/* ─── Main & sections ─── */
.prod-main {
	/* JS가 계산한 padding-top으로 덮어씀 — 초기값 */
	padding-top: 136px;
}

@keyframes tabFadeIn {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.prod-section {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 150px;
}

.prod-section.tab-enter {
	animation: tabFadeIn 0.38s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.prod-section:nth-child(even) .prod-placeholder {
	background: #f8f8f8;
}

/* ─── Placeholder (콘텐츠 교체 시 제거) ─── */
.prod-placeholder {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 80vh;
	padding: 80px 40px;
	text-align: center;
	position: relative;
}

.prod-placeholder-bg {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
	overflow: hidden;
	z-index: 0;
}

.prod-placeholder-bg-text {
	font-family: 'Poppins', sans-serif;
	font-size: clamp(72px, 14vw, 200px);
	font-weight: 800;
	color: rgba(0, 0, 0, 0.04);
	letter-spacing: 0.04em;
	white-space: nowrap;
	user-select: none;
}

.prod-placeholder-content {
	position: relative;
	z-index: 1;
}

.prod-placeholder-eyebrow {
	font-family: 'Poppins', sans-serif;
	font-size: 13px;
	font-weight: 600;
	color: #d60057;
	letter-spacing: 2px;
	text-transform: uppercase;
	margin-bottom: 16px;
}

.prod-placeholder-title {
	font-family: 'Pretendard Variable', 'Pretendard', sans-serif;
	font-size: 52px;
	font-weight: 700;
	color: #121212;
	letter-spacing: -2px;
	line-height: 1.2;
	margin-bottom: 16px;
}

.prod-placeholder-sub {
	font-family: 'Pretendard Variable', 'Pretendard', sans-serif;
	font-size: 18px;
	color: #aaa;
	letter-spacing: -0.5px;
}
@media (max-width: 1400px) {
	.prod-tab {
		font-size: 18px;
	}
}
/* ─── Mobile ─── */
@media (max-width: 768px) {
	.prod-tab-bar {
		height: 62px;
		padding: 0 40px;
	}
	.prod-tab-inner {
		height: 48px;
		padding: 5px;
	}
	.prod-tab-inner--robot {
		width: fit-content;
		margin: 0 auto;
	}
	.prod-tab-indicator {
		height: 38px;
		top: 5px;
		left: 5px;
	}
	.prod-tab {
		font-size: 13px;
		min-width: 90px;
		height: 38px;
		padding: 0 10px;
	}
	.prod-placeholder-title {
		font-size: 32px;
		letter-spacing: -1px;
	}
	.prod-placeholder-sub {
		font-size: 15px;
	}
	.prod-placeholder-bg-text {
		font-size: clamp(48px, 14vw, 100px);
	}
}


/* ── 모바일 탭 드롭다운 ── */
.prod-tab-dropdown {
	display: none;
}

@media (max-width: 768px) {
	.prod-tab-inner {
		display: none !important;
	}
	.prod-tab-dropdown {
		display: block;
		position: relative;
		width: calc(100% - 32px);
		max-width: 480px;
		margin: 0 auto;
	}
	.prod-tab-dropdown-btn {
		width: 100%;
		height: 45px;
		background: #d60057;
		color: #fff;
		border-radius: 600px;
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 0 20px 0 24px;
		font-family: 'Pretendard Variable', 'Pretendard', sans-serif;
		font-size: 15px;
		font-weight: 600;
		letter-spacing: -0.4px;
		cursor: pointer;
		border: none;
		gap: 12px;
	}
	.prod-tab-dropdown-label {
		flex: 1;
		text-align: left;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}
	.prod-tab-dropdown-arrow {
		flex-shrink: 0;
		width: 8px;
		height: 8px;
		border-right: 2px solid #fff;
		border-bottom: 2px solid #fff;
		transform: rotate(45deg);
		margin-bottom: 4px;
		transition: transform 0.2s ease;
	}
	.prod-tab-dropdown.open .prod-tab-dropdown-arrow {
		transform: rotate(-135deg);
		margin-bottom: -2px;
	}
	.prod-tab-dropdown-list {
		position: absolute;
		top: calc(100% + 8px);
		left: 0;
		right: 0;
		background: #fff;
		border-radius: 14px;
		box-shadow: 0 8px 32px rgba(0, 0, 0, 0.14);
		list-style: none;
		padding: 6px 0;
		opacity: 0;
		visibility: hidden;
		transform: translateY(-6px);
		transition:
			opacity 0.2s ease,
			visibility 0.2s ease,
			transform 0.2s ease;
		z-index: 1100;
	}
	.prod-tab-dropdown.open .prod-tab-dropdown-list {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
	}
	.prod-tab-dropdown-item {
		padding: 13px 20px;
		font-family: 'Pretendard Variable', 'Pretendard', sans-serif;
		font-size: 15px;
		font-weight: 400;
		color: #383838;
		cursor: pointer;
		transition:
			background 0.15s,
			color 0.15s;
	}
	.prod-tab-dropdown-item:hover {
		background: #fdf5f8;
		color: #d60057;
	}
	.prod-tab-dropdown-item.active {
		color: #d60057;
		font-weight: 700;
	}
}
