.product-card {

    display: flex;

    flex-direction: column;

    height: 100%;
}

.product-card__link {
    position: relative;

    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 {
    position: relative;
    z-index: 1;

    aspect-ratio: 2 / 3;

    display: flex;

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

    padding: 0;
}

.product-card__cover picture {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card__cover img {
    display: block;

    max-width: 86%;
    max-height: 88%;

    width: auto;
    height: auto;

    object-fit: contain;
    object-position: center;

    transition:
        transform .25s ease;
}

.product-cover-image--shadow {
    filter:
        drop-shadow(
            10px 10px 14px
            rgba(0,0,0,.18)
        );
}

.product-cover-image--no-shadow {
    filter: none;
}

.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: 0.35rem;

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

.product-card__context-badge {
    display: inline-flex;

    align-items: center;

    align-self: flex-start;

    min-height: 1.7rem;

    padding: 0 0.65rem;

    border-radius: 999px;

    background: rgba(118, 86, 56, 0.12);

    border: 1px solid rgba(118, 86, 56, 0.18);

    color: #5d4631;

    font-size: 0.78rem;

    font-weight: 700;

    line-height: 1;

    letter-spacing: 0.01em;
}

.product-card__context-badge--top-center {
    position: absolute;
    top: 0.55rem;
    left: 50%;
    z-index: 20;

    transform: translateX(-50%);
    align-self: center;

    margin: 0;

    background: linear-gradient(135deg, #1f1b24 0%, #7a2d57 100%);
    border-color: rgba(255, 255, 255, 0.35);
    color: #ffffff;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}

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

    font-weight: 700;

    letter-spacing: .08em;

    text-transform: uppercase;

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

.product-card__series {
    display: flex;

    flex-wrap: wrap;

    gap: .35rem;

    color: var(--color-muted);

    font-size: .78rem;

    font-weight: 600;
}

.product-card__series-position {
    color: var(--color-accent);
}

.product-card__title {
    margin: 0 !important;

    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);

}

@media (max-width: 768px) {

    .product-card__cover {
        padding: .3rem;
    }

    .product-card__cover img {
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
    }
}

@media (max-width: 640px) {

    .product-card__cover {
        padding: .25rem;
    }

    .product-card__cover img {
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
    }
}

@media (max-width: 480px) {

    .product-card__cover {
        padding: .2rem;
    }

    .product-card__cover img {
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
    }
}