/* ------------------------------
   Category Section
------------------------------ */
.category-section {
    margin-bottom: 60px;
    padding: 20px;
    border-radius: 8px;
}
.category-section:nth-child(odd) { background:#f9f9f9; }
.category-section:nth-child(even){ background:#fbf7f3; }

.category-title {
    font-size: 2rem;
    margin-bottom: 20px;
    border-bottom: 3px solid #ddd;
    padding-bottom: 10px;
}

/* ------------------------------
   Grid
------------------------------ */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(200px,1fr));
    gap: 20px;
}
.books-grid.is-wide {
    grid-template-columns: repeat(auto-fill,minmax(320px,1fr));
}

/* ------------------------------
   Card
------------------------------ */
.book-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    padding: 10px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* ------------------------------
   Images
------------------------------ */
.books-grid:not(.is-wide) .book-image { aspect-ratio: 3/4; }
.books-grid.is-wide .book-image { aspect-ratio: 4/3; }

.book-image {
    width: 100%;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 10px;
}

.book-image img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.books-grid.is-wide .book-image img {
    object-fit: cover;
}

/* ------------------------------
   Title & Excerpt
------------------------------ */
.book-title {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 10px;
}
.book-title h3 {
    font-size: 1.1rem;
    margin: 0;
}
.book-title a {
    text-decoration: none;
    color: inherit;
}

.book-excerpt {
    font-size: 0.9rem;
    color: #555;
}

/* ------------------------------
   Pagination
------------------------------ */
.pagination {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    margin: 0 5px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #ddd;
    text-decoration: none;
	color: black;
}
.pagination a.page-numbers:hover {
	background: #f3443f;
	color: #fff;
}
.pagination .current {
    background: #f3443f;
    color: #fff;
    border-color: #f3443f;
}