.filter-tabs {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	align-items: flex-end;
	padding: 0 0 40px 0;
}
.filter-tabs.zero {
	padding: 0;
}

.filter-tab {
	padding: 11px 17px;
	background: #f8f9fa;
	border: 2px solid transparent;
	border-radius: 30px;
	cursor: pointer;
	font-size: 15px;
	line-height: 100%;
	font-weight: 600;
	transition: all 0.3s ease;
	color: #666;
}

.filter-tab.big {
	background: #ffd500;
	color: #333;
	border-color: #ffd500;
	/*box-shadow: 0 4px 15px rgba(255, 213, 0, 0.3);*/
}

.filter-tab.small {
	padding: 9px 11px;
	font-size: 14px;
}

.filter-tab:hover {
	background: #9ed3e5;
	color: #333;
	border-color: #9ed3e5;
	transform: translateY(-2px);
}

.search-area {
	padding: 0 30% 40px 30%;
}

.search-box {
	display: flex;
	align-items: center;
	background: #f8f9fa;
	border-radius: 30px;
	padding: 10px 20px;
	min-width: 280px;
}

.search-box input {
	border: none;
	background: none;
	outline: none;
	font-size: 15px;
	width: 100%;
	padding: 0 10px;
}

.search-icon {
	color: #999;
}

/* 교재 카드 그리드 */
.book-grid {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 40px;
}

.book-grid.one {
	grid-template-columns: 1fr;
}

.book-card {
	background: white;
	border-radius: 16px;
	overflow: hidden;
	transition: all 0.3s ease;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
	cursor: pointer;
	position: relative;
	display: flex;
	flex-direction: column;
}

.book-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.book-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, #FFD500, #FFE655);
	opacity: 0;
	transition: opacity 0.3s ease;
	z-index: 10;
}

.book-card:hover::before {
	opacity: 1;
}

.book-cover {
	height: 320px;
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	overflow: hidden;
	flex-shrink: 0;
}

.book-cover a {
	width: 85%;
}

.book-cover a img {
	width: 100%;
	height: 90%;
	object-fit: contain;
	filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.15));
	transition: transform 0.3s ease;
}

.book-card:hover .book-cover img {
	transform: scale(1.05) translateY(-5px);
}

.badge {
	position: absolute;
	top: 15px;
	right: 15px;
	background: #ff4757;
	color: white;
	padding: 5px 12px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.badge.new {
	background: #ff4757;
}

.badge.best {
	background: #FFD500;
	color: #333;
}

.book-content {
	padding: 20px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.book-category {
	font-size: 12px;
	color: #999;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 6px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.sample-btn {
	background: #000000;
	color: white;
	padding: 5px 10px;
	border-radius: 20px;
	line-height: 100%;
	font-weight: 700;
	letter-spacing: 0.5px;
}
.sample-btn.buy {
	background: #FFD500;
	color: #333;
}

.book-title {
	font-size: 17px;
	font-weight: 700;
	color: #333;
	margin-bottom: 10px;
	line-height: 1.3;
}

.book-description {
	font-size: 13px;
	color: #666;
	line-height: 1.5;
	margin-bottom: 15px;
	flex: 1;
}

.price-info {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin-bottom: 15px;
}
.price-info.center {
	justify-content: center;
}

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

.sale-price {
	font-size: 20px;
	font-weight: 700;
	color: #ff4757;
}

.discount-rate {
	font-size: 13px;
	color: #ff4757;
	font-weight: 600;
}

.free-price {
	font-size: 20px;
	font-weight: 700;
	color: #ff4757;
}

.book-actions {
	display: flex;
	gap: 8px;
	margin-bottom: 0;
}

.action-btn {
	flex: 1;
	padding: 10px 0;
	background: #f8f9fa;
	border: 1px solid #e9ecef;
	border-radius: 10px;
	text-align: center;
	font-size: 13px;
	font-weight: 600;
	color: #666;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	position: relative;
}

.action-btn.detail {
	background: #e3f2fd;
	border-color: #90caf9;
	color: #1565c0;
}

.action-btn.buy {
	background: #FFD500;
	border-color: #FFD500;
	color: #333;
}

.action-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.action-btn.buy:hover {
	background: #FFE655;
}

.action-btn .icon {
	font-size: 15px;
}

/* 반응형 디자인 */
@media (max-width: 1024px) {
	.book-grid {
		grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
		gap: 30px;
	}
}

@media (max-width: 768px) {
	.filter-tabs {
		gap: 5px;
		padding: 0 4% 20px 4%;
	}
	.filter-tabs.zero {
		padding: 0 4%;
	}

	.filter-tab {
		padding: 4px 10px;
	}

	.filter-tab.small {
		padding: 2px 6px;
		font-size: 12px;
	}

	.search-area {
		padding: 0 4% 20px 4%;
	}

	.book-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 25px;
		padding: 0;
	}

	.cta-title {
		font-size: 28px;
	}
}

@media (max-width: 480px) {
	.book-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}
}