.intext-product-ad {
    margin: 36px 0;
    padding: 16px;
    background:
        linear-gradient(135deg, #eff6ff 0%, #ffffff 65%);
    border: 1px solid #bfdbfe;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.08);
    direction: rtl;
}

.intext-product-ad-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: #1d4ed8;
    font-size: 14px;
    font-weight: 700;
}

.intext-product-ad-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #dbeafe;
    border-radius: 50%;
    font-size: 15px;
}

.intext-product-ad-card {
    max-width: 310px;
    margin: 0 auto;
}

/*
 * جلوگیری از تأثیر استایل‌های متن مقاله روی کارت محصول
 */
.intext-product-ad .product-card {
    display: block;
    padding: 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    color: #0f172a;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.intext-product-ad .product-card:hover {
    transform: translateY(-3px);
    border-color: #93c5fd;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.14);
}

.intext-product-ad .pc-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 190px;
    margin-bottom: 12px;
    overflow: hidden;
    border-radius: 10px;
    background: #f8fafc;
}

.intext-product-ad .pc-image img {
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
}

.intext-product-ad .pc-title {
    display: -webkit-box;
    overflow: hidden;
    margin: 12px 0 10px;
    color: #0f172a;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.7;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.intext-product-ad .pc-price-box {
    margin-top: 10px;
}

.intext-product-ad .pc-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.intext-product-ad .pc-price {
    color: #1d4ed8;
    font-size: 15px;
    font-weight: 800;
}

.intext-product-ad .pc-old {
    display: block;
    margin-top: 3px;
    color: #94a3b8;
    font-size: 12px;
    text-decoration: line-through;
}

.intext-product-ad .pc-discount {
    padding: 3px 7px;
    color: #fff;
    background: #ef4444;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}

.intext-product-ad .pc-call-for-price,
.intext-product-ad .pc-unavailable {
    padding: 9px 10px;
    border-radius: 8px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
}

.intext-product-ad .pc-call-for-price {
    color: #92400e;
    background: #fef3c7;
}

.intext-product-ad .pc-unavailable {
    color: #64748b;
    background: #f1f5f9;
}

.intext-product-ad .pc-meta-row {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}

.intext-product-ad .pc-badge {
    padding: 3px 7px;
    color: #475569;
    background: #f1f5f9;
    border-radius: 6px;
    font-size: 11px;
}

/* موبایل */
@media (max-width: 640px) {
    .intext-product-ad {
        margin: 28px -4px;
        padding: 12px;
    }

    .intext-product-ad-card {
        max-width: 100%;
    }

    .intext-product-ad .pc-image {
        height: 180px;
    }
}