.con_div:has(#itemDetail_div) {
	background: #f8fafb;
}

/* 브레드크럼 */
.breadcrumb {
	max-width: 1600px;
	margin: 0 auto;
	padding: 8px 24px 4px;
	font-size: 13px;
	color: #666;
}

.breadcrumb a {
	color: #666;
	text-decoration: none;
}

.breadcrumb a:hover {
	color: #ff9500;
}

/* 메인 컨텐츠 */
.product-container {
	max-width: 1600px;
	margin: 0 auto;
	padding: 0 24px 20px;
	display: grid;
	grid-template-columns: 480px 1fr;
	gap: 40px;
	align-items: start;
}

/* 왼쪽: 교재 이미지 */
.product-images {
	display: flex;
	flex-direction: column;
	position: sticky;
	/*top: 100px;*/
}

.main-image {
	width: 100%;
	background: white;
	border-radius: 16px;
	padding: 20px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
	margin-bottom: 10px;
	position: relative;
	overflow: hidden;
}

.main-image img {
	max-width: 100%;
	max-height: 100%;
	height: auto;
	border-radius: 8px;
	transition: transform 0.3s ease;
}

.book-cover {
	width: 100%;
	height: 540px;
	/*background: linear-gradient(135deg, #ff9500 0%, #ff7a00 100%);*/
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 42px;
	color: white;
	font-weight: 800;
	text-align: center;
	line-height: 1.2;
	cursor: zoom-in;
}

/* 목차 이미지 */
.table-of-contents {
	width: 100%;
	height: 540px;
	background: white;
	border-radius: 12px;
	padding: 30px;
	font-size: 14px;
	color: #333;
	overflow-y: auto;
	display: none;
}

.table-of-contents h3 {
	font-size: 20px;
	margin-bottom: 20px;
	color: #ff9500;
}

.table-of-contents ul {
	list-style: none;
	padding-left: 0;
}

.table-of-contents li {
	padding: 8px 0;
	border-bottom: 1px solid #f0f2f5;
}

.table-of-contents table {
	max-width: 100%;
}

/* 미리보기 이미지 */
.preview-content {
	width: 100%;
	height: 540px;
	background: #f8fafb;
	border-radius: 12px;
	display: none;
	overflow: auto;
}

.preview-pages {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	padding: 20px;
	height: 100%;
}

.preview-page {
	background: white;
	border-radius: 8px;
	padding: 20px;
	font-size: 12px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 저자소개 */
.author-intro {
	width: 100%;
	height: 540px;
	background: white;
	border-radius: 12px;
	display: none;
	cursor: zoom-in;
}

/*
.author-photo {
	width: 120px;
	height: 120px;
	background: #e8ebed;
	border-radius: 50%;
	margin: 0 auto 20px;
	overflow: hidden;
}

.author-name {
	text-align: center;
	font-size: 22px;
	font-weight: 700;
	margin-bottom: 10px;
}

.author-bio {
	font-size: 14px;
	line-height: 1.8;
	color: #666;
}
*/

.thumb-list {
	display: flex;
	gap: 6px;
}

.thumb-item {
	flex: 1;
	height: 75px;
	background: #f0f2f5;
	border-radius: 8px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	color: #666;
	transition: all 0.2s ease;
	border: 2px solid transparent;
}

.thumb-item:hover,
.thumb-item:focus {
	background: #e8ebed;
	transform: translateY(-2px);
	outline: none;
}

.thumb-item.active {
	border-color: #ff9500;
	background: #fff9f0;
	color: #ff9500;
	font-weight: 600;
}

/* 오른쪽: 교재 정보 */
.product-info {
	padding-top: 0;
	max-width: 100%;
}

.product-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 6px;
}

.product-title-section {
	flex: 1;
}

.product-category {
	color: #ff9500;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 4px;
}

.product-title {
	font-size: 32px;
	line-height: 130%;
	font-weight: 800;
	color: #1a1a1a;
	margin-bottom: 4px;
	letter-spacing: -0.5px;
}

.share-button {
	background: white;
	border: 1px solid #e8ebed;
	border-radius: 8px;
	padding: 8px 16px;
	font-size: 14px;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 6px;
	transition: all 0.2s ease;
}

.share-button:hover {
	border-color: #ff9500;
	color: #ff9500;
}

/* 구매자 수 표시 */
.purchase-count {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: #666;
	margin-bottom: 10px;
}

.purchase-count strong {
	color: #ff9500;
}

.product-desc {
	font-size: 15px;
	color: #666;
	line-height: 1.6;
	margin-bottom: 14px;
	padding-bottom: 14px;
	border-bottom: 1px solid #e8ebed;
}

/* 강의보기 버튼 섹션 - 새로 추가 */
.lecture-section {
	background: linear-gradient(135deg, #fff9f0 0%, #ffe8d6 100%);
	border-radius: 12px;
	padding: 16px 20px;
	margin-bottom: 14px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	border: 1px solid #ffe0b2;
}

.lecture-info {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 1;
}

.lecture-icon {
	width: 48px;
	height: 48px;
	background: #ff9500;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	color: white;
}

.lecture-text {
	flex: 1;
}

.lecture-title {
	font-size: 16px;
	font-weight: 700;
	color: #1a1a1a;
	margin-bottom: 2px;
}

.lecture-subtitle {
	font-size: 13px;
	color: #666;
}

.btn-lecture {
	background: #ff9500;
	color: white;
	border: none;
	padding: 12px 28px;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	white-space: nowrap;
}

.btn-lecture:hover {
	background: #e68600;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(255, 149, 0, 0.3);
}

.btn-lecture:focus {
	outline: 2px solid #ff9500;
	outline-offset: 2px;
}

/* 교재 정보 */
.book-info {
	display: flex;
	gap: 40px;
	background: #f8fafb;
	padding: 16px 24px;
	border-radius: 12px;
	margin-bottom: 14px;
	font-size: 13px;
	flex-wrap: wrap;
}

.info-item {
	display: flex;
	gap: 8px;
	white-space: nowrap;
}

.info-label {
	color: #999;
	font-weight: 500;
}

.info-value {
	color: #1a1a1a;
}

/* 구매 옵션 섹션 */
.purchase-section {
	background: #f8fafb;
	border-radius: 16px;
	padding: 18px;
	margin-bottom: 14px;
}

.section-title {
	font-size: 16px;
	font-weight: 700;
	margin-bottom: 12px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.option-list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
}

.option-item {
	background: white;
	border: 2px solid #e8ebed;
	border-radius: 12px;
	padding: 16px;
	cursor: pointer;
	transition: all 0.2s ease;
	position: relative;
}

.option-item:hover {
	border-color: #ff9500;
	box-shadow: 0 4px 12px rgba(255, 149, 0, 0.1);
}

.option-item.selected {
	border-color: #ff9500;
	background: #fff9f0;
}

.option-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 4px;
}

.option-type {
	display: flex;
	align-items: center;
	gap: 8px;
}

.option-icon {
	font-size: 18px;
}

.option-name {
	font-size: 15px;
	font-weight: 600;
	color: #1a1a1a;
}

.option-price {
	text-align: right;
}

.price-original {
	font-size: 13px;
	color: #999;
	text-decoration: line-through;
}

.price-final {
	font-size: 20px;
	font-weight: 700;
	color: #1a1a1a;
}

.honey-price {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 13px;
}

/* 제본 옵션 */
.binding-options {
	display: flex;
	gap: 16px;
	margin: 6px 0;
}

.binding-option {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	cursor: pointer;
}

.binding-option input[type="radio"] {
	width: 14px;
	height: 14px;
	accent-color: #ff9500;
}

/* 배송비 안내 */
.shipping-info {
	font-size: 11px;
	color: #666;
	margin-top: 4px;
	padding-top: 4px;
	border-top: 1px solid #f0f2f5;
}

.shipping-cost {
	display: flex;
	align-items: center;
	gap: 8px;
}

.free-shipping-tag {
	background: #ff9500;
	color: white;
	padding: 2px 8px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 600;
}

.price-discount {
	display: inline-block;
	background: #ff4757;
	color: white;
	padding: 3px 6px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 600;
	margin-left: 6px;
}

.option-features {
	display: flex;
	gap: 10px;
	font-size: 11px;
	color: #666;
}

.feature-item {
	display: flex;
	align-items: center;
	gap: 4px;
}

.check-icon {
	color: #00bfa5;
}

.radio-button {
	position: absolute;
	top: 14px;
	left: 14px;
	width: 20px;
	height: 20px;
	border: 2px solid #e8ebed;
	border-radius: 50%;
	background: white;
	transition: all 0.2s ease;
}

.option-item.selected .radio-button {
	border-color: #ff9500;
}

.option-item.selected .radio-button::after {
	content: '';
	position: absolute;
	top: 4px;
	left: 4px;
	width: 8px;
	height: 8px;
	background: #ff9500;
	border-radius: 50%;
}

/* 수량 및 금액 관련 */

.quantity-label {
	font-size: 13px;
	font-weight: 600;
}

.quantity-control {
	display: flex;
	align-items: center;
	gap: 8px;
	background: #f8fafb;
	border-radius: 8px;
	padding: 3px;
}

.qty-btn {
	width: 28px;
	height: 28px;
	border: none;
	background: white;
	border-radius: 6px;
	font-size: 14px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.qty-btn:hover,
.qty-btn:focus {
	background: #ff9500;
	color: white;
	outline: none;
}

.product-container .qty-input {
	width: 40px;
	text-align: center;
	border: none;
	background: transparent;
	font-size: 14px;
	font-weight: 600;

	height: unset;
	line-height: 160%;
	text-indent: 0;
}

.total-label {
	font-size: 13px;
	color: #666;
}

.total-price {
	font-size: 20px;
	font-weight: 800;
	color: #ff9500;
}

/* 구매 버튼 */
.action-buttons {
	display: grid;
	grid-template-columns: 1fr 3fr;
	gap: 14px;
}

.btn {
	padding: 13px 24px;
	border-radius: 10px;
	font-size: 16px;
	line-height: 160%;
	font-weight: 600;
	border: none;
	cursor: pointer;
	transition: all 0.2s ease;
}

.btn:focus {
	outline: 2px solid #ff9500;
	outline-offset: 2px;
}

.btn-cart {
	background: white;
	border: 2px solid #e8ebed;
	color: #1a1a1a !important;
}

.btn-cart:hover {
	border-color: #ff9500;
	color: #ff9500;
}

.btn-buy {
	background: #ff9500;
	color: white;
}

.btn-buy:hover {
	background: #e68600;
	transform: translateY(-1px);
}

/* 하단 콘텐츠 섹션 */
.bottom-content {
	max-width: 1600px;
	margin: 40px auto 0;
	padding: 0 24px;
}

/* 탭 네비게이션 */
.tab-nav {
	display: flex;
	gap: 0;
	border-bottom: 2px solid #e8ebed;
	margin-bottom: 40px;
}

.tab-item {
	padding: 16px 32px;
	font-size: 16px;
	font-weight: 600;
	color: #666;
	background: none;
	border: none;
	cursor: pointer;
	position: relative;
	transition: all 0.2s ease;
}

.tab-item:hover {
	color: #ff9500;
}

.tab-item.active {
	color: #ff9500;
}

.tab-item.active::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 0;
	right: 0;
	height: 2px;
	background: #ff9500;
}

/* 탭 콘텐츠 */
.tab-content {
	display: none;
}

.tab-content.active {
	display: block;
}

/* 리뷰 섹션 */
.review-section {
	margin-bottom: 60px;
}

.review-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 24px;
}

.review-write-section {
	display: flex;
	align-items: center;
	gap: 16px;
}

.review-reward-info {
	font-size: 13px;
	color: #666;
	display: flex;
	align-items: center;
	gap: 8px;
}

.review-write-btn {
	background: #ff9500;
	color: white;
	border: none;
	padding: 10px 20px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
}

.review-write-btn:hover {
	background: #e68600;
	transform: translateY(-1px);
}

.review-info-box {
	background: #fff9f0;
	border: 1px solid #ffe0b2;
	border-radius: 8px;
	padding: 16px;
	margin-bottom: 24px;
	font-size: 13px;
	color: #666;
}

.review-info-title {
	font-weight: 600;
	color: #ff9500;
	margin-bottom: 8px;
}

.review-sort {
	display: flex;
	gap: 16px;
	margin-bottom: 20px;
	font-size: 14px;
}

.sort-option {
	color: #666;
	cursor: pointer;
	padding-bottom: 4px;
	border-bottom: 2px solid transparent;
	transition: all 0.2s ease;
}

.sort-option:hover {
	color: #ff9500;
}

.sort-option.active {
	color: #ff9500;
	font-weight: 600;
	border-bottom-color: #ff9500;
}

.more-reviews-btn {
	background: white;
	border: 1px solid #e8ebed;
	padding: 12px 32px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	color: #1a1a1a;
}

.more-reviews-btn:hover {
	border-color: #ff9500;
	color: #ff9500;
}

.average-rating {
	font-size: 48px;
	font-weight: 800;
	color: #ff9500;
	margin-bottom: 8px;
}

.star-rating {
	display: flex;
	justify-content: center;
	gap: 4px;
	margin-bottom: 12px;
}

.star {
	font-size: 24px;
	color: #ffd700;
}

.review-count {
	font-size: 14px;
	color: #666;
}

.review-list {
	display: grid;
	gap: 20px;
}

.review-item {
	background: white;
	border-radius: 12px;
	padding: 24px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
	border: 1px solid #e8ebed;
}

.review-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: #fff9f0;
	color: #ff9500;
	padding: 4px 10px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 600;
	margin-left: 8px;
}

.review-images {
	display: flex;
	gap: 8px;
	margin-top: 16px;
	flex-wrap: wrap;
}

.review-image {
	width: 100px;
	height: 100px;
	background: #f0f2f5;
	border-radius: 8px;
	overflow: hidden;
	cursor: pointer;
	transition: transform 0.2s ease;
}

.review-image:hover {
	transform: scale(1.05);
}

.review-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.reviewer-info {
	display: flex;
	align-items: center;
	gap: 12px;
}

.reviewer-avatar {
	width: 40px;
	height: 40px;
	background: #e8ebed;
	border-radius: 50%;
}

.reviewer-name {
	font-weight: 600;
}

.review-date {
	font-size: 13px;
	color: #999;
}

.review-rating {
	display: flex;
	gap: 2px;
}

.review-content {
	font-size: 14px;
	line-height: 1.8;
	color: #666;
}

/* Q&A 섹션 */
.qna-section {
	margin-bottom: 60px;
}

.qna-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 24px;
}

.qna-write-btn {
	background: #ff9500;
	color: white;
	border: none;
	padding: 10px 20px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
}

.qna-write-btn:hover {
	background: #e68600;
	transform: translateY(-1px);
}

.qna-list {
	display: grid;
	gap: 16px;
}

.qna-item {
	background: white;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
	border: 1px solid #e8ebed;
}

.qna-item-header {
	padding: 20px 24px;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	cursor: pointer;
	transition: all 0.2s ease;
}

.qna-item-header:hover {
	background: #f8fafb;
}

.qna-status {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 600;
}

.status-answered {
	background: #e8f5e9;
	color: #2e7d32;
}

.status-waiting {
	background: #fff3e0;
	color: #f57c00;
}

.qna-title-section {
	flex: 1;
	margin-left: 16px;
}

.qna-title {
	font-size: 16px;
	font-weight: 600;
	color: #1a1a1a;
	margin-bottom: 8px;
}

.qna-meta {
	display: flex;
	gap: 16px;
	font-size: 13px;
	color: #666;
}

.qna-author {
	display: flex;
	align-items: center;
	gap: 6px;
}

.qna-date {
	display: flex;
	align-items: center;
	gap: 6px;
}

.qna-content {
	display: none;
	border-top: 1px solid #e8ebed;
}

.qna-item.active .qna-content {
	display: block;
}

.qna-question-content {
	padding: 20px 24px;
	font-size: 14px;
	line-height: 1.8;
	color: #666;
}

.qna-answer {
	background: #f8fafb;
	padding: 20px 24px;
	border-top: 1px solid #e8ebed;
}

.qna-answer-header {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
}

.admin-badge {
	background: #ff9500;
	color: white;
	padding: 3px 8px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 600;
}

.qna-answer-content {
	font-size: 14px;
	line-height: 1.8;
	color: #333;
}

.qna-toggle {
	font-size: 20px;
	color: #999;
	transition: transform 0.3s ease;
}

.qna-item.active .qna-toggle {
	transform: rotate(180deg);
}

/* 토스트 알림 */
.toast {
	position: fixed;
	bottom: 30px;
	left: 50%;
	transform: translateX(-50%) translateY(100px);
	background: #1a1a1a;
	color: white;
	padding: 16px 24px;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 600;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	opacity: 0;
	transition: all 0.3s ease;
	z-index: 1001;
}

.toast.show {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

/* 모바일 고정 구매 바 */
.mobile-buy-bar {
	display: none;
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: white;
	padding: 16px;
	box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
	z-index: 999;
}

.mobile-buy-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
}

.mobile-price-info {
	flex: 1;
}

.mobile-price {
	font-size: 20px;
	font-weight: 800;
	color: #ff9500;
}

.mobile-original-price {
	font-size: 14px;
	color: #999;
	text-decoration: line-through;
}

.mobile-buy-btn {
	padding: 14px 32px;
	background: #ff9500;
	color: white;
	border: none;
	border-radius: 10px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
}

/* 이미지 확대 모달 */
.image-modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.9);
	z-index: 9000;
	cursor: zoom-out;
}

.modal-image {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	max-width: 90%;
	max-height: 90%;
	border-radius: 8px;
}

.modal-close {
	position: absolute;
	top: 20px;
	right: 20px;
	background: white;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	cursor: pointer;
}

/* 반응형 */
@media (max-width: 1200px) {
	.product-container {
		grid-template-columns: 400px 1fr;
	}

	.option-list {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 1024px) {
	.product-container {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	.product-images {
		position: static;
		width: 100%;
		max-width: 400px;
		margin: 0 auto 30px;
		display: block;
	}

	.product-header {
		width: 100%;
	}

	.book-cover {
		height: 380px;
		font-size: 30px;
	}

	.preview-content {
		height: 380px;
		font-size: 30px;
	}

	.author-intro {
		height: 380px;
		font-size: 30px;
	}

	.thumb-item {
		height: 50px;
	}

	.mobile-buy-bar {
		display: block;
	}

	.lecture-section {
		flex-direction: column;
		text-align: center;
	}

	.lecture-info {
		flex-direction: column;
		text-align: center;
	}

	.btn-lecture {
		width: 100%;
	}
}

@media (max-width: 768px) {
	.product-container {
		display: block;
		width: 100%;
		padding: 0 0 20px 0;
	}

	.share-button {
		padding: 6px 10px;
	}

	.product-title {
		font-size: 28px;
		word-break: break-all;
	}

	.action-buttons {
		grid-template-columns: 1fr;
	}

	.option-header {
		flex-direction: column;
		gap: 12px;
	}

	.book-info {
		flex-direction: column;
		gap: 8px;
		padding: 8px 0;
	}

	.author-intro {
	}

	.purchase-section {
		padding: 8px 0;
	}

	.tab-item {
		padding: 12px 16px;
		font-size: 14px;
	}

	.option-features {
		gap: 5px;
	}

	.feature-item {
		font-size: 14px;
		line-height: 130%;
	}

	.quantity-control {
		gap: 4px;
	}

	.qty-btn {
		width: 24px;
		height: 24px;
	}

	.bottom-content {
		margin: 20px auto 0;
		padding: 0 0;
	}

	.tab-nav {
		margin-bottom: 20px;
	}

	.review-header,
	.qna-header {
		flex-direction: column;
		gap: 16px;
		align-items: flex-start;
	}

	.review-write-section {
		width: 100%;
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

	.review-write-btn,
	.qna-write-btn {
		width: 100%;
	}

	.tab-content table,
	.tab-content tbody,
	.tab-content tr,
	.tab-content td {
		max-width: 100%;
	}

	.tab-content div {
		margin-left: 0 !important;
	}
}

/* Skip to content */
.skip-to-content {
	position: absolute;
	top: -40px;
	left: 0;
	background: #ff9500;
	color: white;
	padding: 8px 16px;
	text-decoration: none;
	border-radius: 0 0 8px 0;
	font-weight: 600;
	z-index: 1001;
}

.skip-to-content:focus {
	top: 0;
}