.product-card {

    display: flex;

    flex-direction: column;

    height: 100%;
}

.product-card__link {
    display: flex;

    flex-direction: column;

    height: 100%;

    background: var(--color-surface);

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-soft);

    overflow: hidden;

    text-decoration: none;

    color: inherit;

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.product-card:hover .product-card__link {
    transform: translateY(-4px);

    box-shadow: var(--shadow-cover);
}

.product-card__cover {
    aspect-ratio: 2 / 3;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: .75rem;
}

.product-card__cover img {
    display: block;

    width: auto;
    height: 100%;

    max-width: 80%;

    object-fit: contain;

    transition:
        transform .25s ease;
}

.product-card__placeholder {

    aspect-ratio: 2 / 3;

    background: var(--color-border);

    border-radius: var(--radius-md);
}

.product-card:hover .product-card__cover img {

    transform: scale(1.02);
}

.product-card__content {

    display: flex;

    flex-direction: column;

    gap: .4rem;

    padding:
        var(--space-md)
        var(--space-md)
        var(--space-md);
}

.product-card__genre {
    font-size: .78rem;

    font-weight: 700;

    letter-spacing: .08em;

    text-transform: uppercase;

    color: var(--color-accent);
}

.product-card__title {
    margin: 0;

    color: var(--color-text);

    font-size: .98rem;

    font-weight: 800;

    line-height: 1.35;

    overflow-wrap: anywhere;
}

.product-card__author {
    color: var(--color-muted);

    font-size: .9rem;

    line-height: 1.45;
}

.product-card__link:focus-visible {

    outline: 2px solid
        var(--color-accent);

    outline-offset: 4px;

    border-radius:
        var(--radius-md);
}

.product-card__format {

    color: var(--color-muted);

    font-size: .82rem;

    font-weight: 600;
}

.product-card .bookshelf-actions {

    margin-top:
        var(--space-md);

    padding:
        var(--space-md);

}