.book-detail-layout {
    display: grid;
    grid-template-columns: minmax(240px, 340px) 1fr;
    gap: 30px;
    align-items: start;
}

.book-detail-cover {
    min-height: 460px;
    display: grid;
    align-content: end;
    overflow: hidden;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    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;
    box-shadow: 0 14px 34px rgba(23, 32, 51, .07);
}

.book-detail-cover.has-cover {
    display: block;
    min-height: 0;
    padding: 0;
    background: #eee4d7;
}

.book-detail-cover img {
    width: 100%;
    min-height: 460px;
    object-fit: cover;
}

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

.book-detail-cover strong {
    display: block;
    margin-top: 10px;
    font-size: 24px;
    line-height: 1.2;
}

.book-detail-card {
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.book-detail-subject {
    margin: 0 0 10px;
    color: var(--brand);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.book-detail-card h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
}

.book-detail-author {
    margin: 14px 0 0;
    color: var(--muted);
    font-weight: 700;
}

.book-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    margin: 24px 0;
}

.book-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}

.book-meta-grid div {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fffaf3;
}

.book-meta-grid dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.book-meta-grid dd {
    margin: 7px 0 0;
    font-weight: 800;
}

.book-copy {
    margin-top: 28px;
}

.book-copy h3 {
    margin: 0 0 10px;
    font-size: 22px;
}

.book-copy p {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}

.book-copy-empty {
    text-align: center;
}

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

    .book-detail-cover,
    .book-detail-cover img {
        min-height: 360px;
    }
}

@media (max-width: 640px) {
    .book-detail-card {
        padding: 22px;
    }

    .book-meta-grid {
        grid-template-columns: 1fr;
    }
}
