/* ═══════════════════════════════════════════════════════════════
   NAT-HIDE-EMPTY-AD — مخفی کردن کادر تبلیغ خالی
   زیر «پیشنهاد ناتمام» در hero__side
   ═══════════════════════════════════════════════════════════════ */

/* ─── مخفی کردن کادر خالی تبلیغ کنار Hero ─── */
.nat-ad--home-hero-side:empty,
.nat-ad--home-hero-side > div:empty,
.nat-ad--home-hero-side .nat-ad__body:empty,
.nat-ad--home-hero-side .nat-ad__content:empty,
.nat-ad--home-hero-side.nat-ad-empty,
.nat-ad--home-hero-side[data-empty="1"] {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    left: -9999px !important;
}

/* ─── مخفی کردن wrapper والدِ تبلیغ خالی ─── */
.hero__side > div:empty,
.hero__side > div:has(> div:empty),
.hero__side > div:has(> .nat-ad--home-hero-side:empty),
.hero__side > div:has(> .nat-ad-empty),
.hero__side > div[data-empty="1"] {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/* ─── اگر تبلیغ فقط لینک بدون محتوا داشت — مخفی ─── */
.nat-ad--home-hero-side a:not(:has(img)):not(:has(video)):not(:has(iframe)):not(:has(picture)):not(:has(svg)) {
    display: none !important;
}

/* ─── hero__side وقتی تبلیغ ندارد، فقط hero-picks بماند ─── */
.hero__side:not(:has(img)):not(:has(video)):not(:has(iframe)) {
    /* فقط hero-picks را نگه دار */
    grid-template-rows: 1fr !important;
}