/* =====================================================================
   صفحه‌ی اصلی — چیدمان‌های سازنده‌ی «ظاهر و ویترین» (FIX_PLAN2 C2/C3، CNT)
   • گروه بنر: تمام‌عرض فقط تصویر، ترکیبی «یک بزرگ + دو/چهار کوچک».
   • محصولات: کارت بزرگ (دوتایی) و فهرست فشرده.
   پایه‌ی .hh-bgrid در store.css است؛ اینجا فقط افزوده‌ها.
   ===================================================================== */

/* ── گروه بنر: تمام‌عرض فقط تصویر ─────────────────────────────────── */
.hh-bgrid--strip .hh-bgrid__in { grid-template-columns: 1fr; gap: 16px; }
.hh-bgrid--strip .hh-bgrid__tile { aspect-ratio: 32 / 9; border-radius: 16px; }

/* ── گروه بنر: ترکیبی ────────────────────────────────────────────── */
.hh-bmix { display: grid; gap: 20px; }
.hh-bmix .hh-bgrid__tile { aspect-ratio: auto; min-height: 0; }
.hh-bmix--big2 { grid-template-columns: 2fr 1fr; grid-template-rows: repeat(2, 220px); }
.hh-bmix--big2 .hh-bmix__big { grid-row: 1 / span 2; grid-column: 1; }
.hh-bmix--big2r { grid-template-columns: 1fr 2fr; grid-template-rows: repeat(2, 220px); }
.hh-bmix--big2r .hh-bmix__big { grid-row: 1 / span 2; grid-column: 2; }
.hh-bmix--big4 { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, 220px); }
.hh-bmix--big4 .hh-bmix__big { grid-row: 1 / span 2; grid-column: 1; }
.hh-bmix .hh-bgrid__tile { height: 100%; }
.hh-bmix .hh-bgrid__tile picture, .hh-bmix .hh-bgrid__tile img { height: 100%; }
.hh-bmix .hh-bmix__big .hh-bgrid__t { font-size: 24px; }
/* بیش از جای طرح: بنرهای اضافه دیده نمی‌شوند (پنل هشدار می‌دهد). */
.hh-bmix--big2 > :nth-child(n+4), .hh-bmix--big2r > :nth-child(n+4), .hh-bmix--big4 > :nth-child(n+6) { display: none; }

/* ── محصولات: کارت‌های بزرگ دوتایی ──────────────────────────────── */
.hh-pgrid-lg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 1024px) { .hh-pgrid-lg { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ── محصولات: فهرست فشرده ─────────────────────────────────────────── */
.hh-plist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 24px; }
.hh-plist__i { display: flex; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--bd); background: var(--surf); color: var(--tx); text-decoration: none; transition: border-color .2s; }
.hh-plist__i:hover { border-color: var(--brand); }
.hh-plist__img { flex: 0 0 auto; width: 72px; height: 90px; background: var(--n50); overflow: hidden; font-size: 0; color: transparent; }
.hh-plist__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hh-plist__txt { flex: 1 1 0%; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.hh-plist__n { font-size: 13.5px; font-weight: 500; line-height: 21px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.hh-plist__p { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; font-size: 13px; }
.hh-plist__p b { font-weight: 700; }
.hh-plist__p small { font-weight: 400; font-size: 11px; color: var(--tx2); }
.hh-plist__p s { color: var(--mut, #8a8f8c); font-size: 11.5px; }
.hh-plist__p em { font-style: normal; font-size: 11px; font-weight: 700; color: #fff; background: var(--sale); padding: 1px 6px; }
.hh-plist__out { font-size: 11px; color: var(--sale); }

@media (max-width: 1024px) {
  .hh-plist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .hh-bgrid--strip .hh-bgrid__in { display: grid !important; overflow: visible !important; }
  .hh-bgrid--strip .hh-bgrid__tile { flex: none !important; aspect-ratio: 16 / 9; border-radius: 12px; }
  /* ترکیبی روی گوشی: بزرگ تمام‌عرض بالا، کوچک‌ها دوتایی زیرش (نه ریل افقی). */
  .hh-bmix { display: grid !important; overflow: visible !important; grid-template-columns: 1fr 1fr !important; grid-template-rows: none !important; gap: 10px !important; }
  .hh-bmix .hh-bgrid__tile { flex: none !important; grid-row: auto !important; grid-column: auto !important; aspect-ratio: 1 / 1; border-radius: 12px; }
  .hh-bmix .hh-bmix__big { grid-column: 1 / -1 !important; aspect-ratio: 16 / 10; }
  .hh-bmix .hh-bgrid__tile { height: auto; }
  .hh-bmix .hh-bmix__big .hh-bgrid__t { font-size: 17px; }
  .hh-pgrid-lg { grid-template-columns: 1fr; gap: 20px; }
  .hh-plist { grid-template-columns: 1fr; gap: 8px; }
}
