/* کارت محصول مشترک (templates/partials/product_card.html) و شبکهٔ محصولات */
.pc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
@media (min-width: 768px) { .pc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; } }
@media (min-width: 1280px) { .pc-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.pc-card { display: flex; flex-direction: column; background: var(--card-glass); border: 1px solid var(--border-glow); border-radius: var(--radius-lg); overflow: hidden; transition: border-color .2s; }
.pc-card:hover { border-color: var(--primary); }
.pc-img { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; background: #fff; }
.pc-img img { width: 100%; height: 100%; object-fit: contain; }
.pc-noimg { display: flex; flex-direction: column; align-items: center; gap: .55rem; font-weight: 900; font-size: .78rem; color: #475569; padding: .5rem; text-align: center; }
.pc-img:has(.pc-noimg) { background: linear-gradient(160deg, #f8fafc, #e0f2fe); }
.pc-noimg-ico { width: 42%; max-width: 5rem; height: auto; aspect-ratio: 1; color: #0369a1; opacity: .85; }
.pc-off { position: absolute; top: .4rem; right: .4rem; background: var(--cosmic-rose); color: #fff; font-size: .68rem; font-weight: 900; border-radius: 999px; padding: .05rem .45rem; }
.pc-body { display: flex; flex-direction: column; gap: .25rem; padding: .6rem .65rem .7rem; flex: 1; }
.pc-pn { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .78rem; font-weight: 800; color: var(--primary); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; }
.pc-title { font-size: .72rem; color: var(--text-muted); text-decoration: none; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.3rem; }
.pc-meta { display: flex; gap: .35rem; align-items: center; font-size: .65rem; overflow: hidden; }
.pc-stock { font-weight: 800; border-radius: 999px; padding: 0 .45rem; white-space: nowrap; }
.pc-stock.in { color: #10b981; background: rgb(16 185 129 / .12); }
body.light-mode .pc-stock.in { color: var(--success); }
.pc-stock.out { color: var(--cosmic-rose); background: rgb(244 63 94 / .12); }
.pc-cat { color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: .4rem; margin-top: auto; padding-top: .3rem; }
.pc-price { display: flex; flex-direction: column; line-height: 1.3; }
.pc-price del { font-size: .65rem; color: var(--text-muted); }
.pc-price strong { font-size: .88rem; font-weight: 900; color: var(--text-main); }
.pc-price small { font-size: .62rem; color: var(--text-muted); }
.pc-add { border-radius: .65rem; padding: .35rem .55rem; font-size: .7rem; font-weight: 900; background: var(--primary); color: var(--on-primary, #001018); white-space: nowrap; text-decoration: none; }
.pc-add-ghost { background: transparent; border: 1px solid var(--border-glow); color: var(--text-main); }
.pc-add[disabled] { opacity: .6; }
