/* assets/dk/css/maghalino.css — کارت محصول داخل بدنه مقاله + دیسکلوزر مقالینو
   هماهنگ با پالت و تایپوگرافی قالب دیجی‌کالایی فروشگاه (متغیرهای --ink/--red/…) */

/* ---------- کارت محصول در مقاله ---------- */
.mag-pcard {
  display: flex;
  gap: 18px;
  align-items: stretch;
  background: var(--sx-surface);
  border: 1px solid #e8e9ee;
  border-radius: 12px;
  padding: 16px;
  margin: 26px 0;
  box-shadow: 0 2px 10px rgba(63, 64, 100, .06);
  transition: box-shadow .18s ease, transform .18s ease;
}
.mag-pcard:hover {
  box-shadow: 0 8px 22px rgba(63, 64, 100, .12);
  transform: translateY(-2px);
}
.mag-pcard .mag-pc-img {
  position: relative;
  flex: 0 0 168px;
  align-self: center;
}
.mag-pcard .mag-pc-img img {
  width: 168px;
  height: 168px;
  object-fit: contain;
  border-radius: 8px;
  background: #fafafa;
}
.mag-pc-off {
  position: absolute;
  top: 8px;
  inset-inline-end: 8px;
  background: var(--red, var(--sx-err));
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
  padding: 2px 7px;
  line-height: 1.7;
}
.mag-pc-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.mag-pc-brand {
  font-size: 11px;
  color: var(--sx-ink-3);
  margin-bottom: 3px;
}
.mag-pc-name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink, var(--sx-ink));
  line-height: 1.9;
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.mag-pc-name:hover { color: var(--red, var(--sx-err)); }
.mag-pc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  font-size: 11.5px;
  color: var(--sx-ink-3);
  margin-bottom: auto;
  padding-bottom: 10px;
}
.mag-pc-rate { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--sx-ink); }
.mag-pc-rate i { color: #f7c344; font-size: 12px; }
.mag-pc-rate em { font-style: normal; font-weight: 400; color: var(--sx-ink-3); font-size: 10.5px; }
.mag-pc-stock { font-weight: 600; }
.mag-pc-stock.ok { color: #2faecf; }
.mag-pc-stock.no { color: var(--sx-err); }
.mag-pc-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin: 4px 0 10px;
}
.mag-pc-price del {
  font-size: 11.5px;
  color: #b3b6bd;
}
.mag-pc-price b {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink, var(--sx-ink));
}
.mag-pc-price i {
  font-style: normal;
  font-size: 10.5px;
  color: var(--sx-ink-3);
}
.mag-pc-cta {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red, var(--sx-err));
  color: #fff;
  border-radius: 8px;
  padding: 11px 22px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.mag-pc-cta:hover { filter: brightness(1.05); }
.mag-pc-cta i { font-size: 13px; }

/* ---------- دیسکلوزر هوش مصنوعی ---------- */
.mag-disclosure {
  margin: 26px 0 4px;
  padding-top: 12px;
  border-top: 1px dashed #e3e4e8;
  color: var(--sx-ink-3);
}
.mag-disclosure small { font-size: 11px; line-height: 2; }

/* ---------- موبایل ---------- */
@media (max-width: 560px) {
  .mag-pcard { flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 14px; }
  .mag-pcard .mag-pc-img img { width: 150px; height: 150px; }
  .mag-pc-name { display: block; -webkit-line-clamp: 3; }
  .mag-pc-meta { justify-content: center; }
  .mag-pc-price { justify-content: center; }
  .mag-pc-cta { align-self: center; width: 100%; justify-content: center; }
}
