/* ===========================================================
   MishiLand — Category Grid (v10.2)
   دامنه: فقط #mlcat-v101 و فرزندانش. هیچ کلاس عمومی WoodMart/
   ووکامرس/وردپرس (body, .container, .site-content, .content-area)
   در این فایل استفاده نشده است. فقط روی صفحه فروشگاه/آرشیو دسته
   لود می‌شود (functions.php).
   =========================================================== */
#mlcat-v101, #mlcat-v101 * { box-sizing: border-box; }

#mlcat-v101 {
  direction: rtl;
  font-family: "Vazirmatn", Tahoma, sans-serif;
  margin: 0 0 28px;
}

#mlcat-v101 .mlcat-grid-title {
  font-size: 20px;
  font-weight: 800;
  color: #1f2937;
  margin: 0 0 16px;
  position: relative;
  padding-inline-start: 14px;
}
#mlcat-v101 .mlcat-grid-title::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 3px;
  bottom: 3px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, #e8c988, #cfa35a);
}

/* موبایل: ۲ ستون، بدون بیرون‌زدگی */
#mlcat-v101 .mlcat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

#mlcat-v101 .mlcat-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: #14100a;
  border: 1px solid rgba(207, 163, 90, 0.22);
  border-radius: 18px;
  overflow: hidden;
  min-width: 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
#mlcat-v101 .mlcat-card:hover {
  transform: translateY(-3px);
  border-color: #cfa35a;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
}

#mlcat-v101 .mlcat-card__media {
  display: block;
  aspect-ratio: 4 / 3;
  background: #201a10;
  overflow: hidden;
}
#mlcat-v101 .mlcat-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#mlcat-v101 .mlcat-card__body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 12px 12px;
}
#mlcat-v101 .mlcat-card__name {
  font-size: 13.5px;
  font-weight: 700;
  color: #f3ead9;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
#mlcat-v101 .mlcat-card__count {
  font-size: 11px;
  color: #a99a80;
}
#mlcat-v101 .mlcat-card__cta {
  margin-top: 6px;
  font-size: 11.5px;
  font-weight: 800;
  color: #e8c988;
}

/* تبلت: ۳ ستون */
@media (min-width: 700px) {
  #mlcat-v101 .mlcat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  #mlcat-v101 .mlcat-grid-title { font-size: 22px; }
  #mlcat-v101 .mlcat-card__name { font-size: 14.5px; }
}

/* دسکتاپ: ۴ ستون */
@media (min-width: 1024px) {
  #mlcat-v101 .mlcat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  #mlcat-v101 .mlcat-card__body { padding: 12px 14px 14px; }
}
