/* ---------- کارت جمع‌وجور (ستون باریک) ---------- */
body .agedd-card.is-compact { display: flex; flex-direction: column; aspect-ratio: auto; height: 100%; min-width: 0; background: #fff; border: 1px solid var(--agedd-border, #e8e8ee); border-radius: 14px; direction: rtl; }
body .agedd-card.is-compact .agedd-card__media { position: relative; inset: auto; flex: 0 0 auto; width: 100%; aspect-ratio: var(--agedd-ratio, 271 / 221); overflow: hidden; background: linear-gradient(135deg, var(--agedd-c1, #935152), var(--agedd-c2, #727f9f)); }
body .agedd-card.is-compact .agedd-card__img { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; object-fit: cover; }
body .agedd-card.is-compact .agedd-card__cat { top: 7px; right: 7px; max-width: calc(100% - 14px); padding: 2px 9px; font-size: 10px; }
body .agedd-card.is-compact .agedd-card__overlay { position: static; flex: 1 1 auto; justify-content: space-between; gap: 8px; padding: 8px; background: none; pointer-events: auto; }
body .agedd-card.is-compact .agedd-card__title { margin: 0; padding: 0; font-size: 12.5px; line-height: 1.8; min-height: 3.6em; text-align: right; }
body .agedd-card.is-compact .agedd-card__title a { color: var(--agedd-text, #24243a) !important; }
body .agedd-card.is-compact .agedd-box { gap: 4px; padding: 7px 0 0; margin: 0; background: none; border: 0; border-top: 1px solid var(--agedd-border, #e8e8ee); border-radius: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
body .agedd-card.is-compact .agedd-box__price { flex: 1 1 auto; min-width: 0; flex-wrap: wrap; gap: 0 3px; color: var(--agedd-text, #24243a); }
body .agedd-card.is-compact .agedd-amount { font-size: 13.5px; line-height: 1.5; }
body .agedd-card.is-compact .agedd-currency, body .agedd-card.is-compact .agedd-from { font-size: 10px; color: var(--agedd-muted, #858595); }
body .agedd-card.is-compact .agedd-price-free { font-size: 13.5px; color: var(--agedd-c1, #935152); }
body .agedd-card.is-compact .agedd-icon-btn { width: 32px; height: 32px; border-radius: 9px; }
body .agedd-card.is-compact .agedd-icon-btn .agedd-icon { width: 18px; height: 18px; }

@media (max-width: 520px) {
	body .agedd-grid.agedd-cols-2, body .agedd-grid.agedd-cols-3, body .agedd-grid.agedd-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

/* ---------- پاپ‌آپ جستجو ---------- */
body .agedd-search { position: fixed; inset: 0; z-index: 100010; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 8px; padding: calc(env(safe-area-inset-top, 0px) + 16px) 14px 16px; direction: rtl; box-sizing: border-box; }
body .agedd-search[hidden] { display: none; }
body .agedd-search__backdrop { position: absolute; inset: 0; background: rgba(12, 12, 28, .55); }
body .agedd-search__box { position: relative; flex: 0 0 auto; width: 100%; max-width: 520px; box-sizing: border-box; }
.agedd-results { position: relative; width: 100%; max-width: 520px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; box-sizing: border-box; padding: 10px; background: #fff; border-radius: 16px; text-align: right; }
.agedd-results:empty { display: none; }
.agedd-results h4 { margin: 6px 4px; font-size: 12px; color: #858595; }
.agedd-results a.agedd-result { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid #eee; color: #24243a; text-decoration: none; }
.agedd-result img { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 9px; object-fit: cover; }
.agedd-result__title { flex: 1; min-width: 0; font-size: 13px; line-height: 1.8; }
.agedd-result__price { display: flex; gap: 3px; align-items: baseline; white-space: nowrap; font-size: 12px; }
.agedd-result__price .agedd-amount { font-size: 13px; }
.agedd-results p { margin: 8px; font-size: 13px; color: #858595; text-align: center; }
