.level-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.level-btn {
  padding: 0.4rem 0.8rem;
  border: 1px solid #0B3C5D;
  background-color: white;
  color: #0B3C5D;
  font-size: 0.85rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.level-btn:hover {
  background-color: #0B3C5D;
  color: white;
}

.level-btn.active {
  background-color: #0B3C5D;
  color: white;
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.book-card {
  border: 1px solid #e5e5e5;
  padding: 0.5rem;
  border-radius: 6px;
  text-align: center;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);

  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  height: 100%;
}

.book-card img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.book-card h3 {
  margin: 0.5rem 0;
}

.book-subtitle{
  margin: 0 1rem;
}

.book-subtitle p {
  font-size: 0.9rem;
  color: #555;
  margin: 0;
}

.book-price p {
  font-weight: 900;
  margin: 0.5rem 0;
}

.book-card a {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.6rem 0.9rem;
  background-color: #FFA41C;;
  color: white;
  border-radius: 4px;
  text-decoration: none;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.book-card a:hover {
  background-color: #0B3C5D;
}
.no-results {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: #666;
}

@media (max-width: 768px) {
  .book-image img {
    height: 440px;
  }
}