.title-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 26px;
    align-items: stretch;
}

.title-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 14px 34px rgba(23, 32, 51, .07);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.title-card:hover {
    border-color: rgba(181, 31, 42, .28);
    box-shadow: 0 22px 46px rgba(23, 32, 51, .13);
    transform: translateY(-5px);
}

.title-cover {
    min-height: 286px;
    display: grid;
    align-content: end;
    overflow: hidden;
    padding: 18px;
    color: var(--white);
    background:
        linear-gradient(135deg, rgba(181, 31, 42, .92), rgba(217, 154, 43, .82)),
        url('https://images.unsplash.com/photo-1512820790803-83ca734da794?auto=format&fit=crop&w=700&q=82') center/cover;
}

.title-cover img {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
}

.title-cover.has-cover {
    display: block;
    min-height: 0;
    padding: 0;
    background: transparent;
}

.title-cover span {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.title-cover strong {
    display: block;
    margin-top: 8px;
    font-size: 18px;
    line-height: 1.25;
}

.title-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 18px;
}

.title-body h3 {
    margin: 0 0 12px;
    font-size: 16px;
    line-height: 1.35;
}

.title-body h3 a:hover {
    color: var(--brand);
}

.title-author,
.title-meta {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.title-meta {
    margin-top: 8px;
}

.title-meta span::before {
    content: " / ";
}

.title-body .price {
    margin-top: auto;
    padding-top: 18px;
}

.empty-state {
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    color: var(--muted);
    font-weight: 700;
    box-shadow: 0 10px 28px rgba(23, 32, 51, .05);
}

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

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

    .title-cover {
        min-height: 260px;
    }
}
