.book-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

@media (max-width: 1500px) {
    .book-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 1280px) {
    .book-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1024px) {
    .book-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .book-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.book-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.15s;
}

.book-card:hover {
    opacity: 0.85;
}

.book-card__cover {
    aspect-ratio: 2 / 3;
    background: #ece9e3;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.book-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.book-card__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.book-card__title {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #1a1a1a;
}

.book-card__author {
    font-size: 0.75rem;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.book-card__price {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-top: 2px;
}

.book-grid__more {
    margin-top: 32px;
    display: flex;
    justify-content: center;
}

.btn--more {
    padding: 10px 32px;
    font-size: 0.9375rem;
    font-weight: 600;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.15s;
}

.btn--more:hover {
    opacity: 0.8;
}

.btn--more:disabled {
    opacity: 0.5;
    cursor: default;
}

/* ── Book tabs ── */
.book-tabs {
    display: flex;
    border-bottom: 1px solid #e0e0d8;
    margin-bottom: 24px;
}

.book-tab {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 10px 20px;
    font-family: inherit;
    font-size: 0.9rem;
    color: #555;
    cursor: pointer;
    margin-bottom: -1px;
    transition: color 0.15s, border-color 0.15s;
}

.book-tab:hover {
    color: #1a1a1a;
}

.book-tab--active {
    color: #1a1a1a;
    font-weight: 500;
    border-bottom-color: #1a1a1a;
}
