/**
 * تبلیغات ووکامرس — CSS پیشخوان
 * پاسخگو، سازگار با RTL، بدون وابستگی خارجی.
 */

.wca-zone {
    margin: 24px 0;
}

/* ---------------- تبلیغ ---------------- */
.wca-ad {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f7f9fc 0%, #eef2f9 100%);
    border: 1px solid rgba(0, 0, 0, .06);
    box-shadow: 0 1px 3px rgba(16, 24, 40, .08);
    color: inherit;
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease;
}

.wca-ad:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 24, 40, .12);
}

.wca-ad-image {
    flex: 0 0 auto;
}

.wca-ad-image img {
    display: block;
    max-width: 220px;
    max-height: 120px;
    width: auto;
    border-radius: 8px;
}

.wca-ad-body {
    flex: 1 1 auto;
    min-width: 0;
}

.wca-ad-title {
    font-weight: 700;
    font-size: 1.1em;
    line-height: 1.35;
}

.wca-ad-text {
    margin-top: 6px;
    font-size: .95em;
    opacity: .82;
    line-height: 1.5;
}

.wca-ad-link-text {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 14px;
    border-radius: 999px;
    background: #2563eb;
    color: #fff;
    font-weight: 600;
    font-size: .9em;
}

a.wca-ad .wca-ad-link-text {
    background: rgba(37, 99, 235, .12);
    color: #1d4ed8;
}

/* ---------------- موبایل / RTL ---------------- */
@media (max-width: 640px) {
    .wca-ad {
        flex-direction: column;
        text-align: center;
    }
    .wca-ad-image img {
        max-width: 100%;
    }
}

[dir="rtl"] .wca-ad {
    flex-direction: row-reverse;
}
