/*
 * Product card component
 *
 * Required markup:
 * .product-card > .screen-top > .dot
 * .product-card > .mini-flow > .mini-row > .mini-icon + text + .status
 */

:root {
    --product-card-ink: var(--ink, #111214);
    --product-card-muted: var(--muted, #60646c);
    --product-card-line: var(--line, #dfded8);
    --product-card-panel: var(--panel, #ffffff);
    --product-card-blue: var(--blue, #C05A36);
    --product-card-green: var(--green, #0f8a55);
    --product-card-green-soft: var(--green-soft, #e7f7ef);
    --product-card-gold: var(--gold, #bd8500);
    --product-card-coral: var(--coral, #f15f45);
    --product-card-radius: var(--radius, 8px);
}

.product-card {
    position: relative;
    padding: 28px;
    border: 2px solid var(--product-card-ink);
    border-radius: var(--product-card-radius);
    background: var(--product-card-panel);
    box-shadow: 12px 12px 0 var(--product-card-blue);
}

.product-card::before {
    content: var(--product-card-badge-label, "Workflow");
    position: absolute;
    top: -18px;
    right: 22px;
    padding: 8px 14px;
    border: 2px solid var(--product-card-ink);
    border-radius: 999px;
    background: var(--product-card-green-soft);
    color: var(--product-card-green);
    font-size: 14px;
    font-weight: 900;
    transform: rotate(2deg);
}

.screen-top {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--product-card-line);
}

.dot:nth-child(1) {
    background: var(--product-card-coral);
}

.dot:nth-child(2) {
    background: var(--product-card-gold);
}

.dot:nth-child(3) {
    background: var(--product-card-green);
}

.mini-flow {
    display: grid;
    gap: 14px;
}

.mini-row {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--product-card-line);
    border-radius: var(--product-card-radius);
    background: #fff;
}

.mini-icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: var(--product-card-radius);
    color: #fff;
    background: var(--product-card-blue);
    font-weight: 950;
}

.mini-title {
    display: block;
    font-weight: 900;
}

.mini-meta {
    color: var(--product-card-muted);
    font-size: 14px;
    font-weight: 650;
}
.mini-copy {
    min-width: 0;
}

.status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    line-height: 1;
}
.status {
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--product-card-green);
    background: var(--product-card-green-soft);
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

@media (max-width: 660px) {
    .product-card {
        padding: 20px;
        box-shadow: 7px 7px 0 var(--product-card-blue);
    }

    .mini-row {
        grid-template-columns: 38px 1fr;
    }

    .status {
        grid-column: 2;
        justify-self: start;
    }
}
