/* 교재몰 리스트 — 모던 UI (메인 도서 섹션 톤 연계) */

.book-page--modern {
	margin: 24px 0 36px;
	padding: 28px 24px 32px;
	border: 0;
	border-radius: 20px;
	background: linear-gradient(180deg, #f8fafc 0%, #ffffff 38%, #f4f7fb 100%);
	box-shadow: 0 8px 32px rgba(15, 23, 42, 0.06);
	overflow: visible;
}

.book-page--modern .book-list {
	display: contents;
	border: 0;
	overflow: visible;
}

.book-page--modern {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.book-page--modern .book_box {
	float: none;
	width: auto;
	margin: 0;
	display: flex;
	align-items: stretch;
	gap: 18px;
	padding: 18px;
	border-radius: 16px;
	background: #fff;
	border: 1px solid #e8edf3;
	box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
	transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.28s ease, border-color 0.28s ease;
}

.book-page--modern .book_box:hover {
	transform: translateY(-4px);
	border-color: #c5d9e8;
	box-shadow: 0 14px 32px rgba(4, 101, 166, 0.12);
}

.book-page--modern .book_left {
	display: block;
	flex: 0 0 118px;
	width: 118px;
	vertical-align: top;
}

.book-page--modern .book_left a {
	display: block;
	height: 100%;
}

.book-page--modern .book_left img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 10px;
	border: 1px solid #eef2f7;
	box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
	transition: transform 0.35s ease;
}

.book-page--modern .book_box:hover .book_left img {
	transform: scale(1.03);
}

.book-page--modern .book_right {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-width: 0;
	padding: 2px 0 0;
	vertical-align: top;
	text-align: left;
}

.book-page--modern .book_right ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.book-page--modern .book_right li {
	line-height: 1.55;
	font-size: 13px;
	color: #64748b;
	margin-bottom: 6px;
}

.book-page--modern .book_right li:last-child {
	margin-bottom: 0;
}

.book-page--modern .book_right li.book-item__title {
	margin-bottom: 10px;
}

.book-page--modern .book_right li.book-item__title a {
	display: block;
	text-decoration: none;
	color: inherit;
}

.book-page--modern .book_right li h2 {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.45;
	color: #1f2937;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: color 0.2s ease;
}

.book-page--modern .book_box:hover .book_right li h2 {
	color: #0465a6;
}

.book-page--modern .book-meta__label {
	display: inline-block;
	min-width: 52px;
	margin-right: 4px;
	color: #94a3b8;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: -0.02em;
}

.book-page--modern .book-meta__value {
	color: #475569;
	font-weight: 500;
}

.book-page--modern .book-item__price {
	margin-top: auto;
	padding-top: 10px;
	border-top: 1px dashed #e8edf3;
	font-size: 13px;
	color: #64748b;
}

.book-page--modern .book-price__origin {
	color: #9ca3af;
	font-size: 13px;
	font-weight: 500;
	text-decoration: line-through;
	margin-right: 6px;
}

.book-page--modern .book-price__sale {
	color: #0465a6;
	font-size: 18px;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.book-page--modern .book-price__discount {
	display: inline-block;
	margin-left: 6px;
	padding: 2px 8px;
	border-radius: 999px;
	background: rgba(250, 40, 40, 0.1);
	color: #e11d48;
	font-size: 12px;
	font-weight: 700;
	vertical-align: middle;
}

.book-page--modern .book-price__sale--plain {
	color: #0465a6;
	font-size: 18px;
	font-weight: 800;
}

.book-page--modern .book-item__stock {
	color: #e11d48;
	font-weight: 600;
}

/* 카테고리 필터 */
.book-filter {
	margin: 0 0 22px;
	padding: 16px 18px;
	border-radius: 14px;
	background: #fff;
	border: 1px solid #e8edf3;
	box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.book-filter .book-cate {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	text-align: right;
}

.book-filter .book-cate select.form-control {
	min-width: 140px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid #dbe3ec;
	border-radius: 10px;
	background: #f8fafc;
	color: #334155;
	font-size: 13px;
	font-weight: 500;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.book-filter .book-cate select.form-control:focus {
	outline: none;
	border-color: #0465a6;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(4, 101, 166, 0.12);
}

.book-filter .book-cate .min480 {
	color: #cbd5e1;
	font-weight: 400;
}

.book-filter .book-cate button.btn-cate {
	min-width: 88px;
	height: 40px;
	padding: 0 18px;
	border: 0;
	border-radius: 10px;
	background: linear-gradient(135deg, #0465a6 0%, #0a84c8 100%);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.04em;
	box-shadow: 0 4px 14px rgba(4, 101, 166, 0.25);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.book-filter .book-cate button.btn-cate:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 20px rgba(4, 101, 166, 0.3);
}

/* 빈 목록 */
.book-page--modern .book-empty {
	grid-column: 1 / -1;
	padding: 48px 20px;
	text-align: center;
	font-size: 15px;
	font-weight: 600;
	color: #64748b;
	background: #fff;
	border: 1px dashed #dbe3ec;
	border-radius: 14px;
}

/* 페이지네이션 여백 */
.book-page--modern + div[align="center"] {
	margin-top: 8px;
}

.book-page--modern + div[align="center"] .page {
	padding: 8px 0 4px;
}

/* 반응형 */
@media (max-width: 834px) {
	.book-page--modern {
		padding: 20px 16px 24px;
		gap: 14px;
	}

	.book-page--modern .book_box {
		padding: 14px;
		gap: 14px;
	}

	.book-page--modern .book_left {
		flex-basis: 100px;
		width: 100px;
	}

	.book-page--modern .book_right li h2 {
		font-size: 15px;
	}

	.book-filter .book-cate {
		justify-content: stretch;
	}

	.book-filter .book-cate select.form-control {
		flex: 1 1 calc(50% - 8px);
		min-width: 0;
	}
}

@media (max-width: 640px) {
	.book-page--modern {
		grid-template-columns: 1fr;
	}

	.book-filter .book-cate select.form-control {
		flex: 1 1 100%;
	}
}

@media (max-width: 480px) {
	.book-page--modern .book_box {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.book-page--modern .book_left {
		flex-basis: auto;
		width: 42%;
		max-width: 140px;
	}

	.book-page--modern .book_right {
		width: 100%;
		align-items: center;
	}

	.book-page--modern .book-item__price {
		width: 100%;
		text-align: center;
	}

	.book-filter .book-cate button.btn-cate {
		width: 100%;
	}
}
