/*
 * The computer's product card (module/computer/components/productCard.php) — listings and home page.
 * Study of 2026-10-19, L1: origin and brand once, the code on its own line, the name in two lines, the facts as chips,
 * the price in the text colour (L6) and "Adicionar" always there (L9). px: the computer's root is 10px.
 * Scoped under .prod .lb-pcard: the old group.css / index.css rules on `.prod .badge` and `.productLink` (display,
 * size, a 4-line clamp, !important colours) must not reach it.
 */
.prod.mb-4{
    display: flex;
    padding-bottom: 0;
}

.prod:hover{
    box-shadow: none;
}

.prod .lb-pcard{
    position: relative;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--lb-border);
    border-radius: 10px;
    background: var(--lb-card, #FFF);
    text-align: left;
    transition: border-color .12s;
}

.prod .lb-pcard:hover{
    border-color: var(--lb-brand);
}

.prod .lb-pcard-img{
    position: relative;
    display: block;
    height: 170px;
    margin-bottom: 4px;
}

.prod .lb-pcard-img img{
    width: 100%;
    height: 170px;
    object-fit: contain;
}

.prod .lb-pcard .lb-pcard-star{
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    display: inline-block !important;
    padding: 4px 6px;
    border-radius: 4px;
    font-size: 11px;
}

.prod .lb-pcard-units,
.prod .lb-pcard-measure{
    position: absolute;
    bottom: 4px;
    padding: 2px 8px;
    border-radius: 10px;
    background: var(--lb-surface);
    color: var(--lb-text);
    font-size: 12px;
    font-weight: 600;
}

/* right, not left: a label's measure pill sits in the middle of the same line */
.prod .lb-pcard-units{
    right: 0;
}

.prod .lb-pcard-measure{
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.prod .lb-pcard-swatch{
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 1px solid var(--lb-border);
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
}

.prod .lb-pcard-origin{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-height: 20px;
}

.prod .lb-pcard-origin .badge{
    display: inline-block !important;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .03em;
    line-height: 1.2;
}

.prod .lb-pcard-brand{
    color: var(--lb-text-muted);
    font-size: 12px;
}

.prod .lb-pcard-code,
.prod .lb-pcard-code:hover{
    color: var(--lb-text);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.prod .lb-pcard-code:hover{
    color: var(--lb-brand);
}

.prod .lb-pcard-name.productLink,
.prod .lb-pcard-name.productLink > span{
    color: #495057 !important;
    font-size: 13px;
    font-weight: 400;
    line-height: 19px;
}

.prod .lb-pcard-name.productLink > span{
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    min-height: 38px;
}

.prod .lb-pcard-name.productLink:hover > span{
    color: var(--lb-brand) !important;
}

.prod .lb-pcard-group{
    overflow: hidden;
    color: var(--lb-accent-text);
    font-size: 12px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.prod .lb-pcard-facts{
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.prod .lb-pcard-fact{
    padding: 1px 8px;
    border: 1px solid var(--lb-border);
    border-radius: 11px;
    background: var(--lb-surface);
    color: #495057;
    font-size: 11.5px;
    white-space: nowrap;
}

.prod .lb-pcard-fact-saving{
    border-color: var(--lb-accent-tint);
    background: var(--lb-accent-tint);
    color: var(--lb-accent-text);
    font-weight: 600;
}

.prod .lb-pcard-dims{
    color: var(--lb-text-muted);
    font-size: 12px;
}

.prod .lb-pcard-supplies{
    color: var(--lb-accent-text);
    font-size: 12.5px;
    font-weight: 600;
}

.prod .lb-pcard-price{
    display: block;
    margin-top: auto;
    padding-top: 6px;
    line-height: 1.3;
}

.prod .lb-pcard-price .price{
    display: block;
    color: var(--lb-text);
    font-size: 19px;
    font-weight: 700;
}

.prod .lb-pcard-price .lb-pcard-status{
    color: var(--lb-text-muted);
    font-size: 14px;
    font-weight: 600;
}

.prod .lb-pcard-price small{
    display: block;
    color: var(--lb-text-muted);
    font-size: 11.5px;
}

.prod .lb-pcard-add{
    width: 100%;
    min-height: 40px;
    margin-top: 6px;
    font-size: 14px;
    font-weight: 600;
}

@media (prefers-reduced-motion: reduce){
    .prod .lb-pcard{ transition: none; }
}
