.product-card{display:flex;min-width:0;min-height:620px;flex-direction:column;overflow:hidden;border:1px solid var(--line);border-radius:12px;background:var(--surface);box-shadow:var(--shadow);transition:border-color .16s,box-shadow .16s,transform .16s}.product-card:hover{border-color:#b9d7d2;box-shadow:0 12px 30px rgba(22,34,53,.09);transform:translateY(-1px)}.product-image{position:relative;display:grid;place-items:center;width:100%;height:auto;aspect-ratio:1/1;padding:18px;border-bottom:1px solid var(--line);background:#fff;overflow:hidden}.product-image img{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;object-position:center}.image-placeholder{display:grid;place-items:center;width:100%;height:100%;border-radius:9px;background:linear-gradient(145deg,#f4f7fa,#e9eef4);color:#9aa7b6;font-size:27px;font-weight:800}.product-badges{position:absolute;top:8px;left:8px;display:flex;gap:5px;z-index:2}.product-badge{padding:2px 6px;border-radius:5px;background:#243142;color:#fff;font-size:10px;font-weight:800}.product-badge.ac{background:#243142;color:#85e2d7}.product-badge.sp{background:#e89416;color:#3b2903}.product-badge.source{background:#edf2f6;color:#516174;font-weight:650}.favorite-mark{position:absolute;top:8px;right:9px;color:#9ba6b3;font-size:17px}.product-body{display:flex;flex:1;min-height:0;flex-direction:column;gap:8px;padding:13px 14px 14px}.opportunity{display:flex;align-items:center;gap:9px}.opportunity span{flex:0 0 auto;color:var(--muted);font-size:11px}.score-track{flex:1;height:7px;border:1px solid var(--line);border-radius:5px;background:var(--surface-2);overflow:hidden}.score-track i{display:block;height:100%;border-radius:5px;background:linear-gradient(90deg,var(--teal),#4bc6b9)}.opportunity b{min-width:36px;text-align:right;color:var(--teal-dark);font-size:15px}.product-title{height:42px;margin:0;overflow:hidden;font-size:13.5px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.product-meta{display:flex;align-items:center;gap:6px;min-width:0;color:var(--muted);font-size:11px}.product-meta .asin{color:var(--teal-dark);font-family:ui-monospace,Consolas,monospace;font-weight:700;text-decoration:none}.product-meta .brand-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.product-meta .source-name{margin-left:auto;color:var(--faint)}.seller-row{display:flex;align-items:center;gap:6px;min-width:0;color:var(--muted);font-size:11px}.seller-row b{overflow:hidden;color:var(--ink);font-weight:600;text-overflow:ellipsis;white-space:nowrap}.fulfillment{margin-left:auto;padding:2px 7px;border-radius:5px;background:#fff0d9;color:#ac6207;font-size:10px;font-weight:750}.rank-list{display:grid;gap:5px}.rank-line{display:flex;align-items:center;gap:6px;min-width:0;padding:4px 7px;border:1px solid var(--line);border-radius:6px;background:var(--surface-2);color:var(--muted);font-size:10.5px}.rank-line b{color:var(--gold)}.rank-line span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.metric-grid{display:grid;grid-template-columns:1fr 1fr;gap:5px 13px;padding-top:2px}.metric{display:flex;align-items:center;justify-content:space-between;gap:6px;min-width:0;font-size:11.5px}.metric span{color:var(--muted)}.metric b{overflow:hidden;color:var(--ink);font-weight:650;text-overflow:ellipsis;white-space:nowrap}.metric b.hot{color:var(--orange)}.keyword-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;padding-top:2px}.keyword-strip span{display:flex;justify-content:space-between;gap:3px;padding:4px 5px;border-radius:5px;background:#f2f7f7;color:var(--muted);font-size:9.5px}.keyword-strip b{color:var(--teal-dark)}.product-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto;padding-top:9px;border-top:1px solid var(--line)}.price{font-size:18px;font-weight:800}.card-action{padding:7px 11px;border-radius:7px;background:var(--teal);color:#fff;text-decoration:none;font-size:11px;font-weight:650}.card-action:hover{background:var(--teal-dark)}
@media(max-width:620px){.product-card .product-image{height:auto;aspect-ratio:1/1}}

/* Compact, table-like product details. Keep labels close to their values. */
.product-body{gap:7px;padding:12px 14px 13px;font-size:12px;line-height:1.45}
.product-title{height:40px;font-size:13px;font-weight:650;line-height:1.5;letter-spacing:0}
.product-meta,.seller-row{font-size:10.5px;line-height:1.4}
.product-meta .asin{font-weight:650}
.seller-row b{font-weight:550}
.rank-list{gap:0;padding:4px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.rank-line{min-height:25px;padding:3px 1px;border:0;border-radius:0;background:transparent;font-size:10.5px}
.rank-line+.rank-line{border-top:1px dashed #e7ebef}
.rank-line b{flex:0 0 auto;padding:2px 6px;border-radius:5px;background:#ff8a1c;color:#fff;font-size:10px;font-weight:700;line-height:1.35}
.metric-grid{display:grid;grid-template-columns:max-content minmax(42px,1fr) max-content minmax(32px,1fr);column-gap:6px;row-gap:0;padding:5px 1px;border-bottom:1px dashed #e5eaee}
.metric{display:contents;font-size:10.8px;line-height:1.4}
.metric span,.metric b{min-width:0;padding:3px 0;white-space:nowrap}
.metric span{color:#7a8795;font-weight:400}
.metric b{overflow:visible;color:#273341;font-weight:600;text-align:left;text-overflow:clip}
.metric b.hot{color:#ef7b12;font-weight:650}
.keyword-strip{gap:5px;padding-top:1px}
.keyword-strip span{align-items:center;padding:4px 6px;background:#f5f8f8;color:#7a8795;font-size:9.5px;font-weight:400}
.keyword-strip b{font-weight:650}
.product-footer{padding-top:8px}
.price{font-size:17px;font-weight:750}
.external-link{display:inline-grid;place-items:center;flex:0 0 auto;width:20px;height:20px;border:1px solid #d9e1e8;border-radius:5px;background:#fff;color:#8795a4;text-decoration:none;transition:border-color .15s,background-color .15s,color .15s}
.external-link svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.external-link:hover{border-color:var(--teal);background:var(--teal-soft);color:var(--teal-dark)}
.product-meta .external-link{margin-left:-2px}
.rank-line .external-link{margin-left:auto}
.favorite-mark{display:grid;place-items:center;width:28px;height:28px;padding:0;border:1px solid transparent;border-radius:7px;background:rgba(255,255,255,.94);color:#93a0ae;cursor:pointer;font:22px/1 Arial,sans-serif;transition:.15s}
.favorite-mark:hover{border-color:#f0a04b;color:#ef8517;box-shadow:0 3px 10px rgba(26,39,54,.1)}
.favorite-mark.active{border-color:#f2a34e;background:#fff7ea;color:#ef8517}
.product-footer{justify-content:flex-end}
.card-action{min-width:104px;border:0;cursor:pointer;text-align:center}
.card-action.selected{background:#dcebff;color:#3574c4}
.card-action:disabled,.favorite-mark:disabled{cursor:wait;opacity:.65}
.entity-favorite{flex:0 0 auto;padding:0;border:0;background:transparent;color:#9aa6b4;cursor:pointer;font-size:15px;line-height:1}.entity-favorite.active,.entity-favorite:hover{color:#ef8517}
