.book-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: row;
    transition: transform 0.3s, box-shadow 0.3s;
    max-height: 220px;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.book-cover {
    flex: 0 0 150px;
    background-color: #f0f2f5;
}

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

.book-info {
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow: hidden;
}

.book-title {
    font-size: 1.2rem;
    line-height: 1.3;
    font-weight: 600;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.book-author {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.book-description {
    flex-grow: 1;
    font-size: 0.9rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.75rem;
}

.book-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.75rem;
}

.book-tag {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background-color: #e9ecef;
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    font-weight: 500;
}

.book-actions .btn {
    display: inline-block;
    width: auto;
    padding: 0.5rem 1.5rem;
}

@media (max-width: 768px) {
    .book-card {
        flex-direction: column;
        max-height: none;
    }

    .book-cover {
        flex-basis: 200px;
    }
}