/* Layout */
.book-library {
/*   display: flex; */
  gap: 30px;
  padding: 30px;
  box-sizing: border-box;
}

/* Sidebar */
.book-sidebar {
  width: 20%;
  border-right: 2px solid #eee;
}
.book-sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.book-sidebar li {
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid #f5f5f5;
  transition: background 0.2s;
}
.book-sidebar li:hover,
.book-sidebar li.active {
  background: #f2f2f2;
  font-weight: 600;
}

/* Content Area */
.book-content {
  width: 100%;
  padding: 10px;
}

/* Grid */
.book-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}
.book-item {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  text-align: center;
}
.book-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}
.book-item h4 {
  margin: 10px;
  font-size: 17px;
  color: #333;
}
.no-img {
  width: 100%;
  height: 260px;
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
}

/* Responsive */
@media(max-width:992px){ .book-grid{grid-template-columns:repeat(2,1fr);} }
@media(max-width:600px){
  .book-library{flex-direction:column;}
  .book-sidebar{width:100%;border:none;border-bottom:2px solid #eee;}
  .book-content{width:100%;}
  .book-grid{grid-template-columns:1fr;}
}
