/* Product cards: clear separation from the page background. */
body.pv .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
}

body.pv .product-card {
    background: var(--pv-surface);
    border: 1px solid var(--pv-card-border);
    border-radius: 12px;
    box-shadow: var(--pv-card-shadow);
    color: var(--pv-ink);
    transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

body.pv .product-card:hover,
body.pv .product-card:focus-within {
    border-color: var(--pv-blue);
    box-shadow: var(--pv-card-shadow-hover);
    transform: translateY(-2px);
}

body.pv .product-card img,
body.pv .product-card__placeholder {
    background: #eef1f6;
    border-bottom: 1px solid var(--pv-card-border);
}

/* Show the whole product instead of cropping the top and bottom. */
body.pv .product-card img {
    height: 240px;
    object-fit: contain;
    padding: 0.5rem;
}

body.pv .product-card__body {
    padding: 1rem 1rem 0.9rem;
}

body.pv .product-card__body h2 {
    color: var(--pv-ink);
    font: 650 0.975rem/1.35 var(--pv-font);
}

body.pv .product-card__price {
    color: var(--pv-blue);
    font: 750 1.125rem/1.3 var(--pv-font);
}

body.pv .product-card__actions {
    border-top: 1px solid var(--pv-border);
    background: #f8f9fc;
}

body.pv .product-card .product-card__add {
    height: 40px;
    border: 1px solid var(--pv-blue);
    border-radius: 6px;
    background: var(--pv-blue);
    color: #fff;
    font: 650 0.875rem var(--pv-font);
    cursor: pointer;
}

body.pv .product-card .product-card__add:hover {
    border-color: var(--pv-blue-hover);
    background: var(--pv-blue-hover);
}

body.pv .product-card .product-card__sold-out {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    border: 1px solid var(--pv-card-border);
    border-radius: 6px;
    background: #e6eaf1;
    color: #566074;
    font: 650 0.875rem var(--pv-font);
}

body.pv .product-card__status {
    color: var(--pv-blue);
}

body.pv .product-card__link:focus-visible,
body.pv .product-card__add:focus-visible {
    outline: 3px solid rgba(22, 104, 227, 0.45);
    outline-offset: 2px;
}

body.pv .shop-back-to-top {
    border-color: var(--pv-card-border);
    background: var(--pv-surface);
    color: var(--pv-ink);
    box-shadow: var(--pv-card-shadow);
}

@media (max-width: 560px) {
    body.pv .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    body.pv .product-card__body {
        padding: 0.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.pv .product-card {
        transition: none;
    }

    body.pv .product-card:hover,
    body.pv .product-card:focus-within {
        transform: none;
    }
}
